]> git.saurik.com Git - wxWidgets.git/blame - configure
Use line width code from GTK+ print in GNOME print
[wxWidgets.git] / configure
CommitLineData
a848cd7e 1#! /bin/sh
1ad9ba14 2# From configure.in Id: configure.in 48824 2007-09-20 00:01:33Z VZ .
a848cd7e 3# Guess values for system-dependent variables and create Makefiles.
47964710 4# Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
47964710
VS
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
a848cd7e
SC
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
47964710
VS
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
47964710
VS
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
52 fi
53 rm -f conf$$.sh
7fd3acaf
RD
54fi
55
a848cd7e 56# Support unset when possible.
ac1cb8d3 57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
58 as_unset=unset
59else
60 as_unset=false
61fi
62
63
47964710
VS
64# IFS
65# We need space, tab and new line, in precisely that order. Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85 ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
95fi
96
a848cd7e 97# Work around bugs in pre-3.0 UWIN ksh.
47964710
VS
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
a848cd7e
SC
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
110do
ac1cb8d3 111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
112 eval $as_var=C; export $as_var
113 else
47964710 114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
a848cd7e
SC
115 fi
116done
117
118# Required to use basename.
47964710
VS
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a848cd7e
SC
121 as_expr=expr
122else
123 as_expr=false
124fi
125
47964710 126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
a848cd7e
SC
127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
47964710 134as_me=`$as_basename -- "$0" ||
a848cd7e
SC
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
47964710 137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
a848cd7e 138echo X/"$0" |
47964710
VS
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
7fd3acaf 152
47964710
VS
153# CDPATH.
154$as_unset CDPATH
7fd3acaf 155
faa5c14f 156
47964710
VS
157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
162fi
163
164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
180
181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
84ebfcbd
VZ
187fi
188
47964710
VS
189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
84ebfcbd 193
47964710
VS
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
84ebfcbd 200
47964710
VS
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221 :
222else
223 as_candidate_shells=
a848cd7e 224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
ebe1d157 225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
a848cd7e
SC
226do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
47964710 229 case $as_dir in
a848cd7e 230 /*)
47964710
VS
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235done
236IFS=$as_save_IFS
237
238
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
84ebfcbd
VZ
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
47964710
VS
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338 break
339fi
340
341fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
422}
423
424
425
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a848cd7e
SC
430
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
47964710
VS
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
a848cd7e 438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
47964710
VS
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
a848cd7e 445 sed '
47964710
VS
446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
a848cd7e 450 N
47964710
VS
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a848cd7e 453 t loop
47964710 454 s/-\n.*//
a848cd7e 455 ' >$as_me.lineno &&
47964710 456 chmod +x "$as_me.lineno" ||
a848cd7e
SC
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
47964710
VS
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
a848cd7e
SC
464 # Exit status is that of the last command.
465 exit
466}
467
468
47964710
VS
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
482*)
483 ECHO_N='-n';;
a848cd7e
SC
484esac
485
47964710
VS
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a848cd7e
SC
488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
47964710
VS
494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
a848cd7e
SC
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
47964710
VS
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
a848cd7e 508 as_ln_s='cp -p'
a848cd7e
SC
509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
47964710
VS
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
a848cd7e
SC
516
517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
ac1cb8d3 520 test -d ./-p && rmdir ./-p
a848cd7e
SC
521 as_mkdir_p=false
522fi
523
47964710
VS
524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
531 fi
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
543 '
544fi
545as_executable_p=$as_test_x
a848cd7e
SC
546
547# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
549
550# Sed expression to map a string onto a valid variable name.
ac1cb8d3 551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
552
553
a848cd7e 554
47964710 555exec 7<&0 </dev/null 6>&1
a848cd7e
SC
556
557# Name of the host.
558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
a848cd7e
SC
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
47964710 566ac_clean_files=
a848cd7e 567ac_config_libobj_dir=.
47964710 568LIBOBJS=
a848cd7e
SC
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
a848cd7e 575# Identity of this package.
77ffb593
JS
576PACKAGE_NAME='wxWidgets'
577PACKAGE_TARNAME='wxwidgets'
7fd3acaf
RD
578PACKAGE_VERSION='2.9.0'
579PACKAGE_STRING='wxWidgets 2.9.0'
77ffb593 580PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
581
582ac_unique_file="wx-config.in"
583# Factoring default headers for most tests.
584ac_includes_default="\
585#include <stdio.h>
47964710 586#ifdef HAVE_SYS_TYPES_H
a848cd7e
SC
587# include <sys/types.h>
588#endif
47964710 589#ifdef HAVE_SYS_STAT_H
a848cd7e
SC
590# include <sys/stat.h>
591#endif
47964710 592#ifdef STDC_HEADERS
a848cd7e
SC
593# include <stdlib.h>
594# include <stddef.h>
595#else
47964710 596# ifdef HAVE_STDLIB_H
a848cd7e
SC
597# include <stdlib.h>
598# endif
599#endif
47964710
VS
600#ifdef HAVE_STRING_H
601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a848cd7e
SC
602# include <memory.h>
603# endif
604# include <string.h>
605#endif
47964710 606#ifdef HAVE_STRINGS_H
a848cd7e
SC
607# include <strings.h>
608#endif
47964710 609#ifdef HAVE_INTTYPES_H
a848cd7e 610# include <inttypes.h>
7fd3acaf 611#endif
47964710
VS
612#ifdef HAVE_STDINT_H
613# include <stdint.h>
614#endif
615#ifdef HAVE_UNISTD_H
a848cd7e
SC
616# include <unistd.h>
617#endif"
618
47964710
VS
619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656build
657build_cpu
658build_vendor
659build_os
660host
661host_cpu
662host_vendor
663host_os
664target
665target_cpu
666target_vendor
667target_os
668wx_top_builddir
669CC
670CFLAGS
671LDFLAGS
672CPPFLAGS
673ac_ct_CC
674EXEEXT
675OBJEXT
676CPP
677GREP
678EGREP
679CXX
680CXXFLAGS
681ac_ct_CXX
682AR
683subdirs
684PKG_CONFIG
685GTK_CFLAGS
686GTK_LIBS
687GTK_CONFIG
688DIRECTFB_CFLAGS
689DIRECTFB_LIBS
690XMKMF
691X_CFLAGS
692X_PRE_LIBS
693X_LIBS
694X_EXTRA_LIBS
695PANGOX_CFLAGS
696PANGOX_LIBS
697PANGOFT2_CFLAGS
698PANGOFT2_LIBS
699PANGOXFT_CFLAGS
700PANGOXFT_LIBS
701CFLAGS_VISIBILITY
702CXXFLAGS_VISIBILITY
703LIBICONV
704SDL_CONFIG
705SDL_CFLAGS
706SDL_LIBS
707GTKPRINT_CFLAGS
708GTKPRINT_LIBS
709LIBGNOMEPRINTUI_CFLAGS
710LIBGNOMEPRINTUI_LIBS
711GNOMEVFS_CFLAGS
712GNOMEVFS_LIBS
713HILDON_CFLAGS
714HILDON_LIBS
715CAIRO_CFLAGS
716CAIRO_LIBS
717GST_CFLAGS
718GST_LIBS
719ALL_WX_LIBS
720BUILT_WX_LIBS
721STD_BASE_LIBS
722STD_GUI_LIBS
723wxUSE_ZLIB
724wxUSE_REGEX
725wxUSE_EXPAT
726wxUSE_ODBC
727wxUSE_LIBJPEG
728wxUSE_LIBPNG
729wxUSE_LIBTIFF
730VENDOR
731OFFICIAL_BUILD
732WX_FLAVOUR
733WX_LIB_FLAVOUR
734WXUNIV
735MONOLITHIC
736USE_PLUGINS
737CXXWARNINGS
738EXTRALIBS
739EXTRALIBS_XML
740EXTRALIBS_HTML
741EXTRALIBS_ODBC
742EXTRALIBS_GUI
743EXTRALIBS_OPENGL
744EXTRALIBS_SDL
745WITH_PLUGIN_SDL
746EXTRALIBS_GTKPRINT
747EXTRALIBS_GNOMEPRINT
748EXTRALIBS_GNOMEVFS
749EXTRALIBS_HILDON
750UNICODE
751BUILD
752DEBUG_INFO
753DEBUG_FLAG
754TOOLKIT_LOWERCASE
755TOOLKIT_VERSION
756SAMPLES_RPATH_FLAG
757SAMPLES_RPATH_POSTLINK
758HOST_SUFFIX
759CPPUNIT_CFLAGS
760CPPUNIT_LIBS
761RANLIB
762INSTALL_PROGRAM
763INSTALL_SCRIPT
764INSTALL_DATA
765LN_S
766SET_MAKE
767MAKE_SET
768AROPTIONS
769STRIP
770NM
771INSTALL_DIR
772LDFLAGS_GUI
773IF_GNU_MAKE
774PLATFORM_UNIX
775PLATFORM_WIN32
776PLATFORM_MSDOS
777PLATFORM_MAC
778PLATFORM_MACOS
779PLATFORM_MACOSX
780PLATFORM_OS2
781PLATFORM_BEOS
782SO_SUFFIX
783SO_SUFFIX_MODULE
784DLLIMP_SUFFIX
785LIBPREFIX
786LIBEXT
787DLLPREFIX
788DLLPREFIX_MODULE
789dlldir
790AIX_CXX_LD
791SHARED_LD_CC
792SHARED_LD_CXX
793SHARED_LD_MODULE_CC
794SHARED_LD_MODULE_CXX
795PIC_FLAG
796WINDOWS_IMPLIB
797USE_SOVERSION
798USE_SOVERLINUX
799USE_SOVERSOLARIS
800USE_SOVERCYGWIN
801USE_MACVERSION
802USE_SOSYMLINKS
803SONAME_FLAG
804DEPS_TRACKING
805BK_DEPS
806WINDRES
807REZ
808SETFILE
809GCC_PCH
810ICC_PCH
811BK_MAKE_PCH
812COND_BUILD_DEBUG
813COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
814COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
815COND_BUILD_DEBUG_UNICODE_0
816COND_BUILD_DEBUG_UNICODE_1
817COND_BUILD_RELEASE
818COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
819COND_BUILD_RELEASE_UNICODE_0
820COND_BUILD_RELEASE_UNICODE_1
821COND_DEBUG_FLAG_1
822COND_DEBUG_INFO_0
823COND_DEBUG_INFO_1
824COND_DEPS_TRACKING_0
825COND_DEPS_TRACKING_1
826COND_GCC_PCH_1
827COND_ICC_PCH_1
828COND_MONOLITHIC_0
829COND_MONOLITHIC_0_SHARED_0
830COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
831COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
832COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
833COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
834COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1
835COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
836COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1
837COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
838COND_MONOLITHIC_0_SHARED_0_USE_STC_1
839COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
840COND_MONOLITHIC_0_SHARED_1
841COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
842COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
843COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
844COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
845COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1
846COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
847COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1
848COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
849COND_MONOLITHIC_0_SHARED_1_USE_STC_1
850COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
851COND_MONOLITHIC_0_USE_AUI_1
852COND_MONOLITHIC_0_USE_GUI_1
853COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
854COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1
855COND_MONOLITHIC_0_USE_HTML_1
856COND_MONOLITHIC_0_USE_MEDIA_1
857COND_MONOLITHIC_0_USE_ODBC_1
858COND_MONOLITHIC_0_USE_QA_1
859COND_MONOLITHIC_0_USE_RICHTEXT_1
860COND_MONOLITHIC_0_USE_STC_1
861COND_MONOLITHIC_0_USE_XRC_1
862COND_MONOLITHIC_1
863COND_MONOLITHIC_1_SHARED_0
864COND_MONOLITHIC_1_SHARED_1
865COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
866COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
867COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
868COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
869COND_PLATFORM_MACOSX_1
870COND_PLATFORM_MACOSX_1_TOOLKIT_
871COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
872COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
873COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
874COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
875COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
876COND_PLATFORM_MACOSX_1_TOOLKIT_X11
877COND_PLATFORM_MACOSX_1_USE_GUI_1
878COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
879COND_PLATFORM_MACOS_1
880COND_PLATFORM_MAC_1
881COND_PLATFORM_MSDOS_0
882COND_PLATFORM_MSDOS_1
883COND_PLATFORM_OS2_1
884COND_PLATFORM_UNIX_0
885COND_PLATFORM_UNIX_1
886COND_PLATFORM_UNIX_1_TOOLKIT_MGL
887COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
888COND_PLATFORM_UNIX_1_USE_GUI_1
889COND_PLATFORM_UNIX_1_USE_PLUGINS_0
890COND_PLATFORM_WIN32_0
891COND_PLATFORM_WIN32_1
892COND_SHARED_0
893COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
894COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
895COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
896COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
897COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
898COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
899COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
900COND_SHARED_0_USE_STC_1
901COND_SHARED_0_USE_XRC_1
902COND_SHARED_0_WXUSE_EXPAT_BUILTIN
903COND_SHARED_0_WXUSE_ODBC_BUILTIN
904COND_SHARED_0_WXUSE_REGEX_BUILTIN
905COND_SHARED_0_WXUSE_ZLIB_BUILTIN
906COND_SHARED_1
907COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
908COND_SHARED_1_USE_XRC_1
909COND_TOOLKIT_
910COND_TOOLKIT_COCOA
911COND_TOOLKIT_COCOA_USE_GUI_1
912COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
913COND_TOOLKIT_DFB
914COND_TOOLKIT_DFB_USE_GUI_1
915COND_TOOLKIT_GTK
916COND_TOOLKIT_GTK_TOOLKIT_VERSION_
917COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
918COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
919COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
920COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
921COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
922COND_TOOLKIT_GTK_USE_GUI_1
923COND_TOOLKIT_MAC
924COND_TOOLKIT_MAC_USE_GUI_1
925COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
926COND_TOOLKIT_MGL
927COND_TOOLKIT_MGL_USE_GUI_1
928COND_TOOLKIT_MOTIF
929COND_TOOLKIT_MOTIF_USE_GUI_1
930COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
931COND_TOOLKIT_MSW
932COND_TOOLKIT_MSW_USE_GUI_1
933COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
934COND_TOOLKIT_MSW_WXUNIV_0
935COND_TOOLKIT_PM
936COND_TOOLKIT_PM_USE_GUI_1
937COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
938COND_TOOLKIT_WINCE
939COND_TOOLKIT_WINCE_USE_GUI_1
940COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
941COND_TOOLKIT_WINCE_WXUNIV_0
942COND_TOOLKIT_X11
943COND_TOOLKIT_X11_USE_GUI_1
944COND_UNICODE_1
945COND_USE_EXCEPTIONS_0
946COND_USE_EXCEPTIONS_1
947COND_USE_GUI_0
948COND_USE_GUI_1
949COND_USE_GUI_1_USE_OPENGL_1
950COND_USE_GUI_1_WXUNIV_0
951COND_USE_GUI_1_WXUNIV_1
952COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
953COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
954COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
955COND_USE_ODBC_1
956COND_USE_OPENGL_1
957COND_USE_PCH_1
958COND_USE_PLUGINS_0
959COND_USE_RTTI_0
960COND_USE_RTTI_1
961COND_USE_SOSYMLINKS_1
962COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
963COND_USE_SOVERLINUX_1
964COND_USE_SOVERSION_0
965COND_USE_SOVERSOLARIS_1
966COND_USE_STC_1
967COND_USE_THREADS_0
968COND_USE_THREADS_1
969COND_USE_XRC_1
970COND_WINDOWS_IMPLIB_1
971COND_WITH_PLUGIN_SDL_1
972COND_WXUNIV_0
973COND_WXUNIV_1
974COND_WXUSE_EXPAT_BUILTIN
975COND_WXUSE_LIBJPEG_BUILTIN
976COND_WXUSE_LIBPNG_BUILTIN
977COND_WXUSE_LIBTIFF_BUILTIN
978COND_WXUSE_ODBC_BUILTIN
979COND_WXUSE_REGEX_BUILTIN
980COND_WXUSE_ZLIB_BUILTIN
981DEREZ
982SHARED
983WX_LIBRARY_BASENAME_NOGUI
984WX_LIBRARY_BASENAME_GUI
985USE_GUI
986AFMINSTALL
987WIN32INSTALL
988TOOLKIT
989TOOLKIT_DIR
990TOOLCHAIN_NAME
991TOOLCHAIN_FULLNAME
992cross_compiling
993WIDGET_SET
994WX_RELEASE
995WX_VERSION
996WX_SUBVERSION
997WX_CHARTYPE
998WX_DEBUGTYPE
999WXCONFIG_CPPFLAGS
1000WXCONFIG_CFLAGS
1001WXCONFIG_CXXFLAGS
1002WXCONFIG_LIBS
1003WXCONFIG_RPATH
1004WXCONFIG_LDFLAGS_GUI
1005WXCONFIG_RESFLAGS
1006EXE_LINKER
1007GUIDIST
1008DISTDIR
1009SAMPLES_SUBDIRS
1010LDFLAGS_GL
1011OPENGL_LIBS
1012DMALLOC_LIBS
1013WX_VERSION_TAG
1014RESCOMP
1015RESFLAGS
1016RESPROGRAMOBJ
1017WX_RESOURCES_MACOSX_ASCII
1018WX_RESOURCES_MACOSX_DATA
1019LIBWXMACRES
1020POSTLINK_COMMAND
1021MACSETFILE
1022GCC
1023DLLTOOL
1024CPPUNIT_CONFIG
1025LIBOBJS
1026LTLIBOBJS'
a848cd7e 1027ac_subst_files=''
47964710
VS
1028 ac_precious_vars='build_alias
1029host_alias
1030target_alias
1031CC
1032CFLAGS
1033LDFLAGS
1034LIBS
1035CPPFLAGS
1036CPP
1037CXX
1038CXXFLAGS
1039CCC
1040PKG_CONFIG
1041DIRECTFB_CFLAGS
1042DIRECTFB_LIBS
1043XMKMF
1044PANGOX_CFLAGS
1045PANGOX_LIBS
1046PANGOFT2_CFLAGS
1047PANGOFT2_LIBS
1048PANGOXFT_CFLAGS
1049PANGOXFT_LIBS
1050GTKPRINT_CFLAGS
1051GTKPRINT_LIBS
1052LIBGNOMEPRINTUI_CFLAGS
1053LIBGNOMEPRINTUI_LIBS
1054GNOMEVFS_CFLAGS
1055GNOMEVFS_LIBS
1056HILDON_CFLAGS
1057HILDON_LIBS
1058CAIRO_CFLAGS
1059CAIRO_LIBS
1060GST_CFLAGS
1061GST_LIBS'
3442c078
VZ
1062ac_subdirs_all='src/tiff
1063src/expat'
a848cd7e
SC
1064
1065# Initialize some variables set by options.
1066ac_init_help=
1067ac_init_version=false
1068# The variables have the same names as the options, with
1069# dashes changed to underlines.
1070cache_file=/dev/null
1071exec_prefix=NONE
1072no_create=
1073no_recursion=
1074prefix=NONE
1075program_prefix=NONE
1076program_suffix=NONE
1077program_transform_name=s,x,x,
1078silent=
1079site=
1080srcdir=
1081verbose=
1082x_includes=NONE
1083x_libraries=NONE
1084
1085# Installation directory options.
1086# These are left unexpanded so users can "make install exec_prefix=/foo"
1087# and all the variables that are supposed to be based on exec_prefix
1088# by default will actually change.
1089# Use braces instead of parens because sh, perl, etc. also accept them.
47964710 1090# (The list follows the same order as the GNU Coding Standards.)
a848cd7e
SC
1091bindir='${exec_prefix}/bin'
1092sbindir='${exec_prefix}/sbin'
1093libexecdir='${exec_prefix}/libexec'
47964710
VS
1094datarootdir='${prefix}/share'
1095datadir='${datarootdir}'
a848cd7e
SC
1096sysconfdir='${prefix}/etc'
1097sharedstatedir='${prefix}/com'
1098localstatedir='${prefix}/var'
a848cd7e
SC
1099includedir='${prefix}/include'
1100oldincludedir='/usr/include'
47964710
VS
1101docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1102infodir='${datarootdir}/info'
1103htmldir='${docdir}'
1104dvidir='${docdir}'
1105pdfdir='${docdir}'
1106psdir='${docdir}'
1107libdir='${exec_prefix}/lib'
1108localedir='${datarootdir}/locale'
1109mandir='${datarootdir}/man'
a848cd7e
SC
1110
1111ac_prev=
47964710 1112ac_dashdash=
a848cd7e
SC
1113for ac_option
1114do
1115 # If the previous option needs an argument, assign it.
1116 if test -n "$ac_prev"; then
47964710 1117 eval $ac_prev=\$ac_option
a848cd7e
SC
1118 ac_prev=
1119 continue
1120 fi
1121
47964710
VS
1122 case $ac_option in
1123 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1124 *) ac_optarg=yes ;;
1125 esac
a848cd7e
SC
1126
1127 # Accept the important Cygnus configure options, so we can diagnose typos.
1128
47964710
VS
1129 case $ac_dashdash$ac_option in
1130 --)
1131 ac_dashdash=yes ;;
a848cd7e
SC
1132
1133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1134 ac_prev=bindir ;;
1135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1136 bindir=$ac_optarg ;;
1137
1138 -build | --build | --buil | --bui | --bu)
1139 ac_prev=build_alias ;;
1140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1141 build_alias=$ac_optarg ;;
1142
1143 -cache-file | --cache-file | --cache-fil | --cache-fi \
1144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1145 ac_prev=cache_file ;;
1146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1148 cache_file=$ac_optarg ;;
1149
1150 --config-cache | -C)
1151 cache_file=config.cache ;;
1152
47964710 1153 -datadir | --datadir | --datadi | --datad)
a848cd7e 1154 ac_prev=datadir ;;
47964710 1155 -datadir=* | --datadir=* | --datadi=* | --datad=*)
a848cd7e
SC
1156 datadir=$ac_optarg ;;
1157
47964710
VS
1158 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1159 | --dataroo | --dataro | --datar)
1160 ac_prev=datarootdir ;;
1161 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1162 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1163 datarootdir=$ac_optarg ;;
1164
a848cd7e
SC
1165 -disable-* | --disable-*)
1166 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
47964710 1168 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
a848cd7e
SC
1169 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1170 { (exit 1); exit 1; }; }
47964710
VS
1171 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1172 eval enable_$ac_feature=no ;;
1173
1174 -docdir | --docdir | --docdi | --doc | --do)
1175 ac_prev=docdir ;;
1176 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1177 docdir=$ac_optarg ;;
1178
1179 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1180 ac_prev=dvidir ;;
1181 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1182 dvidir=$ac_optarg ;;
a848cd7e
SC
1183
1184 -enable-* | --enable-*)
1185 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
47964710 1187 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
a848cd7e
SC
1188 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1189 { (exit 1); exit 1; }; }
47964710
VS
1190 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1191 eval enable_$ac_feature=\$ac_optarg ;;
a848cd7e
SC
1192
1193 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1194 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1195 | --exec | --exe | --ex)
1196 ac_prev=exec_prefix ;;
1197 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1198 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1199 | --exec=* | --exe=* | --ex=*)
1200 exec_prefix=$ac_optarg ;;
1201
1202 -gas | --gas | --ga | --g)
1203 # Obsolete; use --with-gas.
1204 with_gas=yes ;;
1205
1206 -help | --help | --hel | --he | -h)
1207 ac_init_help=long ;;
1208 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1209 ac_init_help=recursive ;;
1210 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1211 ac_init_help=short ;;
1212
1213 -host | --host | --hos | --ho)
1214 ac_prev=host_alias ;;
1215 -host=* | --host=* | --hos=* | --ho=*)
1216 host_alias=$ac_optarg ;;
1217
47964710
VS
1218 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1219 ac_prev=htmldir ;;
1220 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1221 | --ht=*)
1222 htmldir=$ac_optarg ;;
1223
a848cd7e
SC
1224 -includedir | --includedir | --includedi | --included | --include \
1225 | --includ | --inclu | --incl | --inc)
1226 ac_prev=includedir ;;
1227 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1228 | --includ=* | --inclu=* | --incl=* | --inc=*)
1229 includedir=$ac_optarg ;;
1230
1231 -infodir | --infodir | --infodi | --infod | --info | --inf)
1232 ac_prev=infodir ;;
1233 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1234 infodir=$ac_optarg ;;
1235
1236 -libdir | --libdir | --libdi | --libd)
1237 ac_prev=libdir ;;
1238 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1239 libdir=$ac_optarg ;;
1240
1241 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1242 | --libexe | --libex | --libe)
1243 ac_prev=libexecdir ;;
1244 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1245 | --libexe=* | --libex=* | --libe=*)
1246 libexecdir=$ac_optarg ;;
1247
47964710
VS
1248 -localedir | --localedir | --localedi | --localed | --locale)
1249 ac_prev=localedir ;;
1250 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1251 localedir=$ac_optarg ;;
1252
a848cd7e 1253 -localstatedir | --localstatedir | --localstatedi | --localstated \
47964710 1254 | --localstate | --localstat | --localsta | --localst | --locals)
a848cd7e
SC
1255 ac_prev=localstatedir ;;
1256 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
47964710 1257 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
a848cd7e
SC
1258 localstatedir=$ac_optarg ;;
1259
1260 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1261 ac_prev=mandir ;;
1262 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1263 mandir=$ac_optarg ;;
1264
1265 -nfp | --nfp | --nf)
1266 # Obsolete; use --without-fp.
1267 with_fp=no ;;
1268
1269 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1270 | --no-cr | --no-c | -n)
1271 no_create=yes ;;
1272
1273 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1274 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1275 no_recursion=yes ;;
1276
1277 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1278 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1279 | --oldin | --oldi | --old | --ol | --o)
1280 ac_prev=oldincludedir ;;
1281 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1282 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1283 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1284 oldincludedir=$ac_optarg ;;
1285
1286 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1287 ac_prev=prefix ;;
1288 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1289 prefix=$ac_optarg ;;
1290
1291 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1292 | --program-pre | --program-pr | --program-p)
1293 ac_prev=program_prefix ;;
1294 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1295 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1296 program_prefix=$ac_optarg ;;
1297
1298 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1299 | --program-suf | --program-su | --program-s)
1300 ac_prev=program_suffix ;;
1301 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1302 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1303 program_suffix=$ac_optarg ;;
1304
1305 -program-transform-name | --program-transform-name \
1306 | --program-transform-nam | --program-transform-na \
1307 | --program-transform-n | --program-transform- \
1308 | --program-transform | --program-transfor \
1309 | --program-transfo | --program-transf \
1310 | --program-trans | --program-tran \
1311 | --progr-tra | --program-tr | --program-t)
1312 ac_prev=program_transform_name ;;
1313 -program-transform-name=* | --program-transform-name=* \
1314 | --program-transform-nam=* | --program-transform-na=* \
1315 | --program-transform-n=* | --program-transform-=* \
1316 | --program-transform=* | --program-transfor=* \
1317 | --program-transfo=* | --program-transf=* \
1318 | --program-trans=* | --program-tran=* \
1319 | --progr-tra=* | --program-tr=* | --program-t=*)
1320 program_transform_name=$ac_optarg ;;
1321
47964710
VS
1322 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1323 ac_prev=pdfdir ;;
1324 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1325 pdfdir=$ac_optarg ;;
1326
1327 -psdir | --psdir | --psdi | --psd | --ps)
1328 ac_prev=psdir ;;
1329 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1330 psdir=$ac_optarg ;;
1331
a848cd7e
SC
1332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1333 | -silent | --silent | --silen | --sile | --sil)
1334 silent=yes ;;
1335
1336 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1337 ac_prev=sbindir ;;
1338 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1339 | --sbi=* | --sb=*)
1340 sbindir=$ac_optarg ;;
1341
1342 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1343 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1344 | --sharedst | --shareds | --shared | --share | --shar \
1345 | --sha | --sh)
1346 ac_prev=sharedstatedir ;;
1347 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1348 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1349 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1350 | --sha=* | --sh=*)
1351 sharedstatedir=$ac_optarg ;;
1352
1353 -site | --site | --sit)
1354 ac_prev=site ;;
1355 -site=* | --site=* | --sit=*)
1356 site=$ac_optarg ;;
1357
1358 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1359 ac_prev=srcdir ;;
1360 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1361 srcdir=$ac_optarg ;;
1362
1363 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1364 | --syscon | --sysco | --sysc | --sys | --sy)
1365 ac_prev=sysconfdir ;;
1366 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1367 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1368 sysconfdir=$ac_optarg ;;
1369
1370 -target | --target | --targe | --targ | --tar | --ta | --t)
1371 ac_prev=target_alias ;;
1372 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1373 target_alias=$ac_optarg ;;
1374
1375 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1376 verbose=yes ;;
1377
1378 -version | --version | --versio | --versi | --vers | -V)
1379 ac_init_version=: ;;
1380
1381 -with-* | --with-*)
1382 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1383 # Reject names that are not valid shell variable names.
47964710 1384 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
a848cd7e
SC
1385 { echo "$as_me: error: invalid package name: $ac_package" >&2
1386 { (exit 1); exit 1; }; }
47964710
VS
1387 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1388 eval with_$ac_package=\$ac_optarg ;;
a848cd7e
SC
1389
1390 -without-* | --without-*)
1391 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1392 # Reject names that are not valid shell variable names.
47964710 1393 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
a848cd7e
SC
1394 { echo "$as_me: error: invalid package name: $ac_package" >&2
1395 { (exit 1); exit 1; }; }
47964710
VS
1396 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1397 eval with_$ac_package=no ;;
a848cd7e
SC
1398
1399 --x)
1400 # Obsolete; use --with-x.
1401 with_x=yes ;;
1402
1403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1404 | --x-incl | --x-inc | --x-in | --x-i)
1405 ac_prev=x_includes ;;
1406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1408 x_includes=$ac_optarg ;;
1409
1410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1412 ac_prev=x_libraries ;;
1413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1415 x_libraries=$ac_optarg ;;
1416
1417 -*) { echo "$as_me: error: unrecognized option: $ac_option
1418Try \`$0 --help' for more information." >&2
1419 { (exit 1); exit 1; }; }
1420 ;;
1421
1422 *=*)
1423 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1424 # Reject names that are not valid shell variable names.
1425 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1426 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1427 { (exit 1); exit 1; }; }
47964710 1428 eval $ac_envvar=\$ac_optarg
a848cd7e
SC
1429 export $ac_envvar ;;
1430
1431 *)
1432 # FIXME: should be removed in autoconf 3.0.
1433 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1434 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1435 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1436 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1437 ;;
1438
1439 esac
1440done
1441
1442if test -n "$ac_prev"; then
1443 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1444 { echo "$as_me: error: missing argument to $ac_option" >&2
1445 { (exit 1); exit 1; }; }
1446fi
1447
47964710
VS
1448# Be sure to have absolute directory names.
1449for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1450 datadir sysconfdir sharedstatedir localstatedir includedir \
1451 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1452 libdir localedir mandir
f321ab7f 1453do
47964710 1454 eval ac_val=\$$ac_var
f321ab7f 1455 case $ac_val in
47964710
VS
1456 [\\/$]* | ?:[\\/]* ) continue;;
1457 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a848cd7e 1458 esac
47964710
VS
1459 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1460 { (exit 1); exit 1; }; }
a848cd7e
SC
1461done
1462
1463# There might be people who depend on the old broken behavior: `$host'
1464# used to hold the argument of --host etc.
1465# FIXME: To remove some day.
1466build=$build_alias
1467host=$host_alias
1468target=$target_alias
1469
1470# FIXME: To remove some day.
1471if test "x$host_alias" != x; then
1472 if test "x$build_alias" = x; then
1473 cross_compiling=maybe
1474 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1475 If a cross compiler is detected then cross compile mode will be used." >&2
1476 elif test "x$build_alias" != "x$host_alias"; then
1477 cross_compiling=yes
1478 fi
1479fi
1480
1481ac_tool_prefix=
1482test -n "$host_alias" && ac_tool_prefix=$host_alias-
1483
1484test "$silent" = yes && exec 6>/dev/null
1485
1486
47964710
VS
1487ac_pwd=`pwd` && test -n "$ac_pwd" &&
1488ac_ls_di=`ls -di .` &&
1489ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1490 { echo "$as_me: error: Working directory cannot be determined" >&2
1491 { (exit 1); exit 1; }; }
1492test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1493 { echo "$as_me: error: pwd does not report name of working directory" >&2
1494 { (exit 1); exit 1; }; }
1495
1496
a848cd7e
SC
1497# Find the source files, if location was not specified.
1498if test -z "$srcdir"; then
1499 ac_srcdir_defaulted=yes
47964710
VS
1500 # Try the directory containing this script, then the parent directory.
1501 ac_confdir=`$as_dirname -- "$0" ||
a848cd7e 1502$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
1503 X"$0" : 'X\(//\)[^/]' \| \
1504 X"$0" : 'X\(//\)$' \| \
47964710 1505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
a848cd7e 1506echo X"$0" |
47964710
VS
1507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1508 s//\1/
1509 q
1510 }
1511 /^X\(\/\/\)[^/].*/{
1512 s//\1/
1513 q
1514 }
1515 /^X\(\/\/\)$/{
1516 s//\1/
1517 q
1518 }
1519 /^X\(\/\).*/{
1520 s//\1/
1521 q
1522 }
1523 s/.*/./; q'`
a848cd7e 1524 srcdir=$ac_confdir
47964710 1525 if test ! -r "$srcdir/$ac_unique_file"; then
a848cd7e
SC
1526 srcdir=..
1527 fi
1528else
1529 ac_srcdir_defaulted=no
1530fi
47964710
VS
1531if test ! -r "$srcdir/$ac_unique_file"; then
1532 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1533 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
a848cd7e 1534 { (exit 1); exit 1; }; }
a848cd7e 1535fi
47964710
VS
1536ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1537ac_abs_confdir=`(
1538 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
a848cd7e 1539 { (exit 1); exit 1; }; }
47964710
VS
1540 pwd)`
1541# When building in place, set srcdir=.
1542if test "$ac_abs_confdir" = "$ac_pwd"; then
1543 srcdir=.
1544fi
1545# Remove unnecessary trailing slashes from srcdir.
1546# Double slashes in file names in object file debugging info
1547# mess up M-x gdb in Emacs.
1548case $srcdir in
1549*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1550esac
1551for ac_var in $ac_precious_vars; do
1552 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1553 eval ac_env_${ac_var}_value=\$${ac_var}
1554 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1555 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1556done
a848cd7e
SC
1557
1558#
1559# Report the --help message.
1560#
1561if test "$ac_init_help" = "long"; then
1562 # Omit some internal or obsolete options to make the list less imposing.
1563 # This message is too long to be a string in the A/UX 3.1 sh.
1564 cat <<_ACEOF
7fd3acaf 1565\`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
a848cd7e
SC
1566
1567Usage: $0 [OPTION]... [VAR=VALUE]...
1568
1569To assign environment variables (e.g., CC, CFLAGS...), specify them as
1570VAR=VALUE. See below for descriptions of some of the useful variables.
1571
1572Defaults for the options are specified in brackets.
1573
1574Configuration:
1575 -h, --help display this help and exit
1576 --help=short display options specific to this package
1577 --help=recursive display the short help of all the included packages
1578 -V, --version display version information and exit
1579 -q, --quiet, --silent do not print \`checking...' messages
1580 --cache-file=FILE cache test results in FILE [disabled]
1581 -C, --config-cache alias for \`--cache-file=config.cache'
1582 -n, --no-create do not create output files
1583 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1584
a848cd7e
SC
1585Installation directories:
1586 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 1587 [$ac_default_prefix]
a848cd7e 1588 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 1589 [PREFIX]
a848cd7e
SC
1590
1591By default, \`make install' will install all the files in
1592\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1593an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1594for instance \`--prefix=\$HOME'.
1595
1596For better control, use the options below.
1597
1598Fine tuning of the installation directories:
1599 --bindir=DIR user executables [EPREFIX/bin]
1600 --sbindir=DIR system admin executables [EPREFIX/sbin]
1601 --libexecdir=DIR program executables [EPREFIX/libexec]
a848cd7e
SC
1602 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1603 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1604 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1605 --libdir=DIR object code libraries [EPREFIX/lib]
1606 --includedir=DIR C header files [PREFIX/include]
1607 --oldincludedir=DIR C header files for non-gcc [/usr/include]
47964710
VS
1608 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1609 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1610 --infodir=DIR info documentation [DATAROOTDIR/info]
1611 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1612 --mandir=DIR man documentation [DATAROOTDIR/man]
1613 --docdir=DIR documentation root [DATAROOTDIR/doc/wxwidgets]
1614 --htmldir=DIR html documentation [DOCDIR]
1615 --dvidir=DIR dvi documentation [DOCDIR]
1616 --pdfdir=DIR pdf documentation [DOCDIR]
1617 --psdir=DIR ps documentation [DOCDIR]
a848cd7e
SC
1618_ACEOF
1619
1620 cat <<\_ACEOF
1621
1622X features:
1623 --x-includes=DIR X include files are in DIR
1624 --x-libraries=DIR X library files are in DIR
1625
1626System types:
1627 --build=BUILD configure for building on BUILD [guessed]
1628 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1629 --target=TARGET configure for building compilers for TARGET [HOST]
1630_ACEOF
1631fi
1632
1633if test -n "$ac_init_help"; then
1634 case $ac_init_help in
7fd3acaf 1635 short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
a848cd7e
SC
1636 esac
1637 cat <<\_ACEOF
1638
1639Optional Features:
1640 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1641 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6e198e97 1642 --disable-gui don't build GUI parts of the library
77ffb593
JS
1643 --enable-monolithic build wxWidgets as single library
1644 --enable-plugins build parts of wxWidgets as loadable components
6e198e97
VZ
1645 --enable-official_build official build of wxWidgets (win32 DLL only)
1646 --enable-vendor=VENDOR vendor name (win32 DLL only)
d970f7d5 1647 --disable-all-features disable all optional features to build minimal library
77ffb593 1648 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 1649 --enable-nanox use NanoX
f34ca037 1650 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e 1651 --enable-gpe use GNOME PDA Environment features if possible
6e198e97 1652 --disable-shared create static library instead of shared
3d44a145 1653 --disable-optimise create optimised code
a848cd7e
SC
1654 --enable-debug same as debug_flag and debug_info
1655 --enable-stl use STL for containers
6e198e97
VZ
1656 --enable-std_iostreams use standard C++ stream classes
1657 --enable-std_string use standard C++ string classes
1658 --disable-unicode compile without Unicode support
1659 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
1660 --enable-utf8 use UTF-8 representation for strings (Unix only)
1661 --enable-utf8only only support UTF-8 locales in UTF-8 build (Unix only)
81727065 1662 --enable-extended_rtti use extended RTTI (XTI)
a848cd7e
SC
1663 --enable-omf use OMF object format
1664 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
1665 --enable-debug_info create code with debugging information
1666 --enable-debug_gdb create code with extra GDB debugging information
1667 --enable-debug_cntxt use wxDebugContext
1668 --enable-mem_tracing create code with memory tracing
1669 --enable-profile create code with profiling information
1670 --enable-no_rtti create code without RTTI information
1671 --enable-no_exceptions create code without C++ exceptions handling
1672 --enable-permissive compile code disregarding strict ANSI
1673 --enable-no_deps create code without dependency information
70c536f3 1674 --disable-vararg_macros don't use vararg macros, even if they are supported
3442c078 1675 --enable-universal_binary create Mac PowerPC and Intel Universal binary
abb6edd1
VS
1676 --enable-compat26 enable wxWidgets 2.6 compatibility
1677 --disable-compat28 disable wxWidgets 2.8 compatibility
ffa0583f 1678 --disable-rpath disable use of rpath for uninstalled builds
931d7698 1679 --enable-objc_uniquifying enable Objective-C class name uniquifying
a2bd84a5 1680 --disable-visibility disable use of ELF symbols visibility even if supported
a848cd7e
SC
1681 --enable-intl use internationalization system
1682 --enable-config use wxConfig (and derived) classes
1683 --enable-protocols use wxProtocol and derived classes
1684 --enable-ftp use wxFTP (requires wxProtocol
1685 --enable-http use wxHTTP (requires wxProtocol
1686 --enable-fileproto use wxFileProto class (requires wxProtocol
1687 --enable-sockets use socket/network classes
1688 --enable-ole use OLE classes (Win32 only)
1689 --enable-dataobj use data object classes
1690 --enable-ipc use interprocess communication (wxSocket etc.)
e7ff34ed 1691 --enable-baseevtloop use event loop in console programs too
05787cec 1692 --enable-epollloop use wxEpollDispatcher class (Linux only)
e7ff34ed 1693 --enable-selectloop use wxSelectDispatcher class
a848cd7e 1694 --enable-apple_ieee use the Apple IEEE codec
81f90336 1695 --enable-arcstream use wxArchive streams
4db03d26 1696 --enable-base64 use base64 encoding/decoding functions
eaff0f0d 1697 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 1698 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
1699 --enable-cmdline use wxCmdLineParser class
1700 --enable-datetime use wxDateTime class
36b6448c 1701 --enable-debugreport use wxDebugReport class
a848cd7e
SC
1702 --enable-dialupman use dialup network classes
1703 --enable-dynlib use wxLibrary class for DLL loading
1704 --enable-dynamicloader use (new) wxDynamicLibrary class
1705 --enable-exceptions build exception-safe library
1706 --enable-ffile use wxFFile class
1707 --enable-file use wxFile class
1708 --enable-filesystem use virtual file systems classes
ff427585 1709 --enable-fontenum use wxFontEnumerator class
a848cd7e 1710 --enable-fontmap use font encodings conversion classes
26e422a9 1711 --enable-fs_archive use virtual archive filesystems
a848cd7e 1712 --enable-fs_inet use virtual HTTP/FTP filesystems
916af76f 1713 --enable-fs_zip now replaced by fs_archive
a848cd7e
SC
1714 --enable-geometry use geometry class
1715 --enable-log use logging system
1716 --enable-longlong use wxLongLong class
1717 --enable-mimetype use wxMimeTypesManager
a848cd7e 1718 --enable-snglinst use wxSingleInstanceChecker class
07158944 1719 --enable-stdpaths use wxStandardPaths class
a848cd7e 1720 --enable-stopwatch use wxStopWatch class
07158944 1721 --enable-streams use wxStream etc classes
a848cd7e 1722 --enable-sysoptions use wxSystemOptions
26e422a9 1723 --enable-tarstream use wxTar streams
a848cd7e
SC
1724 --enable-textbuf use wxTextBuffer class
1725 --enable-textfile use wxTextFile class
1726 --enable-timer use wxTimer class
a848cd7e 1727 --enable-sound use wxSound class
3b57de8b 1728 --enable-mediactrl use wxMediaCtrl class
15291213 1729 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1730 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1731 --enable-zipstream use wxZip streams
a848cd7e 1732 --enable-url use wxURL class
ca5c6ac3 1733 --enable-variant use wxVariant class
a848cd7e
SC
1734 --enable-protocol use wxProtocol class
1735 --enable-protocol-http HTTP support in wxProtocol
1736 --enable-protocol-ftp FTP support in wxProtocol
1737 --enable-protocol-file FILE support in wxProtocol
1738 --enable-threads use threads
91a5e00c
VS
1739 --enable-iniconf use wxIniConfig (Win32 only)
1740 --enable-regkey use wxRegKey class (Win32 only)
a848cd7e
SC
1741 --enable-docview use document view architecture
1742 --enable-help use help subsystem
1743 --enable-mshtmlhelp use MS HTML Help (win32)
1744 --enable-html use wxHTML sub-library
1745 --enable-htmlhelp use wxHTML-based help
9a8f0513 1746 --enable-xrc use XRC resources sub-library
3f60522a 1747 --enable-aui use AUI docking library
54429bb3 1748 --enable-stc use wxStyledTextCtrl library
a848cd7e
SC
1749 --enable-constraints use layout-constraints system
1750 --enable-printarch use printing architecture
1751 --enable-mdi use multiple document interface architecture
8a7b1113 1752 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1753 --enable-loggui use standard GUI logger
1754 --enable-logwin use wxLogWindow
1755 --enable-logdialog use wxLogDialog
646b6ec1 1756 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1757 --enable-richtext use wxRichTextCtrl
f43426c1 1758 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e 1759 --enable-postscript use wxPostscriptDC device context (default for gtk+)
b0fc907f 1760 --enable-svg use wxSVGFileDC device context
a848cd7e
SC
1761 --enable-clipboard use wxClipboard class
1762 --enable-dnd use Drag'n'Drop classes
1763 --enable-metafile use win32 metafiles
3c7410a5 1764 --disable-controls disable compilation of all standard controls
a848cd7e 1765 --enable-accel use accelerators
3ea50042 1766 --enable-animatectrl use wxAnimationCtrl class
a848cd7e
SC
1767 --enable-button use wxButton class
1768 --enable-bmpbutton use wxBitmapButton class
95a46303 1769 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1770 --enable-calendar use wxCalendarCtrl class
1771 --enable-caret use wxCaret class
1772 --enable-checkbox use wxCheckBox class
1773 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1774 --enable-choice use wxChoice class
92bbdbcd 1775 --enable-choicebook use wxChoicebook class
bd915ace 1776 --enable-collpane use wxCollapsiblePane class
e9263684 1777 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1778 --enable-combobox use wxComboBox class
a57d600f 1779 --enable-comboctrl use wxComboCtrl class
da98e9be 1780 --enable-datepick use wxDatePickerCtrl class
e9263684 1781 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1782 --enable-display use wxDisplay class
88bbc332 1783 --enable-detect_sm use code to detect X11 session manager
23575150 1784 --enable-editablebox use wxEditableListBox class
e9263684 1785 --enable-filepicker use wxFilePickerCtrl class
0cf3e587 1786 --enable-filectrl use wxFileCtrl class
e9263684 1787 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1788 --enable-gauge use wxGauge class
1789 --enable-grid use wxGrid class
1ecacba4 1790 --enable-dataviewctrl use wxDataViewCtrl class
6954625c 1791 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1792 --enable-imaglist use wxImageList class
1793 --enable-listbook use wxListbook class
1794 --enable-listbox use wxListBox class
1795 --enable-listctrl use wxListCtrl class
1796 --enable-notebook use wxNotebook class
a57d600f 1797 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1798 --enable-radiobox use wxRadioBox class
1799 --enable-radiobtn use wxRadioButton class
1800 --enable-sash use wxSashWindow class
1801 --enable-scrollbar use wxScrollBar class and scrollable windows
3f7f284d 1802 --enable-searchctrl use wxSearchCtrl class
a848cd7e
SC
1803 --enable-slider use wxSlider class
1804 --enable-spinbtn use wxSpinButton class
1805 --enable-spinctrl use wxSpinCtrl class
1806 --enable-splitter use wxSplitterWindow class
1807 --enable-statbmp use wxStaticBitmap class
1808 --enable-statbox use wxStaticBox class
1809 --enable-statline use wxStaticLine class
1810 --enable-stattext use wxStaticText class
1811 --enable-statusbar use wxStatusBar class
1812 --enable-tabdialog use wxTabControl class
4f167b46 1813 --enable-taskbaricon use wxTaskBarIcon class
a848cd7e
SC
1814 --enable-textctrl use wxTextCtrl class
1815 --enable-togglebtn use wxToggleButton class
1816 --enable-toolbar use wxToolBar class
1817 --enable-tbarnative use native wxToolBar class
0093c2fc 1818 --enable-treebook use wxTreebook class
5ec3bc43 1819 --enable-toolbook use wxToolbook class
a848cd7e
SC
1820 --enable-treectrl use wxTreeCtrl class
1821 --enable-tipwindow use wxTipWindow class
1822 --enable-popupwin use wxPopUpWindow class
1823 --enable-commondlg use all common dialogs
319c5ed4 1824 --enable-aboutdlg use wxAboutBox
a848cd7e
SC
1825 --enable-choicedlg use wxChoiceDialog
1826 --enable-coldlg use wxColourDialog
1827 --enable-filedlg use wxFileDialog
1828 --enable-finddlg use wxFindReplaceDialog
1829 --enable-fontdlg use wxFontDialog
1830 --enable-dirdlg use wxDirDialog
1831 --enable-msgdlg use wxMessageDialog
1832 --enable-numberdlg use wxNumberEntryDialog
1833 --enable-splash use wxSplashScreen
1834 --enable-textdlg use wxTextDialog
1835 --enable-tipdlg use startup tips
1836 --enable-progressdlg use wxProgressDialog
1837 --enable-wizarddlg use wxWizard
1838 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1839 --enable-miniframe use wxMiniFrame class
1840 --enable-tooltips use wxToolTip class
1841 --enable-splines use spline drawing code
fbe2ca43 1842 --enable-mousewheel use mousewheel
a848cd7e
SC
1843 --enable-validators use wxValidator and derived classes
1844 --enable-busyinfo use wxBusyInfo
4cb1d3da 1845 --enable-joystick use wxJoystick
38b4a946 1846 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1847 --enable-dragimage use wxDragImage
1848 --enable-accessibility enable accessibility support
1849 --enable-palette use wxPalette class
1850 --enable-image use wxImage class
1851 --enable-gif use gif images (GIF file format)
1852 --enable-pcx use pcx images (PCX file format)
bb9e79c0 1853 --enable-tga use tga images (TGA file format)
a848cd7e
SC
1854 --enable-iff use iff images (IFF file format)
1855 --enable-pnm use pnm images (PNM file format)
1856 --enable-xpm use xpm images (XPM file format)
1857 --enable-icocur use Windows ICO and CUR formats
5d18e029 1858 --enable-dccache cache temporary wxDC objects (Win32 only)
0295153c 1859 --enable-ps-in-msw use PS printing in wxMSW (Win32 only)
6fdf2acc 1860 --enable-ownerdrawn use owner drawn controls (Win32 only)
5d18e029 1861 --enable-uxtheme enable support for Windows XP themed look (Win32 only)
f77c0fe3 1862 --enable-wxdib use wxDIB class (Win32 only)
a848cd7e
SC
1863 --disable-largefile omit support for large files
1864 --disable-gtktest do not try to compile and run a test GTK+ program
1865 --disable-gtktest Do not try to compile and run a test GTK program
1866 --disable-sdltest Do not try to compile and run a test SDL program
1867 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1868 --disable-dependency-tracking
1869 don't use dependency tracking even if the compiler
1870 can
ebee3cd0
VS
1871 --disable-precomp-headers
1872 don't use precompiled headers even if compiler can
a848cd7e
SC
1873
1874Optional Packages:
1875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1877 --without-subdirs don't generate makefiles for samples/demos/...
6e198e97
VZ
1878 --with-flavour=NAME specify a name to identify this build
1879 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
f34ca037 1880 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1881 --with-motif use Motif/Lesstif
1882 --with-mac use Mac OS X
1883 --with-cocoa use Cocoa
1884 --with-wine use Wine
1885 --with-msw use MS-Windows
1886 --with-pm use OS/2 Presentation Manager
1887 --with-mgl use SciTech MGL
b3c86150 1888 --with-directfb use DirectFB
a848cd7e
SC
1889 --with-microwin use MicroWindows
1890 --with-x11 use X11
1891 --with-libpng use libpng (PNG image format)
1892 --with-libjpeg use libjpeg (JPEG file format)
1893 --with-libtiff use libtiff (TIFF file format)
1894 --with-libxpm use libxpm (XPM file format)
1895 --with-libmspack use libmspack (CHM help files loading)
bd8a7646 1896 --without-gtkprint don't use GTK printing support
6e198e97 1897 --without-gnomeprint don't use GNOME printing libraries
2b850ae1 1898 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1899 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1900 --with-opengl use OpenGL (or Mesa)
1901 --with-dmalloc use dmalloc library (http://dmalloc.com/)
84ebfcbd 1902 --with-sdl use SDL for audio on Unix
a848cd7e
SC
1903 --with-regex enable support for wxRegEx class
1904 --with-zlib use zlib for LZW compression
1905 --with-odbc use the IODBC and wxODBC classes
1906 --with-expat enable XML support using expat parser
b4e05bdd
DE
1907 --with-macosx-sdk=PATH use an OS X SDK at PATH
1908 --with-macosx-version-min=VER build binaries which require at least this OS X version
a848cd7e
SC
1909 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1910 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1911 --with-x use the X Window System
1912 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1913 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1914 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1915 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1916 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1917
1918Some influential environment variables:
dcc1b6ad
VS
1919 CC C compiler command
1920 CFLAGS C compiler flags
1921 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1922 nonstandard directory <lib dir>
47964710
VS
1923 LIBS libraries to pass to the linker, e.g. -l<library>
1924 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1925 you have headers in a nonstandard directory <include dir>
dcc1b6ad
VS
1926 CPP C preprocessor
1927 CXX C++ compiler command
1928 CXXFLAGS C++ compiler flags
3ecd9f92 1929 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1930 DIRECTFB_CFLAGS
1931 C compiler flags for DIRECTFB, overriding pkg-config
1932 DIRECTFB_LIBS
1933 linker flags for DIRECTFB, overriding pkg-config
47964710 1934 XMKMF Path to xmkmf, Makefile generator for X Window System
3ecd9f92
MW
1935 PANGOX_CFLAGS
1936 C compiler flags for PANGOX, overriding pkg-config
1937 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1938 PANGOFT2_CFLAGS
1939 C compiler flags for PANGOFT2, overriding pkg-config
1940 PANGOFT2_LIBS
1941 linker flags for PANGOFT2, overriding pkg-config
1942 PANGOXFT_CFLAGS
1943 C compiler flags for PANGOXFT, overriding pkg-config
1944 PANGOXFT_LIBS
1945 linker flags for PANGOXFT, overriding pkg-config
bd8a7646
RR
1946 GTKPRINT_CFLAGS
1947 C compiler flags for GTKPRINT, overriding pkg-config
1948 GTKPRINT_LIBS
1949 linker flags for GTKPRINT, overriding pkg-config
3ecd9f92
MW
1950 LIBGNOMEPRINTUI_CFLAGS
1951 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1952 LIBGNOMEPRINTUI_LIBS
1953 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1954 GNOMEVFS_CFLAGS
1955 C compiler flags for GNOMEVFS, overriding pkg-config
1956 GNOMEVFS_LIBS
1957 linker flags for GNOMEVFS, overriding pkg-config
1958 HILDON_CFLAGS
1959 C compiler flags for HILDON, overriding pkg-config
1960 HILDON_LIBS linker flags for HILDON, overriding pkg-config
64b75e64
RD
1961 CAIRO_CFLAGS
1962 C compiler flags for CAIRO, overriding pkg-config
1963 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
3ecd9f92
MW
1964 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1965 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1966
1967Use these variables to override the choices made by `configure' or to help
1968it to find libraries and programs with nonstandard names/locations.
1969
77ffb593 1970Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 1971_ACEOF
47964710 1972ac_status=$?
a848cd7e
SC
1973fi
1974
1975if test "$ac_init_help" = "recursive"; then
1976 # If there are subdirs, report their specific --help.
a848cd7e 1977 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
47964710 1978 test -d "$ac_dir" || continue
a848cd7e
SC
1979 ac_builddir=.
1980
47964710
VS
1981case "$ac_dir" in
1982.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1983*)
a848cd7e 1984 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47964710
VS
1985 # A ".." for each directory in $ac_dir_suffix.
1986 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1987 case $ac_top_builddir_sub in
1988 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1989 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1990 esac ;;
1991esac
1992ac_abs_top_builddir=$ac_pwd
1993ac_abs_builddir=$ac_pwd$ac_dir_suffix
1994# for backward compatibility:
1995ac_top_builddir=$ac_top_build_prefix
a848cd7e
SC
1996
1997case $srcdir in
47964710 1998 .) # We are building in place.
a848cd7e 1999 ac_srcdir=.
47964710
VS
2000 ac_top_srcdir=$ac_top_builddir_sub
2001 ac_abs_top_srcdir=$ac_pwd ;;
2002 [\\/]* | ?:[\\/]* ) # Absolute name.
a848cd7e 2003 ac_srcdir=$srcdir$ac_dir_suffix;
47964710
VS
2004 ac_top_srcdir=$srcdir
2005 ac_abs_top_srcdir=$srcdir ;;
2006 *) # Relative name.
2007 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2008 ac_top_srcdir=$ac_top_build_prefix$srcdir
2009 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4db03d26 2010esac
47964710
VS
2011ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2012
2013 cd "$ac_dir" || { ac_status=$?; continue; }
2014 # Check for guested configure.
2015 if test -f "$ac_srcdir/configure.gnu"; then
2016 echo &&
2017 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2018 elif test -f "$ac_srcdir/configure"; then
2019 echo &&
2020 $SHELL "$ac_srcdir/configure" --help=recursive
a848cd7e
SC
2021 else
2022 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
47964710
VS
2023 fi || ac_status=$?
2024 cd "$ac_pwd" || { ac_status=$?; break; }
a848cd7e
SC
2025 done
2026fi
2027
47964710 2028test -n "$ac_init_help" && exit $ac_status
a848cd7e
SC
2029if $ac_init_version; then
2030 cat <<\_ACEOF
7fd3acaf 2031wxWidgets configure 2.9.0
47964710 2032generated by GNU Autoconf 2.61
a848cd7e 2033
47964710
VS
2034Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
20352002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
a848cd7e
SC
2036This configure script is free software; the Free Software Foundation
2037gives unlimited permission to copy, distribute and modify it.
2038_ACEOF
47964710 2039 exit
a848cd7e 2040fi
47964710 2041cat >config.log <<_ACEOF
a848cd7e
SC
2042This file contains any messages produced by compilers while
2043running configure, to aid debugging if configure makes a mistake.
2044
7fd3acaf 2045It was created by wxWidgets $as_me 2.9.0, which was
47964710 2046generated by GNU Autoconf 2.61. Invocation command line was
a848cd7e
SC
2047
2048 $ $0 $@
2049
2050_ACEOF
47964710 2051exec 5>>config.log
a848cd7e
SC
2052{
2053cat <<_ASUNAME
2054## --------- ##
2055## Platform. ##
2056## --------- ##
2057
2058hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2059uname -m = `(uname -m) 2>/dev/null || echo unknown`
2060uname -r = `(uname -r) 2>/dev/null || echo unknown`
2061uname -s = `(uname -s) 2>/dev/null || echo unknown`
2062uname -v = `(uname -v) 2>/dev/null || echo unknown`
2063
2064/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2065/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2066
2067/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2068/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2069/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
47964710 2070/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
a848cd7e
SC
2071/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2072/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2073/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2074
2075_ASUNAME
2076
2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 echo "PATH: $as_dir"
2083done
47964710 2084IFS=$as_save_IFS
a848cd7e
SC
2085
2086} >&5
2087
2088cat >&5 <<_ACEOF
2089
2090
2091## ----------- ##
2092## Core tests. ##
2093## ----------- ##
2094
2095_ACEOF
2096
2097
2098# Keep a trace of the command line.
2099# Strip out --no-create and --no-recursion so they do not pile up.
2100# Strip out --silent because we don't want to record it for future runs.
2101# Also quote any args containing shell meta-characters.
2102# Make two passes to allow for proper duplicate-argument suppression.
2103ac_configure_args=
2104ac_configure_args0=
2105ac_configure_args1=
a848cd7e
SC
2106ac_must_keep_next=false
2107for ac_pass in 1 2
2108do
2109 for ac_arg
2110 do
2111 case $ac_arg in
2112 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2114 | -silent | --silent | --silen | --sile | --sil)
2115 continue ;;
47964710 2116 *\'*)
a848cd7e
SC
2117 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2118 esac
2119 case $ac_pass in
2120 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2121 2)
2122 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2123 if test $ac_must_keep_next = true; then
ac1cb8d3 2124 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 2125 else
ac1cb8d3
VS
2126 case $ac_arg in
2127 *=* | --config-cache | -C | -disable-* | --disable-* \
2128 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2129 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2130 | -with-* | --with-* | -without-* | --without-* | --x)
2131 case "$ac_configure_args0 " in
2132 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2133 esac
2134 ;;
2135 -* ) ac_must_keep_next=true ;;
2136 esac
a848cd7e 2137 fi
47964710 2138 ac_configure_args="$ac_configure_args '$ac_arg'"
a848cd7e
SC
2139 ;;
2140 esac
2141 done
2142done
2143$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2144$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2145
2146# When interrupted or exit'd, cleanup temporary files, and complete
2147# config.log. We remove comments because anyway the quotes in there
2148# would cause problems or look ugly.
47964710
VS
2149# WARNING: Use '\'' to represent an apostrophe within the trap.
2150# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
a848cd7e
SC
2151trap 'exit_status=$?
2152 # Save into config.log some information that might help in debugging.
2153 {
2154 echo
2155
2156 cat <<\_ASBOX
2157## ---------------- ##
2158## Cache variables. ##
2159## ---------------- ##
2160_ASBOX
2161 echo
2162 # The following way of writing the cache mishandles newlines in values,
47964710
VS
2163(
2164 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2165 eval ac_val=\$$ac_var
2166 case $ac_val in #(
2167 *${as_nl}*)
2168 case $ac_var in #(
2169 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2170echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2171 esac
2172 case $ac_var in #(
2173 _ | IFS | as_nl) ;; #(
2174 *) $as_unset $ac_var ;;
2175 esac ;;
2176 esac
2177 done
a848cd7e 2178 (set) 2>&1 |
47964710
VS
2179 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2180 *${as_nl}ac_space=\ *)
a848cd7e 2181 sed -n \
47964710
VS
2182 "s/'\''/'\''\\\\'\'''\''/g;
2183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2184 ;; #(
a848cd7e 2185 *)
47964710 2186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
a848cd7e 2187 ;;
47964710
VS
2188 esac |
2189 sort
2190)
a848cd7e
SC
2191 echo
2192
2193 cat <<\_ASBOX
2194## ----------------- ##
2195## Output variables. ##
2196## ----------------- ##
2197_ASBOX
2198 echo
2199 for ac_var in $ac_subst_vars
2200 do
47964710
VS
2201 eval ac_val=\$$ac_var
2202 case $ac_val in
2203 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204 esac
2205 echo "$ac_var='\''$ac_val'\''"
a848cd7e
SC
2206 done | sort
2207 echo
2208
2209 if test -n "$ac_subst_files"; then
2210 cat <<\_ASBOX
47964710
VS
2211## ------------------- ##
2212## File substitutions. ##
2213## ------------------- ##
a848cd7e
SC
2214_ASBOX
2215 echo
2216 for ac_var in $ac_subst_files
2217 do
47964710
VS
2218 eval ac_val=\$$ac_var
2219 case $ac_val in
2220 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221 esac
2222 echo "$ac_var='\''$ac_val'\''"
a848cd7e
SC
2223 done | sort
2224 echo
2225 fi
2226
2227 if test -s confdefs.h; then
2228 cat <<\_ASBOX
2229## ----------- ##
2230## confdefs.h. ##
2231## ----------- ##
2232_ASBOX
2233 echo
47964710 2234 cat confdefs.h
a848cd7e
SC
2235 echo
2236 fi
2237 test "$ac_signal" != 0 &&
2238 echo "$as_me: caught signal $ac_signal"
2239 echo "$as_me: exit $exit_status"
2240 } >&5
47964710
VS
2241 rm -f core *.core core.conftest.* &&
2242 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
a848cd7e 2243 exit $exit_status
47964710 2244' 0
a848cd7e
SC
2245for ac_signal in 1 2 13 15; do
2246 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2247done
2248ac_signal=0
2249
2250# confdefs.h avoids OS command line length limits that DEFS can exceed.
47964710 2251rm -f -r conftest* confdefs.h
a848cd7e
SC
2252
2253# Predefined preprocessor variables.
2254
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE_NAME "$PACKAGE_NAME"
2257_ACEOF
2258
2259
2260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2262_ACEOF
2263
2264
2265cat >>confdefs.h <<_ACEOF
2266#define PACKAGE_VERSION "$PACKAGE_VERSION"
2267_ACEOF
2268
2269
2270cat >>confdefs.h <<_ACEOF
2271#define PACKAGE_STRING "$PACKAGE_STRING"
2272_ACEOF
2273
2274
2275cat >>confdefs.h <<_ACEOF
2276#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2277_ACEOF
2278
2279
2280# Let the site file select an alternate cache file if it wants to.
2281# Prefer explicitly selected file to automatically selected ones.
47964710
VS
2282if test -n "$CONFIG_SITE"; then
2283 set x "$CONFIG_SITE"
2284elif test "x$prefix" != xNONE; then
2285 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2286else
2287 set x "$ac_default_prefix/share/config.site" \
2288 "$ac_default_prefix/etc/config.site"
a848cd7e 2289fi
47964710
VS
2290shift
2291for ac_site_file
2292do
a848cd7e
SC
2293 if test -r "$ac_site_file"; then
2294 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2295echo "$as_me: loading site script $ac_site_file" >&6;}
2296 sed 's/^/| /' "$ac_site_file" >&5
2297 . "$ac_site_file"
2298 fi
2299done
2300
2301if test -r "$cache_file"; then
2302 # Some versions of bash will fail to source /dev/null (special
2303 # files actually), so we avoid doing that.
2304 if test -f "$cache_file"; then
2305 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2306echo "$as_me: loading cache $cache_file" >&6;}
2307 case $cache_file in
47964710
VS
2308 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2309 *) . "./$cache_file";;
a848cd7e
SC
2310 esac
2311 fi
2312else
2313 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2314echo "$as_me: creating cache $cache_file" >&6;}
2315 >$cache_file
2316fi
2317
2318# Check that the precious variables saved in the cache have kept the same
2319# value.
2320ac_cache_corrupted=false
47964710 2321for ac_var in $ac_precious_vars; do
a848cd7e
SC
2322 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2323 eval ac_new_set=\$ac_env_${ac_var}_set
47964710
VS
2324 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2325 eval ac_new_val=\$ac_env_${ac_var}_value
a848cd7e
SC
2326 case $ac_old_set,$ac_new_set in
2327 set,)
2328 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2329echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2330 ac_cache_corrupted=: ;;
2331 ,set)
2332 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2333echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2334 ac_cache_corrupted=: ;;
2335 ,);;
2336 *)
2337 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 2338 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 2339echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 2340 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 2341echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 2342 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 2343echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 2344 ac_cache_corrupted=:
a848cd7e
SC
2345 fi;;
2346 esac
2347 # Pass precious variables to config.status.
2348 if test "$ac_new_set" = set; then
2349 case $ac_new_val in
47964710 2350 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a848cd7e
SC
2351 *) ac_arg=$ac_var=$ac_new_val ;;
2352 esac
2353 case " $ac_configure_args " in
2354 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2355 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2356 esac
2357 fi
2358done
2359if $ac_cache_corrupted; then
2360 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2361echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2362 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2363echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2364 { (exit 1); exit 1; }; }
2365fi
2366
a848cd7e
SC
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
47964710
VS
2391ac_ext=c
2392ac_cpp='$CPP $CPPFLAGS'
2393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
2396
2397
2398
2399
2400
2401ac_aux_dir=
47964710
VS
2402for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2403 if test -f "$ac_dir/install-sh"; then
a848cd7e
SC
2404 ac_aux_dir=$ac_dir
2405 ac_install_sh="$ac_aux_dir/install-sh -c"
2406 break
47964710 2407 elif test -f "$ac_dir/install.sh"; then
a848cd7e
SC
2408 ac_aux_dir=$ac_dir
2409 ac_install_sh="$ac_aux_dir/install.sh -c"
2410 break
47964710 2411 elif test -f "$ac_dir/shtool"; then
a848cd7e
SC
2412 ac_aux_dir=$ac_dir
2413 ac_install_sh="$ac_aux_dir/shtool install -c"
2414 break
2415 fi
2416done
2417if test -z "$ac_aux_dir"; then
47964710
VS
2418 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2419echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
a848cd7e
SC
2420 { (exit 1); exit 1; }; }
2421fi
47964710
VS
2422
2423# These three variables are undocumented and unsupported,
2424# and are intended to be withdrawn in a future Autoconf release.
2425# They can cause serious problems if a builder's source tree is in a directory
2426# whose full name contains unusual characters.
2427ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2428ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2429ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2430
a848cd7e
SC
2431
2432# Make sure we can run config.sub.
47964710
VS
2433$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2434 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2435echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
a848cd7e
SC
2436 { (exit 1); exit 1; }; }
2437
47964710
VS
2438{ echo "$as_me:$LINENO: checking build system type" >&5
2439echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
a848cd7e
SC
2440if test "${ac_cv_build+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442else
47964710
VS
2443 ac_build_alias=$build_alias
2444test "x$ac_build_alias" = x &&
2445 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2446test "x$ac_build_alias" = x &&
a848cd7e
SC
2447 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2448echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2449 { (exit 1); exit 1; }; }
47964710
VS
2450ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2451 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2452echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
a848cd7e
SC
2453 { (exit 1); exit 1; }; }
2454
2455fi
47964710
VS
2456{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2457echo "${ECHO_T}$ac_cv_build" >&6; }
2458case $ac_cv_build in
2459*-*-*) ;;
2460*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2461echo "$as_me: error: invalid value of canonical build" >&2;}
2462 { (exit 1); exit 1; }; };;
2463esac
a848cd7e 2464build=$ac_cv_build
47964710
VS
2465ac_save_IFS=$IFS; IFS='-'
2466set x $ac_cv_build
2467shift
2468build_cpu=$1
2469build_vendor=$2
2470shift; shift
2471# Remember, the first character of IFS is used to create $*,
2472# except with old shells:
2473build_os=$*
2474IFS=$ac_save_IFS
2475case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2476
2477
2478{ echo "$as_me:$LINENO: checking host system type" >&5
2479echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
a848cd7e
SC
2480if test "${ac_cv_host+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482else
47964710
VS
2483 if test "x$host_alias" = x; then
2484 ac_cv_host=$ac_cv_build
2485else
2486 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2487 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2488echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
a848cd7e 2489 { (exit 1); exit 1; }; }
47964710 2490fi
a848cd7e
SC
2491
2492fi
47964710
VS
2493{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2494echo "${ECHO_T}$ac_cv_host" >&6; }
2495case $ac_cv_host in
2496*-*-*) ;;
2497*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2498echo "$as_me: error: invalid value of canonical host" >&2;}
2499 { (exit 1); exit 1; }; };;
2500esac
a848cd7e 2501host=$ac_cv_host
47964710
VS
2502ac_save_IFS=$IFS; IFS='-'
2503set x $ac_cv_host
2504shift
2505host_cpu=$1
2506host_vendor=$2
2507shift; shift
2508# Remember, the first character of IFS is used to create $*,
2509# except with old shells:
2510host_os=$*
2511IFS=$ac_save_IFS
2512case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2513
2514
2515{ echo "$as_me:$LINENO: checking target system type" >&5
2516echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
a848cd7e
SC
2517if test "${ac_cv_target+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
47964710
VS
2520 if test "x$target_alias" = x; then
2521 ac_cv_target=$ac_cv_host
2522else
2523 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2524 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2525echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
a848cd7e 2526 { (exit 1); exit 1; }; }
47964710 2527fi
a848cd7e
SC
2528
2529fi
47964710
VS
2530{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2531echo "${ECHO_T}$ac_cv_target" >&6; }
2532case $ac_cv_target in
2533*-*-*) ;;
2534*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2535echo "$as_me: error: invalid value of canonical target" >&2;}
2536 { (exit 1); exit 1; }; };;
2537esac
a848cd7e 2538target=$ac_cv_target
47964710
VS
2539ac_save_IFS=$IFS; IFS='-'
2540set x $ac_cv_target
2541shift
2542target_cpu=$1
2543target_vendor=$2
2544shift; shift
2545# Remember, the first character of IFS is used to create $*,
2546# except with old shells:
2547target_os=$*
2548IFS=$ac_save_IFS
2549case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
a848cd7e
SC
2550
2551
2552# The aliases save the names the user supplied, while $host etc.
2553# will get canonicalized.
2554test -n "$target_alias" &&
2555 test "$program_prefix$program_suffix$program_transform_name" = \
2556 NONENONEs,x,x, &&
2557 program_prefix=${target_alias}-
2558
2559
2560
ceec2216 2561wx_major_version_number=2
7fd3acaf
RD
2562wx_minor_version_number=9
2563wx_release_number=0
2564wx_subrelease_number=0
a848cd7e 2565
ceec2216
RL
2566WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2567WX_VERSION=$WX_RELEASE.$wx_release_number
2568WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 2569
ceec2216 2570WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 2571
a848cd7e 2572
02b05020
VZ
2573wx_top_builddir="`pwd`"
2574
2575
a848cd7e
SC
2576
2577
2578USE_UNIX=1
2579USE_OS2=0
2580USE_WIN32=0
2581USE_DOS=0
2582USE_BEOS=0
2583USE_MAC=0
2584
2585USE_AIX=
2586USE_BSD= USE_DARWIN= USE_FREEBSD=
2587USE_GNU= USE_HPUX=
2588USE_LINUX=
2589USE_NETBSD=
2590USE_OPENBSD=
2591USE_OSF= USE_SGI=
2592USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
2593USE_ULTRIX=
2594USE_UNIXWARE=
2595
2596USE_ALPHA=
2597
2598NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2599
b3c86150 2600ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
2601
2602DEFAULT_wxUSE_COCOA=0
2603DEFAULT_wxUSE_GTK=0
2604DEFAULT_wxUSE_MAC=0
2605DEFAULT_wxUSE_MGL=0
2606DEFAULT_wxUSE_MICROWIN=0
2607DEFAULT_wxUSE_MOTIF=0
2608DEFAULT_wxUSE_MSW=0
2609DEFAULT_wxUSE_PM=0
2610DEFAULT_wxUSE_X11=0
b3c86150 2611DEFAULT_wxUSE_DFB=0
a848cd7e
SC
2612
2613DEFAULT_DEFAULT_wxUSE_COCOA=0
2614DEFAULT_DEFAULT_wxUSE_GTK=0
2615DEFAULT_DEFAULT_wxUSE_MAC=0
2616DEFAULT_DEFAULT_wxUSE_MGL=0
2617DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2618DEFAULT_DEFAULT_wxUSE_MOTIF=0
2619DEFAULT_DEFAULT_wxUSE_MSW=0
2620DEFAULT_DEFAULT_wxUSE_PM=0
2621DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 2622DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
2623
2624PROGRAM_EXT=
2625SO_SUFFIX=so
2626SAMPLES_RPATH_FLAG=
2627SAMPLES_RPATH_POSTLINK=
2628
a03b8b04
RD
2629DEFAULT_STD_FLAG=yes
2630
a848cd7e
SC
2631case "${host}" in
2632 *-hp-hpux* )
2633 USE_HPUX=1
2634 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2635 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2636 SO_SUFFIX=sl
2637 cat >>confdefs.h <<\_ACEOF
2638#define __HPUX__ 1
2639_ACEOF
2640
2eef8513 2641
c92ad099 2642 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
2643 ;;
2644 *-*-linux* )
2645 USE_LINUX=1
2646 cat >>confdefs.h <<\_ACEOF
2647#define __LINUX__ 1
2648_ACEOF
2649
2650 TMP=`uname -m`
2651 if test "x$TMP" = "xalpha"; then
2652 USE_ALPHA=1
2653 cat >>confdefs.h <<\_ACEOF
2654#define __ALPHA__ 1
2655_ACEOF
2656
2657 fi
2658 DEFAULT_DEFAULT_wxUSE_GTK=1
2659 ;;
2660 *-*-gnu* | *-*-k*bsd*-gnu )
2661 USE_GNU=1
2662 TMP=`uname -m`
2663 if test "x$TMP" = "xalpha"; then
2664 USE_ALPHA=1
2665 cat >>confdefs.h <<\_ACEOF
2666#define __ALPHA__ 1
2667_ACEOF
2668
2669 fi
2670 DEFAULT_DEFAULT_wxUSE_GTK=1
2671 ;;
2672 *-*-irix5* | *-*-irix6* )
2673 USE_SGI=1
2674 USE_SVR4=1
2675 cat >>confdefs.h <<\_ACEOF
2676#define __SGI__ 1
2677_ACEOF
2678
2679 cat >>confdefs.h <<\_ACEOF
2680#define __SVR4__ 1
2681_ACEOF
2682
2683 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2684 ;;
2685 *-*-solaris2* )
2686 USE_SUN=1
2687 USE_SOLARIS=1
2688 USE_SVR4=1
2689 cat >>confdefs.h <<\_ACEOF
2690#define __SUN__ 1
2691_ACEOF
2692
2693 cat >>confdefs.h <<\_ACEOF
2694#define __SOLARIS__ 1
2695_ACEOF
2696
2697 cat >>confdefs.h <<\_ACEOF
2698#define __SVR4__ 1
2699_ACEOF
2700
2701 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2702 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2703 ;;
2704 *-*-sunos4* )
2705 USE_SUN=1
2706 USE_SUNOS=1
2707 USE_BSD=1
2708 cat >>confdefs.h <<\_ACEOF
2709#define __SUN__ 1
2710_ACEOF
2711
2712 cat >>confdefs.h <<\_ACEOF
2713#define __SUNOS__ 1
2714_ACEOF
2715
2716 cat >>confdefs.h <<\_ACEOF
2717#define __BSD__ 1
2718_ACEOF
2719
2720 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2721 ;;
2722 *-*-freebsd*)
2723 USE_BSD=1
2724 USE_FREEBSD=1
2725 cat >>confdefs.h <<\_ACEOF
2726#define __FREEBSD__ 1
2727_ACEOF
2728
2729 cat >>confdefs.h <<\_ACEOF
2730#define __BSD__ 1
2731_ACEOF
2732
2733 DEFAULT_DEFAULT_wxUSE_GTK=1
2734 ;;
c9a66001 2735 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
2736 USE_BSD=1
2737 USE_OPENBSD=1
2738 cat >>confdefs.h <<\_ACEOF
2739#define __OPENBSD__ 1
2740_ACEOF
2741
2742 cat >>confdefs.h <<\_ACEOF
2743#define __BSD__ 1
2744_ACEOF
2745
2746 DEFAULT_DEFAULT_wxUSE_GTK=1
2747 ;;
2748 *-*-netbsd*)
2749 USE_BSD=1
2750 USE_NETBSD=1
2751 cat >>confdefs.h <<\_ACEOF
2752#define __NETBSD__ 1
2753_ACEOF
2754
2755 cat >>confdefs.h <<\_ACEOF
2756#define __BSD__ 1
2757_ACEOF
2758
2759 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 2760 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 2761
def7c04a 2762 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
2763 ;;
2764 *-*-osf* )
2765 USE_ALPHA=1
2766 USE_OSF=1
2767 cat >>confdefs.h <<\_ACEOF
2768#define __ALPHA__ 1
2769_ACEOF
2770
2771 cat >>confdefs.h <<\_ACEOF
2772#define __OSF__ 1
2773_ACEOF
2774
2775 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2776 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2777 ;;
2778 *-*-dgux5* )
2779 USE_ALPHA=1
2780 USE_SVR4=1
2781 cat >>confdefs.h <<\_ACEOF
2782#define __ALPHA__ 1
2783_ACEOF
2784
2785 cat >>confdefs.h <<\_ACEOF
2786#define __SVR4__ 1
2787_ACEOF
2788
2789 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2790 ;;
2791 *-*-sysv5* )
2792 USE_SYSV=1
2793 USE_SVR4=1
2794 cat >>confdefs.h <<\_ACEOF
2795#define __SYSV__ 1
2796_ACEOF
2797
2798 cat >>confdefs.h <<\_ACEOF
2799#define __SVR4__ 1
2800_ACEOF
2801
2802 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2803 ;;
2804 *-*-aix* )
2805 USE_AIX=1
2806 USE_SYSV=1
2807 USE_SVR4=1
2808 SO_SUFFIX=a
2809 cat >>confdefs.h <<\_ACEOF
2810#define __AIX__ 1
2811_ACEOF
2812
2813 cat >>confdefs.h <<\_ACEOF
2814#define __SYSV__ 1
2815_ACEOF
2816
2817 cat >>confdefs.h <<\_ACEOF
2818#define __SVR4__ 1
2819_ACEOF
2820
2821 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2822 ;;
2823
2824 *-*-*UnixWare*)
2825 USE_SYSV=1
2826 USE_SVR4=1
2827 USE_UNIXWARE=1
2828 cat >>confdefs.h <<\_ACEOF
2829#define __UNIXWARE__ 1
2830_ACEOF
2831
2832 ;;
2833
2834 *-*-cygwin* | *-*-mingw32* )
2835 SO_SUFFIX=dll
2836 PROGRAM_EXT=".exe"
a848cd7e
SC
2837 DEFAULT_DEFAULT_wxUSE_MSW=1
2838 ;;
2839
2840 *-pc-msdosdjgpp )
2841 USE_UNIX=0
2842 USE_DOS=1
2843 cat >>confdefs.h <<\_ACEOF
2844#define __DOS__ 1
2845_ACEOF
2846
2847 PROGRAM_EXT=".exe"
2848 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2849 ;;
2850
2851 *-pc-os2_emx | *-pc-os2-emx )
2852 cat >>confdefs.h <<\_ACEOF
2853#define __EMX__ 1
2854_ACEOF
2855
2856 USE_OS2=1
2857 cat >>confdefs.h <<\_ACEOF
2858#define __OS2__ 1
2859_ACEOF
2860
2861 PROGRAM_EXT=".exe"
2862 DEFAULT_DEFAULT_wxUSE_PM=1
2863 CXX=gcc
2864 LDFLAGS="$LDFLAGS -Zcrtdll"
2865 ac_executable_extensions=".exe"
2866 export ac_executable_extensions
2867 ac_save_IFS="$IFS"
2868 IFS='\\'
2869 ac_TEMP_PATH=
2870 for ac_dir in $PATH; do
2871 IFS=$ac_save_IFS
2872 if test -z "$ac_TEMP_PATH"; then
2873 ac_TEMP_PATH="$ac_dir"
2874 else
2875 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2876 fi
2877 done
2878 export PATH="$ac_TEMP_PATH"
2879 unset ac_TEMP_PATH
a03b8b04 2880 DEFAULT_STD_FLAG=no
a848cd7e
SC
2881 ;;
2882
cfda0ea8 2883 *-*-darwin* )
a848cd7e
SC
2884 USE_BSD=1
2885 USE_DARWIN=1
2886 SO_SUFFIX=dylib
2887 cat >>confdefs.h <<\_ACEOF
2888#define __BSD__ 1
2889_ACEOF
2890
2891 cat >>confdefs.h <<\_ACEOF
2892#define __DARWIN__ 1
a848cd7e
SC
2893_ACEOF
2894
2895 cat >>confdefs.h <<\_ACEOF
2896#define TARGET_CARBON 1
2897_ACEOF
2898
2899 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2900 DEFAULT_STD_FLAG=no
a848cd7e 2901 ;;
1e9e8aba
DE
2902 powerpc-apple-macos* )
2903 USE_UNIX=0
2904 ac_cv_c_bigendian=yes
2905 SO_SUFFIX=shlib
2906 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2907 DEFAULT_STD_FLAG=no
1e9e8aba 2908 ;;
a848cd7e
SC
2909
2910 *-*-beos* )
2911 USE_BEOS=1
2912 cat >>confdefs.h <<\_ACEOF
2913#define __BEOS__ 1
2914_ACEOF
2915
2916 ;;
2917
2918 *)
c9a66001
VZ
2919 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2920echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2921 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2922echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2923
2924 DEFAULT_DEFAULT_wxUSE_X11=1
2925 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2926esac
2927
2928
2929
2930
2931 wx_arg_cache_file="configarg.cache"
2932 echo "loading argument cache $wx_arg_cache_file"
2933 rm -f ${wx_arg_cache_file}.tmp
2934 touch ${wx_arg_cache_file}.tmp
2935 touch ${wx_arg_cache_file}
2936
2937
6e198e97 2938DEFAULT_wxUSE_ALL_FEATURES=yes
a848cd7e 2939
6e198e97
VZ
2940DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2941DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e 2942
238663c1
VZ
2943DEFAULT_wxUSE_DMALLOC=no
2944DEFAULT_wxUSE_LIBGNOMEVFS=no
2945DEFAULT_wxUSE_LIBHILDON=no
2946DEFAULT_wxUSE_LIBMSPACK=no
2947DEFAULT_wxUSE_LIBSDL=no
2948DEFAULT_wxUSE_ODBC=no
2949DEFAULT_wxUSE_OPENGL=no
a848cd7e 2950
6e198e97 2951DEFAULT_wxUSE_ACCESSIBILITY=no
238663c1
VZ
2952DEFAULT_wxUSE_DATAVIEWCTRL=no
2953DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2954DEFAULT_wxUSE_MEDIACTRL=no
2955DEFAULT_wxUSE_TAB_DIALOG=no
2956
2957DEFAULT_wxUSE_UNICODE_UTF8=auto
2958DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
a848cd7e 2959
57309d14
VZ
2960DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2961
6e198e97 2962DEFAULT_wxUSE_OFFICIAL_BUILD=no
a848cd7e 2963
6e198e97 2964DEFAULT_wxUSE_GTK2=yes
a848cd7e 2965
931d7698
DE
2966DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2967
a848cd7e 2968
a848cd7e
SC
2969for toolkit in `echo $ALL_TOOLKITS`; do
2970 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2971 if test "x$LINE" != "x" ; then
2972 has_toolkit_in_cache=1
2973 eval "DEFAULT_$LINE"
2974 eval "CACHE_$toolkit=1"
f34ca037
MW
2975
2976 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2977 if test "x$LINE" != "x" ; then
2978 eval "DEFAULT_$LINE"
2979 fi
a848cd7e
SC
2980 fi
2981done
2982
2983
2984
6e198e97
VZ
2985
2986
2987 enablestring=disable
2988 defaultval=
238663c1 2989 if test -z "$defaultval"; then
6e198e97
VZ
2990 if test x"$enablestring" = xdisable; then
2991 defaultval=yes
2992 else
2993 defaultval=no
2994 fi
2995 fi
2996
47964710
VS
2997 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2998echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2999 # Check whether --enable-gui was given.
a848cd7e 3000if test "${enable_gui+set}" = set; then
47964710 3001 enableval=$enable_gui;
a848cd7e 3002 if test "$enableval" = yes; then
d970f7d5 3003 wx_cv_use_gui='wxUSE_GUI=yes'
a848cd7e 3004 else
d970f7d5 3005 wx_cv_use_gui='wxUSE_GUI=no'
a848cd7e 3006 fi
8743ec79 3007 cache=yes
a848cd7e
SC
3008
3009else
3010
b46b1d59 3011 LINE=`grep "^wxUSE_GUI=" ${wx_arg_cache_file}`
a848cd7e 3012 if test "x$LINE" != x ; then
8630a814
VZ
3013 eval "DEFAULT_$LINE"
3014 cache=yes
3015 else
3016 cache=no
a848cd7e
SC
3017 fi
3018
d970f7d5 3019 wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
a848cd7e 3020
47964710
VS
3021fi
3022
a848cd7e 3023
d970f7d5 3024 eval "$wx_cv_use_gui"
8743ec79
VZ
3025 if test "x$cache" = xyes; then
3026 echo "wxUSE_GUI=$wxUSE_GUI" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
3027 fi
3028
6e198e97
VZ
3029 if test x"$enablestring" = xdisable; then
3030 if test $wxUSE_GUI = yes; then
3031 result=no
3032 else
3033 result=yes
3034 fi
a848cd7e 3035 else
6e198e97 3036 result=$wxUSE_GUI
a848cd7e
SC
3037 fi
3038
47964710
VS
3039 { echo "$as_me:$LINENO: result: $result" >&5
3040echo "${ECHO_T}$result" >&6; }
6e198e97 3041
a848cd7e 3042
077c7880 3043 enablestring=
6e198e97 3044 defaultval=
238663c1 3045 if test -z "$defaultval"; then
6e198e97
VZ
3046 if test x"$enablestring" = xdisable; then
3047 defaultval=yes
3048 else
3049 defaultval=no
3050 fi
3051 fi
3052
47964710
VS
3053 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3054echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3055 # Check whether --enable-monolithic was given.
a848cd7e 3056if test "${enable_monolithic+set}" = set; then
47964710 3057 enableval=$enable_monolithic;
a848cd7e 3058 if test "$enableval" = yes; then
d970f7d5 3059 wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
a848cd7e 3060 else
d970f7d5 3061 wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
a848cd7e 3062 fi
8743ec79 3063 cache=yes
a848cd7e
SC
3064
3065else
3066
b46b1d59 3067 LINE=`grep "^wxUSE_MONOLITHIC=" ${wx_arg_cache_file}`
a848cd7e 3068 if test "x$LINE" != x ; then
8630a814
VZ
3069 eval "DEFAULT_$LINE"
3070 cache=yes
3071 else
3072 cache=no
a848cd7e
SC
3073 fi
3074
d970f7d5 3075 wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
a848cd7e 3076
47964710
VS
3077fi
3078
a848cd7e 3079
d970f7d5 3080 eval "$wx_cv_use_monolithic"
8743ec79
VZ
3081 if test "x$cache" = xyes; then
3082 echo "wxUSE_MONOLITHIC=$wxUSE_MONOLITHIC" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
3083 fi
3084
6e198e97
VZ
3085 if test x"$enablestring" = xdisable; then
3086 if test $wxUSE_MONOLITHIC = yes; then
3087 result=no
3088 else
3089 result=yes
3090 fi
a848cd7e 3091 else
6e198e97 3092 result=$wxUSE_MONOLITHIC
a848cd7e
SC
3093 fi
3094
47964710
VS
3095 { echo "$as_me:$LINENO: result: $result" >&5
3096echo "${ECHO_T}$result" >&6; }
6e198e97 3097
a848cd7e 3098
077c7880 3099 enablestring=
6e198e97 3100 defaultval=
238663c1 3101 if test -z "$defaultval"; then
6e198e97
VZ
3102 if test x"$enablestring" = xdisable; then
3103 defaultval=yes
3104 else
3105 defaultval=no
3106 fi
3107 fi
3108
47964710
VS
3109 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3110echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3111 # Check whether --enable-plugins was given.
a848cd7e 3112if test "${enable_plugins+set}" = set; then
47964710 3113 enableval=$enable_plugins;
a848cd7e 3114 if test "$enableval" = yes; then
d970f7d5 3115 wx_cv_use_plugins='wxUSE_PLUGINS=yes'
a848cd7e 3116 else
d970f7d5 3117 wx_cv_use_plugins='wxUSE_PLUGINS=no'
a848cd7e 3118 fi
8743ec79 3119 cache=yes
a848cd7e
SC
3120
3121else
3122
b46b1d59 3123 LINE=`grep "^wxUSE_PLUGINS=" ${wx_arg_cache_file}`
a848cd7e 3124 if test "x$LINE" != x ; then
8630a814
VZ
3125 eval "DEFAULT_$LINE"
3126 cache=yes
3127 else
3128 cache=no
a848cd7e
SC
3129 fi
3130
d970f7d5 3131 wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
a848cd7e 3132
47964710
VS
3133fi
3134
a848cd7e 3135
d970f7d5 3136 eval "$wx_cv_use_plugins"
8743ec79
VZ
3137 if test "x$cache" = xyes; then
3138 echo "wxUSE_PLUGINS=$wxUSE_PLUGINS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
3139 fi
3140
6e198e97
VZ
3141 if test x"$enablestring" = xdisable; then
3142 if test $wxUSE_PLUGINS = yes; then
3143 result=no
3144 else
3145 result=yes
3146 fi
a848cd7e 3147 else
6e198e97 3148 result=$wxUSE_PLUGINS
a848cd7e
SC
3149 fi
3150
47964710
VS
3151 { echo "$as_me:$LINENO: result: $result" >&5
3152echo "${ECHO_T}$result" >&6; }
6e198e97 3153
a848cd7e 3154
077c7880 3155 withstring=without
47124ca6
VZ
3156 defaultval=$wxUSE_ALL_FEATURES
3157 if test -z "$defaultval"; then
3158 if test x"$withstring" = xwithout; then
3159 defaultval=yes
3160 else
3161 defaultval=no
3162 fi
3163 fi
47964710
VS
3164 { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3165echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
1c14217d 3166
47964710 3167# Check whether --with-subdirs was given.
1c14217d 3168if test "${with_subdirs+set}" = set; then
47964710 3169 withval=$with_subdirs;
1c14217d 3170 if test "$withval" = yes; then
d970f7d5 3171 wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
1c14217d 3172 else
d970f7d5 3173 wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
1c14217d 3174 fi
8743ec79 3175 cache=yes
1c14217d
VZ
3176
3177else
3178
b46b1d59 3179 LINE=`grep "^wxWITH_SUBDIRS=" ${wx_arg_cache_file}`
1c14217d 3180 if test "x$LINE" != x ; then
8630a814
VZ
3181 eval "DEFAULT_$LINE"
3182 cache=yes
3183 else
3184 cache=no
1c14217d
VZ
3185 fi
3186
47124ca6 3187 wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
1c14217d 3188
47964710
VS
3189fi
3190
1c14217d 3191
d970f7d5 3192 eval "$wx_cv_use_subdirs"
1c2aa6f2 3193 if test "x$cache" = xyes; then
8743ec79 3194 echo "wxWITH_SUBDIRS=$wxWITH_SUBDIRS" >> ${wx_arg_cache_file}.tmp
1c14217d
VZ
3195 fi
3196
6e198e97
VZ
3197 if test x"$withstring" = xwithout; then
3198 if test $wxWITH_SUBDIRS = yes; then
3199 result=no
3200 else
3201 result=yes
3202 fi
1c14217d 3203 else
6e198e97
VZ
3204 result=$wxWITH_SUBDIRS
3205 fi
3206
47964710
VS
3207 { echo "$as_me:$LINENO: result: $result" >&5
3208echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
3209
3210
47964710 3211# Check whether --with-flavour was given.
6e198e97 3212if test "${with_flavour+set}" = set; then
47964710
VS
3213 withval=$with_flavour; WX_FLAVOUR="$withval"
3214fi
3215
6e198e97
VZ
3216
3217 enablestring=
3218 defaultval=
238663c1 3219 if test -z "$defaultval"; then
6e198e97
VZ
3220 if test x"$enablestring" = xdisable; then
3221 defaultval=yes
3222 else
3223 defaultval=no
3224 fi
3225 fi
3226
47964710
VS
3227 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3228echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3229 # Check whether --enable-official_build was given.
6e198e97 3230if test "${enable_official_build+set}" = set; then
47964710 3231 enableval=$enable_official_build;
6e198e97 3232 if test "$enableval" = yes; then
d970f7d5 3233 wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
6e198e97 3234 else
d970f7d5 3235 wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
6e198e97 3236 fi
8743ec79 3237 cache=yes
6e198e97
VZ
3238
3239else
3240
3241 LINE=`grep "^wxUSE_OFFICIAL_BUILD=" ${wx_arg_cache_file}`
3242 if test "x$LINE" != x ; then
8630a814
VZ
3243 eval "DEFAULT_$LINE"
3244 cache=yes
3245 else
3246 cache=no
6e198e97
VZ
3247 fi
3248
d970f7d5 3249 wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
6e198e97 3250
47964710
VS
3251fi
3252
6e198e97 3253
d970f7d5 3254 eval "$wx_cv_use_official_build"
8743ec79
VZ
3255 if test "x$cache" = xyes; then
3256 echo "wxUSE_OFFICIAL_BUILD=$wxUSE_OFFICIAL_BUILD" >> ${wx_arg_cache_file}.tmp
6e198e97
VZ
3257 fi
3258
3259 if test x"$enablestring" = xdisable; then
3260 if test $wxUSE_OFFICIAL_BUILD = yes; then
3261 result=no
3262 else
3263 result=yes
3264 fi
3265 else
3266 result=$wxUSE_OFFICIAL_BUILD
3267 fi
3268
47964710
VS
3269 { echo "$as_me:$LINENO: result: $result" >&5
3270echo "${ECHO_T}$result" >&6; }
6e198e97 3271
47964710 3272# Check whether --enable-vendor was given.
6e198e97 3273if test "${enable_vendor+set}" = set; then
47964710
VS
3274 enableval=$enable_vendor; VENDOR="$enableval"
3275fi
3276
6e198e97
VZ
3277if test "x$VENDOR" = "x"; then
3278 VENDOR="custom"
3279fi
3280
3281
3282 enablestring=disable
3283 defaultval=
238663c1 3284 if test -z "$defaultval"; then
6e198e97
VZ
3285 if test x"$enablestring" = xdisable; then
3286 defaultval=yes
3287 else
3288 defaultval=no
3289 fi
3290 fi
3291
47964710
VS
3292 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3293echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3294 # Check whether --enable-all-features was given.
6e198e97 3295if test "${enable_all_features+set}" = set; then
47964710 3296 enableval=$enable_all_features;
6e198e97 3297 if test "$enableval" = yes; then
d970f7d5 3298 wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
6e198e97 3299 else
d970f7d5 3300 wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
6e198e97 3301 fi
8743ec79 3302 cache=yes
6e198e97
VZ
3303
3304else
3305
3306 LINE=`grep "^wxUSE_ALL_FEATURES=" ${wx_arg_cache_file}`
3307 if test "x$LINE" != x ; then
8630a814
VZ
3308 eval "DEFAULT_$LINE"
3309 cache=yes
3310 else
3311 cache=no
6e198e97
VZ
3312 fi
3313
d970f7d5 3314 wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
6e198e97 3315
47964710
VS
3316fi
3317
6e198e97 3318
d970f7d5 3319 eval "$wx_cv_use_all_features"
8743ec79
VZ
3320 if test "x$cache" = xyes; then
3321 echo "wxUSE_ALL_FEATURES=$wxUSE_ALL_FEATURES" >> ${wx_arg_cache_file}.tmp
6e198e97
VZ
3322 fi
3323
3324 if test x"$enablestring" = xdisable; then
3325 if test $wxUSE_ALL_FEATURES = yes; then
3326 result=no
3327 else
3328 result=yes
3329 fi
3330 else
3331 result=$wxUSE_ALL_FEATURES
1c14217d
VZ
3332 fi
3333
47964710
VS
3334 { echo "$as_me:$LINENO: result: $result" >&5
3335echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
3336
3337
1c14217d 3338
a848cd7e
SC
3339if test "$wxUSE_GUI" = "yes"; then
3340
3341
077c7880 3342 enablestring=
6e198e97 3343 defaultval=
238663c1 3344 if test -z "$defaultval"; then
6e198e97
VZ
3345 if test x"$enablestring" = xdisable; then
3346 defaultval=yes
3347 else
3348 defaultval=no
3349 fi
3350 fi
3351
47964710
VS
3352 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3353echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3354 # Check whether --enable-universal was given.
a848cd7e 3355if test "${enable_universal+set}" = set; then
47964710 3356 enableval=$enable_universal;
a848cd7e 3357 if test "$enableval" = yes; then
d970f7d5 3358 wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
a848cd7e 3359 else
d970f7d5 3360 wx_cv_use_universal='wxUSE_UNIVERSAL=no'
a848cd7e 3361 fi
8743ec79 3362 cache=yes
a848cd7e
SC
3363
3364else
3365
b46b1d59 3366 LINE=`grep "^wxUSE_UNIVERSAL=" ${wx_arg_cache_file}`
a848cd7e 3367 if test "x$LINE" != x ; then
8630a814
VZ
3368 eval "DEFAULT_$LINE"
3369 cache=yes
3370 else
3371 cache=no
a848cd7e
SC
3372 fi
3373
d970f7d5 3374 wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
a848cd7e 3375
47964710
VS
3376fi
3377
a848cd7e 3378
d970f7d5 3379 eval "$wx_cv_use_universal"
8743ec79
VZ
3380 if test "x$cache" = xyes; then
3381 echo "wxUSE_UNIVERSAL=$wxUSE_UNIVERSAL" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
3382 fi
3383
6e198e97
VZ
3384 if test x"$enablestring" = xdisable; then
3385 if test $wxUSE_UNIVERSAL = yes; then
3386 result=no
3387 else
3388 result=yes
3389 fi
a848cd7e 3390 else
6e198e97 3391 result=$wxUSE_UNIVERSAL
a848cd7e
SC
3392 fi
3393
47964710
VS
3394 { echo "$as_me:$LINENO: result: $result" >&5
3395echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
3396
3397if test "$wxUSE_UNIVERSAL" = "yes"; then
3398
47964710 3399# Check whether --with-themes was given.
6e198e97 3400if test "${with_themes+set}" = set; then
47964710
VS
3401 withval=$with_themes; wxUNIV_THEMES="$withval"
3402fi
3403
6e198e97
VZ
3404fi
3405
a848cd7e 3406
47964710 3407# Check whether --with-gtk was given.
a848cd7e 3408if test "${with_gtk+set}" = set; then
47964710
VS
3409 withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3410fi
3411
faa5c14f 3412
47964710 3413# Check whether --with-motif was given.
a848cd7e 3414if test "${with_motif+set}" = set; then
47964710
VS
3415 withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3416fi
3417
faa5c14f 3418
47964710 3419# Check whether --with-mac was given.
a848cd7e 3420if test "${with_mac+set}" = set; then
47964710
VS
3421 withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3422fi
3423
faa5c14f 3424
47964710 3425# Check whether --with-cocoa was given.
a848cd7e 3426if test "${with_cocoa+set}" = set; then
47964710
VS
3427 withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3428fi
3429
faa5c14f 3430
47964710 3431# Check whether --with-wine was given.
a848cd7e 3432if test "${with_wine+set}" = set; then
47964710
VS
3433 withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3434fi
3435
faa5c14f 3436
47964710 3437# Check whether --with-msw was given.
a848cd7e 3438if test "${with_msw+set}" = set; then
47964710
VS
3439 withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3440fi
3441
faa5c14f 3442
47964710 3443# Check whether --with-pm was given.
a848cd7e 3444if test "${with_pm+set}" = set; then
47964710
VS
3445 withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3446fi
3447
a848cd7e 3448
47964710 3449# Check whether --with-mgl was given.
a848cd7e 3450if test "${with_mgl+set}" = set; then
47964710
VS
3451 withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3452fi
3453
7fd3acaf 3454
47964710 3455# Check whether --with-directfb was given.
b3c86150 3456if test "${with_directfb+set}" = set; then
47964710
VS
3457 withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3458fi
3459
7fd3acaf 3460
47964710 3461# Check whether --with-microwin was given.
a848cd7e 3462if test "${with_microwin+set}" = set; then
47964710
VS
3463 withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3464fi
3465
7fd3acaf 3466
47964710 3467# Check whether --with-x11 was given.
a848cd7e 3468if test "${with_x11+set}" = set; then
47964710
VS
3469 withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3470fi
3471
a848cd7e 3472
077c7880 3473 enablestring=
6e198e97 3474 defaultval=
238663c1 3475 if test -z "$defaultval"; then
6e198e97
VZ
3476 if test x"$enablestring" = xdisable; then
3477 defaultval=yes
3478 else
3479 defaultval=no
3480 fi
3481 fi
3482
47964710
VS
3483 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3484echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3485 # Check whether --enable-nanox was given.
a848cd7e 3486if test "${enable_nanox+set}" = set; then
47964710 3487 enableval=$enable_nanox;
a848cd7e 3488 if test "$enableval" = yes; then
d970f7d5 3489 wx_cv_use_nanox='wxUSE_NANOX=yes'
a848cd7e 3490 else
d970f7d5 3491 wx_cv_use_nanox='wxUSE_NANOX=no'
a848cd7e 3492 fi
8743ec79 3493 cache=yes
a848cd7e
SC
3494
3495else
3496
b46b1d59 3497 LINE=`grep "^wxUSE_NANOX=" ${wx_arg_cache_file}`
a848cd7e 3498 if test "x$LINE" != x ; then
8630a814
VZ
3499 eval "DEFAULT_$LINE"
3500 cache=yes
3501 else
3502 cache=no
a848cd7e
SC
3503 fi
3504
d970f7d5 3505 wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
a848cd7e 3506
47964710
VS
3507fi
3508
a848cd7e 3509
d970f7d5 3510 eval "$wx_cv_use_nanox"
8743ec79
VZ
3511 if test "x$cache" = xyes; then
3512 echo "wxUSE_NANOX=$wxUSE_NANOX" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
3513 fi
3514
6e198e97
VZ
3515 if test x"$enablestring" = xdisable; then
3516 if test $wxUSE_NANOX = yes; then
3517 result=no
3518 else
3519 result=yes
3520 fi
a848cd7e 3521 else
6e198e97 3522 result=$wxUSE_NANOX
a848cd7e
SC
3523 fi
3524
47964710
VS
3525 { echo "$as_me:$LINENO: result: $result" >&5
3526echo "${ECHO_T}$result" >&6; }
6e198e97 3527
a848cd7e 3528
47964710 3529# Check whether --enable-gtk2 was given.
f34ca037 3530if test "${enable_gtk2+set}" = set; then
47964710
VS
3531 enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3532fi
3533
a848cd7e 3534
077c7880 3535 enablestring=
6e198e97 3536 defaultval=
238663c1 3537 if test -z "$defaultval"; then
6e198e97
VZ
3538 if test x"$enablestring" = xdisable; then
3539 defaultval=yes
3540 else
3541 defaultval=no
3542 fi
3543 fi
3544
47964710
VS
3545 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3546echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3547 # Check whether --enable-gpe was given.
a848cd7e 3548if test "${enable_gpe+set}" = set; then
47964710 3549 enableval=$enable_gpe;
a848cd7e 3550 if test "$enableval" = yes; then
d970f7d5 3551 wx_cv_use_gpe='wxUSE_GPE=yes'
a848cd7e 3552 else
d970f7d5 3553 wx_cv_use_gpe='wxUSE_GPE=no'
a848cd7e 3554 fi
8743ec79 3555 cache=yes
a848cd7e
SC
3556
3557else
3558
b46b1d59 3559 LINE=`grep "^wxUSE_GPE=" ${wx_arg_cache_file}`
a848cd7e 3560 if test "x$LINE" != x ; then
8630a814
VZ
3561 eval "DEFAULT_$LINE"
3562 cache=yes
3563 else
3564 cache=no
a848cd7e
SC
3565 fi
3566
d970f7d5 3567 wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
a848cd7e 3568
47964710
VS
3569fi
3570
a848cd7e 3571
d970f7d5 3572 eval "$wx_cv_use_gpe"
8743ec79
VZ
3573 if test "x$cache" = xyes; then
3574 echo "wxUSE_GPE=$wxUSE_GPE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
3575 fi
3576
6e198e97
VZ
3577 if test x"$enablestring" = xdisable; then
3578 if test $wxUSE_GPE = yes; then
3579 result=no
3580 else
3581 result=yes
3582 fi
a848cd7e 3583 else
6e198e97 3584 result=$wxUSE_GPE
a848cd7e
SC
3585 fi
3586
47964710
VS
3587 { echo "$as_me:$LINENO: result: $result" >&5
3588echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
3589
3590
a848cd7e
SC
3591
3592
47964710
VS
3593 { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3594echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
a848cd7e 3595
47964710 3596# Check whether --with-libpng was given.
a848cd7e 3597if test "${with_libpng+set}" = set; then
47964710 3598 withval=$with_libpng;
a848cd7e 3599 if test "$withval" = yes; then
d970f7d5 3600 wx_cv_use_libpng='wxUSE_LIBPNG=yes'
a848cd7e 3601 elif test "$withval" = no; then
d970f7d5 3602 wx_cv_use_libpng='wxUSE_LIBPNG=no'
a848cd7e 3603 elif test "$withval" = sys; then
d970f7d5 3604 wx_cv_use_libpng='wxUSE_LIBPNG=sys'
a848cd7e 3605 elif test "$withval" = builtin; then
d970f7d5 3606 wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
a848cd7e
SC
3607 else
3608 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3609echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3610 { (exit 1); exit 1; }; }
3611 fi
8743ec79 3612 cache=yes
a848cd7e
SC
3613
3614else
3615
b46b1d59 3616 LINE=`grep "^wxUSE_LIBPNG=" ${wx_arg_cache_file}`
a848cd7e 3617 if test "x$LINE" != x ; then
8630a814
VZ
3618 eval "DEFAULT_$LINE"
3619 cache=yes
3620 else
3621 cache=no
a848cd7e
SC
3622 fi
3623
d970f7d5 3624 wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
a848cd7e 3625
47964710
VS
3626fi
3627
a848cd7e 3628
d970f7d5 3629 eval "$wx_cv_use_libpng"
8743ec79
VZ
3630 if test "x$cache" = xyes; then
3631 echo "wxUSE_LIBPNG=$wxUSE_LIBPNG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
3632 fi
3633
3634 if test "$wxUSE_LIBPNG" = yes; then
47964710
VS
3635 { echo "$as_me:$LINENO: result: yes" >&5
3636echo "${ECHO_T}yes" >&6; }
a848cd7e 3637 elif test "$wxUSE_LIBPNG" = no; then
47964710
VS
3638 { echo "$as_me:$LINENO: result: no" >&5
3639echo "${ECHO_T}no" >&6; }
a848cd7e 3640 elif test "$wxUSE_LIBPNG" = sys; then
47964710
VS
3641 { echo "$as_me:$LINENO: result: system version" >&5
3642echo "${ECHO_T}system version" >&6; }
a848cd7e 3643 elif test "$wxUSE_LIBPNG" = builtin; then
47964710
VS
3644 { echo "$as_me:$LINENO: result: builtin version" >&5
3645echo "${ECHO_T}builtin version" >&6; }
a848cd7e
SC
3646 else
3647 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3648echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3649 { (exit 1); exit 1; }; }
3650 fi
3651
3652
47964710
VS
3653 { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3654echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
a848cd7e 3655
47964710 3656# Check whether --with-libjpeg was given.
a848cd7e 3657if test "${with_libjpeg+set}" = set; then
47964710 3658 withval=$with_libjpeg;
a848cd7e 3659 if test "$withval" = yes; then
d970f7d5 3660 wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
a848cd7e 3661 elif test "$withval" = no; then
d970f7d5 3662 wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
a848cd7e 3663 elif test "$withval" = sys; then
d970f7d5 3664 wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
a848cd7e 3665 elif test "$withval" = builtin; then
d970f7d5 3666 wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
a848cd7e
SC
3667 else
3668 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3669echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3670 { (exit 1); exit 1; }; }
3671 fi
8743ec79 3672 cache=yes
a848cd7e
SC
3673
3674else
3675
b46b1d59 3676 LINE=`grep "^wxUSE_LIBJPEG=" ${wx_arg_cache_file}`
a848cd7e 3677 if test "x$LINE" != x ; then
8630a814
VZ
3678 eval "DEFAULT_$LINE"
3679 cache=yes
3680 else
3681 cache=no
a848cd7e
SC
3682 fi
3683
d970f7d5 3684 wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
a848cd7e 3685
47964710
VS
3686fi
3687
a848cd7e 3688
d970f7d5 3689 eval "$wx_cv_use_libjpeg"
8743ec79
VZ
3690 if test "x$cache" = xyes; then
3691 echo "wxUSE_LIBJPEG=$wxUSE_LIBJPEG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
3692 fi
3693
3694 if test "$wxUSE_LIBJPEG" = yes; then
47964710
VS
3695 { echo "$as_me:$LINENO: result: yes" >&5
3696echo "${ECHO_T}yes" >&6; }
a848cd7e 3697 elif test "$wxUSE_LIBJPEG" = no; then
47964710
VS
3698 { echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6; }
a848cd7e 3700 elif test "$wxUSE_LIBJPEG" = sys; then
47964710
VS
3701 { echo "$as_me:$LINENO: result: system version" >&5
3702echo "${ECHO_T}system version" >&6; }
a848cd7e 3703 elif test "$wxUSE_LIBJPEG" = builtin; then
47964710
VS
3704 { echo "$as_me:$LINENO: result: builtin version" >&5
3705echo "${ECHO_T}builtin version" >&6; }
a848cd7e
SC
3706 else
3707 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3708echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3709 { (exit 1); exit 1; }; }
3710 fi
3711
3712
47964710
VS
3713 { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3714echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
a848cd7e 3715
47964710 3716# Check whether --with-libtiff was given.
a848cd7e 3717if test "${with_libtiff+set}" = set; then
47964710 3718 withval=$with_libtiff;
a848cd7e 3719 if test "$withval" = yes; then
d970f7d5 3720 wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
a848cd7e 3721 elif test "$withval" = no; then
d970f7d5 3722 wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
a848cd7e 3723 elif test "$withval" = sys; then
d970f7d5 3724 wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
a848cd7e 3725 elif test "$withval" = builtin; then
d970f7d5 3726 wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
a848cd7e
SC
3727 else
3728 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3729echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3730 { (exit 1); exit 1; }; }
3731 fi
8743ec79 3732 cache=yes
a848cd7e
SC
3733
3734else
3735
b46b1d59 3736 LINE=`grep "^wxUSE_LIBTIFF=" ${wx_arg_cache_file}`
a848cd7e 3737 if test "x$LINE" != x ; then
8630a814
VZ
3738 eval "DEFAULT_$LINE"
3739 cache=yes
3740 else
3741 cache=no
a848cd7e
SC
3742 fi
3743
d970f7d5 3744 wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
a848cd7e 3745
47964710
VS
3746fi
3747
a848cd7e 3748
d970f7d5 3749 eval "$wx_cv_use_libtiff"
8743ec79
VZ
3750 if test "x$cache" = xyes; then
3751 echo "wxUSE_LIBTIFF=$wxUSE_LIBTIFF" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
3752 fi
3753
3754 if test "$wxUSE_LIBTIFF" = yes; then
47964710
VS
3755 { echo "$as_me:$LINENO: result: yes" >&5
3756echo "${ECHO_T}yes" >&6; }
a848cd7e 3757 elif test "$wxUSE_LIBTIFF" = no; then
47964710
VS
3758 { echo "$as_me:$LINENO: result: no" >&5
3759echo "${ECHO_T}no" >&6; }
a848cd7e 3760 elif test "$wxUSE_LIBTIFF" = sys; then
47964710
VS
3761 { echo "$as_me:$LINENO: result: system version" >&5
3762echo "${ECHO_T}system version" >&6; }
a848cd7e 3763 elif test "$wxUSE_LIBTIFF" = builtin; then
47964710
VS
3764 { echo "$as_me:$LINENO: result: builtin version" >&5
3765echo "${ECHO_T}builtin version" >&6; }
a848cd7e
SC
3766 else
3767 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3768echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3769 { (exit 1); exit 1; }; }
3770 fi
3771
3772
47964710
VS
3773 { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3774echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
a848cd7e 3775
47964710 3776# Check whether --with-libxpm was given.
a848cd7e 3777if test "${with_libxpm+set}" = set; then
47964710 3778 withval=$with_libxpm;
a848cd7e 3779 if test "$withval" = yes; then
d970f7d5 3780 wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
a848cd7e 3781 elif test "$withval" = no; then
d970f7d5 3782 wx_cv_use_libxpm='wxUSE_LIBXPM=no'
a848cd7e 3783 elif test "$withval" = sys; then
d970f7d5 3784 wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
a848cd7e 3785 elif test "$withval" = builtin; then
d970f7d5 3786 wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
a848cd7e
SC
3787 else
3788 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3789echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3790 { (exit 1); exit 1; }; }
3791 fi
8743ec79 3792 cache=yes
a848cd7e
SC
3793
3794else
3795
b46b1d59 3796 LINE=`grep "^wxUSE_LIBXPM=" ${wx_arg_cache_file}`
a848cd7e 3797 if test "x$LINE" != x ; then
8630a814
VZ
3798 eval "DEFAULT_$LINE"
3799 cache=yes
3800 else
3801 cache=no
a848cd7e
SC
3802 fi
3803
d970f7d5 3804 wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
a848cd7e 3805
47964710
VS
3806fi
3807
a848cd7e 3808
d970f7d5 3809 eval "$wx_cv_use_libxpm"
8743ec79
VZ
3810 if test "x$cache" = xyes; then
3811 echo "wxUSE_LIBXPM=$wxUSE_LIBXPM" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
3812 fi
3813
3814 if test "$wxUSE_LIBXPM" = yes; then
47964710
VS
3815 { echo "$as_me:$LINENO: result: yes" >&5
3816echo "${ECHO_T}yes" >&6; }
a848cd7e 3817 elif test "$wxUSE_LIBXPM" = no; then
47964710
VS
3818 { echo "$as_me:$LINENO: result: no" >&5
3819echo "${ECHO_T}no" >&6; }
a848cd7e 3820 elif test "$wxUSE_LIBXPM" = sys; then
47964710
VS
3821 { echo "$as_me:$LINENO: result: system version" >&5
3822echo "${ECHO_T}system version" >&6; }
a848cd7e 3823 elif test "$wxUSE_LIBXPM" = builtin; then
47964710
VS
3824 { echo "$as_me:$LINENO: result: builtin version" >&5
3825echo "${ECHO_T}builtin version" >&6; }
a848cd7e
SC
3826 else
3827 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3828echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3829 { (exit 1); exit 1; }; }
3830 fi
3831
3832
077c7880 3833 withstring=
47124ca6
VZ
3834 defaultval=$wxUSE_ALL_FEATURES
3835 if test -z "$defaultval"; then
3836 if test x"$withstring" = xwithout; then
3837 defaultval=yes
3838 else
3839 defaultval=no
3840 fi
3841 fi
47964710
VS
3842 { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3843echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
a848cd7e 3844
47964710 3845# Check whether --with-libmspack was given.
a848cd7e 3846if test "${with_libmspack+set}" = set; then
47964710 3847 withval=$with_libmspack;
a848cd7e 3848 if test "$withval" = yes; then
d970f7d5 3849 wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
a848cd7e 3850 else
d970f7d5 3851 wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
a848cd7e 3852 fi
8743ec79 3853 cache=yes
a848cd7e
SC
3854
3855else
3856
b46b1d59 3857 LINE=`grep "^wxUSE_LIBMSPACK=" ${wx_arg_cache_file}`
a848cd7e 3858 if test "x$LINE" != x ; then
8630a814
VZ
3859 eval "DEFAULT_$LINE"
3860 cache=yes
3861 else
3862 cache=no
a848cd7e
SC
3863 fi
3864
47124ca6 3865 wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
a848cd7e 3866
47964710
VS
3867fi
3868
a848cd7e 3869
d970f7d5 3870 eval "$wx_cv_use_libmspack"
1c2aa6f2 3871 if test "x$cache" = xyes; then
8743ec79 3872 echo "wxUSE_LIBMSPACK=$wxUSE_LIBMSPACK" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
3873 fi
3874
6e198e97
VZ
3875 if test x"$withstring" = xwithout; then
3876 if test $wxUSE_LIBMSPACK = yes; then
3877 result=no
3878 else
3879 result=yes
3880 fi
a848cd7e 3881 else
6e198e97 3882 result=$wxUSE_LIBMSPACK
a848cd7e
SC
3883 fi
3884
47964710
VS
3885 { echo "$as_me:$LINENO: result: $result" >&5
3886echo "${ECHO_T}$result" >&6; }
bd8a7646
RR
3887
3888
3889 withstring=without
3890 defaultval=$wxUSE_ALL_FEATURES
3891 if test -z "$defaultval"; then
3892 if test x"$withstring" = xwithout; then
3893 defaultval=yes
3894 else
3895 defaultval=no
3896 fi
3897 fi
47964710
VS
3898 { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3899echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
bd8a7646 3900
47964710 3901# Check whether --with-gtkprint was given.
bd8a7646 3902if test "${with_gtkprint+set}" = set; then
47964710 3903 withval=$with_gtkprint;
bd8a7646
RR
3904 if test "$withval" = yes; then
3905 wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3906 else
3907 wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3908 fi
3909 cache=yes
3910
3911else
3912
3913 LINE=`grep "^wxUSE_GTKPRINT=" ${wx_arg_cache_file}`
3914 if test "x$LINE" != x ; then
3915 eval "DEFAULT_$LINE"
3916 cache=yes
3917 else
3918 cache=no
3919 fi
3920
3921 wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3922
47964710
VS
3923fi
3924
bd8a7646
RR
3925
3926 eval "$wx_cv_use_gtkprint"
3927 if test "x$cache" = xyes; then
3928 echo "wxUSE_GTKPRINT=$wxUSE_GTKPRINT" >> ${wx_arg_cache_file}.tmp
3929 fi
3930
3931 if test x"$withstring" = xwithout; then
3932 if test $wxUSE_GTKPRINT = yes; then
3933 result=no
3934 else
3935 result=yes
3936 fi
3937 else
3938 result=$wxUSE_GTKPRINT
3939 fi
3940
47964710
VS
3941 { echo "$as_me:$LINENO: result: $result" >&5
3942echo "${ECHO_T}$result" >&6; }
a848cd7e 3943
6e198e97
VZ
3944
3945 withstring=without
47124ca6
VZ
3946 defaultval=$wxUSE_ALL_FEATURES
3947 if test -z "$defaultval"; then
3948 if test x"$withstring" = xwithout; then
3949 defaultval=yes
3950 else
3951 defaultval=no
3952 fi
3953 fi
47964710
VS
3954 { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3955echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
d1c38808 3956
47964710 3957# Check whether --with-gnomeprint was given.
d1c38808 3958if test "${with_gnomeprint+set}" = set; then
47964710 3959 withval=$with_gnomeprint;
d1c38808 3960 if test "$withval" = yes; then
d970f7d5 3961 wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
d1c38808 3962 else
d970f7d5 3963 wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
d1c38808 3964 fi
8743ec79 3965 cache=yes
d1c38808
VZ
3966
3967else
3968
b46b1d59 3969 LINE=`grep "^wxUSE_LIBGNOMEPRINT=" ${wx_arg_cache_file}`
d1c38808 3970 if test "x$LINE" != x ; then
8630a814
VZ
3971 eval "DEFAULT_$LINE"
3972 cache=yes
3973 else
3974 cache=no
d1c38808
VZ
3975 fi
3976
47124ca6 3977 wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
d1c38808 3978
47964710
VS
3979fi
3980
d1c38808 3981
d970f7d5 3982 eval "$wx_cv_use_gnomeprint"
1c2aa6f2 3983 if test "x$cache" = xyes; then
8743ec79 3984 echo "wxUSE_LIBGNOMEPRINT=$wxUSE_LIBGNOMEPRINT" >> ${wx_arg_cache_file}.tmp
d1c38808
VZ
3985 fi
3986
6e198e97
VZ
3987 if test x"$withstring" = xwithout; then
3988 if test $wxUSE_LIBGNOMEPRINT = yes; then
3989 result=no
3990 else
3991 result=yes
3992 fi
d1c38808 3993 else
6e198e97 3994 result=$wxUSE_LIBGNOMEPRINT
d1c38808
VZ
3995 fi
3996
47964710
VS
3997 { echo "$as_me:$LINENO: result: $result" >&5
3998echo "${ECHO_T}$result" >&6; }
6e198e97 3999
d1c38808 4000
077c7880 4001 withstring=
47124ca6
VZ
4002 defaultval=$wxUSE_ALL_FEATURES
4003 if test -z "$defaultval"; then
4004 if test x"$withstring" = xwithout; then
4005 defaultval=yes
4006 else
4007 defaultval=no
4008 fi
4009 fi
47964710
VS
4010 { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4011echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
2b850ae1 4012
47964710 4013# Check whether --with-gnomevfs was given.
2b850ae1 4014if test "${with_gnomevfs+set}" = set; then
47964710 4015 withval=$with_gnomevfs;
2b850ae1 4016 if test "$withval" = yes; then
d970f7d5 4017 wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
2b850ae1 4018 else
d970f7d5 4019 wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
2b850ae1 4020 fi
8743ec79 4021 cache=yes
2b850ae1
RR
4022
4023else
4024
b46b1d59 4025 LINE=`grep "^wxUSE_LIBGNOMEVFS=" ${wx_arg_cache_file}`
2b850ae1 4026 if test "x$LINE" != x ; then
8630a814
VZ
4027 eval "DEFAULT_$LINE"
4028 cache=yes
4029 else
4030 cache=no
2b850ae1
RR
4031 fi
4032
47124ca6 4033 wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
2b850ae1 4034
47964710
VS
4035fi
4036
2b850ae1 4037
d970f7d5 4038 eval "$wx_cv_use_gnomevfs"
1c2aa6f2 4039 if test "x$cache" = xyes; then
8743ec79 4040 echo "wxUSE_LIBGNOMEVFS=$wxUSE_LIBGNOMEVFS" >> ${wx_arg_cache_file}.tmp
2b850ae1
RR
4041 fi
4042
6e198e97
VZ
4043 if test x"$withstring" = xwithout; then
4044 if test $wxUSE_LIBGNOMEVFS = yes; then
4045 result=no
4046 else
4047 result=yes
4048 fi
2b850ae1 4049 else
6e198e97 4050 result=$wxUSE_LIBGNOMEVFS
2b850ae1
RR
4051 fi
4052
47964710
VS
4053 { echo "$as_me:$LINENO: result: $result" >&5
4054echo "${ECHO_T}$result" >&6; }
6e198e97 4055
2b850ae1 4056
077c7880 4057 withstring=
47124ca6
VZ
4058 defaultval=$wxUSE_ALL_FEATURES
4059 if test -z "$defaultval"; then
4060 if test x"$withstring" = xwithout; then
4061 defaultval=yes
4062 else
4063 defaultval=no
4064 fi
4065 fi
47964710
VS
4066 { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4067echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3565d135 4068
47964710 4069# Check whether --with-hildon was given.
3565d135 4070if test "${with_hildon+set}" = set; then
47964710 4071 withval=$with_hildon;
3565d135 4072 if test "$withval" = yes; then
d970f7d5 4073 wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3565d135 4074 else
d970f7d5 4075 wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3565d135 4076 fi
8743ec79 4077 cache=yes
3565d135
RR
4078
4079else
4080
b46b1d59 4081 LINE=`grep "^wxUSE_LIBHILDON=" ${wx_arg_cache_file}`
3565d135 4082 if test "x$LINE" != x ; then
8630a814
VZ
4083 eval "DEFAULT_$LINE"
4084 cache=yes
4085 else
4086 cache=no
3565d135
RR
4087 fi
4088
47124ca6 4089 wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3565d135 4090
47964710
VS
4091fi
4092
3565d135 4093
d970f7d5 4094 eval "$wx_cv_use_hildon"
1c2aa6f2 4095 if test "x$cache" = xyes; then
8743ec79 4096 echo "wxUSE_LIBHILDON=$wxUSE_LIBHILDON" >> ${wx_arg_cache_file}.tmp
3565d135
RR
4097 fi
4098
6e198e97
VZ
4099 if test x"$withstring" = xwithout; then
4100 if test $wxUSE_LIBHILDON = yes; then
4101 result=no
4102 else
4103 result=yes
4104 fi
3565d135 4105 else
6e198e97 4106 result=$wxUSE_LIBHILDON
3565d135
RR
4107 fi
4108
47964710
VS
4109 { echo "$as_me:$LINENO: result: $result" >&5
4110echo "${ECHO_T}$result" >&6; }
6e198e97 4111
3565d135 4112
077c7880 4113 withstring=
47124ca6
VZ
4114 defaultval=$wxUSE_ALL_FEATURES
4115 if test -z "$defaultval"; then
4116 if test x"$withstring" = xwithout; then
4117 defaultval=yes
4118 else
4119 defaultval=no
4120 fi
4121 fi
47964710
VS
4122 { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4123echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
a848cd7e 4124
47964710 4125# Check whether --with-opengl was given.
a848cd7e 4126if test "${with_opengl+set}" = set; then
47964710 4127 withval=$with_opengl;
a848cd7e 4128 if test "$withval" = yes; then
d970f7d5 4129 wx_cv_use_opengl='wxUSE_OPENGL=yes'
a848cd7e 4130 else
d970f7d5 4131 wx_cv_use_opengl='wxUSE_OPENGL=no'
a848cd7e 4132 fi
8743ec79 4133 cache=yes
a848cd7e
SC
4134
4135else
4136
b46b1d59 4137 LINE=`grep "^wxUSE_OPENGL=" ${wx_arg_cache_file}`
a848cd7e 4138 if test "x$LINE" != x ; then
8630a814
VZ
4139 eval "DEFAULT_$LINE"
4140 cache=yes
4141 else
4142 cache=no
a848cd7e
SC
4143 fi
4144
47124ca6 4145 wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
a848cd7e 4146
47964710
VS
4147fi
4148
a848cd7e 4149
d970f7d5 4150 eval "$wx_cv_use_opengl"
1c2aa6f2 4151 if test "x$cache" = xyes; then
8743ec79 4152 echo "wxUSE_OPENGL=$wxUSE_OPENGL" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4153 fi
4154
6e198e97
VZ
4155 if test x"$withstring" = xwithout; then
4156 if test $wxUSE_OPENGL = yes; then
4157 result=no
4158 else
4159 result=yes
4160 fi
a848cd7e 4161 else
6e198e97 4162 result=$wxUSE_OPENGL
a848cd7e
SC
4163 fi
4164
47964710
VS
4165 { echo "$as_me:$LINENO: result: $result" >&5
4166echo "${ECHO_T}$result" >&6; }
a848cd7e 4167
4353a8df 4168
a848cd7e
SC
4169fi
4170
4171
077c7880 4172 withstring=
47124ca6
VZ
4173 defaultval=$wxUSE_ALL_FEATURES
4174 if test -z "$defaultval"; then
4175 if test x"$withstring" = xwithout; then
4176 defaultval=yes
4177 else
4178 defaultval=no
4179 fi
4180 fi
47964710
VS
4181 { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4182echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
a848cd7e 4183
47964710 4184# Check whether --with-dmalloc was given.
a848cd7e 4185if test "${with_dmalloc+set}" = set; then
47964710 4186 withval=$with_dmalloc;
a848cd7e 4187 if test "$withval" = yes; then
d970f7d5 4188 wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
a848cd7e 4189 else
d970f7d5 4190 wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
a848cd7e 4191 fi
8743ec79 4192 cache=yes
a848cd7e
SC
4193
4194else
4195
b46b1d59 4196 LINE=`grep "^wxUSE_DMALLOC=" ${wx_arg_cache_file}`
a848cd7e 4197 if test "x$LINE" != x ; then
8630a814
VZ
4198 eval "DEFAULT_$LINE"
4199 cache=yes
4200 else
4201 cache=no
a848cd7e
SC
4202 fi
4203
47124ca6 4204 wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
a848cd7e 4205
47964710
VS
4206fi
4207
a848cd7e 4208
d970f7d5 4209 eval "$wx_cv_use_dmalloc"
1c2aa6f2 4210 if test "x$cache" = xyes; then
8743ec79 4211 echo "wxUSE_DMALLOC=$wxUSE_DMALLOC" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4212 fi
4213
6e198e97
VZ
4214 if test x"$withstring" = xwithout; then
4215 if test $wxUSE_DMALLOC = yes; then
4216 result=no
4217 else
4218 result=yes
4219 fi
a848cd7e 4220 else
6e198e97 4221 result=$wxUSE_DMALLOC
a848cd7e
SC
4222 fi
4223
47964710
VS
4224 { echo "$as_me:$LINENO: result: $result" >&5
4225echo "${ECHO_T}$result" >&6; }
6e198e97 4226
a848cd7e 4227
84ebfcbd 4228 withstring=
47124ca6
VZ
4229 defaultval=$wxUSE_ALL_FEATURES
4230 if test -z "$defaultval"; then
4231 if test x"$withstring" = xwithout; then
4232 defaultval=yes
4233 else
4234 defaultval=no
4235 fi
4236 fi
47964710
VS
4237 { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4238echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
a848cd7e 4239
47964710 4240# Check whether --with-sdl was given.
84ebfcbd 4241if test "${with_sdl+set}" = set; then
47964710 4242 withval=$with_sdl;
84ebfcbd 4243 if test "$withval" = yes; then
d970f7d5 4244 wx_cv_use_sdl='wxUSE_LIBSDL=yes'
84ebfcbd 4245 else
d970f7d5 4246 wx_cv_use_sdl='wxUSE_LIBSDL=no'
84ebfcbd 4247 fi
8743ec79 4248 cache=yes
84ebfcbd
VZ
4249
4250else
4251
4252 LINE=`grep "^wxUSE_LIBSDL=" ${wx_arg_cache_file}`
4253 if test "x$LINE" != x ; then
8630a814
VZ
4254 eval "DEFAULT_$LINE"
4255 cache=yes
4256 else
4257 cache=no
84ebfcbd
VZ
4258 fi
4259
47124ca6 4260 wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
84ebfcbd 4261
47964710
VS
4262fi
4263
84ebfcbd 4264
d970f7d5 4265 eval "$wx_cv_use_sdl"
1c2aa6f2 4266 if test "x$cache" = xyes; then
8743ec79 4267 echo "wxUSE_LIBSDL=$wxUSE_LIBSDL" >> ${wx_arg_cache_file}.tmp
84ebfcbd
VZ
4268 fi
4269
4270 if test x"$withstring" = xwithout; then
4271 if test $wxUSE_LIBSDL = yes; then
4272 result=no
4273 else
4274 result=yes
4275 fi
4276 else
4277 result=$wxUSE_LIBSDL
4278 fi
4279
47964710
VS
4280 { echo "$as_me:$LINENO: result: $result" >&5
4281echo "${ECHO_T}$result" >&6; }
84ebfcbd
VZ
4282
4283
47964710
VS
4284 { echo "$as_me:$LINENO: checking for --with-regex" >&5
4285echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
84ebfcbd 4286
47964710 4287# Check whether --with-regex was given.
84ebfcbd 4288if test "${with_regex+set}" = set; then
47964710 4289 withval=$with_regex;
a848cd7e 4290 if test "$withval" = yes; then
d970f7d5 4291 wx_cv_use_regex='wxUSE_REGEX=yes'
a848cd7e 4292 elif test "$withval" = no; then
d970f7d5 4293 wx_cv_use_regex='wxUSE_REGEX=no'
a848cd7e 4294 elif test "$withval" = sys; then
d970f7d5 4295 wx_cv_use_regex='wxUSE_REGEX=sys'
a848cd7e 4296 elif test "$withval" = builtin; then
d970f7d5 4297 wx_cv_use_regex='wxUSE_REGEX=builtin'
a848cd7e
SC
4298 else
4299 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4300echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4301 { (exit 1); exit 1; }; }
4302 fi
8743ec79 4303 cache=yes
a848cd7e
SC
4304
4305else
4306
b46b1d59 4307 LINE=`grep "^wxUSE_REGEX=" ${wx_arg_cache_file}`
a848cd7e 4308 if test "x$LINE" != x ; then
8630a814
VZ
4309 eval "DEFAULT_$LINE"
4310 cache=yes
4311 else
4312 cache=no
a848cd7e
SC
4313 fi
4314
d970f7d5 4315 wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
a848cd7e 4316
47964710
VS
4317fi
4318
a848cd7e 4319
d970f7d5 4320 eval "$wx_cv_use_regex"
8743ec79
VZ
4321 if test "x$cache" = xyes; then
4322 echo "wxUSE_REGEX=$wxUSE_REGEX" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4323 fi
4324
4325 if test "$wxUSE_REGEX" = yes; then
47964710
VS
4326 { echo "$as_me:$LINENO: result: yes" >&5
4327echo "${ECHO_T}yes" >&6; }
a848cd7e 4328 elif test "$wxUSE_REGEX" = no; then
47964710
VS
4329 { echo "$as_me:$LINENO: result: no" >&5
4330echo "${ECHO_T}no" >&6; }
a848cd7e 4331 elif test "$wxUSE_REGEX" = sys; then
47964710
VS
4332 { echo "$as_me:$LINENO: result: system version" >&5
4333echo "${ECHO_T}system version" >&6; }
a848cd7e 4334 elif test "$wxUSE_REGEX" = builtin; then
47964710
VS
4335 { echo "$as_me:$LINENO: result: builtin version" >&5
4336echo "${ECHO_T}builtin version" >&6; }
a848cd7e
SC
4337 else
4338 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4339echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4340 { (exit 1); exit 1; }; }
4341 fi
4342
4343
47964710
VS
4344 { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4345echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
a848cd7e 4346
47964710 4347# Check whether --with-zlib was given.
a848cd7e 4348if test "${with_zlib+set}" = set; then
47964710 4349 withval=$with_zlib;
a848cd7e 4350 if test "$withval" = yes; then
d970f7d5 4351 wx_cv_use_zlib='wxUSE_ZLIB=yes'
a848cd7e 4352 elif test "$withval" = no; then
d970f7d5 4353 wx_cv_use_zlib='wxUSE_ZLIB=no'
a848cd7e 4354 elif test "$withval" = sys; then
d970f7d5 4355 wx_cv_use_zlib='wxUSE_ZLIB=sys'
a848cd7e 4356 elif test "$withval" = builtin; then
d970f7d5 4357 wx_cv_use_zlib='wxUSE_ZLIB=builtin'
a848cd7e
SC
4358 else
4359 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4360echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4361 { (exit 1); exit 1; }; }
4362 fi
8743ec79 4363 cache=yes
a848cd7e
SC
4364
4365else
4366
b46b1d59 4367 LINE=`grep "^wxUSE_ZLIB=" ${wx_arg_cache_file}`
a848cd7e 4368 if test "x$LINE" != x ; then
8630a814
VZ
4369 eval "DEFAULT_$LINE"
4370 cache=yes
4371 else
4372 cache=no
a848cd7e
SC
4373 fi
4374
d970f7d5 4375 wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
a848cd7e 4376
47964710
VS
4377fi
4378
a848cd7e 4379
d970f7d5 4380 eval "$wx_cv_use_zlib"
8743ec79
VZ
4381 if test "x$cache" = xyes; then
4382 echo "wxUSE_ZLIB=$wxUSE_ZLIB" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4383 fi
4384
4385 if test "$wxUSE_ZLIB" = yes; then
47964710
VS
4386 { echo "$as_me:$LINENO: result: yes" >&5
4387echo "${ECHO_T}yes" >&6; }
a848cd7e 4388 elif test "$wxUSE_ZLIB" = no; then
47964710
VS
4389 { echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6; }
a848cd7e 4391 elif test "$wxUSE_ZLIB" = sys; then
47964710
VS
4392 { echo "$as_me:$LINENO: result: system version" >&5
4393echo "${ECHO_T}system version" >&6; }
a848cd7e 4394 elif test "$wxUSE_ZLIB" = builtin; then
47964710
VS
4395 { echo "$as_me:$LINENO: result: builtin version" >&5
4396echo "${ECHO_T}builtin version" >&6; }
a848cd7e
SC
4397 else
4398 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4399echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4400 { (exit 1); exit 1; }; }
4401 fi
4402
4403
47964710
VS
4404 { echo "$as_me:$LINENO: checking for --with-odbc" >&5
4405echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6; }
a848cd7e 4406
47964710 4407# Check whether --with-odbc was given.
a848cd7e 4408if test "${with_odbc+set}" = set; then
47964710 4409 withval=$with_odbc;
a848cd7e 4410 if test "$withval" = yes; then
d970f7d5 4411 wx_cv_use_odbc='wxUSE_ODBC=yes'
a848cd7e 4412 elif test "$withval" = no; then
d970f7d5 4413 wx_cv_use_odbc='wxUSE_ODBC=no'
a848cd7e 4414 elif test "$withval" = sys; then
d970f7d5 4415 wx_cv_use_odbc='wxUSE_ODBC=sys'
a848cd7e 4416 elif test "$withval" = builtin; then
d970f7d5 4417 wx_cv_use_odbc='wxUSE_ODBC=builtin'
a848cd7e
SC
4418 else
4419 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4420echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4421 { (exit 1); exit 1; }; }
4422 fi
8743ec79 4423 cache=yes
a848cd7e
SC
4424
4425else
4426
b46b1d59 4427 LINE=`grep "^wxUSE_ODBC=" ${wx_arg_cache_file}`
a848cd7e 4428 if test "x$LINE" != x ; then
8630a814
VZ
4429 eval "DEFAULT_$LINE"
4430 cache=yes
4431 else
4432 cache=no
a848cd7e
SC
4433 fi
4434
d970f7d5 4435 wx_cv_use_odbc='wxUSE_ODBC=${'DEFAULT_wxUSE_ODBC":-$wxUSE_ALL_FEATURES}"
a848cd7e 4436
47964710
VS
4437fi
4438
a848cd7e 4439
d970f7d5 4440 eval "$wx_cv_use_odbc"
8743ec79
VZ
4441 if test "x$cache" = xyes; then
4442 echo "wxUSE_ODBC=$wxUSE_ODBC" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4443 fi
4444
4445 if test "$wxUSE_ODBC" = yes; then
47964710
VS
4446 { echo "$as_me:$LINENO: result: yes" >&5
4447echo "${ECHO_T}yes" >&6; }
a848cd7e 4448 elif test "$wxUSE_ODBC" = no; then
47964710
VS
4449 { echo "$as_me:$LINENO: result: no" >&5
4450echo "${ECHO_T}no" >&6; }
a848cd7e 4451 elif test "$wxUSE_ODBC" = sys; then
47964710
VS
4452 { echo "$as_me:$LINENO: result: system version" >&5
4453echo "${ECHO_T}system version" >&6; }
a848cd7e 4454 elif test "$wxUSE_ODBC" = builtin; then
47964710
VS
4455 { echo "$as_me:$LINENO: result: builtin version" >&5
4456echo "${ECHO_T}builtin version" >&6; }
a848cd7e
SC
4457 else
4458 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4459echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4460 { (exit 1); exit 1; }; }
4461 fi
4462
4463
47964710
VS
4464 { echo "$as_me:$LINENO: checking for --with-expat" >&5
4465echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
a848cd7e 4466
47964710 4467# Check whether --with-expat was given.
a848cd7e 4468if test "${with_expat+set}" = set; then
47964710 4469 withval=$with_expat;
a848cd7e 4470 if test "$withval" = yes; then
d970f7d5 4471 wx_cv_use_expat='wxUSE_EXPAT=yes'
a848cd7e 4472 elif test "$withval" = no; then
d970f7d5 4473 wx_cv_use_expat='wxUSE_EXPAT=no'
a848cd7e 4474 elif test "$withval" = sys; then
d970f7d5 4475 wx_cv_use_expat='wxUSE_EXPAT=sys'
a848cd7e 4476 elif test "$withval" = builtin; then
d970f7d5 4477 wx_cv_use_expat='wxUSE_EXPAT=builtin'
a848cd7e
SC
4478 else
4479 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4480echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4481 { (exit 1); exit 1; }; }
4482 fi
8743ec79 4483 cache=yes
a848cd7e
SC
4484
4485else
4486
b46b1d59 4487 LINE=`grep "^wxUSE_EXPAT=" ${wx_arg_cache_file}`
a848cd7e 4488 if test "x$LINE" != x ; then
8630a814
VZ
4489 eval "DEFAULT_$LINE"
4490 cache=yes
4491 else
4492 cache=no
a848cd7e
SC
4493 fi
4494
d970f7d5 4495 wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
a848cd7e 4496
47964710
VS
4497fi
4498
a848cd7e 4499
d970f7d5 4500 eval "$wx_cv_use_expat"
8743ec79
VZ
4501 if test "x$cache" = xyes; then
4502 echo "wxUSE_EXPAT=$wxUSE_EXPAT" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4503 fi
4504
4505 if test "$wxUSE_EXPAT" = yes; then
47964710
VS
4506 { echo "$as_me:$LINENO: result: yes" >&5
4507echo "${ECHO_T}yes" >&6; }
a848cd7e 4508 elif test "$wxUSE_EXPAT" = no; then
47964710
VS
4509 { echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6; }
a848cd7e 4511 elif test "$wxUSE_EXPAT" = sys; then
47964710
VS
4512 { echo "$as_me:$LINENO: result: system version" >&5
4513echo "${ECHO_T}system version" >&6; }
a848cd7e 4514 elif test "$wxUSE_EXPAT" = builtin; then
47964710
VS
4515 { echo "$as_me:$LINENO: result: builtin version" >&5
4516echo "${ECHO_T}builtin version" >&6; }
a848cd7e
SC
4517 else
4518 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4519echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4520 { (exit 1); exit 1; }; }
4521 fi
4522
4523
47964710
VS
4524{ echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4525echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
b4e05bdd 4526
47964710 4527# Check whether --with-macosx-sdk was given.
b4e05bdd 4528if test "${with_macosx_sdk+set}" = set; then
47964710 4529 withval=$with_macosx_sdk;
b4e05bdd
DE
4530 wxUSE_MACOSX_SDK=$withval
4531 wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4532 echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp
4533
4534else
4535
4536 # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no)
4537 # will override --enable-universal_binary's automatic SDK usage.
4538 wxUSE_MACOSX_SDK=
4539 LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}`
4540 if test "x$LINE" != x ; then
4541 eval "$LINE"
4542 echo "$LINE" >> ${wx_arg_cache_file}.tmp
4543 fi
4544
47964710
VS
4545fi
4546
4547{ echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4548echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
b4e05bdd 4549
47964710
VS
4550{ echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4551echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
b4e05bdd 4552
47964710 4553# Check whether --with-macosx-version-min was given.
b4e05bdd 4554if test "${with_macosx_version_min+set}" = set; then
47964710 4555 withval=$with_macosx_version_min;
b4e05bdd
DE
4556 wxUSE_MACOSX_VERSION_MIN=$withval
4557 wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4558 echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp
4559
4560else
4561
4562 # default "yes" because when not using an SDK it means the same as no
4563 # but when using an SDK it means to use the SDK version
4564 wxUSE_MACOSX_VERSION_MIN=yes
4565 # See if there is a value in the cache
4566 LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}`
4567 if test "x$LINE" != x ; then
4568 eval "$LINE"
4569 echo "$LINE" >> ${wx_arg_cache_file}.tmp
4570 fi
4571
47964710
VS
4572fi
4573
4574{ echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4575echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
b4e05bdd 4576
a848cd7e
SC
4577
4578
6e198e97
VZ
4579 enablestring=disable
4580 defaultval=
238663c1 4581 if test -z "$defaultval"; then
6e198e97
VZ
4582 if test x"$enablestring" = xdisable; then
4583 defaultval=yes
4584 else
4585 defaultval=no
4586 fi
4587 fi
4588
47964710
VS
4589 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4590echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4591 # Check whether --enable-shared was given.
a848cd7e 4592if test "${enable_shared+set}" = set; then
47964710 4593 enableval=$enable_shared;
a848cd7e 4594 if test "$enableval" = yes; then
d970f7d5 4595 wx_cv_use_shared='wxUSE_SHARED=yes'
a848cd7e 4596 else
d970f7d5 4597 wx_cv_use_shared='wxUSE_SHARED=no'
a848cd7e 4598 fi
8743ec79 4599 cache=yes
a848cd7e
SC
4600
4601else
4602
b46b1d59 4603 LINE=`grep "^wxUSE_SHARED=" ${wx_arg_cache_file}`
a848cd7e 4604 if test "x$LINE" != x ; then
8630a814
VZ
4605 eval "DEFAULT_$LINE"
4606 cache=yes
4607 else
4608 cache=no
a848cd7e
SC
4609 fi
4610
d970f7d5 4611 wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
a848cd7e 4612
47964710
VS
4613fi
4614
a848cd7e 4615
d970f7d5 4616 eval "$wx_cv_use_shared"
8743ec79
VZ
4617 if test "x$cache" = xyes; then
4618 echo "wxUSE_SHARED=$wxUSE_SHARED" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4619 fi
4620
6e198e97
VZ
4621 if test x"$enablestring" = xdisable; then
4622 if test $wxUSE_SHARED = yes; then
4623 result=no
4624 else
4625 result=yes
4626 fi
a848cd7e 4627 else
6e198e97 4628 result=$wxUSE_SHARED
a848cd7e
SC
4629 fi
4630
47964710
VS
4631 { echo "$as_me:$LINENO: result: $result" >&5
4632echo "${ECHO_T}$result" >&6; }
6e198e97 4633
a848cd7e 4634
3d44a145 4635 enablestring=disable
6e198e97 4636 defaultval=
238663c1 4637 if test -z "$defaultval"; then
6e198e97
VZ
4638 if test x"$enablestring" = xdisable; then
4639 defaultval=yes
4640 else
4641 defaultval=no
4642 fi
4643 fi
4644
47964710
VS
4645 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4646echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4647 # Check whether --enable-optimise was given.
a848cd7e 4648if test "${enable_optimise+set}" = set; then
47964710 4649 enableval=$enable_optimise;
a848cd7e 4650 if test "$enableval" = yes; then
d970f7d5 4651 wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
a848cd7e 4652 else
d970f7d5 4653 wx_cv_use_optimise='wxUSE_OPTIMISE=no'
a848cd7e 4654 fi
8743ec79 4655 cache=yes
a848cd7e
SC
4656
4657else
4658
b46b1d59 4659 LINE=`grep "^wxUSE_OPTIMISE=" ${wx_arg_cache_file}`
a848cd7e 4660 if test "x$LINE" != x ; then
8630a814
VZ
4661 eval "DEFAULT_$LINE"
4662 cache=yes
4663 else
4664 cache=no
a848cd7e
SC
4665 fi
4666
d970f7d5 4667 wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
a848cd7e 4668
47964710
VS
4669fi
4670
a848cd7e 4671
d970f7d5 4672 eval "$wx_cv_use_optimise"
8743ec79
VZ
4673 if test "x$cache" = xyes; then
4674 echo "wxUSE_OPTIMISE=$wxUSE_OPTIMISE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4675 fi
4676
6e198e97
VZ
4677 if test x"$enablestring" = xdisable; then
4678 if test $wxUSE_OPTIMISE = yes; then
4679 result=no
4680 else
4681 result=yes
4682 fi
a848cd7e 4683 else
6e198e97 4684 result=$wxUSE_OPTIMISE
a848cd7e
SC
4685 fi
4686
47964710
VS
4687 { echo "$as_me:$LINENO: result: $result" >&5
4688echo "${ECHO_T}$result" >&6; }
6e198e97 4689
a848cd7e 4690
077c7880 4691 enablestring=
6e198e97 4692 defaultval=
238663c1 4693 if test -z "$defaultval"; then
6e198e97
VZ
4694 if test x"$enablestring" = xdisable; then
4695 defaultval=yes
4696 else
4697 defaultval=no
4698 fi
4699 fi
4700
47964710
VS
4701 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4702echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4703 # Check whether --enable-debug was given.
a848cd7e 4704if test "${enable_debug+set}" = set; then
47964710 4705 enableval=$enable_debug;
a848cd7e 4706 if test "$enableval" = yes; then
d970f7d5 4707 wx_cv_use_debug='wxUSE_DEBUG=yes'
a848cd7e 4708 else
d970f7d5 4709 wx_cv_use_debug='wxUSE_DEBUG=no'
a848cd7e 4710 fi
8743ec79 4711 cache=yes
a848cd7e
SC
4712
4713else
4714
b46b1d59 4715 LINE=`grep "^wxUSE_DEBUG=" ${wx_arg_cache_file}`
a848cd7e 4716 if test "x$LINE" != x ; then
8630a814
VZ
4717 eval "DEFAULT_$LINE"
4718 cache=yes
4719 else
4720 cache=no
a848cd7e
SC
4721 fi
4722
d970f7d5 4723 wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
a848cd7e 4724
47964710
VS
4725fi
4726
a848cd7e 4727
d970f7d5 4728 eval "$wx_cv_use_debug"
8743ec79
VZ
4729 if test "x$cache" = xyes; then
4730 echo "wxUSE_DEBUG=$wxUSE_DEBUG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4731 fi
4732
6e198e97
VZ
4733 if test x"$enablestring" = xdisable; then
4734 if test $wxUSE_DEBUG = yes; then
4735 result=no
4736 else
4737 result=yes
4738 fi
a848cd7e 4739 else
6e198e97 4740 result=$wxUSE_DEBUG
a848cd7e
SC
4741 fi
4742
47964710
VS
4743 { echo "$as_me:$LINENO: result: $result" >&5
4744echo "${ECHO_T}$result" >&6; }
6e198e97 4745
a848cd7e 4746
077c7880 4747 enablestring=
6e198e97 4748 defaultval=
238663c1 4749 if test -z "$defaultval"; then
6e198e97
VZ
4750 if test x"$enablestring" = xdisable; then
4751 defaultval=yes
4752 else
4753 defaultval=no
4754 fi
4755 fi
4756
47964710
VS
4757 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4758echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4759 # Check whether --enable-stl was given.
a848cd7e 4760if test "${enable_stl+set}" = set; then
47964710 4761 enableval=$enable_stl;
a848cd7e 4762 if test "$enableval" = yes; then
d970f7d5 4763 wx_cv_use_stl='wxUSE_STL=yes'
a848cd7e 4764 else
d970f7d5 4765 wx_cv_use_stl='wxUSE_STL=no'
a848cd7e 4766 fi
8743ec79 4767 cache=yes
a848cd7e
SC
4768
4769else
4770
b46b1d59 4771 LINE=`grep "^wxUSE_STL=" ${wx_arg_cache_file}`
a848cd7e 4772 if test "x$LINE" != x ; then
8630a814
VZ
4773 eval "DEFAULT_$LINE"
4774 cache=yes
4775 else
4776 cache=no
a848cd7e
SC
4777 fi
4778
d970f7d5 4779 wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
a848cd7e 4780
47964710
VS
4781fi
4782
a848cd7e 4783
d970f7d5 4784 eval "$wx_cv_use_stl"
8743ec79
VZ
4785 if test "x$cache" = xyes; then
4786 echo "wxUSE_STL=$wxUSE_STL" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4787 fi
4788
6e198e97
VZ
4789 if test x"$enablestring" = xdisable; then
4790 if test $wxUSE_STL = yes; then
4791 result=no
4792 else
4793 result=yes
4794 fi
a848cd7e 4795 else
6e198e97 4796 result=$wxUSE_STL
a848cd7e
SC
4797 fi
4798
47964710
VS
4799 { echo "$as_me:$LINENO: result: $result" >&5
4800echo "${ECHO_T}$result" >&6; }
6e198e97 4801
81727065
VS
4802
4803 enablestring=
6e198e97 4804 defaultval=
238663c1 4805 if test -z "$defaultval"; then
6e198e97
VZ
4806 if test x"$enablestring" = xdisable; then
4807 defaultval=yes
4808 else
4809 defaultval=no
4810 fi
4811 fi
4812
47964710
VS
4813 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4814echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4815 # Check whether --enable-std_iostreams was given.
6e198e97 4816if test "${enable_std_iostreams+set}" = set; then
47964710 4817 enableval=$enable_std_iostreams;
81727065 4818 if test "$enableval" = yes; then
d970f7d5 4819 wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
81727065 4820 else
d970f7d5 4821 wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
81727065 4822 fi
8743ec79 4823 cache=yes
81727065
VS
4824
4825else
4826
6e198e97 4827 LINE=`grep "^wxUSE_STD_IOSTREAM=" ${wx_arg_cache_file}`
81727065 4828 if test "x$LINE" != x ; then
8630a814
VZ
4829 eval "DEFAULT_$LINE"
4830 cache=yes
4831 else
4832 cache=no
81727065
VS
4833 fi
4834
d970f7d5 4835 wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
81727065 4836
47964710
VS
4837fi
4838
81727065 4839
d970f7d5 4840 eval "$wx_cv_use_std_iostreams"
8743ec79
VZ
4841 if test "x$cache" = xyes; then
4842 echo "wxUSE_STD_IOSTREAM=$wxUSE_STD_IOSTREAM" >> ${wx_arg_cache_file}.tmp
81727065
VS
4843 fi
4844
6e198e97
VZ
4845 if test x"$enablestring" = xdisable; then
4846 if test $wxUSE_STD_IOSTREAM = yes; then
4847 result=no
4848 else
4849 result=yes
4850 fi
81727065 4851 else
6e198e97 4852 result=$wxUSE_STD_IOSTREAM
81727065
VS
4853 fi
4854
47964710
VS
4855 { echo "$as_me:$LINENO: result: $result" >&5
4856echo "${ECHO_T}$result" >&6; }
6e198e97 4857
a848cd7e 4858
077c7880 4859 enablestring=
6e198e97 4860 defaultval=
238663c1 4861 if test -z "$defaultval"; then
6e198e97
VZ
4862 if test x"$enablestring" = xdisable; then
4863 defaultval=yes
4864 else
4865 defaultval=no
4866 fi
4867 fi
4868
47964710
VS
4869 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4870echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4871 # Check whether --enable-std_string was given.
6e198e97 4872if test "${enable_std_string+set}" = set; then
47964710 4873 enableval=$enable_std_string;
a848cd7e 4874 if test "$enableval" = yes; then
d970f7d5 4875 wx_cv_use_std_string='wxUSE_STD_STRING=yes'
a848cd7e 4876 else
d970f7d5 4877 wx_cv_use_std_string='wxUSE_STD_STRING=no'
a848cd7e 4878 fi
8743ec79 4879 cache=yes
a848cd7e
SC
4880
4881else
4882
6e198e97 4883 LINE=`grep "^wxUSE_STD_STRING=" ${wx_arg_cache_file}`
a848cd7e 4884 if test "x$LINE" != x ; then
8630a814
VZ
4885 eval "DEFAULT_$LINE"
4886 cache=yes
4887 else
4888 cache=no
a848cd7e
SC
4889 fi
4890
d970f7d5 4891 wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
a848cd7e 4892
47964710
VS
4893fi
4894
a848cd7e 4895
d970f7d5 4896 eval "$wx_cv_use_std_string"
8743ec79
VZ
4897 if test "x$cache" = xyes; then
4898 echo "wxUSE_STD_STRING=$wxUSE_STD_STRING" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4899 fi
4900
6e198e97
VZ
4901 if test x"$enablestring" = xdisable; then
4902 if test $wxUSE_STD_STRING = yes; then
4903 result=no
4904 else
4905 result=yes
4906 fi
a848cd7e 4907 else
6e198e97 4908 result=$wxUSE_STD_STRING
a848cd7e
SC
4909 fi
4910
47964710
VS
4911 { echo "$as_me:$LINENO: result: $result" >&5
4912echo "${ECHO_T}$result" >&6; }
a848cd7e 4913
a848cd7e 4914
6e198e97
VZ
4915 enablestring=disable
4916 defaultval=
238663c1 4917 if test -z "$defaultval"; then
6e198e97
VZ
4918 if test x"$enablestring" = xdisable; then
4919 defaultval=yes
4920 else
4921 defaultval=no
4922 fi
4923 fi
a848cd7e 4924
47964710
VS
4925 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4926echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4927 # Check whether --enable-unicode was given.
6e198e97 4928if test "${enable_unicode+set}" = set; then
47964710 4929 enableval=$enable_unicode;
a848cd7e 4930 if test "$enableval" = yes; then
d970f7d5 4931 wx_cv_use_unicode='wxUSE_UNICODE=yes'
a848cd7e 4932 else
d970f7d5 4933 wx_cv_use_unicode='wxUSE_UNICODE=no'
a848cd7e 4934 fi
8743ec79 4935 cache=yes
a848cd7e
SC
4936
4937else
4938
6e198e97 4939 LINE=`grep "^wxUSE_UNICODE=" ${wx_arg_cache_file}`
a848cd7e 4940 if test "x$LINE" != x ; then
8630a814
VZ
4941 eval "DEFAULT_$LINE"
4942 cache=yes
4943 else
4944 cache=no
a848cd7e
SC
4945 fi
4946
d970f7d5 4947 wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
a848cd7e 4948
47964710
VS
4949fi
4950
a848cd7e 4951
d970f7d5 4952 eval "$wx_cv_use_unicode"
8743ec79
VZ
4953 if test "x$cache" = xyes; then
4954 echo "wxUSE_UNICODE=$wxUSE_UNICODE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4955 fi
4956
6e198e97
VZ
4957 if test x"$enablestring" = xdisable; then
4958 if test $wxUSE_UNICODE = yes; then
4959 result=no
4960 else
4961 result=yes
4962 fi
a848cd7e 4963 else
6e198e97 4964 result=$wxUSE_UNICODE
a848cd7e
SC
4965 fi
4966
47964710
VS
4967 { echo "$as_me:$LINENO: result: $result" >&5
4968echo "${ECHO_T}$result" >&6; }
6e198e97 4969
a848cd7e 4970
077c7880 4971 enablestring=
6e198e97 4972 defaultval=
238663c1 4973 if test -z "$defaultval"; then
6e198e97
VZ
4974 if test x"$enablestring" = xdisable; then
4975 defaultval=yes
4976 else
4977 defaultval=no
4978 fi
4979 fi
4980
47964710
VS
4981 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4982echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4983 # Check whether --enable-mslu was given.
6e198e97 4984if test "${enable_mslu+set}" = set; then
47964710 4985 enableval=$enable_mslu;
a848cd7e 4986 if test "$enableval" = yes; then
d970f7d5 4987 wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
a848cd7e 4988 else
d970f7d5 4989 wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
a848cd7e 4990 fi
8743ec79 4991 cache=yes
a848cd7e
SC
4992
4993else
4994
6e198e97 4995 LINE=`grep "^wxUSE_UNICODE_MSLU=" ${wx_arg_cache_file}`
a848cd7e 4996 if test "x$LINE" != x ; then
8630a814
VZ
4997 eval "DEFAULT_$LINE"
4998 cache=yes
4999 else
5000 cache=no
a848cd7e
SC
5001 fi
5002
d970f7d5 5003 wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
a848cd7e 5004
47964710
VS
5005fi
5006
a848cd7e 5007
d970f7d5 5008 eval "$wx_cv_use_mslu"
8743ec79
VZ
5009 if test "x$cache" = xyes; then
5010 echo "wxUSE_UNICODE_MSLU=$wxUSE_UNICODE_MSLU" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5011 fi
5012
6e198e97
VZ
5013 if test x"$enablestring" = xdisable; then
5014 if test $wxUSE_UNICODE_MSLU = yes; then
5015 result=no
5016 else
5017 result=yes
5018 fi
a848cd7e 5019 else
6e198e97 5020 result=$wxUSE_UNICODE_MSLU
a848cd7e
SC
5021 fi
5022
47964710
VS
5023 { echo "$as_me:$LINENO: result: $result" >&5
5024echo "${ECHO_T}$result" >&6; }
6e198e97 5025
a848cd7e 5026
077c7880 5027 enablestring=
47964710
VS
5028 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
5029echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
5030 # Check whether --enable-utf8 was given.
6e198e97 5031if test "${enable_utf8+set}" = set; then
47964710 5032 enableval=$enable_utf8;
6e198e97 5033 wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
8743ec79 5034 cache=yes
a848cd7e
SC
5035
5036else
5037
6e198e97 5038 LINE=`grep "^wxUSE_UNICODE_UTF8=" ${wx_arg_cache_file}`
a848cd7e
SC
5039 if test "x$LINE" != x ; then
5040 eval "DEFAULT_$LINE"
8630a814
VZ
5041 cache=yes
5042 else
5043 cache=no
a848cd7e
SC
5044 fi
5045
6e198e97 5046 wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
a848cd7e 5047
47964710
VS
5048fi
5049
a848cd7e 5050
6e198e97 5051 eval "$wx_cv_use_utf8"
8743ec79
VZ
5052 if test "x$cache" = xyes; then
5053 echo "wxUSE_UNICODE_UTF8=$wxUSE_UNICODE_UTF8" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5054 fi
5055
47964710
VS
5056 { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
5057echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
a848cd7e
SC
5058
5059
077c7880 5060 enablestring=
6e198e97 5061 defaultval=
238663c1 5062 if test -z "$defaultval"; then
6e198e97
VZ
5063 if test x"$enablestring" = xdisable; then
5064 defaultval=yes
5065 else
5066 defaultval=no
5067 fi
5068 fi
5069
47964710
VS
5070 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5071echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
5072 # Check whether --enable-utf8only was given.
6e198e97 5073if test "${enable_utf8only+set}" = set; then
47964710 5074 enableval=$enable_utf8only;
a848cd7e 5075 if test "$enableval" = yes; then
d970f7d5 5076 wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
a848cd7e 5077 else
d970f7d5 5078 wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
6e198e97 5079 fi
8743ec79 5080 cache=yes
6e198e97
VZ
5081
5082else
5083
5084 LINE=`grep "^wxUSE_UNICODE_UTF8_LOCALE=" ${wx_arg_cache_file}`
5085 if test "x$LINE" != x ; then
8630a814
VZ
5086 eval "DEFAULT_$LINE"
5087 cache=yes
5088 else
5089 cache=no
6e198e97
VZ
5090 fi
5091
d970f7d5 5092 wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
6e198e97 5093
47964710
VS
5094fi
5095
6e198e97 5096
d970f7d5 5097 eval "$wx_cv_use_utf8only"
8743ec79
VZ
5098 if test "x$cache" = xyes; then
5099 echo "wxUSE_UNICODE_UTF8_LOCALE=$wxUSE_UNICODE_UTF8_LOCALE" >> ${wx_arg_cache_file}.tmp
6e198e97
VZ
5100 fi
5101
5102 if test x"$enablestring" = xdisable; then
5103 if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
5104 result=no
5105 else
5106 result=yes
5107 fi
5108 else
5109 result=$wxUSE_UNICODE_UTF8_LOCALE
5110 fi
5111
47964710
VS
5112 { echo "$as_me:$LINENO: result: $result" >&5
5113echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
5114
5115
5116 enablestring=
5117 defaultval=
238663c1 5118 if test -z "$defaultval"; then
6e198e97
VZ
5119 if test x"$enablestring" = xdisable; then
5120 defaultval=yes
5121 else
5122 defaultval=no
5123 fi
5124 fi
5125
47964710
VS
5126 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5127echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5128 # Check whether --enable-extended_rtti was given.
6e198e97 5129if test "${enable_extended_rtti+set}" = set; then
47964710 5130 enableval=$enable_extended_rtti;
6e198e97 5131 if test "$enableval" = yes; then
d970f7d5 5132 wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
6e198e97 5133 else
d970f7d5 5134 wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
6e198e97 5135 fi
8743ec79 5136 cache=yes
6e198e97
VZ
5137
5138else
5139
5140 LINE=`grep "^wxUSE_EXTENDED_RTTI=" ${wx_arg_cache_file}`
5141 if test "x$LINE" != x ; then
8630a814
VZ
5142 eval "DEFAULT_$LINE"
5143 cache=yes
5144 else
5145 cache=no
6e198e97
VZ
5146 fi
5147
d970f7d5 5148 wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
6e198e97 5149
47964710
VS
5150fi
5151
6e198e97 5152
d970f7d5 5153 eval "$wx_cv_use_extended_rtti"
8743ec79
VZ
5154 if test "x$cache" = xyes; then
5155 echo "wxUSE_EXTENDED_RTTI=$wxUSE_EXTENDED_RTTI" >> ${wx_arg_cache_file}.tmp
6e198e97
VZ
5156 fi
5157
5158 if test x"$enablestring" = xdisable; then
5159 if test $wxUSE_EXTENDED_RTTI = yes; then
5160 result=no
5161 else
5162 result=yes
5163 fi
5164 else
5165 result=$wxUSE_EXTENDED_RTTI
5166 fi
5167
47964710
VS
5168 { echo "$as_me:$LINENO: result: $result" >&5
5169echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
5170
5171if test "$USE_OS2" = "1"; then
5172 DEFAULT_wxUSE_OMF=no
5173
5174 enablestring=
5175 defaultval=
238663c1 5176 if test -z "$defaultval"; then
6e198e97
VZ
5177 if test x"$enablestring" = xdisable; then
5178 defaultval=yes
5179 else
5180 defaultval=no
5181 fi
5182 fi
5183
47964710
VS
5184 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5185echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5186 # Check whether --enable-omf was given.
6e198e97 5187if test "${enable_omf+set}" = set; then
47964710 5188 enableval=$enable_omf;
6e198e97 5189 if test "$enableval" = yes; then
d970f7d5 5190 wx_cv_use_omf='wxUSE_OMF=yes'
6e198e97 5191 else
d970f7d5 5192 wx_cv_use_omf='wxUSE_OMF=no'
6e198e97 5193 fi
8743ec79 5194 cache=yes
6e198e97
VZ
5195
5196else
5197
5198 LINE=`grep "^wxUSE_OMF=" ${wx_arg_cache_file}`
5199 if test "x$LINE" != x ; then
8630a814
VZ
5200 eval "DEFAULT_$LINE"
5201 cache=yes
5202 else
5203 cache=no
6e198e97
VZ
5204 fi
5205
d970f7d5 5206 wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
6e198e97 5207
47964710
VS
5208fi
5209
6e198e97 5210
d970f7d5 5211 eval "$wx_cv_use_omf"
8743ec79
VZ
5212 if test "x$cache" = xyes; then
5213 echo "wxUSE_OMF=$wxUSE_OMF" >> ${wx_arg_cache_file}.tmp
6e198e97
VZ
5214 fi
5215
5216 if test x"$enablestring" = xdisable; then
5217 if test $wxUSE_OMF = yes; then
5218 result=no
5219 else
5220 result=yes
5221 fi
5222 else
5223 result=$wxUSE_OMF
5224 fi
5225
47964710
VS
5226 { echo "$as_me:$LINENO: result: $result" >&5
5227echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
5228
5229fi
5230
5231if test "$wxUSE_DEBUG" = "yes"; then
5232 DEFAULT_wxUSE_DEBUG_FLAG=yes
5233 DEFAULT_wxUSE_DEBUG_INFO=yes
5234 BUILD=debug
5235elif test "$wxUSE_DEBUG" = "no"; then
5236 DEFAULT_wxUSE_DEBUG_FLAG=no
5237 DEFAULT_wxUSE_DEBUG_INFO=no
5238 BUILD=release
5239fi
5240
5241
5242 enablestring=
5243 defaultval=
238663c1 5244 if test -z "$defaultval"; then
6e198e97
VZ
5245 if test x"$enablestring" = xdisable; then
5246 defaultval=yes
5247 else
5248 defaultval=no
5249 fi
5250 fi
5251
47964710
VS
5252 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
5253echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
5254 # Check whether --enable-debug_flag was given.
6e198e97 5255if test "${enable_debug_flag+set}" = set; then
47964710 5256 enableval=$enable_debug_flag;
6e198e97 5257 if test "$enableval" = yes; then
d970f7d5 5258 wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
6e198e97 5259 else
d970f7d5 5260 wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
6e198e97 5261 fi
8743ec79 5262 cache=yes
6e198e97
VZ
5263
5264else
5265
5266 LINE=`grep "^wxUSE_DEBUG_FLAG=" ${wx_arg_cache_file}`
5267 if test "x$LINE" != x ; then
8630a814
VZ
5268 eval "DEFAULT_$LINE"
5269 cache=yes
5270 else
5271 cache=no
6e198e97
VZ
5272 fi
5273
d970f7d5 5274 wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
6e198e97 5275
47964710
VS
5276fi
5277
6e198e97 5278
d970f7d5 5279 eval "$wx_cv_use_debug_flag"
8743ec79
VZ
5280 if test "x$cache" = xyes; then
5281 echo "wxUSE_DEBUG_FLAG=$wxUSE_DEBUG_FLAG" >> ${wx_arg_cache_file}.tmp
6e198e97
VZ
5282 fi
5283
5284 if test x"$enablestring" = xdisable; then
5285 if test $wxUSE_DEBUG_FLAG = yes; then
5286 result=no
5287 else
5288 result=yes
5289 fi
5290 else
5291 result=$wxUSE_DEBUG_FLAG
5292 fi
5293
47964710
VS
5294 { echo "$as_me:$LINENO: result: $result" >&5
5295echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
5296
5297
5298 enablestring=
5299 defaultval=
238663c1 5300 if test -z "$defaultval"; then
6e198e97
VZ
5301 if test x"$enablestring" = xdisable; then
5302 defaultval=yes
5303 else
5304 defaultval=no
5305 fi
5306 fi
5307
47964710
VS
5308 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
5309echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
5310 # Check whether --enable-debug_info was given.
6e198e97 5311if test "${enable_debug_info+set}" = set; then
47964710 5312 enableval=$enable_debug_info;
6e198e97 5313 if test "$enableval" = yes; then
d970f7d5 5314 wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
6e198e97 5315 else
d970f7d5 5316 wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
6e198e97 5317 fi
8743ec79 5318 cache=yes
6e198e97
VZ
5319
5320else
5321
5322 LINE=`grep "^wxUSE_DEBUG_INFO=" ${wx_arg_cache_file}`
5323 if test "x$LINE" != x ; then
8630a814
VZ
5324 eval "DEFAULT_$LINE"
5325 cache=yes
5326 else
5327 cache=no
6e198e97
VZ
5328 fi
5329
d970f7d5 5330 wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
6e198e97 5331
47964710
VS
5332fi
5333
6e198e97 5334
d970f7d5 5335 eval "$wx_cv_use_debug_info"
8743ec79
VZ
5336 if test "x$cache" = xyes; then
5337 echo "wxUSE_DEBUG_INFO=$wxUSE_DEBUG_INFO" >> ${wx_arg_cache_file}.tmp
6e198e97
VZ
5338 fi
5339
5340 if test x"$enablestring" = xdisable; then
5341 if test $wxUSE_DEBUG_INFO = yes; then
5342 result=no
5343 else
5344 result=yes
5345 fi
5346 else
5347 result=$wxUSE_DEBUG_INFO
5348 fi
5349
47964710
VS
5350 { echo "$as_me:$LINENO: result: $result" >&5
5351echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
5352
5353
5354 enablestring=
5355 defaultval=
238663c1 5356 if test -z "$defaultval"; then
6e198e97
VZ
5357 if test x"$enablestring" = xdisable; then
5358 defaultval=yes
5359 else
5360 defaultval=no
5361 fi
5362 fi
5363
47964710
VS
5364 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
5365echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
5366 # Check whether --enable-debug_gdb was given.
6e198e97 5367if test "${enable_debug_gdb+set}" = set; then
47964710 5368 enableval=$enable_debug_gdb;
6e198e97 5369 if test "$enableval" = yes; then
d970f7d5 5370 wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
6e198e97 5371 else
d970f7d5 5372 wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
6e198e97 5373 fi
8743ec79 5374 cache=yes
6e198e97
VZ
5375
5376else
5377
5378 LINE=`grep "^wxUSE_DEBUG_GDB=" ${wx_arg_cache_file}`
5379 if test "x$LINE" != x ; then
8630a814
VZ
5380 eval "DEFAULT_$LINE"
5381 cache=yes
5382 else
5383 cache=no
6e198e97
VZ
5384 fi
5385
d970f7d5 5386 wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
6e198e97 5387
47964710
VS
5388fi
5389
6e198e97 5390
d970f7d5 5391 eval "$wx_cv_use_debug_gdb"
8743ec79
VZ
5392 if test "x$cache" = xyes; then
5393 echo "wxUSE_DEBUG_GDB=$wxUSE_DEBUG_GDB" >> ${wx_arg_cache_file}.tmp
6e198e97
VZ
5394 fi
5395
5396 if test x"$enablestring" = xdisable; then
5397 if test $wxUSE_DEBUG_GDB = yes; then
5398 result=no
5399 else
5400 result=yes
5401 fi
5402 else
5403 result=$wxUSE_DEBUG_GDB
5404 fi
5405
47964710
VS
5406 { echo "$as_me:$LINENO: result: $result" >&5
5407echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
5408
5409
5410 enablestring=
5411 defaultval=
238663c1 5412 if test -z "$defaultval"; then
6e198e97
VZ
5413 if test x"$enablestring" = xdisable; then
5414 defaultval=yes
5415 else
5416 defaultval=no
5417 fi
5418 fi
5419
47964710
VS
5420 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5421echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5422 # Check whether --enable-debug_cntxt was given.
6e198e97 5423if test "${enable_debug_cntxt+set}" = set; then
47964710 5424 enableval=$enable_debug_cntxt;
6e198e97 5425 if test "$enableval" = yes; then
d970f7d5 5426 wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
6e198e97 5427 else
d970f7d5 5428 wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
a848cd7e 5429 fi
8743ec79 5430 cache=yes
a848cd7e
SC
5431
5432else
5433
b46b1d59 5434 LINE=`grep "^wxUSE_DEBUG_CONTEXT=" ${wx_arg_cache_file}`
a848cd7e 5435 if test "x$LINE" != x ; then
8630a814
VZ
5436 eval "DEFAULT_$LINE"
5437 cache=yes
5438 else
5439 cache=no
a848cd7e
SC
5440 fi
5441
d970f7d5 5442 wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
a848cd7e 5443
47964710
VS
5444fi
5445
a848cd7e 5446
d970f7d5 5447 eval "$wx_cv_use_debug_cntxt"
8743ec79
VZ
5448 if test "x$cache" = xyes; then
5449 echo "wxUSE_DEBUG_CONTEXT=$wxUSE_DEBUG_CONTEXT" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5450 fi
5451
6e198e97
VZ
5452 if test x"$enablestring" = xdisable; then
5453 if test $wxUSE_DEBUG_CONTEXT = yes; then
5454 result=no
5455 else
5456 result=yes
5457 fi
a848cd7e 5458 else
6e198e97 5459 result=$wxUSE_DEBUG_CONTEXT
a848cd7e
SC
5460 fi
5461
47964710
VS
5462 { echo "$as_me:$LINENO: result: $result" >&5
5463echo "${ECHO_T}$result" >&6; }
6e198e97 5464
a848cd7e 5465
077c7880 5466 enablestring=
6e198e97 5467 defaultval=
238663c1 5468 if test -z "$defaultval"; then
6e198e97
VZ
5469 if test x"$enablestring" = xdisable; then
5470 defaultval=yes
5471 else
5472 defaultval=no
5473 fi
5474 fi
5475
47964710
VS
5476 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5477echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5478 # Check whether --enable-mem_tracing was given.
a848cd7e 5479if test "${enable_mem_tracing+set}" = set; then
47964710 5480 enableval=$enable_mem_tracing;
a848cd7e 5481 if test "$enableval" = yes; then
d970f7d5 5482 wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
a848cd7e 5483 else
d970f7d5 5484 wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
a848cd7e 5485 fi
8743ec79 5486 cache=yes
a848cd7e
SC
5487
5488else
5489
b46b1d59 5490 LINE=`grep "^wxUSE_MEM_TRACING=" ${wx_arg_cache_file}`
a848cd7e 5491 if test "x$LINE" != x ; then
8630a814
VZ
5492 eval "DEFAULT_$LINE"
5493 cache=yes
5494 else
5495 cache=no
a848cd7e
SC
5496 fi
5497
d970f7d5 5498 wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
a848cd7e 5499
47964710
VS
5500fi
5501
a848cd7e 5502
d970f7d5 5503 eval "$wx_cv_use_mem_tracing"
8743ec79
VZ
5504 if test "x$cache" = xyes; then
5505 echo "wxUSE_MEM_TRACING=$wxUSE_MEM_TRACING" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5506 fi
5507
6e198e97
VZ
5508 if test x"$enablestring" = xdisable; then
5509 if test $wxUSE_MEM_TRACING = yes; then
5510 result=no
5511 else
5512 result=yes
5513 fi
a848cd7e 5514 else
6e198e97 5515 result=$wxUSE_MEM_TRACING
a848cd7e
SC
5516 fi
5517
47964710
VS
5518 { echo "$as_me:$LINENO: result: $result" >&5
5519echo "${ECHO_T}$result" >&6; }
6e198e97 5520
a848cd7e 5521
077c7880 5522 enablestring=
6e198e97 5523 defaultval=
238663c1 5524 if test -z "$defaultval"; then
6e198e97
VZ
5525 if test x"$enablestring" = xdisable; then
5526 defaultval=yes
5527 else
5528 defaultval=no
5529 fi
5530 fi
5531
47964710
VS
5532 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5533echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5534 # Check whether --enable-profile was given.
a848cd7e 5535if test "${enable_profile+set}" = set; then
47964710 5536 enableval=$enable_profile;
a848cd7e 5537 if test "$enableval" = yes; then
d970f7d5 5538 wx_cv_use_profile='wxUSE_PROFILE=yes'
a848cd7e 5539 else
d970f7d5 5540 wx_cv_use_profile='wxUSE_PROFILE=no'
a848cd7e 5541 fi
8743ec79 5542 cache=yes
a848cd7e
SC
5543
5544else
5545
b46b1d59 5546 LINE=`grep "^wxUSE_PROFILE=" ${wx_arg_cache_file}`
a848cd7e 5547 if test "x$LINE" != x ; then
8630a814
VZ
5548 eval "DEFAULT_$LINE"
5549 cache=yes
5550 else
5551 cache=no
a848cd7e
SC
5552 fi
5553
d970f7d5 5554 wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
a848cd7e 5555
47964710
VS
5556fi
5557
a848cd7e 5558
d970f7d5 5559 eval "$wx_cv_use_profile"
8743ec79
VZ
5560 if test "x$cache" = xyes; then
5561 echo "wxUSE_PROFILE=$wxUSE_PROFILE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5562 fi
5563
6e198e97
VZ
5564 if test x"$enablestring" = xdisable; then
5565 if test $wxUSE_PROFILE = yes; then
5566 result=no
5567 else
5568 result=yes
5569 fi
a848cd7e 5570 else
6e198e97 5571 result=$wxUSE_PROFILE
a848cd7e
SC
5572 fi
5573
47964710
VS
5574 { echo "$as_me:$LINENO: result: $result" >&5
5575echo "${ECHO_T}$result" >&6; }
6e198e97 5576
a848cd7e 5577
077c7880 5578 enablestring=
6e198e97 5579 defaultval=
238663c1 5580 if test -z "$defaultval"; then
6e198e97
VZ
5581 if test x"$enablestring" = xdisable; then
5582 defaultval=yes
5583 else
5584 defaultval=no
5585 fi
5586 fi
5587
47964710
VS
5588 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5589echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5590 # Check whether --enable-no_rtti was given.
a848cd7e 5591if test "${enable_no_rtti+set}" = set; then
47964710 5592 enableval=$enable_no_rtti;
a848cd7e 5593 if test "$enableval" = yes; then
d970f7d5 5594 wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
a848cd7e 5595 else
d970f7d5 5596 wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
a848cd7e 5597 fi
8743ec79 5598 cache=yes
a848cd7e
SC
5599
5600else
5601
b46b1d59 5602 LINE=`grep "^wxUSE_NO_RTTI=" ${wx_arg_cache_file}`
a848cd7e 5603 if test "x$LINE" != x ; then
8630a814
VZ
5604 eval "DEFAULT_$LINE"
5605 cache=yes
5606 else
5607 cache=no
a848cd7e
SC
5608 fi
5609
d970f7d5 5610 wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
a848cd7e 5611
47964710
VS
5612fi
5613
a848cd7e 5614
d970f7d5 5615 eval "$wx_cv_use_no_rtti"
8743ec79
VZ
5616 if test "x$cache" = xyes; then
5617 echo "wxUSE_NO_RTTI=$wxUSE_NO_RTTI" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5618 fi
5619
6e198e97
VZ
5620 if test x"$enablestring" = xdisable; then
5621 if test $wxUSE_NO_RTTI = yes; then
5622 result=no
5623 else
5624 result=yes
5625 fi
a848cd7e 5626 else
6e198e97 5627 result=$wxUSE_NO_RTTI
a848cd7e
SC
5628 fi
5629
47964710
VS
5630 { echo "$as_me:$LINENO: result: $result" >&5
5631echo "${ECHO_T}$result" >&6; }
6e198e97 5632
a848cd7e 5633
077c7880 5634 enablestring=
6e198e97 5635 defaultval=
238663c1 5636 if test -z "$defaultval"; then
6e198e97
VZ
5637 if test x"$enablestring" = xdisable; then
5638 defaultval=yes
5639 else
5640 defaultval=no
5641 fi
5642 fi
5643
47964710
VS
5644 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5645echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5646 # Check whether --enable-no_exceptions was given.
a848cd7e 5647if test "${enable_no_exceptions+set}" = set; then
47964710 5648 enableval=$enable_no_exceptions;
a848cd7e 5649 if test "$enableval" = yes; then
d970f7d5 5650 wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
a848cd7e 5651 else
d970f7d5 5652 wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
a848cd7e 5653 fi
8743ec79 5654 cache=yes
a848cd7e
SC
5655
5656else
5657
b46b1d59 5658 LINE=`grep "^wxUSE_NO_EXCEPTIONS=" ${wx_arg_cache_file}`
a848cd7e 5659 if test "x$LINE" != x ; then
8630a814
VZ
5660 eval "DEFAULT_$LINE"
5661 cache=yes
5662 else
5663 cache=no
a848cd7e
SC
5664 fi
5665
d970f7d5 5666 wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
a848cd7e 5667
47964710
VS
5668fi
5669
a848cd7e 5670
d970f7d5 5671 eval "$wx_cv_use_no_exceptions"
8743ec79
VZ
5672 if test "x$cache" = xyes; then
5673 echo "wxUSE_NO_EXCEPTIONS=$wxUSE_NO_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5674 fi
5675
6e198e97
VZ
5676 if test x"$enablestring" = xdisable; then
5677 if test $wxUSE_NO_EXCEPTIONS = yes; then
5678 result=no
5679 else
5680 result=yes
5681 fi
a848cd7e 5682 else
6e198e97 5683 result=$wxUSE_NO_EXCEPTIONS
a848cd7e
SC
5684 fi
5685
47964710
VS
5686 { echo "$as_me:$LINENO: result: $result" >&5
5687echo "${ECHO_T}$result" >&6; }
6e198e97 5688
a848cd7e 5689
077c7880 5690 enablestring=
6e198e97 5691 defaultval=
238663c1 5692 if test -z "$defaultval"; then
6e198e97
VZ
5693 if test x"$enablestring" = xdisable; then
5694 defaultval=yes
5695 else
5696 defaultval=no
5697 fi
5698 fi
5699
47964710
VS
5700 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5701echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5702 # Check whether --enable-permissive was given.
a848cd7e 5703if test "${enable_permissive+set}" = set; then
47964710 5704 enableval=$enable_permissive;
a848cd7e 5705 if test "$enableval" = yes; then
d970f7d5 5706 wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
a848cd7e 5707 else
d970f7d5 5708 wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
a848cd7e 5709 fi
8743ec79 5710 cache=yes
a848cd7e
SC
5711
5712else
5713
b46b1d59 5714 LINE=`grep "^wxUSE_PERMISSIVE=" ${wx_arg_cache_file}`
a848cd7e 5715 if test "x$LINE" != x ; then
8630a814
VZ
5716 eval "DEFAULT_$LINE"
5717 cache=yes
5718 else
5719 cache=no
a848cd7e
SC
5720 fi
5721
d970f7d5 5722 wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
a848cd7e 5723
47964710
VS
5724fi
5725
a848cd7e 5726
d970f7d5 5727 eval "$wx_cv_use_permissive"
8743ec79
VZ
5728 if test "x$cache" = xyes; then
5729 echo "wxUSE_PERMISSIVE=$wxUSE_PERMISSIVE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5730 fi
5731
6e198e97
VZ
5732 if test x"$enablestring" = xdisable; then
5733 if test $wxUSE_PERMISSIVE = yes; then
5734 result=no
5735 else
5736 result=yes
5737 fi
a848cd7e 5738 else
6e198e97 5739 result=$wxUSE_PERMISSIVE
a848cd7e
SC
5740 fi
5741
47964710
VS
5742 { echo "$as_me:$LINENO: result: $result" >&5
5743echo "${ECHO_T}$result" >&6; }
6e198e97 5744
a848cd7e 5745
077c7880 5746 enablestring=
6e198e97 5747 defaultval=
238663c1 5748 if test -z "$defaultval"; then
6e198e97
VZ
5749 if test x"$enablestring" = xdisable; then
5750 defaultval=yes
5751 else
5752 defaultval=no
5753 fi
5754 fi
5755
47964710
VS
5756 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5757echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5758 # Check whether --enable-no_deps was given.
a848cd7e 5759if test "${enable_no_deps+set}" = set; then
47964710 5760 enableval=$enable_no_deps;
a848cd7e 5761 if test "$enableval" = yes; then
d970f7d5 5762 wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
a848cd7e 5763 else
d970f7d5 5764 wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
a848cd7e 5765 fi
8743ec79 5766 cache=yes
a848cd7e
SC
5767
5768else
5769
b46b1d59 5770 LINE=`grep "^wxUSE_NO_DEPS=" ${wx_arg_cache_file}`
a848cd7e 5771 if test "x$LINE" != x ; then
8630a814
VZ
5772 eval "DEFAULT_$LINE"
5773 cache=yes
5774 else
5775 cache=no
a848cd7e
SC
5776 fi
5777
d970f7d5 5778 wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
a848cd7e 5779
47964710
VS
5780fi
5781
a848cd7e 5782
d970f7d5 5783 eval "$wx_cv_use_no_deps"
8743ec79
VZ
5784 if test "x$cache" = xyes; then
5785 echo "wxUSE_NO_DEPS=$wxUSE_NO_DEPS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5786 fi
5787
6e198e97
VZ
5788 if test x"$enablestring" = xdisable; then
5789 if test $wxUSE_NO_DEPS = yes; then
5790 result=no
5791 else
5792 result=yes
5793 fi
a848cd7e 5794 else
6e198e97 5795 result=$wxUSE_NO_DEPS
a848cd7e
SC
5796 fi
5797
47964710
VS
5798 { echo "$as_me:$LINENO: result: $result" >&5
5799echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
5800
5801
5802 enablestring=disable
5803 defaultval=
238663c1 5804 if test -z "$defaultval"; then
6e198e97
VZ
5805 if test x"$enablestring" = xdisable; then
5806 defaultval=yes
5807 else
5808 defaultval=no
5809 fi
5810 fi
a848cd7e 5811
47964710
VS
5812 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5813echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5814 # Check whether --enable-vararg_macros was given.
70c536f3 5815if test "${enable_vararg_macros+set}" = set; then
47964710 5816 enableval=$enable_vararg_macros;
70c536f3 5817 if test "$enableval" = yes; then
d970f7d5 5818 wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
70c536f3 5819 else
d970f7d5 5820 wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
70c536f3 5821 fi
8743ec79 5822 cache=yes
70c536f3
VZ
5823
5824else
5825
b46b1d59 5826 LINE=`grep "^wxUSE_VARARG_MACROS=" ${wx_arg_cache_file}`
70c536f3 5827 if test "x$LINE" != x ; then
8630a814
VZ
5828 eval "DEFAULT_$LINE"
5829 cache=yes
5830 else
5831 cache=no
70c536f3
VZ
5832 fi
5833
d970f7d5 5834 wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
70c536f3 5835
47964710
VS
5836fi
5837
70c536f3 5838
d970f7d5 5839 eval "$wx_cv_use_vararg_macros"
8743ec79
VZ
5840 if test "x$cache" = xyes; then
5841 echo "wxUSE_VARARG_MACROS=$wxUSE_VARARG_MACROS" >> ${wx_arg_cache_file}.tmp
70c536f3
VZ
5842 fi
5843
6e198e97
VZ
5844 if test x"$enablestring" = xdisable; then
5845 if test $wxUSE_VARARG_MACROS = yes; then
5846 result=no
5847 else
5848 result=yes
5849 fi
70c536f3 5850 else
6e198e97 5851 result=$wxUSE_VARARG_MACROS
70c536f3
VZ
5852 fi
5853
47964710
VS
5854 { echo "$as_me:$LINENO: result: $result" >&5
5855echo "${ECHO_T}$result" >&6; }
6e198e97 5856
70c536f3 5857
95768535 5858 enablestring=
47964710
VS
5859 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5860echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5861 # Check whether --enable-universal_binary was given.
7afc46ab 5862if test "${enable_universal_binary+set}" = set; then
47964710 5863 enableval=$enable_universal_binary;
95768535 5864 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
8743ec79 5865 cache=yes
7afc46ab
KO
5866
5867else
5868
b46b1d59 5869 LINE=`grep "^wxUSE_UNIVERSAL_BINARY=" ${wx_arg_cache_file}`
7afc46ab
KO
5870 if test "x$LINE" != x ; then
5871 eval "DEFAULT_$LINE"
8630a814
VZ
5872 cache=yes
5873 else
5874 cache=no
7afc46ab
KO
5875 fi
5876
ca4c9b7e
VS
5877 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5878
47964710
VS
5879fi
5880
7afc46ab 5881
95768535 5882 eval "$wx_cv_use_universal_binary"
8743ec79
VZ
5883 if test "x$cache" = xyes; then
5884 echo "wxUSE_UNIVERSAL_BINARY=$wxUSE_UNIVERSAL_BINARY" >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
5885 fi
5886
47964710
VS
5887 { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5888echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
7afc46ab
KO
5889
5890
a848cd7e 5891
6e198e97
VZ
5892 enablestring=
5893 defaultval=
238663c1 5894 if test -z "$defaultval"; then
6e198e97
VZ
5895 if test x"$enablestring" = xdisable; then
5896 defaultval=yes
5897 else
5898 defaultval=no
5899 fi
5900 fi
5901
47964710
VS
5902 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5903echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5904 # Check whether --enable-compat26 was given.
dee1a63f 5905if test "${enable_compat26+set}" = set; then
47964710 5906 enableval=$enable_compat26;
a848cd7e 5907 if test "$enableval" = yes; then
d970f7d5 5908 wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 5909 else
d970f7d5 5910 wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e 5911 fi
8743ec79 5912 cache=yes
a848cd7e
SC
5913
5914else
5915
b46b1d59 5916 LINE=`grep "^WXWIN_COMPATIBILITY_2_6=" ${wx_arg_cache_file}`
a848cd7e 5917 if test "x$LINE" != x ; then
8630a814
VZ
5918 eval "DEFAULT_$LINE"
5919 cache=yes
5920 else
5921 cache=no
a848cd7e
SC
5922 fi
5923
d970f7d5 5924 wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
a848cd7e 5925
47964710
VS
5926fi
5927
a848cd7e 5928
d970f7d5 5929 eval "$wx_cv_use_compat26"
8743ec79
VZ
5930 if test "x$cache" = xyes; then
5931 echo "WXWIN_COMPATIBILITY_2_6=$WXWIN_COMPATIBILITY_2_6" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5932 fi
5933
6e198e97
VZ
5934 if test x"$enablestring" = xdisable; then
5935 if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5936 result=no
5937 else
5938 result=yes
5939 fi
a848cd7e 5940 else
6e198e97 5941 result=$WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
5942 fi
5943
47964710
VS
5944 { echo "$as_me:$LINENO: result: $result" >&5
5945echo "${ECHO_T}$result" >&6; }
6e198e97 5946
a848cd7e 5947
abb6edd1 5948 enablestring=disable
6e198e97 5949 defaultval=
238663c1 5950 if test -z "$defaultval"; then
6e198e97
VZ
5951 if test x"$enablestring" = xdisable; then
5952 defaultval=yes
5953 else
5954 defaultval=no
5955 fi
5956 fi
5957
47964710
VS
5958 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5959echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5960 # Check whether --enable-compat28 was given.
abb6edd1 5961if test "${enable_compat28+set}" = set; then
47964710 5962 enableval=$enable_compat28;
abb6edd1 5963 if test "$enableval" = yes; then
d970f7d5 5964 wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
abb6edd1 5965 else
d970f7d5 5966 wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
abb6edd1 5967 fi
8743ec79 5968 cache=yes
abb6edd1
VS
5969
5970else
5971
b46b1d59 5972 LINE=`grep "^WXWIN_COMPATIBILITY_2_8=" ${wx_arg_cache_file}`
abb6edd1 5973 if test "x$LINE" != x ; then
8630a814
VZ
5974 eval "DEFAULT_$LINE"
5975 cache=yes
5976 else
5977 cache=no
abb6edd1
VS
5978 fi
5979
d970f7d5 5980 wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
abb6edd1 5981
47964710
VS
5982fi
5983
abb6edd1 5984
d970f7d5 5985 eval "$wx_cv_use_compat28"
8743ec79
VZ
5986 if test "x$cache" = xyes; then
5987 echo "WXWIN_COMPATIBILITY_2_8=$WXWIN_COMPATIBILITY_2_8" >> ${wx_arg_cache_file}.tmp
abb6edd1
VS
5988 fi
5989
6e198e97
VZ
5990 if test x"$enablestring" = xdisable; then
5991 if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5992 result=no
5993 else
5994 result=yes
5995 fi
abb6edd1 5996 else
6e198e97 5997 result=$WXWIN_COMPATIBILITY_2_8
abb6edd1
VS
5998 fi
5999
47964710
VS
6000 { echo "$as_me:$LINENO: result: $result" >&5
6001echo "${ECHO_T}$result" >&6; }
abb6edd1 6002
ffa0583f 6003
6e198e97
VZ
6004
6005 enablestring=disable
6006 defaultval=
238663c1 6007 if test -z "$defaultval"; then
6e198e97
VZ
6008 if test x"$enablestring" = xdisable; then
6009 defaultval=yes
6010 else
6011 defaultval=no
6012 fi
6013 fi
6014
47964710
VS
6015 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
6016echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
6017 # Check whether --enable-rpath was given.
a848cd7e 6018if test "${enable_rpath+set}" = set; then
47964710 6019 enableval=$enable_rpath;
ffa0583f 6020 if test "$enableval" = yes; then
d970f7d5 6021 wx_cv_use_rpath='wxUSE_RPATH=yes'
ffa0583f 6022 else
d970f7d5 6023 wx_cv_use_rpath='wxUSE_RPATH=no'
ffa0583f 6024 fi
8743ec79 6025 cache=yes
ffa0583f
RL
6026
6027else
6028
b46b1d59 6029 LINE=`grep "^wxUSE_RPATH=" ${wx_arg_cache_file}`
ffa0583f 6030 if test "x$LINE" != x ; then
8630a814
VZ
6031 eval "DEFAULT_$LINE"
6032 cache=yes
6033 else
6034 cache=no
ffa0583f
RL
6035 fi
6036
d970f7d5 6037 wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
ffa0583f 6038
47964710
VS
6039fi
6040
a848cd7e 6041
d970f7d5 6042 eval "$wx_cv_use_rpath"
8743ec79
VZ
6043 if test "x$cache" = xyes; then
6044 echo "wxUSE_RPATH=$wxUSE_RPATH" >> ${wx_arg_cache_file}.tmp
ffa0583f
RL
6045 fi
6046
6e198e97
VZ
6047 if test x"$enablestring" = xdisable; then
6048 if test $wxUSE_RPATH = yes; then
6049 result=no
6050 else
6051 result=yes
6052 fi
ffa0583f 6053 else
6e198e97 6054 result=$wxUSE_RPATH
ffa0583f
RL
6055 fi
6056
47964710
VS
6057 { echo "$as_me:$LINENO: result: $result" >&5
6058echo "${ECHO_T}$result" >&6; }
6e198e97 6059
a848cd7e
SC
6060
6061
931d7698 6062 enablestring=
6e198e97 6063 defaultval=
238663c1 6064 if test -z "$defaultval"; then
6e198e97
VZ
6065 if test x"$enablestring" = xdisable; then
6066 defaultval=yes
6067 else
6068 defaultval=no
6069 fi
6070 fi
6071
47964710
VS
6072 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
6073echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
6074 # Check whether --enable-objc_uniquifying was given.
931d7698 6075if test "${enable_objc_uniquifying+set}" = set; then
47964710 6076 enableval=$enable_objc_uniquifying;
931d7698 6077 if test "$enableval" = yes; then
d970f7d5 6078 wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
931d7698 6079 else
d970f7d5 6080 wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
931d7698 6081 fi
8743ec79 6082 cache=yes
931d7698
DE
6083
6084else
6085
6086 LINE=`grep "^wxUSE_OBJC_UNIQUIFYING=" ${wx_arg_cache_file}`
6087 if test "x$LINE" != x ; then
8630a814
VZ
6088 eval "DEFAULT_$LINE"
6089 cache=yes
6090 else
6091 cache=no
931d7698
DE
6092 fi
6093
d970f7d5 6094 wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
931d7698 6095
47964710
VS
6096fi
6097
931d7698 6098
d970f7d5 6099 eval "$wx_cv_use_objc_uniquifying"
8743ec79
VZ
6100 if test "x$cache" = xyes; then
6101 echo "wxUSE_OBJC_UNIQUIFYING=$wxUSE_OBJC_UNIQUIFYING" >> ${wx_arg_cache_file}.tmp
931d7698
DE
6102 fi
6103
6e198e97
VZ
6104 if test x"$enablestring" = xdisable; then
6105 if test $wxUSE_OBJC_UNIQUIFYING = yes; then
6106 result=no
6107 else
6108 result=yes
6109 fi
931d7698 6110 else
6e198e97 6111 result=$wxUSE_OBJC_UNIQUIFYING
931d7698
DE
6112 fi
6113
47964710
VS
6114 { echo "$as_me:$LINENO: result: $result" >&5
6115echo "${ECHO_T}$result" >&6; }
6e198e97 6116
931d7698 6117
a848cd7e 6118
a2bd84a5
VS
6119 enablestring=disable
6120 defaultval=
6121 if test -z "$defaultval"; then
6122 if test x"$enablestring" = xdisable; then
6123 defaultval=yes
6124 else
6125 defaultval=no
6126 fi
6127 fi
6128
47964710
VS
6129 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
6130echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
6131 # Check whether --enable-visibility was given.
a2bd84a5 6132if test "${enable_visibility+set}" = set; then
47964710 6133 enableval=$enable_visibility;
a2bd84a5 6134 if test "$enableval" = yes; then
d970f7d5 6135 wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
a2bd84a5 6136 else
d970f7d5 6137 wx_cv_use_visibility='wxUSE_VISIBILITY=no'
a2bd84a5 6138 fi
8743ec79 6139 cache=yes
a2bd84a5
VS
6140
6141else
6142
6143 LINE=`grep "^wxUSE_VISIBILITY=" ${wx_arg_cache_file}`
6144 if test "x$LINE" != x ; then
8630a814
VZ
6145 eval "DEFAULT_$LINE"
6146 cache=yes
6147 else
6148 cache=no
a2bd84a5
VS
6149 fi
6150
d970f7d5 6151 wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
a2bd84a5 6152
47964710
VS
6153fi
6154
a2bd84a5 6155
d970f7d5 6156 eval "$wx_cv_use_visibility"
8743ec79
VZ
6157 if test "x$cache" = xyes; then
6158 echo "wxUSE_VISIBILITY=$wxUSE_VISIBILITY" >> ${wx_arg_cache_file}.tmp
a2bd84a5
VS
6159 fi
6160
6161 if test x"$enablestring" = xdisable; then
6162 if test $wxUSE_VISIBILITY = yes; then
6163 result=no
6164 else
6165 result=yes
6166 fi
6167 else
6168 result=$wxUSE_VISIBILITY
6169 fi
6170
47964710
VS
6171 { echo "$as_me:$LINENO: result: $result" >&5
6172echo "${ECHO_T}$result" >&6; }
a2bd84a5
VS
6173
6174
6175
a848cd7e 6176
077c7880 6177 enablestring=
6e198e97 6178 defaultval=$wxUSE_ALL_FEATURES
238663c1 6179 if test -z "$defaultval"; then
6e198e97
VZ
6180 if test x"$enablestring" = xdisable; then
6181 defaultval=yes
6182 else
6183 defaultval=no
6184 fi
6185 fi
6186
47964710
VS
6187 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
6188echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
6189 # Check whether --enable-intl was given.
a848cd7e 6190if test "${enable_intl+set}" = set; then
47964710 6191 enableval=$enable_intl;
a848cd7e 6192 if test "$enableval" = yes; then
d970f7d5 6193 wx_cv_use_intl='wxUSE_INTL=yes'
a848cd7e 6194 else
d970f7d5 6195 wx_cv_use_intl='wxUSE_INTL=no'
a848cd7e 6196 fi
8743ec79 6197 cache=yes
a848cd7e
SC
6198
6199else
6200
b46b1d59 6201 LINE=`grep "^wxUSE_INTL=" ${wx_arg_cache_file}`
a848cd7e 6202 if test "x$LINE" != x ; then
8630a814
VZ
6203 eval "DEFAULT_$LINE"
6204 cache=yes
6205 else
6206 cache=no
a848cd7e
SC
6207 fi
6208
d970f7d5 6209 wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
a848cd7e 6210
47964710
VS
6211fi
6212
a848cd7e 6213
d970f7d5 6214 eval "$wx_cv_use_intl"
8743ec79
VZ
6215 if test "x$cache" = xyes; then
6216 echo "wxUSE_INTL=$wxUSE_INTL" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6217 fi
6218
6e198e97
VZ
6219 if test x"$enablestring" = xdisable; then
6220 if test $wxUSE_INTL = yes; then
6221 result=no
6222 else
6223 result=yes
6224 fi
a848cd7e 6225 else
6e198e97 6226 result=$wxUSE_INTL
a848cd7e
SC
6227 fi
6228
47964710
VS
6229 { echo "$as_me:$LINENO: result: $result" >&5
6230echo "${ECHO_T}$result" >&6; }
6e198e97 6231
a848cd7e 6232
077c7880 6233 enablestring=
6e198e97 6234 defaultval=$wxUSE_ALL_FEATURES
238663c1 6235 if test -z "$defaultval"; then
6e198e97
VZ
6236 if test x"$enablestring" = xdisable; then
6237 defaultval=yes
6238 else
6239 defaultval=no
6240 fi
6241 fi
6242
47964710
VS
6243 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
6244echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
6245 # Check whether --enable-config was given.
a848cd7e 6246if test "${enable_config+set}" = set; then
47964710 6247 enableval=$enable_config;
a848cd7e 6248 if test "$enableval" = yes; then
d970f7d5 6249 wx_cv_use_config='wxUSE_CONFIG=yes'
a848cd7e 6250 else
d970f7d5 6251 wx_cv_use_config='wxUSE_CONFIG=no'
a848cd7e 6252 fi
8743ec79 6253 cache=yes
a848cd7e
SC
6254
6255else
6256
b46b1d59 6257 LINE=`grep "^wxUSE_CONFIG=" ${wx_arg_cache_file}`
a848cd7e 6258 if test "x$LINE" != x ; then
8630a814
VZ
6259 eval "DEFAULT_$LINE"
6260 cache=yes
6261 else
6262 cache=no
a848cd7e
SC
6263 fi
6264
d970f7d5 6265 wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
a848cd7e 6266
47964710
VS
6267fi
6268
a848cd7e 6269
d970f7d5 6270 eval "$wx_cv_use_config"
8743ec79
VZ
6271 if test "x$cache" = xyes; then
6272 echo "wxUSE_CONFIG=$wxUSE_CONFIG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6273 fi
6274
6e198e97
VZ
6275 if test x"$enablestring" = xdisable; then
6276 if test $wxUSE_CONFIG = yes; then
6277 result=no
6278 else
6279 result=yes
6280 fi
a848cd7e 6281 else
6e198e97 6282 result=$wxUSE_CONFIG
a848cd7e
SC
6283 fi
6284
47964710
VS
6285 { echo "$as_me:$LINENO: result: $result" >&5
6286echo "${ECHO_T}$result" >&6; }
6e198e97 6287
a848cd7e
SC
6288
6289
077c7880 6290 enablestring=
6e198e97 6291 defaultval=$wxUSE_ALL_FEATURES
238663c1 6292 if test -z "$defaultval"; then
6e198e97
VZ
6293 if test x"$enablestring" = xdisable; then
6294 defaultval=yes
6295 else
6296 defaultval=no
6297 fi
6298 fi
6299
47964710
VS
6300 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6301echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
6302 # Check whether --enable-protocols was given.
a848cd7e 6303if test "${enable_protocols+set}" = set; then
47964710 6304 enableval=$enable_protocols;
a848cd7e 6305 if test "$enableval" = yes; then
d970f7d5 6306 wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
a848cd7e 6307 else
d970f7d5 6308 wx_cv_use_protocols='wxUSE_PROTOCOL=no'
a848cd7e 6309 fi
8743ec79 6310 cache=yes
a848cd7e
SC
6311
6312else
6313
b46b1d59 6314 LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
a848cd7e 6315 if test "x$LINE" != x ; then
8630a814
VZ
6316 eval "DEFAULT_$LINE"
6317 cache=yes
6318 else
6319 cache=no
a848cd7e
SC
6320 fi
6321
d970f7d5 6322 wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
a848cd7e 6323
47964710
VS
6324fi
6325
a848cd7e 6326
d970f7d5 6327 eval "$wx_cv_use_protocols"
8743ec79
VZ
6328 if test "x$cache" = xyes; then
6329 echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6330 fi
6331
6e198e97
VZ
6332 if test x"$enablestring" = xdisable; then
6333 if test $wxUSE_PROTOCOL = yes; then
6334 result=no
6335 else
6336 result=yes
6337 fi
a848cd7e 6338 else
6e198e97 6339 result=$wxUSE_PROTOCOL
a848cd7e
SC
6340 fi
6341
47964710
VS
6342 { echo "$as_me:$LINENO: result: $result" >&5
6343echo "${ECHO_T}$result" >&6; }
6e198e97 6344
a848cd7e 6345
077c7880 6346 enablestring=
6e198e97 6347 defaultval=$wxUSE_ALL_FEATURES
238663c1 6348 if test -z "$defaultval"; then
6e198e97
VZ
6349 if test x"$enablestring" = xdisable; then
6350 defaultval=yes
6351 else
6352 defaultval=no
6353 fi
6354 fi
6355
47964710
VS
6356 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6357echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6358 # Check whether --enable-ftp was given.
a848cd7e 6359if test "${enable_ftp+set}" = set; then
47964710 6360 enableval=$enable_ftp;
a848cd7e 6361 if test "$enableval" = yes; then
d970f7d5 6362 wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
a848cd7e 6363 else
d970f7d5 6364 wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
a848cd7e 6365 fi
8743ec79 6366 cache=yes
a848cd7e
SC
6367
6368else
6369
b46b1d59 6370 LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
a848cd7e 6371 if test "x$LINE" != x ; then
8630a814
VZ
6372 eval "DEFAULT_$LINE"
6373 cache=yes
6374 else
6375 cache=no
a848cd7e
SC
6376 fi
6377
d970f7d5 6378 wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
a848cd7e 6379
47964710
VS
6380fi
6381
a848cd7e 6382
d970f7d5 6383 eval "$wx_cv_use_ftp"
8743ec79
VZ
6384 if test "x$cache" = xyes; then
6385 echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6386 fi
6387
6e198e97
VZ
6388 if test x"$enablestring" = xdisable; then
6389 if test $wxUSE_PROTOCOL_FTP = yes; then
6390 result=no
6391 else
6392 result=yes
6393 fi
a848cd7e 6394 else
6e198e97 6395 result=$wxUSE_PROTOCOL_FTP
a848cd7e
SC
6396 fi
6397
47964710
VS
6398 { echo "$as_me:$LINENO: result: $result" >&5
6399echo "${ECHO_T}$result" >&6; }
6e198e97 6400
a848cd7e 6401
077c7880 6402 enablestring=
6e198e97 6403 defaultval=$wxUSE_ALL_FEATURES
238663c1 6404 if test -z "$defaultval"; then
6e198e97
VZ
6405 if test x"$enablestring" = xdisable; then
6406 defaultval=yes
6407 else
6408 defaultval=no
6409 fi
6410 fi
6411
47964710
VS
6412 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6413echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6414 # Check whether --enable-http was given.
a848cd7e 6415if test "${enable_http+set}" = set; then
47964710 6416 enableval=$enable_http;
a848cd7e 6417 if test "$enableval" = yes; then
d970f7d5 6418 wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
a848cd7e 6419 else
d970f7d5 6420 wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
a848cd7e 6421 fi
8743ec79 6422 cache=yes
a848cd7e
SC
6423
6424else
6425
b46b1d59 6426 LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
a848cd7e 6427 if test "x$LINE" != x ; then
8630a814
VZ
6428 eval "DEFAULT_$LINE"
6429 cache=yes
6430 else
6431 cache=no
a848cd7e
SC
6432 fi
6433
d970f7d5 6434 wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
a848cd7e 6435
47964710
VS
6436fi
6437
a848cd7e 6438
d970f7d5 6439 eval "$wx_cv_use_http"
8743ec79
VZ
6440 if test "x$cache" = xyes; then
6441 echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6442 fi
6443
6e198e97
VZ
6444 if test x"$enablestring" = xdisable; then
6445 if test $wxUSE_PROTOCOL_HTTP = yes; then
6446 result=no
6447 else
6448 result=yes
6449 fi
a848cd7e 6450 else
6e198e97 6451 result=$wxUSE_PROTOCOL_HTTP
a848cd7e
SC
6452 fi
6453
47964710
VS
6454 { echo "$as_me:$LINENO: result: $result" >&5
6455echo "${ECHO_T}$result" >&6; }
6e198e97 6456
a848cd7e 6457
077c7880 6458 enablestring=
6e198e97 6459 defaultval=$wxUSE_ALL_FEATURES
238663c1 6460 if test -z "$defaultval"; then
6e198e97
VZ
6461 if test x"$enablestring" = xdisable; then
6462 defaultval=yes
6463 else
6464 defaultval=no
6465 fi
6466 fi
6467
47964710
VS
6468 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6469echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6470 # Check whether --enable-fileproto was given.
a848cd7e 6471if test "${enable_fileproto+set}" = set; then
47964710 6472 enableval=$enable_fileproto;
a848cd7e 6473 if test "$enableval" = yes; then
d970f7d5 6474 wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
a848cd7e 6475 else
d970f7d5 6476 wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
a848cd7e 6477 fi
8743ec79 6478 cache=yes
a848cd7e
SC
6479
6480else
6481
b46b1d59 6482 LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
a848cd7e 6483 if test "x$LINE" != x ; then
8630a814
VZ
6484 eval "DEFAULT_$LINE"
6485 cache=yes
6486 else
6487 cache=no
a848cd7e
SC
6488 fi
6489
d970f7d5 6490 wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
a848cd7e 6491
47964710
VS
6492fi
6493
a848cd7e 6494
d970f7d5 6495 eval "$wx_cv_use_fileproto"
8743ec79
VZ
6496 if test "x$cache" = xyes; then
6497 echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6498 fi
6499
6e198e97
VZ
6500 if test x"$enablestring" = xdisable; then
6501 if test $wxUSE_PROTOCOL_FILE = yes; then
6502 result=no
6503 else
6504 result=yes
6505 fi
a848cd7e 6506 else
6e198e97 6507 result=$wxUSE_PROTOCOL_FILE
a848cd7e
SC
6508 fi
6509
47964710
VS
6510 { echo "$as_me:$LINENO: result: $result" >&5
6511echo "${ECHO_T}$result" >&6; }
6e198e97 6512
a848cd7e 6513
077c7880 6514 enablestring=
6e198e97 6515 defaultval=$wxUSE_ALL_FEATURES
238663c1 6516 if test -z "$defaultval"; then
6e198e97
VZ
6517 if test x"$enablestring" = xdisable; then
6518 defaultval=yes
6519 else
6520 defaultval=no
6521 fi
6522 fi
6523
47964710
VS
6524 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6525echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6526 # Check whether --enable-sockets was given.
a848cd7e 6527if test "${enable_sockets+set}" = set; then
47964710 6528 enableval=$enable_sockets;
a848cd7e 6529 if test "$enableval" = yes; then
d970f7d5 6530 wx_cv_use_sockets='wxUSE_SOCKETS=yes'
a848cd7e 6531 else
d970f7d5 6532 wx_cv_use_sockets='wxUSE_SOCKETS=no'
a848cd7e 6533 fi
8743ec79 6534 cache=yes
a848cd7e
SC
6535
6536else
6537
b46b1d59 6538 LINE=`grep "^wxUSE_SOCKETS=" ${wx_arg_cache_file}`
a848cd7e 6539 if test "x$LINE" != x ; then
8630a814
VZ
6540 eval "DEFAULT_$LINE"
6541 cache=yes
6542 else
6543 cache=no
a848cd7e
SC
6544 fi
6545
d970f7d5 6546 wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
a848cd7e 6547
47964710
VS
6548fi
6549
a848cd7e 6550
d970f7d5 6551 eval "$wx_cv_use_sockets"
8743ec79
VZ
6552 if test "x$cache" = xyes; then
6553 echo "wxUSE_SOCKETS=$wxUSE_SOCKETS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6554 fi
6555
6e198e97
VZ
6556 if test x"$enablestring" = xdisable; then
6557 if test $wxUSE_SOCKETS = yes; then
6558 result=no
6559 else
6560 result=yes
6561 fi
a848cd7e 6562 else
6e198e97 6563 result=$wxUSE_SOCKETS
a848cd7e
SC
6564 fi
6565
47964710
VS
6566 { echo "$as_me:$LINENO: result: $result" >&5
6567echo "${ECHO_T}$result" >&6; }
6e198e97 6568
a848cd7e 6569
077c7880 6570 enablestring=
6e198e97 6571 defaultval=$wxUSE_ALL_FEATURES
238663c1 6572 if test -z "$defaultval"; then
6e198e97
VZ
6573 if test x"$enablestring" = xdisable; then
6574 defaultval=yes
6575 else
6576 defaultval=no
6577 fi
6578 fi
6579
47964710
VS
6580 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6581echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6582 # Check whether --enable-ole was given.
a848cd7e 6583if test "${enable_ole+set}" = set; then
47964710 6584 enableval=$enable_ole;
a848cd7e 6585 if test "$enableval" = yes; then
d970f7d5 6586 wx_cv_use_ole='wxUSE_OLE=yes'
a848cd7e 6587 else
d970f7d5 6588 wx_cv_use_ole='wxUSE_OLE=no'
a848cd7e 6589 fi
8743ec79 6590 cache=yes
a848cd7e
SC
6591
6592else
6593
b46b1d59 6594 LINE=`grep "^wxUSE_OLE=" ${wx_arg_cache_file}`
a848cd7e 6595 if test "x$LINE" != x ; then
8630a814
VZ
6596 eval "DEFAULT_$LINE"
6597 cache=yes
6598 else
6599 cache=no
a848cd7e
SC
6600 fi
6601
d970f7d5 6602 wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
a848cd7e 6603
47964710
VS
6604fi
6605
a848cd7e 6606
d970f7d5 6607 eval "$wx_cv_use_ole"
8743ec79
VZ
6608 if test "x$cache" = xyes; then
6609 echo "wxUSE_OLE=$wxUSE_OLE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6610 fi
6611
6e198e97
VZ
6612 if test x"$enablestring" = xdisable; then
6613 if test $wxUSE_OLE = yes; then
6614 result=no
6615 else
6616 result=yes
6617 fi
a848cd7e 6618 else
6e198e97 6619 result=$wxUSE_OLE
a848cd7e
SC
6620 fi
6621
47964710
VS
6622 { echo "$as_me:$LINENO: result: $result" >&5
6623echo "${ECHO_T}$result" >&6; }
6e198e97 6624
a848cd7e 6625
077c7880 6626 enablestring=
6e198e97 6627 defaultval=$wxUSE_ALL_FEATURES
238663c1 6628 if test -z "$defaultval"; then
6e198e97
VZ
6629 if test x"$enablestring" = xdisable; then
6630 defaultval=yes
6631 else
6632 defaultval=no
6633 fi
6634 fi
6635
47964710
VS
6636 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6637echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6638 # Check whether --enable-dataobj was given.
a848cd7e 6639if test "${enable_dataobj+set}" = set; then
47964710 6640 enableval=$enable_dataobj;
a848cd7e 6641 if test "$enableval" = yes; then
d970f7d5 6642 wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
a848cd7e 6643 else
d970f7d5 6644 wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
a848cd7e 6645 fi
8743ec79 6646 cache=yes
a848cd7e
SC
6647
6648else
6649
b46b1d59 6650 LINE=`grep "^wxUSE_DATAOBJ=" ${wx_arg_cache_file}`
a848cd7e 6651 if test "x$LINE" != x ; then
8630a814
VZ
6652 eval "DEFAULT_$LINE"
6653 cache=yes
6654 else
6655 cache=no
a848cd7e
SC
6656 fi
6657
d970f7d5 6658 wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
a848cd7e 6659
47964710
VS
6660fi
6661
a848cd7e 6662
d970f7d5 6663 eval "$wx_cv_use_dataobj"
8743ec79
VZ
6664 if test "x$cache" = xyes; then
6665 echo "wxUSE_DATAOBJ=$wxUSE_DATAOBJ" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6666 fi
6667
6e198e97
VZ
6668 if test x"$enablestring" = xdisable; then
6669 if test $wxUSE_DATAOBJ = yes; then
6670 result=no
6671 else
6672 result=yes
6673 fi
a848cd7e 6674 else
6e198e97 6675 result=$wxUSE_DATAOBJ
a848cd7e
SC
6676 fi
6677
47964710
VS
6678 { echo "$as_me:$LINENO: result: $result" >&5
6679echo "${ECHO_T}$result" >&6; }
6e198e97 6680
a848cd7e
SC
6681
6682
077c7880 6683 enablestring=
6e198e97 6684 defaultval=$wxUSE_ALL_FEATURES
238663c1 6685 if test -z "$defaultval"; then
6e198e97
VZ
6686 if test x"$enablestring" = xdisable; then
6687 defaultval=yes
6688 else
6689 defaultval=no
6690 fi
6691 fi
6692
47964710
VS
6693 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6694echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6695 # Check whether --enable-ipc was given.
a848cd7e 6696if test "${enable_ipc+set}" = set; then
47964710 6697 enableval=$enable_ipc;
a848cd7e 6698 if test "$enableval" = yes; then
d970f7d5 6699 wx_cv_use_ipc='wxUSE_IPC=yes'
a848cd7e 6700 else
d970f7d5 6701 wx_cv_use_ipc='wxUSE_IPC=no'
a848cd7e 6702 fi
8743ec79 6703 cache=yes
a848cd7e
SC
6704
6705else
6706
b46b1d59 6707 LINE=`grep "^wxUSE_IPC=" ${wx_arg_cache_file}`
a848cd7e 6708 if test "x$LINE" != x ; then
8630a814
VZ
6709 eval "DEFAULT_$LINE"
6710 cache=yes
6711 else
6712 cache=no
a848cd7e
SC
6713 fi
6714
d970f7d5 6715 wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
a848cd7e 6716
47964710
VS
6717fi
6718
a848cd7e 6719
d970f7d5 6720 eval "$wx_cv_use_ipc"
8743ec79
VZ
6721 if test "x$cache" = xyes; then
6722 echo "wxUSE_IPC=$wxUSE_IPC" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6723 fi
6724
6e198e97
VZ
6725 if test x"$enablestring" = xdisable; then
6726 if test $wxUSE_IPC = yes; then
6727 result=no
6728 else
6729 result=yes
6730 fi
a848cd7e 6731 else
6e198e97 6732 result=$wxUSE_IPC
a848cd7e
SC
6733 fi
6734
47964710
VS
6735 { echo "$as_me:$LINENO: result: $result" >&5
6736echo "${ECHO_T}$result" >&6; }
6e198e97 6737
a848cd7e
SC
6738
6739
39931206
VZ
6740 enablestring=
6741 defaultval=$wxUSE_ALL_FEATURES
6742 if test -z "$defaultval"; then
6743 if test x"$enablestring" = xdisable; then
6744 defaultval=yes
6745 else
6746 defaultval=no
6747 fi
6748 fi
6749
47964710
VS
6750 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6751echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6752 # Check whether --enable-baseevtloop was given.
39931206 6753if test "${enable_baseevtloop+set}" = set; then
47964710 6754 enableval=$enable_baseevtloop;
39931206
VZ
6755 if test "$enableval" = yes; then
6756 wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6757 else
6758 wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6759 fi
8743ec79 6760 cache=yes
39931206
VZ
6761
6762else
6763
6764 LINE=`grep "^wxUSE_CONSOLE_EVENTLOOP=" ${wx_arg_cache_file}`
6765 if test "x$LINE" != x ; then
8630a814
VZ
6766 eval "DEFAULT_$LINE"
6767 cache=yes
6768 else
6769 cache=no
39931206
VZ
6770 fi
6771
6772 wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6773
47964710
VS
6774fi
6775
39931206
VZ
6776
6777 eval "$wx_cv_use_baseevtloop"
8743ec79
VZ
6778 if test "x$cache" = xyes; then
6779 echo "wxUSE_CONSOLE_EVENTLOOP=$wxUSE_CONSOLE_EVENTLOOP" >> ${wx_arg_cache_file}.tmp
39931206
VZ
6780 fi
6781
6782 if test x"$enablestring" = xdisable; then
6783 if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6784 result=no
6785 else
6786 result=yes
6787 fi
6788 else
6789 result=$wxUSE_CONSOLE_EVENTLOOP
6790 fi
6791
47964710
VS
6792 { echo "$as_me:$LINENO: result: $result" >&5
6793echo "${ECHO_T}$result" >&6; }
39931206
VZ
6794
6795
6796 enablestring=
6797 defaultval=$wxUSE_ALL_FEATURES
6798 if test -z "$defaultval"; then
6799 if test x"$enablestring" = xdisable; then
6800 defaultval=yes
6801 else
6802 defaultval=no
6803 fi
6804 fi
6805
05787cec
PC
6806 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6807echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6808 # Check whether --enable-epollloop was given.
6809if test "${enable_epollloop+set}" = set; then
6810 enableval=$enable_epollloop;
39931206 6811 if test "$enableval" = yes; then
05787cec 6812 wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
39931206 6813 else
05787cec 6814 wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
39931206 6815 fi
8743ec79 6816 cache=yes
39931206
VZ
6817
6818else
6819
6820 LINE=`grep "^wxUSE_EPOLL_DISPATCHER=" ${wx_arg_cache_file}`
6821 if test "x$LINE" != x ; then
8630a814
VZ
6822 eval "DEFAULT_$LINE"
6823 cache=yes
6824 else
6825 cache=no
39931206
VZ
6826 fi
6827
05787cec 6828 wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
39931206 6829
47964710
VS
6830fi
6831
39931206 6832
05787cec 6833 eval "$wx_cv_use_epollloop"
8743ec79
VZ
6834 if test "x$cache" = xyes; then
6835 echo "wxUSE_EPOLL_DISPATCHER=$wxUSE_EPOLL_DISPATCHER" >> ${wx_arg_cache_file}.tmp
39931206
VZ
6836 fi
6837
6838 if test x"$enablestring" = xdisable; then
6839 if test $wxUSE_EPOLL_DISPATCHER = yes; then
6840 result=no
6841 else
6842 result=yes
6843 fi
6844 else
6845 result=$wxUSE_EPOLL_DISPATCHER
6846 fi
6847
47964710
VS
6848 { echo "$as_me:$LINENO: result: $result" >&5
6849echo "${ECHO_T}$result" >&6; }
39931206
VZ
6850
6851
6852 enablestring=
6853 defaultval=$wxUSE_ALL_FEATURES
6854 if test -z "$defaultval"; then
6855 if test x"$enablestring" = xdisable; then
6856 defaultval=yes
6857 else
6858 defaultval=no
6859 fi
6860 fi
6861
47964710
VS
6862 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6863echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6864 # Check whether --enable-selectloop was given.
39931206 6865if test "${enable_selectloop+set}" = set; then
47964710 6866 enableval=$enable_selectloop;
39931206
VZ
6867 if test "$enableval" = yes; then
6868 wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6869 else
6870 wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6871 fi
8743ec79 6872 cache=yes
39931206
VZ
6873
6874else
6875
6876 LINE=`grep "^wxUSE_SELECT_DISPATCHER=" ${wx_arg_cache_file}`
6877 if test "x$LINE" != x ; then
8630a814
VZ
6878 eval "DEFAULT_$LINE"
6879 cache=yes
6880 else
6881 cache=no
39931206
VZ
6882 fi
6883
6884 wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6885
47964710
VS
6886fi
6887
39931206
VZ
6888
6889 eval "$wx_cv_use_selectloop"
8743ec79
VZ
6890 if test "x$cache" = xyes; then
6891 echo "wxUSE_SELECT_DISPATCHER=$wxUSE_SELECT_DISPATCHER" >> ${wx_arg_cache_file}.tmp
39931206
VZ
6892 fi
6893
6894 if test x"$enablestring" = xdisable; then
6895 if test $wxUSE_SELECT_DISPATCHER = yes; then
6896 result=no
6897 else
6898 result=yes
6899 fi
6900 else
6901 result=$wxUSE_SELECT_DISPATCHER
6902 fi
6903
47964710
VS
6904 { echo "$as_me:$LINENO: result: $result" >&5
6905echo "${ECHO_T}$result" >&6; }
39931206
VZ
6906
6907
6908
077c7880 6909 enablestring=
6e198e97 6910 defaultval=$wxUSE_ALL_FEATURES
238663c1 6911 if test -z "$defaultval"; then
6e198e97
VZ
6912 if test x"$enablestring" = xdisable; then
6913 defaultval=yes
6914 else
6915 defaultval=no
6916 fi
6917 fi
6918
47964710
VS
6919 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6920echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6921 # Check whether --enable-apple_ieee was given.
a848cd7e 6922if test "${enable_apple_ieee+set}" = set; then
47964710 6923 enableval=$enable_apple_ieee;
a848cd7e 6924 if test "$enableval" = yes; then
d970f7d5 6925 wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
a848cd7e 6926 else
d970f7d5 6927 wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
a848cd7e 6928 fi
8743ec79 6929 cache=yes
a848cd7e
SC
6930
6931else
6932
b46b1d59 6933 LINE=`grep "^wxUSE_APPLE_IEEE=" ${wx_arg_cache_file}`
a848cd7e 6934 if test "x$LINE" != x ; then
8630a814
VZ
6935 eval "DEFAULT_$LINE"
6936 cache=yes
6937 else
6938 cache=no
a848cd7e
SC
6939 fi
6940
d970f7d5 6941 wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
a848cd7e 6942
47964710
VS
6943fi
6944
a848cd7e 6945
d970f7d5 6946 eval "$wx_cv_use_apple_ieee"
8743ec79
VZ
6947 if test "x$cache" = xyes; then
6948 echo "wxUSE_APPLE_IEEE=$wxUSE_APPLE_IEEE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6949 fi
6950
6e198e97
VZ
6951 if test x"$enablestring" = xdisable; then
6952 if test $wxUSE_APPLE_IEEE = yes; then
6953 result=no
6954 else
6955 result=yes
6956 fi
a848cd7e 6957 else
6e198e97 6958 result=$wxUSE_APPLE_IEEE
a848cd7e
SC
6959 fi
6960
47964710
VS
6961 { echo "$as_me:$LINENO: result: $result" >&5
6962echo "${ECHO_T}$result" >&6; }
6e198e97 6963
a848cd7e 6964
077c7880 6965 enablestring=
6e198e97 6966 defaultval=$wxUSE_ALL_FEATURES
238663c1 6967 if test -z "$defaultval"; then
6e198e97
VZ
6968 if test x"$enablestring" = xdisable; then
6969 defaultval=yes
6970 else
6971 defaultval=no
6972 fi
6973 fi
6974
47964710
VS
6975 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6976echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6977 # Check whether --enable-arcstream was given.
81f90336 6978if test "${enable_arcstream+set}" = set; then
47964710 6979 enableval=$enable_arcstream;
81f90336 6980 if test "$enableval" = yes; then
d970f7d5 6981 wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 6982 else
d970f7d5 6983 wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336 6984 fi
8743ec79 6985 cache=yes
81f90336
MW
6986
6987else
6988
b46b1d59 6989 LINE=`grep "^wxUSE_ARCHIVE_STREAMS=" ${wx_arg_cache_file}`
81f90336 6990 if test "x$LINE" != x ; then
8630a814
VZ
6991 eval "DEFAULT_$LINE"
6992 cache=yes
6993 else
6994 cache=no
81f90336
MW
6995 fi
6996
d970f7d5 6997 wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
81f90336 6998
47964710
VS
6999fi
7000
81f90336 7001
d970f7d5 7002 eval "$wx_cv_use_arcstream"
8743ec79
VZ
7003 if test "x$cache" = xyes; then
7004 echo "wxUSE_ARCHIVE_STREAMS=$wxUSE_ARCHIVE_STREAMS" >> ${wx_arg_cache_file}.tmp
81f90336
MW
7005 fi
7006
6e198e97
VZ
7007 if test x"$enablestring" = xdisable; then
7008 if test $wxUSE_ARCHIVE_STREAMS = yes; then
7009 result=no
7010 else
7011 result=yes
7012 fi
81f90336 7013 else
6e198e97 7014 result=$wxUSE_ARCHIVE_STREAMS
81f90336
MW
7015 fi
7016
47964710
VS
7017 { echo "$as_me:$LINENO: result: $result" >&5
7018echo "${ECHO_T}$result" >&6; }
6e198e97 7019
81f90336 7020
077c7880 7021 enablestring=
6e198e97 7022 defaultval=$wxUSE_ALL_FEATURES
238663c1 7023 if test -z "$defaultval"; then
6e198e97
VZ
7024 if test x"$enablestring" = xdisable; then
7025 defaultval=yes
7026 else
7027 defaultval=no
7028 fi
7029 fi
7030
47964710
VS
7031 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
7032echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
7033 # Check whether --enable-base64 was given.
4db03d26 7034if test "${enable_base64+set}" = set; then
47964710 7035 enableval=$enable_base64;
4db03d26 7036 if test "$enableval" = yes; then
d970f7d5 7037 wx_cv_use_base64='wxUSE_BASE64=yes'
4db03d26 7038 else
d970f7d5 7039 wx_cv_use_base64='wxUSE_BASE64=no'
4db03d26 7040 fi
8743ec79 7041 cache=yes
4db03d26
VZ
7042
7043else
7044
7045 LINE=`grep "^wxUSE_BASE64=" ${wx_arg_cache_file}`
7046 if test "x$LINE" != x ; then
8630a814
VZ
7047 eval "DEFAULT_$LINE"
7048 cache=yes
7049 else
7050 cache=no
4db03d26
VZ
7051 fi
7052
d970f7d5 7053 wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
4db03d26 7054
47964710
VS
7055fi
7056
4db03d26 7057
d970f7d5 7058 eval "$wx_cv_use_base64"
8743ec79
VZ
7059 if test "x$cache" = xyes; then
7060 echo "wxUSE_BASE64=$wxUSE_BASE64" >> ${wx_arg_cache_file}.tmp
4db03d26
VZ
7061 fi
7062
6e198e97
VZ
7063 if test x"$enablestring" = xdisable; then
7064 if test $wxUSE_BASE64 = yes; then
7065 result=no
7066 else
7067 result=yes
7068 fi
4db03d26 7069 else
6e198e97 7070 result=$wxUSE_BASE64
4db03d26
VZ
7071 fi
7072
47964710
VS
7073 { echo "$as_me:$LINENO: result: $result" >&5
7074echo "${ECHO_T}$result" >&6; }
6e198e97 7075
4db03d26
VZ
7076
7077 enablestring=
6e198e97 7078 defaultval=$wxUSE_ALL_FEATURES
238663c1 7079 if test -z "$defaultval"; then
6e198e97
VZ
7080 if test x"$enablestring" = xdisable; then
7081 defaultval=yes
7082 else
7083 defaultval=no
7084 fi
7085 fi
7086
47964710
VS
7087 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
7088echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
7089 # Check whether --enable-backtrace was given.
36b6448c 7090if test "${enable_backtrace+set}" = set; then
47964710 7091 enableval=$enable_backtrace;
a848cd7e 7092 if test "$enableval" = yes; then
d970f7d5 7093 wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 7094 else
d970f7d5 7095 wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e 7096 fi
8743ec79 7097 cache=yes
a848cd7e
SC
7098
7099else
7100
b46b1d59 7101 LINE=`grep "^wxUSE_STACKWALKER=" ${wx_arg_cache_file}`
a848cd7e 7102 if test "x$LINE" != x ; then
8630a814
VZ
7103 eval "DEFAULT_$LINE"
7104 cache=yes
7105 else
7106 cache=no
a848cd7e
SC
7107 fi
7108
d970f7d5 7109 wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
a848cd7e 7110
47964710
VS
7111fi
7112
a848cd7e 7113
d970f7d5 7114 eval "$wx_cv_use_backtrace"
8743ec79
VZ
7115 if test "x$cache" = xyes; then
7116 echo "wxUSE_STACKWALKER=$wxUSE_STACKWALKER" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
7117 fi
7118
6e198e97
VZ
7119 if test x"$enablestring" = xdisable; then
7120 if test $wxUSE_STACKWALKER = yes; then
7121 result=no
7122 else
7123 result=yes
7124 fi
a848cd7e 7125 else
6e198e97 7126 result=$wxUSE_STACKWALKER
a848cd7e
SC
7127 fi
7128
47964710
VS
7129 { echo "$as_me:$LINENO: result: $result" >&5
7130echo "${ECHO_T}$result" >&6; }
6e198e97 7131
a848cd7e 7132
077c7880 7133 enablestring=
6e198e97 7134 defaultval=$wxUSE_ALL_FEATURES
238663c1 7135 if test -z "$defaultval"; then
6e198e97
VZ
7136 if test x"$enablestring" = xdisable; then
7137 defaultval=yes
7138 else
7139 defaultval=no
7140 fi
7141 fi
7142
47964710
VS
7143 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
7144echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
7145 # Check whether --enable-catch_segvs was given.
36b6448c 7146if test "${enable_catch_segvs+set}" = set; then
47964710 7147 enableval=$enable_catch_segvs;
eaff0f0d 7148 if test "$enableval" = yes; then
d970f7d5 7149 wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 7150 else
d970f7d5 7151 wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d 7152 fi
8743ec79 7153 cache=yes
eaff0f0d
VZ
7154
7155else
7156
b46b1d59 7157 LINE=`grep "^wxUSE_ON_FATAL_EXCEPTION=" ${wx_arg_cache_file}`
eaff0f0d 7158 if test "x$LINE" != x ; then
8630a814
VZ
7159 eval "DEFAULT_$LINE"
7160 cache=yes
7161 else
7162 cache=no
eaff0f0d
VZ
7163 fi
7164
d970f7d5 7165 wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
eaff0f0d 7166
47964710
VS
7167fi
7168
eaff0f0d 7169
d970f7d5 7170 eval "$wx_cv_use_catch_segvs"
8743ec79
VZ
7171 if test "x$cache" = xyes; then
7172 echo "wxUSE_ON_FATAL_EXCEPTION=$wxUSE_ON_FATAL_EXCEPTION" >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
7173 fi
7174
6e198e97
VZ
7175 if test x"$enablestring" = xdisable; then
7176 if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
7177 result=no
7178 else
7179 result=yes
7180 fi
eaff0f0d 7181 else
6e198e97 7182 result=$wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
7183 fi
7184
47964710
VS
7185 { echo "$as_me:$LINENO: result: $result" >&5
7186echo "${ECHO_T}$result" >&6; }
6e198e97 7187
eaff0f0d 7188
077c7880 7189 enablestring=
6e198e97 7190 defaultval=$wxUSE_ALL_FEATURES
238663c1 7191 if test -z "$defaultval"; then
6e198e97
VZ
7192 if test x"$enablestring" = xdisable; then
7193 defaultval=yes
7194 else
7195 defaultval=no
7196 fi
7197 fi
7198
47964710
VS
7199 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
7200echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
7201 # Check whether --enable-cmdline was given.
a848cd7e 7202if test "${enable_cmdline+set}" = set; then
47964710 7203 enableval=$enable_cmdline;
a848cd7e 7204 if test "$enableval" = yes; then
d970f7d5 7205 wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
a848cd7e 7206 else
d970f7d5 7207 wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
a848cd7e 7208 fi
8743ec79 7209 cache=yes
a848cd7e
SC
7210
7211else
7212
b46b1d59 7213 LINE=`grep "^wxUSE_CMDLINE_PARSER=" ${wx_arg_cache_file}`
a848cd7e 7214 if test "x$LINE" != x ; then
8630a814
VZ
7215 eval "DEFAULT_$LINE"
7216 cache=yes
7217 else
7218 cache=no
a848cd7e
SC
7219 fi
7220
d970f7d5 7221 wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
a848cd7e 7222
47964710
VS
7223fi
7224
a848cd7e 7225
d970f7d5 7226 eval "$wx_cv_use_cmdline"
8743ec79
VZ
7227 if test "x$cache" = xyes; then
7228 echo "wxUSE_CMDLINE_PARSER=$wxUSE_CMDLINE_PARSER" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
7229 fi
7230
6e198e97
VZ
7231 if test x"$enablestring" = xdisable; then
7232 if test $wxUSE_CMDLINE_PARSER = yes; then
7233 result=no
7234 else
7235 result=yes
7236 fi
a848cd7e 7237 else
6e198e97 7238 result=$wxUSE_CMDLINE_PARSER
a848cd7e
SC
7239 fi
7240
47964710
VS
7241 { echo "$as_me:$LINENO: result: $result" >&5
7242echo "${ECHO_T}$result" >&6; }
6e198e97 7243
a848cd7e 7244
077c7880 7245 enablestring=
6e198e97 7246 defaultval=$wxUSE_ALL_FEATURES
238663c1 7247 if test -z "$defaultval"; then
6e198e97
VZ
7248 if test x"$enablestring" = xdisable; then
7249 defaultval=yes
7250 else
7251 defaultval=no
7252 fi
7253 fi
7254
47964710
VS
7255 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
7256echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
7257 # Check whether --enable-datetime was given.
a848cd7e 7258if test "${enable_datetime+set}" = set; then
47964710 7259 enableval=$enable_datetime;
a848cd7e 7260 if test "$enableval" = yes; then
d970f7d5 7261 wx_cv_use_datetime='wxUSE_DATETIME=yes'
a848cd7e 7262 else
d970f7d5 7263 wx_cv_use_datetime='wxUSE_DATETIME=no'
a848cd7e 7264 fi
8743ec79 7265 cache=yes
a848cd7e
SC
7266
7267else
7268
b46b1d59 7269 LINE=`grep "^wxUSE_DATETIME=" ${wx_arg_cache_file}`
a848cd7e 7270 if test "x$LINE" != x ; then
8630a814
VZ
7271 eval "DEFAULT_$LINE"
7272 cache=yes
7273 else
7274 cache=no
a848cd7e
SC
7275 fi
7276
d970f7d5 7277 wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
a848cd7e 7278
47964710
VS
7279fi
7280
a848cd7e 7281
d970f7d5 7282 eval "$wx_cv_use_datetime"
8743ec79
VZ
7283 if test "x$cache" = xyes; then
7284 echo "wxUSE_DATETIME=$wxUSE_DATETIME" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
7285 fi
7286
6e198e97
VZ
7287 if test x"$enablestring" = xdisable; then
7288 if test $wxUSE_DATETIME = yes; then
7289 result=no
7290 else
7291 result=yes
7292 fi
a848cd7e 7293 else
6e198e97 7294 result=$wxUSE_DATETIME
a848cd7e
SC
7295 fi
7296
47964710
VS
7297 { echo "$as_me:$LINENO: result: $result" >&5
7298echo "${ECHO_T}$result" >&6; }
6e198e97 7299
a848cd7e 7300
077c7880 7301 enablestring=
6e198e97 7302 defaultval=$wxUSE_ALL_FEATURES
238663c1 7303 if test -z "$defaultval"; then
6e198e97
VZ
7304 if test x"$enablestring" = xdisable; then
7305 defaultval=yes
7306 else
7307 defaultval=no
7308 fi
7309 fi
7310
47964710
VS
7311 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
7312echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
7313 # Check whether --enable-debugreport was given.
36b6448c 7314if test "${enable_debugreport+set}" = set; then
47964710 7315 enableval=$enable_debugreport;
36b6448c 7316 if test "$enableval" = yes; then
d970f7d5 7317 wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
36b6448c 7318 else
d970f7d5 7319 wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
36b6448c 7320 fi
8743ec79 7321 cache=yes
36b6448c
VZ
7322
7323else
7324
b46b1d59 7325 LINE=`grep "^wxUSE_DEBUGREPORT=" ${wx_arg_cache_file}`
36b6448c 7326 if test "x$LINE" != x ; then
8630a814
VZ
7327 eval "DEFAULT_$LINE"
7328 cache=yes
7329 else
7330 cache=no
36b6448c
VZ
7331 fi
7332
d970f7d5 7333 wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
36b6448c 7334
47964710
VS
7335fi
7336
36b6448c 7337
d970f7d5 7338 eval "$wx_cv_use_debugreport"
8743ec79
VZ
7339 if test "x$cache" = xyes; then
7340 echo "wxUSE_DEBUGREPORT=$wxUSE_DEBUGREPORT" >> ${wx_arg_cache_file}.tmp
36b6448c
VZ
7341 fi
7342
6e198e97
VZ
7343 if test x"$enablestring" = xdisable; then
7344 if test $wxUSE_DEBUGREPORT = yes; then
7345 result=no
7346 else
7347 result=yes
7348 fi
36b6448c 7349 else
6e198e97 7350 result=$wxUSE_DEBUGREPORT
36b6448c
VZ
7351 fi
7352
47964710
VS
7353 { echo "$as_me:$LINENO: result: $result" >&5
7354echo "${ECHO_T}$result" >&6; }
6e198e97 7355
36b6448c 7356
077c7880 7357 enablestring=
6e198e97 7358 defaultval=$wxUSE_ALL_FEATURES
238663c1 7359 if test -z "$defaultval"; then
6e198e97
VZ
7360 if test x"$enablestring" = xdisable; then
7361 defaultval=yes
7362 else
7363 defaultval=no
7364 fi
7365 fi
7366
47964710
VS
7367 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
7368echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
7369 # Check whether --enable-dialupman was given.
a848cd7e 7370if test "${enable_dialupman+set}" = set; then
47964710 7371 enableval=$enable_dialupman;
a848cd7e 7372 if test "$enableval" = yes; then
d970f7d5 7373 wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
a848cd7e 7374 else
d970f7d5 7375 wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
a848cd7e 7376 fi
8743ec79 7377 cache=yes
a848cd7e
SC
7378
7379else
7380
b46b1d59 7381 LINE=`grep "^wxUSE_DIALUP_MANAGER=" ${wx_arg_cache_file}`
a848cd7e 7382 if test "x$LINE" != x ; then
8630a814
VZ
7383 eval "DEFAULT_$LINE"
7384 cache=yes
7385 else
7386 cache=no
a848cd7e
SC
7387 fi
7388
d970f7d5 7389 wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
a848cd7e 7390
47964710
VS
7391fi
7392
a848cd7e 7393
d970f7d5 7394 eval "$wx_cv_use_dialupman"
8743ec79
VZ
7395 if test "x$cache" = xyes; then
7396 echo "wxUSE_DIALUP_MANAGER=$wxUSE_DIALUP_MANAGER" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
7397 fi
7398
6e198e97
VZ
7399 if test x"$enablestring" = xdisable; then
7400 if test $wxUSE_DIALUP_MANAGER = yes; then
7401 result=no
7402 else
7403 result=yes
7404 fi
a848cd7e 7405 else
6e198e97 7406 result=$wxUSE_DIALUP_MANAGER
a848cd7e
SC
7407 fi
7408
47964710
VS
7409 { echo "$as_me:$LINENO: result: $result" >&5
7410echo "${ECHO_T}$result" >&6; }
6e198e97 7411
a848cd7e 7412
077c7880 7413 enablestring=
6e198e97 7414 defaultval=$wxUSE_ALL_FEATURES
238663c1 7415 if test -z "$defaultval"; then
6e198e97
VZ
7416 if test x"$enablestring" = xdisable; then
7417 defaultval=yes
7418 else
7419 defaultval=no
7420 fi
7421 fi
7422
47964710
VS
7423 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
7424echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
7425 # Check whether --enable-dynlib was given.
a848cd7e 7426if test "${enable_dynlib+set}" = set; then
47964710 7427 enableval=$enable_dynlib;
a848cd7e 7428 if test "$enableval" = yes; then
d970f7d5 7429 wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
a848cd7e 7430 else
d970f7d5 7431 wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
a848cd7e 7432 fi
8743ec79 7433 cache=yes
a848cd7e
SC
7434
7435else
7436
b46b1d59 7437 LINE=`grep "^wxUSE_DYNLIB_CLASS=" ${wx_arg_cache_file}`
a848cd7e 7438 if test "x$LINE" != x ; then
8630a814
VZ
7439 eval "DEFAULT_$LINE"
7440 cache=yes
7441 else
7442 cache=no
a848cd7e
SC
7443 fi
7444
d970f7d5 7445 wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
a848cd7e 7446
47964710
VS
7447fi
7448
a848cd7e 7449
d970f7d5 7450 eval "$wx_cv_use_dynlib"
8743ec79
VZ
7451 if test "x$cache" = xyes; then
7452 echo "wxUSE_DYNLIB_CLASS=$wxUSE_DYNLIB_CLASS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
7453 fi
7454
6e198e97
VZ
7455 if test x"$enablestring" = xdisable; then
7456 if test $wxUSE_DYNLIB_CLASS = yes; then
7457 result=no
7458 else
7459 result=yes
7460 fi
a848cd7e 7461 else
6e198e97 7462 result=$wxUSE_DYNLIB_CLASS
a848cd7e
SC
7463 fi
7464
47964710
VS
7465 { echo "$as_me:$LINENO: result: $result" >&5
7466echo "${ECHO_T}$result" >&6; }
6e198e97 7467
a848cd7e 7468
077c7880 7469 enablestring=
6e198e97 7470 defaultval=$wxUSE_ALL_FEATURES
238663c1 7471 if test -z "$defaultval"; then
6e198e97
VZ
7472 if test x"$enablestring" = xdisable; then
7473 defaultval=yes
7474 else
7475 defaultval=no
7476 fi
7477 fi
7478
47964710
VS
7479 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7480echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7481 # Check whether --enable-dynamicloader was given.
a848cd7e 7482if test "${enable_dynamicloader+set}" = set; then
47964710 7483 enableval=$enable_dynamicloader;
a848cd7e 7484 if test "$enableval" = yes; then
d970f7d5 7485 wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
a848cd7e 7486 else
d970f7d5 7487 wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
a848cd7e 7488 fi
8743ec79 7489 cache=yes
a848cd7e
SC
7490
7491else
7492
b46b1d59 7493 LINE=`grep "^wxUSE_DYNAMIC_LOADER=" ${wx_arg_cache_file}`
a848cd7e 7494 if test "x$LINE" != x ; then
8630a814
VZ
7495 eval "DEFAULT_$LINE"
7496 cache=yes
7497 else
7498 cache=no
a848cd7e
SC
7499 fi
7500
d970f7d5 7501 wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
a848cd7e 7502
47964710
VS
7503fi
7504
a848cd7e 7505
d970f7d5 7506 eval "$wx_cv_use_dynamicloader"
8743ec79
VZ
7507 if test "x$cache" = xyes; then
7508 echo "wxUSE_DYNAMIC_LOADER=$wxUSE_DYNAMIC_LOADER" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
7509 fi
7510
6e198e97
VZ
7511 if test x"$enablestring" = xdisable; then
7512 if test $wxUSE_DYNAMIC_LOADER = yes; then
7513 result=no
7514 else
7515 result=yes
7516 fi
a848cd7e 7517 else
6e198e97 7518 result=$wxUSE_DYNAMIC_LOADER
a848cd7e
SC
7519 fi
7520
47964710
VS
7521 { echo "$as_me:$LINENO: result: $result" >&5
7522echo "${ECHO_T}$result" >&6; }
6e198e97 7523
a848cd7e 7524
077c7880 7525 enablestring=
6e198e97 7526 defaultval=$wxUSE_ALL_FEATURES
238663c1 7527 if test -z "$defaultval"; then
6e198e97
VZ
7528 if test x"$enablestring" = xdisable; then
7529 defaultval=yes
7530 else
7531 defaultval=no
7532 fi
7533 fi
7534
47964710
VS
7535 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7536echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7537 # Check whether --enable-exceptions was given.
a848cd7e 7538if test "${enable_exceptions+set}" = set; then
47964710 7539 enableval=$enable_exceptions;
a848cd7e 7540 if test "$enableval" = yes; then
d970f7d5 7541 wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
a848cd7e 7542 else
d970f7d5 7543 wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
a848cd7e 7544 fi
8743ec79 7545 cache=yes
a848cd7e
SC
7546
7547else
7548
b46b1d59 7549 LINE=`grep "^wxUSE_EXCEPTIONS=" ${wx_arg_cache_file}`
a848cd7e 7550 if test "x$LINE" != x ; then
8630a814
VZ
7551 eval "DEFAULT_$LINE"
7552 cache=yes
7553 else
7554 cache=no
a848cd7e
SC
7555 fi
7556
d970f7d5 7557 wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
a848cd7e 7558
47964710
VS
7559fi
7560
a848cd7e 7561
d970f7d5 7562 eval "$wx_cv_use_exceptions"
8743ec79
VZ
7563 if test "x$cache" = xyes; then
7564 echo "wxUSE_EXCEPTIONS=$wxUSE_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
7565 fi
7566
6e198e97
VZ
7567 if test x"$enablestring" = xdisable; then
7568 if test $wxUSE_EXCEPTIONS = yes; then
7569 result=no
7570 else
7571 result=yes
7572 fi
a848cd7e 7573 else
6e198e97 7574 result=$wxUSE_EXCEPTIONS
a848cd7e
SC
7575 fi
7576
47964710
VS
7577 { echo "$as_me:$LINENO: result: $result" >&5
7578echo "${ECHO_T}$result" >&6; }
6e198e97 7579
a848cd7e 7580
077c7880 7581 enablestring=
6e198e97 7582 defaultval=$wxUSE_ALL_FEATURES
238663c1 7583 if test -z "$defaultval"; then
6e198e97
VZ
7584 if test x"$enablestring" = xdisable; then
7585 defaultval=yes
7586 else
7587 defaultval=no
7588 fi
7589 fi
7590
47964710
VS
7591 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7592echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7593 # Check whether --enable-ffile was given.
a848cd7e 7594if test "${enable_ffile+set}" = set; then
47964710 7595 enableval=$enable_ffile;
a848cd7e 7596 if test "$enableval" = yes; then
d970f7d5 7597 wx_cv_use_ffile='wxUSE_FFILE=yes'
a848cd7e 7598 else
d970f7d5 7599 wx_cv_use_ffile='wxUSE_FFILE=no'
a848cd7e 7600 fi
8743ec79 7601 cache=yes
a848cd7e
SC
7602
7603else
7604
b46b1d59 7605 LINE=`grep "^wxUSE_FFILE=" ${wx_arg_cache_file}`
a848cd7e 7606 if test "x$LINE" != x ; then
8630a814
VZ
7607 eval "DEFAULT_$LINE"
7608 cache=yes
7609 else
7610 cache=no
a848cd7e
SC
7611 fi
7612
d970f7d5 7613 wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
a848cd7e 7614
47964710
VS
7615fi
7616
a848cd7e 7617
d970f7d5 7618 eval "$wx_cv_use_ffile"
8743ec79
VZ
7619 if test "x$cache" = xyes; then
7620 echo "wxUSE_FFILE=$wxUSE_FFILE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
7621 fi
7622
6e198e97
VZ
7623 if test x"$enablestring" = xdisable; then
7624 if test $wxUSE_FFILE = yes; then
7625 result=no
7626 else
7627 result=yes
7628 fi
a848cd7e 7629 else
6e198e97 7630 result=$wxUSE_FFILE
a848cd7e
SC
7631 fi
7632
47964710
VS
7633 { echo "$as_me:$LINENO: result: $result" >&5
7634echo "${ECHO_T}$result" >&6; }
6e198e97 7635
a848cd7e 7636
077c7880 7637 enablestring=
6e198e97 7638 defaultval=$wxUSE_ALL_FEATURES
238663c1 7639 if test -z "$defaultval"; then
6e198e97
VZ
7640 if test x"$enablestring" = xdisable; then
7641 defaultval=yes
7642 else
7643 defaultval=no
7644 fi
7645 fi
7646
47964710
VS
7647 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7648echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7649 # Check whether --enable-file was given.
a848cd7e 7650if test "${enable_file+set}" = set; then
47964710 7651 enableval=$enable_file;
a848cd7e 7652 if test "$enableval" = yes; then
d970f7d5 7653 wx_cv_use_file='wxUSE_FILE=yes'
a848cd7e 7654 else
d970f7d5 7655 wx_cv_use_file='wxUSE_FILE=no'
a848cd7e 7656 fi
8743ec79 7657 cache=yes
a848cd7e
SC
7658
7659else
7660
b46b1d59 7661 LINE=`grep "^wxUSE_FILE=" ${wx_arg_cache_file}`
a848cd7e 7662 if test "x$LINE" != x ; then
8630a814
VZ
7663 eval "DEFAULT_$LINE"
7664 cache=yes
7665 else
7666 cache=no
a848cd7e
SC
7667 fi
7668
d970f7d5 7669 wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
a848cd7e 7670
47964710
VS
7671fi
7672
a848cd7e 7673
d970f7d5 7674 eval "$wx_cv_use_file"
8743ec79
VZ
7675 if test "x$cache" = xyes; then
7676 echo "wxUSE_FILE=$wxUSE_FILE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
7677 fi
7678
6e198e97
VZ
7679 if test x"$enablestring" = xdisable; then
7680 if test $wxUSE_FILE = yes; then
7681 result=no
7682 else
7683 result=yes
7684 fi
a848cd7e 7685 else
6e198e97 7686 result=$wxUSE_FILE
a848cd7e
SC
7687 fi
7688
47964710
VS
7689 { echo "$as_me:$LINENO: result: $result" >&5
7690echo "${ECHO_T}$result" >&6; }
6e198e97 7691
a848cd7e 7692
077c7880 7693 enablestring=
6e198e97 7694 defaultval=$wxUSE_ALL_FEATURES
238663c1 7695 if test -z "$defaultval"; then
6e198e97
VZ
7696 if test x"$enablestring" = xdisable; then
7697 defaultval=yes
7698 else
7699 defaultval=no
7700 fi
7701 fi
7702
47964710
VS
7703 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7704echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7705 # Check whether --enable-filesystem was given.
a848cd7e 7706if test "${enable_filesystem+set}" = set; then
47964710 7707 enableval=$enable_filesystem;
a848cd7e 7708 if test "$enableval" = yes; then
d970f7d5 7709 wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
a848cd7e 7710 else
d970f7d5 7711 wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
a848cd7e 7712 fi
8743ec79 7713 cache=yes
a848cd7e
SC
7714
7715else
7716
b46b1d59 7717 LINE=`grep "^wxUSE_FILESYSTEM=" ${wx_arg_cache_file}`
a848cd7e 7718 if test "x$LINE" != x ; then
8630a814
VZ
7719 eval "DEFAULT_$LINE"
7720 cache=yes
7721 else
7722 cache=no
a848cd7e
SC
7723 fi
7724
d970f7d5 7725 wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
a848cd7e 7726
47964710
VS
7727fi
7728
a848cd7e 7729
d970f7d5 7730 eval "$wx_cv_use_filesystem"
8743ec79
VZ
7731 if test "x$cache" = xyes; then
7732 echo "wxUSE_FILESYSTEM=$wxUSE_FILESYSTEM" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
7733 fi
7734
6e198e97
VZ
7735 if test x"$enablestring" = xdisable; then
7736 if test $wxUSE_FILESYSTEM = yes; then
7737 result=no
7738 else
7739 result=yes
7740 fi
a848cd7e 7741 else
6e198e97 7742 result=$wxUSE_FILESYSTEM
a848cd7e
SC
7743 fi
7744
47964710
VS
7745 { echo "$as_me:$LINENO: result: $result" >&5
7746echo "${ECHO_T}$result" >&6; }
6e198e97 7747
a848cd7e 7748
ff427585
VZ
7749 enablestring=
7750 defaultval=$wxUSE_ALL_FEATURES
7751 if test -z "$defaultval"; then
7752 if test x"$enablestring" = xdisable; then
7753 defaultval=yes
7754 else
7755 defaultval=no
7756 fi
7757 fi
7758
47964710
VS
7759 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7760echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7761 # Check whether --enable-fontenum was given.
ff427585 7762if test "${enable_fontenum+set}" = set; then
47964710 7763 enableval=$enable_fontenum;
ff427585
VZ
7764 if test "$enableval" = yes; then
7765 wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7766 else
7767 wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7768 fi
8743ec79 7769 cache=yes
ff427585
VZ
7770
7771else
7772
7773 LINE=`grep "^wxUSE_FONTENUM=" ${wx_arg_cache_file}`
7774 if test "x$LINE" != x ; then
8630a814
VZ
7775 eval "DEFAULT_$LINE"
7776 cache=yes
7777 else
7778 cache=no
ff427585
VZ
7779 fi
7780
7781 wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7782
47964710
VS
7783fi
7784
ff427585
VZ
7785
7786 eval "$wx_cv_use_fontenum"
8743ec79
VZ
7787 if test "x$cache" = xyes; then
7788 echo "wxUSE_FONTENUM=$wxUSE_FONTENUM" >> ${wx_arg_cache_file}.tmp
ff427585
VZ
7789 fi
7790
7791 if test x"$enablestring" = xdisable; then
7792 if test $wxUSE_FONTENUM = yes; then
7793 result=no
7794 else
7795 result=yes
7796 fi
7797 else
7798 result=$wxUSE_FONTENUM
7799 fi
7800
47964710
VS
7801 { echo "$as_me:$LINENO: result: $result" >&5
7802echo "${ECHO_T}$result" >&6; }
ff427585
VZ
7803
7804
077c7880 7805 enablestring=
6e198e97 7806 defaultval=$wxUSE_ALL_FEATURES
238663c1 7807 if test -z "$defaultval"; then
6e198e97
VZ
7808 if test x"$enablestring" = xdisable; then
7809 defaultval=yes
7810 else
7811 defaultval=no
7812 fi
7813 fi
7814
47964710
VS
7815 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7816echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7817 # Check whether --enable-fontmap was given.
a848cd7e 7818if test "${enable_fontmap+set}" = set; then
47964710 7819 enableval=$enable_fontmap;
a848cd7e 7820 if test "$enableval" = yes; then
d970f7d5 7821 wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
a848cd7e 7822 else
d970f7d5 7823 wx_cv_use_fontmap='wxUSE_FONTMAP=no'
a848cd7e 7824 fi
8743ec79 7825 cache=yes
a848cd7e
SC
7826
7827else
7828
b46b1d59 7829 LINE=`grep "^wxUSE_FONTMAP=" ${wx_arg_cache_file}`
a848cd7e 7830 if test "x$LINE" != x ; then
8630a814
VZ
7831 eval "DEFAULT_$LINE"
7832 cache=yes
7833 else
7834 cache=no
a848cd7e
SC
7835 fi
7836
d970f7d5 7837 wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
a848cd7e 7838
47964710
VS
7839fi
7840
a848cd7e 7841
d970f7d5 7842 eval "$wx_cv_use_fontmap"
8743ec79
VZ
7843 if test "x$cache" = xyes; then
7844 echo "wxUSE_FONTMAP=$wxUSE_FONTMAP" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
7845 fi
7846
6e198e97
VZ
7847 if test x"$enablestring" = xdisable; then
7848 if test $wxUSE_FONTMAP = yes; then
7849 result=no
7850 else
7851 result=yes
7852 fi
a848cd7e 7853 else
6e198e97 7854 result=$wxUSE_FONTMAP
a848cd7e
SC
7855 fi
7856
47964710
VS
7857 { echo "$as_me:$LINENO: result: $result" >&5
7858echo "${ECHO_T}$result" >&6; }
6e198e97 7859
a848cd7e 7860
077c7880 7861 enablestring=
6e198e97 7862 defaultval=$wxUSE_ALL_FEATURES
238663c1 7863 if test -z "$defaultval"; then
6e198e97
VZ
7864 if test x"$enablestring" = xdisable; then
7865 defaultval=yes
7866 else
7867 defaultval=no
7868 fi
7869 fi
7870
47964710
VS
7871 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7872echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7873 # Check whether --enable-fs_archive was given.
26e422a9 7874if test "${enable_fs_archive+set}" = set; then
47964710 7875 enableval=$enable_fs_archive;
26e422a9 7876 if test "$enableval" = yes; then
d970f7d5 7877 wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
26e422a9 7878 else
d970f7d5 7879 wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
26e422a9 7880 fi
8743ec79 7881 cache=yes
26e422a9
MW
7882
7883else
7884
b46b1d59 7885 LINE=`grep "^wxUSE_FS_ARCHIVE=" ${wx_arg_cache_file}`
26e422a9 7886 if test "x$LINE" != x ; then
8630a814
VZ
7887 eval "DEFAULT_$LINE"
7888 cache=yes
7889 else
7890 cache=no
26e422a9
MW
7891 fi
7892
d970f7d5 7893 wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
26e422a9 7894
47964710
VS
7895fi
7896
26e422a9 7897
d970f7d5 7898 eval "$wx_cv_use_fs_archive"
8743ec79
VZ
7899 if test "x$cache" = xyes; then
7900 echo "wxUSE_FS_ARCHIVE=$wxUSE_FS_ARCHIVE" >> ${wx_arg_cache_file}.tmp
26e422a9
MW
7901 fi
7902
6e198e97
VZ
7903 if test x"$enablestring" = xdisable; then
7904 if test $wxUSE_FS_ARCHIVE = yes; then
7905 result=no
7906 else
7907 result=yes
7908 fi
26e422a9 7909 else
6e198e97 7910 result=$wxUSE_FS_ARCHIVE
26e422a9
MW
7911 fi
7912
47964710
VS
7913 { echo "$as_me:$LINENO: result: $result" >&5
7914echo "${ECHO_T}$result" >&6; }
6e198e97 7915
26e422a9 7916
077c7880 7917 enablestring=
6e198e97 7918 defaultval=$wxUSE_ALL_FEATURES
238663c1 7919 if test -z "$defaultval"; then
6e198e97
VZ
7920 if test x"$enablestring" = xdisable; then
7921 defaultval=yes
7922 else
7923 defaultval=no
7924 fi
7925 fi
7926
47964710
VS
7927 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7928echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7929 # Check whether --enable-fs_inet was given.
a848cd7e 7930if test "${enable_fs_inet+set}" = set; then
47964710 7931 enableval=$enable_fs_inet;
a848cd7e 7932 if test "$enableval" = yes; then
d970f7d5 7933 wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
a848cd7e 7934 else
d970f7d5 7935 wx_cv_use_fs_inet='wxUSE_FS_INET=no'
a848cd7e 7936 fi
8743ec79 7937 cache=yes
a848cd7e
SC
7938
7939else
7940
b46b1d59 7941 LINE=`grep "^wxUSE_FS_INET=" ${wx_arg_cache_file}`
a848cd7e 7942 if test "x$LINE" != x ; then
8630a814
VZ
7943 eval "DEFAULT_$LINE"
7944 cache=yes
7945 else
7946 cache=no
a848cd7e
SC
7947 fi
7948
d970f7d5 7949 wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
a848cd7e 7950
47964710
VS
7951fi
7952
a848cd7e 7953
d970f7d5 7954 eval "$wx_cv_use_fs_inet"
8743ec79
VZ
7955 if test "x$cache" = xyes; then
7956 echo "wxUSE_FS_INET=$wxUSE_FS_INET" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
7957 fi
7958
6e198e97
VZ
7959 if test x"$enablestring" = xdisable; then
7960 if test $wxUSE_FS_INET = yes; then
7961 result=no
7962 else
7963 result=yes
7964 fi
a848cd7e 7965 else
6e198e97 7966 result=$wxUSE_FS_INET
a848cd7e
SC
7967 fi
7968
47964710
VS
7969 { echo "$as_me:$LINENO: result: $result" >&5
7970echo "${ECHO_T}$result" >&6; }
6e198e97 7971
a848cd7e 7972
077c7880 7973 enablestring=
6e198e97 7974 defaultval=$wxUSE_ALL_FEATURES
238663c1 7975 if test -z "$defaultval"; then
6e198e97
VZ
7976 if test x"$enablestring" = xdisable; then
7977 defaultval=yes
7978 else
7979 defaultval=no
7980 fi
7981 fi
7982
47964710
VS
7983 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7984echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7985 # Check whether --enable-fs_zip was given.
a848cd7e 7986if test "${enable_fs_zip+set}" = set; then
47964710 7987 enableval=$enable_fs_zip;
a848cd7e 7988 if test "$enableval" = yes; then
d970f7d5 7989 wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a848cd7e 7990 else
d970f7d5 7991 wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a848cd7e 7992 fi
8743ec79 7993 cache=yes
a848cd7e
SC
7994
7995else
7996
b46b1d59 7997 LINE=`grep "^wxUSE_FS_ZIP=" ${wx_arg_cache_file}`
a848cd7e 7998 if test "x$LINE" != x ; then
8630a814
VZ
7999 eval "DEFAULT_$LINE"
8000 cache=yes
8001 else
8002 cache=no
a848cd7e
SC
8003 fi
8004
d970f7d5 8005 wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
a848cd7e 8006
47964710
VS
8007fi
8008
a848cd7e 8009
d970f7d5 8010 eval "$wx_cv_use_fs_zip"
8743ec79
VZ
8011 if test "x$cache" = xyes; then
8012 echo "wxUSE_FS_ZIP=$wxUSE_FS_ZIP" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
8013 fi
8014
6e198e97
VZ
8015 if test x"$enablestring" = xdisable; then
8016 if test $wxUSE_FS_ZIP = yes; then
8017 result=no
8018 else
8019 result=yes
8020 fi
a848cd7e 8021 else
6e198e97 8022 result=$wxUSE_FS_ZIP
a848cd7e
SC
8023 fi
8024
47964710
VS
8025 { echo "$as_me:$LINENO: result: $result" >&5
8026echo "${ECHO_T}$result" >&6; }
6e198e97 8027
a848cd7e 8028
077c7880 8029 enablestring=
6e198e97 8030 defaultval=$wxUSE_ALL_FEATURES
238663c1 8031 if test -z "$defaultval"; then
6e198e97
VZ
8032 if test x"$enablestring" = xdisable; then
8033 defaultval=yes
8034 else
8035 defaultval=no
8036 fi
8037 fi
8038
47964710
VS
8039 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
8040echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
8041 # Check whether --enable-geometry was given.
a848cd7e 8042if test "${enable_geometry+set}" = set; then
47964710 8043 enableval=$enable_geometry;
a848cd7e 8044 if test "$enableval" = yes; then
d970f7d5 8045 wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
a848cd7e 8046 else
d970f7d5 8047 wx_cv_use_geometry='wxUSE_GEOMETRY=no'
a848cd7e 8048 fi
8743ec79 8049 cache=yes
a848cd7e
SC
8050
8051else
8052
b46b1d59 8053 LINE=`grep "^wxUSE_GEOMETRY=" ${wx_arg_cache_file}`
a848cd7e 8054 if test "x$LINE" != x ; then
8630a814
VZ
8055 eval "DEFAULT_$LINE"
8056 cache=yes
8057 else
8058 cache=no
a848cd7e
SC
8059 fi
8060
d970f7d5 8061 wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
a848cd7e 8062
47964710
VS
8063fi
8064
a848cd7e 8065
d970f7d5 8066 eval "$wx_cv_use_geometry"
8743ec79
VZ
8067 if test "x$cache" = xyes; then
8068 echo "wxUSE_GEOMETRY=$wxUSE_GEOMETRY" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
8069 fi
8070
6e198e97
VZ
8071 if test x"$enablestring" = xdisable; then
8072 if test $wxUSE_GEOMETRY = yes; then
8073 result=no
8074 else
8075 result=yes
8076 fi
a848cd7e 8077 else
6e198e97 8078 result=$wxUSE_GEOMETRY
a848cd7e
SC
8079 fi
8080
47964710
VS
8081 { echo "$as_me:$LINENO: result: $result" >&5
8082echo "${ECHO_T}$result" >&6; }
6e198e97 8083
a848cd7e 8084
077c7880 8085 enablestring=
6e198e97 8086 defaultval=$wxUSE_ALL_FEATURES
238663c1 8087 if test -z "$defaultval"; then
6e198e97
VZ
8088 if test x"$enablestring" = xdisable; then
8089 defaultval=yes
8090 else
8091 defaultval=no
8092 fi
8093 fi
8094
47964710
VS
8095 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
8096echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
8097 # Check whether --enable-log was given.
a848cd7e 8098if test "${enable_log+set}" = set; then
47964710 8099 enableval=$enable_log;
a848cd7e 8100 if test "$enableval" = yes; then
d970f7d5 8101 wx_cv_use_log='wxUSE_LOG=yes'
a848cd7e 8102 else
d970f7d5 8103 wx_cv_use_log='wxUSE_LOG=no'
a848cd7e 8104 fi
8743ec79 8105 cache=yes
a848cd7e
SC
8106
8107else
8108
b46b1d59 8109 LINE=`grep "^wxUSE_LOG=" ${wx_arg_cache_file}`
a848cd7e 8110 if test "x$LINE" != x ; then
8630a814
VZ
8111 eval "DEFAULT_$LINE"
8112 cache=yes
8113 else
8114 cache=no
a848cd7e
SC
8115 fi
8116
d970f7d5 8117 wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
a848cd7e 8118
47964710
VS
8119fi
8120
a848cd7e 8121
d970f7d5 8122 eval "$wx_cv_use_log"
8743ec79
VZ
8123 if test "x$cache" = xyes; then
8124 echo "wxUSE_LOG=$wxUSE_LOG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
8125 fi
8126
6e198e97
VZ
8127 if test x"$enablestring" = xdisable; then
8128 if test $wxUSE_LOG = yes; then
8129 result=no
8130 else
8131 result=yes
8132 fi
a848cd7e 8133 else
6e198e97 8134 result=$wxUSE_LOG
a848cd7e
SC
8135 fi
8136
47964710
VS
8137 { echo "$as_me:$LINENO: result: $result" >&5
8138echo "${ECHO_T}$result" >&6; }
6e198e97 8139
a848cd7e 8140
077c7880 8141 enablestring=
6e198e97 8142 defaultval=$wxUSE_ALL_FEATURES
238663c1 8143 if test -z "$defaultval"; then
6e198e97
VZ
8144 if test x"$enablestring" = xdisable; then
8145 defaultval=yes
8146 else
8147 defaultval=no
8148 fi
8149 fi
8150
47964710
VS
8151 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
8152echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
8153 # Check whether --enable-longlong was given.
a848cd7e 8154if test "${enable_longlong+set}" = set; then
47964710 8155 enableval=$enable_longlong;
a848cd7e 8156 if test "$enableval" = yes; then
d970f7d5 8157 wx_cv_use_longlong='wxUSE_LONGLONG=yes'
a848cd7e 8158 else
d970f7d5 8159 wx_cv_use_longlong='wxUSE_LONGLONG=no'
a848cd7e 8160 fi
8743ec79 8161 cache=yes
a848cd7e
SC
8162
8163else
8164
b46b1d59 8165 LINE=`grep "^wxUSE_LONGLONG=" ${wx_arg_cache_file}`
a848cd7e 8166 if test "x$LINE" != x ; then
8630a814
VZ
8167 eval "DEFAULT_$LINE"
8168 cache=yes
8169 else
8170 cache=no
a848cd7e
SC
8171 fi
8172
d970f7d5 8173 wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
a848cd7e 8174
47964710
VS
8175fi
8176
a848cd7e 8177
d970f7d5 8178 eval "$wx_cv_use_longlong"
8743ec79
VZ
8179 if test "x$cache" = xyes; then
8180 echo "wxUSE_LONGLONG=$wxUSE_LONGLONG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
8181 fi
8182
6e198e97
VZ
8183 if test x"$enablestring" = xdisable; then
8184 if test $wxUSE_LONGLONG = yes; then
8185 result=no
8186 else
8187 result=yes
8188 fi
a848cd7e 8189 else
6e198e97 8190 result=$wxUSE_LONGLONG
a848cd7e
SC
8191 fi
8192
47964710
VS
8193 { echo "$as_me:$LINENO: result: $result" >&5
8194echo "${ECHO_T}$result" >&6; }
6e198e97 8195
a848cd7e 8196
077c7880 8197 enablestring=
6e198e97 8198 defaultval=$wxUSE_ALL_FEATURES
238663c1 8199 if test -z "$defaultval"; then
6e198e97
VZ
8200 if test x"$enablestring" = xdisable; then
8201 defaultval=yes
8202 else
8203 defaultval=no
8204 fi
8205 fi
8206
47964710
VS
8207 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
8208echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
8209 # Check whether --enable-mimetype was given.
a848cd7e 8210if test "${enable_mimetype+set}" = set; then
47964710 8211 enableval=$enable_mimetype;
a848cd7e 8212 if test "$enableval" = yes; then
d970f7d5 8213 wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
a848cd7e 8214 else
d970f7d5 8215 wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
a848cd7e 8216 fi
8743ec79 8217 cache=yes
a848cd7e
SC
8218
8219else
8220
b46b1d59 8221 LINE=`grep "^wxUSE_MIMETYPE=" ${wx_arg_cache_file}`
a848cd7e 8222 if test "x$LINE" != x ; then
8630a814
VZ
8223 eval "DEFAULT_$LINE"
8224 cache=yes
8225 else
8226 cache=no
a848cd7e
SC
8227 fi
8228
d970f7d5 8229 wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
a848cd7e 8230
47964710
VS
8231fi
8232
a848cd7e 8233
d970f7d5 8234 eval "$wx_cv_use_mimetype"
8743ec79
VZ
8235 if test "x$cache" = xyes; then
8236 echo "wxUSE_MIMETYPE=$wxUSE_MIMETYPE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
8237 fi
8238
6e198e97
VZ
8239 if test x"$enablestring" = xdisable; then
8240 if test $wxUSE_MIMETYPE = yes; then
8241 result=no
8242 else
8243 result=yes
8244 fi
a848cd7e 8245 else
6e198e97 8246 result=$wxUSE_MIMETYPE
81727065
VS
8247 fi
8248
47964710
VS
8249 { echo "$as_me:$LINENO: result: $result" >&5
8250echo "${ECHO_T}$result" >&6; }
81727065
VS
8251
8252
111d9948 8253 enablestring=
6e198e97 8254 defaultval=$wxUSE_ALL_FEATURES
238663c1 8255 if test -z "$defaultval"; then
6e198e97
VZ
8256 if test x"$enablestring" = xdisable; then
8257 defaultval=yes
8258 else
8259 defaultval=no
8260 fi
111d9948
VS
8261 fi
8262
47964710
VS
8263 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
8264echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
8265 # Check whether --enable-snglinst was given.
a848cd7e 8266if test "${enable_snglinst+set}" = set; then
47964710 8267 enableval=$enable_snglinst;
a848cd7e 8268 if test "$enableval" = yes; then
d970f7d5 8269 wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
a848cd7e 8270 else
d970f7d5 8271 wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
a848cd7e 8272 fi
8743ec79 8273 cache=yes
a848cd7e
SC
8274
8275else
8276
b46b1d59 8277 LINE=`grep "^wxUSE_SNGLINST_CHECKER=" ${wx_arg_cache_file}`
a848cd7e 8278 if test "x$LINE" != x ; then
8630a814
VZ
8279 eval "DEFAULT_$LINE"
8280 cache=yes
8281 else
8282 cache=no
a848cd7e
SC
8283 fi
8284
d970f7d5 8285 wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
a848cd7e 8286
47964710
VS
8287fi
8288
a848cd7e 8289
d970f7d5 8290 eval "$wx_cv_use_snglinst"
8743ec79
VZ
8291 if test "x$cache" = xyes; then
8292 echo "wxUSE_SNGLINST_CHECKER=$wxUSE_SNGLINST_CHECKER" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
8293 fi
8294
6e198e97
VZ
8295 if test x"$enablestring" = xdisable; then
8296 if test $wxUSE_SNGLINST_CHECKER = yes; then
8297 result=no
8298 else
8299 result=yes
8300 fi
a848cd7e 8301 else
6e198e97 8302 result=$wxUSE_SNGLINST_CHECKER
a848cd7e
SC
8303 fi
8304
47964710
VS
8305 { echo "$as_me:$LINENO: result: $result" >&5
8306echo "${ECHO_T}$result" >&6; }
a848cd7e
SC
8307
8308
077c7880 8309 enablestring=
6e198e97 8310 defaultval=$wxUSE_ALL_FEATURES
238663c1 8311 if test -z "$defaultval"; then
6e198e97
VZ
8312 if test x"$enablestring" = xdisable; then
8313 defaultval=yes
8314 else
8315 defaultval=no
8316 fi
59746b65
MW
8317 fi
8318
47964710
VS
8319 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
8320echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
8321 # Check whether --enable-stdpaths was given.
07158944 8322if test "${enable_stdpaths+set}" = set; then
47964710 8323 enableval=$enable_stdpaths;
a848cd7e 8324 if test "$enableval" = yes; then
d970f7d5 8325 wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 8326 else
d970f7d5 8327 wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e 8328 fi
8743ec79 8329 cache=yes
a848cd7e
SC
8330
8331else
8332
b46b1d59 8333 LINE=`grep "^wxUSE_STDPATHS=" ${wx_arg_cache_file}`
a848cd7e 8334 if test "x$LINE" != x ; then
8630a814
VZ
8335 eval "DEFAULT_$LINE"
8336 cache=yes
8337 else
8338 cache=no
a848cd7e
SC
8339 fi
8340
d970f7d5 8341 wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
a848cd7e 8342
47964710
VS
8343fi
8344
a848cd7e 8345
d970f7d5 8346 eval "$wx_cv_use_stdpaths"
8743ec79
VZ
8347 if test "x$cache" = xyes; then
8348 echo "wxUSE_STDPATHS=$wxUSE_STDPATHS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
8349 fi
8350
6e198e97
VZ
8351 if test x"$enablestring" = xdisable; then
8352 if test $wxUSE_STDPATHS = yes; then
8353 result=no
8354 else
8355 result=yes
8356 fi
a848cd7e 8357 else
6e198e97 8358 result=$wxUSE_STDPATHS
a848cd7e
SC
8359 fi
8360
47964710
VS
8361 { echo "$as_me:$LINENO: result: $result" >&5
8362echo "${ECHO_T}$result" >&6; }
6e198e97 8363
a848cd7e 8364
077c7880 8365 enablestring=
6e198e97 8366 defaultval=$wxUSE_ALL_FEATURES
238663c1 8367 if test -z "$defaultval"; then
6e198e97
VZ
8368 if test x"$enablestring" = xdisable; then
8369 defaultval=yes
8370 else
8371 defaultval=no
8372 fi
8373 fi
8374
47964710
VS
8375 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
8376echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
8377 # Check whether --enable-stopwatch was given.
a848cd7e 8378if test "${enable_stopwatch+set}" = set; then
47964710 8379 enableval=$enable_stopwatch;
a848cd7e 8380 if test "$enableval" = yes; then
d970f7d5 8381 wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
a848cd7e 8382 else
d970f7d5 8383 wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
a848cd7e 8384 fi
8743ec79 8385 cache=yes
a848cd7e
SC
8386
8387else
8388
b46b1d59 8389 LINE=`grep "^wxUSE_STOPWATCH=" ${wx_arg_cache_file}`
a848cd7e 8390 if test "x$LINE" != x ; then
8630a814
VZ
8391 eval "DEFAULT_$LINE"
8392 cache=yes
8393 else
8394 cache=no
a848cd7e
SC
8395 fi
8396
d970f7d5 8397 wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
a848cd7e 8398
47964710
VS
8399fi
8400
a848cd7e 8401
d970f7d5 8402 eval "$wx_cv_use_stopwatch"
8743ec79
VZ
8403 if test "x$cache" = xyes; then
8404 echo "wxUSE_STOPWATCH=$wxUSE_STOPWATCH" >> ${wx_arg_cache_file}.tmp
a848cd7e 8405 fi
6e198e97
VZ
8406
8407 if test x"$enablestring" = xdisable; then
8408 if test $wxUSE_STOPWATCH = yes; then
8409 result=no
8410 else
8411 result=yes
8412 fi
a848cd7e 8413 else
6e198e97 8414 result=$wxUSE_STOPWATCH
a848cd7e
SC
8415 fi
8416
47964710
VS
8417 { echo "$as_me:$LINENO: result: $result" >&5
8418echo "${ECHO_T}$result" >&6; }
6e198e97 8419
a848cd7e 8420
077c7880 8421 enablestring=
6e198e97 8422 defaultval=$wxUSE_ALL_FEATURES
238663c1 8423 if test -z "$defaultval"; then
6e198e97
VZ
8424 if test x"$enablestring" = xdisable; then
8425 defaultval=yes
8426 else
8427 defaultval=no
8428 fi
8429 fi
8430
47964710
VS
8431 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
8432echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
8433 # Check whether --enable-streams was given.
07158944 8434if test "${enable_streams+set}" = set; then
47964710 8435 enableval=$enable_streams;
07158944 8436 if test "$enableval" = yes; then
d970f7d5 8437 wx_cv_use_streams='wxUSE_STREAMS=yes'
07158944 8438 else
d970f7d5 8439 wx_cv_use_streams='wxUSE_STREAMS=no'
07158944 8440 fi
8743ec79 8441 cache=yes
07158944
VZ
8442
8443else
8444
b46b1d59 8445 LINE=`grep "^wxUSE_STREAMS=" ${wx_arg_cache_file}`
07158944 8446 if test "x$LINE" != x ; then
8630a814
VZ
8447 eval "DEFAULT_$LINE"
8448 cache=yes
8449 else
8450 cache=no
07158944
VZ
8451 fi
8452
d970f7d5 8453 wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
07158944 8454
47964710
VS
8455fi
8456
07158944 8457
d970f7d5 8458 eval "$wx_cv_use_streams"
8743ec79
VZ
8459 if test "x$cache" = xyes; then
8460 echo "wxUSE_STREAMS=$wxUSE_STREAMS" >> ${wx_arg_cache_file}.tmp
07158944
VZ
8461 fi
8462
6e198e97
VZ
8463 if test x"$enablestring" = xdisable; then
8464 if test $wxUSE_STREAMS = yes; then
8465 result=no
8466 else
8467 result=yes
8468 fi
07158944 8469 else
6e198e97 8470 result=$wxUSE_STREAMS
07158944
VZ
8471 fi
8472
47964710
VS
8473 { echo "$as_me:$LINENO: result: $result" >&5
8474echo "${ECHO_T}$result" >&6; }
6e198e97 8475
07158944 8476
077c7880 8477 enablestring=
6e198e97 8478 defaultval=$wxUSE_ALL_FEATURES
238663c1 8479 if test -z "$defaultval"; then
6e198e97
VZ
8480 if test x"$enablestring" = xdisable; then
8481 defaultval=yes
8482 else
8483 defaultval=no
8484 fi
8485 fi
8486
47964710
VS
8487 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
8488echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
8489 # Check whether --enable-system_options was given.
a848cd7e 8490if test "${enable_system_options+set}" = set; then
47964710 8491 enableval=$enable_system_options;
a848cd7e 8492 if test "$enableval" = yes; then
d970f7d5 8493 wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
a848cd7e 8494 else
d970f7d5 8495 wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
a848cd7e 8496 fi
8743ec79 8497 cache=yes
a848cd7e
SC
8498
8499else
8500
b46b1d59 8501 LINE=`grep "^wxUSE_SYSTEM_OPTIONS=" ${wx_arg_cache_file}`
a848cd7e 8502 if test "x$LINE" != x ; then
8630a814
VZ
8503 eval "DEFAULT_$LINE"
8504 cache=yes
8505 else
8506 cache=no
a848cd7e
SC
8507 fi
8508
d970f7d5 8509 wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
a848cd7e 8510
47964710
VS
8511fi
8512
a848cd7e 8513
d970f7d5 8514 eval "$wx_cv_use_system_options"
8743ec79
VZ
8515 if test "x$cache" = xyes; then
8516 echo "wxUSE_SYSTEM_OPTIONS=$wxUSE_SYSTEM_OPTIONS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
8517 fi
8518
6e198e97
VZ
8519 if test x"$enablestring" = xdisable; then
8520 if test $wxUSE_SYSTEM_OPTIONS = yes; then
8521 result=no
8522 else
8523 result=yes
8524 fi
a848cd7e 8525 else
6e198e97 8526 result=$wxUSE_SYSTEM_OPTIONS
a848cd7e
SC
8527 fi
8528
47964710
VS
8529 { echo "$as_me:$LINENO: result: $result" >&5
8530echo "${ECHO_T}$result" >&6; }
6e198e97 8531
a848cd7e 8532
077c7880 8533 enablestring=
6e198e97 8534 defaultval=$wxUSE_ALL_FEATURES
238663c1 8535 if test -z "$defaultval"; then
6e198e97
VZ
8536 if test x"$enablestring" = xdisable; then
8537 defaultval=yes
8538 else
8539 defaultval=no
8540 fi
8541 fi
8542
47964710
VS
8543 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8544echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8545 # Check whether --enable-tarstream was given.
26e422a9 8546if test "${enable_tarstream+set}" = set; then
47964710 8547 enableval=$enable_tarstream;
26e422a9 8548 if test "$enableval" = yes; then
d970f7d5 8549 wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
26e422a9 8550 else
d970f7d5 8551 wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
26e422a9 8552 fi
8743ec79 8553 cache=yes
26e422a9
MW
8554
8555else
8556
b46b1d59 8557 LINE=`grep "^wxUSE_TARSTREAM=" ${wx_arg_cache_file}`
26e422a9 8558 if test "x$LINE" != x ; then
8630a814
VZ
8559 eval "DEFAULT_$LINE"
8560 cache=yes
8561 else
8562 cache=no
26e422a9
MW
8563 fi
8564
d970f7d5 8565 wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
26e422a9 8566
47964710
VS
8567fi
8568
26e422a9 8569
d970f7d5 8570 eval "$wx_cv_use_tarstream"
8743ec79
VZ
8571 if test "x$cache" = xyes; then
8572 echo "wxUSE_TARSTREAM=$wxUSE_TARSTREAM" >> ${wx_arg_cache_file}.tmp
26e422a9
MW
8573 fi
8574
6e198e97
VZ
8575 if test x"$enablestring" = xdisable; then
8576 if test $wxUSE_TARSTREAM = yes; then
8577 result=no
8578 else
8579 result=yes
8580 fi
26e422a9 8581 else
6e198e97 8582 result=$wxUSE_TARSTREAM
26e422a9
MW
8583 fi
8584
47964710
VS
8585 { echo "$as_me:$LINENO: result: $result" >&5
8586echo "${ECHO_T}$result" >&6; }
6e198e97 8587
26e422a9 8588
077c7880 8589 enablestring=
6e198e97 8590 defaultval=$wxUSE_ALL_FEATURES
238663c1 8591 if test -z "$defaultval"; then
6e198e97
VZ
8592 if test x"$enablestring" = xdisable; then
8593 defaultval=yes
8594 else
8595 defaultval=no
8596 fi
8597 fi
8598
47964710
VS
8599 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8600echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8601 # Check whether --enable-textbuf was given.
a848cd7e 8602if test "${enable_textbuf+set}" = set; then
47964710 8603 enableval=$enable_textbuf;
a848cd7e 8604 if test "$enableval" = yes; then
d970f7d5 8605 wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
a848cd7e 8606 else
d970f7d5 8607 wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
a848cd7e 8608 fi
8743ec79 8609 cache=yes
a848cd7e
SC
8610
8611else
8612
b46b1d59 8613 LINE=`grep "^wxUSE_TEXTBUFFER=" ${wx_arg_cache_file}`
a848cd7e 8614 if test "x$LINE" != x ; then
8630a814
VZ
8615 eval "DEFAULT_$LINE"
8616 cache=yes
8617 else
8618 cache=no
a848cd7e
SC
8619 fi
8620
d970f7d5 8621 wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
a848cd7e 8622
47964710
VS
8623fi
8624
a848cd7e 8625
d970f7d5 8626 eval "$wx_cv_use_textbuf"
8743ec79
VZ
8627 if test "x$cache" = xyes; then
8628 echo "wxUSE_TEXTBUFFER=$wxUSE_TEXTBUFFER" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
8629 fi
8630
6e198e97
VZ
8631 if test x"$enablestring" = xdisable; then
8632 if test $wxUSE_TEXTBUFFER = yes; then
8633 result=no
8634 else
8635 result=yes
8636 fi
a848cd7e 8637 else
6e198e97 8638 result=$wxUSE_TEXTBUFFER
a848cd7e
SC
8639 fi
8640
47964710
VS
8641 { echo "$as_me:$LINENO: result: $result" >&5
8642echo "${ECHO_T}$result" >&6; }
6e198e97 8643
a848cd7e 8644
077c7880 8645 enablestring=
6e198e97 8646 defaultval=$wxUSE_ALL_FEATURES
238663c1 8647 if test -z "$defaultval"; then
6e198e97
VZ
8648 if test x"$enablestring" = xdisable; then
8649 defaultval=yes
8650 else
8651 defaultval=no
8652 fi
8653 fi
8654
47964710
VS
8655 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8656echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8657 # Check whether --enable-textfile was given.
a848cd7e 8658if test "${enable_textfile+set}" = set; then
47964710 8659 enableval=$enable_textfile;
a848cd7e 8660 if test "$enableval" = yes; then
d970f7d5 8661 wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
a848cd7e 8662 else
d970f7d5 8663 wx_cv_use_textfile='wxUSE_TEXTFILE=no'
a848cd7e 8664 fi
8743ec79 8665 cache=yes
a848cd7e
SC
8666
8667else
8668
b46b1d59 8669 LINE=`grep "^wxUSE_TEXTFILE=" ${wx_arg_cache_file}`
a848cd7e 8670 if test "x$LINE" != x ; then
8630a814
VZ
8671 eval "DEFAULT_$LINE"
8672 cache=yes
8673 else
8674 cache=no
a848cd7e
SC
8675 fi
8676
d970f7d5 8677 wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
a848cd7e 8678
47964710
VS
8679fi
8680
a848cd7e 8681
d970f7d5 8682 eval "$wx_cv_use_textfile"
8743ec79
VZ
8683 if test "x$cache" = xyes; then
8684 echo "wxUSE_TEXTFILE=$wxUSE_TEXTFILE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
8685 fi
8686
6e198e97
VZ
8687 if test x"$enablestring" = xdisable; then
8688 if test $wxUSE_TEXTFILE = yes; then
8689 result=no
8690 else
8691 result=yes
8692 fi
a848cd7e 8693 else
6e198e97 8694 result=$wxUSE_TEXTFILE
a848cd7e
SC
8695 fi
8696
47964710
VS
8697 { echo "$as_me:$LINENO: result: $result" >&5
8698echo "${ECHO_T}$result" >&6; }
6e198e97 8699
a848cd7e 8700
077c7880 8701 enablestring=
6e198e97 8702 defaultval=$wxUSE_ALL_FEATURES
238663c1 8703 if test -z "$defaultval"; then
6e198e97
VZ
8704 if test x"$enablestring" = xdisable; then
8705 defaultval=yes
8706 else
8707 defaultval=no
8708 fi
8709 fi
8710
47964710
VS
8711 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8712echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8713 # Check whether --enable-timer was given.
a848cd7e 8714if test "${enable_timer+set}" = set; then
47964710 8715 enableval=$enable_timer;
a848cd7e 8716 if test "$enableval" = yes; then
d970f7d5 8717 wx_cv_use_timer='wxUSE_TIMER=yes'
a848cd7e 8718 else
d970f7d5 8719 wx_cv_use_timer='wxUSE_TIMER=no'
a848cd7e 8720 fi
8743ec79 8721 cache=yes
a848cd7e
SC
8722
8723else
8724
b46b1d59 8725 LINE=`grep "^wxUSE_TIMER=" ${wx_arg_cache_file}`
a848cd7e 8726 if test "x$LINE" != x ; then
8630a814
VZ
8727 eval "DEFAULT_$LINE"
8728 cache=yes
8729 else
8730 cache=no
a848cd7e
SC
8731 fi
8732
d970f7d5 8733 wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
a848cd7e 8734
47964710
VS
8735fi
8736
a848cd7e 8737
d970f7d5 8738 eval "$wx_cv_use_timer"
8743ec79
VZ
8739 if test "x$cache" = xyes; then
8740 echo "wxUSE_TIMER=$wxUSE_TIMER" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
8741 fi
8742
6e198e97
VZ
8743 if test x"$enablestring" = xdisable; then
8744 if test $wxUSE_TIMER = yes; then
8745 result=no
8746 else
8747 result=yes
8748 fi
a848cd7e 8749 else
6e198e97 8750 result=$wxUSE_TIMER
a848cd7e
SC
8751 fi
8752
47964710
VS
8753 { echo "$as_me:$LINENO: result: $result" >&5
8754echo "${ECHO_T}$result" >&6; }
a848cd7e 8755
a848cd7e 8756
6e198e97
VZ
8757 enablestring=
8758 defaultval=$wxUSE_ALL_FEATURES
238663c1 8759 if test -z "$defaultval"; then
6e198e97
VZ
8760 if test x"$enablestring" = xdisable; then
8761 defaultval=yes
8762 else
8763 defaultval=no
8764 fi
a848cd7e
SC
8765 fi
8766
47964710
VS
8767 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
8768echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
8769 # Check whether --enable-sound was given.
a848cd7e 8770if test "${enable_sound+set}" = set; then
47964710 8771 enableval=$enable_sound;
a848cd7e 8772 if test "$enableval" = yes; then
d970f7d5 8773 wx_cv_use_sound='wxUSE_SOUND=yes'
a848cd7e 8774 else
d970f7d5 8775 wx_cv_use_sound='wxUSE_SOUND=no'
a848cd7e 8776 fi
8743ec79 8777 cache=yes
a848cd7e
SC
8778
8779else
8780
b46b1d59 8781 LINE=`grep "^wxUSE_SOUND=" ${wx_arg_cache_file}`
a848cd7e 8782 if test "x$LINE" != x ; then
8630a814
VZ
8783 eval "DEFAULT_$LINE"
8784 cache=yes
8785 else
8786 cache=no
a848cd7e
SC
8787 fi
8788
d970f7d5 8789 wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
a848cd7e 8790
47964710
VS
8791fi
8792
a848cd7e 8793
d970f7d5 8794 eval "$wx_cv_use_sound"
8743ec79
VZ
8795 if test "x$cache" = xyes; then
8796 echo "wxUSE_SOUND=$wxUSE_SOUND" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
8797 fi
8798
6e198e97
VZ
8799 if test x"$enablestring" = xdisable; then
8800 if test $wxUSE_SOUND = yes; then
8801 result=no
8802 else
8803 result=yes
8804 fi
a848cd7e 8805 else
6e198e97 8806 result=$wxUSE_SOUND
a848cd7e
SC
8807 fi
8808
47964710
VS
8809 { echo "$as_me:$LINENO: result: $result" >&5
8810echo "${ECHO_T}$result" >&6; }
6e198e97 8811
a848cd7e 8812
077c7880 8813 enablestring=
6e198e97 8814 defaultval=$wxUSE_ALL_FEATURES
238663c1 8815 if test -z "$defaultval"; then
6e198e97
VZ
8816 if test x"$enablestring" = xdisable; then
8817 defaultval=yes
8818 else
8819 defaultval=no
8820 fi
8821 fi
8822
47964710
VS
8823 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8824echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8825 # Check whether --enable-mediactrl was given.
3b57de8b 8826if test "${enable_mediactrl+set}" = set; then
47964710 8827 enableval=$enable_mediactrl;
3b57de8b 8828 if test "$enableval" = yes; then
d970f7d5 8829 wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
3b57de8b 8830 else
d970f7d5 8831 wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
3b57de8b 8832 fi
8743ec79 8833 cache=yes
3b57de8b
RL
8834
8835else
8836
b46b1d59 8837 LINE=`grep "^wxUSE_MEDIACTRL=" ${wx_arg_cache_file}`
3b57de8b 8838 if test "x$LINE" != x ; then
8630a814
VZ
8839 eval "DEFAULT_$LINE"
8840 cache=yes
8841 else
8842 cache=no
3b57de8b
RL
8843 fi
8844
d970f7d5 8845 wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
3b57de8b 8846
47964710
VS
8847fi
8848
3b57de8b 8849
d970f7d5 8850 eval "$wx_cv_use_mediactrl"
8743ec79
VZ
8851 if test "x$cache" = xyes; then
8852 echo "wxUSE_MEDIACTRL=$wxUSE_MEDIACTRL" >> ${wx_arg_cache_file}.tmp
3b57de8b
RL
8853 fi
8854
6e198e97
VZ
8855 if test x"$enablestring" = xdisable; then
8856 if test $wxUSE_MEDIACTRL = yes; then
8857 result=no
8858 else
8859 result=yes
8860 fi
3b57de8b 8861 else
6e198e97 8862 result=$wxUSE_MEDIACTRL
3b57de8b
RL
8863 fi
8864
47964710
VS
8865 { echo "$as_me:$LINENO: result: $result" >&5
8866echo "${ECHO_T}$result" >&6; }
6e198e97 8867
3b57de8b 8868
077c7880 8869 enablestring=
6e198e97 8870 defaultval=$wxUSE_ALL_FEATURES
238663c1 8871 if test -z "$defaultval"; then
6e198e97
VZ
8872 if test x"$enablestring" = xdisable; then
8873 defaultval=yes
8874 else
8875 defaultval=no
8876 fi
8877 fi
8878
47964710
VS
8879 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8880echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8881 # Check whether --enable-gstreamer8 was given.
f10e38c4 8882if test "${enable_gstreamer8+set}" = set; then
47964710 8883 enableval=$enable_gstreamer8;
f10e38c4 8884 if test "$enableval" = yes; then
d970f7d5 8885 wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
f10e38c4 8886 else
d970f7d5 8887 wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
f10e38c4 8888 fi
8743ec79 8889 cache=yes
f10e38c4
VZ
8890
8891else
8892
b46b1d59 8893 LINE=`grep "^wxUSE_GSTREAMER8=" ${wx_arg_cache_file}`
f10e38c4 8894 if test "x$LINE" != x ; then
8630a814
VZ
8895 eval "DEFAULT_$LINE"
8896 cache=yes
8897 else
8898 cache=no
f10e38c4
VZ
8899 fi
8900
d970f7d5 8901 wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
f10e38c4 8902
47964710
VS
8903fi
8904
f10e38c4 8905
d970f7d5 8906 eval "$wx_cv_use_gstreamer8"
8743ec79
VZ
8907 if test "x$cache" = xyes; then
8908 echo "wxUSE_GSTREAMER8=$wxUSE_GSTREAMER8" >> ${wx_arg_cache_file}.tmp
f10e38c4
VZ
8909 fi
8910
6e198e97
VZ
8911 if test x"$enablestring" = xdisable; then
8912 if test $wxUSE_GSTREAMER8 = yes; then
8913 result=no
8914 else
8915 result=yes
8916 fi
f10e38c4 8917 else
6e198e97 8918 result=$wxUSE_GSTREAMER8
f10e38c4
VZ
8919 fi
8920
47964710
VS
8921 { echo "$as_me:$LINENO: result: $result" >&5
8922echo "${ECHO_T}$result" >&6; }
6e198e97 8923
f10e38c4 8924
077c7880 8925 enablestring=
6e198e97 8926 defaultval=$wxUSE_ALL_FEATURES
238663c1 8927 if test -z "$defaultval"; then
6e198e97
VZ
8928 if test x"$enablestring" = xdisable; then
8929 defaultval=yes
8930 else
8931 defaultval=no
8932 fi
8933 fi
8934
47964710
VS
8935 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
8936echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
8937 # Check whether --enable-printfposparam was given.
8b6682b9 8938if test "${enable_printfposparam+set}" = set; then
47964710 8939 enableval=$enable_printfposparam;
a848cd7e 8940 if test "$enableval" = yes; then
d970f7d5 8941 wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 8942 else
d970f7d5 8943 wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e 8944 fi
8743ec79 8945 cache=yes
a848cd7e
SC
8946
8947else
8948
b46b1d59 8949 LINE=`grep "^wxUSE_PRINTF_POS_PARAMS=" ${wx_arg_cache_file}`
a848cd7e 8950 if test "x$LINE" != x ; then
8630a814
VZ
8951 eval "DEFAULT_$LINE"
8952 cache=yes
8953 else
8954 cache=no
a848cd7e
SC
8955 fi
8956
d970f7d5 8957 wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
a848cd7e 8958
47964710
VS
8959fi
8960
a848cd7e 8961
d970f7d5 8962 eval "$wx_cv_use_printfposparam"
8743ec79
VZ
8963 if test "x$cache" = xyes; then
8964 echo "wxUSE_PRINTF_POS_PARAMS=$wxUSE_PRINTF_POS_PARAMS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
8965 fi
8966
6e198e97
VZ
8967 if test x"$enablestring" = xdisable; then
8968 if test $wxUSE_PRINTF_POS_PARAMS = yes; then
8969 result=no
8970 else
8971 result=yes
8972 fi
a848cd7e 8973 else
6e198e97 8974 result=$wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
8975 fi
8976
47964710
VS
8977 { echo "$as_me:$LINENO: result: $result" >&5
8978echo "${ECHO_T}$result" >&6; }
6e198e97 8979
a848cd7e 8980
077c7880 8981 enablestring=
6e198e97 8982 defaultval=$wxUSE_ALL_FEATURES
238663c1 8983 if test -z "$defaultval"; then
6e198e97
VZ
8984 if test x"$enablestring" = xdisable; then
8985 defaultval=yes
8986 else
8987 defaultval=no
8988 fi
8989 fi
8990
47964710
VS
8991 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8992echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8993 # Check whether --enable-zipstream was given.
a848cd7e 8994if test "${enable_zipstream+set}" = set; then
47964710 8995 enableval=$enable_zipstream;
a848cd7e 8996 if test "$enableval" = yes; then
d970f7d5 8997 wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
a848cd7e 8998 else
d970f7d5 8999 wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
a848cd7e 9000 fi
8743ec79 9001 cache=yes
a848cd7e
SC
9002
9003else
9004
b46b1d59 9005 LINE=`grep "^wxUSE_ZIPSTREAM=" ${wx_arg_cache_file}`
a848cd7e 9006 if test "x$LINE" != x ; then
8630a814
VZ
9007 eval "DEFAULT_$LINE"
9008 cache=yes
9009 else
9010 cache=no
a848cd7e
SC
9011 fi
9012
d970f7d5 9013 wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
a848cd7e 9014
47964710
VS
9015fi
9016
a848cd7e 9017
d970f7d5 9018 eval "$wx_cv_use_zipstream"
8743ec79
VZ
9019 if test "x$cache" = xyes; then
9020 echo "wxUSE_ZIPSTREAM=$wxUSE_ZIPSTREAM" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
9021 fi
9022
6e198e97
VZ
9023 if test x"$enablestring" = xdisable; then
9024 if test $wxUSE_ZIPSTREAM = yes; then
9025 result=no
9026 else
9027 result=yes
9028 fi
a848cd7e 9029 else
6e198e97 9030 result=$wxUSE_ZIPSTREAM
a848cd7e
SC
9031 fi
9032
47964710
VS
9033 { echo "$as_me:$LINENO: result: $result" >&5
9034echo "${ECHO_T}$result" >&6; }
6e198e97 9035
a848cd7e 9036
a848cd7e 9037
077c7880 9038 enablestring=
6e198e97 9039 defaultval=$wxUSE_ALL_FEATURES
238663c1 9040 if test -z "$defaultval"; then
6e198e97
VZ
9041 if test x"$enablestring" = xdisable; then
9042 defaultval=yes
9043 else
9044 defaultval=no
9045 fi
9046 fi
9047
47964710
VS
9048 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
9049echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
9050 # Check whether --enable-url was given.
a848cd7e 9051if test "${enable_url+set}" = set; then
47964710 9052 enableval=$enable_url;
a848cd7e 9053 if test "$enableval" = yes; then
d970f7d5 9054 wx_cv_use_url='wxUSE_URL=yes'
a848cd7e 9055 else
d970f7d5 9056 wx_cv_use_url='wxUSE_URL=no'
a848cd7e 9057 fi
8743ec79 9058 cache=yes
a848cd7e
SC
9059
9060else
9061
b46b1d59 9062 LINE=`grep "^wxUSE_URL=" ${wx_arg_cache_file}`
a848cd7e 9063 if test "x$LINE" != x ; then
8630a814
VZ
9064 eval "DEFAULT_$LINE"
9065 cache=yes
9066 else
9067 cache=no
a848cd7e
SC
9068 fi
9069
d970f7d5 9070 wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
a848cd7e 9071
47964710
VS
9072fi
9073
a848cd7e 9074
d970f7d5 9075 eval "$wx_cv_use_url"
8743ec79
VZ
9076 if test "x$cache" = xyes; then
9077 echo "wxUSE_URL=$wxUSE_URL" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
9078 fi
9079
6e198e97
VZ
9080 if test x"$enablestring" = xdisable; then
9081 if test $wxUSE_URL = yes; then
9082 result=no
9083 else
9084 result=yes
9085 fi
a848cd7e 9086 else
6e198e97 9087 result=$wxUSE_URL
a848cd7e
SC
9088 fi
9089
47964710
VS
9090 { echo "$as_me:$LINENO: result: $result" >&5
9091echo "${ECHO_T}$result" >&6; }
6e198e97 9092
a848cd7e 9093
077c7880 9094 enablestring=
6e198e97 9095 defaultval=$wxUSE_ALL_FEATURES
238663c1 9096 if test -z "$defaultval"; then
6e198e97
VZ
9097 if test x"$enablestring" = xdisable; then
9098 defaultval=yes
9099 else
9100 defaultval=no
9101 fi
9102 fi
9103
47964710
VS
9104 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
9105echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
9106 # Check whether --enable-variant was given.
ca5c6ac3 9107if test "${enable_variant+set}" = set; then
47964710 9108 enableval=$enable_variant;
ca5c6ac3 9109 if test "$enableval" = yes; then
d970f7d5 9110 wx_cv_use_variant='wxUSE_VARIANT=yes'
ca5c6ac3 9111 else
d970f7d5 9112 wx_cv_use_variant='wxUSE_VARIANT=no'
ca5c6ac3 9113 fi
8743ec79 9114 cache=yes
ca5c6ac3
VZ
9115
9116else
9117
b46b1d59 9118 LINE=`grep "^wxUSE_VARIANT=" ${wx_arg_cache_file}`
ca5c6ac3 9119 if test "x$LINE" != x ; then
8630a814
VZ
9120 eval "DEFAULT_$LINE"
9121 cache=yes
9122 else
9123 cache=no
ca5c6ac3
VZ
9124 fi
9125
d970f7d5 9126 wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
ca5c6ac3 9127
47964710
VS
9128fi
9129
ca5c6ac3 9130
d970f7d5 9131 eval "$wx_cv_use_variant"
8743ec79
VZ
9132 if test "x$cache" = xyes; then
9133 echo "wxUSE_VARIANT=$wxUSE_VARIANT" >> ${wx_arg_cache_file}.tmp
ca5c6ac3
VZ
9134 fi
9135
6e198e97
VZ
9136 if test x"$enablestring" = xdisable; then
9137 if test $wxUSE_VARIANT = yes; then
9138 result=no
9139 else
9140 result=yes
9141 fi
ca5c6ac3 9142 else
6e198e97 9143 result=$wxUSE_VARIANT
ca5c6ac3
VZ
9144 fi
9145
47964710
VS
9146 { echo "$as_me:$LINENO: result: $result" >&5
9147echo "${ECHO_T}$result" >&6; }
6e198e97 9148
ca5c6ac3 9149
077c7880 9150 enablestring=
6e198e97 9151 defaultval=$wxUSE_ALL_FEATURES
238663c1 9152 if test -z "$defaultval"; then
6e198e97
VZ
9153 if test x"$enablestring" = xdisable; then
9154 defaultval=yes
9155 else
9156 defaultval=no
9157 fi
9158 fi
9159
47964710
VS
9160 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
9161echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
9162 # Check whether --enable-protocol was given.
a848cd7e 9163if test "${enable_protocol+set}" = set; then
47964710 9164 enableval=$enable_protocol;
a848cd7e 9165 if test "$enableval" = yes; then
d970f7d5 9166 wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
a848cd7e 9167 else
d970f7d5 9168 wx_cv_use_protocol='wxUSE_PROTOCOL=no'
a848cd7e 9169 fi
8743ec79 9170 cache=yes
a848cd7e
SC
9171
9172else
9173
b46b1d59 9174 LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
a848cd7e 9175 if test "x$LINE" != x ; then
8630a814
VZ
9176 eval "DEFAULT_$LINE"
9177 cache=yes
9178 else
9179 cache=no
a848cd7e
SC
9180 fi
9181
d970f7d5 9182 wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
a848cd7e 9183
47964710
VS
9184fi
9185
a848cd7e 9186
d970f7d5 9187 eval "$wx_cv_use_protocol"
8743ec79
VZ
9188 if test "x$cache" = xyes; then
9189 echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
9190 fi
9191
6e198e97
VZ
9192 if test x"$enablestring" = xdisable; then
9193 if test $wxUSE_PROTOCOL = yes; then
9194 result=no
9195 else
9196 result=yes
9197 fi
a848cd7e 9198 else
6e198e97 9199 result=$wxUSE_PROTOCOL
a848cd7e
SC
9200 fi
9201
47964710
VS
9202 { echo "$as_me:$LINENO: result: $result" >&5
9203echo "${ECHO_T}$result" >&6; }
6e198e97 9204
a848cd7e 9205
077c7880 9206 enablestring=
6e198e97 9207 defaultval=$wxUSE_ALL_FEATURES
238663c1 9208 if test -z "$defaultval"; then
6e198e97
VZ
9209 if test x"$enablestring" = xdisable; then
9210 defaultval=yes
9211 else
9212 defaultval=no
9213 fi
9214 fi
9215
47964710
VS
9216 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
9217echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
9218 # Check whether --enable-protocol_http was given.
a848cd7e 9219if test "${enable_protocol_http+set}" = set; then
47964710 9220 enableval=$enable_protocol_http;
a848cd7e 9221 if test "$enableval" = yes; then
d970f7d5 9222 wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
a848cd7e 9223 else
d970f7d5 9224 wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
a848cd7e 9225 fi
8743ec79 9226 cache=yes
a848cd7e
SC
9227
9228else
9229
b46b1d59 9230 LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
a848cd7e 9231 if test "x$LINE" != x ; then
8630a814
VZ
9232 eval "DEFAULT_$LINE"
9233 cache=yes
9234 else
9235 cache=no
a848cd7e
SC
9236 fi
9237
d970f7d5 9238 wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
a848cd7e 9239
47964710
VS
9240fi
9241
a848cd7e 9242
d970f7d5 9243 eval "$wx_cv_use_protocol_http"
8743ec79
VZ
9244 if test "x$cache" = xyes; then
9245 echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
9246 fi
9247
6e198e97
VZ
9248 if test x"$enablestring" = xdisable; then
9249 if test $wxUSE_PROTOCOL_HTTP = yes; then
9250 result=no
9251 else
9252 result=yes
9253 fi
a848cd7e 9254 else
6e198e97 9255 result=$wxUSE_PROTOCOL_HTTP
a848cd7e
SC
9256 fi
9257
47964710
VS
9258 { echo "$as_me:$LINENO: result: $result" >&5
9259echo "${ECHO_T}$result" >&6; }
6e198e97 9260
a848cd7e 9261
077c7880 9262 enablestring=
6e198e97 9263 defaultval=$wxUSE_ALL_FEATURES
238663c1 9264 if test -z "$defaultval"; then
6e198e97
VZ
9265 if test x"$enablestring" = xdisable; then
9266 defaultval=yes
9267 else
9268 defaultval=no
9269 fi
9270 fi
9271
47964710
VS
9272 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
9273echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
9274 # Check whether --enable-protocol_ftp was given.
a848cd7e 9275if test "${enable_protocol_ftp+set}" = set; then
47964710 9276 enableval=$enable_protocol_ftp;
a848cd7e 9277 if test "$enableval" = yes; then
d970f7d5 9278 wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
a848cd7e 9279 else
d970f7d5 9280 wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
a848cd7e 9281 fi
8743ec79 9282 cache=yes
a848cd7e
SC
9283
9284else
9285
b46b1d59 9286 LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
a848cd7e 9287 if test "x$LINE" != x ; then
8630a814
VZ
9288 eval "DEFAULT_$LINE"
9289 cache=yes
9290 else
9291 cache=no
a848cd7e
SC
9292 fi
9293
d970f7d5 9294 wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
a848cd7e 9295
47964710
VS
9296fi
9297
a848cd7e 9298
d970f7d5 9299 eval "$wx_cv_use_protocol_ftp"
8743ec79
VZ
9300 if test "x$cache" = xyes; then
9301 echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
9302 fi
9303
6e198e97
VZ
9304 if test x"$enablestring" = xdisable; then
9305 if test $wxUSE_PROTOCOL_FTP = yes; then
9306 result=no
9307 else
9308 result=yes
9309 fi
a848cd7e 9310 else
6e198e97 9311 result=$wxUSE_PROTOCOL_FTP
a848cd7e
SC
9312 fi
9313
47964710
VS
9314 { echo "$as_me:$LINENO: result: $result" >&5
9315echo "${ECHO_T}$result" >&6; }
6e198e97 9316
a848cd7e 9317
077c7880 9318 enablestring=
6e198e97 9319 defaultval=$wxUSE_ALL_FEATURES
238663c1 9320 if test -z "$defaultval"; then
6e198e97
VZ
9321 if test x"$enablestring" = xdisable; then
9322 defaultval=yes
9323 else
9324 defaultval=no
9325 fi
9326 fi
9327
47964710
VS
9328 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
9329echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
9330 # Check whether --enable-protocol_file was given.
a848cd7e 9331if test "${enable_protocol_file+set}" = set; then
47964710 9332 enableval=$enable_protocol_file;
a848cd7e 9333 if test "$enableval" = yes; then
d970f7d5 9334 wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
a848cd7e 9335 else
d970f7d5 9336 wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
a848cd7e 9337 fi
8743ec79 9338 cache=yes
a848cd7e
SC
9339
9340else
9341
b46b1d59 9342 LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
a848cd7e 9343 if test "x$LINE" != x ; then
8630a814
VZ
9344 eval "DEFAULT_$LINE"
9345 cache=yes
9346 else
9347 cache=no
a848cd7e
SC
9348 fi
9349
d970f7d5 9350 wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
a848cd7e 9351
47964710
VS
9352fi
9353
a848cd7e 9354
d970f7d5 9355 eval "$wx_cv_use_protocol_file"
8743ec79
VZ
9356 if test "x$cache" = xyes; then
9357 echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
9358 fi
9359
6e198e97
VZ
9360 if test x"$enablestring" = xdisable; then
9361 if test $wxUSE_PROTOCOL_FILE = yes; then
9362 result=no
9363 else
9364 result=yes
9365 fi
a848cd7e 9366 else
6e198e97 9367 result=$wxUSE_PROTOCOL_FILE
a848cd7e
SC
9368 fi
9369
47964710
VS
9370 { echo "$as_me:$LINENO: result: $result" >&5
9371echo "${ECHO_T}$result" >&6; }
a848cd7e
SC
9372
9373
9374
077c7880 9375 enablestring=
6e198e97 9376 defaultval=$wxUSE_ALL_FEATURES
238663c1 9377 if test -z "$defaultval"; then
6e198e97
VZ
9378 if test x"$enablestring" = xdisable; then
9379 defaultval=yes
9380 else
9381 defaultval=no
9382 fi
9383 fi
9384
47964710
VS
9385 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
9386echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
9387 # Check whether --enable-threads was given.
a848cd7e 9388if test "${enable_threads+set}" = set; then
47964710 9389 enableval=$enable_threads;
a848cd7e 9390 if test "$enableval" = yes; then
d970f7d5 9391 wx_cv_use_threads='wxUSE_THREADS=yes'
a848cd7e 9392 else
d970f7d5 9393 wx_cv_use_threads='wxUSE_THREADS=no'
a848cd7e 9394 fi
8743ec79 9395 cache=yes
a848cd7e
SC
9396
9397else
9398
b46b1d59 9399 LINE=`grep "^wxUSE_THREADS=" ${wx_arg_cache_file}`
a848cd7e 9400 if test "x$LINE" != x ; then
8630a814
VZ
9401 eval "DEFAULT_$LINE"
9402 cache=yes
9403 else
9404 cache=no
a848cd7e
SC
9405 fi
9406
d970f7d5 9407 wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
a848cd7e 9408
47964710
VS
9409fi
9410
a848cd7e 9411
d970f7d5 9412 eval "$wx_cv_use_threads"
8743ec79
VZ
9413 if test "x$cache" = xyes; then
9414 echo "wxUSE_THREADS=$wxUSE_THREADS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
9415 fi
9416
6e198e97
VZ
9417 if test x"$enablestring" = xdisable; then
9418 if test $wxUSE_THREADS = yes; then
9419 result=no
9420 else
9421 result=yes
9422 fi
a848cd7e 9423 else
6e198e97 9424 result=$wxUSE_THREADS
a848cd7e
SC
9425 fi
9426
47964710
VS
9427 { echo "$as_me:$LINENO: result: $result" >&5
9428echo "${ECHO_T}$result" >&6; }
6e198e97 9429
a848cd7e 9430
91a5e00c
VS
9431
9432 enablestring=
9433 defaultval=
9434 if test -z "$defaultval"; then
9435 if test x"$enablestring" = xdisable; then
9436 defaultval=yes
9437 else
9438 defaultval=no
9439 fi
9440 fi
9441
47964710
VS
9442 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
9443echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
9444 # Check whether --enable-iniconf was given.
91a5e00c 9445if test "${enable_iniconf+set}" = set; then
47964710 9446 enableval=$enable_iniconf;
91a5e00c
VS
9447 if test "$enableval" = yes; then
9448 wx_cv_use_iniconf='wxUSE_INICONF=yes'
9449 else
9450 wx_cv_use_iniconf='wxUSE_INICONF=no'
9451 fi
9452 cache=yes
9453
9454else
9455
9456 LINE=`grep "^wxUSE_INICONF=" ${wx_arg_cache_file}`
9457 if test "x$LINE" != x ; then
9458 eval "DEFAULT_$LINE"
9459 cache=yes
9460 else
9461 cache=no
9462 fi
9463
9464 wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
9465
47964710
VS
9466fi
9467
91a5e00c
VS
9468
9469 eval "$wx_cv_use_iniconf"
9470 if test "x$cache" = xyes; then
9471 echo "wxUSE_INICONF=$wxUSE_INICONF" >> ${wx_arg_cache_file}.tmp
9472 fi
9473
9474 if test x"$enablestring" = xdisable; then
9475 if test $wxUSE_INICONF = yes; then
9476 result=no
9477 else
9478 result=yes
9479 fi
9480 else
9481 result=$wxUSE_INICONF
9482 fi
9483
47964710
VS
9484 { echo "$as_me:$LINENO: result: $result" >&5
9485echo "${ECHO_T}$result" >&6; }
91a5e00c
VS
9486
9487
9488 enablestring=
9489 defaultval=$wxUSE_ALL_FEATURES
9490 if test -z "$defaultval"; then
9491 if test x"$enablestring" = xdisable; then
9492 defaultval=yes
9493 else
9494 defaultval=no
9495 fi
9496 fi
9497
47964710
VS
9498 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
9499echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
9500 # Check whether --enable-regkey was given.
91a5e00c 9501if test "${enable_regkey+set}" = set; then
47964710 9502 enableval=$enable_regkey;
91a5e00c
VS
9503 if test "$enableval" = yes; then
9504 wx_cv_use_regkey='wxUSE_REGKEY=yes'
9505 else
9506 wx_cv_use_regkey='wxUSE_REGKEY=no'
9507 fi
9508 cache=yes
9509
9510else
9511
9512 LINE=`grep "^wxUSE_REGKEY=" ${wx_arg_cache_file}`
9513 if test "x$LINE" != x ; then
9514 eval "DEFAULT_$LINE"
9515 cache=yes
9516 else
9517 cache=no
9518 fi
9519
9520 wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
9521
47964710
VS
9522fi
9523
91a5e00c
VS
9524
9525 eval "$wx_cv_use_regkey"
9526 if test "x$cache" = xyes; then
9527 echo "wxUSE_REGKEY=$wxUSE_REGKEY" >> ${wx_arg_cache_file}.tmp
9528 fi
9529
9530 if test x"$enablestring" = xdisable; then
9531 if test $wxUSE_REGKEY = yes; then
9532 result=no
9533 else
9534 result=yes
9535 fi
9536 else
9537 result=$wxUSE_REGKEY
9538 fi
9539
47964710
VS
9540 { echo "$as_me:$LINENO: result: $result" >&5
9541echo "${ECHO_T}$result" >&6; }
91a5e00c
VS
9542
9543
a848cd7e
SC
9544if test "$wxUSE_GUI" = "yes"; then
9545
9546
9547
077c7880 9548 enablestring=
6e198e97 9549 defaultval=$wxUSE_ALL_FEATURES
238663c1 9550 if test -z "$defaultval"; then
6e198e97
VZ
9551 if test x"$enablestring" = xdisable; then
9552 defaultval=yes
9553 else
9554 defaultval=no
9555 fi
9556 fi
9557
47964710
VS
9558 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
9559echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
9560 # Check whether --enable-docview was given.
a848cd7e 9561if test "${enable_docview+set}" = set; then
47964710 9562 enableval=$enable_docview;
a848cd7e 9563 if test "$enableval" = yes; then
d970f7d5 9564 wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
a848cd7e 9565 else
d970f7d5 9566 wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
a848cd7e 9567 fi
8743ec79 9568 cache=yes
a848cd7e
SC
9569
9570else
9571
b46b1d59 9572 LINE=`grep "^wxUSE_DOC_VIEW_ARCHITECTURE=" ${wx_arg_cache_file}`
a848cd7e 9573 if test "x$LINE" != x ; then
8630a814
VZ
9574 eval "DEFAULT_$LINE"
9575 cache=yes
9576 else
9577 cache=no
a848cd7e
SC
9578 fi
9579
d970f7d5 9580 wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
a848cd7e 9581
47964710
VS
9582fi
9583
a848cd7e 9584
d970f7d5 9585 eval "$wx_cv_use_docview"
8743ec79
VZ
9586 if test "x$cache" = xyes; then
9587 echo "wxUSE_DOC_VIEW_ARCHITECTURE=$wxUSE_DOC_VIEW_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
9588 fi
9589
6e198e97
VZ
9590 if test x"$enablestring" = xdisable; then
9591 if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
9592 result=no
9593 else
9594 result=yes
9595 fi
a848cd7e 9596 else
6e198e97 9597 result=$wxUSE_DOC_VIEW_ARCHITECTURE
a848cd7e
SC
9598 fi
9599
47964710
VS
9600 { echo "$as_me:$LINENO: result: $result" >&5
9601echo "${ECHO_T}$result" >&6; }
6e198e97 9602
a848cd7e 9603
077c7880 9604 enablestring=
6e198e97 9605 defaultval=$wxUSE_ALL_FEATURES
238663c1 9606 if test -z "$defaultval"; then
6e198e97
VZ
9607 if test x"$enablestring" = xdisable; then
9608 defaultval=yes
9609 else
9610 defaultval=no
9611 fi
9612 fi
9613
47964710
VS
9614 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
9615echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
9616 # Check whether --enable-help was given.
a848cd7e 9617if test "${enable_help+set}" = set; then
47964710 9618 enableval=$enable_help;
a848cd7e 9619 if test "$enableval" = yes; then
d970f7d5 9620 wx_cv_use_help='wxUSE_HELP=yes'
a848cd7e 9621 else
d970f7d5 9622 wx_cv_use_help='wxUSE_HELP=no'
a848cd7e 9623 fi
8743ec79 9624 cache=yes
a848cd7e
SC
9625
9626else
9627
b46b1d59 9628 LINE=`grep "^wxUSE_HELP=" ${wx_arg_cache_file}`
a848cd7e 9629 if test "x$LINE" != x ; then
8630a814
VZ
9630 eval "DEFAULT_$LINE"
9631 cache=yes
9632 else
9633 cache=no
a848cd7e
SC
9634 fi
9635
d970f7d5 9636 wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
a848cd7e 9637
47964710
VS
9638fi
9639
a848cd7e 9640
d970f7d5 9641 eval "$wx_cv_use_help"
8743ec79
VZ
9642 if test "x$cache" = xyes; then
9643 echo "wxUSE_HELP=$wxUSE_HELP" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
9644 fi
9645
6e198e97
VZ
9646 if test x"$enablestring" = xdisable; then
9647 if test $wxUSE_HELP = yes; then
9648 result=no
9649 else
9650 result=yes
9651 fi
a848cd7e 9652 else
6e198e97 9653 result=$wxUSE_HELP
a848cd7e
SC
9654 fi
9655
47964710
VS
9656 { echo "$as_me:$LINENO: result: $result" >&5
9657echo "${ECHO_T}$result" >&6; }
6e198e97 9658
a848cd7e 9659
077c7880 9660 enablestring=
6e198e97 9661 defaultval=$wxUSE_ALL_FEATURES
238663c1 9662 if test -z "$defaultval"; then
6e198e97
VZ
9663 if test x"$enablestring" = xdisable; then
9664 defaultval=yes
9665 else
9666 defaultval=no
9667 fi
9668 fi
9669
47964710
VS
9670 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
9671echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
9672 # Check whether --enable-mshtmlhelp was given.
a848cd7e 9673if test "${enable_mshtmlhelp+set}" = set; then
47964710 9674 enableval=$enable_mshtmlhelp;
a848cd7e 9675 if test "$enableval" = yes; then
d970f7d5 9676 wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
a848cd7e 9677 else
d970f7d5 9678 wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
a848cd7e 9679 fi
8743ec79 9680 cache=yes
a848cd7e
SC
9681
9682else
9683
b46b1d59 9684 LINE=`grep "^wxUSE_MS_HTML_HELP=" ${wx_arg_cache_file}`
a848cd7e 9685 if test "x$LINE" != x ; then
8630a814
VZ
9686 eval "DEFAULT_$LINE"
9687 cache=yes
9688 else
9689 cache=no
a848cd7e
SC
9690 fi
9691
d970f7d5 9692 wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
a848cd7e 9693
47964710
VS
9694fi
9695
a848cd7e 9696
d970f7d5 9697 eval "$wx_cv_use_mshtmlhelp"
8743ec79
VZ
9698 if test "x$cache" = xyes; then
9699 echo "wxUSE_MS_HTML_HELP=$wxUSE_MS_HTML_HELP" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
9700 fi
9701
6e198e97
VZ
9702 if test x"$enablestring" = xdisable; then
9703 if test $wxUSE_MS_HTML_HELP = yes; then
9704 result=no
9705 else
9706 result=yes
9707 fi
a848cd7e 9708 else
6e198e97 9709 result=$wxUSE_MS_HTML_HELP
a848cd7e
SC
9710 fi
9711
47964710
VS
9712 { echo "$as_me:$LINENO: result: $result" >&5
9713echo "${ECHO_T}$result" >&6; }
6e198e97 9714
a848cd7e 9715
077c7880 9716 enablestring=
6e198e97 9717 defaultval=$wxUSE_ALL_FEATURES
238663c1 9718 if test -z "$defaultval"; then
6e198e97
VZ
9719 if test x"$enablestring" = xdisable; then
9720 defaultval=yes
9721 else
9722 defaultval=no
9723 fi
9724 fi
9725
47964710
VS
9726 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
9727echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
9728 # Check whether --enable-html was given.
a848cd7e 9729if test "${enable_html+set}" = set; then
47964710 9730 enableval=$enable_html;
a848cd7e 9731 if test "$enableval" = yes; then
d970f7d5 9732 wx_cv_use_html='wxUSE_HTML=yes'
a848cd7e 9733 else
d970f7d5 9734 wx_cv_use_html='wxUSE_HTML=no'
a848cd7e 9735 fi
8743ec79 9736 cache=yes
a848cd7e
SC
9737
9738else
9739
b46b1d59 9740 LINE=`grep "^wxUSE_HTML=" ${wx_arg_cache_file}`
a848cd7e 9741 if test "x$LINE" != x ; then
8630a814
VZ
9742 eval "DEFAULT_$LINE"
9743 cache=yes
9744 else
9745 cache=no
a848cd7e
SC
9746 fi
9747
d970f7d5 9748 wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
a848cd7e 9749
47964710
VS
9750fi
9751
a848cd7e 9752
d970f7d5 9753 eval "$wx_cv_use_html"
8743ec79
VZ
9754 if test "x$cache" = xyes; then
9755 echo "wxUSE_HTML=$wxUSE_HTML" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
9756 fi
9757
6e198e97
VZ
9758 if test x"$enablestring" = xdisable; then
9759 if test $wxUSE_HTML = yes; then
9760 result=no
9761 else
9762 result=yes
9763 fi
a848cd7e 9764 else
6e198e97 9765 result=$wxUSE_HTML
a848cd7e
SC
9766 fi
9767
47964710
VS
9768 { echo "$as_me:$LINENO: result: $result" >&5
9769echo "${ECHO_T}$result" >&6; }
6e198e97 9770
a848cd7e 9771
077c7880 9772 enablestring=
6e198e97 9773 defaultval=$wxUSE_ALL_FEATURES
238663c1 9774 if test -z "$defaultval"; then
6e198e97
VZ
9775 if test x"$enablestring" = xdisable; then
9776 defaultval=yes
9777 else
9778 defaultval=no
9779 fi
9780 fi
9781
47964710
VS
9782 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
9783echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
9784 # Check whether --enable-htmlhelp was given.
a848cd7e 9785if test "${enable_htmlhelp+set}" = set; then
47964710 9786 enableval=$enable_htmlhelp;
a848cd7e 9787 if test "$enableval" = yes; then
d970f7d5 9788 wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
a848cd7e 9789 else
d970f7d5 9790 wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
a848cd7e 9791 fi
8743ec79 9792 cache=yes
a848cd7e
SC
9793
9794else
9795
b46b1d59 9796 LINE=`grep "^wxUSE_WXHTML_HELP=" ${wx_arg_cache_file}`
a848cd7e 9797 if test "x$LINE" != x ; then
8630a814
VZ
9798 eval "DEFAULT_$LINE"
9799 cache=yes
9800 else
9801 cache=no
a848cd7e
SC
9802 fi
9803
d970f7d5 9804 wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
a848cd7e 9805
47964710
VS
9806fi
9807
a848cd7e 9808
d970f7d5 9809 eval "$wx_cv_use_htmlhelp"
8743ec79
VZ
9810 if test "x$cache" = xyes; then
9811 echo "wxUSE_WXHTML_HELP=$wxUSE_WXHTML_HELP" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
9812 fi
9813
6e198e97
VZ
9814 if test x"$enablestring" = xdisable; then
9815 if test $wxUSE_WXHTML_HELP = yes; then
9816 result=no
9817 else
9818 result=yes
9819 fi
a848cd7e 9820 else
6e198e97 9821 result=$wxUSE_WXHTML_HELP
a848cd7e
SC
9822 fi
9823
47964710
VS
9824 { echo "$as_me:$LINENO: result: $result" >&5
9825echo "${ECHO_T}$result" >&6; }
6e198e97 9826
a848cd7e 9827
077c7880 9828 enablestring=
6e198e97 9829 defaultval=$wxUSE_ALL_FEATURES
238663c1 9830 if test -z "$defaultval"; then
6e198e97
VZ
9831 if test x"$enablestring" = xdisable; then
9832 defaultval=yes
9833 else
9834 defaultval=no
9835 fi
9836 fi
9837
47964710
VS
9838 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
9839echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
9840 # Check whether --enable-xrc was given.
9a8f0513 9841if test "${enable_xrc+set}" = set; then
47964710 9842 enableval=$enable_xrc;
9a8f0513 9843 if test "$enableval" = yes; then
d970f7d5 9844 wx_cv_use_xrc='wxUSE_XRC=yes'
9a8f0513 9845 else
d970f7d5 9846 wx_cv_use_xrc='wxUSE_XRC=no'
9a8f0513 9847 fi
8743ec79 9848 cache=yes
9a8f0513
VS
9849
9850else
9851
b46b1d59 9852 LINE=`grep "^wxUSE_XRC=" ${wx_arg_cache_file}`
9a8f0513 9853 if test "x$LINE" != x ; then
8630a814
VZ
9854 eval "DEFAULT_$LINE"
9855 cache=yes
9856 else
9857 cache=no
9a8f0513
VS
9858 fi
9859
d970f7d5 9860 wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
9a8f0513 9861
47964710
VS
9862fi
9863
9a8f0513 9864
d970f7d5 9865 eval "$wx_cv_use_xrc"
8743ec79
VZ
9866 if test "x$cache" = xyes; then
9867 echo "wxUSE_XRC=$wxUSE_XRC" >> ${wx_arg_cache_file}.tmp
9a8f0513
VS
9868 fi
9869
6e198e97
VZ
9870 if test x"$enablestring" = xdisable; then
9871 if test $wxUSE_XRC = yes; then
9872 result=no
9873 else
9874 result=yes
9875 fi
9a8f0513 9876 else
6e198e97 9877 result=$wxUSE_XRC
9a8f0513
VS
9878 fi
9879
47964710
VS
9880 { echo "$as_me:$LINENO: result: $result" >&5
9881echo "${ECHO_T}$result" >&6; }
6e198e97 9882
9a8f0513 9883
077c7880 9884 enablestring=
6e198e97 9885 defaultval=$wxUSE_ALL_FEATURES
238663c1 9886 if test -z "$defaultval"; then
6e198e97
VZ
9887 if test x"$enablestring" = xdisable; then
9888 defaultval=yes
9889 else
9890 defaultval=no
9891 fi
9892 fi
9893
47964710
VS
9894 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
9895echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
9896 # Check whether --enable-aui was given.
3f60522a 9897if test "${enable_aui+set}" = set; then
47964710 9898 enableval=$enable_aui;
3f60522a 9899 if test "$enableval" = yes; then
d970f7d5 9900 wx_cv_use_aui='wxUSE_AUI=yes'
3f60522a 9901 else
d970f7d5 9902 wx_cv_use_aui='wxUSE_AUI=no'
3f60522a 9903 fi
8743ec79 9904 cache=yes
3f60522a
JS
9905
9906else
9907
b46b1d59 9908 LINE=`grep "^wxUSE_AUI=" ${wx_arg_cache_file}`
3f60522a 9909 if test "x$LINE" != x ; then
8630a814
VZ
9910 eval "DEFAULT_$LINE"
9911 cache=yes
9912 else
9913 cache=no
3f60522a
JS
9914 fi
9915
d970f7d5 9916 wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
3f60522a 9917
47964710
VS
9918fi
9919
3f60522a 9920
d970f7d5 9921 eval "$wx_cv_use_aui"
8743ec79
VZ
9922 if test "x$cache" = xyes; then
9923 echo "wxUSE_AUI=$wxUSE_AUI" >> ${wx_arg_cache_file}.tmp
3f60522a
JS
9924 fi
9925
6e198e97
VZ
9926 if test x"$enablestring" = xdisable; then
9927 if test $wxUSE_AUI = yes; then
9928 result=no
9929 else
9930 result=yes
9931 fi
3f60522a 9932 else
6e198e97 9933 result=$wxUSE_AUI
3f60522a
JS
9934 fi
9935
47964710
VS
9936 { echo "$as_me:$LINENO: result: $result" >&5
9937echo "${ECHO_T}$result" >&6; }
6e198e97 9938
3f60522a 9939
54429bb3 9940 enablestring=
6e198e97 9941 defaultval=$wxUSE_ALL_FEATURES
238663c1 9942 if test -z "$defaultval"; then
6e198e97
VZ
9943 if test x"$enablestring" = xdisable; then
9944 defaultval=yes
9945 else
9946 defaultval=no
9947 fi
9948 fi
9949
47964710
VS
9950 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9951echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9952 # Check whether --enable-stc was given.
54429bb3 9953if test "${enable_stc+set}" = set; then
47964710 9954 enableval=$enable_stc;
54429bb3 9955 if test "$enableval" = yes; then
d970f7d5 9956 wx_cv_use_stc='wxUSE_STC=yes'
54429bb3 9957 else
d970f7d5 9958 wx_cv_use_stc='wxUSE_STC=no'
54429bb3 9959 fi
8743ec79 9960 cache=yes
54429bb3
RD
9961
9962else
9963
b46b1d59 9964 LINE=`grep "^wxUSE_STC=" ${wx_arg_cache_file}`
54429bb3 9965 if test "x$LINE" != x ; then
8630a814
VZ
9966 eval "DEFAULT_$LINE"
9967 cache=yes
9968 else
9969 cache=no
54429bb3
RD
9970 fi
9971
d970f7d5 9972 wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
54429bb3 9973
47964710
VS
9974fi
9975
54429bb3 9976
d970f7d5 9977 eval "$wx_cv_use_stc"
8743ec79
VZ
9978 if test "x$cache" = xyes; then
9979 echo "wxUSE_STC=$wxUSE_STC" >> ${wx_arg_cache_file}.tmp
54429bb3
RD
9980 fi
9981
6e198e97
VZ
9982 if test x"$enablestring" = xdisable; then
9983 if test $wxUSE_STC = yes; then
9984 result=no
9985 else
9986 result=yes
9987 fi
54429bb3 9988 else
6e198e97 9989 result=$wxUSE_STC
54429bb3
RD
9990 fi
9991
47964710
VS
9992 { echo "$as_me:$LINENO: result: $result" >&5
9993echo "${ECHO_T}$result" >&6; }
6e198e97 9994
54429bb3 9995
077c7880 9996 enablestring=
6e198e97 9997 defaultval=$wxUSE_ALL_FEATURES
238663c1 9998 if test -z "$defaultval"; then
6e198e97
VZ
9999 if test x"$enablestring" = xdisable; then
10000 defaultval=yes
10001 else
10002 defaultval=no
10003 fi
10004 fi
10005
47964710
VS
10006 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
10007echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
10008 # Check whether --enable-constraints was given.
a848cd7e 10009if test "${enable_constraints+set}" = set; then
47964710 10010 enableval=$enable_constraints;
a848cd7e 10011 if test "$enableval" = yes; then
d970f7d5 10012 wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
a848cd7e 10013 else
d970f7d5 10014 wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
a848cd7e 10015 fi
8743ec79 10016 cache=yes
a848cd7e
SC
10017
10018else
10019
b46b1d59 10020 LINE=`grep "^wxUSE_CONSTRAINTS=" ${wx_arg_cache_file}`
a848cd7e 10021 if test "x$LINE" != x ; then
8630a814
VZ
10022 eval "DEFAULT_$LINE"
10023 cache=yes
10024 else
10025 cache=no
a848cd7e
SC
10026 fi
10027
d970f7d5 10028 wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
a848cd7e 10029
47964710
VS
10030fi
10031
a848cd7e 10032
d970f7d5 10033 eval "$wx_cv_use_constraints"
8743ec79
VZ
10034 if test "x$cache" = xyes; then
10035 echo "wxUSE_CONSTRAINTS=$wxUSE_CONSTRAINTS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
10036 fi
10037
6e198e97
VZ
10038 if test x"$enablestring" = xdisable; then
10039 if test $wxUSE_CONSTRAINTS = yes; then
10040 result=no
10041 else
10042 result=yes
10043 fi
a848cd7e 10044 else
6e198e97 10045 result=$wxUSE_CONSTRAINTS
a848cd7e
SC
10046 fi
10047
47964710
VS
10048 { echo "$as_me:$LINENO: result: $result" >&5
10049echo "${ECHO_T}$result" >&6; }
6e198e97 10050
a848cd7e 10051
077c7880 10052 enablestring=
6e198e97 10053 defaultval=$wxUSE_ALL_FEATURES
238663c1 10054 if test -z "$defaultval"; then
6e198e97
VZ
10055 if test x"$enablestring" = xdisable; then
10056 defaultval=yes
10057 else
10058 defaultval=no
10059 fi
10060 fi
10061
47964710
VS
10062 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
10063echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
10064 # Check whether --enable-printarch was given.
a848cd7e 10065if test "${enable_printarch+set}" = set; then
47964710 10066 enableval=$enable_printarch;
a848cd7e 10067 if test "$enableval" = yes; then
d970f7d5 10068 wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
a848cd7e 10069 else
d970f7d5 10070 wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
a848cd7e 10071 fi
8743ec79 10072 cache=yes
a848cd7e
SC
10073
10074else
10075
b46b1d59 10076 LINE=`grep "^wxUSE_PRINTING_ARCHITECTURE=" ${wx_arg_cache_file}`
a848cd7e 10077 if test "x$LINE" != x ; then
8630a814
VZ
10078 eval "DEFAULT_$LINE"
10079 cache=yes
10080 else
10081 cache=no
a848cd7e
SC
10082 fi
10083
d970f7d5 10084 wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
a848cd7e 10085
47964710
VS
10086fi
10087
a848cd7e 10088
d970f7d5 10089 eval "$wx_cv_use_printarch"
8743ec79
VZ
10090 if test "x$cache" = xyes; then
10091 echo "wxUSE_PRINTING_ARCHITECTURE=$wxUSE_PRINTING_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
10092 fi
10093
6e198e97
VZ
10094 if test x"$enablestring" = xdisable; then
10095 if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
10096 result=no
10097 else
10098 result=yes
10099 fi
a848cd7e 10100 else
6e198e97 10101 result=$wxUSE_PRINTING_ARCHITECTURE
a848cd7e
SC
10102 fi
10103
47964710
VS
10104 { echo "$as_me:$LINENO: result: $result" >&5
10105echo "${ECHO_T}$result" >&6; }
6e198e97 10106
a848cd7e 10107
077c7880 10108 enablestring=
6e198e97 10109 defaultval=$wxUSE_ALL_FEATURES
238663c1 10110 if test -z "$defaultval"; then
6e198e97
VZ
10111 if test x"$enablestring" = xdisable; then
10112 defaultval=yes
10113 else
10114 defaultval=no
10115 fi
10116 fi
10117
47964710
VS
10118 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
10119echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
10120 # Check whether --enable-mdi was given.
a848cd7e 10121if test "${enable_mdi+set}" = set; then
47964710 10122 enableval=$enable_mdi;
a848cd7e 10123 if test "$enableval" = yes; then
d970f7d5 10124 wx_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 10125 else
d970f7d5 10126 wx_cv_use_mdi='wxUSE_MDI=no'
a848cd7e 10127 fi
8743ec79 10128 cache=yes
a848cd7e
SC
10129
10130else
10131
b46b1d59 10132 LINE=`grep "^wxUSE_MDI=" ${wx_arg_cache_file}`
a848cd7e 10133 if test "x$LINE" != x ; then
8630a814
VZ
10134 eval "DEFAULT_$LINE"
10135 cache=yes
10136 else
10137 cache=no
a848cd7e
SC
10138 fi
10139
d970f7d5 10140 wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
a848cd7e 10141
47964710
VS
10142fi
10143
a848cd7e 10144
d970f7d5 10145 eval "$wx_cv_use_mdi"
8743ec79
VZ
10146 if test "x$cache" = xyes; then
10147 echo "wxUSE_MDI=$wxUSE_MDI" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
10148 fi
10149
6e198e97
VZ
10150 if test x"$enablestring" = xdisable; then
10151 if test $wxUSE_MDI = yes; then
10152 result=no
10153 else
10154 result=yes
10155 fi
8a7b1113 10156 else
6e198e97 10157 result=$wxUSE_MDI
8a7b1113
VZ
10158 fi
10159
47964710
VS
10160 { echo "$as_me:$LINENO: result: $result" >&5
10161echo "${ECHO_T}$result" >&6; }
6e198e97 10162
8a7b1113 10163
077c7880 10164 enablestring=
6e198e97 10165 defaultval=$wxUSE_ALL_FEATURES
238663c1 10166 if test -z "$defaultval"; then
6e198e97
VZ
10167 if test x"$enablestring" = xdisable; then
10168 defaultval=yes
10169 else
10170 defaultval=no
10171 fi
10172 fi
10173
47964710
VS
10174 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
10175echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
10176 # Check whether --enable-mdidoc was given.
8a7b1113 10177if test "${enable_mdidoc+set}" = set; then
47964710 10178 enableval=$enable_mdidoc;
8a7b1113 10179 if test "$enableval" = yes; then
d970f7d5 10180 wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8a7b1113 10181 else
d970f7d5 10182 wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8a7b1113 10183 fi
8743ec79 10184 cache=yes
8a7b1113
VZ
10185
10186else
10187
b46b1d59 10188 LINE=`grep "^wxUSE_MDI_ARCHITECTURE=" ${wx_arg_cache_file}`
8a7b1113 10189 if test "x$LINE" != x ; then
8630a814
VZ
10190 eval "DEFAULT_$LINE"
10191 cache=yes
10192 else
10193 cache=no
8a7b1113
VZ
10194 fi
10195
d970f7d5 10196 wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8a7b1113 10197
47964710
VS
10198fi
10199
8a7b1113 10200
d970f7d5 10201 eval "$wx_cv_use_mdidoc"
8743ec79
VZ
10202 if test "x$cache" = xyes; then
10203 echo "wxUSE_MDI_ARCHITECTURE=$wxUSE_MDI_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
8a7b1113
VZ
10204 fi
10205
6e198e97
VZ
10206 if test x"$enablestring" = xdisable; then
10207 if test $wxUSE_MDI_ARCHITECTURE = yes; then
10208 result=no
10209 else
10210 result=yes
10211 fi
a848cd7e 10212 else
6e198e97 10213 result=$wxUSE_MDI_ARCHITECTURE
a848cd7e
SC
10214 fi
10215
47964710
VS
10216 { echo "$as_me:$LINENO: result: $result" >&5
10217echo "${ECHO_T}$result" >&6; }
6e198e97 10218
a848cd7e 10219
077c7880 10220 enablestring=
6e198e97 10221 defaultval=$wxUSE_ALL_FEATURES
238663c1 10222 if test -z "$defaultval"; then
6e198e97
VZ
10223 if test x"$enablestring" = xdisable; then
10224 defaultval=yes
10225 else
10226 defaultval=no
10227 fi
10228 fi
10229
47964710
VS
10230 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
10231echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
10232 # Check whether --enable-loggui was given.
a848cd7e 10233if test "${enable_loggui+set}" = set; then
47964710 10234 enableval=$enable_loggui;
a848cd7e 10235 if test "$enableval" = yes; then
d970f7d5 10236 wx_cv_use_loggui='wxUSE_LOGGUI=yes'
a848cd7e 10237 else
d970f7d5 10238 wx_cv_use_loggui='wxUSE_LOGGUI=no'
a848cd7e 10239 fi
8743ec79 10240 cache=yes
a848cd7e
SC
10241
10242else
10243
b46b1d59 10244 LINE=`grep "^wxUSE_LOGGUI=" ${wx_arg_cache_file}`
a848cd7e 10245 if test "x$LINE" != x ; then
8630a814
VZ
10246 eval "DEFAULT_$LINE"
10247 cache=yes
10248 else
10249 cache=no
a848cd7e
SC
10250 fi
10251
d970f7d5 10252 wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
a848cd7e 10253
47964710
VS
10254fi
10255
a848cd7e 10256
d970f7d5 10257 eval "$wx_cv_use_loggui"
8743ec79
VZ
10258 if test "x$cache" = xyes; then
10259 echo "wxUSE_LOGGUI=$wxUSE_LOGGUI" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
10260 fi
10261
6e198e97
VZ
10262 if test x"$enablestring" = xdisable; then
10263 if test $wxUSE_LOGGUI = yes; then
10264 result=no
10265 else
10266 result=yes
10267 fi
a848cd7e 10268 else
6e198e97 10269 result=$wxUSE_LOGGUI
a848cd7e
SC
10270 fi
10271
47964710
VS
10272 { echo "$as_me:$LINENO: result: $result" >&5
10273echo "${ECHO_T}$result" >&6; }
6e198e97 10274
a848cd7e 10275
077c7880 10276 enablestring=
6e198e97 10277 defaultval=$wxUSE_ALL_FEATURES
238663c1 10278 if test -z "$defaultval"; then
6e198e97
VZ
10279 if test x"$enablestring" = xdisable; then
10280 defaultval=yes
10281 else
10282 defaultval=no
10283 fi
10284 fi
10285
47964710
VS
10286 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
10287echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
10288 # Check whether --enable-logwin was given.
a848cd7e 10289if test "${enable_logwin+set}" = set; then
47964710 10290 enableval=$enable_logwin;
a848cd7e 10291 if test "$enableval" = yes; then
d970f7d5 10292 wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
a848cd7e 10293 else
d970f7d5 10294 wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
a848cd7e 10295 fi
8743ec79 10296 cache=yes
a848cd7e
SC
10297
10298else
10299
b46b1d59 10300 LINE=`grep "^wxUSE_LOGWINDOW=" ${wx_arg_cache_file}`
a848cd7e 10301 if test "x$LINE" != x ; then
8630a814
VZ
10302 eval "DEFAULT_$LINE"
10303 cache=yes
10304 else
10305 cache=no
a848cd7e
SC
10306 fi
10307
d970f7d5 10308 wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
a848cd7e 10309
47964710
VS
10310fi
10311
a848cd7e 10312
d970f7d5 10313 eval "$wx_cv_use_logwin"
8743ec79
VZ
10314 if test "x$cache" = xyes; then
10315 echo "wxUSE_LOGWINDOW=$wxUSE_LOGWINDOW" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
10316 fi
10317
6e198e97
VZ
10318 if test x"$enablestring" = xdisable; then
10319 if test $wxUSE_LOGWINDOW = yes; then
10320 result=no
10321 else
10322 result=yes
10323 fi
a848cd7e 10324 else
6e198e97 10325 result=$wxUSE_LOGWINDOW
a848cd7e
SC
10326 fi
10327
47964710
VS
10328 { echo "$as_me:$LINENO: result: $result" >&5
10329echo "${ECHO_T}$result" >&6; }
6e198e97 10330
a848cd7e 10331
077c7880 10332 enablestring=
6e198e97 10333 defaultval=$wxUSE_ALL_FEATURES
238663c1 10334 if test -z "$defaultval"; then
6e198e97
VZ
10335 if test x"$enablestring" = xdisable; then
10336 defaultval=yes
10337 else
10338 defaultval=no
10339 fi
10340 fi
10341
47964710
VS
10342 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
10343echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
10344 # Check whether --enable-logdialog was given.
a848cd7e 10345if test "${enable_logdialog+set}" = set; then
47964710 10346 enableval=$enable_logdialog;
a848cd7e 10347 if test "$enableval" = yes; then
d970f7d5 10348 wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
a848cd7e 10349 else
d970f7d5 10350 wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
a848cd7e 10351 fi
8743ec79 10352 cache=yes
a848cd7e
SC
10353
10354else
10355
b46b1d59 10356 LINE=`grep "^wxUSE_LOGDIALOG=" ${wx_arg_cache_file}`
a848cd7e 10357 if test "x$LINE" != x ; then
8630a814
VZ
10358 eval "DEFAULT_$LINE"
10359 cache=yes
10360 else
10361 cache=no
a848cd7e
SC
10362 fi
10363
d970f7d5 10364 wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
a848cd7e 10365
47964710
VS
10366fi
10367
a848cd7e 10368
d970f7d5 10369 eval "$wx_cv_use_logdialog"
8743ec79
VZ
10370 if test "x$cache" = xyes; then
10371 echo "wxUSE_LOGDIALOG=$wxUSE_LOGDIALOG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
10372 fi
10373
6e198e97
VZ
10374 if test x"$enablestring" = xdisable; then
10375 if test $wxUSE_LOGDIALOG = yes; then
10376 result=no
10377 else
10378 result=yes
10379 fi
a848cd7e 10380 else
6e198e97 10381 result=$wxUSE_LOGDIALOG
a848cd7e
SC
10382 fi
10383
47964710
VS
10384 { echo "$as_me:$LINENO: result: $result" >&5
10385echo "${ECHO_T}$result" >&6; }
6e198e97 10386
a848cd7e 10387
077c7880 10388 enablestring=
6e198e97 10389 defaultval=$wxUSE_ALL_FEATURES
238663c1 10390 if test -z "$defaultval"; then
6e198e97
VZ
10391 if test x"$enablestring" = xdisable; then
10392 defaultval=yes
10393 else
10394 defaultval=no
10395 fi
10396 fi
10397
47964710
VS
10398 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
10399echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
10400 # Check whether --enable-webkit was given.
646b6ec1 10401if test "${enable_webkit+set}" = set; then
47964710 10402 enableval=$enable_webkit;
646b6ec1 10403 if test "$enableval" = yes; then
d970f7d5 10404 wx_cv_use_webkit='wxUSE_WEBKIT=yes'
646b6ec1 10405 else
d970f7d5 10406 wx_cv_use_webkit='wxUSE_WEBKIT=no'
646b6ec1 10407 fi
8743ec79 10408 cache=yes
646b6ec1
VS
10409
10410else
10411
b46b1d59 10412 LINE=`grep "^wxUSE_WEBKIT=" ${wx_arg_cache_file}`
646b6ec1 10413 if test "x$LINE" != x ; then
8630a814
VZ
10414 eval "DEFAULT_$LINE"
10415 cache=yes
10416 else
10417 cache=no
646b6ec1
VS
10418 fi
10419
d970f7d5 10420 wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
646b6ec1 10421
47964710
VS
10422fi
10423
646b6ec1 10424
d970f7d5 10425 eval "$wx_cv_use_webkit"
8743ec79
VZ
10426 if test "x$cache" = xyes; then
10427 echo "wxUSE_WEBKIT=$wxUSE_WEBKIT" >> ${wx_arg_cache_file}.tmp
646b6ec1
VS
10428 fi
10429
6e198e97
VZ
10430 if test x"$enablestring" = xdisable; then
10431 if test $wxUSE_WEBKIT = yes; then
10432 result=no
10433 else
10434 result=yes
10435 fi
646b6ec1 10436 else
6e198e97 10437 result=$wxUSE_WEBKIT
646b6ec1
VS
10438 fi
10439
47964710
VS
10440 { echo "$as_me:$LINENO: result: $result" >&5
10441echo "${ECHO_T}$result" >&6; }
6e198e97 10442
646b6ec1 10443
077c7880 10444 enablestring=
6e198e97 10445 defaultval=$wxUSE_ALL_FEATURES
238663c1 10446 if test -z "$defaultval"; then
6e198e97
VZ
10447 if test x"$enablestring" = xdisable; then
10448 defaultval=yes
10449 else
10450 defaultval=no
10451 fi
10452 fi
10453
47964710
VS
10454 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
10455echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
10456 # Check whether --enable-richtext was given.
6da4ac91 10457if test "${enable_richtext+set}" = set; then
47964710 10458 enableval=$enable_richtext;
91dea314 10459 if test "$enableval" = yes; then
d970f7d5 10460 wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
91dea314 10461 else
d970f7d5 10462 wx_cv_use_richtext='wxUSE_RICHTEXT=no'
91dea314 10463 fi
8743ec79 10464 cache=yes
91dea314
MW
10465
10466else
10467
b46b1d59 10468 LINE=`grep "^wxUSE_RICHTEXT=" ${wx_arg_cache_file}`
91dea314 10469 if test "x$LINE" != x ; then
8630a814
VZ
10470 eval "DEFAULT_$LINE"
10471 cache=yes
10472 else
10473 cache=no
91dea314
MW
10474 fi
10475
d970f7d5 10476 wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
91dea314 10477
47964710
VS
10478fi
10479
91dea314 10480
d970f7d5 10481 eval "$wx_cv_use_richtext"
8743ec79
VZ
10482 if test "x$cache" = xyes; then
10483 echo "wxUSE_RICHTEXT=$wxUSE_RICHTEXT" >> ${wx_arg_cache_file}.tmp
91dea314
MW
10484 fi
10485
6e198e97
VZ
10486 if test x"$enablestring" = xdisable; then
10487 if test $wxUSE_RICHTEXT = yes; then
10488 result=no
10489 else
10490 result=yes
10491 fi
91dea314 10492 else
6e198e97 10493 result=$wxUSE_RICHTEXT
91dea314
MW
10494 fi
10495
47964710
VS
10496 { echo "$as_me:$LINENO: result: $result" >&5
10497echo "${ECHO_T}$result" >&6; }
6e198e97 10498
91dea314 10499
077c7880 10500 enablestring=
6e198e97 10501 defaultval=$wxUSE_ALL_FEATURES
238663c1 10502 if test -z "$defaultval"; then
6e198e97
VZ
10503 if test x"$enablestring" = xdisable; then
10504 defaultval=yes
10505 else
10506 defaultval=no
10507 fi
10508 fi
10509
47964710
VS
10510 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
10511echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
10512 # Check whether --enable-graphics_ctx was given.
f43426c1 10513if test "${enable_graphics_ctx+set}" = set; then
47964710 10514 enableval=$enable_graphics_ctx;
f43426c1 10515 if test "$enableval" = yes; then
d970f7d5 10516 wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
f43426c1 10517 else
d970f7d5 10518 wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
f43426c1 10519 fi
8743ec79 10520 cache=yes
f43426c1
RD
10521
10522else
10523
b46b1d59 10524 LINE=`grep "^wxUSE_GRAPHICS_CONTEXT=" ${wx_arg_cache_file}`
f43426c1 10525 if test "x$LINE" != x ; then
8630a814
VZ
10526 eval "DEFAULT_$LINE"
10527 cache=yes
10528 else
10529 cache=no
f43426c1
RD
10530 fi
10531
d970f7d5 10532 wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
f43426c1 10533
47964710
VS
10534fi
10535
f43426c1 10536
d970f7d5 10537 eval "$wx_cv_use_graphics_ctx"
8743ec79
VZ
10538 if test "x$cache" = xyes; then
10539 echo "wxUSE_GRAPHICS_CONTEXT=$wxUSE_GRAPHICS_CONTEXT" >> ${wx_arg_cache_file}.tmp
f43426c1
RD
10540 fi
10541
6e198e97
VZ
10542 if test x"$enablestring" = xdisable; then
10543 if test $wxUSE_GRAPHICS_CONTEXT = yes; then
10544 result=no
10545 else
10546 result=yes
10547 fi
f43426c1 10548 else
6e198e97 10549 result=$wxUSE_GRAPHICS_CONTEXT
f43426c1
RD
10550 fi
10551
47964710
VS
10552 { echo "$as_me:$LINENO: result: $result" >&5
10553echo "${ECHO_T}$result" >&6; }
f43426c1 10554
a848cd7e 10555
077c7880 10556 enablestring=
6e198e97 10557 defaultval=$wxUSE_ALL_FEATURES
238663c1 10558 if test -z "$defaultval"; then
6e198e97
VZ
10559 if test x"$enablestring" = xdisable; then
10560 defaultval=yes
10561 else
10562 defaultval=no
10563 fi
10564 fi
10565
47964710
VS
10566 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
10567echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
10568 # Check whether --enable-postscript was given.
a848cd7e 10569if test "${enable_postscript+set}" = set; then
47964710 10570 enableval=$enable_postscript;
a848cd7e 10571 if test "$enableval" = yes; then
d970f7d5 10572 wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
a848cd7e 10573 else
d970f7d5 10574 wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
a848cd7e 10575 fi
8743ec79 10576 cache=yes
a848cd7e
SC
10577
10578else
10579
b46b1d59 10580 LINE=`grep "^wxUSE_POSTSCRIPT=" ${wx_arg_cache_file}`
a848cd7e 10581 if test "x$LINE" != x ; then
8630a814
VZ
10582 eval "DEFAULT_$LINE"
10583 cache=yes
10584 else
10585 cache=no
a848cd7e
SC
10586 fi
10587
d970f7d5 10588 wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
a848cd7e 10589
47964710
VS
10590fi
10591
a848cd7e 10592
d970f7d5 10593 eval "$wx_cv_use_postscript"
8743ec79
VZ
10594 if test "x$cache" = xyes; then
10595 echo "wxUSE_POSTSCRIPT=$wxUSE_POSTSCRIPT" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
10596 fi
10597
6e198e97
VZ
10598 if test x"$enablestring" = xdisable; then
10599 if test $wxUSE_POSTSCRIPT = yes; then
10600 result=no
10601 else
10602 result=yes
10603 fi
a848cd7e 10604 else
6e198e97 10605 result=$wxUSE_POSTSCRIPT
a848cd7e
SC
10606 fi
10607
47964710
VS
10608 { echo "$as_me:$LINENO: result: $result" >&5
10609echo "${ECHO_T}$result" >&6; }
a848cd7e
SC
10610
10611
b0fc907f
VZ
10612 enablestring=
10613 defaultval=$wxUSE_ALL_FEATURES
238663c1 10614 if test -z "$defaultval"; then
b0fc907f
VZ
10615 if test x"$enablestring" = xdisable; then
10616 defaultval=yes
10617 else
10618 defaultval=no
10619 fi
10620 fi
10621
47964710
VS
10622 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
10623echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
10624 # Check whether --enable-svg was given.
b0fc907f 10625if test "${enable_svg+set}" = set; then
47964710 10626 enableval=$enable_svg;
b0fc907f 10627 if test "$enableval" = yes; then
d970f7d5 10628 wx_cv_use_svg='wxUSE_SVG=yes'
b0fc907f 10629 else
d970f7d5 10630 wx_cv_use_svg='wxUSE_SVG=no'
b0fc907f 10631 fi
8743ec79 10632 cache=yes
b0fc907f
VZ
10633
10634else
10635
10636 LINE=`grep "^wxUSE_SVG=" ${wx_arg_cache_file}`
10637 if test "x$LINE" != x ; then
8630a814
VZ
10638 eval "DEFAULT_$LINE"
10639 cache=yes
10640 else
10641 cache=no
b0fc907f
VZ
10642 fi
10643
d970f7d5 10644 wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
b0fc907f 10645
47964710
VS
10646fi
10647
b0fc907f 10648
d970f7d5 10649 eval "$wx_cv_use_svg"
8743ec79
VZ
10650 if test "x$cache" = xyes; then
10651 echo "wxUSE_SVG=$wxUSE_SVG" >> ${wx_arg_cache_file}.tmp
b0fc907f
VZ
10652 fi
10653
10654 if test x"$enablestring" = xdisable; then
10655 if test $wxUSE_SVG = yes; then
10656 result=no
10657 else
10658 result=yes
10659 fi
10660 else
10661 result=$wxUSE_SVG
10662 fi
10663
47964710
VS
10664 { echo "$as_me:$LINENO: result: $result" >&5
10665echo "${ECHO_T}$result" >&6; }
b0fc907f
VZ
10666
10667
a848cd7e
SC
10668
10669
077c7880 10670 enablestring=
6e198e97 10671 defaultval=$wxUSE_ALL_FEATURES
238663c1 10672 if test -z "$defaultval"; then
6e198e97
VZ
10673 if test x"$enablestring" = xdisable; then
10674 defaultval=yes
10675 else
10676 defaultval=no
10677 fi
10678 fi
10679
47964710
VS
10680 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
10681echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
10682 # Check whether --enable-clipboard was given.
a848cd7e 10683if test "${enable_clipboard+set}" = set; then
47964710 10684 enableval=$enable_clipboard;
a848cd7e 10685 if test "$enableval" = yes; then
d970f7d5 10686 wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
a848cd7e 10687 else
d970f7d5 10688 wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
a848cd7e 10689 fi
8743ec79 10690 cache=yes
a848cd7e
SC
10691
10692else
10693
b46b1d59 10694 LINE=`grep "^wxUSE_CLIPBOARD=" ${wx_arg_cache_file}`
a848cd7e 10695 if test "x$LINE" != x ; then
8630a814
VZ
10696 eval "DEFAULT_$LINE"
10697 cache=yes
10698 else
10699 cache=no
a848cd7e
SC
10700 fi
10701
d970f7d5 10702 wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
a848cd7e 10703
47964710
VS
10704fi
10705
a848cd7e 10706
d970f7d5 10707 eval "$wx_cv_use_clipboard"
8743ec79
VZ
10708 if test "x$cache" = xyes; then
10709 echo "wxUSE_CLIPBOARD=$wxUSE_CLIPBOARD" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
10710 fi
10711
6e198e97
VZ
10712 if test x"$enablestring" = xdisable; then
10713 if test $wxUSE_CLIPBOARD = yes; then
10714 result=no
10715 else
10716 result=yes
10717 fi
a848cd7e 10718 else
6e198e97 10719 result=$wxUSE_CLIPBOARD
a848cd7e
SC
10720 fi
10721
47964710
VS
10722 { echo "$as_me:$LINENO: result: $result" >&5
10723echo "${ECHO_T}$result" >&6; }
6e198e97 10724
a848cd7e 10725
077c7880 10726 enablestring=
6e198e97 10727 defaultval=$wxUSE_ALL_FEATURES
238663c1 10728 if test -z "$defaultval"; then
6e198e97
VZ
10729 if test x"$enablestring" = xdisable; then
10730 defaultval=yes
10731 else
10732 defaultval=no
10733 fi
10734 fi
10735
47964710
VS
10736 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
10737echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
10738 # Check whether --enable-dnd was given.
a848cd7e 10739if test "${enable_dnd+set}" = set; then
47964710 10740 enableval=$enable_dnd;
a848cd7e 10741 if test "$enableval" = yes; then
d970f7d5 10742 wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
a848cd7e 10743 else
d970f7d5 10744 wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
a848cd7e 10745 fi
8743ec79 10746 cache=yes
a848cd7e
SC
10747
10748else
10749
b46b1d59 10750 LINE=`grep "^wxUSE_DRAG_AND_DROP=" ${wx_arg_cache_file}`
a848cd7e 10751 if test "x$LINE" != x ; then
8630a814
VZ
10752 eval "DEFAULT_$LINE"
10753 cache=yes
10754 else
10755 cache=no
a848cd7e
SC
10756 fi
10757
d970f7d5 10758 wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
a848cd7e 10759
47964710
VS
10760fi
10761
a848cd7e 10762
d970f7d5 10763 eval "$wx_cv_use_dnd"
8743ec79
VZ
10764 if test "x$cache" = xyes; then
10765 echo "wxUSE_DRAG_AND_DROP=$wxUSE_DRAG_AND_DROP" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
10766 fi
10767
6e198e97
VZ
10768 if test x"$enablestring" = xdisable; then
10769 if test $wxUSE_DRAG_AND_DROP = yes; then
10770 result=no
10771 else
10772 result=yes
10773 fi
a848cd7e 10774 else
6e198e97 10775 result=$wxUSE_DRAG_AND_DROP
a848cd7e
SC
10776 fi
10777
47964710
VS
10778 { echo "$as_me:$LINENO: result: $result" >&5
10779echo "${ECHO_T}$result" >&6; }
6e198e97 10780
a848cd7e 10781
077c7880 10782 enablestring=
6e198e97 10783 defaultval=$wxUSE_ALL_FEATURES
238663c1 10784 if test -z "$defaultval"; then
6e198e97
VZ
10785 if test x"$enablestring" = xdisable; then
10786 defaultval=yes
10787 else
10788 defaultval=no
10789 fi
10790 fi
10791
47964710
VS
10792 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10793echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
10794 # Check whether --enable-metafile was given.
a848cd7e 10795if test "${enable_metafile+set}" = set; then
47964710 10796 enableval=$enable_metafile;
a848cd7e 10797 if test "$enableval" = yes; then
d970f7d5 10798 wx_cv_use_metafile='wxUSE_METAFILE=yes'
a848cd7e 10799 else
d970f7d5 10800 wx_cv_use_metafile='wxUSE_METAFILE=no'
a848cd7e 10801 fi
8743ec79 10802 cache=yes
a848cd7e
SC
10803
10804else
10805
b46b1d59 10806 LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
a848cd7e 10807 if test "x$LINE" != x ; then
8630a814
VZ
10808 eval "DEFAULT_$LINE"
10809 cache=yes
10810 else
10811 cache=no
a848cd7e
SC
10812 fi
10813
d970f7d5 10814 wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
a848cd7e 10815
47964710
VS
10816fi
10817
a848cd7e 10818
d970f7d5 10819 eval "$wx_cv_use_metafile"
8743ec79
VZ
10820 if test "x$cache" = xyes; then
10821 echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
10822 fi
10823
6e198e97
VZ
10824 if test x"$enablestring" = xdisable; then
10825 if test $wxUSE_METAFILE = yes; then
10826 result=no
10827 else
10828 result=yes
10829 fi
a848cd7e 10830 else
6e198e97 10831 result=$wxUSE_METAFILE
a848cd7e
SC
10832 fi
10833
47964710
VS
10834 { echo "$as_me:$LINENO: result: $result" >&5
10835echo "${ECHO_T}$result" >&6; }
a848cd7e
SC
10836
10837
10838
3c7410a5 10839DEFAULT_wxUSE_CONTROLS=none
a848cd7e 10840
3c7410a5
VZ
10841 enablestring=disable
10842 defaultval=
238663c1 10843 if test -z "$defaultval"; then
6e198e97
VZ
10844 if test x"$enablestring" = xdisable; then
10845 defaultval=yes
10846 else
10847 defaultval=no
10848 fi
10849 fi
10850
47964710
VS
10851 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
10852echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
10853 # Check whether --enable-controls was given.
a848cd7e 10854if test "${enable_controls+set}" = set; then
47964710 10855 enableval=$enable_controls;
a848cd7e 10856 if test "$enableval" = yes; then
d970f7d5 10857 wx_cv_use_controls='wxUSE_CONTROLS=yes'
a848cd7e 10858 else
d970f7d5 10859 wx_cv_use_controls='wxUSE_CONTROLS=no'
a848cd7e 10860 fi
8743ec79 10861 cache=yes
a848cd7e
SC
10862
10863else
10864
b46b1d59 10865 LINE=`grep "^wxUSE_CONTROLS=" ${wx_arg_cache_file}`
a848cd7e 10866 if test "x$LINE" != x ; then
8630a814
VZ
10867 eval "DEFAULT_$LINE"
10868 cache=yes
10869 else
10870 cache=no
a848cd7e
SC
10871 fi
10872
d970f7d5 10873 wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
a848cd7e 10874
47964710
VS
10875fi
10876
a848cd7e 10877
d970f7d5 10878 eval "$wx_cv_use_controls"
8743ec79
VZ
10879 if test "x$cache" = xyes; then
10880 echo "wxUSE_CONTROLS=$wxUSE_CONTROLS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
10881 fi
10882
6e198e97
VZ
10883 if test x"$enablestring" = xdisable; then
10884 if test $wxUSE_CONTROLS = yes; then
10885 result=no
10886 else
10887 result=yes
10888 fi
a848cd7e 10889 else
6e198e97 10890 result=$wxUSE_CONTROLS
a848cd7e
SC
10891 fi
10892
47964710
VS
10893 { echo "$as_me:$LINENO: result: $result" >&5
10894echo "${ECHO_T}$result" >&6; }
6e198e97 10895
a848cd7e
SC
10896
10897if test "$wxUSE_CONTROLS" = "yes"; then
10898 DEFAULT_wxUSE_ACCEL=yes
3ea50042 10899 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
10900 DEFAULT_wxUSE_BMPBUTTON=yes
10901 DEFAULT_wxUSE_BUTTON=yes
da98e9be 10902 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
10903 DEFAULT_wxUSE_CARET=yes
10904 DEFAULT_wxUSE_COMBOBOX=yes
10905 DEFAULT_wxUSE_CHECKBOX=yes
10906 DEFAULT_wxUSE_CHECKLISTBOX=yes
10907 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 10908 DEFAULT_wxUSE_CHOICEBOOK=yes
bd915ace 10909 DEFAULT_wxUSE_COLLPANE=yes
e9263684
VZ
10910 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
10911 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 10912 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684 10913 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 10914 DEFAULT_wxUSE_DETECT_SM=yes
e9263684 10915 DEFAULT_wxUSE_DIRPICKERCTRL=yes
0cf3e587 10916 DEFAULT_wxUSE_FILECTRL=yes
e9263684
VZ
10917 DEFAULT_wxUSE_FILEPICKERCTRL=yes
10918 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
10919 DEFAULT_wxUSE_GAUGE=yes
10920 DEFAULT_wxUSE_GRID=yes
6954625c 10921 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 10922 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
10923 DEFAULT_wxUSE_IMAGLIST=yes
10924 DEFAULT_wxUSE_LISTBOOK=yes
10925 DEFAULT_wxUSE_LISTBOX=yes
10926 DEFAULT_wxUSE_LISTCTRL=yes
10927 DEFAULT_wxUSE_NOTEBOOK=yes
10928 DEFAULT_wxUSE_RADIOBOX=yes
10929 DEFAULT_wxUSE_RADIOBTN=yes
10930 DEFAULT_wxUSE_SASH=yes
10931 DEFAULT_wxUSE_SCROLLBAR=yes
3f7f284d 10932 DEFAULT_wxUSE_SEARCHCTRL=yes
a848cd7e
SC
10933 DEFAULT_wxUSE_SLIDER=yes
10934 DEFAULT_wxUSE_SPINBTN=yes
10935 DEFAULT_wxUSE_SPINCTRL=yes
10936 DEFAULT_wxUSE_SPLITTER=yes
10937 DEFAULT_wxUSE_STATBMP=yes
10938 DEFAULT_wxUSE_STATBOX=yes
10939 DEFAULT_wxUSE_STATLINE=yes
10940 DEFAULT_wxUSE_STATUSBAR=yes
10941 DEFAULT_wxUSE_TAB_DIALOG=yes
10942 DEFAULT_wxUSE_TOGGLEBTN=yes
10943 DEFAULT_wxUSE_TOOLBAR=yes
10944 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 10945 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 10946 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 10947 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
10948 DEFAULT_wxUSE_TREECTRL=yes
10949 DEFAULT_wxUSE_POPUPWIN=yes
10950 DEFAULT_wxUSE_TIPWINDOW=yes
10951elif test "$wxUSE_CONTROLS" = "no"; then
10952 DEFAULT_wxUSE_ACCEL=no
3ea50042 10953 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
10954 DEFAULT_wxUSE_BMPBUTTON=no
10955 DEFAULT_wxUSE_BUTTON=no
10956 DEFAULT_wxUSE_CALCTRL=no
10957 DEFAULT_wxUSE_CARET=no
bd915ace 10958 DEFAULT_wxUSE_COLLPANE=no
a848cd7e
SC
10959 DEFAULT_wxUSE_COMBOBOX=no
10960 DEFAULT_wxUSE_CHECKBOX=no
10961 DEFAULT_wxUSE_CHECKLISTBOX=no
10962 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 10963 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
10964 DEFAULT_wxUSE_COLOURPICKERCTRL=no
10965 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 10966 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684 10967 DEFAULT_wxUSE_DISPLAY=no
88bbc332 10968 DEFAULT_wxUSE_DETECT_SM=no
e9263684 10969 DEFAULT_wxUSE_DIRPICKERCTRL=no
0cf3e587 10970 DEFAULT_wxUSE_FILECTRL=no
e9263684
VZ
10971 DEFAULT_wxUSE_FILEPICKERCTRL=no
10972 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
10973 DEFAULT_wxUSE_GAUGE=no
10974 DEFAULT_wxUSE_GRID=no
6954625c 10975 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 10976 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
10977 DEFAULT_wxUSE_IMAGLIST=no
10978 DEFAULT_wxUSE_LISTBOOK=no
10979 DEFAULT_wxUSE_LISTBOX=no
10980 DEFAULT_wxUSE_LISTCTRL=no
10981 DEFAULT_wxUSE_NOTEBOOK=no
10982 DEFAULT_wxUSE_RADIOBOX=no
10983 DEFAULT_wxUSE_RADIOBTN=no
10984 DEFAULT_wxUSE_SASH=no
10985 DEFAULT_wxUSE_SCROLLBAR=no
3f7f284d 10986 DEFAULT_wxUSE_SEARCHCTRL=no
a848cd7e
SC
10987 DEFAULT_wxUSE_SLIDER=no
10988 DEFAULT_wxUSE_SPINBTN=no
10989 DEFAULT_wxUSE_SPINCTRL=no
10990 DEFAULT_wxUSE_SPLITTER=no
10991 DEFAULT_wxUSE_STATBMP=no
10992 DEFAULT_wxUSE_STATBOX=no
10993 DEFAULT_wxUSE_STATLINE=no
10994 DEFAULT_wxUSE_STATUSBAR=no
10995 DEFAULT_wxUSE_TAB_DIALOG=no
10996 DEFAULT_wxUSE_TOGGLEBTN=no
10997 DEFAULT_wxUSE_TOOLBAR=no
10998 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 10999 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 11000 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 11001 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
11002 DEFAULT_wxUSE_TREECTRL=no
11003 DEFAULT_wxUSE_POPUPWIN=no
11004 DEFAULT_wxUSE_TIPWINDOW=no
11005fi
11006
a848cd7e 11007
077c7880 11008 enablestring=
6e198e97 11009 defaultval=$wxUSE_ALL_FEATURES
238663c1 11010 if test -z "$defaultval"; then
6e198e97
VZ
11011 if test x"$enablestring" = xdisable; then
11012 defaultval=yes
11013 else
11014 defaultval=no
11015 fi
11016 fi
11017
47964710
VS
11018 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
11019echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
11020 # Check whether --enable-accel was given.
a848cd7e 11021if test "${enable_accel+set}" = set; then
47964710 11022 enableval=$enable_accel;
a848cd7e 11023 if test "$enableval" = yes; then
d970f7d5 11024 wx_cv_use_accel='wxUSE_ACCEL=yes'
a848cd7e 11025 else
d970f7d5 11026 wx_cv_use_accel='wxUSE_ACCEL=no'
a848cd7e 11027 fi
8743ec79 11028 cache=yes
a848cd7e
SC
11029
11030else
11031
b46b1d59 11032 LINE=`grep "^wxUSE_ACCEL=" ${wx_arg_cache_file}`
a848cd7e 11033 if test "x$LINE" != x ; then
8630a814
VZ
11034 eval "DEFAULT_$LINE"
11035 cache=yes
11036 else
11037 cache=no
a848cd7e
SC
11038 fi
11039
d970f7d5 11040 wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
a848cd7e 11041
47964710
VS
11042fi
11043
a848cd7e 11044
d970f7d5 11045 eval "$wx_cv_use_accel"
8743ec79
VZ
11046 if test "x$cache" = xyes; then
11047 echo "wxUSE_ACCEL=$wxUSE_ACCEL" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
11048 fi
11049
6e198e97
VZ
11050 if test x"$enablestring" = xdisable; then
11051 if test $wxUSE_ACCEL = yes; then
11052 result=no
11053 else
11054 result=yes
11055 fi
a848cd7e 11056 else
6e198e97 11057 result=$wxUSE_ACCEL
a848cd7e
SC
11058 fi
11059
47964710
VS
11060 { echo "$as_me:$LINENO: result: $result" >&5
11061echo "${ECHO_T}$result" >&6; }
6e198e97 11062
a848cd7e 11063
077c7880 11064 enablestring=
6e198e97 11065 defaultval=$wxUSE_ALL_FEATURES
238663c1 11066 if test -z "$defaultval"; then
6e198e97
VZ
11067 if test x"$enablestring" = xdisable; then
11068 defaultval=yes
11069 else
11070 defaultval=no
11071 fi
11072 fi
11073
47964710
VS
11074 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
11075echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
11076 # Check whether --enable-animatectrl was given.
3ea50042 11077if test "${enable_animatectrl+set}" = set; then
47964710 11078 enableval=$enable_animatectrl;
3ea50042 11079 if test "$enableval" = yes; then
d970f7d5 11080 wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
3ea50042 11081 else
d970f7d5 11082 wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
3ea50042 11083 fi
8743ec79 11084 cache=yes
3ea50042
VZ
11085
11086else
11087
b46b1d59 11088 LINE=`grep "^wxUSE_ANIMATIONCTRL=" ${wx_arg_cache_file}`
3ea50042 11089 if test "x$LINE" != x ; then
8630a814
VZ
11090 eval "DEFAULT_$LINE"
11091 cache=yes
11092 else
11093 cache=no
3ea50042
VZ
11094 fi
11095
d970f7d5 11096 wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
3ea50042 11097
47964710
VS
11098fi
11099
3ea50042 11100
d970f7d5 11101 eval "$wx_cv_use_animatectrl"
8743ec79
VZ
11102 if test "x$cache" = xyes; then
11103 echo "wxUSE_ANIMATIONCTRL=$wxUSE_ANIMATIONCTRL" >> ${wx_arg_cache_file}.tmp
3ea50042
VZ
11104 fi
11105
6e198e97
VZ
11106 if test x"$enablestring" = xdisable; then
11107 if test $wxUSE_ANIMATIONCTRL = yes; then
11108 result=no
11109 else
11110 result=yes
11111 fi
3ea50042 11112 else
6e198e97 11113 result=$wxUSE_ANIMATIONCTRL
3ea50042
VZ
11114 fi
11115
47964710
VS
11116 { echo "$as_me:$LINENO: result: $result" >&5
11117echo "${ECHO_T}$result" >&6; }
6e198e97 11118
3ea50042 11119
077c7880 11120 enablestring=
6e198e97 11121 defaultval=$wxUSE_ALL_FEATURES
238663c1 11122 if test -z "$defaultval"; then
6e198e97
VZ
11123 if test x"$enablestring" = xdisable; then
11124 defaultval=yes
11125 else
11126 defaultval=no
11127 fi
11128 fi
11129
47964710
VS
11130 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
11131echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
11132 # Check whether --enable-button was given.
a848cd7e 11133if test "${enable_button+set}" = set; then
47964710 11134 enableval=$enable_button;
a848cd7e 11135 if test "$enableval" = yes; then
d970f7d5 11136 wx_cv_use_button='wxUSE_BUTTON=yes'
a848cd7e 11137 else
d970f7d5 11138 wx_cv_use_button='wxUSE_BUTTON=no'
a848cd7e 11139 fi
8743ec79 11140 cache=yes
a848cd7e
SC
11141
11142else
11143
b46b1d59 11144 LINE=`grep "^wxUSE_BUTTON=" ${wx_arg_cache_file}`
a848cd7e 11145 if test "x$LINE" != x ; then
8630a814
VZ
11146 eval "DEFAULT_$LINE"
11147 cache=yes
11148 else
11149 cache=no
a848cd7e
SC
11150 fi
11151
d970f7d5 11152 wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
a848cd7e 11153
47964710
VS
11154fi
11155
a848cd7e 11156
d970f7d5 11157 eval "$wx_cv_use_button"
8743ec79
VZ
11158 if test "x$cache" = xyes; then
11159 echo "wxUSE_BUTTON=$wxUSE_BUTTON" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
11160 fi
11161
6e198e97
VZ
11162 if test x"$enablestring" = xdisable; then
11163 if test $wxUSE_BUTTON = yes; then
11164 result=no
11165 else
11166 result=yes
11167 fi
a848cd7e 11168 else
6e198e97 11169 result=$wxUSE_BUTTON
a848cd7e
SC
11170 fi
11171
47964710
VS
11172 { echo "$as_me:$LINENO: result: $result" >&5
11173echo "${ECHO_T}$result" >&6; }
6e198e97 11174
a848cd7e 11175
077c7880 11176 enablestring=
6e198e97 11177 defaultval=$wxUSE_ALL_FEATURES
238663c1 11178 if test -z "$defaultval"; then
6e198e97
VZ
11179 if test x"$enablestring" = xdisable; then
11180 defaultval=yes
11181 else
11182 defaultval=no
11183 fi
11184 fi
11185
47964710
VS
11186 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
11187echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
11188 # Check whether --enable-bmpbutton was given.
a848cd7e 11189if test "${enable_bmpbutton+set}" = set; then
47964710 11190 enableval=$enable_bmpbutton;
a848cd7e 11191 if test "$enableval" = yes; then
d970f7d5 11192 wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
a848cd7e 11193 else
d970f7d5 11194 wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
a848cd7e 11195 fi
8743ec79 11196 cache=yes
a848cd7e
SC
11197
11198else
11199
b46b1d59 11200 LINE=`grep "^wxUSE_BMPBUTTON=" ${wx_arg_cache_file}`
a848cd7e 11201 if test "x$LINE" != x ; then
8630a814
VZ
11202 eval "DEFAULT_$LINE"
11203 cache=yes
11204 else
11205 cache=no
a848cd7e
SC
11206 fi
11207
d970f7d5 11208 wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
a848cd7e 11209
47964710
VS
11210fi
11211
a848cd7e 11212
d970f7d5 11213 eval "$wx_cv_use_bmpbutton"
8743ec79
VZ
11214 if test "x$cache" = xyes; then
11215 echo "wxUSE_BMPBUTTON=$wxUSE_BMPBUTTON" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
11216 fi
11217
6e198e97
VZ
11218 if test x"$enablestring" = xdisable; then
11219 if test $wxUSE_BMPBUTTON = yes; then
11220 result=no
11221 else
11222 result=yes
11223 fi
a848cd7e 11224 else
6e198e97 11225 result=$wxUSE_BMPBUTTON
a848cd7e
SC
11226 fi
11227
47964710
VS
11228 { echo "$as_me:$LINENO: result: $result" >&5
11229echo "${ECHO_T}$result" >&6; }
6e198e97 11230
a848cd7e 11231
077c7880 11232 enablestring=
6e198e97 11233 defaultval=$wxUSE_ALL_FEATURES
238663c1 11234 if test -z "$defaultval"; then
6e198e97
VZ
11235 if test x"$enablestring" = xdisable; then
11236 defaultval=yes
11237 else
11238 defaultval=no
11239 fi
11240 fi
11241
47964710
VS
11242 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
11243echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
11244 # Check whether --enable-bmpcombobox was given.
95a46303 11245if test "${enable_bmpcombobox+set}" = set; then
47964710 11246 enableval=$enable_bmpcombobox;
95a46303 11247 if test "$enableval" = yes; then
d970f7d5 11248 wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
95a46303 11249 else
d970f7d5 11250 wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
95a46303 11251 fi
8743ec79 11252 cache=yes
95a46303
RR
11253
11254else
11255
b46b1d59 11256 LINE=`grep "^wxUSE_BITMAPCOMBOBOX=" ${wx_arg_cache_file}`
95a46303 11257 if test "x$LINE" != x ; then
8630a814
VZ
11258 eval "DEFAULT_$LINE"
11259 cache=yes
11260 else
11261 cache=no
95a46303
RR
11262 fi
11263
d970f7d5 11264 wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
95a46303 11265
47964710
VS
11266fi
11267
95a46303 11268
d970f7d5 11269 eval "$wx_cv_use_bmpcombobox"
8743ec79
VZ
11270 if test "x$cache" = xyes; then
11271 echo "wxUSE_BITMAPCOMBOBOX=$wxUSE_BITMAPCOMBOBOX" >> ${wx_arg_cache_file}.tmp
95a46303
RR
11272 fi
11273
6e198e97
VZ
11274 if test x"$enablestring" = xdisable; then
11275 if test $wxUSE_BITMAPCOMBOBOX = yes; then
11276 result=no
11277 else
11278 result=yes
11279 fi
95a46303 11280 else
6e198e97 11281 result=$wxUSE_BITMAPCOMBOBOX
95a46303
RR
11282 fi
11283
47964710
VS
11284 { echo "$as_me:$LINENO: result: $result" >&5
11285echo "${ECHO_T}$result" >&6; }
6e198e97 11286
95a46303 11287
077c7880 11288 enablestring=
6e198e97 11289 defaultval=$wxUSE_ALL_FEATURES
238663c1 11290 if test -z "$defaultval"; then
6e198e97
VZ
11291 if test x"$enablestring" = xdisable; then
11292 defaultval=yes
11293 else
11294 defaultval=no
11295 fi
11296 fi
11297
47964710
VS
11298 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
11299echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
11300 # Check whether --enable-calendar was given.
a848cd7e 11301if test "${enable_calendar+set}" = set; then
47964710 11302 enableval=$enable_calendar;
a848cd7e 11303 if test "$enableval" = yes; then
d970f7d5 11304 wx_cv_use_calendar='wxUSE_CALCTRL=yes'
a848cd7e 11305 else
d970f7d5 11306 wx_cv_use_calendar='wxUSE_CALCTRL=no'
a848cd7e 11307 fi
8743ec79 11308 cache=yes
a848cd7e
SC
11309
11310else
11311
b46b1d59 11312 LINE=`grep "^wxUSE_CALCTRL=" ${wx_arg_cache_file}`
a848cd7e 11313 if test "x$LINE" != x ; then
8630a814
VZ
11314 eval "DEFAULT_$LINE"
11315 cache=yes
11316 else
11317 cache=no
a848cd7e
SC
11318 fi
11319
d970f7d5 11320 wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
a848cd7e 11321
47964710
VS
11322fi
11323
a848cd7e 11324
d970f7d5 11325 eval "$wx_cv_use_calendar"
8743ec79
VZ
11326 if test "x$cache" = xyes; then
11327 echo "wxUSE_CALCTRL=$wxUSE_CALCTRL" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
11328 fi
11329
6e198e97
VZ
11330 if test x"$enablestring" = xdisable; then
11331 if test $wxUSE_CALCTRL = yes; then
11332 result=no
11333 else
11334 result=yes
11335 fi
a848cd7e 11336 else
6e198e97 11337 result=$wxUSE_CALCTRL
a848cd7e
SC
11338 fi
11339
47964710
VS
11340 { echo "$as_me:$LINENO: result: $result" >&5
11341echo "${ECHO_T}$result" >&6; }
6e198e97 11342
a848cd7e 11343
077c7880 11344 enablestring=
6e198e97 11345 defaultval=$wxUSE_ALL_FEATURES
238663c1 11346 if test -z "$defaultval"; then
6e198e97
VZ
11347 if test x"$enablestring" = xdisable; then
11348 defaultval=yes
11349 else
11350 defaultval=no
11351 fi
11352 fi
11353
47964710
VS
11354 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
11355echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
11356 # Check whether --enable-caret was given.
a848cd7e 11357if test "${enable_caret+set}" = set; then
47964710 11358 enableval=$enable_caret;
a848cd7e 11359 if test "$enableval" = yes; then
d970f7d5 11360 wx_cv_use_caret='wxUSE_CARET=yes'
a848cd7e 11361 else
d970f7d5 11362 wx_cv_use_caret='wxUSE_CARET=no'
a848cd7e 11363 fi
8743ec79 11364 cache=yes
a848cd7e
SC
11365
11366else
11367
b46b1d59 11368 LINE=`grep "^wxUSE_CARET=" ${wx_arg_cache_file}`
a848cd7e 11369 if test "x$LINE" != x ; then
8630a814
VZ
11370 eval "DEFAULT_$LINE"
11371 cache=yes
11372 else
11373 cache=no
a848cd7e
SC
11374 fi
11375
d970f7d5 11376 wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
a848cd7e 11377
47964710
VS
11378fi
11379
a848cd7e 11380
d970f7d5 11381 eval "$wx_cv_use_caret"
8743ec79
VZ
11382 if test "x$cache" = xyes; then
11383 echo "wxUSE_CARET=$wxUSE_CARET" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
11384 fi
11385
6e198e97
VZ
11386 if test x"$enablestring" = xdisable; then
11387 if test $wxUSE_CARET = yes; then
11388 result=no
11389 else
11390 result=yes
11391 fi
a848cd7e 11392 else
6e198e97 11393 result=$wxUSE_CARET
a848cd7e
SC
11394 fi
11395
47964710
VS
11396 { echo "$as_me:$LINENO: result: $result" >&5
11397echo "${ECHO_T}$result" >&6; }
6e198e97 11398
a848cd7e 11399
077c7880 11400 enablestring=
6e198e97 11401 defaultval=$wxUSE_ALL_FEATURES
238663c1 11402 if test -z "$defaultval"; then
6e198e97
VZ
11403 if test x"$enablestring" = xdisable; then
11404 defaultval=yes
11405 else
11406 defaultval=no
11407 fi
11408 fi
11409
47964710
VS
11410 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
11411echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
11412 # Check whether --enable-checkbox was given.
a848cd7e 11413if test "${enable_checkbox+set}" = set; then
47964710 11414 enableval=$enable_checkbox;
a848cd7e 11415 if test "$enableval" = yes; then
d970f7d5 11416 wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
a848cd7e 11417 else
d970f7d5 11418 wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
a848cd7e 11419 fi
8743ec79 11420 cache=yes
a848cd7e
SC
11421
11422else
11423
b46b1d59 11424 LINE=`grep "^wxUSE_CHECKBOX=" ${wx_arg_cache_file}`
a848cd7e 11425 if test "x$LINE" != x ; then
8630a814
VZ
11426 eval "DEFAULT_$LINE"
11427 cache=yes
11428 else
11429 cache=no
a848cd7e
SC
11430 fi
11431
d970f7d5 11432 wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
a848cd7e 11433
47964710
VS
11434fi
11435
a848cd7e 11436
d970f7d5 11437 eval "$wx_cv_use_checkbox"
8743ec79
VZ
11438 if test "x$cache" = xyes; then
11439 echo "wxUSE_CHECKBOX=$wxUSE_CHECKBOX" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
11440 fi
11441
6e198e97
VZ
11442 if test x"$enablestring" = xdisable; then
11443 if test $wxUSE_CHECKBOX = yes; then
11444 result=no
11445 else
11446 result=yes
11447 fi
a848cd7e 11448 else
6e198e97 11449 result=$wxUSE_CHECKBOX
a848cd7e
SC
11450 fi
11451
47964710
VS
11452 { echo "$as_me:$LINENO: result: $result" >&5
11453echo "${ECHO_T}$result" >&6; }
6e198e97 11454
a848cd7e 11455
077c7880 11456 enablestring=
6e198e97 11457 defaultval=$wxUSE_ALL_FEATURES
238663c1 11458 if test -z "$defaultval"; then
6e198e97
VZ
11459 if test x"$enablestring" = xdisable; then
11460 defaultval=yes
11461 else
11462 defaultval=no
11463 fi
11464 fi
11465
47964710
VS
11466 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
11467echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
11468 # Check whether --enable-checklst was given.
a848cd7e 11469if test "${enable_checklst+set}" = set; then
47964710 11470 enableval=$enable_checklst;
a848cd7e 11471 if test "$enableval" = yes; then
d970f7d5 11472 wx_cv_use_checklst='wxUSE_CHECKLST=yes'
a848cd7e 11473 else
d970f7d5 11474 wx_cv_use_checklst='wxUSE_CHECKLST=no'
a848cd7e 11475 fi
8743ec79 11476 cache=yes
a848cd7e
SC
11477
11478else
11479
b46b1d59 11480 LINE=`grep "^wxUSE_CHECKLST=" ${wx_arg_cache_file}`
a848cd7e 11481 if test "x$LINE" != x ; then
8630a814
VZ
11482 eval "DEFAULT_$LINE"
11483 cache=yes
11484 else
11485 cache=no
a848cd7e
SC
11486 fi
11487
d970f7d5 11488 wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
a848cd7e 11489
47964710
VS
11490fi
11491
a848cd7e 11492
d970f7d5 11493 eval "$wx_cv_use_checklst"
8743ec79
VZ
11494 if test "x$cache" = xyes; then
11495 echo "wxUSE_CHECKLST=$wxUSE_CHECKLST" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
11496 fi
11497
6e198e97
VZ
11498 if test x"$enablestring" = xdisable; then
11499 if test $wxUSE_CHECKLST = yes; then
11500 result=no
11501 else
11502 result=yes
11503 fi
a848cd7e 11504 else
6e198e97 11505 result=$wxUSE_CHECKLST
a848cd7e
SC
11506 fi
11507
47964710
VS
11508 { echo "$as_me:$LINENO: result: $result" >&5
11509echo "${ECHO_T}$result" >&6; }
6e198e97 11510
a848cd7e 11511
077c7880 11512 enablestring=
6e198e97 11513 defaultval=$wxUSE_ALL_FEATURES
238663c1 11514 if test -z "$defaultval"; then
6e198e97
VZ
11515 if test x"$enablestring" = xdisable; then
11516 defaultval=yes
11517 else
11518 defaultval=no
11519 fi
11520 fi
11521
47964710
VS
11522 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
11523echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
11524 # Check whether --enable-choice was given.
a848cd7e 11525if test "${enable_choice+set}" = set; then
47964710 11526 enableval=$enable_choice;
a848cd7e 11527 if test "$enableval" = yes; then
d970f7d5 11528 wx_cv_use_choice='wxUSE_CHOICE=yes'
a848cd7e 11529 else
d970f7d5 11530 wx_cv_use_choice='wxUSE_CHOICE=no'
a848cd7e 11531 fi
8743ec79 11532 cache=yes
a848cd7e
SC
11533
11534else
11535
b46b1d59 11536 LINE=`grep "^wxUSE_CHOICE=" ${wx_arg_cache_file}`
a848cd7e 11537 if test "x$LINE" != x ; then
8630a814
VZ
11538 eval "DEFAULT_$LINE"
11539 cache=yes
11540 else
11541 cache=no
a848cd7e
SC
11542 fi
11543
d970f7d5 11544 wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
a848cd7e 11545
47964710
VS
11546fi
11547
a848cd7e 11548
d970f7d5 11549 eval "$wx_cv_use_choice"
8743ec79
VZ
11550 if test "x$cache" = xyes; then
11551 echo "wxUSE_CHOICE=$wxUSE_CHOICE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
11552 fi
11553
6e198e97
VZ
11554 if test x"$enablestring" = xdisable; then
11555 if test $wxUSE_CHOICE = yes; then
11556 result=no
11557 else
11558 result=yes
11559 fi
a848cd7e 11560 else
6e198e97 11561 result=$wxUSE_CHOICE
a848cd7e
SC
11562 fi
11563
47964710
VS
11564 { echo "$as_me:$LINENO: result: $result" >&5
11565echo "${ECHO_T}$result" >&6; }
6e198e97 11566
a848cd7e 11567
077c7880 11568 enablestring=
6e198e97 11569 defaultval=$wxUSE_ALL_FEATURES
238663c1 11570 if test -z "$defaultval"; then
6e198e97
VZ
11571 if test x"$enablestring" = xdisable; then
11572 defaultval=yes
11573 else
11574 defaultval=no
11575 fi
11576 fi
11577
47964710
VS
11578 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
11579echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
11580 # Check whether --enable-choicebook was given.
92bbdbcd 11581if test "${enable_choicebook+set}" = set; then
47964710 11582 enableval=$enable_choicebook;
92bbdbcd 11583 if test "$enableval" = yes; then
d970f7d5 11584 wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
92bbdbcd 11585 else
d970f7d5 11586 wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
92bbdbcd 11587 fi
8743ec79 11588 cache=yes
92bbdbcd
WS
11589
11590else
11591
b46b1d59 11592 LINE=`grep "^wxUSE_CHOICEBOOK=" ${wx_arg_cache_file}`
92bbdbcd 11593 if test "x$LINE" != x ; then
8630a814
VZ
11594 eval "DEFAULT_$LINE"
11595 cache=yes
11596 else
11597 cache=no
92bbdbcd
WS
11598 fi
11599
d970f7d5 11600 wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
92bbdbcd 11601
47964710
VS
11602fi
11603
92bbdbcd 11604
d970f7d5 11605 eval "$wx_cv_use_choicebook"
8743ec79
VZ
11606 if test "x$cache" = xyes; then
11607 echo "wxUSE_CHOICEBOOK=$wxUSE_CHOICEBOOK" >> ${wx_arg_cache_file}.tmp
92bbdbcd
WS
11608 fi
11609
6e198e97
VZ
11610 if test x"$enablestring" = xdisable; then
11611 if test $wxUSE_CHOICEBOOK = yes; then
11612 result=no
11613 else
11614 result=yes
11615 fi
92bbdbcd 11616 else
6e198e97 11617 result=$wxUSE_CHOICEBOOK
92bbdbcd
WS
11618 fi
11619
47964710
VS
11620 { echo "$as_me:$LINENO: result: $result" >&5
11621echo "${ECHO_T}$result" >&6; }
6e198e97 11622
92bbdbcd 11623
077c7880 11624 enablestring=
6e198e97 11625 defaultval=$wxUSE_ALL_FEATURES
238663c1 11626 if test -z "$defaultval"; then
6e198e97
VZ
11627 if test x"$enablestring" = xdisable; then
11628 defaultval=yes
11629 else
11630 defaultval=no
11631 fi
11632 fi
11633
47964710
VS
11634 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
11635echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
11636 # Check whether --enable-collpane was given.
bd915ace 11637if test "${enable_collpane+set}" = set; then
47964710 11638 enableval=$enable_collpane;
bd915ace 11639 if test "$enableval" = yes; then
d970f7d5 11640 wx_cv_use_collpane='wxUSE_COLLPANE=yes'
bd915ace 11641 else
d970f7d5 11642 wx_cv_use_collpane='wxUSE_COLLPANE=no'
bd915ace 11643 fi
8743ec79 11644 cache=yes
bd915ace
RR
11645
11646else
11647
b46b1d59 11648 LINE=`grep "^wxUSE_COLLPANE=" ${wx_arg_cache_file}`
bd915ace 11649 if test "x$LINE" != x ; then
8630a814
VZ
11650 eval "DEFAULT_$LINE"
11651 cache=yes
11652 else
11653 cache=no
bd915ace
RR
11654 fi
11655
d970f7d5 11656 wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
bd915ace 11657
47964710
VS
11658fi
11659
bd915ace 11660
d970f7d5 11661 eval "$wx_cv_use_collpane"
8743ec79
VZ
11662 if test "x$cache" = xyes; then
11663 echo "wxUSE_COLLPANE=$wxUSE_COLLPANE" >> ${wx_arg_cache_file}.tmp
bd915ace
RR
11664 fi
11665
6e198e97
VZ
11666 if test x"$enablestring" = xdisable; then
11667 if test $wxUSE_COLLPANE = yes; then
11668 result=no
11669 else
11670 result=yes
11671 fi
bd915ace 11672 else
6e198e97 11673 result=$wxUSE_COLLPANE
bd915ace
RR
11674 fi
11675
47964710
VS
11676 { echo "$as_me:$LINENO: result: $result" >&5
11677echo "${ECHO_T}$result" >&6; }
6e198e97 11678
bd915ace 11679
077c7880 11680 enablestring=
6e198e97 11681 defaultval=$wxUSE_ALL_FEATURES
238663c1 11682 if test -z "$defaultval"; then
6e198e97
VZ
11683 if test x"$enablestring" = xdisable; then
11684 defaultval=yes
11685 else
11686 defaultval=no
11687 fi
11688 fi
11689
47964710
VS
11690 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
11691echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
11692 # Check whether --enable-colourpicker was given.
e9263684 11693if test "${enable_colourpicker+set}" = set; then
47964710 11694 enableval=$enable_colourpicker;
e9263684 11695 if test "$enableval" = yes; then
d970f7d5 11696 wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
e9263684 11697 else
d970f7d5 11698 wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
e9263684 11699 fi
8743ec79 11700 cache=yes
e9263684
VZ
11701
11702else
11703
b46b1d59 11704 LINE=`grep "^wxUSE_COLOURPICKERCTRL=" ${wx_arg_cache_file}`
e9263684 11705 if test "x$LINE" != x ; then
8630a814
VZ
11706 eval "DEFAULT_$LINE"
11707 cache=yes
11708 else
11709 cache=no
e9263684
VZ
11710 fi
11711
d970f7d5 11712 wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
e9263684 11713
47964710
VS
11714fi
11715
e9263684 11716
d970f7d5 11717 eval "$wx_cv_use_colourpicker"
8743ec79
VZ
11718 if test "x$cache" = xyes; then
11719 echo "wxUSE_COLOURPICKERCTRL=$wxUSE_COLOURPICKERCTRL" >> ${wx_arg_cache_file}.tmp
e9263684
VZ
11720 fi
11721
6e198e97
VZ
11722 if test x"$enablestring" = xdisable; then
11723 if test $wxUSE_COLOURPICKERCTRL = yes; then
11724 result=no
11725 else
11726 result=yes
11727 fi
e9263684 11728 else
6e198e97 11729 result=$wxUSE_COLOURPICKERCTRL
e9263684
VZ
11730 fi
11731
47964710
VS
11732 { echo "$as_me:$LINENO: result: $result" >&5
11733echo "${ECHO_T}$result" >&6; }
6e198e97 11734
e9263684 11735
077c7880 11736 enablestring=
6e198e97 11737 defaultval=$wxUSE_ALL_FEATURES
238663c1 11738 if test -z "$defaultval"; then
6e198e97
VZ
11739 if test x"$enablestring" = xdisable; then
11740 defaultval=yes
11741 else
11742 defaultval=no
11743 fi
11744 fi
11745
47964710
VS
11746 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
11747echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
11748 # Check whether --enable-combobox was given.
a848cd7e 11749if test "${enable_combobox+set}" = set; then
47964710 11750 enableval=$enable_combobox;
a848cd7e 11751 if test "$enableval" = yes; then
d970f7d5 11752 wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
a848cd7e 11753 else
d970f7d5 11754 wx_cv_use_combobox='wxUSE_COMBOBOX=no'
a848cd7e 11755 fi
8743ec79 11756 cache=yes
a848cd7e
SC
11757
11758else
11759
b46b1d59 11760 LINE=`grep "^wxUSE_COMBOBOX=" ${wx_arg_cache_file}`
a848cd7e 11761 if test "x$LINE" != x ; then
8630a814
VZ
11762 eval "DEFAULT_$LINE"
11763 cache=yes
11764 else
11765 cache=no
a848cd7e
SC
11766 fi
11767
d970f7d5 11768 wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
a848cd7e 11769
47964710
VS
11770fi
11771
a848cd7e 11772
d970f7d5 11773 eval "$wx_cv_use_combobox"
8743ec79
VZ
11774 if test "x$cache" = xyes; then
11775 echo "wxUSE_COMBOBOX=$wxUSE_COMBOBOX" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
11776 fi
11777
6e198e97
VZ
11778 if test x"$enablestring" = xdisable; then
11779 if test $wxUSE_COMBOBOX = yes; then
11780 result=no
11781 else
11782 result=yes
11783 fi
a848cd7e 11784 else
6e198e97 11785 result=$wxUSE_COMBOBOX
a848cd7e
SC
11786 fi
11787
47964710
VS
11788 { echo "$as_me:$LINENO: result: $result" >&5
11789echo "${ECHO_T}$result" >&6; }
6e198e97 11790
a848cd7e 11791
077c7880 11792 enablestring=
6e198e97 11793 defaultval=$wxUSE_ALL_FEATURES
238663c1 11794 if test -z "$defaultval"; then
6e198e97
VZ
11795 if test x"$enablestring" = xdisable; then
11796 defaultval=yes
11797 else
11798 defaultval=no
11799 fi
11800 fi
11801
47964710
VS
11802 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
11803echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
11804 # Check whether --enable-comboctrl was given.
a57d600f 11805if test "${enable_comboctrl+set}" = set; then
47964710 11806 enableval=$enable_comboctrl;
642bcba9 11807 if test "$enableval" = yes; then
d970f7d5 11808 wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 11809 else
d970f7d5 11810 wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9 11811 fi
8743ec79 11812 cache=yes
642bcba9
VZ
11813
11814else
11815
b46b1d59 11816 LINE=`grep "^wxUSE_COMBOCTRL=" ${wx_arg_cache_file}`
642bcba9 11817 if test "x$LINE" != x ; then
8630a814
VZ
11818 eval "DEFAULT_$LINE"
11819 cache=yes
11820 else
11821 cache=no
642bcba9
VZ
11822 fi
11823
d970f7d5 11824 wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
642bcba9 11825
47964710
VS
11826fi
11827
642bcba9 11828
d970f7d5 11829 eval "$wx_cv_use_comboctrl"
8743ec79
VZ
11830 if test "x$cache" = xyes; then
11831 echo "wxUSE_COMBOCTRL=$wxUSE_COMBOCTRL" >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
11832 fi
11833
6e198e97
VZ
11834 if test x"$enablestring" = xdisable; then
11835 if test $wxUSE_COMBOCTRL = yes; then
11836 result=no
11837 else
11838 result=yes
11839 fi
642bcba9 11840 else
6e198e97 11841 result=$wxUSE_COMBOCTRL
642bcba9
VZ
11842 fi
11843
47964710
VS
11844 { echo "$as_me:$LINENO: result: $result" >&5
11845echo "${ECHO_T}$result" >&6; }
6e198e97 11846
642bcba9 11847
077c7880 11848 enablestring=
6e198e97 11849 defaultval=$wxUSE_ALL_FEATURES
238663c1 11850 if test -z "$defaultval"; then
6e198e97
VZ
11851 if test x"$enablestring" = xdisable; then
11852 defaultval=yes
11853 else
11854 defaultval=no
11855 fi
11856 fi
11857
47964710
VS
11858 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
11859echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
11860 # Check whether --enable-datepick was given.
da98e9be 11861if test "${enable_datepick+set}" = set; then
47964710 11862 enableval=$enable_datepick;
da98e9be 11863 if test "$enableval" = yes; then
d970f7d5 11864 wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
da98e9be 11865 else
d970f7d5 11866 wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
da98e9be 11867 fi
8743ec79 11868 cache=yes
da98e9be
VZ
11869
11870else
11871
b46b1d59 11872 LINE=`grep "^wxUSE_DATEPICKCTRL=" ${wx_arg_cache_file}`
da98e9be 11873 if test "x$LINE" != x ; then
8630a814
VZ
11874 eval "DEFAULT_$LINE"
11875 cache=yes
11876 else
11877 cache=no
da98e9be
VZ
11878 fi
11879
d970f7d5 11880 wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
da98e9be 11881
47964710
VS
11882fi
11883
da98e9be 11884
d970f7d5 11885 eval "$wx_cv_use_datepick"
8743ec79
VZ
11886 if test "x$cache" = xyes; then
11887 echo "wxUSE_DATEPICKCTRL=$wxUSE_DATEPICKCTRL" >> ${wx_arg_cache_file}.tmp
da98e9be
VZ
11888 fi
11889
6e198e97
VZ
11890 if test x"$enablestring" = xdisable; then
11891 if test $wxUSE_DATEPICKCTRL = yes; then
11892 result=no
11893 else
11894 result=yes
11895 fi
da98e9be 11896 else
6e198e97 11897 result=$wxUSE_DATEPICKCTRL
da98e9be
VZ
11898 fi
11899
47964710
VS
11900 { echo "$as_me:$LINENO: result: $result" >&5
11901echo "${ECHO_T}$result" >&6; }
6e198e97 11902
da98e9be 11903
077c7880 11904 enablestring=
6e198e97 11905 defaultval=$wxUSE_ALL_FEATURES
238663c1 11906 if test -z "$defaultval"; then
6e198e97
VZ
11907 if test x"$enablestring" = xdisable; then
11908 defaultval=yes
11909 else
11910 defaultval=no
11911 fi
11912 fi
11913
47964710
VS
11914 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
11915echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
11916 # Check whether --enable-dirpicker was given.
e9263684 11917if test "${enable_dirpicker+set}" = set; then
47964710 11918 enableval=$enable_dirpicker;
e9263684 11919 if test "$enableval" = yes; then
d970f7d5 11920 wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
e9263684 11921 else
d970f7d5 11922 wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
e9263684 11923 fi
8743ec79 11924 cache=yes
e9263684
VZ
11925
11926else
11927
b46b1d59 11928 LINE=`grep "^wxUSE_DIRPICKERCTRL=" ${wx_arg_cache_file}`
e9263684 11929 if test "x$LINE" != x ; then
8630a814
VZ
11930 eval "DEFAULT_$LINE"
11931 cache=yes
11932 else
11933 cache=no
e9263684
VZ
11934 fi
11935
d970f7d5 11936 wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
e9263684 11937
47964710
VS
11938fi
11939
e9263684 11940
d970f7d5 11941 eval "$wx_cv_use_dirpicker"
8743ec79
VZ
11942 if test "x$cache" = xyes; then
11943 echo "wxUSE_DIRPICKERCTRL=$wxUSE_DIRPICKERCTRL" >> ${wx_arg_cache_file}.tmp
e9263684
VZ
11944 fi
11945
6e198e97
VZ
11946 if test x"$enablestring" = xdisable; then
11947 if test $wxUSE_DIRPICKERCTRL = yes; then
11948 result=no
11949 else
11950 result=yes
11951 fi
e9263684 11952 else
6e198e97 11953 result=$wxUSE_DIRPICKERCTRL
e9263684
VZ
11954 fi
11955
47964710
VS
11956 { echo "$as_me:$LINENO: result: $result" >&5
11957echo "${ECHO_T}$result" >&6; }
6e198e97 11958
e9263684 11959
077c7880 11960 enablestring=
6e198e97 11961 defaultval=$wxUSE_ALL_FEATURES
238663c1 11962 if test -z "$defaultval"; then
6e198e97
VZ
11963 if test x"$enablestring" = xdisable; then
11964 defaultval=yes
11965 else
11966 defaultval=no
11967 fi
11968 fi
11969
47964710
VS
11970 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
11971echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
11972 # Check whether --enable-display was given.
a848cd7e 11973if test "${enable_display+set}" = set; then
47964710 11974 enableval=$enable_display;
a848cd7e 11975 if test "$enableval" = yes; then
d970f7d5 11976 wx_cv_use_display='wxUSE_DISPLAY=yes'
a848cd7e 11977 else
d970f7d5 11978 wx_cv_use_display='wxUSE_DISPLAY=no'
a848cd7e 11979 fi
8743ec79 11980 cache=yes
a848cd7e
SC
11981
11982else
11983
b46b1d59 11984 LINE=`grep "^wxUSE_DISPLAY=" ${wx_arg_cache_file}`
a848cd7e 11985 if test "x$LINE" != x ; then
8630a814
VZ
11986 eval "DEFAULT_$LINE"
11987 cache=yes
11988 else
11989 cache=no
a848cd7e
SC
11990 fi
11991
d970f7d5 11992 wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
a848cd7e 11993
47964710
VS
11994fi
11995
a848cd7e 11996
d970f7d5 11997 eval "$wx_cv_use_display"
8743ec79
VZ
11998 if test "x$cache" = xyes; then
11999 echo "wxUSE_DISPLAY=$wxUSE_DISPLAY" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
12000 fi
12001
6e198e97
VZ
12002 if test x"$enablestring" = xdisable; then
12003 if test $wxUSE_DISPLAY = yes; then
12004 result=no
12005 else
12006 result=yes
12007 fi
a848cd7e 12008 else
6e198e97 12009 result=$wxUSE_DISPLAY
a848cd7e
SC
12010 fi
12011
47964710
VS
12012 { echo "$as_me:$LINENO: result: $result" >&5
12013echo "${ECHO_T}$result" >&6; }
6e198e97 12014
a848cd7e 12015
077c7880 12016 enablestring=
6e198e97 12017 defaultval=$wxUSE_ALL_FEATURES
238663c1 12018 if test -z "$defaultval"; then
6e198e97
VZ
12019 if test x"$enablestring" = xdisable; then
12020 defaultval=yes
12021 else
12022 defaultval=no
12023 fi
12024 fi
12025
47964710
VS
12026 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
12027echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
12028 # Check whether --enable-detect_sm was given.
88bbc332 12029if test "${enable_detect_sm+set}" = set; then
47964710 12030 enableval=$enable_detect_sm;
88bbc332 12031 if test "$enableval" = yes; then
d970f7d5 12032 wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
88bbc332 12033 else
d970f7d5 12034 wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
88bbc332 12035 fi
8743ec79 12036 cache=yes
88bbc332
RR
12037
12038else
12039
b46b1d59 12040 LINE=`grep "^wxUSE_DETECT_SM=" ${wx_arg_cache_file}`
88bbc332 12041 if test "x$LINE" != x ; then
8630a814
VZ
12042 eval "DEFAULT_$LINE"
12043 cache=yes
12044 else
12045 cache=no
88bbc332
RR
12046 fi
12047
d970f7d5 12048 wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
88bbc332 12049
47964710
VS
12050fi
12051
88bbc332 12052
d970f7d5 12053 eval "$wx_cv_use_detect_sm"
8743ec79
VZ
12054 if test "x$cache" = xyes; then
12055 echo "wxUSE_DETECT_SM=$wxUSE_DETECT_SM" >> ${wx_arg_cache_file}.tmp
88bbc332
RR
12056 fi
12057
6e198e97
VZ
12058 if test x"$enablestring" = xdisable; then
12059 if test $wxUSE_DETECT_SM = yes; then
12060 result=no
12061 else
12062 result=yes
12063 fi
23575150 12064 else
6e198e97 12065 result=$wxUSE_DETECT_SM
23575150
RR
12066 fi
12067
47964710
VS
12068 { echo "$as_me:$LINENO: result: $result" >&5
12069echo "${ECHO_T}$result" >&6; }
6e198e97 12070
23575150
RR
12071
12072 enablestring=
6e198e97 12073 defaultval=$wxUSE_ALL_FEATURES
238663c1 12074 if test -z "$defaultval"; then
6e198e97
VZ
12075 if test x"$enablestring" = xdisable; then
12076 defaultval=yes
12077 else
12078 defaultval=no
12079 fi
12080 fi
12081
47964710
VS
12082 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
12083echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
12084 # Check whether --enable-editablebox was given.
23575150 12085if test "${enable_editablebox+set}" = set; then
47964710 12086 enableval=$enable_editablebox;
23575150 12087 if test "$enableval" = yes; then
d970f7d5 12088 wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
23575150 12089 else
d970f7d5 12090 wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
23575150 12091 fi
8743ec79 12092 cache=yes
23575150
RR
12093
12094else
12095
b46b1d59 12096 LINE=`grep "^wxUSE_EDITABLELISTBOX=" ${wx_arg_cache_file}`
23575150 12097 if test "x$LINE" != x ; then
8630a814
VZ
12098 eval "DEFAULT_$LINE"
12099 cache=yes
12100 else
12101 cache=no
23575150
RR
12102 fi
12103
d970f7d5 12104 wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
23575150 12105
47964710
VS
12106fi
12107
23575150 12108
d970f7d5 12109 eval "$wx_cv_use_editablebox"
8743ec79
VZ
12110 if test "x$cache" = xyes; then
12111 echo "wxUSE_EDITABLELISTBOX=$wxUSE_EDITABLELISTBOX" >> ${wx_arg_cache_file}.tmp
23575150
RR
12112 fi
12113
6e198e97
VZ
12114 if test x"$enablestring" = xdisable; then
12115 if test $wxUSE_EDITABLELISTBOX = yes; then
12116 result=no
12117 else
12118 result=yes
12119 fi
88bbc332 12120 else
6e198e97 12121 result=$wxUSE_EDITABLELISTBOX
88bbc332
RR
12122 fi
12123
47964710
VS
12124 { echo "$as_me:$LINENO: result: $result" >&5
12125echo "${ECHO_T}$result" >&6; }
6e198e97 12126
88bbc332 12127
077c7880 12128 enablestring=
6e198e97 12129 defaultval=$wxUSE_ALL_FEATURES
238663c1 12130 if test -z "$defaultval"; then
6e198e97
VZ
12131 if test x"$enablestring" = xdisable; then
12132 defaultval=yes
12133 else
12134 defaultval=no
12135 fi
12136 fi
12137
47964710
VS
12138 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
12139echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
12140 # Check whether --enable-filepicker was given.
e9263684 12141if test "${enable_filepicker+set}" = set; then
47964710 12142 enableval=$enable_filepicker;
e9263684 12143 if test "$enableval" = yes; then
d970f7d5 12144 wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
e9263684 12145 else
d970f7d5 12146 wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
e9263684 12147 fi
8743ec79 12148 cache=yes
e9263684
VZ
12149
12150else
12151
b46b1d59 12152 LINE=`grep "^wxUSE_FILEPICKERCTRL=" ${wx_arg_cache_file}`
e9263684 12153 if test "x$LINE" != x ; then
8630a814
VZ
12154 eval "DEFAULT_$LINE"
12155 cache=yes
12156 else
12157 cache=no
e9263684
VZ
12158 fi
12159
d970f7d5 12160 wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
e9263684 12161
47964710
VS
12162fi
12163
e9263684 12164
d970f7d5 12165 eval "$wx_cv_use_filepicker"
8743ec79
VZ
12166 if test "x$cache" = xyes; then
12167 echo "wxUSE_FILEPICKERCTRL=$wxUSE_FILEPICKERCTRL" >> ${wx_arg_cache_file}.tmp
e9263684
VZ
12168 fi
12169
6e198e97
VZ
12170 if test x"$enablestring" = xdisable; then
12171 if test $wxUSE_FILEPICKERCTRL = yes; then
12172 result=no
12173 else
12174 result=yes
12175 fi
e9263684 12176 else
6e198e97 12177 result=$wxUSE_FILEPICKERCTRL
e9263684
VZ
12178 fi
12179
47964710
VS
12180 { echo "$as_me:$LINENO: result: $result" >&5
12181echo "${ECHO_T}$result" >&6; }
6e198e97 12182
e9263684 12183
0cf3e587
VZ
12184 enablestring=
12185 defaultval=$wxUSE_ALL_FEATURES
12186 if test -z "$defaultval"; then
12187 if test x"$enablestring" = xdisable; then
12188 defaultval=yes
12189 else
12190 defaultval=no
12191 fi
12192 fi
12193
12194 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
12195echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
12196 # Check whether --enable-filectrl was given.
12197if test "${enable_filectrl+set}" = set; then
12198 enableval=$enable_filectrl;
12199 if test "$enableval" = yes; then
12200 wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
12201 else
12202 wx_cv_use_filectrl='wxUSE_FILECTRL=no'
12203 fi
12204 cache=yes
12205
12206else
12207
12208 LINE=`grep "^wxUSE_FILECTRL=" ${wx_arg_cache_file}`
12209 if test "x$LINE" != x ; then
12210 eval "DEFAULT_$LINE"
12211 cache=yes
12212 else
12213 cache=no
12214 fi
12215
12216 wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
12217
12218fi
12219
12220
12221 eval "$wx_cv_use_filectrl"
12222 if test "x$cache" = xyes; then
12223 echo "wxUSE_FILECTRL=$wxUSE_FILECTRL" >> ${wx_arg_cache_file}.tmp
12224 fi
12225
12226 if test x"$enablestring" = xdisable; then
12227 if test $wxUSE_FILECTRL = yes; then
12228 result=no
12229 else
12230 result=yes
12231 fi
12232 else
12233 result=$wxUSE_FILECTRL
12234 fi
12235
12236 { echo "$as_me:$LINENO: result: $result" >&5
12237echo "${ECHO_T}$result" >&6; }
12238
12239
077c7880 12240 enablestring=
6e198e97 12241 defaultval=$wxUSE_ALL_FEATURES
238663c1 12242 if test -z "$defaultval"; then
6e198e97
VZ
12243 if test x"$enablestring" = xdisable; then
12244 defaultval=yes
12245 else
12246 defaultval=no
12247 fi
12248 fi
12249
47964710
VS
12250 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
12251echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
12252 # Check whether --enable-fontpicker was given.
e9263684 12253if test "${enable_fontpicker+set}" = set; then
47964710 12254 enableval=$enable_fontpicker;
e9263684 12255 if test "$enableval" = yes; then
d970f7d5 12256 wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
e9263684 12257 else
d970f7d5 12258 wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
e9263684 12259 fi
8743ec79 12260 cache=yes
e9263684
VZ
12261
12262else
12263
b46b1d59 12264 LINE=`grep "^wxUSE_FONTPICKERCTRL=" ${wx_arg_cache_file}`
e9263684 12265 if test "x$LINE" != x ; then
8630a814
VZ
12266 eval "DEFAULT_$LINE"
12267 cache=yes
12268 else
12269 cache=no
e9263684
VZ
12270 fi
12271
d970f7d5 12272 wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
e9263684 12273
47964710
VS
12274fi
12275
e9263684 12276
d970f7d5 12277 eval "$wx_cv_use_fontpicker"
8743ec79
VZ
12278 if test "x$cache" = xyes; then
12279 echo "wxUSE_FONTPICKERCTRL=$wxUSE_FONTPICKERCTRL" >> ${wx_arg_cache_file}.tmp
e9263684
VZ
12280 fi
12281
6e198e97
VZ
12282 if test x"$enablestring" = xdisable; then
12283 if test $wxUSE_FONTPICKERCTRL = yes; then
12284 result=no
12285 else
12286 result=yes
12287 fi
e9263684 12288 else
6e198e97 12289 result=$wxUSE_FONTPICKERCTRL
e9263684
VZ
12290 fi
12291
47964710
VS
12292 { echo "$as_me:$LINENO: result: $result" >&5
12293echo "${ECHO_T}$result" >&6; }
6e198e97 12294
e9263684 12295
077c7880 12296 enablestring=
6e198e97 12297 defaultval=$wxUSE_ALL_FEATURES
238663c1 12298 if test -z "$defaultval"; then
6e198e97
VZ
12299 if test x"$enablestring" = xdisable; then
12300 defaultval=yes
12301 else
12302 defaultval=no
12303 fi
12304 fi
12305
47964710
VS
12306 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
12307echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
12308 # Check whether --enable-gauge was given.
a848cd7e 12309if test "${enable_gauge+set}" = set; then
47964710 12310 enableval=$enable_gauge;
a848cd7e 12311 if test "$enableval" = yes; then
d970f7d5 12312 wx_cv_use_gauge='wxUSE_GAUGE=yes'
a848cd7e 12313 else
d970f7d5 12314 wx_cv_use_gauge='wxUSE_GAUGE=no'
a848cd7e 12315 fi
8743ec79 12316 cache=yes
a848cd7e
SC
12317
12318else
12319
b46b1d59 12320 LINE=`grep "^wxUSE_GAUGE=" ${wx_arg_cache_file}`
a848cd7e 12321 if test "x$LINE" != x ; then
8630a814
VZ
12322 eval "DEFAULT_$LINE"
12323 cache=yes
12324 else
12325 cache=no
a848cd7e
SC
12326 fi
12327
d970f7d5 12328 wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
a848cd7e 12329
47964710
VS
12330fi
12331
a848cd7e 12332
d970f7d5 12333 eval "$wx_cv_use_gauge"
8743ec79
VZ
12334 if test "x$cache" = xyes; then
12335 echo "wxUSE_GAUGE=$wxUSE_GAUGE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
12336 fi
12337
6e198e97
VZ
12338 if test x"$enablestring" = xdisable; then
12339 if test $wxUSE_GAUGE = yes; then
12340 result=no
12341 else
12342 result=yes
12343 fi
a848cd7e 12344 else
6e198e97 12345 result=$wxUSE_GAUGE
a848cd7e
SC
12346 fi
12347
47964710
VS
12348 { echo "$as_me:$LINENO: result: $result" >&5
12349echo "${ECHO_T}$result" >&6; }
6e198e97 12350
a848cd7e 12351
077c7880 12352 enablestring=
6e198e97 12353 defaultval=$wxUSE_ALL_FEATURES
238663c1 12354 if test -z "$defaultval"; then
6e198e97
VZ
12355 if test x"$enablestring" = xdisable; then
12356 defaultval=yes
12357 else
12358 defaultval=no
12359 fi
12360 fi
12361
47964710
VS
12362 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
12363echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
12364 # Check whether --enable-grid was given.
a848cd7e 12365if test "${enable_grid+set}" = set; then
47964710 12366 enableval=$enable_grid;
a848cd7e 12367 if test "$enableval" = yes; then
d970f7d5 12368 wx_cv_use_grid='wxUSE_GRID=yes'
a848cd7e 12369 else
d970f7d5 12370 wx_cv_use_grid='wxUSE_GRID=no'
a848cd7e 12371 fi
8743ec79 12372 cache=yes
a848cd7e
SC
12373
12374else
12375
b46b1d59 12376 LINE=`grep "^wxUSE_GRID=" ${wx_arg_cache_file}`
a848cd7e 12377 if test "x$LINE" != x ; then
8630a814
VZ
12378 eval "DEFAULT_$LINE"
12379 cache=yes
12380 else
12381 cache=no
a848cd7e
SC
12382 fi
12383
d970f7d5 12384 wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
a848cd7e 12385
47964710
VS
12386fi
12387
a848cd7e 12388
d970f7d5 12389 eval "$wx_cv_use_grid"
8743ec79
VZ
12390 if test "x$cache" = xyes; then
12391 echo "wxUSE_GRID=$wxUSE_GRID" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
12392 fi
12393
6e198e97
VZ
12394 if test x"$enablestring" = xdisable; then
12395 if test $wxUSE_GRID = yes; then
12396 result=no
12397 else
12398 result=yes
12399 fi
a848cd7e 12400 else
6e198e97 12401 result=$wxUSE_GRID
a848cd7e
SC
12402 fi
12403
47964710
VS
12404 { echo "$as_me:$LINENO: result: $result" >&5
12405echo "${ECHO_T}$result" >&6; }
6e198e97 12406
a848cd7e 12407
077c7880 12408 enablestring=
6e198e97 12409 defaultval=$wxUSE_ALL_FEATURES
238663c1 12410 if test -z "$defaultval"; then
6e198e97
VZ
12411 if test x"$enablestring" = xdisable; then
12412 defaultval=yes
12413 else
12414 defaultval=no
12415 fi
12416 fi
12417
47964710
VS
12418 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
12419echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
12420 # Check whether --enable-dataviewctrl was given.
20e34ecc 12421if test "${enable_dataviewctrl+set}" = set; then
47964710 12422 enableval=$enable_dataviewctrl;
20e34ecc 12423 if test "$enableval" = yes; then
d970f7d5 12424 wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
20e34ecc 12425 else
d970f7d5 12426 wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
20e34ecc 12427 fi
8743ec79 12428 cache=yes
20e34ecc
RR
12429
12430else
12431
b46b1d59 12432 LINE=`grep "^wxUSE_DATAVIEWCTRL=" ${wx_arg_cache_file}`
20e34ecc 12433 if test "x$LINE" != x ; then
8630a814
VZ
12434 eval "DEFAULT_$LINE"
12435 cache=yes
12436 else
12437 cache=no
20e34ecc
RR
12438 fi
12439
d970f7d5 12440 wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
20e34ecc 12441
47964710
VS
12442fi
12443
20e34ecc 12444
d970f7d5 12445 eval "$wx_cv_use_dataviewctrl"
8743ec79
VZ
12446 if test "x$cache" = xyes; then
12447 echo "wxUSE_DATAVIEWCTRL=$wxUSE_DATAVIEWCTRL" >> ${wx_arg_cache_file}.tmp
20e34ecc
RR
12448 fi
12449
6e198e97
VZ
12450 if test x"$enablestring" = xdisable; then
12451 if test $wxUSE_DATAVIEWCTRL = yes; then
12452 result=no
12453 else
12454 result=yes
12455 fi
20e34ecc 12456 else
6e198e97 12457 result=$wxUSE_DATAVIEWCTRL
20e34ecc
RR
12458 fi
12459
47964710
VS
12460 { echo "$as_me:$LINENO: result: $result" >&5
12461echo "${ECHO_T}$result" >&6; }
6e198e97 12462
20e34ecc 12463
077c7880 12464 enablestring=
6e198e97 12465 defaultval=$wxUSE_ALL_FEATURES
238663c1 12466 if test -z "$defaultval"; then
6e198e97
VZ
12467 if test x"$enablestring" = xdisable; then
12468 defaultval=yes
12469 else
12470 defaultval=no
12471 fi
12472 fi
12473
47964710
VS
12474 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
12475echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
12476 # Check whether --enable-hyperlink was given.
6954625c 12477if test "${enable_hyperlink+set}" = set; then
47964710 12478 enableval=$enable_hyperlink;
6954625c 12479 if test "$enableval" = yes; then
d970f7d5 12480 wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
6954625c 12481 else
d970f7d5 12482 wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
6954625c 12483 fi
8743ec79 12484 cache=yes
6954625c
VZ
12485
12486else
12487
b46b1d59 12488 LINE=`grep "^wxUSE_HYPERLINKCTRL=" ${wx_arg_cache_file}`
6954625c 12489 if test "x$LINE" != x ; then
8630a814
VZ
12490 eval "DEFAULT_$LINE"
12491 cache=yes
12492 else
12493 cache=no
6954625c
VZ
12494 fi
12495
d970f7d5 12496 wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
6954625c 12497
47964710
VS
12498fi
12499
6954625c 12500
d970f7d5 12501 eval "$wx_cv_use_hyperlink"
8743ec79
VZ
12502 if test "x$cache" = xyes; then
12503 echo "wxUSE_HYPERLINKCTRL=$wxUSE_HYPERLINKCTRL" >> ${wx_arg_cache_file}.tmp
6954625c
VZ
12504 fi
12505
6e198e97
VZ
12506 if test x"$enablestring" = xdisable; then
12507 if test $wxUSE_HYPERLINKCTRL = yes; then
12508 result=no
12509 else
12510 result=yes
12511 fi
6954625c 12512 else
6e198e97 12513 result=$wxUSE_HYPERLINKCTRL
6954625c
VZ
12514 fi
12515
47964710
VS
12516 { echo "$as_me:$LINENO: result: $result" >&5
12517echo "${ECHO_T}$result" >&6; }
6e198e97 12518
6954625c 12519
077c7880 12520 enablestring=
6e198e97 12521 defaultval=$wxUSE_ALL_FEATURES
238663c1 12522 if test -z "$defaultval"; then
6e198e97
VZ
12523 if test x"$enablestring" = xdisable; then
12524 defaultval=yes
12525 else
12526 defaultval=no
12527 fi
12528 fi
12529
47964710
VS
12530 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
12531echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
12532 # Check whether --enable-imaglist was given.
a848cd7e 12533if test "${enable_imaglist+set}" = set; then
47964710 12534 enableval=$enable_imaglist;
a848cd7e 12535 if test "$enableval" = yes; then
d970f7d5 12536 wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
a848cd7e 12537 else
d970f7d5 12538 wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
a848cd7e 12539 fi
8743ec79 12540 cache=yes
a848cd7e
SC
12541
12542else
12543
b46b1d59 12544 LINE=`grep "^wxUSE_IMAGLIST=" ${wx_arg_cache_file}`
a848cd7e 12545 if test "x$LINE" != x ; then
8630a814
VZ
12546 eval "DEFAULT_$LINE"
12547 cache=yes
12548 else
12549 cache=no
a848cd7e
SC
12550 fi
12551
d970f7d5 12552 wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
a848cd7e 12553
47964710
VS
12554fi
12555
a848cd7e 12556
d970f7d5 12557 eval "$wx_cv_use_imaglist"
8743ec79
VZ
12558 if test "x$cache" = xyes; then
12559 echo "wxUSE_IMAGLIST=$wxUSE_IMAGLIST" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
12560 fi
12561
6e198e97
VZ
12562 if test x"$enablestring" = xdisable; then
12563 if test $wxUSE_IMAGLIST = yes; then
12564 result=no
12565 else
12566 result=yes
12567 fi
a848cd7e 12568 else
6e198e97 12569 result=$wxUSE_IMAGLIST
a848cd7e
SC
12570 fi
12571
47964710
VS
12572 { echo "$as_me:$LINENO: result: $result" >&5
12573echo "${ECHO_T}$result" >&6; }
6e198e97 12574
a848cd7e 12575
077c7880 12576 enablestring=
6e198e97 12577 defaultval=$wxUSE_ALL_FEATURES
238663c1 12578 if test -z "$defaultval"; then
6e198e97
VZ
12579 if test x"$enablestring" = xdisable; then
12580 defaultval=yes
12581 else
12582 defaultval=no
12583 fi
12584 fi
12585
47964710
VS
12586 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
12587echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
12588 # Check whether --enable-listbook was given.
a848cd7e 12589if test "${enable_listbook+set}" = set; then
47964710 12590 enableval=$enable_listbook;
a848cd7e 12591 if test "$enableval" = yes; then
d970f7d5 12592 wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
a848cd7e 12593 else
d970f7d5 12594 wx_cv_use_listbook='wxUSE_LISTBOOK=no'
a848cd7e 12595 fi
8743ec79 12596 cache=yes
a848cd7e
SC
12597
12598else
12599
b46b1d59 12600 LINE=`grep "^wxUSE_LISTBOOK=" ${wx_arg_cache_file}`
a848cd7e 12601 if test "x$LINE" != x ; then
8630a814
VZ
12602 eval "DEFAULT_$LINE"
12603 cache=yes
12604 else
12605 cache=no
a848cd7e
SC
12606 fi
12607
d970f7d5 12608 wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
a848cd7e 12609
47964710
VS
12610fi
12611
a848cd7e 12612
d970f7d5 12613 eval "$wx_cv_use_listbook"
8743ec79
VZ
12614 if test "x$cache" = xyes; then
12615 echo "wxUSE_LISTBOOK=$wxUSE_LISTBOOK" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
12616 fi
12617
6e198e97
VZ
12618 if test x"$enablestring" = xdisable; then
12619 if test $wxUSE_LISTBOOK = yes; then
12620 result=no
12621 else
12622 result=yes
12623 fi
a848cd7e 12624 else
6e198e97 12625 result=$wxUSE_LISTBOOK
a848cd7e
SC
12626 fi
12627
47964710
VS
12628 { echo "$as_me:$LINENO: result: $result" >&5
12629echo "${ECHO_T}$result" >&6; }
6e198e97 12630
a848cd7e 12631
077c7880 12632 enablestring=
6e198e97 12633 defaultval=$wxUSE_ALL_FEATURES
238663c1 12634 if test -z "$defaultval"; then
6e198e97
VZ
12635 if test x"$enablestring" = xdisable; then
12636 defaultval=yes
12637 else
12638 defaultval=no
12639 fi
12640 fi
12641
47964710
VS
12642 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
12643echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
12644 # Check whether --enable-listbox was given.
a848cd7e 12645if test "${enable_listbox+set}" = set; then
47964710 12646 enableval=$enable_listbox;
a848cd7e 12647 if test "$enableval" = yes; then
d970f7d5 12648 wx_cv_use_listbox='wxUSE_LISTBOX=yes'
a848cd7e 12649 else
d970f7d5 12650 wx_cv_use_listbox='wxUSE_LISTBOX=no'
a848cd7e 12651 fi
8743ec79 12652 cache=yes
a848cd7e
SC
12653
12654else
12655
b46b1d59 12656 LINE=`grep "^wxUSE_LISTBOX=" ${wx_arg_cache_file}`
a848cd7e 12657 if test "x$LINE" != x ; then
8630a814
VZ
12658 eval "DEFAULT_$LINE"
12659 cache=yes
12660 else
12661 cache=no
a848cd7e
SC
12662 fi
12663
d970f7d5 12664 wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
a848cd7e 12665
47964710
VS
12666fi
12667
a848cd7e 12668
d970f7d5 12669 eval "$wx_cv_use_listbox"
8743ec79
VZ
12670 if test "x$cache" = xyes; then
12671 echo "wxUSE_LISTBOX=$wxUSE_LISTBOX" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
12672 fi
12673
6e198e97
VZ
12674 if test x"$enablestring" = xdisable; then
12675 if test $wxUSE_LISTBOX = yes; then
12676 result=no
12677 else
12678 result=yes
12679 fi
a848cd7e 12680 else
6e198e97 12681 result=$wxUSE_LISTBOX
a848cd7e
SC
12682 fi
12683
47964710
VS
12684 { echo "$as_me:$LINENO: result: $result" >&5
12685echo "${ECHO_T}$result" >&6; }
6e198e97 12686
a848cd7e 12687
077c7880 12688 enablestring=
6e198e97 12689 defaultval=$wxUSE_ALL_FEATURES
238663c1 12690 if test -z "$defaultval"; then
6e198e97
VZ
12691 if test x"$enablestring" = xdisable; then
12692 defaultval=yes
12693 else
12694 defaultval=no
12695 fi
12696 fi
12697
47964710
VS
12698 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
12699echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
12700 # Check whether --enable-listctrl was given.
a848cd7e 12701if test "${enable_listctrl+set}" = set; then
47964710 12702 enableval=$enable_listctrl;
a848cd7e 12703 if test "$enableval" = yes; then
d970f7d5 12704 wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
a848cd7e 12705 else
d970f7d5 12706 wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
a848cd7e 12707 fi
8743ec79 12708 cache=yes
a848cd7e
SC
12709
12710else
12711
b46b1d59 12712 LINE=`grep "^wxUSE_LISTCTRL=" ${wx_arg_cache_file}`
a848cd7e 12713 if test "x$LINE" != x ; then
8630a814
VZ
12714 eval "DEFAULT_$LINE"
12715 cache=yes
12716 else
12717 cache=no
a848cd7e
SC
12718 fi
12719
d970f7d5 12720 wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
a848cd7e 12721
47964710
VS
12722fi
12723
a848cd7e 12724
d970f7d5 12725 eval "$wx_cv_use_listctrl"
8743ec79
VZ
12726 if test "x$cache" = xyes; then
12727 echo "wxUSE_LISTCTRL=$wxUSE_LISTCTRL" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
12728 fi
12729
6e198e97
VZ
12730 if test x"$enablestring" = xdisable; then
12731 if test $wxUSE_LISTCTRL = yes; then
12732 result=no
12733 else
12734 result=yes
12735 fi
a848cd7e 12736 else
6e198e97 12737 result=$wxUSE_LISTCTRL
a848cd7e
SC
12738 fi
12739
47964710
VS
12740 { echo "$as_me:$LINENO: result: $result" >&5
12741echo "${ECHO_T}$result" >&6; }
6e198e97 12742
a848cd7e 12743
077c7880 12744 enablestring=
6e198e97 12745 defaultval=$wxUSE_ALL_FEATURES
238663c1 12746 if test -z "$defaultval"; then
6e198e97
VZ
12747 if test x"$enablestring" = xdisable; then
12748 defaultval=yes
12749 else
12750 defaultval=no
12751 fi
12752 fi
12753
47964710
VS
12754 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
12755echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
12756 # Check whether --enable-notebook was given.
a848cd7e 12757if test "${enable_notebook+set}" = set; then
47964710 12758 enableval=$enable_notebook;
a848cd7e 12759 if test "$enableval" = yes; then
d970f7d5 12760 wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
a848cd7e 12761 else
d970f7d5 12762 wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
a848cd7e 12763 fi
8743ec79 12764 cache=yes
a848cd7e
SC
12765
12766else
12767
b46b1d59 12768 LINE=`grep "^wxUSE_NOTEBOOK=" ${wx_arg_cache_file}`
a848cd7e 12769 if test "x$LINE" != x ; then
8630a814
VZ
12770 eval "DEFAULT_$LINE"
12771 cache=yes
12772 else
12773 cache=no
a848cd7e
SC
12774 fi
12775
d970f7d5 12776 wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
a848cd7e 12777
47964710
VS
12778fi
12779
a848cd7e 12780
d970f7d5 12781 eval "$wx_cv_use_notebook"
8743ec79
VZ
12782 if test "x$cache" = xyes; then
12783 echo "wxUSE_NOTEBOOK=$wxUSE_NOTEBOOK" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
12784 fi
12785
6e198e97
VZ
12786 if test x"$enablestring" = xdisable; then
12787 if test $wxUSE_NOTEBOOK = yes; then
12788 result=no
12789 else
12790 result=yes
12791 fi
a848cd7e 12792 else
6e198e97 12793 result=$wxUSE_NOTEBOOK
a848cd7e
SC
12794 fi
12795
47964710
VS
12796 { echo "$as_me:$LINENO: result: $result" >&5
12797echo "${ECHO_T}$result" >&6; }
6e198e97 12798
a848cd7e 12799
077c7880 12800 enablestring=
6e198e97 12801 defaultval=$wxUSE_ALL_FEATURES
238663c1 12802 if test -z "$defaultval"; then
6e198e97
VZ
12803 if test x"$enablestring" = xdisable; then
12804 defaultval=yes
12805 else
12806 defaultval=no
12807 fi
12808 fi
12809
47964710
VS
12810 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
12811echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
12812 # Check whether --enable-odcombobox was given.
a57d600f 12813if test "${enable_odcombobox+set}" = set; then
47964710 12814 enableval=$enable_odcombobox;
642bcba9 12815 if test "$enableval" = yes; then
d970f7d5 12816 wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 12817 else
d970f7d5 12818 wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9 12819 fi
8743ec79 12820 cache=yes
642bcba9
VZ
12821
12822else
12823
b46b1d59 12824 LINE=`grep "^wxUSE_ODCOMBOBOX=" ${wx_arg_cache_file}`
642bcba9 12825 if test "x$LINE" != x ; then
8630a814
VZ
12826 eval "DEFAULT_$LINE"
12827 cache=yes
12828 else
12829 cache=no
642bcba9
VZ
12830 fi
12831
d970f7d5 12832 wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
642bcba9 12833
47964710
VS
12834fi
12835
642bcba9 12836
d970f7d5 12837 eval "$wx_cv_use_odcombobox"
8743ec79
VZ
12838 if test "x$cache" = xyes; then
12839 echo "wxUSE_ODCOMBOBOX=$wxUSE_ODCOMBOBOX" >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
12840 fi
12841
6e198e97
VZ
12842 if test x"$enablestring" = xdisable; then
12843 if test $wxUSE_ODCOMBOBOX = yes; then
12844 result=no
12845 else
12846 result=yes
12847 fi
642bcba9 12848 else
6e198e97 12849 result=$wxUSE_ODCOMBOBOX
642bcba9
VZ
12850 fi
12851
47964710
VS
12852 { echo "$as_me:$LINENO: result: $result" >&5
12853echo "${ECHO_T}$result" >&6; }
6e198e97 12854
642bcba9 12855
077c7880 12856 enablestring=
6e198e97 12857 defaultval=$wxUSE_ALL_FEATURES
238663c1 12858 if test -z "$defaultval"; then
6e198e97
VZ
12859 if test x"$enablestring" = xdisable; then
12860 defaultval=yes
12861 else
12862 defaultval=no
12863 fi
12864 fi
12865
47964710
VS
12866 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
12867echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
12868 # Check whether --enable-radiobox was given.
a848cd7e 12869if test "${enable_radiobox+set}" = set; then
47964710 12870 enableval=$enable_radiobox;
a848cd7e 12871 if test "$enableval" = yes; then
d970f7d5 12872 wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
a848cd7e 12873 else
d970f7d5 12874 wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
a848cd7e 12875 fi
8743ec79 12876 cache=yes
a848cd7e
SC
12877
12878else
12879
b46b1d59 12880 LINE=`grep "^wxUSE_RADIOBOX=" ${wx_arg_cache_file}`
a848cd7e 12881 if test "x$LINE" != x ; then
8630a814
VZ
12882 eval "DEFAULT_$LINE"
12883 cache=yes
12884 else
12885 cache=no
a848cd7e
SC
12886 fi
12887
d970f7d5 12888 wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
a848cd7e 12889
47964710
VS
12890fi
12891
a848cd7e 12892
d970f7d5 12893 eval "$wx_cv_use_radiobox"
8743ec79
VZ
12894 if test "x$cache" = xyes; then
12895 echo "wxUSE_RADIOBOX=$wxUSE_RADIOBOX" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
12896 fi
12897
6e198e97
VZ
12898 if test x"$enablestring" = xdisable; then
12899 if test $wxUSE_RADIOBOX = yes; then
12900 result=no
12901 else
12902 result=yes
12903 fi
a848cd7e 12904 else
6e198e97 12905 result=$wxUSE_RADIOBOX
a848cd7e
SC
12906 fi
12907
47964710
VS
12908 { echo "$as_me:$LINENO: result: $result" >&5
12909echo "${ECHO_T}$result" >&6; }
6e198e97 12910
a848cd7e 12911
077c7880 12912 enablestring=
6e198e97 12913 defaultval=$wxUSE_ALL_FEATURES
238663c1 12914 if test -z "$defaultval"; then
6e198e97
VZ
12915 if test x"$enablestring" = xdisable; then
12916 defaultval=yes
12917 else
12918 defaultval=no
12919 fi
12920 fi
12921
47964710
VS
12922 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
12923echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
12924 # Check whether --enable-radiobtn was given.
a848cd7e 12925if test "${enable_radiobtn+set}" = set; then
47964710 12926 enableval=$enable_radiobtn;
a848cd7e 12927 if test "$enableval" = yes; then
d970f7d5 12928 wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
a848cd7e 12929 else
d970f7d5 12930 wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
a848cd7e 12931 fi
8743ec79 12932 cache=yes
a848cd7e
SC
12933
12934else
12935
b46b1d59 12936 LINE=`grep "^wxUSE_RADIOBTN=" ${wx_arg_cache_file}`
a848cd7e 12937 if test "x$LINE" != x ; then
8630a814
VZ
12938 eval "DEFAULT_$LINE"
12939 cache=yes
12940 else
12941 cache=no
a848cd7e
SC
12942 fi
12943
d970f7d5 12944 wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
a848cd7e 12945
47964710
VS
12946fi
12947
a848cd7e 12948
d970f7d5 12949 eval "$wx_cv_use_radiobtn"
8743ec79
VZ
12950 if test "x$cache" = xyes; then
12951 echo "wxUSE_RADIOBTN=$wxUSE_RADIOBTN" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
12952 fi
12953
6e198e97
VZ
12954 if test x"$enablestring" = xdisable; then
12955 if test $wxUSE_RADIOBTN = yes; then
12956 result=no
12957 else
12958 result=yes
12959 fi
a848cd7e 12960 else
6e198e97 12961 result=$wxUSE_RADIOBTN
a848cd7e
SC
12962 fi
12963
47964710
VS
12964 { echo "$as_me:$LINENO: result: $result" >&5
12965echo "${ECHO_T}$result" >&6; }
6e198e97 12966
a848cd7e 12967
077c7880 12968 enablestring=
6e198e97 12969 defaultval=$wxUSE_ALL_FEATURES
238663c1 12970 if test -z "$defaultval"; then
6e198e97
VZ
12971 if test x"$enablestring" = xdisable; then
12972 defaultval=yes
12973 else
12974 defaultval=no
12975 fi
12976 fi
12977
47964710
VS
12978 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12979echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12980 # Check whether --enable-sash was given.
a848cd7e 12981if test "${enable_sash+set}" = set; then
47964710 12982 enableval=$enable_sash;
a848cd7e 12983 if test "$enableval" = yes; then
d970f7d5 12984 wx_cv_use_sash='wxUSE_SASH=yes'
a848cd7e 12985 else
d970f7d5 12986 wx_cv_use_sash='wxUSE_SASH=no'
a848cd7e 12987 fi
8743ec79 12988 cache=yes
a848cd7e
SC
12989
12990else
12991
b46b1d59 12992 LINE=`grep "^wxUSE_SASH=" ${wx_arg_cache_file}`
a848cd7e 12993 if test "x$LINE" != x ; then
8630a814
VZ
12994 eval "DEFAULT_$LINE"
12995 cache=yes
12996 else
12997 cache=no
a848cd7e
SC
12998 fi
12999
d970f7d5 13000 wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
a848cd7e 13001
47964710
VS
13002fi
13003
a848cd7e 13004
d970f7d5 13005 eval "$wx_cv_use_sash"
8743ec79
VZ
13006 if test "x$cache" = xyes; then
13007 echo "wxUSE_SASH=$wxUSE_SASH" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13008 fi
13009
6e198e97
VZ
13010 if test x"$enablestring" = xdisable; then
13011 if test $wxUSE_SASH = yes; then
13012 result=no
13013 else
13014 result=yes
13015 fi
a848cd7e 13016 else
6e198e97 13017 result=$wxUSE_SASH
a848cd7e
SC
13018 fi
13019
47964710
VS
13020 { echo "$as_me:$LINENO: result: $result" >&5
13021echo "${ECHO_T}$result" >&6; }
6e198e97 13022
a848cd7e 13023
077c7880 13024 enablestring=
6e198e97 13025 defaultval=$wxUSE_ALL_FEATURES
238663c1 13026 if test -z "$defaultval"; then
6e198e97
VZ
13027 if test x"$enablestring" = xdisable; then
13028 defaultval=yes
13029 else
13030 defaultval=no
13031 fi
13032 fi
13033
47964710
VS
13034 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
13035echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
13036 # Check whether --enable-scrollbar was given.
a848cd7e 13037if test "${enable_scrollbar+set}" = set; then
47964710 13038 enableval=$enable_scrollbar;
a848cd7e 13039 if test "$enableval" = yes; then
d970f7d5 13040 wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
a848cd7e 13041 else
d970f7d5 13042 wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
a848cd7e 13043 fi
8743ec79 13044 cache=yes
a848cd7e
SC
13045
13046else
13047
b46b1d59 13048 LINE=`grep "^wxUSE_SCROLLBAR=" ${wx_arg_cache_file}`
a848cd7e 13049 if test "x$LINE" != x ; then
8630a814
VZ
13050 eval "DEFAULT_$LINE"
13051 cache=yes
13052 else
13053 cache=no
a848cd7e
SC
13054 fi
13055
d970f7d5 13056 wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
a848cd7e 13057
47964710
VS
13058fi
13059
a848cd7e 13060
d970f7d5 13061 eval "$wx_cv_use_scrollbar"
8743ec79
VZ
13062 if test "x$cache" = xyes; then
13063 echo "wxUSE_SCROLLBAR=$wxUSE_SCROLLBAR" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13064 fi
13065
6e198e97
VZ
13066 if test x"$enablestring" = xdisable; then
13067 if test $wxUSE_SCROLLBAR = yes; then
13068 result=no
13069 else
13070 result=yes
13071 fi
a848cd7e 13072 else
6e198e97 13073 result=$wxUSE_SCROLLBAR
a848cd7e
SC
13074 fi
13075
47964710
VS
13076 { echo "$as_me:$LINENO: result: $result" >&5
13077echo "${ECHO_T}$result" >&6; }
6e198e97 13078
a848cd7e 13079
077c7880 13080 enablestring=
6e198e97 13081 defaultval=$wxUSE_ALL_FEATURES
238663c1 13082 if test -z "$defaultval"; then
6e198e97
VZ
13083 if test x"$enablestring" = xdisable; then
13084 defaultval=yes
13085 else
13086 defaultval=no
13087 fi
13088 fi
13089
47964710
VS
13090 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
13091echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
13092 # Check whether --enable-searchctrl was given.
3f7f284d 13093if test "${enable_searchctrl+set}" = set; then
47964710 13094 enableval=$enable_searchctrl;
3f7f284d 13095 if test "$enableval" = yes; then
d970f7d5 13096 wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
3f7f284d 13097 else
d970f7d5 13098 wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
3f7f284d 13099 fi
8743ec79 13100 cache=yes
a848cd7e 13101
3f7f284d
RD
13102else
13103
b46b1d59 13104 LINE=`grep "^wxUSE_SEARCHCTRL=" ${wx_arg_cache_file}`
3f7f284d 13105 if test "x$LINE" != x ; then
8630a814
VZ
13106 eval "DEFAULT_$LINE"
13107 cache=yes
13108 else
13109 cache=no
3f7f284d
RD
13110 fi
13111
d970f7d5 13112 wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
3f7f284d 13113
47964710
VS
13114fi
13115
3f7f284d 13116
d970f7d5 13117 eval "$wx_cv_use_searchctrl"
8743ec79
VZ
13118 if test "x$cache" = xyes; then
13119 echo "wxUSE_SEARCHCTRL=$wxUSE_SEARCHCTRL" >> ${wx_arg_cache_file}.tmp
3f7f284d
RD
13120 fi
13121
6e198e97
VZ
13122 if test x"$enablestring" = xdisable; then
13123 if test $wxUSE_SEARCHCTRL = yes; then
13124 result=no
13125 else
13126 result=yes
13127 fi
3f7f284d 13128 else
6e198e97 13129 result=$wxUSE_SEARCHCTRL
3f7f284d
RD
13130 fi
13131
47964710
VS
13132 { echo "$as_me:$LINENO: result: $result" >&5
13133echo "${ECHO_T}$result" >&6; }
6e198e97 13134
3f7f284d
RD
13135
13136 enablestring=
6e198e97 13137 defaultval=$wxUSE_ALL_FEATURES
238663c1 13138 if test -z "$defaultval"; then
6e198e97
VZ
13139 if test x"$enablestring" = xdisable; then
13140 defaultval=yes
13141 else
13142 defaultval=no
13143 fi
13144 fi
13145
47964710
VS
13146 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
13147echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
13148 # Check whether --enable-slider was given.
3f7f284d 13149if test "${enable_slider+set}" = set; then
47964710 13150 enableval=$enable_slider;
a848cd7e 13151 if test "$enableval" = yes; then
d970f7d5 13152 wx_cv_use_slider='wxUSE_SLIDER=yes'
a848cd7e 13153 else
d970f7d5 13154 wx_cv_use_slider='wxUSE_SLIDER=no'
a848cd7e 13155 fi
8743ec79 13156 cache=yes
a848cd7e
SC
13157
13158else
13159
b46b1d59 13160 LINE=`grep "^wxUSE_SLIDER=" ${wx_arg_cache_file}`
a848cd7e 13161 if test "x$LINE" != x ; then
8630a814
VZ
13162 eval "DEFAULT_$LINE"
13163 cache=yes
13164 else
13165 cache=no
a848cd7e
SC
13166 fi
13167
d970f7d5 13168 wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
a848cd7e 13169
47964710
VS
13170fi
13171
a848cd7e 13172
d970f7d5 13173 eval "$wx_cv_use_slider"
8743ec79
VZ
13174 if test "x$cache" = xyes; then
13175 echo "wxUSE_SLIDER=$wxUSE_SLIDER" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13176 fi
13177
6e198e97
VZ
13178 if test x"$enablestring" = xdisable; then
13179 if test $wxUSE_SLIDER = yes; then
13180 result=no
13181 else
13182 result=yes
13183 fi
a848cd7e 13184 else
6e198e97 13185 result=$wxUSE_SLIDER
a848cd7e
SC
13186 fi
13187
47964710
VS
13188 { echo "$as_me:$LINENO: result: $result" >&5
13189echo "${ECHO_T}$result" >&6; }
6e198e97 13190
a848cd7e 13191
077c7880 13192 enablestring=
6e198e97 13193 defaultval=$wxUSE_ALL_FEATURES
238663c1 13194 if test -z "$defaultval"; then
6e198e97
VZ
13195 if test x"$enablestring" = xdisable; then
13196 defaultval=yes
13197 else
13198 defaultval=no
13199 fi
13200 fi
13201
47964710
VS
13202 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
13203echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
13204 # Check whether --enable-spinbtn was given.
a848cd7e 13205if test "${enable_spinbtn+set}" = set; then
47964710 13206 enableval=$enable_spinbtn;
a848cd7e 13207 if test "$enableval" = yes; then
d970f7d5 13208 wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
a848cd7e 13209 else
d970f7d5 13210 wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
a848cd7e 13211 fi
8743ec79 13212 cache=yes
a848cd7e
SC
13213
13214else
13215
b46b1d59 13216 LINE=`grep "^wxUSE_SPINBTN=" ${wx_arg_cache_file}`
a848cd7e 13217 if test "x$LINE" != x ; then
8630a814
VZ
13218 eval "DEFAULT_$LINE"
13219 cache=yes
13220 else
13221 cache=no
a848cd7e
SC
13222 fi
13223
d970f7d5 13224 wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
a848cd7e 13225
47964710
VS
13226fi
13227
a848cd7e 13228
d970f7d5 13229 eval "$wx_cv_use_spinbtn"
8743ec79
VZ
13230 if test "x$cache" = xyes; then
13231 echo "wxUSE_SPINBTN=$wxUSE_SPINBTN" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13232 fi
13233
6e198e97
VZ
13234 if test x"$enablestring" = xdisable; then
13235 if test $wxUSE_SPINBTN = yes; then
13236 result=no
13237 else
13238 result=yes
13239 fi
a848cd7e 13240 else
6e198e97 13241 result=$wxUSE_SPINBTN
a848cd7e
SC
13242 fi
13243
47964710
VS
13244 { echo "$as_me:$LINENO: result: $result" >&5
13245echo "${ECHO_T}$result" >&6; }
6e198e97 13246
a848cd7e 13247
077c7880 13248 enablestring=
6e198e97 13249 defaultval=$wxUSE_ALL_FEATURES
238663c1 13250 if test -z "$defaultval"; then
6e198e97
VZ
13251 if test x"$enablestring" = xdisable; then
13252 defaultval=yes
13253 else
13254 defaultval=no
13255 fi
13256 fi
13257
47964710
VS
13258 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
13259echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
13260 # Check whether --enable-spinctrl was given.
a848cd7e 13261if test "${enable_spinctrl+set}" = set; then
47964710 13262 enableval=$enable_spinctrl;
a848cd7e 13263 if test "$enableval" = yes; then
d970f7d5 13264 wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
a848cd7e 13265 else
d970f7d5 13266 wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
a848cd7e 13267 fi
8743ec79 13268 cache=yes
a848cd7e
SC
13269
13270else
13271
b46b1d59 13272 LINE=`grep "^wxUSE_SPINCTRL=" ${wx_arg_cache_file}`
a848cd7e 13273 if test "x$LINE" != x ; then
8630a814
VZ
13274 eval "DEFAULT_$LINE"
13275 cache=yes
13276 else
13277 cache=no
a848cd7e
SC
13278 fi
13279
d970f7d5 13280 wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
a848cd7e 13281
47964710
VS
13282fi
13283
a848cd7e 13284
d970f7d5 13285 eval "$wx_cv_use_spinctrl"
8743ec79
VZ
13286 if test "x$cache" = xyes; then
13287 echo "wxUSE_SPINCTRL=$wxUSE_SPINCTRL" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13288 fi
13289
6e198e97
VZ
13290 if test x"$enablestring" = xdisable; then
13291 if test $wxUSE_SPINCTRL = yes; then
13292 result=no
13293 else
13294 result=yes
13295 fi
a848cd7e 13296 else
6e198e97 13297 result=$wxUSE_SPINCTRL
a848cd7e
SC
13298 fi
13299
47964710
VS
13300 { echo "$as_me:$LINENO: result: $result" >&5
13301echo "${ECHO_T}$result" >&6; }
6e198e97 13302
a848cd7e 13303
077c7880 13304 enablestring=
6e198e97 13305 defaultval=$wxUSE_ALL_FEATURES
238663c1 13306 if test -z "$defaultval"; then
6e198e97
VZ
13307 if test x"$enablestring" = xdisable; then
13308 defaultval=yes
13309 else
13310 defaultval=no
13311 fi
13312 fi
13313
47964710
VS
13314 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
13315echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
13316 # Check whether --enable-splitter was given.
a848cd7e 13317if test "${enable_splitter+set}" = set; then
47964710 13318 enableval=$enable_splitter;
a848cd7e 13319 if test "$enableval" = yes; then
d970f7d5 13320 wx_cv_use_splitter='wxUSE_SPLITTER=yes'
a848cd7e 13321 else
d970f7d5 13322 wx_cv_use_splitter='wxUSE_SPLITTER=no'
a848cd7e 13323 fi
8743ec79 13324 cache=yes
a848cd7e
SC
13325
13326else
13327
b46b1d59 13328 LINE=`grep "^wxUSE_SPLITTER=" ${wx_arg_cache_file}`
a848cd7e 13329 if test "x$LINE" != x ; then
8630a814
VZ
13330 eval "DEFAULT_$LINE"
13331 cache=yes
13332 else
13333 cache=no
a848cd7e
SC
13334 fi
13335
d970f7d5 13336 wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
a848cd7e 13337
47964710
VS
13338fi
13339
a848cd7e 13340
d970f7d5 13341 eval "$wx_cv_use_splitter"
8743ec79
VZ
13342 if test "x$cache" = xyes; then
13343 echo "wxUSE_SPLITTER=$wxUSE_SPLITTER" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13344 fi
13345
6e198e97
VZ
13346 if test x"$enablestring" = xdisable; then
13347 if test $wxUSE_SPLITTER = yes; then
13348 result=no
13349 else
13350 result=yes
13351 fi
a848cd7e 13352 else
6e198e97 13353 result=$wxUSE_SPLITTER
a848cd7e
SC
13354 fi
13355
47964710
VS
13356 { echo "$as_me:$LINENO: result: $result" >&5
13357echo "${ECHO_T}$result" >&6; }
6e198e97 13358
a848cd7e 13359
077c7880 13360 enablestring=
6e198e97 13361 defaultval=$wxUSE_ALL_FEATURES
238663c1 13362 if test -z "$defaultval"; then
6e198e97
VZ
13363 if test x"$enablestring" = xdisable; then
13364 defaultval=yes
13365 else
13366 defaultval=no
13367 fi
13368 fi
13369
47964710
VS
13370 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
13371echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
13372 # Check whether --enable-statbmp was given.
a848cd7e 13373if test "${enable_statbmp+set}" = set; then
47964710 13374 enableval=$enable_statbmp;
a848cd7e 13375 if test "$enableval" = yes; then
d970f7d5 13376 wx_cv_use_statbmp='wxUSE_STATBMP=yes'
a848cd7e 13377 else
d970f7d5 13378 wx_cv_use_statbmp='wxUSE_STATBMP=no'
a848cd7e 13379 fi
8743ec79 13380 cache=yes
a848cd7e
SC
13381
13382else
13383
b46b1d59 13384 LINE=`grep "^wxUSE_STATBMP=" ${wx_arg_cache_file}`
a848cd7e 13385 if test "x$LINE" != x ; then
8630a814
VZ
13386 eval "DEFAULT_$LINE"
13387 cache=yes
13388 else
13389 cache=no
a848cd7e
SC
13390 fi
13391
d970f7d5 13392 wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
a848cd7e 13393
47964710
VS
13394fi
13395
a848cd7e 13396
d970f7d5 13397 eval "$wx_cv_use_statbmp"
8743ec79
VZ
13398 if test "x$cache" = xyes; then
13399 echo "wxUSE_STATBMP=$wxUSE_STATBMP" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13400 fi
13401
6e198e97
VZ
13402 if test x"$enablestring" = xdisable; then
13403 if test $wxUSE_STATBMP = yes; then
13404 result=no
13405 else
13406 result=yes
13407 fi
a848cd7e 13408 else
6e198e97 13409 result=$wxUSE_STATBMP
a848cd7e
SC
13410 fi
13411
47964710
VS
13412 { echo "$as_me:$LINENO: result: $result" >&5
13413echo "${ECHO_T}$result" >&6; }
6e198e97 13414
a848cd7e 13415
077c7880 13416 enablestring=
6e198e97 13417 defaultval=$wxUSE_ALL_FEATURES
238663c1 13418 if test -z "$defaultval"; then
6e198e97
VZ
13419 if test x"$enablestring" = xdisable; then
13420 defaultval=yes
13421 else
13422 defaultval=no
13423 fi
13424 fi
13425
47964710
VS
13426 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
13427echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
13428 # Check whether --enable-statbox was given.
a848cd7e 13429if test "${enable_statbox+set}" = set; then
47964710 13430 enableval=$enable_statbox;
a848cd7e 13431 if test "$enableval" = yes; then
d970f7d5 13432 wx_cv_use_statbox='wxUSE_STATBOX=yes'
a848cd7e 13433 else
d970f7d5 13434 wx_cv_use_statbox='wxUSE_STATBOX=no'
a848cd7e 13435 fi
8743ec79 13436 cache=yes
a848cd7e
SC
13437
13438else
13439
b46b1d59 13440 LINE=`grep "^wxUSE_STATBOX=" ${wx_arg_cache_file}`
a848cd7e 13441 if test "x$LINE" != x ; then
8630a814
VZ
13442 eval "DEFAULT_$LINE"
13443 cache=yes
13444 else
13445 cache=no
a848cd7e
SC
13446 fi
13447
d970f7d5 13448 wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
a848cd7e 13449
47964710
VS
13450fi
13451
a848cd7e 13452
d970f7d5 13453 eval "$wx_cv_use_statbox"
8743ec79
VZ
13454 if test "x$cache" = xyes; then
13455 echo "wxUSE_STATBOX=$wxUSE_STATBOX" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13456 fi
13457
6e198e97
VZ
13458 if test x"$enablestring" = xdisable; then
13459 if test $wxUSE_STATBOX = yes; then
13460 result=no
13461 else
13462 result=yes
13463 fi
a848cd7e 13464 else
6e198e97 13465 result=$wxUSE_STATBOX
a848cd7e
SC
13466 fi
13467
47964710
VS
13468 { echo "$as_me:$LINENO: result: $result" >&5
13469echo "${ECHO_T}$result" >&6; }
6e198e97 13470
a848cd7e 13471
077c7880 13472 enablestring=
6e198e97 13473 defaultval=$wxUSE_ALL_FEATURES
238663c1 13474 if test -z "$defaultval"; then
6e198e97
VZ
13475 if test x"$enablestring" = xdisable; then
13476 defaultval=yes
13477 else
13478 defaultval=no
13479 fi
13480 fi
13481
47964710
VS
13482 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
13483echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
13484 # Check whether --enable-statline was given.
a848cd7e 13485if test "${enable_statline+set}" = set; then
47964710 13486 enableval=$enable_statline;
a848cd7e 13487 if test "$enableval" = yes; then
d970f7d5 13488 wx_cv_use_statline='wxUSE_STATLINE=yes'
a848cd7e 13489 else
d970f7d5 13490 wx_cv_use_statline='wxUSE_STATLINE=no'
a848cd7e 13491 fi
8743ec79 13492 cache=yes
a848cd7e
SC
13493
13494else
13495
b46b1d59 13496 LINE=`grep "^wxUSE_STATLINE=" ${wx_arg_cache_file}`
a848cd7e 13497 if test "x$LINE" != x ; then
8630a814
VZ
13498 eval "DEFAULT_$LINE"
13499 cache=yes
13500 else
13501 cache=no
a848cd7e
SC
13502 fi
13503
d970f7d5 13504 wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
a848cd7e 13505
47964710
VS
13506fi
13507
a848cd7e 13508
d970f7d5 13509 eval "$wx_cv_use_statline"
8743ec79
VZ
13510 if test "x$cache" = xyes; then
13511 echo "wxUSE_STATLINE=$wxUSE_STATLINE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13512 fi
13513
6e198e97
VZ
13514 if test x"$enablestring" = xdisable; then
13515 if test $wxUSE_STATLINE = yes; then
13516 result=no
13517 else
13518 result=yes
13519 fi
a848cd7e 13520 else
6e198e97 13521 result=$wxUSE_STATLINE
a848cd7e
SC
13522 fi
13523
47964710
VS
13524 { echo "$as_me:$LINENO: result: $result" >&5
13525echo "${ECHO_T}$result" >&6; }
6e198e97 13526
a848cd7e 13527
077c7880 13528 enablestring=
6e198e97 13529 defaultval=$wxUSE_ALL_FEATURES
238663c1 13530 if test -z "$defaultval"; then
6e198e97
VZ
13531 if test x"$enablestring" = xdisable; then
13532 defaultval=yes
13533 else
13534 defaultval=no
13535 fi
13536 fi
13537
47964710
VS
13538 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
13539echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
13540 # Check whether --enable-stattext was given.
a848cd7e 13541if test "${enable_stattext+set}" = set; then
47964710 13542 enableval=$enable_stattext;
a848cd7e 13543 if test "$enableval" = yes; then
d970f7d5 13544 wx_cv_use_stattext='wxUSE_STATTEXT=yes'
a848cd7e 13545 else
d970f7d5 13546 wx_cv_use_stattext='wxUSE_STATTEXT=no'
a848cd7e 13547 fi
8743ec79 13548 cache=yes
a848cd7e
SC
13549
13550else
13551
b46b1d59 13552 LINE=`grep "^wxUSE_STATTEXT=" ${wx_arg_cache_file}`
a848cd7e 13553 if test "x$LINE" != x ; then
8630a814
VZ
13554 eval "DEFAULT_$LINE"
13555 cache=yes
13556 else
13557 cache=no
a848cd7e
SC
13558 fi
13559
d970f7d5 13560 wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
a848cd7e 13561
47964710
VS
13562fi
13563
a848cd7e 13564
d970f7d5 13565 eval "$wx_cv_use_stattext"
8743ec79
VZ
13566 if test "x$cache" = xyes; then
13567 echo "wxUSE_STATTEXT=$wxUSE_STATTEXT" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13568 fi
13569
6e198e97
VZ
13570 if test x"$enablestring" = xdisable; then
13571 if test $wxUSE_STATTEXT = yes; then
13572 result=no
13573 else
13574 result=yes
13575 fi
a848cd7e 13576 else
6e198e97 13577 result=$wxUSE_STATTEXT
a848cd7e
SC
13578 fi
13579
47964710
VS
13580 { echo "$as_me:$LINENO: result: $result" >&5
13581echo "${ECHO_T}$result" >&6; }
6e198e97 13582
a848cd7e 13583
077c7880 13584 enablestring=
6e198e97 13585 defaultval=$wxUSE_ALL_FEATURES
238663c1 13586 if test -z "$defaultval"; then
6e198e97
VZ
13587 if test x"$enablestring" = xdisable; then
13588 defaultval=yes
13589 else
13590 defaultval=no
13591 fi
13592 fi
13593
47964710
VS
13594 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
13595echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
13596 # Check whether --enable-statusbar was given.
a848cd7e 13597if test "${enable_statusbar+set}" = set; then
47964710 13598 enableval=$enable_statusbar;
a848cd7e 13599 if test "$enableval" = yes; then
d970f7d5 13600 wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
a848cd7e 13601 else
d970f7d5 13602 wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
a848cd7e 13603 fi
8743ec79 13604 cache=yes
a848cd7e
SC
13605
13606else
13607
b46b1d59 13608 LINE=`grep "^wxUSE_STATUSBAR=" ${wx_arg_cache_file}`
a848cd7e 13609 if test "x$LINE" != x ; then
8630a814
VZ
13610 eval "DEFAULT_$LINE"
13611 cache=yes
13612 else
13613 cache=no
a848cd7e
SC
13614 fi
13615
d970f7d5 13616 wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
a848cd7e 13617
47964710
VS
13618fi
13619
a848cd7e 13620
d970f7d5 13621 eval "$wx_cv_use_statusbar"
8743ec79
VZ
13622 if test "x$cache" = xyes; then
13623 echo "wxUSE_STATUSBAR=$wxUSE_STATUSBAR" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13624 fi
13625
6e198e97
VZ
13626 if test x"$enablestring" = xdisable; then
13627 if test $wxUSE_STATUSBAR = yes; then
13628 result=no
13629 else
13630 result=yes
13631 fi
a848cd7e 13632 else
6e198e97 13633 result=$wxUSE_STATUSBAR
a848cd7e
SC
13634 fi
13635
47964710
VS
13636 { echo "$as_me:$LINENO: result: $result" >&5
13637echo "${ECHO_T}$result" >&6; }
6e198e97 13638
a848cd7e 13639
077c7880 13640 enablestring=
6e198e97 13641 defaultval=$wxUSE_ALL_FEATURES
238663c1 13642 if test -z "$defaultval"; then
6e198e97
VZ
13643 if test x"$enablestring" = xdisable; then
13644 defaultval=yes
13645 else
13646 defaultval=no
13647 fi
13648 fi
13649
47964710
VS
13650 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
13651echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
13652 # Check whether --enable-tabdialog was given.
a848cd7e 13653if test "${enable_tabdialog+set}" = set; then
47964710 13654 enableval=$enable_tabdialog;
a848cd7e 13655 if test "$enableval" = yes; then
d970f7d5 13656 wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 13657 else
d970f7d5 13658 wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e 13659 fi
8743ec79 13660 cache=yes
a848cd7e
SC
13661
13662else
13663
b46b1d59 13664 LINE=`grep "^wxUSE_TAB_DIALOG=" ${wx_arg_cache_file}`
a848cd7e 13665 if test "x$LINE" != x ; then
8630a814
VZ
13666 eval "DEFAULT_$LINE"
13667 cache=yes
13668 else
13669 cache=no
a848cd7e
SC
13670 fi
13671
d970f7d5 13672 wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
a848cd7e 13673
47964710
VS
13674fi
13675
a848cd7e 13676
d970f7d5 13677 eval "$wx_cv_use_tabdialog"
8743ec79
VZ
13678 if test "x$cache" = xyes; then
13679 echo "wxUSE_TAB_DIALOG=$wxUSE_TAB_DIALOG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13680 fi
13681
6e198e97
VZ
13682 if test x"$enablestring" = xdisable; then
13683 if test $wxUSE_TAB_DIALOG = yes; then
13684 result=no
13685 else
13686 result=yes
13687 fi
a848cd7e 13688 else
6e198e97 13689 result=$wxUSE_TAB_DIALOG
a848cd7e
SC
13690 fi
13691
47964710
VS
13692 { echo "$as_me:$LINENO: result: $result" >&5
13693echo "${ECHO_T}$result" >&6; }
6e198e97 13694
a848cd7e 13695
4f167b46
VZ
13696 enablestring=
13697 defaultval=$wxUSE_ALL_FEATURES
13698 if test -z "$defaultval"; then
13699 if test x"$enablestring" = xdisable; then
13700 defaultval=yes
13701 else
13702 defaultval=no
13703 fi
13704 fi
13705
47964710
VS
13706 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
13707echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
13708 # Check whether --enable-taskbaricon was given.
4f167b46 13709if test "${enable_taskbaricon+set}" = set; then
47964710 13710 enableval=$enable_taskbaricon;
4f167b46
VZ
13711 if test "$enableval" = yes; then
13712 wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
13713 else
13714 wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
13715 fi
8743ec79 13716 cache=yes
4f167b46
VZ
13717
13718else
13719
13720 LINE=`grep "^wxUSE_TASKBARICON=" ${wx_arg_cache_file}`
13721 if test "x$LINE" != x ; then
8630a814
VZ
13722 eval "DEFAULT_$LINE"
13723 cache=yes
13724 else
13725 cache=no
4f167b46
VZ
13726 fi
13727
13728 wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
13729
47964710
VS
13730fi
13731
4f167b46
VZ
13732
13733 eval "$wx_cv_use_taskbaricon"
8743ec79
VZ
13734 if test "x$cache" = xyes; then
13735 echo "wxUSE_TASKBARICON=$wxUSE_TASKBARICON" >> ${wx_arg_cache_file}.tmp
4f167b46
VZ
13736 fi
13737
13738 if test x"$enablestring" = xdisable; then
13739 if test $wxUSE_TASKBARICON = yes; then
13740 result=no
13741 else
13742 result=yes
13743 fi
13744 else
13745 result=$wxUSE_TASKBARICON
13746 fi
13747
47964710
VS
13748 { echo "$as_me:$LINENO: result: $result" >&5
13749echo "${ECHO_T}$result" >&6; }
4f167b46
VZ
13750
13751
077c7880 13752 enablestring=
6e198e97 13753 defaultval=$wxUSE_ALL_FEATURES
238663c1 13754 if test -z "$defaultval"; then
6e198e97
VZ
13755 if test x"$enablestring" = xdisable; then
13756 defaultval=yes
13757 else
13758 defaultval=no
13759 fi
13760 fi
13761
47964710
VS
13762 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
13763echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
13764 # Check whether --enable-textctrl was given.
a848cd7e 13765if test "${enable_textctrl+set}" = set; then
47964710 13766 enableval=$enable_textctrl;
a848cd7e 13767 if test "$enableval" = yes; then
d970f7d5 13768 wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
a848cd7e 13769 else
d970f7d5 13770 wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
a848cd7e 13771 fi
8743ec79 13772 cache=yes
a848cd7e
SC
13773
13774else
13775
b46b1d59 13776 LINE=`grep "^wxUSE_TEXTCTRL=" ${wx_arg_cache_file}`
a848cd7e 13777 if test "x$LINE" != x ; then
8630a814
VZ
13778 eval "DEFAULT_$LINE"
13779 cache=yes
13780 else
13781 cache=no
a848cd7e
SC
13782 fi
13783
d970f7d5 13784 wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
a848cd7e 13785
47964710
VS
13786fi
13787
a848cd7e 13788
d970f7d5 13789 eval "$wx_cv_use_textctrl"
8743ec79
VZ
13790 if test "x$cache" = xyes; then
13791 echo "wxUSE_TEXTCTRL=$wxUSE_TEXTCTRL" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13792 fi
13793
6e198e97
VZ
13794 if test x"$enablestring" = xdisable; then
13795 if test $wxUSE_TEXTCTRL = yes; then
13796 result=no
13797 else
13798 result=yes
13799 fi
a848cd7e 13800 else
6e198e97 13801 result=$wxUSE_TEXTCTRL
a848cd7e
SC
13802 fi
13803
47964710
VS
13804 { echo "$as_me:$LINENO: result: $result" >&5
13805echo "${ECHO_T}$result" >&6; }
6e198e97 13806
a848cd7e 13807
077c7880 13808 enablestring=
6e198e97 13809 defaultval=$wxUSE_ALL_FEATURES
238663c1 13810 if test -z "$defaultval"; then
6e198e97
VZ
13811 if test x"$enablestring" = xdisable; then
13812 defaultval=yes
13813 else
13814 defaultval=no
13815 fi
13816 fi
13817
47964710
VS
13818 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
13819echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
13820 # Check whether --enable-togglebtn was given.
a848cd7e 13821if test "${enable_togglebtn+set}" = set; then
47964710 13822 enableval=$enable_togglebtn;
a848cd7e 13823 if test "$enableval" = yes; then
d970f7d5 13824 wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
a848cd7e 13825 else
d970f7d5 13826 wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
a848cd7e 13827 fi
8743ec79 13828 cache=yes
a848cd7e
SC
13829
13830else
13831
b46b1d59 13832 LINE=`grep "^wxUSE_TOGGLEBTN=" ${wx_arg_cache_file}`
a848cd7e 13833 if test "x$LINE" != x ; then
8630a814
VZ
13834 eval "DEFAULT_$LINE"
13835 cache=yes
13836 else
13837 cache=no
a848cd7e
SC
13838 fi
13839
d970f7d5 13840 wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
a848cd7e 13841
47964710
VS
13842fi
13843
a848cd7e 13844
d970f7d5 13845 eval "$wx_cv_use_togglebtn"
8743ec79
VZ
13846 if test "x$cache" = xyes; then
13847 echo "wxUSE_TOGGLEBTN=$wxUSE_TOGGLEBTN" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13848 fi
13849
6e198e97
VZ
13850 if test x"$enablestring" = xdisable; then
13851 if test $wxUSE_TOGGLEBTN = yes; then
13852 result=no
13853 else
13854 result=yes
13855 fi
a848cd7e 13856 else
6e198e97 13857 result=$wxUSE_TOGGLEBTN
a848cd7e
SC
13858 fi
13859
47964710
VS
13860 { echo "$as_me:$LINENO: result: $result" >&5
13861echo "${ECHO_T}$result" >&6; }
6e198e97 13862
a848cd7e 13863
077c7880 13864 enablestring=
6e198e97 13865 defaultval=$wxUSE_ALL_FEATURES
238663c1 13866 if test -z "$defaultval"; then
6e198e97
VZ
13867 if test x"$enablestring" = xdisable; then
13868 defaultval=yes
13869 else
13870 defaultval=no
13871 fi
13872 fi
13873
47964710
VS
13874 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
13875echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
13876 # Check whether --enable-toolbar was given.
a848cd7e 13877if test "${enable_toolbar+set}" = set; then
47964710 13878 enableval=$enable_toolbar;
a848cd7e 13879 if test "$enableval" = yes; then
d970f7d5 13880 wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
a848cd7e 13881 else
d970f7d5 13882 wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
a848cd7e 13883 fi
8743ec79 13884 cache=yes
a848cd7e
SC
13885
13886else
13887
b46b1d59 13888 LINE=`grep "^wxUSE_TOOLBAR=" ${wx_arg_cache_file}`
a848cd7e 13889 if test "x$LINE" != x ; then
8630a814
VZ
13890 eval "DEFAULT_$LINE"
13891 cache=yes
13892 else
13893 cache=no
a848cd7e
SC
13894 fi
13895
d970f7d5 13896 wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
a848cd7e 13897
47964710
VS
13898fi
13899
a848cd7e 13900
d970f7d5 13901 eval "$wx_cv_use_toolbar"
8743ec79
VZ
13902 if test "x$cache" = xyes; then
13903 echo "wxUSE_TOOLBAR=$wxUSE_TOOLBAR" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13904 fi
13905
6e198e97
VZ
13906 if test x"$enablestring" = xdisable; then
13907 if test $wxUSE_TOOLBAR = yes; then
13908 result=no
13909 else
13910 result=yes
13911 fi
a848cd7e 13912 else
6e198e97 13913 result=$wxUSE_TOOLBAR
a848cd7e
SC
13914 fi
13915
47964710
VS
13916 { echo "$as_me:$LINENO: result: $result" >&5
13917echo "${ECHO_T}$result" >&6; }
6e198e97 13918
a848cd7e 13919
077c7880 13920 enablestring=
6e198e97 13921 defaultval=$wxUSE_ALL_FEATURES
238663c1 13922 if test -z "$defaultval"; then
6e198e97
VZ
13923 if test x"$enablestring" = xdisable; then
13924 defaultval=yes
13925 else
13926 defaultval=no
13927 fi
13928 fi
13929
47964710
VS
13930 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
13931echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
13932 # Check whether --enable-tbarnative was given.
a848cd7e 13933if test "${enable_tbarnative+set}" = set; then
47964710 13934 enableval=$enable_tbarnative;
a848cd7e 13935 if test "$enableval" = yes; then
d970f7d5 13936 wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
a848cd7e 13937 else
d970f7d5 13938 wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
a848cd7e 13939 fi
8743ec79 13940 cache=yes
a848cd7e
SC
13941
13942else
13943
b46b1d59 13944 LINE=`grep "^wxUSE_TOOLBAR_NATIVE=" ${wx_arg_cache_file}`
a848cd7e 13945 if test "x$LINE" != x ; then
8630a814
VZ
13946 eval "DEFAULT_$LINE"
13947 cache=yes
13948 else
13949 cache=no
a848cd7e
SC
13950 fi
13951
d970f7d5 13952 wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
a848cd7e 13953
47964710
VS
13954fi
13955
a848cd7e 13956
d970f7d5 13957 eval "$wx_cv_use_tbarnative"
8743ec79
VZ
13958 if test "x$cache" = xyes; then
13959 echo "wxUSE_TOOLBAR_NATIVE=$wxUSE_TOOLBAR_NATIVE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
13960 fi
13961
6e198e97
VZ
13962 if test x"$enablestring" = xdisable; then
13963 if test $wxUSE_TOOLBAR_NATIVE = yes; then
13964 result=no
13965 else
13966 result=yes
13967 fi
a848cd7e 13968 else
6e198e97 13969 result=$wxUSE_TOOLBAR_NATIVE
a848cd7e
SC
13970 fi
13971
47964710
VS
13972 { echo "$as_me:$LINENO: result: $result" >&5
13973echo "${ECHO_T}$result" >&6; }
6e198e97 13974
a848cd7e 13975
077c7880 13976 enablestring=
6e198e97 13977 defaultval=$wxUSE_ALL_FEATURES
238663c1 13978 if test -z "$defaultval"; then
6e198e97
VZ
13979 if test x"$enablestring" = xdisable; then
13980 defaultval=yes
13981 else
13982 defaultval=no
13983 fi
13984 fi
13985
47964710
VS
13986 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
13987echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
13988 # Check whether --enable-treebook was given.
0093c2fc 13989if test "${enable_treebook+set}" = set; then
47964710 13990 enableval=$enable_treebook;
0093c2fc 13991 if test "$enableval" = yes; then
d970f7d5 13992 wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
0093c2fc 13993 else
d970f7d5 13994 wx_cv_use_treebook='wxUSE_TREEBOOK=no'
0093c2fc 13995 fi
8743ec79 13996 cache=yes
0093c2fc
VZ
13997
13998else
13999
b46b1d59 14000 LINE=`grep "^wxUSE_TREEBOOK=" ${wx_arg_cache_file}`
0093c2fc 14001 if test "x$LINE" != x ; then
8630a814
VZ
14002 eval "DEFAULT_$LINE"
14003 cache=yes
14004 else
14005 cache=no
0093c2fc
VZ
14006 fi
14007
d970f7d5 14008 wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
0093c2fc 14009
47964710
VS
14010fi
14011
0093c2fc 14012
d970f7d5 14013 eval "$wx_cv_use_treebook"
8743ec79
VZ
14014 if test "x$cache" = xyes; then
14015 echo "wxUSE_TREEBOOK=$wxUSE_TREEBOOK" >> ${wx_arg_cache_file}.tmp
0093c2fc
VZ
14016 fi
14017
6e198e97
VZ
14018 if test x"$enablestring" = xdisable; then
14019 if test $wxUSE_TREEBOOK = yes; then
14020 result=no
14021 else
14022 result=yes
14023 fi
0093c2fc 14024 else
6e198e97 14025 result=$wxUSE_TREEBOOK
0093c2fc
VZ
14026 fi
14027
47964710
VS
14028 { echo "$as_me:$LINENO: result: $result" >&5
14029echo "${ECHO_T}$result" >&6; }
6e198e97 14030
0093c2fc 14031
077c7880 14032 enablestring=
6e198e97 14033 defaultval=$wxUSE_ALL_FEATURES
238663c1 14034 if test -z "$defaultval"; then
6e198e97
VZ
14035 if test x"$enablestring" = xdisable; then
14036 defaultval=yes
14037 else
14038 defaultval=no
14039 fi
14040 fi
14041
47964710
VS
14042 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
14043echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
14044 # Check whether --enable-toolbook was given.
5ec3bc43 14045if test "${enable_toolbook+set}" = set; then
47964710 14046 enableval=$enable_toolbook;
5ec3bc43 14047 if test "$enableval" = yes; then
d970f7d5 14048 wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
5ec3bc43 14049 else
d970f7d5 14050 wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
5ec3bc43 14051 fi
8743ec79 14052 cache=yes
5ec3bc43
JS
14053
14054else
14055
b46b1d59 14056 LINE=`grep "^wxUSE_TOOLBOOK=" ${wx_arg_cache_file}`
5ec3bc43 14057 if test "x$LINE" != x ; then
8630a814
VZ
14058 eval "DEFAULT_$LINE"
14059 cache=yes
14060 else
14061 cache=no
5ec3bc43
JS
14062 fi
14063
d970f7d5 14064 wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
5ec3bc43 14065
47964710
VS
14066fi
14067
5ec3bc43 14068
d970f7d5 14069 eval "$wx_cv_use_toolbook"
8743ec79
VZ
14070 if test "x$cache" = xyes; then
14071 echo "wxUSE_TOOLBOOK=$wxUSE_TOOLBOOK" >> ${wx_arg_cache_file}.tmp
5ec3bc43
JS
14072 fi
14073
6e198e97
VZ
14074 if test x"$enablestring" = xdisable; then
14075 if test $wxUSE_TOOLBOOK = yes; then
14076 result=no
14077 else
14078 result=yes
14079 fi
5ec3bc43 14080 else
6e198e97 14081 result=$wxUSE_TOOLBOOK
5ec3bc43
JS
14082 fi
14083
47964710
VS
14084 { echo "$as_me:$LINENO: result: $result" >&5
14085echo "${ECHO_T}$result" >&6; }
6e198e97 14086
5ec3bc43 14087
077c7880 14088 enablestring=
6e198e97 14089 defaultval=$wxUSE_ALL_FEATURES
238663c1 14090 if test -z "$defaultval"; then
6e198e97
VZ
14091 if test x"$enablestring" = xdisable; then
14092 defaultval=yes
14093 else
14094 defaultval=no
14095 fi
14096 fi
14097
47964710
VS
14098 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
14099echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
14100 # Check whether --enable-treectrl was given.
a848cd7e 14101if test "${enable_treectrl+set}" = set; then
47964710 14102 enableval=$enable_treectrl;
a848cd7e 14103 if test "$enableval" = yes; then
d970f7d5 14104 wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
a848cd7e 14105 else
d970f7d5 14106 wx_cv_use_treectrl='wxUSE_TREECTRL=no'
a848cd7e 14107 fi
8743ec79 14108 cache=yes
a848cd7e
SC
14109
14110else
14111
b46b1d59 14112 LINE=`grep "^wxUSE_TREECTRL=" ${wx_arg_cache_file}`
a848cd7e 14113 if test "x$LINE" != x ; then
8630a814
VZ
14114 eval "DEFAULT_$LINE"
14115 cache=yes
14116 else
14117 cache=no
a848cd7e
SC
14118 fi
14119
d970f7d5 14120 wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
a848cd7e 14121
47964710
VS
14122fi
14123
a848cd7e 14124
d970f7d5 14125 eval "$wx_cv_use_treectrl"
8743ec79
VZ
14126 if test "x$cache" = xyes; then
14127 echo "wxUSE_TREECTRL=$wxUSE_TREECTRL" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14128 fi
14129
6e198e97
VZ
14130 if test x"$enablestring" = xdisable; then
14131 if test $wxUSE_TREECTRL = yes; then
14132 result=no
14133 else
14134 result=yes
14135 fi
a848cd7e 14136 else
6e198e97 14137 result=$wxUSE_TREECTRL
a848cd7e
SC
14138 fi
14139
47964710
VS
14140 { echo "$as_me:$LINENO: result: $result" >&5
14141echo "${ECHO_T}$result" >&6; }
6e198e97 14142
a848cd7e 14143
077c7880 14144 enablestring=
6e198e97 14145 defaultval=$wxUSE_ALL_FEATURES
238663c1 14146 if test -z "$defaultval"; then
6e198e97
VZ
14147 if test x"$enablestring" = xdisable; then
14148 defaultval=yes
14149 else
14150 defaultval=no
14151 fi
14152 fi
14153
47964710
VS
14154 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
14155echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
14156 # Check whether --enable-tipwindow was given.
a848cd7e 14157if test "${enable_tipwindow+set}" = set; then
47964710 14158 enableval=$enable_tipwindow;
a848cd7e 14159 if test "$enableval" = yes; then
d970f7d5 14160 wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
a848cd7e 14161 else
d970f7d5 14162 wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
a848cd7e 14163 fi
8743ec79 14164 cache=yes
a848cd7e
SC
14165
14166else
14167
b46b1d59 14168 LINE=`grep "^wxUSE_TIPWINDOW=" ${wx_arg_cache_file}`
a848cd7e 14169 if test "x$LINE" != x ; then
8630a814
VZ
14170 eval "DEFAULT_$LINE"
14171 cache=yes
14172 else
14173 cache=no
a848cd7e
SC
14174 fi
14175
d970f7d5 14176 wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
a848cd7e 14177
47964710
VS
14178fi
14179
a848cd7e 14180
d970f7d5 14181 eval "$wx_cv_use_tipwindow"
8743ec79
VZ
14182 if test "x$cache" = xyes; then
14183 echo "wxUSE_TIPWINDOW=$wxUSE_TIPWINDOW" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14184 fi
14185
6e198e97
VZ
14186 if test x"$enablestring" = xdisable; then
14187 if test $wxUSE_TIPWINDOW = yes; then
14188 result=no
14189 else
14190 result=yes
14191 fi
a848cd7e 14192 else
6e198e97 14193 result=$wxUSE_TIPWINDOW
a848cd7e
SC
14194 fi
14195
47964710
VS
14196 { echo "$as_me:$LINENO: result: $result" >&5
14197echo "${ECHO_T}$result" >&6; }
6e198e97 14198
a848cd7e 14199
077c7880 14200 enablestring=
6e198e97 14201 defaultval=$wxUSE_ALL_FEATURES
238663c1 14202 if test -z "$defaultval"; then
6e198e97
VZ
14203 if test x"$enablestring" = xdisable; then
14204 defaultval=yes
14205 else
14206 defaultval=no
14207 fi
14208 fi
14209
47964710
VS
14210 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
14211echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
14212 # Check whether --enable-popupwin was given.
a848cd7e 14213if test "${enable_popupwin+set}" = set; then
47964710 14214 enableval=$enable_popupwin;
a848cd7e 14215 if test "$enableval" = yes; then
d970f7d5 14216 wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
a848cd7e 14217 else
d970f7d5 14218 wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
a848cd7e 14219 fi
8743ec79 14220 cache=yes
a848cd7e
SC
14221
14222else
14223
b46b1d59 14224 LINE=`grep "^wxUSE_POPUPWIN=" ${wx_arg_cache_file}`
a848cd7e 14225 if test "x$LINE" != x ; then
8630a814
VZ
14226 eval "DEFAULT_$LINE"
14227 cache=yes
14228 else
14229 cache=no
a848cd7e
SC
14230 fi
14231
d970f7d5 14232 wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
a848cd7e 14233
47964710
VS
14234fi
14235
a848cd7e 14236
d970f7d5 14237 eval "$wx_cv_use_popupwin"
8743ec79
VZ
14238 if test "x$cache" = xyes; then
14239 echo "wxUSE_POPUPWIN=$wxUSE_POPUPWIN" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14240 fi
14241
6e198e97
VZ
14242 if test x"$enablestring" = xdisable; then
14243 if test $wxUSE_POPUPWIN = yes; then
14244 result=no
14245 else
14246 result=yes
14247 fi
a848cd7e 14248 else
6e198e97 14249 result=$wxUSE_POPUPWIN
a848cd7e
SC
14250 fi
14251
47964710
VS
14252 { echo "$as_me:$LINENO: result: $result" >&5
14253echo "${ECHO_T}$result" >&6; }
6e198e97 14254
a848cd7e
SC
14255
14256
14257
077c7880 14258 enablestring=
6e198e97 14259 defaultval=$wxUSE_ALL_FEATURES
238663c1 14260 if test -z "$defaultval"; then
6e198e97
VZ
14261 if test x"$enablestring" = xdisable; then
14262 defaultval=yes
14263 else
14264 defaultval=no
14265 fi
14266 fi
14267
47964710
VS
14268 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
14269echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
14270 # Check whether --enable-commondlg was given.
a848cd7e 14271if test "${enable_commondlg+set}" = set; then
47964710 14272 enableval=$enable_commondlg;
a848cd7e 14273 if test "$enableval" = yes; then
d970f7d5 14274 wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
a848cd7e 14275 else
d970f7d5 14276 wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
a848cd7e 14277 fi
8743ec79 14278 cache=yes
a848cd7e
SC
14279
14280else
14281
b46b1d59 14282 LINE=`grep "^wxUSE_COMMONDLGS=" ${wx_arg_cache_file}`
a848cd7e 14283 if test "x$LINE" != x ; then
8630a814
VZ
14284 eval "DEFAULT_$LINE"
14285 cache=yes
14286 else
14287 cache=no
a848cd7e
SC
14288 fi
14289
d970f7d5 14290 wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
a848cd7e 14291
47964710
VS
14292fi
14293
a848cd7e 14294
d970f7d5 14295 eval "$wx_cv_use_commondlg"
8743ec79
VZ
14296 if test "x$cache" = xyes; then
14297 echo "wxUSE_COMMONDLGS=$wxUSE_COMMONDLGS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14298 fi
14299
6e198e97
VZ
14300 if test x"$enablestring" = xdisable; then
14301 if test $wxUSE_COMMONDLGS = yes; then
14302 result=no
14303 else
14304 result=yes
14305 fi
a848cd7e 14306 else
6e198e97 14307 result=$wxUSE_COMMONDLGS
a848cd7e
SC
14308 fi
14309
47964710
VS
14310 { echo "$as_me:$LINENO: result: $result" >&5
14311echo "${ECHO_T}$result" >&6; }
6e198e97 14312
a848cd7e 14313
077c7880 14314 enablestring=
6e198e97 14315 defaultval=$wxUSE_ALL_FEATURES
238663c1 14316 if test -z "$defaultval"; then
6e198e97
VZ
14317 if test x"$enablestring" = xdisable; then
14318 defaultval=yes
14319 else
14320 defaultval=no
14321 fi
14322 fi
14323
47964710
VS
14324 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
14325echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
14326 # Check whether --enable-aboutdlg was given.
319c5ed4 14327if test "${enable_aboutdlg+set}" = set; then
47964710 14328 enableval=$enable_aboutdlg;
319c5ed4 14329 if test "$enableval" = yes; then
d970f7d5 14330 wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
319c5ed4 14331 else
d970f7d5 14332 wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
319c5ed4 14333 fi
8743ec79 14334 cache=yes
319c5ed4
VZ
14335
14336else
14337
b46b1d59 14338 LINE=`grep "^wxUSE_ABOUTDLG=" ${wx_arg_cache_file}`
319c5ed4 14339 if test "x$LINE" != x ; then
8630a814
VZ
14340 eval "DEFAULT_$LINE"
14341 cache=yes
14342 else
14343 cache=no
319c5ed4
VZ
14344 fi
14345
d970f7d5 14346 wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
319c5ed4 14347
47964710
VS
14348fi
14349
319c5ed4 14350
d970f7d5 14351 eval "$wx_cv_use_aboutdlg"
8743ec79
VZ
14352 if test "x$cache" = xyes; then
14353 echo "wxUSE_ABOUTDLG=$wxUSE_ABOUTDLG" >> ${wx_arg_cache_file}.tmp
319c5ed4
VZ
14354 fi
14355
6e198e97
VZ
14356 if test x"$enablestring" = xdisable; then
14357 if test $wxUSE_ABOUTDLG = yes; then
14358 result=no
14359 else
14360 result=yes
14361 fi
319c5ed4 14362 else
6e198e97 14363 result=$wxUSE_ABOUTDLG
319c5ed4
VZ
14364 fi
14365
47964710
VS
14366 { echo "$as_me:$LINENO: result: $result" >&5
14367echo "${ECHO_T}$result" >&6; }
6e198e97 14368
319c5ed4 14369
077c7880 14370 enablestring=
6e198e97 14371 defaultval=$wxUSE_ALL_FEATURES
238663c1 14372 if test -z "$defaultval"; then
6e198e97
VZ
14373 if test x"$enablestring" = xdisable; then
14374 defaultval=yes
14375 else
14376 defaultval=no
14377 fi
14378 fi
14379
47964710
VS
14380 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
14381echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
14382 # Check whether --enable-choicedlg was given.
a848cd7e 14383if test "${enable_choicedlg+set}" = set; then
47964710 14384 enableval=$enable_choicedlg;
a848cd7e 14385 if test "$enableval" = yes; then
d970f7d5 14386 wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
a848cd7e 14387 else
d970f7d5 14388 wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
a848cd7e 14389 fi
8743ec79 14390 cache=yes
a848cd7e
SC
14391
14392else
14393
b46b1d59 14394 LINE=`grep "^wxUSE_CHOICEDLG=" ${wx_arg_cache_file}`
a848cd7e 14395 if test "x$LINE" != x ; then
8630a814
VZ
14396 eval "DEFAULT_$LINE"
14397 cache=yes
14398 else
14399 cache=no
a848cd7e
SC
14400 fi
14401
d970f7d5 14402 wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
a848cd7e 14403
47964710
VS
14404fi
14405
a848cd7e 14406
d970f7d5 14407 eval "$wx_cv_use_choicedlg"
8743ec79
VZ
14408 if test "x$cache" = xyes; then
14409 echo "wxUSE_CHOICEDLG=$wxUSE_CHOICEDLG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14410 fi
14411
6e198e97
VZ
14412 if test x"$enablestring" = xdisable; then
14413 if test $wxUSE_CHOICEDLG = yes; then
14414 result=no
14415 else
14416 result=yes
14417 fi
a848cd7e 14418 else
6e198e97 14419 result=$wxUSE_CHOICEDLG
a848cd7e
SC
14420 fi
14421
47964710
VS
14422 { echo "$as_me:$LINENO: result: $result" >&5
14423echo "${ECHO_T}$result" >&6; }
6e198e97 14424
a848cd7e 14425
077c7880 14426 enablestring=
6e198e97 14427 defaultval=$wxUSE_ALL_FEATURES
238663c1 14428 if test -z "$defaultval"; then
6e198e97
VZ
14429 if test x"$enablestring" = xdisable; then
14430 defaultval=yes
14431 else
14432 defaultval=no
14433 fi
14434 fi
14435
47964710
VS
14436 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
14437echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
14438 # Check whether --enable-coldlg was given.
a848cd7e 14439if test "${enable_coldlg+set}" = set; then
47964710 14440 enableval=$enable_coldlg;
a848cd7e 14441 if test "$enableval" = yes; then
d970f7d5 14442 wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
a848cd7e 14443 else
d970f7d5 14444 wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
a848cd7e 14445 fi
8743ec79 14446 cache=yes
a848cd7e
SC
14447
14448else
14449
b46b1d59 14450 LINE=`grep "^wxUSE_COLOURDLG=" ${wx_arg_cache_file}`
a848cd7e 14451 if test "x$LINE" != x ; then
8630a814
VZ
14452 eval "DEFAULT_$LINE"
14453 cache=yes
14454 else
14455 cache=no
a848cd7e
SC
14456 fi
14457
d970f7d5 14458 wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
a848cd7e 14459
47964710
VS
14460fi
14461
a848cd7e 14462
d970f7d5 14463 eval "$wx_cv_use_coldlg"
8743ec79
VZ
14464 if test "x$cache" = xyes; then
14465 echo "wxUSE_COLOURDLG=$wxUSE_COLOURDLG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14466 fi
14467
6e198e97
VZ
14468 if test x"$enablestring" = xdisable; then
14469 if test $wxUSE_COLOURDLG = yes; then
14470 result=no
14471 else
14472 result=yes
14473 fi
a848cd7e 14474 else
6e198e97 14475 result=$wxUSE_COLOURDLG
a848cd7e
SC
14476 fi
14477
47964710
VS
14478 { echo "$as_me:$LINENO: result: $result" >&5
14479echo "${ECHO_T}$result" >&6; }
6e198e97 14480
a848cd7e 14481
077c7880 14482 enablestring=
6e198e97 14483 defaultval=$wxUSE_ALL_FEATURES
238663c1 14484 if test -z "$defaultval"; then
6e198e97
VZ
14485 if test x"$enablestring" = xdisable; then
14486 defaultval=yes
14487 else
14488 defaultval=no
14489 fi
14490 fi
14491
47964710
VS
14492 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
14493echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
14494 # Check whether --enable-filedlg was given.
a848cd7e 14495if test "${enable_filedlg+set}" = set; then
47964710 14496 enableval=$enable_filedlg;
a848cd7e 14497 if test "$enableval" = yes; then
d970f7d5 14498 wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
a848cd7e 14499 else
d970f7d5 14500 wx_cv_use_filedlg='wxUSE_FILEDLG=no'
a848cd7e 14501 fi
8743ec79 14502 cache=yes
a848cd7e
SC
14503
14504else
14505
b46b1d59 14506 LINE=`grep "^wxUSE_FILEDLG=" ${wx_arg_cache_file}`
a848cd7e 14507 if test "x$LINE" != x ; then
8630a814
VZ
14508 eval "DEFAULT_$LINE"
14509 cache=yes
14510 else
14511 cache=no
a848cd7e
SC
14512 fi
14513
d970f7d5 14514 wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
a848cd7e 14515
47964710
VS
14516fi
14517
a848cd7e 14518
d970f7d5 14519 eval "$wx_cv_use_filedlg"
8743ec79
VZ
14520 if test "x$cache" = xyes; then
14521 echo "wxUSE_FILEDLG=$wxUSE_FILEDLG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14522 fi
14523
6e198e97
VZ
14524 if test x"$enablestring" = xdisable; then
14525 if test $wxUSE_FILEDLG = yes; then
14526 result=no
14527 else
14528 result=yes
14529 fi
a848cd7e 14530 else
6e198e97 14531 result=$wxUSE_FILEDLG
a848cd7e
SC
14532 fi
14533
47964710
VS
14534 { echo "$as_me:$LINENO: result: $result" >&5
14535echo "${ECHO_T}$result" >&6; }
6e198e97 14536
a848cd7e 14537
077c7880 14538 enablestring=
6e198e97 14539 defaultval=$wxUSE_ALL_FEATURES
238663c1 14540 if test -z "$defaultval"; then
6e198e97
VZ
14541 if test x"$enablestring" = xdisable; then
14542 defaultval=yes
14543 else
14544 defaultval=no
14545 fi
14546 fi
14547
47964710
VS
14548 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
14549echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
14550 # Check whether --enable-finddlg was given.
a848cd7e 14551if test "${enable_finddlg+set}" = set; then
47964710 14552 enableval=$enable_finddlg;
a848cd7e 14553 if test "$enableval" = yes; then
d970f7d5 14554 wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
a848cd7e 14555 else
d970f7d5 14556 wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
a848cd7e 14557 fi
8743ec79 14558 cache=yes
a848cd7e
SC
14559
14560else
14561
b46b1d59 14562 LINE=`grep "^wxUSE_FINDREPLDLG=" ${wx_arg_cache_file}`
a848cd7e 14563 if test "x$LINE" != x ; then
8630a814
VZ
14564 eval "DEFAULT_$LINE"
14565 cache=yes
14566 else
14567 cache=no
a848cd7e
SC
14568 fi
14569
d970f7d5 14570 wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
a848cd7e 14571
47964710
VS
14572fi
14573
a848cd7e 14574
d970f7d5 14575 eval "$wx_cv_use_finddlg"
8743ec79
VZ
14576 if test "x$cache" = xyes; then
14577 echo "wxUSE_FINDREPLDLG=$wxUSE_FINDREPLDLG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14578 fi
14579
6e198e97
VZ
14580 if test x"$enablestring" = xdisable; then
14581 if test $wxUSE_FINDREPLDLG = yes; then
14582 result=no
14583 else
14584 result=yes
14585 fi
a848cd7e 14586 else
6e198e97 14587 result=$wxUSE_FINDREPLDLG
a848cd7e
SC
14588 fi
14589
47964710
VS
14590 { echo "$as_me:$LINENO: result: $result" >&5
14591echo "${ECHO_T}$result" >&6; }
6e198e97 14592
a848cd7e 14593
077c7880 14594 enablestring=
6e198e97 14595 defaultval=$wxUSE_ALL_FEATURES
238663c1 14596 if test -z "$defaultval"; then
6e198e97
VZ
14597 if test x"$enablestring" = xdisable; then
14598 defaultval=yes
14599 else
14600 defaultval=no
14601 fi
14602 fi
14603
47964710
VS
14604 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
14605echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
14606 # Check whether --enable-fontdlg was given.
a848cd7e 14607if test "${enable_fontdlg+set}" = set; then
47964710 14608 enableval=$enable_fontdlg;
a848cd7e 14609 if test "$enableval" = yes; then
d970f7d5 14610 wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
a848cd7e 14611 else
d970f7d5 14612 wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
a848cd7e 14613 fi
8743ec79 14614 cache=yes
a848cd7e
SC
14615
14616else
14617
b46b1d59 14618 LINE=`grep "^wxUSE_FONTDLG=" ${wx_arg_cache_file}`
a848cd7e 14619 if test "x$LINE" != x ; then
8630a814
VZ
14620 eval "DEFAULT_$LINE"
14621 cache=yes
14622 else
14623 cache=no
a848cd7e
SC
14624 fi
14625
d970f7d5 14626 wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
a848cd7e 14627
47964710
VS
14628fi
14629
a848cd7e 14630
d970f7d5 14631 eval "$wx_cv_use_fontdlg"
8743ec79
VZ
14632 if test "x$cache" = xyes; then
14633 echo "wxUSE_FONTDLG=$wxUSE_FONTDLG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14634 fi
14635
6e198e97
VZ
14636 if test x"$enablestring" = xdisable; then
14637 if test $wxUSE_FONTDLG = yes; then
14638 result=no
14639 else
14640 result=yes
14641 fi
a848cd7e 14642 else
6e198e97 14643 result=$wxUSE_FONTDLG
a848cd7e
SC
14644 fi
14645
47964710
VS
14646 { echo "$as_me:$LINENO: result: $result" >&5
14647echo "${ECHO_T}$result" >&6; }
6e198e97 14648
a848cd7e 14649
077c7880 14650 enablestring=
6e198e97 14651 defaultval=$wxUSE_ALL_FEATURES
238663c1 14652 if test -z "$defaultval"; then
6e198e97
VZ
14653 if test x"$enablestring" = xdisable; then
14654 defaultval=yes
14655 else
14656 defaultval=no
14657 fi
14658 fi
14659
47964710
VS
14660 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
14661echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
14662 # Check whether --enable-dirdlg was given.
a848cd7e 14663if test "${enable_dirdlg+set}" = set; then
47964710 14664 enableval=$enable_dirdlg;
a848cd7e 14665 if test "$enableval" = yes; then
d970f7d5 14666 wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
a848cd7e 14667 else
d970f7d5 14668 wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
a848cd7e 14669 fi
8743ec79 14670 cache=yes
a848cd7e
SC
14671
14672else
14673
b46b1d59 14674 LINE=`grep "^wxUSE_DIRDLG=" ${wx_arg_cache_file}`
a848cd7e 14675 if test "x$LINE" != x ; then
8630a814
VZ
14676 eval "DEFAULT_$LINE"
14677 cache=yes
14678 else
14679 cache=no
a848cd7e
SC
14680 fi
14681
d970f7d5 14682 wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
a848cd7e 14683
47964710
VS
14684fi
14685
a848cd7e 14686
d970f7d5 14687 eval "$wx_cv_use_dirdlg"
8743ec79
VZ
14688 if test "x$cache" = xyes; then
14689 echo "wxUSE_DIRDLG=$wxUSE_DIRDLG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14690 fi
14691
6e198e97
VZ
14692 if test x"$enablestring" = xdisable; then
14693 if test $wxUSE_DIRDLG = yes; then
14694 result=no
14695 else
14696 result=yes
14697 fi
a848cd7e 14698 else
6e198e97 14699 result=$wxUSE_DIRDLG
a848cd7e
SC
14700 fi
14701
47964710
VS
14702 { echo "$as_me:$LINENO: result: $result" >&5
14703echo "${ECHO_T}$result" >&6; }
6e198e97 14704
a848cd7e 14705
077c7880 14706 enablestring=
6e198e97 14707 defaultval=$wxUSE_ALL_FEATURES
238663c1 14708 if test -z "$defaultval"; then
6e198e97
VZ
14709 if test x"$enablestring" = xdisable; then
14710 defaultval=yes
14711 else
14712 defaultval=no
14713 fi
14714 fi
14715
47964710
VS
14716 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
14717echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
14718 # Check whether --enable-msgdlg was given.
a848cd7e 14719if test "${enable_msgdlg+set}" = set; then
47964710 14720 enableval=$enable_msgdlg;
a848cd7e 14721 if test "$enableval" = yes; then
d970f7d5 14722 wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
a848cd7e 14723 else
d970f7d5 14724 wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
a848cd7e 14725 fi
8743ec79 14726 cache=yes
a848cd7e
SC
14727
14728else
14729
b46b1d59 14730 LINE=`grep "^wxUSE_MSGDLG=" ${wx_arg_cache_file}`
a848cd7e 14731 if test "x$LINE" != x ; then
8630a814
VZ
14732 eval "DEFAULT_$LINE"
14733 cache=yes
14734 else
14735 cache=no
a848cd7e
SC
14736 fi
14737
d970f7d5 14738 wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
a848cd7e 14739
47964710
VS
14740fi
14741
a848cd7e 14742
d970f7d5 14743 eval "$wx_cv_use_msgdlg"
8743ec79
VZ
14744 if test "x$cache" = xyes; then
14745 echo "wxUSE_MSGDLG=$wxUSE_MSGDLG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14746 fi
14747
6e198e97
VZ
14748 if test x"$enablestring" = xdisable; then
14749 if test $wxUSE_MSGDLG = yes; then
14750 result=no
14751 else
14752 result=yes
14753 fi
a848cd7e 14754 else
6e198e97 14755 result=$wxUSE_MSGDLG
a848cd7e
SC
14756 fi
14757
47964710
VS
14758 { echo "$as_me:$LINENO: result: $result" >&5
14759echo "${ECHO_T}$result" >&6; }
6e198e97 14760
a848cd7e 14761
077c7880 14762 enablestring=
6e198e97 14763 defaultval=$wxUSE_ALL_FEATURES
238663c1 14764 if test -z "$defaultval"; then
6e198e97
VZ
14765 if test x"$enablestring" = xdisable; then
14766 defaultval=yes
14767 else
14768 defaultval=no
14769 fi
14770 fi
14771
47964710
VS
14772 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
14773echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
14774 # Check whether --enable-numberdlg was given.
a848cd7e 14775if test "${enable_numberdlg+set}" = set; then
47964710 14776 enableval=$enable_numberdlg;
a848cd7e 14777 if test "$enableval" = yes; then
d970f7d5 14778 wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
a848cd7e 14779 else
d970f7d5 14780 wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
a848cd7e 14781 fi
8743ec79 14782 cache=yes
a848cd7e
SC
14783
14784else
14785
b46b1d59 14786 LINE=`grep "^wxUSE_NUMBERDLG=" ${wx_arg_cache_file}`
a848cd7e 14787 if test "x$LINE" != x ; then
8630a814
VZ
14788 eval "DEFAULT_$LINE"
14789 cache=yes
14790 else
14791 cache=no
a848cd7e
SC
14792 fi
14793
d970f7d5 14794 wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
a848cd7e 14795
47964710
VS
14796fi
14797
a848cd7e 14798
d970f7d5 14799 eval "$wx_cv_use_numberdlg"
8743ec79
VZ
14800 if test "x$cache" = xyes; then
14801 echo "wxUSE_NUMBERDLG=$wxUSE_NUMBERDLG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14802 fi
14803
6e198e97
VZ
14804 if test x"$enablestring" = xdisable; then
14805 if test $wxUSE_NUMBERDLG = yes; then
14806 result=no
14807 else
14808 result=yes
14809 fi
a848cd7e 14810 else
6e198e97 14811 result=$wxUSE_NUMBERDLG
a848cd7e
SC
14812 fi
14813
47964710
VS
14814 { echo "$as_me:$LINENO: result: $result" >&5
14815echo "${ECHO_T}$result" >&6; }
6e198e97 14816
a848cd7e 14817
077c7880 14818 enablestring=
6e198e97 14819 defaultval=$wxUSE_ALL_FEATURES
238663c1 14820 if test -z "$defaultval"; then
6e198e97
VZ
14821 if test x"$enablestring" = xdisable; then
14822 defaultval=yes
14823 else
14824 defaultval=no
14825 fi
14826 fi
14827
47964710
VS
14828 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
14829echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
14830 # Check whether --enable-splash was given.
a848cd7e 14831if test "${enable_splash+set}" = set; then
47964710 14832 enableval=$enable_splash;
a848cd7e 14833 if test "$enableval" = yes; then
d970f7d5 14834 wx_cv_use_splash='wxUSE_SPLASH=yes'
a848cd7e 14835 else
d970f7d5 14836 wx_cv_use_splash='wxUSE_SPLASH=no'
a848cd7e 14837 fi
8743ec79 14838 cache=yes
a848cd7e
SC
14839
14840else
14841
b46b1d59 14842 LINE=`grep "^wxUSE_SPLASH=" ${wx_arg_cache_file}`
a848cd7e 14843 if test "x$LINE" != x ; then
8630a814
VZ
14844 eval "DEFAULT_$LINE"
14845 cache=yes
14846 else
14847 cache=no
a848cd7e
SC
14848 fi
14849
d970f7d5 14850 wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
a848cd7e 14851
47964710
VS
14852fi
14853
a848cd7e 14854
d970f7d5 14855 eval "$wx_cv_use_splash"
8743ec79
VZ
14856 if test "x$cache" = xyes; then
14857 echo "wxUSE_SPLASH=$wxUSE_SPLASH" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14858 fi
14859
6e198e97
VZ
14860 if test x"$enablestring" = xdisable; then
14861 if test $wxUSE_SPLASH = yes; then
14862 result=no
14863 else
14864 result=yes
14865 fi
a848cd7e 14866 else
6e198e97 14867 result=$wxUSE_SPLASH
a848cd7e
SC
14868 fi
14869
47964710
VS
14870 { echo "$as_me:$LINENO: result: $result" >&5
14871echo "${ECHO_T}$result" >&6; }
6e198e97 14872
a848cd7e 14873
077c7880 14874 enablestring=
6e198e97 14875 defaultval=$wxUSE_ALL_FEATURES
238663c1 14876 if test -z "$defaultval"; then
6e198e97
VZ
14877 if test x"$enablestring" = xdisable; then
14878 defaultval=yes
14879 else
14880 defaultval=no
14881 fi
14882 fi
14883
47964710
VS
14884 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
14885echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
14886 # Check whether --enable-textdlg was given.
a848cd7e 14887if test "${enable_textdlg+set}" = set; then
47964710 14888 enableval=$enable_textdlg;
a848cd7e 14889 if test "$enableval" = yes; then
d970f7d5 14890 wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
a848cd7e 14891 else
d970f7d5 14892 wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
a848cd7e 14893 fi
8743ec79 14894 cache=yes
a848cd7e
SC
14895
14896else
14897
b46b1d59 14898 LINE=`grep "^wxUSE_TEXTDLG=" ${wx_arg_cache_file}`
a848cd7e 14899 if test "x$LINE" != x ; then
8630a814
VZ
14900 eval "DEFAULT_$LINE"
14901 cache=yes
14902 else
14903 cache=no
a848cd7e
SC
14904 fi
14905
d970f7d5 14906 wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
a848cd7e 14907
47964710
VS
14908fi
14909
a848cd7e 14910
d970f7d5 14911 eval "$wx_cv_use_textdlg"
8743ec79
VZ
14912 if test "x$cache" = xyes; then
14913 echo "wxUSE_TEXTDLG=$wxUSE_TEXTDLG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14914 fi
14915
6e198e97
VZ
14916 if test x"$enablestring" = xdisable; then
14917 if test $wxUSE_TEXTDLG = yes; then
14918 result=no
14919 else
14920 result=yes
14921 fi
a848cd7e 14922 else
6e198e97 14923 result=$wxUSE_TEXTDLG
a848cd7e
SC
14924 fi
14925
47964710
VS
14926 { echo "$as_me:$LINENO: result: $result" >&5
14927echo "${ECHO_T}$result" >&6; }
6e198e97 14928
a848cd7e 14929
077c7880 14930 enablestring=
6e198e97 14931 defaultval=$wxUSE_ALL_FEATURES
238663c1 14932 if test -z "$defaultval"; then
6e198e97
VZ
14933 if test x"$enablestring" = xdisable; then
14934 defaultval=yes
14935 else
14936 defaultval=no
14937 fi
14938 fi
14939
47964710
VS
14940 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
14941echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
14942 # Check whether --enable-tipdlg was given.
a848cd7e 14943if test "${enable_tipdlg+set}" = set; then
47964710 14944 enableval=$enable_tipdlg;
a848cd7e 14945 if test "$enableval" = yes; then
d970f7d5 14946 wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
a848cd7e 14947 else
d970f7d5 14948 wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
a848cd7e 14949 fi
8743ec79 14950 cache=yes
a848cd7e
SC
14951
14952else
14953
b46b1d59 14954 LINE=`grep "^wxUSE_STARTUP_TIPS=" ${wx_arg_cache_file}`
a848cd7e 14955 if test "x$LINE" != x ; then
8630a814
VZ
14956 eval "DEFAULT_$LINE"
14957 cache=yes
14958 else
14959 cache=no
a848cd7e
SC
14960 fi
14961
d970f7d5 14962 wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
a848cd7e 14963
47964710
VS
14964fi
14965
a848cd7e 14966
d970f7d5 14967 eval "$wx_cv_use_tipdlg"
8743ec79
VZ
14968 if test "x$cache" = xyes; then
14969 echo "wxUSE_STARTUP_TIPS=$wxUSE_STARTUP_TIPS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
14970 fi
14971
6e198e97
VZ
14972 if test x"$enablestring" = xdisable; then
14973 if test $wxUSE_STARTUP_TIPS = yes; then
14974 result=no
14975 else
14976 result=yes
14977 fi
a848cd7e 14978 else
6e198e97 14979 result=$wxUSE_STARTUP_TIPS
a848cd7e
SC
14980 fi
14981
47964710
VS
14982 { echo "$as_me:$LINENO: result: $result" >&5
14983echo "${ECHO_T}$result" >&6; }
6e198e97 14984
a848cd7e 14985
077c7880 14986 enablestring=
6e198e97 14987 defaultval=$wxUSE_ALL_FEATURES
238663c1 14988 if test -z "$defaultval"; then
6e198e97
VZ
14989 if test x"$enablestring" = xdisable; then
14990 defaultval=yes
14991 else
14992 defaultval=no
14993 fi
14994 fi
14995
47964710
VS
14996 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
14997echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
14998 # Check whether --enable-progressdlg was given.
a848cd7e 14999if test "${enable_progressdlg+set}" = set; then
47964710 15000 enableval=$enable_progressdlg;
a848cd7e 15001 if test "$enableval" = yes; then
d970f7d5 15002 wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
a848cd7e 15003 else
d970f7d5 15004 wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
a848cd7e 15005 fi
8743ec79 15006 cache=yes
a848cd7e
SC
15007
15008else
15009
b46b1d59 15010 LINE=`grep "^wxUSE_PROGRESSDLG=" ${wx_arg_cache_file}`
a848cd7e 15011 if test "x$LINE" != x ; then
8630a814
VZ
15012 eval "DEFAULT_$LINE"
15013 cache=yes
15014 else
15015 cache=no
a848cd7e
SC
15016 fi
15017
d970f7d5 15018 wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
a848cd7e 15019
47964710
VS
15020fi
15021
a848cd7e 15022
d970f7d5 15023 eval "$wx_cv_use_progressdlg"
8743ec79
VZ
15024 if test "x$cache" = xyes; then
15025 echo "wxUSE_PROGRESSDLG=$wxUSE_PROGRESSDLG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15026 fi
15027
6e198e97
VZ
15028 if test x"$enablestring" = xdisable; then
15029 if test $wxUSE_PROGRESSDLG = yes; then
15030 result=no
15031 else
15032 result=yes
15033 fi
a848cd7e 15034 else
6e198e97 15035 result=$wxUSE_PROGRESSDLG
a848cd7e
SC
15036 fi
15037
47964710
VS
15038 { echo "$as_me:$LINENO: result: $result" >&5
15039echo "${ECHO_T}$result" >&6; }
6e198e97 15040
a848cd7e 15041
077c7880 15042 enablestring=
6e198e97 15043 defaultval=$wxUSE_ALL_FEATURES
238663c1 15044 if test -z "$defaultval"; then
6e198e97
VZ
15045 if test x"$enablestring" = xdisable; then
15046 defaultval=yes
15047 else
15048 defaultval=no
15049 fi
15050 fi
15051
47964710
VS
15052 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
15053echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
15054 # Check whether --enable-wizarddlg was given.
a848cd7e 15055if test "${enable_wizarddlg+set}" = set; then
47964710 15056 enableval=$enable_wizarddlg;
a848cd7e 15057 if test "$enableval" = yes; then
d970f7d5 15058 wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
a848cd7e 15059 else
d970f7d5 15060 wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
a848cd7e 15061 fi
8743ec79 15062 cache=yes
a848cd7e
SC
15063
15064else
15065
b46b1d59 15066 LINE=`grep "^wxUSE_WIZARDDLG=" ${wx_arg_cache_file}`
a848cd7e 15067 if test "x$LINE" != x ; then
8630a814
VZ
15068 eval "DEFAULT_$LINE"
15069 cache=yes
15070 else
15071 cache=no
a848cd7e
SC
15072 fi
15073
d970f7d5 15074 wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
a848cd7e 15075
47964710
VS
15076fi
15077
a848cd7e 15078
d970f7d5 15079 eval "$wx_cv_use_wizarddlg"
8743ec79
VZ
15080 if test "x$cache" = xyes; then
15081 echo "wxUSE_WIZARDDLG=$wxUSE_WIZARDDLG" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15082 fi
15083
6e198e97
VZ
15084 if test x"$enablestring" = xdisable; then
15085 if test $wxUSE_WIZARDDLG = yes; then
15086 result=no
15087 else
15088 result=yes
15089 fi
a848cd7e 15090 else
6e198e97 15091 result=$wxUSE_WIZARDDLG
a848cd7e
SC
15092 fi
15093
47964710
VS
15094 { echo "$as_me:$LINENO: result: $result" >&5
15095echo "${ECHO_T}$result" >&6; }
6e198e97 15096
a848cd7e
SC
15097
15098
15099
077c7880 15100 enablestring=
6e198e97 15101 defaultval=$wxUSE_ALL_FEATURES
238663c1 15102 if test -z "$defaultval"; then
6e198e97
VZ
15103 if test x"$enablestring" = xdisable; then
15104 defaultval=yes
15105 else
15106 defaultval=no
15107 fi
15108 fi
15109
47964710
VS
15110 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
15111echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
15112 # Check whether --enable-menus was given.
a848cd7e 15113if test "${enable_menus+set}" = set; then
47964710 15114 enableval=$enable_menus;
a848cd7e 15115 if test "$enableval" = yes; then
d970f7d5 15116 wx_cv_use_menus='wxUSE_MENUS=yes'
a848cd7e 15117 else
d970f7d5 15118 wx_cv_use_menus='wxUSE_MENUS=no'
a848cd7e 15119 fi
8743ec79 15120 cache=yes
a848cd7e
SC
15121
15122else
15123
b46b1d59 15124 LINE=`grep "^wxUSE_MENUS=" ${wx_arg_cache_file}`
a848cd7e 15125 if test "x$LINE" != x ; then
8630a814
VZ
15126 eval "DEFAULT_$LINE"
15127 cache=yes
15128 else
15129 cache=no
a848cd7e
SC
15130 fi
15131
d970f7d5 15132 wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
a848cd7e 15133
47964710
VS
15134fi
15135
a848cd7e 15136
d970f7d5 15137 eval "$wx_cv_use_menus"
8743ec79
VZ
15138 if test "x$cache" = xyes; then
15139 echo "wxUSE_MENUS=$wxUSE_MENUS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15140 fi
15141
6e198e97
VZ
15142 if test x"$enablestring" = xdisable; then
15143 if test $wxUSE_MENUS = yes; then
15144 result=no
15145 else
15146 result=yes
15147 fi
a848cd7e 15148 else
6e198e97 15149 result=$wxUSE_MENUS
a848cd7e
SC
15150 fi
15151
47964710
VS
15152 { echo "$as_me:$LINENO: result: $result" >&5
15153echo "${ECHO_T}$result" >&6; }
6e198e97 15154
a848cd7e 15155
077c7880 15156 enablestring=
6e198e97 15157 defaultval=$wxUSE_ALL_FEATURES
238663c1 15158 if test -z "$defaultval"; then
6e198e97
VZ
15159 if test x"$enablestring" = xdisable; then
15160 defaultval=yes
15161 else
15162 defaultval=no
15163 fi
15164 fi
15165
47964710
VS
15166 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
15167echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
15168 # Check whether --enable-miniframe was given.
a848cd7e 15169if test "${enable_miniframe+set}" = set; then
47964710 15170 enableval=$enable_miniframe;
a848cd7e 15171 if test "$enableval" = yes; then
d970f7d5 15172 wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
a848cd7e 15173 else
d970f7d5 15174 wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
a848cd7e 15175 fi
8743ec79 15176 cache=yes
a848cd7e
SC
15177
15178else
15179
b46b1d59 15180 LINE=`grep "^wxUSE_MINIFRAME=" ${wx_arg_cache_file}`
a848cd7e 15181 if test "x$LINE" != x ; then
8630a814
VZ
15182 eval "DEFAULT_$LINE"
15183 cache=yes
15184 else
15185 cache=no
a848cd7e
SC
15186 fi
15187
d970f7d5 15188 wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
a848cd7e 15189
47964710
VS
15190fi
15191
a848cd7e 15192
d970f7d5 15193 eval "$wx_cv_use_miniframe"
8743ec79
VZ
15194 if test "x$cache" = xyes; then
15195 echo "wxUSE_MINIFRAME=$wxUSE_MINIFRAME" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15196 fi
15197
6e198e97
VZ
15198 if test x"$enablestring" = xdisable; then
15199 if test $wxUSE_MINIFRAME = yes; then
15200 result=no
15201 else
15202 result=yes
15203 fi
a848cd7e 15204 else
6e198e97 15205 result=$wxUSE_MINIFRAME
a848cd7e
SC
15206 fi
15207
47964710
VS
15208 { echo "$as_me:$LINENO: result: $result" >&5
15209echo "${ECHO_T}$result" >&6; }
6e198e97 15210
a848cd7e 15211
077c7880 15212 enablestring=
6e198e97 15213 defaultval=$wxUSE_ALL_FEATURES
238663c1 15214 if test -z "$defaultval"; then
6e198e97
VZ
15215 if test x"$enablestring" = xdisable; then
15216 defaultval=yes
15217 else
15218 defaultval=no
15219 fi
15220 fi
15221
47964710
VS
15222 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
15223echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
15224 # Check whether --enable-tooltips was given.
a848cd7e 15225if test "${enable_tooltips+set}" = set; then
47964710 15226 enableval=$enable_tooltips;
a848cd7e 15227 if test "$enableval" = yes; then
d970f7d5 15228 wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
a848cd7e 15229 else
d970f7d5 15230 wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
a848cd7e 15231 fi
8743ec79 15232 cache=yes
a848cd7e
SC
15233
15234else
15235
b46b1d59 15236 LINE=`grep "^wxUSE_TOOLTIPS=" ${wx_arg_cache_file}`
a848cd7e 15237 if test "x$LINE" != x ; then
8630a814
VZ
15238 eval "DEFAULT_$LINE"
15239 cache=yes
15240 else
15241 cache=no
a848cd7e
SC
15242 fi
15243
d970f7d5 15244 wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
a848cd7e 15245
47964710
VS
15246fi
15247
a848cd7e 15248
d970f7d5 15249 eval "$wx_cv_use_tooltips"
8743ec79
VZ
15250 if test "x$cache" = xyes; then
15251 echo "wxUSE_TOOLTIPS=$wxUSE_TOOLTIPS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15252 fi
15253
6e198e97
VZ
15254 if test x"$enablestring" = xdisable; then
15255 if test $wxUSE_TOOLTIPS = yes; then
15256 result=no
15257 else
15258 result=yes
15259 fi
a848cd7e 15260 else
6e198e97 15261 result=$wxUSE_TOOLTIPS
a848cd7e
SC
15262 fi
15263
47964710
VS
15264 { echo "$as_me:$LINENO: result: $result" >&5
15265echo "${ECHO_T}$result" >&6; }
6e198e97 15266
a848cd7e 15267
077c7880 15268 enablestring=
6e198e97 15269 defaultval=$wxUSE_ALL_FEATURES
238663c1 15270 if test -z "$defaultval"; then
6e198e97
VZ
15271 if test x"$enablestring" = xdisable; then
15272 defaultval=yes
15273 else
15274 defaultval=no
15275 fi
15276 fi
15277
47964710
VS
15278 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
15279echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
15280 # Check whether --enable-splines was given.
a848cd7e 15281if test "${enable_splines+set}" = set; then
47964710 15282 enableval=$enable_splines;
a848cd7e 15283 if test "$enableval" = yes; then
d970f7d5 15284 wx_cv_use_splines='wxUSE_SPLINES=yes'
a848cd7e 15285 else
d970f7d5 15286 wx_cv_use_splines='wxUSE_SPLINES=no'
a848cd7e 15287 fi
8743ec79 15288 cache=yes
a848cd7e
SC
15289
15290else
15291
b46b1d59 15292 LINE=`grep "^wxUSE_SPLINES=" ${wx_arg_cache_file}`
a848cd7e 15293 if test "x$LINE" != x ; then
8630a814
VZ
15294 eval "DEFAULT_$LINE"
15295 cache=yes
15296 else
15297 cache=no
a848cd7e
SC
15298 fi
15299
d970f7d5 15300 wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
a848cd7e 15301
47964710
VS
15302fi
15303
a848cd7e 15304
d970f7d5 15305 eval "$wx_cv_use_splines"
8743ec79
VZ
15306 if test "x$cache" = xyes; then
15307 echo "wxUSE_SPLINES=$wxUSE_SPLINES" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15308 fi
15309
6e198e97
VZ
15310 if test x"$enablestring" = xdisable; then
15311 if test $wxUSE_SPLINES = yes; then
15312 result=no
15313 else
15314 result=yes
15315 fi
a848cd7e 15316 else
6e198e97 15317 result=$wxUSE_SPLINES
a848cd7e
SC
15318 fi
15319
47964710
VS
15320 { echo "$as_me:$LINENO: result: $result" >&5
15321echo "${ECHO_T}$result" >&6; }
6e198e97 15322
a848cd7e 15323
077c7880 15324 enablestring=
6e198e97 15325 defaultval=$wxUSE_ALL_FEATURES
238663c1 15326 if test -z "$defaultval"; then
6e198e97
VZ
15327 if test x"$enablestring" = xdisable; then
15328 defaultval=yes
15329 else
15330 defaultval=no
15331 fi
15332 fi
15333
47964710
VS
15334 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
15335echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
15336 # Check whether --enable-mousewheel was given.
fbe2ca43 15337if test "${enable_mousewheel+set}" = set; then
47964710 15338 enableval=$enable_mousewheel;
fbe2ca43 15339 if test "$enableval" = yes; then
d970f7d5 15340 wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
fbe2ca43 15341 else
d970f7d5 15342 wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
fbe2ca43 15343 fi
8743ec79 15344 cache=yes
fbe2ca43
SN
15345
15346else
15347
b46b1d59 15348 LINE=`grep "^wxUSE_MOUSEWHEEL=" ${wx_arg_cache_file}`
fbe2ca43 15349 if test "x$LINE" != x ; then
8630a814
VZ
15350 eval "DEFAULT_$LINE"
15351 cache=yes
15352 else
15353 cache=no
fbe2ca43
SN
15354 fi
15355
d970f7d5 15356 wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
fbe2ca43 15357
47964710
VS
15358fi
15359
fbe2ca43 15360
d970f7d5 15361 eval "$wx_cv_use_mousewheel"
8743ec79
VZ
15362 if test "x$cache" = xyes; then
15363 echo "wxUSE_MOUSEWHEEL=$wxUSE_MOUSEWHEEL" >> ${wx_arg_cache_file}.tmp
fbe2ca43
SN
15364 fi
15365
6e198e97
VZ
15366 if test x"$enablestring" = xdisable; then
15367 if test $wxUSE_MOUSEWHEEL = yes; then
15368 result=no
15369 else
15370 result=yes
15371 fi
fbe2ca43 15372 else
6e198e97 15373 result=$wxUSE_MOUSEWHEEL
fbe2ca43
SN
15374 fi
15375
47964710
VS
15376 { echo "$as_me:$LINENO: result: $result" >&5
15377echo "${ECHO_T}$result" >&6; }
6e198e97 15378
fbe2ca43 15379
077c7880 15380 enablestring=
6e198e97 15381 defaultval=$wxUSE_ALL_FEATURES
238663c1 15382 if test -z "$defaultval"; then
6e198e97
VZ
15383 if test x"$enablestring" = xdisable; then
15384 defaultval=yes
15385 else
15386 defaultval=no
15387 fi
15388 fi
15389
47964710
VS
15390 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
15391echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
15392 # Check whether --enable-validators was given.
a848cd7e 15393if test "${enable_validators+set}" = set; then
47964710 15394 enableval=$enable_validators;
a848cd7e 15395 if test "$enableval" = yes; then
d970f7d5 15396 wx_cv_use_validators='wxUSE_VALIDATORS=yes'
a848cd7e 15397 else
d970f7d5 15398 wx_cv_use_validators='wxUSE_VALIDATORS=no'
a848cd7e 15399 fi
8743ec79 15400 cache=yes
a848cd7e
SC
15401
15402else
15403
b46b1d59 15404 LINE=`grep "^wxUSE_VALIDATORS=" ${wx_arg_cache_file}`
a848cd7e 15405 if test "x$LINE" != x ; then
8630a814
VZ
15406 eval "DEFAULT_$LINE"
15407 cache=yes
15408 else
15409 cache=no
a848cd7e
SC
15410 fi
15411
d970f7d5 15412 wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
a848cd7e 15413
47964710
VS
15414fi
15415
a848cd7e 15416
d970f7d5 15417 eval "$wx_cv_use_validators"
8743ec79
VZ
15418 if test "x$cache" = xyes; then
15419 echo "wxUSE_VALIDATORS=$wxUSE_VALIDATORS" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15420 fi
15421
6e198e97
VZ
15422 if test x"$enablestring" = xdisable; then
15423 if test $wxUSE_VALIDATORS = yes; then
15424 result=no
15425 else
15426 result=yes
15427 fi
a848cd7e 15428 else
6e198e97 15429 result=$wxUSE_VALIDATORS
a848cd7e
SC
15430 fi
15431
47964710
VS
15432 { echo "$as_me:$LINENO: result: $result" >&5
15433echo "${ECHO_T}$result" >&6; }
6e198e97 15434
a848cd7e 15435
077c7880 15436 enablestring=
6e198e97 15437 defaultval=$wxUSE_ALL_FEATURES
238663c1 15438 if test -z "$defaultval"; then
6e198e97
VZ
15439 if test x"$enablestring" = xdisable; then
15440 defaultval=yes
15441 else
15442 defaultval=no
15443 fi
15444 fi
15445
47964710
VS
15446 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
15447echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
15448 # Check whether --enable-busyinfo was given.
a848cd7e 15449if test "${enable_busyinfo+set}" = set; then
47964710 15450 enableval=$enable_busyinfo;
a848cd7e 15451 if test "$enableval" = yes; then
d970f7d5 15452 wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
a848cd7e 15453 else
d970f7d5 15454 wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
a848cd7e 15455 fi
8743ec79 15456 cache=yes
a848cd7e
SC
15457
15458else
15459
b46b1d59 15460 LINE=`grep "^wxUSE_BUSYINFO=" ${wx_arg_cache_file}`
a848cd7e 15461 if test "x$LINE" != x ; then
8630a814
VZ
15462 eval "DEFAULT_$LINE"
15463 cache=yes
15464 else
15465 cache=no
a848cd7e
SC
15466 fi
15467
d970f7d5 15468 wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
a848cd7e 15469
47964710
VS
15470fi
15471
a848cd7e 15472
d970f7d5 15473 eval "$wx_cv_use_busyinfo"
8743ec79
VZ
15474 if test "x$cache" = xyes; then
15475 echo "wxUSE_BUSYINFO=$wxUSE_BUSYINFO" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15476 fi
15477
6e198e97
VZ
15478 if test x"$enablestring" = xdisable; then
15479 if test $wxUSE_BUSYINFO = yes; then
15480 result=no
15481 else
15482 result=yes
15483 fi
a848cd7e 15484 else
6e198e97 15485 result=$wxUSE_BUSYINFO
a848cd7e
SC
15486 fi
15487
47964710
VS
15488 { echo "$as_me:$LINENO: result: $result" >&5
15489echo "${ECHO_T}$result" >&6; }
6e198e97 15490
a848cd7e 15491
077c7880 15492 enablestring=
6e198e97 15493 defaultval=$wxUSE_ALL_FEATURES
238663c1 15494 if test -z "$defaultval"; then
6e198e97
VZ
15495 if test x"$enablestring" = xdisable; then
15496 defaultval=yes
15497 else
15498 defaultval=no
15499 fi
15500 fi
15501
47964710
VS
15502 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
15503echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
15504 # Check whether --enable-joystick was given.
a848cd7e 15505if test "${enable_joystick+set}" = set; then
47964710 15506 enableval=$enable_joystick;
a848cd7e 15507 if test "$enableval" = yes; then
d970f7d5 15508 wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
a848cd7e 15509 else
d970f7d5 15510 wx_cv_use_joystick='wxUSE_JOYSTICK=no'
a848cd7e 15511 fi
8743ec79 15512 cache=yes
a848cd7e
SC
15513
15514else
15515
b46b1d59 15516 LINE=`grep "^wxUSE_JOYSTICK=" ${wx_arg_cache_file}`
a848cd7e 15517 if test "x$LINE" != x ; then
8630a814
VZ
15518 eval "DEFAULT_$LINE"
15519 cache=yes
15520 else
15521 cache=no
a848cd7e
SC
15522 fi
15523
d970f7d5 15524 wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
a848cd7e 15525
47964710
VS
15526fi
15527
a848cd7e 15528
d970f7d5 15529 eval "$wx_cv_use_joystick"
8743ec79
VZ
15530 if test "x$cache" = xyes; then
15531 echo "wxUSE_JOYSTICK=$wxUSE_JOYSTICK" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15532 fi
15533
6e198e97
VZ
15534 if test x"$enablestring" = xdisable; then
15535 if test $wxUSE_JOYSTICK = yes; then
15536 result=no
15537 else
15538 result=yes
15539 fi
a848cd7e 15540 else
6e198e97 15541 result=$wxUSE_JOYSTICK
a848cd7e
SC
15542 fi
15543
47964710
VS
15544 { echo "$as_me:$LINENO: result: $result" >&5
15545echo "${ECHO_T}$result" >&6; }
6e198e97 15546
a848cd7e 15547
077c7880 15548 enablestring=
6e198e97 15549 defaultval=$wxUSE_ALL_FEATURES
238663c1 15550 if test -z "$defaultval"; then
6e198e97
VZ
15551 if test x"$enablestring" = xdisable; then
15552 defaultval=yes
15553 else
15554 defaultval=no
15555 fi
15556 fi
15557
47964710
VS
15558 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
15559echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
15560 # Check whether --enable-metafile was given.
a848cd7e 15561if test "${enable_metafile+set}" = set; then
47964710 15562 enableval=$enable_metafile;
a848cd7e 15563 if test "$enableval" = yes; then
d970f7d5 15564 wx_cv_use_metafile='wxUSE_METAFILE=yes'
a848cd7e 15565 else
d970f7d5 15566 wx_cv_use_metafile='wxUSE_METAFILE=no'
a848cd7e 15567 fi
8743ec79 15568 cache=yes
a848cd7e
SC
15569
15570else
15571
b46b1d59 15572 LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
a848cd7e 15573 if test "x$LINE" != x ; then
8630a814
VZ
15574 eval "DEFAULT_$LINE"
15575 cache=yes
15576 else
15577 cache=no
a848cd7e
SC
15578 fi
15579
d970f7d5 15580 wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
a848cd7e 15581
47964710
VS
15582fi
15583
a848cd7e 15584
d970f7d5 15585 eval "$wx_cv_use_metafile"
8743ec79
VZ
15586 if test "x$cache" = xyes; then
15587 echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15588 fi
15589
6e198e97
VZ
15590 if test x"$enablestring" = xdisable; then
15591 if test $wxUSE_METAFILE = yes; then
15592 result=no
15593 else
15594 result=yes
15595 fi
a848cd7e 15596 else
6e198e97 15597 result=$wxUSE_METAFILE
a848cd7e
SC
15598 fi
15599
47964710
VS
15600 { echo "$as_me:$LINENO: result: $result" >&5
15601echo "${ECHO_T}$result" >&6; }
6e198e97 15602
a848cd7e 15603
077c7880 15604 enablestring=
6e198e97 15605 defaultval=$wxUSE_ALL_FEATURES
238663c1 15606 if test -z "$defaultval"; then
6e198e97
VZ
15607 if test x"$enablestring" = xdisable; then
15608 defaultval=yes
15609 else
15610 defaultval=no
15611 fi
15612 fi
15613
47964710
VS
15614 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
15615echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
15616 # Check whether --enable-dragimage was given.
a848cd7e 15617if test "${enable_dragimage+set}" = set; then
47964710 15618 enableval=$enable_dragimage;
a848cd7e 15619 if test "$enableval" = yes; then
d970f7d5 15620 wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
a848cd7e 15621 else
d970f7d5 15622 wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
a848cd7e 15623 fi
8743ec79 15624 cache=yes
a848cd7e
SC
15625
15626else
15627
b46b1d59 15628 LINE=`grep "^wxUSE_DRAGIMAGE=" ${wx_arg_cache_file}`
a848cd7e 15629 if test "x$LINE" != x ; then
8630a814
VZ
15630 eval "DEFAULT_$LINE"
15631 cache=yes
15632 else
15633 cache=no
a848cd7e
SC
15634 fi
15635
d970f7d5 15636 wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
a848cd7e 15637
47964710
VS
15638fi
15639
a848cd7e 15640
d970f7d5 15641 eval "$wx_cv_use_dragimage"
8743ec79
VZ
15642 if test "x$cache" = xyes; then
15643 echo "wxUSE_DRAGIMAGE=$wxUSE_DRAGIMAGE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15644 fi
15645
6e198e97
VZ
15646 if test x"$enablestring" = xdisable; then
15647 if test $wxUSE_DRAGIMAGE = yes; then
15648 result=no
15649 else
15650 result=yes
15651 fi
a848cd7e 15652 else
6e198e97 15653 result=$wxUSE_DRAGIMAGE
a848cd7e
SC
15654 fi
15655
47964710
VS
15656 { echo "$as_me:$LINENO: result: $result" >&5
15657echo "${ECHO_T}$result" >&6; }
6e198e97 15658
a848cd7e 15659
077c7880 15660 enablestring=
6e198e97 15661 defaultval=$wxUSE_ALL_FEATURES
238663c1 15662 if test -z "$defaultval"; then
6e198e97
VZ
15663 if test x"$enablestring" = xdisable; then
15664 defaultval=yes
15665 else
15666 defaultval=no
15667 fi
15668 fi
15669
47964710
VS
15670 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
15671echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
15672 # Check whether --enable-accessibility was given.
a848cd7e 15673if test "${enable_accessibility+set}" = set; then
47964710 15674 enableval=$enable_accessibility;
a848cd7e 15675 if test "$enableval" = yes; then
d970f7d5 15676 wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
a848cd7e 15677 else
d970f7d5 15678 wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
a848cd7e 15679 fi
8743ec79 15680 cache=yes
a848cd7e
SC
15681
15682else
15683
b46b1d59 15684 LINE=`grep "^wxUSE_ACCESSIBILITY=" ${wx_arg_cache_file}`
a848cd7e 15685 if test "x$LINE" != x ; then
8630a814
VZ
15686 eval "DEFAULT_$LINE"
15687 cache=yes
15688 else
15689 cache=no
a848cd7e
SC
15690 fi
15691
d970f7d5 15692 wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
a848cd7e 15693
47964710
VS
15694fi
15695
a848cd7e 15696
d970f7d5 15697 eval "$wx_cv_use_accessibility"
8743ec79
VZ
15698 if test "x$cache" = xyes; then
15699 echo "wxUSE_ACCESSIBILITY=$wxUSE_ACCESSIBILITY" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15700 fi
15701
6e198e97
VZ
15702 if test x"$enablestring" = xdisable; then
15703 if test $wxUSE_ACCESSIBILITY = yes; then
15704 result=no
15705 else
15706 result=yes
15707 fi
a848cd7e 15708 else
6e198e97 15709 result=$wxUSE_ACCESSIBILITY
a848cd7e
SC
15710 fi
15711
47964710
VS
15712 { echo "$as_me:$LINENO: result: $result" >&5
15713echo "${ECHO_T}$result" >&6; }
6e198e97 15714
a848cd7e
SC
15715
15716
15717
077c7880 15718 enablestring=
6e198e97 15719 defaultval=$wxUSE_ALL_FEATURES
238663c1 15720 if test -z "$defaultval"; then
6e198e97
VZ
15721 if test x"$enablestring" = xdisable; then
15722 defaultval=yes
15723 else
15724 defaultval=no
15725 fi
15726 fi
15727
47964710
VS
15728 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
15729echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
15730 # Check whether --enable-palette was given.
a848cd7e 15731if test "${enable_palette+set}" = set; then
47964710 15732 enableval=$enable_palette;
a848cd7e 15733 if test "$enableval" = yes; then
d970f7d5 15734 wx_cv_use_palette='wxUSE_PALETTE=yes'
a848cd7e 15735 else
d970f7d5 15736 wx_cv_use_palette='wxUSE_PALETTE=no'
a848cd7e 15737 fi
8743ec79 15738 cache=yes
a848cd7e
SC
15739
15740else
15741
b46b1d59 15742 LINE=`grep "^wxUSE_PALETTE=" ${wx_arg_cache_file}`
a848cd7e 15743 if test "x$LINE" != x ; then
8630a814
VZ
15744 eval "DEFAULT_$LINE"
15745 cache=yes
15746 else
15747 cache=no
a848cd7e
SC
15748 fi
15749
d970f7d5 15750 wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
a848cd7e 15751
47964710
VS
15752fi
15753
a848cd7e 15754
d970f7d5 15755 eval "$wx_cv_use_palette"
8743ec79
VZ
15756 if test "x$cache" = xyes; then
15757 echo "wxUSE_PALETTE=$wxUSE_PALETTE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15758 fi
15759
6e198e97
VZ
15760 if test x"$enablestring" = xdisable; then
15761 if test $wxUSE_PALETTE = yes; then
15762 result=no
15763 else
15764 result=yes
15765 fi
a848cd7e 15766 else
6e198e97 15767 result=$wxUSE_PALETTE
a848cd7e
SC
15768 fi
15769
47964710
VS
15770 { echo "$as_me:$LINENO: result: $result" >&5
15771echo "${ECHO_T}$result" >&6; }
6e198e97 15772
a848cd7e 15773
077c7880 15774 enablestring=
6e198e97 15775 defaultval=$wxUSE_ALL_FEATURES
238663c1 15776 if test -z "$defaultval"; then
6e198e97
VZ
15777 if test x"$enablestring" = xdisable; then
15778 defaultval=yes
15779 else
15780 defaultval=no
15781 fi
15782 fi
15783
47964710
VS
15784 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
15785echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
15786 # Check whether --enable-image was given.
a848cd7e 15787if test "${enable_image+set}" = set; then
47964710 15788 enableval=$enable_image;
a848cd7e 15789 if test "$enableval" = yes; then
d970f7d5 15790 wx_cv_use_image='wxUSE_IMAGE=yes'
a848cd7e 15791 else
d970f7d5 15792 wx_cv_use_image='wxUSE_IMAGE=no'
a848cd7e 15793 fi
8743ec79 15794 cache=yes
a848cd7e
SC
15795
15796else
15797
b46b1d59 15798 LINE=`grep "^wxUSE_IMAGE=" ${wx_arg_cache_file}`
a848cd7e 15799 if test "x$LINE" != x ; then
8630a814
VZ
15800 eval "DEFAULT_$LINE"
15801 cache=yes
15802 else
15803 cache=no
a848cd7e
SC
15804 fi
15805
d970f7d5 15806 wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
a848cd7e 15807
47964710
VS
15808fi
15809
a848cd7e 15810
d970f7d5 15811 eval "$wx_cv_use_image"
8743ec79
VZ
15812 if test "x$cache" = xyes; then
15813 echo "wxUSE_IMAGE=$wxUSE_IMAGE" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15814 fi
15815
6e198e97
VZ
15816 if test x"$enablestring" = xdisable; then
15817 if test $wxUSE_IMAGE = yes; then
15818 result=no
15819 else
15820 result=yes
15821 fi
a848cd7e 15822 else
6e198e97 15823 result=$wxUSE_IMAGE
a848cd7e
SC
15824 fi
15825
47964710
VS
15826 { echo "$as_me:$LINENO: result: $result" >&5
15827echo "${ECHO_T}$result" >&6; }
6e198e97 15828
a848cd7e 15829
077c7880 15830 enablestring=
6e198e97 15831 defaultval=$wxUSE_ALL_FEATURES
238663c1 15832 if test -z "$defaultval"; then
6e198e97
VZ
15833 if test x"$enablestring" = xdisable; then
15834 defaultval=yes
15835 else
15836 defaultval=no
15837 fi
15838 fi
15839
47964710
VS
15840 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
15841echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
15842 # Check whether --enable-gif was given.
a848cd7e 15843if test "${enable_gif+set}" = set; then
47964710 15844 enableval=$enable_gif;
a848cd7e 15845 if test "$enableval" = yes; then
d970f7d5 15846 wx_cv_use_gif='wxUSE_GIF=yes'
a848cd7e 15847 else
d970f7d5 15848 wx_cv_use_gif='wxUSE_GIF=no'
a848cd7e 15849 fi
8743ec79 15850 cache=yes
a848cd7e
SC
15851
15852else
15853
b46b1d59 15854 LINE=`grep "^wxUSE_GIF=" ${wx_arg_cache_file}`
a848cd7e 15855 if test "x$LINE" != x ; then
8630a814
VZ
15856 eval "DEFAULT_$LINE"
15857 cache=yes
15858 else
15859 cache=no
a848cd7e
SC
15860 fi
15861
d970f7d5 15862 wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
a848cd7e 15863
47964710
VS
15864fi
15865
a848cd7e 15866
d970f7d5 15867 eval "$wx_cv_use_gif"
8743ec79
VZ
15868 if test "x$cache" = xyes; then
15869 echo "wxUSE_GIF=$wxUSE_GIF" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15870 fi
15871
6e198e97
VZ
15872 if test x"$enablestring" = xdisable; then
15873 if test $wxUSE_GIF = yes; then
15874 result=no
15875 else
15876 result=yes
15877 fi
a848cd7e 15878 else
6e198e97 15879 result=$wxUSE_GIF
a848cd7e
SC
15880 fi
15881
47964710
VS
15882 { echo "$as_me:$LINENO: result: $result" >&5
15883echo "${ECHO_T}$result" >&6; }
6e198e97 15884
a848cd7e 15885
077c7880 15886 enablestring=
6e198e97 15887 defaultval=$wxUSE_ALL_FEATURES
238663c1 15888 if test -z "$defaultval"; then
6e198e97
VZ
15889 if test x"$enablestring" = xdisable; then
15890 defaultval=yes
15891 else
15892 defaultval=no
15893 fi
15894 fi
15895
47964710
VS
15896 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
15897echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
15898 # Check whether --enable-pcx was given.
a848cd7e 15899if test "${enable_pcx+set}" = set; then
47964710 15900 enableval=$enable_pcx;
a848cd7e 15901 if test "$enableval" = yes; then
d970f7d5 15902 wx_cv_use_pcx='wxUSE_PCX=yes'
a848cd7e 15903 else
d970f7d5 15904 wx_cv_use_pcx='wxUSE_PCX=no'
a848cd7e 15905 fi
8743ec79 15906 cache=yes
a848cd7e
SC
15907
15908else
15909
b46b1d59 15910 LINE=`grep "^wxUSE_PCX=" ${wx_arg_cache_file}`
a848cd7e 15911 if test "x$LINE" != x ; then
8630a814
VZ
15912 eval "DEFAULT_$LINE"
15913 cache=yes
15914 else
15915 cache=no
a848cd7e
SC
15916 fi
15917
d970f7d5 15918 wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
a848cd7e 15919
47964710
VS
15920fi
15921
a848cd7e 15922
d970f7d5 15923 eval "$wx_cv_use_pcx"
8743ec79
VZ
15924 if test "x$cache" = xyes; then
15925 echo "wxUSE_PCX=$wxUSE_PCX" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
15926 fi
15927
6e198e97
VZ
15928 if test x"$enablestring" = xdisable; then
15929 if test $wxUSE_PCX = yes; then
15930 result=no
15931 else
15932 result=yes
15933 fi
a848cd7e 15934 else
6e198e97 15935 result=$wxUSE_PCX
a848cd7e
SC
15936 fi
15937
47964710
VS
15938 { echo "$as_me:$LINENO: result: $result" >&5
15939echo "${ECHO_T}$result" >&6; }
6e198e97 15940
a848cd7e 15941
077c7880 15942 enablestring=
6e198e97 15943 defaultval=$wxUSE_ALL_FEATURES
238663c1 15944 if test -z "$defaultval"; then
6e198e97
VZ
15945 if test x"$enablestring" = xdisable; then
15946 defaultval=yes
15947 else
15948 defaultval=no
15949 fi
15950 fi
15951
47964710
VS
15952 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
15953echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
15954 # Check whether --enable-tga was given.
bb9e79c0 15955if test "${enable_tga+set}" = set; then
47964710 15956 enableval=$enable_tga;
bb9e79c0 15957 if test "$enableval" = yes; then
d970f7d5 15958 wx_cv_use_tga='wxUSE_TGA=yes'
bb9e79c0 15959 else
d970f7d5 15960 wx_cv_use_tga='wxUSE_TGA=no'
bb9e79c0 15961 fi
8743ec79 15962 cache=yes
bb9e79c0
VZ
15963
15964else
15965
b46b1d59 15966 LINE=`grep "^wxUSE_TGA=" ${wx_arg_cache_file}`
bb9e79c0 15967 if test "x$LINE" != x ; then
8630a814
VZ
15968 eval "DEFAULT_$LINE"
15969 cache=yes
15970 else
15971 cache=no
bb9e79c0
VZ
15972 fi
15973
d970f7d5 15974 wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
bb9e79c0 15975
47964710
VS
15976fi
15977
bb9e79c0 15978
d970f7d5 15979 eval "$wx_cv_use_tga"
8743ec79
VZ
15980 if test "x$cache" = xyes; then
15981 echo "wxUSE_TGA=$wxUSE_TGA" >> ${wx_arg_cache_file}.tmp
bb9e79c0
VZ
15982 fi
15983
6e198e97
VZ
15984 if test x"$enablestring" = xdisable; then
15985 if test $wxUSE_TGA = yes; then
15986 result=no
15987 else
15988 result=yes
15989 fi
bb9e79c0 15990 else
6e198e97 15991 result=$wxUSE_TGA
bb9e79c0
VZ
15992 fi
15993
47964710
VS
15994 { echo "$as_me:$LINENO: result: $result" >&5
15995echo "${ECHO_T}$result" >&6; }
6e198e97 15996
bb9e79c0 15997
077c7880 15998 enablestring=
6e198e97 15999 defaultval=$wxUSE_ALL_FEATURES
238663c1 16000 if test -z "$defaultval"; then
6e198e97
VZ
16001 if test x"$enablestring" = xdisable; then
16002 defaultval=yes
16003 else
16004 defaultval=no
16005 fi
16006 fi
16007
47964710
VS
16008 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
16009echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
16010 # Check whether --enable-iff was given.
a848cd7e 16011if test "${enable_iff+set}" = set; then
47964710 16012 enableval=$enable_iff;
a848cd7e 16013 if test "$enableval" = yes; then
d970f7d5 16014 wx_cv_use_iff='wxUSE_IFF=yes'
a848cd7e 16015 else
d970f7d5 16016 wx_cv_use_iff='wxUSE_IFF=no'
a848cd7e 16017 fi
8743ec79 16018 cache=yes
a848cd7e
SC
16019
16020else
16021
b46b1d59 16022 LINE=`grep "^wxUSE_IFF=" ${wx_arg_cache_file}`
a848cd7e 16023 if test "x$LINE" != x ; then
8630a814
VZ
16024 eval "DEFAULT_$LINE"
16025 cache=yes
16026 else
16027 cache=no
a848cd7e
SC
16028 fi
16029
d970f7d5 16030 wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
a848cd7e 16031
47964710
VS
16032fi
16033
a848cd7e 16034
d970f7d5 16035 eval "$wx_cv_use_iff"
8743ec79
VZ
16036 if test "x$cache" = xyes; then
16037 echo "wxUSE_IFF=$wxUSE_IFF" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
16038 fi
16039
6e198e97
VZ
16040 if test x"$enablestring" = xdisable; then
16041 if test $wxUSE_IFF = yes; then
16042 result=no
16043 else
16044 result=yes
16045 fi
a848cd7e 16046 else
6e198e97 16047 result=$wxUSE_IFF
a848cd7e
SC
16048 fi
16049
47964710
VS
16050 { echo "$as_me:$LINENO: result: $result" >&5
16051echo "${ECHO_T}$result" >&6; }
6e198e97 16052
a848cd7e 16053
077c7880 16054 enablestring=
6e198e97 16055 defaultval=$wxUSE_ALL_FEATURES
238663c1 16056 if test -z "$defaultval"; then
6e198e97
VZ
16057 if test x"$enablestring" = xdisable; then
16058 defaultval=yes
16059 else
16060 defaultval=no
16061 fi
16062 fi
16063
47964710
VS
16064 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
16065echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
16066 # Check whether --enable-pnm was given.
a848cd7e 16067if test "${enable_pnm+set}" = set; then
47964710 16068 enableval=$enable_pnm;
a848cd7e 16069 if test "$enableval" = yes; then
d970f7d5 16070 wx_cv_use_pnm='wxUSE_PNM=yes'
a848cd7e 16071 else
d970f7d5 16072 wx_cv_use_pnm='wxUSE_PNM=no'
a848cd7e 16073 fi
8743ec79 16074 cache=yes
a848cd7e
SC
16075
16076else
16077
b46b1d59 16078 LINE=`grep "^wxUSE_PNM=" ${wx_arg_cache_file}`
a848cd7e 16079 if test "x$LINE" != x ; then
8630a814
VZ
16080 eval "DEFAULT_$LINE"
16081 cache=yes
16082 else
16083 cache=no
a848cd7e
SC
16084 fi
16085
d970f7d5 16086 wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
a848cd7e 16087
47964710
VS
16088fi
16089
a848cd7e 16090
d970f7d5 16091 eval "$wx_cv_use_pnm"
8743ec79
VZ
16092 if test "x$cache" = xyes; then
16093 echo "wxUSE_PNM=$wxUSE_PNM" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
16094 fi
16095
6e198e97
VZ
16096 if test x"$enablestring" = xdisable; then
16097 if test $wxUSE_PNM = yes; then
16098 result=no
16099 else
16100 result=yes
16101 fi
a848cd7e 16102 else
6e198e97 16103 result=$wxUSE_PNM
a848cd7e
SC
16104 fi
16105
47964710
VS
16106 { echo "$as_me:$LINENO: result: $result" >&5
16107echo "${ECHO_T}$result" >&6; }
6e198e97 16108
a848cd7e 16109
077c7880 16110 enablestring=
6e198e97 16111 defaultval=$wxUSE_ALL_FEATURES
238663c1 16112 if test -z "$defaultval"; then
6e198e97
VZ
16113 if test x"$enablestring" = xdisable; then
16114 defaultval=yes
16115 else
16116 defaultval=no
16117 fi
16118 fi
16119
47964710
VS
16120 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
16121echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
16122 # Check whether --enable-xpm was given.
a848cd7e 16123if test "${enable_xpm+set}" = set; then
47964710 16124 enableval=$enable_xpm;
a848cd7e 16125 if test "$enableval" = yes; then
d970f7d5 16126 wx_cv_use_xpm='wxUSE_XPM=yes'
a848cd7e 16127 else
d970f7d5 16128 wx_cv_use_xpm='wxUSE_XPM=no'
a848cd7e 16129 fi
8743ec79 16130 cache=yes
a848cd7e
SC
16131
16132else
16133
b46b1d59 16134 LINE=`grep "^wxUSE_XPM=" ${wx_arg_cache_file}`
a848cd7e 16135 if test "x$LINE" != x ; then
8630a814
VZ
16136 eval "DEFAULT_$LINE"
16137 cache=yes
16138 else
16139 cache=no
a848cd7e
SC
16140 fi
16141
d970f7d5 16142 wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
a848cd7e 16143
47964710
VS
16144fi
16145
a848cd7e 16146
d970f7d5 16147 eval "$wx_cv_use_xpm"
8743ec79
VZ
16148 if test "x$cache" = xyes; then
16149 echo "wxUSE_XPM=$wxUSE_XPM" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
16150 fi
16151
6e198e97
VZ
16152 if test x"$enablestring" = xdisable; then
16153 if test $wxUSE_XPM = yes; then
16154 result=no
16155 else
16156 result=yes
16157 fi
a848cd7e 16158 else
6e198e97 16159 result=$wxUSE_XPM
a848cd7e
SC
16160 fi
16161
47964710
VS
16162 { echo "$as_me:$LINENO: result: $result" >&5
16163echo "${ECHO_T}$result" >&6; }
6e198e97 16164
a848cd7e 16165
077c7880 16166 enablestring=
6e198e97 16167 defaultval=$wxUSE_ALL_FEATURES
238663c1 16168 if test -z "$defaultval"; then
6e198e97
VZ
16169 if test x"$enablestring" = xdisable; then
16170 defaultval=yes
16171 else
16172 defaultval=no
16173 fi
16174 fi
16175
47964710
VS
16176 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
16177echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
16178 # Check whether --enable-ico_cur was given.
a848cd7e 16179if test "${enable_ico_cur+set}" = set; then
47964710 16180 enableval=$enable_ico_cur;
a848cd7e 16181 if test "$enableval" = yes; then
d970f7d5 16182 wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
a848cd7e 16183 else
d970f7d5 16184 wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
a848cd7e 16185 fi
8743ec79 16186 cache=yes
a848cd7e
SC
16187
16188else
16189
b46b1d59 16190 LINE=`grep "^wxUSE_ICO_CUR=" ${wx_arg_cache_file}`
a848cd7e 16191 if test "x$LINE" != x ; then
8630a814
VZ
16192 eval "DEFAULT_$LINE"
16193 cache=yes
16194 else
16195 cache=no
a848cd7e
SC
16196 fi
16197
d970f7d5 16198 wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
a848cd7e 16199
47964710
VS
16200fi
16201
a848cd7e 16202
d970f7d5 16203 eval "$wx_cv_use_ico_cur"
8743ec79
VZ
16204 if test "x$cache" = xyes; then
16205 echo "wxUSE_ICO_CUR=$wxUSE_ICO_CUR" >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
16206 fi
16207
6e198e97
VZ
16208 if test x"$enablestring" = xdisable; then
16209 if test $wxUSE_ICO_CUR = yes; then
16210 result=no
16211 else
16212 result=yes
16213 fi
a848cd7e 16214 else
6e198e97 16215 result=$wxUSE_ICO_CUR
a848cd7e
SC
16216 fi
16217
47964710
VS
16218 { echo "$as_me:$LINENO: result: $result" >&5
16219echo "${ECHO_T}$result" >&6; }
a848cd7e 16220
a848cd7e 16221
5d18e029
VZ
16222
16223
16224 enablestring=
16225 defaultval=$wxUSE_ALL_FEATURES
16226 if test -z "$defaultval"; then
16227 if test x"$enablestring" = xdisable; then
16228 defaultval=yes
16229 else
16230 defaultval=no
16231 fi
16232 fi
16233
47964710
VS
16234 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
16235echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
16236 # Check whether --enable-dccache was given.
5d18e029 16237if test "${enable_dccache+set}" = set; then
47964710 16238 enableval=$enable_dccache;
5d18e029
VZ
16239 if test "$enableval" = yes; then
16240 wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
16241 else
16242 wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
16243 fi
8743ec79 16244 cache=yes
5d18e029
VZ
16245
16246else
16247
16248 LINE=`grep "^wxUSE_DC_CACHEING=" ${wx_arg_cache_file}`
16249 if test "x$LINE" != x ; then
8630a814
VZ
16250 eval "DEFAULT_$LINE"
16251 cache=yes
16252 else
16253 cache=no
5d18e029
VZ
16254 fi
16255
16256 wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
16257
47964710
VS
16258fi
16259
5d18e029
VZ
16260
16261 eval "$wx_cv_use_dccache"
8743ec79
VZ
16262 if test "x$cache" = xyes; then
16263 echo "wxUSE_DC_CACHEING=$wxUSE_DC_CACHEING" >> ${wx_arg_cache_file}.tmp
5d18e029
VZ
16264 fi
16265
16266 if test x"$enablestring" = xdisable; then
16267 if test $wxUSE_DC_CACHEING = yes; then
16268 result=no
16269 else
16270 result=yes
16271 fi
16272 else
16273 result=$wxUSE_DC_CACHEING
16274 fi
16275
47964710
VS
16276 { echo "$as_me:$LINENO: result: $result" >&5
16277echo "${ECHO_T}$result" >&6; }
5d18e029
VZ
16278
16279
0295153c
VZ
16280 enablestring=
16281 defaultval=$wxUSE_ALL_FEATURES
16282 if test -z "$defaultval"; then
16283 if test x"$enablestring" = xdisable; then
16284 defaultval=yes
16285 else
16286 defaultval=no
16287 fi
16288 fi
16289
47964710
VS
16290 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
16291echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
16292 # Check whether --enable-ps-in-msw was given.
0295153c 16293if test "${enable_ps_in_msw+set}" = set; then
47964710 16294 enableval=$enable_ps_in_msw;
0295153c
VZ
16295 if test "$enableval" = yes; then
16296 wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
16297 else
16298 wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
16299 fi
16300 cache=yes
16301
16302else
16303
16304 LINE=`grep "^wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=" ${wx_arg_cache_file}`
16305 if test "x$LINE" != x ; then
8630a814
VZ
16306 eval "DEFAULT_$LINE"
16307 cache=yes
16308 else
16309 cache=no
0295153c
VZ
16310 fi
16311
16312 wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
16313
47964710
VS
16314fi
16315
0295153c
VZ
16316
16317 eval "$wx_cv_use_ps_in_msw"
16318 if test "x$cache" = xyes; then
16319 echo "wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" >> ${wx_arg_cache_file}.tmp
16320 fi
16321
16322 if test x"$enablestring" = xdisable; then
16323 if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
16324 result=no
16325 else
16326 result=yes
16327 fi
16328 else
16329 result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
16330 fi
16331
47964710
VS
16332 { echo "$as_me:$LINENO: result: $result" >&5
16333echo "${ECHO_T}$result" >&6; }
0295153c
VZ
16334
16335
6fdf2acc
VZ
16336 enablestring=
16337 defaultval=$wxUSE_ALL_FEATURES
16338 if test -z "$defaultval"; then
16339 if test x"$enablestring" = xdisable; then
16340 defaultval=yes
16341 else
16342 defaultval=no
16343 fi
16344 fi
16345
47964710
VS
16346 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
16347echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
16348 # Check whether --enable-ownerdrawn was given.
6fdf2acc 16349if test "${enable_ownerdrawn+set}" = set; then
47964710 16350 enableval=$enable_ownerdrawn;
6fdf2acc
VZ
16351 if test "$enableval" = yes; then
16352 wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
16353 else
16354 wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
16355 fi
16356 cache=yes
16357
16358else
16359
16360 LINE=`grep "^wxUSE_OWNER_DRAWN=" ${wx_arg_cache_file}`
16361 if test "x$LINE" != x ; then
8630a814
VZ
16362 eval "DEFAULT_$LINE"
16363 cache=yes
16364 else
16365 cache=no
6fdf2acc
VZ
16366 fi
16367
16368 wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
16369
47964710
VS
16370fi
16371
6fdf2acc
VZ
16372
16373 eval "$wx_cv_use_ownerdrawn"
16374 if test "x$cache" = xyes; then
16375 echo "wxUSE_OWNER_DRAWN=$wxUSE_OWNER_DRAWN" >> ${wx_arg_cache_file}.tmp
16376 fi
16377
16378 if test x"$enablestring" = xdisable; then
16379 if test $wxUSE_OWNER_DRAWN = yes; then
16380 result=no
16381 else
16382 result=yes
16383 fi
16384 else
16385 result=$wxUSE_OWNER_DRAWN
16386 fi
16387
47964710
VS
16388 { echo "$as_me:$LINENO: result: $result" >&5
16389echo "${ECHO_T}$result" >&6; }
6fdf2acc
VZ
16390
16391
5d18e029
VZ
16392 enablestring=
16393 defaultval=$wxUSE_ALL_FEATURES
16394 if test -z "$defaultval"; then
16395 if test x"$enablestring" = xdisable; then
16396 defaultval=yes
16397 else
16398 defaultval=no
16399 fi
16400 fi
16401
47964710
VS
16402 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
16403echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
16404 # Check whether --enable-uxtheme was given.
5d18e029 16405if test "${enable_uxtheme+set}" = set; then
47964710 16406 enableval=$enable_uxtheme;
5d18e029
VZ
16407 if test "$enableval" = yes; then
16408 wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
16409 else
16410 wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
16411 fi
8743ec79 16412 cache=yes
5d18e029
VZ
16413
16414else
16415
16416 LINE=`grep "^wxUSE_UXTHEME=" ${wx_arg_cache_file}`
16417 if test "x$LINE" != x ; then
8630a814
VZ
16418 eval "DEFAULT_$LINE"
16419 cache=yes
16420 else
16421 cache=no
5d18e029
VZ
16422 fi
16423
16424 wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
16425
47964710
VS
16426fi
16427
5d18e029
VZ
16428
16429 eval "$wx_cv_use_uxtheme"
8743ec79
VZ
16430 if test "x$cache" = xyes; then
16431 echo "wxUSE_UXTHEME=$wxUSE_UXTHEME" >> ${wx_arg_cache_file}.tmp
5d18e029
VZ
16432 fi
16433
16434 if test x"$enablestring" = xdisable; then
16435 if test $wxUSE_UXTHEME = yes; then
16436 result=no
16437 else
16438 result=yes
16439 fi
16440 else
16441 result=$wxUSE_UXTHEME
16442 fi
16443
47964710
VS
16444 { echo "$as_me:$LINENO: result: $result" >&5
16445echo "${ECHO_T}$result" >&6; }
5d18e029
VZ
16446
16447
508d12b2
VZ
16448 enablestring=
16449 defaultval=$wxUSE_ALL_FEATURES
16450 if test -z "$defaultval"; then
16451 if test x"$enablestring" = xdisable; then
16452 defaultval=yes
16453 else
16454 defaultval=no
16455 fi
16456 fi
16457
47964710
VS
16458 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
16459echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
16460 # Check whether --enable-wxdib was given.
508d12b2 16461if test "${enable_wxdib+set}" = set; then
47964710 16462 enableval=$enable_wxdib;
508d12b2
VZ
16463 if test "$enableval" = yes; then
16464 wx_cv_use_wxdib='wxUSE_DIB=yes'
16465 else
16466 wx_cv_use_wxdib='wxUSE_DIB=no'
16467 fi
16468 cache=yes
16469
16470else
16471
16472 LINE=`grep "^wxUSE_DIB=" ${wx_arg_cache_file}`
16473 if test "x$LINE" != x ; then
8630a814
VZ
16474 eval "DEFAULT_$LINE"
16475 cache=yes
16476 else
16477 cache=no
508d12b2
VZ
16478 fi
16479
16480 wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
16481
47964710
VS
16482fi
16483
508d12b2
VZ
16484
16485 eval "$wx_cv_use_wxdib"
16486 if test "x$cache" = xyes; then
16487 echo "wxUSE_DIB=$wxUSE_DIB" >> ${wx_arg_cache_file}.tmp
16488 fi
16489
16490 if test x"$enablestring" = xdisable; then
16491 if test $wxUSE_DIB = yes; then
16492 result=no
16493 else
16494 result=yes
16495 fi
16496 else
16497 result=$wxUSE_DIB
16498 fi
16499
47964710
VS
16500 { echo "$as_me:$LINENO: result: $result" >&5
16501echo "${ECHO_T}$result" >&6; }
508d12b2
VZ
16502
16503
a848cd7e
SC
16504fi
16505
a848cd7e 16506
a848cd7e
SC
16507 echo "saving argument cache $wx_arg_cache_file"
16508 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
16509
16510
16511
47964710
VS
16512{ echo "$as_me:$LINENO: checking for toolkit" >&5
16513echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
a848cd7e
SC
16514
16515# In Wine, we need to default to MSW, not GTK or MOTIF
16516if test "$wxUSE_WINE" = "yes"; then
16517 DEFAULT_DEFAULT_wxUSE_GTK=0
16518 DEFAULT_DEFAULT_wxUSE_MOTIF=0
16519 DEFAULT_DEFAULT_wxUSE_MSW=1
16520 wxUSE_SHARED=no
e604ac79
MW
16521 CC=${CC:-winegcc}
16522 CXX=${CXX:-wineg++}
a848cd7e
SC
16523fi
16524
f597b41c 16525
a848cd7e
SC
16526if test "$wxUSE_GUI" = "yes"; then
16527
16528 if test "$USE_BEOS" = 1; then
16529 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
16530echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
16531 { (exit 1); exit 1; }; }
16532 fi
16533
16534 if test "$TOOLKIT_GIVEN" = 1; then
16535 for toolkit in `echo $ALL_TOOLKITS`; do
16536 var=wxUSE_$toolkit
16537 eval "value=\$${var}"
f34ca037
MW
16538 if test "x$value" = "xno"; then
16539 eval "$var=0"
16540 elif test "x$value" != "x"; then
16541 eval "$var=1"
16542 fi
16543
16544 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
16545 eval "wx${toolkit}_VERSION=$value"
16546 fi
a848cd7e
SC
16547 done
16548 else
16549 for toolkit in `echo $ALL_TOOLKITS`; do
16550 if test "$has_toolkit_in_cache" != 1; then
16551 var=DEFAULT_DEFAULT_wxUSE_$toolkit
16552 else
16553 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
16554
16555 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
16556 if test "x$version" != "x"; then
16557 eval "wx${toolkit}_VERSION=$version"
16558 fi
a848cd7e
SC
16559 fi
16560 eval "wxUSE_$toolkit=\$${var}"
16561 done
16562 fi
16563
16564 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 16565 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
16566 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
16567
16568 case "${host}" in
16569 *-pc-os2_emx | *-pc-os2-emx )
16570 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
16571 esac
16572
16573 case "$NUM_TOOLKITS" in
16574 1)
16575 ;;
16576 0)
16577 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
16578echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
16579 { (exit 1); exit 1; }; }
16580 ;;
16581 *)
16582 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
16583echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
16584 { (exit 1); exit 1; }; }
16585 esac
16586
f34ca037
MW
16587 # to be removed when --disable-gtk2 isn't needed
16588 if test "x$wxUSE_GTK2" = "xyes"; then
16589 wxGTK_VERSION=2
16590 elif test "x$wxUSE_GTK2" = "xno"; then
16591 wxGTK_VERSION=1
16592 fi
16593
a848cd7e
SC
16594 for toolkit in `echo $ALL_TOOLKITS`; do
16595 var=wxUSE_$toolkit
16596 eval "value=\$${var}"
16597 if test "x$value" != x; then
16598 cache_var=CACHE_$toolkit
16599 eval "cache=\$${cache_var}"
16600 if test "$cache" = 1; then
16601 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
16602 eval "version=\$wx${toolkit}_VERSION"
16603 if test "x$version" != "x"; then
16604 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
16605 fi
a848cd7e
SC
16606 fi
16607 if test "$value" = 1; then
16608 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
47964710
VS
16609 { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
16610echo "${ECHO_T}$toolkit_echo" >&6; }
a848cd7e
SC
16611 fi
16612 fi
16613 done
16614else
16615 if test "x$host_alias" != "x"; then
47964710
VS
16616 { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
16617echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
a848cd7e 16618 else
47964710
VS
16619 { echo "$as_me:$LINENO: result: base only" >&5
16620echo "${ECHO_T}base only" >&6; }
a848cd7e
SC
16621 fi
16622fi
16623
8bf7f1a9
VZ
16624
16625cat >confcache <<\_ACEOF
16626# This file is a shell script that caches the results of configure
16627# tests run on this system so they can be shared between configure
16628# scripts and configure runs, see configure's option --config-cache.
16629# It is not useful on other systems. If it contains results you don't
16630# want to keep, you may remove or edit it.
16631#
16632# config.status only pays attention to the cache file if you give it
16633# the --recheck option to rerun configure.
16634#
16635# `ac_cv_env_foo' variables (set or unset) will be overridden when
16636# loading this file, other *unset* `ac_cv_foo' will be assigned the
16637# following values.
16638
16639_ACEOF
16640
16641# The following way of writing the cache mishandles newlines in values,
16642# but we know of no workaround that is simple, portable, and efficient.
47964710 16643# So, we kill variables containing newlines.
8bf7f1a9
VZ
16644# Ultrix sh set writes to stderr and can't be redirected directly,
16645# and sets the high bit in the cache file unless we assign to the vars.
47964710
VS
16646(
16647 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16648 eval ac_val=\$$ac_var
16649 case $ac_val in #(
16650 *${as_nl}*)
16651 case $ac_var in #(
16652 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16653echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16654 esac
16655 case $ac_var in #(
16656 _ | IFS | as_nl) ;; #(
16657 *) $as_unset $ac_var ;;
16658 esac ;;
16659 esac
16660 done
16661
8bf7f1a9 16662 (set) 2>&1 |
47964710
VS
16663 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16664 *${as_nl}ac_space=\ *)
8bf7f1a9
VZ
16665 # `set' does not quote correctly, so add quotes (double-quote
16666 # substitution turns \\\\ into \\, and sed turns \\ into \).
16667 sed -n \
16668 "s/'/'\\\\''/g;
16669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47964710 16670 ;; #(
8bf7f1a9
VZ
16671 *)
16672 # `set' quotes correctly as required by POSIX, so do not add quotes.
47964710 16673 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8bf7f1a9 16674 ;;
47964710
VS
16675 esac |
16676 sort
16677) |
8bf7f1a9 16678 sed '
47964710 16679 /^ac_cv_env_/b end
8bf7f1a9 16680 t clear
47964710 16681 :clear
8bf7f1a9
VZ
16682 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16683 t end
47964710
VS
16684 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16685 :end' >>confcache
16686if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16687 if test -w "$cache_file"; then
16688 test "x$cache_file" != "x/dev/null" &&
16689 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16690echo "$as_me: updating cache $cache_file" >&6;}
8bf7f1a9
VZ
16691 cat confcache >$cache_file
16692 else
47964710
VS
16693 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16694echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8bf7f1a9
VZ
16695 fi
16696fi
16697rm -f confcache
16698
16699CFLAGS=${CFLAGS:=}
16700
16701
16702
16703 ac_ext=c
a848cd7e
SC
16704ac_cpp='$CPP $CPPFLAGS'
16705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16707ac_compiler_gnu=$ac_cv_c_compiler_gnu
16708if test -n "$ac_tool_prefix"; then
16709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16710set dummy ${ac_tool_prefix}gcc; ac_word=$2
47964710
VS
16711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
16713if test "${ac_cv_prog_CC+set}" = set; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16715else
16716 if test -n "$CC"; then
16717 ac_cv_prog_CC="$CC" # Let the user override the test.
16718else
16719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16720for as_dir in $PATH
16721do
16722 IFS=$as_save_IFS
16723 test -z "$as_dir" && as_dir=.
16724 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 16725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
16726 ac_cv_prog_CC="${ac_tool_prefix}gcc"
16727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16728 break 2
16729 fi
16730done
16731done
47964710 16732IFS=$as_save_IFS
a848cd7e
SC
16733
16734fi
16735fi
16736CC=$ac_cv_prog_CC
16737if test -n "$CC"; then
47964710
VS
16738 { echo "$as_me:$LINENO: result: $CC" >&5
16739echo "${ECHO_T}$CC" >&6; }
a848cd7e 16740else
47964710
VS
16741 { echo "$as_me:$LINENO: result: no" >&5
16742echo "${ECHO_T}no" >&6; }
a848cd7e
SC
16743fi
16744
47964710 16745
a848cd7e
SC
16746fi
16747if test -z "$ac_cv_prog_CC"; then
16748 ac_ct_CC=$CC
16749 # Extract the first word of "gcc", so it can be a program name with args.
16750set dummy gcc; ac_word=$2
47964710
VS
16751{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
16753if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755else
16756 if test -n "$ac_ct_CC"; then
16757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16758else
16759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16760for as_dir in $PATH
16761do
16762 IFS=$as_save_IFS
16763 test -z "$as_dir" && as_dir=.
16764 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 16765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
16766 ac_cv_prog_ac_ct_CC="gcc"
16767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16768 break 2
16769 fi
16770done
16771done
47964710 16772IFS=$as_save_IFS
a848cd7e
SC
16773
16774fi
16775fi
16776ac_ct_CC=$ac_cv_prog_ac_ct_CC
16777if test -n "$ac_ct_CC"; then
47964710
VS
16778 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16779echo "${ECHO_T}$ac_ct_CC" >&6; }
a848cd7e 16780else
47964710
VS
16781 { echo "$as_me:$LINENO: result: no" >&5
16782echo "${ECHO_T}no" >&6; }
a848cd7e
SC
16783fi
16784
47964710
VS
16785 if test "x$ac_ct_CC" = x; then
16786 CC=""
16787 else
16788 case $cross_compiling:$ac_tool_warned in
16789yes:)
16790{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16791whose name does not start with the host triplet. If you think this
16792configuration is useful to you, please write to autoconf@gnu.org." >&5
16793echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16794whose name does not start with the host triplet. If you think this
16795configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16796ac_tool_warned=yes ;;
16797esac
16798 CC=$ac_ct_CC
16799 fi
a848cd7e
SC
16800else
16801 CC="$ac_cv_prog_CC"
16802fi
16803
16804if test -z "$CC"; then
47964710
VS
16805 if test -n "$ac_tool_prefix"; then
16806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
a848cd7e 16807set dummy ${ac_tool_prefix}cc; ac_word=$2
47964710
VS
16808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
16810if test "${ac_cv_prog_CC+set}" = set; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16812else
16813 if test -n "$CC"; then
16814 ac_cv_prog_CC="$CC" # Let the user override the test.
16815else
16816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16817for as_dir in $PATH
16818do
16819 IFS=$as_save_IFS
16820 test -z "$as_dir" && as_dir=.
16821 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 16822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
16823 ac_cv_prog_CC="${ac_tool_prefix}cc"
16824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16825 break 2
16826 fi
16827done
16828done
47964710 16829IFS=$as_save_IFS
a848cd7e
SC
16830
16831fi
16832fi
16833CC=$ac_cv_prog_CC
16834if test -n "$CC"; then
47964710
VS
16835 { echo "$as_me:$LINENO: result: $CC" >&5
16836echo "${ECHO_T}$CC" >&6; }
4db03d26 16837else
47964710
VS
16838 { echo "$as_me:$LINENO: result: no" >&5
16839echo "${ECHO_T}no" >&6; }
4db03d26
VZ
16840fi
16841
bd8a7646 16842
47964710 16843 fi
a848cd7e
SC
16844fi
16845if test -z "$CC"; then
16846 # Extract the first word of "cc", so it can be a program name with args.
16847set dummy cc; ac_word=$2
47964710
VS
16848{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
16850if test "${ac_cv_prog_CC+set}" = set; then
16851 echo $ECHO_N "(cached) $ECHO_C" >&6
16852else
16853 if test -n "$CC"; then
16854 ac_cv_prog_CC="$CC" # Let the user override the test.
16855else
16856 ac_prog_rejected=no
16857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16858for as_dir in $PATH
16859do
16860 IFS=$as_save_IFS
16861 test -z "$as_dir" && as_dir=.
16862 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 16863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
16864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16865 ac_prog_rejected=yes
16866 continue
16867 fi
16868 ac_cv_prog_CC="cc"
16869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16870 break 2
16871 fi
16872done
16873done
47964710 16874IFS=$as_save_IFS
a848cd7e
SC
16875
16876if test $ac_prog_rejected = yes; then
16877 # We found a bogon in the path, so make sure we never use it.
16878 set dummy $ac_cv_prog_CC
16879 shift
16880 if test $# != 0; then
16881 # We chose a different compiler from the bogus one.
16882 # However, it has the same basename, so the bogon will be chosen
16883 # first if we set CC to just the basename; use the full file name.
16884 shift
16885 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16886 fi
16887fi
16888fi
16889fi
16890CC=$ac_cv_prog_CC
16891if test -n "$CC"; then
47964710
VS
16892 { echo "$as_me:$LINENO: result: $CC" >&5
16893echo "${ECHO_T}$CC" >&6; }
a848cd7e 16894else
47964710
VS
16895 { echo "$as_me:$LINENO: result: no" >&5
16896echo "${ECHO_T}no" >&6; }
a848cd7e
SC
16897fi
16898
47964710 16899
a848cd7e
SC
16900fi
16901if test -z "$CC"; then
16902 if test -n "$ac_tool_prefix"; then
47964710 16903 for ac_prog in cl.exe
a848cd7e
SC
16904 do
16905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
47964710
VS
16907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
16909if test "${ac_cv_prog_CC+set}" = set; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16911else
16912 if test -n "$CC"; then
16913 ac_cv_prog_CC="$CC" # Let the user override the test.
16914else
16915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16916for as_dir in $PATH
16917do
16918 IFS=$as_save_IFS
16919 test -z "$as_dir" && as_dir=.
16920 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 16921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
16922 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16924 break 2
16925 fi
16926done
16927done
47964710 16928IFS=$as_save_IFS
a848cd7e
SC
16929
16930fi
16931fi
16932CC=$ac_cv_prog_CC
16933if test -n "$CC"; then
47964710
VS
16934 { echo "$as_me:$LINENO: result: $CC" >&5
16935echo "${ECHO_T}$CC" >&6; }
a848cd7e 16936else
47964710
VS
16937 { echo "$as_me:$LINENO: result: no" >&5
16938echo "${ECHO_T}no" >&6; }
a848cd7e
SC
16939fi
16940
47964710 16941
a848cd7e
SC
16942 test -n "$CC" && break
16943 done
16944fi
16945if test -z "$CC"; then
16946 ac_ct_CC=$CC
47964710 16947 for ac_prog in cl.exe
a848cd7e
SC
16948do
16949 # Extract the first word of "$ac_prog", so it can be a program name with args.
16950set dummy $ac_prog; ac_word=$2
47964710
VS
16951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
16953if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16954 echo $ECHO_N "(cached) $ECHO_C" >&6
16955else
16956 if test -n "$ac_ct_CC"; then
16957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16958else
16959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16960for as_dir in $PATH
16961do
16962 IFS=$as_save_IFS
16963 test -z "$as_dir" && as_dir=.
16964 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 16965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
16966 ac_cv_prog_ac_ct_CC="$ac_prog"
16967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16968 break 2
16969 fi
16970done
16971done
47964710 16972IFS=$as_save_IFS
a848cd7e
SC
16973
16974fi
16975fi
16976ac_ct_CC=$ac_cv_prog_ac_ct_CC
16977if test -n "$ac_ct_CC"; then
47964710
VS
16978 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16979echo "${ECHO_T}$ac_ct_CC" >&6; }
a848cd7e 16980else
47964710
VS
16981 { echo "$as_me:$LINENO: result: no" >&5
16982echo "${ECHO_T}no" >&6; }
a848cd7e
SC
16983fi
16984
47964710 16985
a848cd7e
SC
16986 test -n "$ac_ct_CC" && break
16987done
16988
47964710
VS
16989 if test "x$ac_ct_CC" = x; then
16990 CC=""
16991 else
16992 case $cross_compiling:$ac_tool_warned in
16993yes:)
16994{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16995whose name does not start with the host triplet. If you think this
16996configuration is useful to you, please write to autoconf@gnu.org." >&5
16997echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16998whose name does not start with the host triplet. If you think this
16999configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17000ac_tool_warned=yes ;;
17001esac
17002 CC=$ac_ct_CC
17003 fi
a848cd7e
SC
17004fi
17005
17006fi
17007
17008
17009test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
17010See \`config.log' for more details." >&5
17011echo "$as_me: error: no acceptable C compiler found in \$PATH
17012See \`config.log' for more details." >&2;}
17013 { (exit 1); exit 1; }; }
17014
17015# Provide some information about the compiler.
47964710 17016echo "$as_me:$LINENO: checking for C compiler version" >&5
a848cd7e 17017ac_compiler=`set X $ac_compile; echo $2`
47964710
VS
17018{ (ac_try="$ac_compiler --version >&5"
17019case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17022esac
17023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_compiler --version >&5") 2>&5
a848cd7e
SC
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }
47964710
VS
17028{ (ac_try="$ac_compiler -v >&5"
17029case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17032esac
17033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_compiler -v >&5") 2>&5
a848cd7e
SC
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }
47964710
VS
17038{ (ac_try="$ac_compiler -V >&5"
17039case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17042esac
17043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_compiler -V >&5") 2>&5
a848cd7e
SC
17045 ac_status=$?
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }
17048
17049cat >conftest.$ac_ext <<_ACEOF
17050/* confdefs.h. */
17051_ACEOF
17052cat confdefs.h >>conftest.$ac_ext
17053cat >>conftest.$ac_ext <<_ACEOF
17054/* end confdefs.h. */
17055
17056int
17057main ()
17058{
17059
17060 ;
17061 return 0;
17062}
17063_ACEOF
17064ac_clean_files_save=$ac_clean_files
17065ac_clean_files="$ac_clean_files a.out a.exe b.out"
17066# Try to create an executable without -o first, disregard a.out.
17067# It will help us diagnose broken compilers, and finding out an intuition
17068# of exeext.
47964710
VS
17069{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
17070echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
a848cd7e 17071ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
47964710
VS
17072#
17073# List of possible output files, starting from the most likely.
17074# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
17075# only as a last resort. b.out is created by i960 compilers.
17076ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
17077#
17078# The IRIX 6 linker writes into existing files which may not be
17079# executable, retaining their permissions. Remove them first so a
17080# subsequent execution test works.
17081ac_rmfiles=
17082for ac_file in $ac_files
17083do
17084 case $ac_file in
17085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
17086 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
17087 esac
17088done
17089rm -f $ac_rmfiles
17090
17091if { (ac_try="$ac_link_default"
17092case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095esac
17096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_link_default") 2>&5
a848cd7e
SC
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; then
47964710
VS
17101 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
17102# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
17103# in a Makefile. We should not override ac_cv_exeext if it was cached,
17104# so that the user can short-circuit this test for compilers unknown to
17105# Autoconf.
17106for ac_file in $ac_files ''
a848cd7e
SC
17107do
17108 test -f "$ac_file" || continue
17109 case $ac_file in
47964710 17110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
ac1cb8d3 17111 ;;
a848cd7e 17112 [ab].out )
ac1cb8d3
VS
17113 # We found the default executable, but exeext='' is most
17114 # certainly right.
17115 break;;
a848cd7e 17116 *.* )
47964710
VS
17117 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
17118 then :; else
17119 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
17120 fi
17121 # We set ac_cv_exeext here because the later test for it is not
17122 # safe: cross compilers may not add the suffix if given an `-o'
17123 # argument, so we may need to know it at that point already.
17124 # Even if this section looks crufty: it has the advantage of
17125 # actually working.
ac1cb8d3 17126 break;;
a848cd7e 17127 * )
ac1cb8d3 17128 break;;
a848cd7e
SC
17129 esac
17130done
47964710
VS
17131test "$ac_cv_exeext" = no && ac_cv_exeext=
17132
a848cd7e 17133else
47964710
VS
17134 ac_file=''
17135fi
17136
17137{ echo "$as_me:$LINENO: result: $ac_file" >&5
17138echo "${ECHO_T}$ac_file" >&6; }
17139if test -z "$ac_file"; then
a848cd7e
SC
17140 echo "$as_me: failed program was:" >&5
17141sed 's/^/| /' conftest.$ac_ext >&5
17142
17143{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
17144See \`config.log' for more details." >&5
17145echo "$as_me: error: C compiler cannot create executables
17146See \`config.log' for more details." >&2;}
17147 { (exit 77); exit 77; }; }
17148fi
17149
17150ac_exeext=$ac_cv_exeext
a848cd7e 17151
47964710 17152# Check that the compiler produces executables we can run. If not, either
a848cd7e 17153# the compiler is broken, or we cross compile.
47964710
VS
17154{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
17155echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
a848cd7e
SC
17156# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
17157# If not cross compiling, check that we can run a simple program.
17158if test "$cross_compiling" != yes; then
17159 if { ac_try='./$ac_file'
47964710
VS
17160 { (case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163esac
17164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_try") 2>&5
a848cd7e
SC
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 cross_compiling=no
17170 else
17171 if test "$cross_compiling" = maybe; then
17172 cross_compiling=yes
17173 else
17174 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
17175If you meant to cross compile, use \`--host'.
17176See \`config.log' for more details." >&5
17177echo "$as_me: error: cannot run C compiled programs.
17178If you meant to cross compile, use \`--host'.
17179See \`config.log' for more details." >&2;}
17180 { (exit 1); exit 1; }; }
17181 fi
17182 fi
17183fi
47964710
VS
17184{ echo "$as_me:$LINENO: result: yes" >&5
17185echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
17186
17187rm -f a.out a.exe conftest$ac_cv_exeext b.out
17188ac_clean_files=$ac_clean_files_save
47964710 17189# Check that the compiler produces executables we can run. If not, either
a848cd7e 17190# the compiler is broken, or we cross compile.
47964710
VS
17191{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
17192echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
17193{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
17194echo "${ECHO_T}$cross_compiling" >&6; }
17195
17196{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
17197echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
17198if { (ac_try="$ac_link"
17199case "(($ac_try" in
17200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201 *) ac_try_echo=$ac_try;;
17202esac
17203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204 (eval "$ac_link") 2>&5
a848cd7e
SC
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; then
17208 # If both `conftest.exe' and `conftest' are `present' (well, observable)
17209# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
17210# work properly (i.e., refer to `conftest.exe'), while it won't with
17211# `rm'.
17212for ac_file in conftest.exe conftest conftest.*; do
17213 test -f "$ac_file" || continue
17214 case $ac_file in
47964710 17215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
a848cd7e 17216 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3 17217 break;;
8bf7f1a9
VZ
17218 * ) break;;
17219 esac
6da4ac91 17220done
6da4ac91 17221else
8bf7f1a9
VZ
17222 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
17223See \`config.log' for more details." >&5
17224echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
17225See \`config.log' for more details." >&2;}
17226 { (exit 1); exit 1; }; }
6da4ac91
VZ
17227fi
17228
8bf7f1a9 17229rm -f conftest$ac_cv_exeext
47964710
VS
17230{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
17231echo "${ECHO_T}$ac_cv_exeext" >&6; }
8bf7f1a9
VZ
17232
17233rm -f conftest.$ac_ext
17234EXEEXT=$ac_cv_exeext
17235ac_exeext=$EXEEXT
47964710
VS
17236{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
17237echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
8bf7f1a9 17238if test "${ac_cv_objext+set}" = set; then
6da4ac91
VZ
17239 echo $ECHO_N "(cached) $ECHO_C" >&6
17240else
8bf7f1a9
VZ
17241 cat >conftest.$ac_ext <<_ACEOF
17242/* confdefs.h. */
17243_ACEOF
17244cat confdefs.h >>conftest.$ac_ext
17245cat >>conftest.$ac_ext <<_ACEOF
17246/* end confdefs.h. */
6da4ac91 17247
8bf7f1a9
VZ
17248int
17249main ()
17250{
6da4ac91 17251
8bf7f1a9
VZ
17252 ;
17253 return 0;
17254}
17255_ACEOF
17256rm -f conftest.o conftest.obj
47964710
VS
17257if { (ac_try="$ac_compile"
17258case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17261esac
17262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263 (eval "$ac_compile") 2>&5
8bf7f1a9
VZ
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; then
47964710
VS
17267 for ac_file in conftest.o conftest.obj conftest.*; do
17268 test -f "$ac_file" || continue;
8bf7f1a9 17269 case $ac_file in
47964710 17270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
8bf7f1a9
VZ
17271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
17272 break;;
17273 esac
6da4ac91 17274done
8bf7f1a9
VZ
17275else
17276 echo "$as_me: failed program was:" >&5
17277sed 's/^/| /' conftest.$ac_ext >&5
6da4ac91 17278
8bf7f1a9 17279{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
6da4ac91 17280See \`config.log' for more details." >&5
8bf7f1a9 17281echo "$as_me: error: cannot compute suffix of object files: cannot compile
6da4ac91
VZ
17282See \`config.log' for more details." >&2;}
17283 { (exit 1); exit 1; }; }
8bf7f1a9 17284fi
6da4ac91 17285
8bf7f1a9
VZ
17286rm -f conftest.$ac_cv_objext conftest.$ac_ext
17287fi
47964710
VS
17288{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
17289echo "${ECHO_T}$ac_cv_objext" >&6; }
8bf7f1a9
VZ
17290OBJEXT=$ac_cv_objext
17291ac_objext=$OBJEXT
47964710
VS
17292{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
17293echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
6da4ac91
VZ
17294if test "${ac_cv_c_compiler_gnu+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17296else
17297 cat >conftest.$ac_ext <<_ACEOF
17298/* confdefs.h. */
17299_ACEOF
17300cat confdefs.h >>conftest.$ac_ext
17301cat >>conftest.$ac_ext <<_ACEOF
17302/* end confdefs.h. */
17303
17304int
17305main ()
17306{
17307#ifndef __GNUC__
17308 choke me
17309#endif
17310
17311 ;
17312 return 0;
17313}
17314_ACEOF
17315rm -f conftest.$ac_objext
47964710
VS
17316if { (ac_try="$ac_compile"
17317case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17320esac
17321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_compile") 2>conftest.er1
6da4ac91
VZ
17323 ac_status=$?
17324 grep -v '^ *+' conftest.er1 >conftest.err
17325 rm -f conftest.er1
17326 cat conftest.err >&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17328 (exit $ac_status); } && {
17329 test -z "$ac_c_werror_flag" ||
17330 test ! -s conftest.err
17331 } && test -s conftest.$ac_objext; then
6da4ac91
VZ
17332 ac_compiler_gnu=yes
17333else
17334 echo "$as_me: failed program was:" >&5
17335sed 's/^/| /' conftest.$ac_ext >&5
17336
47964710 17337 ac_compiler_gnu=no
6da4ac91 17338fi
47964710
VS
17339
17340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6da4ac91
VZ
17341ac_cv_c_compiler_gnu=$ac_compiler_gnu
17342
17343fi
47964710
VS
17344{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
17345echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6da4ac91
VZ
17346GCC=`test $ac_compiler_gnu = yes && echo yes`
17347ac_test_CFLAGS=${CFLAGS+set}
17348ac_save_CFLAGS=$CFLAGS
47964710
VS
17349{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17350echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6da4ac91
VZ
17351if test "${ac_cv_prog_cc_g+set}" = set; then
17352 echo $ECHO_N "(cached) $ECHO_C" >&6
17353else
47964710
VS
17354 ac_save_c_werror_flag=$ac_c_werror_flag
17355 ac_c_werror_flag=yes
17356 ac_cv_prog_cc_g=no
17357 CFLAGS="-g"
17358 cat >conftest.$ac_ext <<_ACEOF
3f7f284d
RD
17359/* confdefs.h. */
17360_ACEOF
17361cat confdefs.h >>conftest.$ac_ext
17362cat >>conftest.$ac_ext <<_ACEOF
17363/* end confdefs.h. */
17364
17365int
17366main ()
17367{
17368
17369 ;
17370 return 0;
17371}
17372_ACEOF
17373rm -f conftest.$ac_objext
47964710
VS
17374if { (ac_try="$ac_compile"
17375case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17378esac
17379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_compile") 2>conftest.er1
3f7f284d
RD
17381 ac_status=$?
17382 grep -v '^ *+' conftest.er1 >conftest.err
17383 rm -f conftest.er1
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17386 (exit $ac_status); } && {
17387 test -z "$ac_c_werror_flag" ||
17388 test ! -s conftest.err
17389 } && test -s conftest.$ac_objext; then
17390 ac_cv_prog_cc_g=yes
17391else
17392 echo "$as_me: failed program was:" >&5
17393sed 's/^/| /' conftest.$ac_ext >&5
17394
17395 CFLAGS=""
17396 cat >conftest.$ac_ext <<_ACEOF
17397/* confdefs.h. */
17398_ACEOF
17399cat confdefs.h >>conftest.$ac_ext
17400cat >>conftest.$ac_ext <<_ACEOF
17401/* end confdefs.h. */
17402
17403int
17404main ()
17405{
17406
17407 ;
17408 return 0;
17409}
17410_ACEOF
17411rm -f conftest.$ac_objext
17412if { (ac_try="$ac_compile"
17413case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17416esac
17417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_compile") 2>conftest.er1
7fd3acaf 17419 ac_status=$?
47964710
VS
17420 grep -v '^ *+' conftest.er1 >conftest.err
17421 rm -f conftest.er1
17422 cat conftest.err >&5
7fd3acaf 17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17424 (exit $ac_status); } && {
17425 test -z "$ac_c_werror_flag" ||
17426 test ! -s conftest.err
17427 } && test -s conftest.$ac_objext; then
17428 :
17429else
17430 echo "$as_me: failed program was:" >&5
17431sed 's/^/| /' conftest.$ac_ext >&5
17432
17433 ac_c_werror_flag=$ac_save_c_werror_flag
17434 CFLAGS="-g"
17435 cat >conftest.$ac_ext <<_ACEOF
17436/* confdefs.h. */
17437_ACEOF
17438cat confdefs.h >>conftest.$ac_ext
17439cat >>conftest.$ac_ext <<_ACEOF
17440/* end confdefs.h. */
17441
17442int
17443main ()
17444{
17445
17446 ;
17447 return 0;
17448}
17449_ACEOF
17450rm -f conftest.$ac_objext
17451if { (ac_try="$ac_compile"
17452case "(($ac_try" in
17453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454 *) ac_try_echo=$ac_try;;
17455esac
17456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17457 (eval "$ac_compile") 2>conftest.er1
7fd3acaf 17458 ac_status=$?
47964710
VS
17459 grep -v '^ *+' conftest.er1 >conftest.err
17460 rm -f conftest.er1
17461 cat conftest.err >&5
7fd3acaf 17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17463 (exit $ac_status); } && {
17464 test -z "$ac_c_werror_flag" ||
17465 test ! -s conftest.err
17466 } && test -s conftest.$ac_objext; then
7fd3acaf
RD
17467 ac_cv_prog_cc_g=yes
17468else
17469 echo "$as_me: failed program was:" >&5
17470sed 's/^/| /' conftest.$ac_ext >&5
17471
47964710 17472
6da4ac91 17473fi
47964710
VS
17474
17475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17476fi
17477
17478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17479fi
17480
17481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17482 ac_c_werror_flag=$ac_save_c_werror_flag
84ebfcbd 17483fi
47964710
VS
17484{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17485echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6da4ac91
VZ
17486if test "$ac_test_CFLAGS" = set; then
17487 CFLAGS=$ac_save_CFLAGS
17488elif test $ac_cv_prog_cc_g = yes; then
17489 if test "$GCC" = yes; then
17490 CFLAGS="-g -O2"
17491 else
17492 CFLAGS="-g"
17493 fi
17494else
17495 if test "$GCC" = yes; then
17496 CFLAGS="-O2"
17497 else
17498 CFLAGS=
17499 fi
17500fi
47964710
VS
17501{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
17502echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
17503if test "${ac_cv_prog_cc_c89+set}" = set; then
6da4ac91
VZ
17504 echo $ECHO_N "(cached) $ECHO_C" >&6
17505else
47964710 17506 ac_cv_prog_cc_c89=no
6da4ac91
VZ
17507ac_save_CC=$CC
17508cat >conftest.$ac_ext <<_ACEOF
17509/* confdefs.h. */
17510_ACEOF
17511cat confdefs.h >>conftest.$ac_ext
17512cat >>conftest.$ac_ext <<_ACEOF
17513/* end confdefs.h. */
17514#include <stdarg.h>
17515#include <stdio.h>
17516#include <sys/types.h>
17517#include <sys/stat.h>
17518/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
17519struct buf { int x; };
17520FILE * (*rcsopen) (struct buf *, struct stat *, int);
17521static char *e (p, i)
17522 char **p;
17523 int i;
17524{
17525 return p[i];
17526}
17527static char *f (char * (*g) (char **, int), char **p, ...)
17528{
17529 char *s;
17530 va_list v;
17531 va_start (v,p);
17532 s = g (p, va_arg (v,int));
17533 va_end (v);
17534 return s;
17535}
17536
17537/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
17538 function prototypes and stuff, but not '\xHH' hex character constants.
17539 These don't provoke an error unfortunately, instead are silently treated
47964710 17540 as 'x'. The following induces an error, until -std is added to get
6da4ac91
VZ
17541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
17542 array size at least. It's necessary to write '\x00'==0 to get something
47964710 17543 that's true only with -std. */
6da4ac91
VZ
17544int osf4_cc_array ['\x00' == 0 ? 1 : -1];
17545
47964710
VS
17546/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
17547 inside strings and character constants. */
17548#define FOO(x) 'x'
17549int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
17550
6da4ac91
VZ
17551int test (int i, double x);
17552struct s1 {int (*f) (int a);};
17553struct s2 {int (*f) (double a);};
17554int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
17555int argc;
17556char **argv;
17557int
17558main ()
17559{
17560return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
17561 ;
17562 return 0;
17563}
17564_ACEOF
47964710
VS
17565for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
17566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6da4ac91
VZ
17567do
17568 CC="$ac_save_CC $ac_arg"
17569 rm -f conftest.$ac_objext
47964710
VS
17570if { (ac_try="$ac_compile"
17571case "(($ac_try" in
17572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17574esac
17575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_compile") 2>conftest.er1
6da4ac91
VZ
17577 ac_status=$?
17578 grep -v '^ *+' conftest.er1 >conftest.err
17579 rm -f conftest.er1
17580 cat conftest.err >&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17582 (exit $ac_status); } && {
17583 test -z "$ac_c_werror_flag" ||
17584 test ! -s conftest.err
17585 } && test -s conftest.$ac_objext; then
17586 ac_cv_prog_cc_c89=$ac_arg
6da4ac91
VZ
17587else
17588 echo "$as_me: failed program was:" >&5
17589sed 's/^/| /' conftest.$ac_ext >&5
17590
47964710 17591
6da4ac91 17592fi
47964710
VS
17593
17594rm -f core conftest.err conftest.$ac_objext
17595 test "x$ac_cv_prog_cc_c89" != "xno" && break
6da4ac91 17596done
47964710 17597rm -f conftest.$ac_ext
6da4ac91
VZ
17598CC=$ac_save_CC
17599
17600fi
47964710
VS
17601# AC_CACHE_VAL
17602case "x$ac_cv_prog_cc_c89" in
17603 x)
17604 { echo "$as_me:$LINENO: result: none needed" >&5
17605echo "${ECHO_T}none needed" >&6; } ;;
17606 xno)
17607 { echo "$as_me:$LINENO: result: unsupported" >&5
17608echo "${ECHO_T}unsupported" >&6; } ;;
6da4ac91 17609 *)
47964710
VS
17610 CC="$CC $ac_cv_prog_cc_c89"
17611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
17612echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6da4ac91
VZ
17613esac
17614
bd8a7646 17615
6da4ac91
VZ
17616ac_ext=c
17617ac_cpp='$CPP $CPPFLAGS'
17618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17620ac_compiler_gnu=$ac_cv_c_compiler_gnu
17621
17622
ab0ad5f1 17623
43a7c679 17624
ab0ad5f1
VZ
17625 ac_ext=c
17626ac_cpp='$CPP $CPPFLAGS'
17627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17629ac_compiler_gnu=$ac_cv_c_compiler_gnu
17630
47964710
VS
17631 { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
17632echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
ab0ad5f1
VZ
17633if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17635else
17636 cat >conftest.$ac_ext <<_ACEOF
17637/* confdefs.h. */
17638_ACEOF
17639cat confdefs.h >>conftest.$ac_ext
17640cat >>conftest.$ac_ext <<_ACEOF
17641/* end confdefs.h. */
17642
17643int
17644main ()
17645{
17646
17647 #ifndef __INTEL_COMPILER
17648 choke me
17649 #endif
17650
17651 ;
17652 return 0;
17653}
17654_ACEOF
17655rm -f conftest.$ac_objext
47964710
VS
17656if { (ac_try="$ac_compile"
17657case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17660esac
17661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_compile") 2>conftest.er1
ab0ad5f1
VZ
17663 ac_status=$?
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17668 (exit $ac_status); } && {
17669 test -z "$ac_c_werror_flag" ||
17670 test ! -s conftest.err
17671 } && test -s conftest.$ac_objext; then
ab0ad5f1
VZ
17672 bakefile_cv_c_compiler___INTEL_COMPILER=yes
17673else
17674 echo "$as_me: failed program was:" >&5
17675sed 's/^/| /' conftest.$ac_ext >&5
17676
47964710 17677 bakefile_cv_c_compiler___INTEL_COMPILER=no
ab0ad5f1
VZ
17678
17679fi
47964710
VS
17680
17681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ab0ad5f1
VZ
17682
17683
17684fi
47964710
VS
17685{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
17686echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
43a7c679
VZ
17687 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
17688 :; INTELCC=yes
17689 else
17690 :;
17691 fi
ab0ad5f1
VZ
17692 ac_ext=c
17693ac_cpp='$CPP $CPPFLAGS'
17694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17696ac_compiler_gnu=$ac_cv_c_compiler_gnu
17697
43a7c679 17698
ab0ad5f1
VZ
17699
17700
17701 if test "x$GCC" != "xyes"; then
3006edc0 17702 if test "xCC" = "xC"; then
47964710
VS
17703 { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17704echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
0093c2fc 17705if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
17707else
17708 cat >conftest.$ac_ext <<_ACEOF
17709/* confdefs.h. */
17710_ACEOF
17711cat confdefs.h >>conftest.$ac_ext
17712cat >>conftest.$ac_ext <<_ACEOF
17713/* end confdefs.h. */
17714
17715int
17716main ()
17717{
17718
17719 ;
17720 return 0;
17721}
17722_ACEOF
17723rm -f conftest.$ac_objext conftest.$ac_ext.o
17724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17725 (eval $ac_compile) 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; then
17729 for ac_file in `(ls conftest.* 2>/dev/null)`; do
17730 case $ac_file in
17731 conftest.$ac_ext.o)
0093c2fc 17732 bakefile_cv_c_exto="-ext o"
480ccd21
DE
17733 ;;
17734 *)
17735 ;;
17736 esac
17737done
17738else
17739 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17740See \`config.log' for more details." >&5
17741echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17742See \`config.log' for more details." >&2;}
17743 { (exit 1); exit 1; }; }
17744
17745fi
17746
17747rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17748
17749fi
47964710
VS
17750{ echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17751echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
0093c2fc 17752if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 17753 if test "c" = "c"; then
0093c2fc 17754 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
17755 fi
17756 if test "c" = "cxx"; then
0093c2fc 17757 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
17758 fi
17759fi
17760
0093c2fc 17761 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
17762 unset ac_cv_prog_cc_g
17763 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 17764ac_save_CFLAGS=$CFLAGS
47964710
VS
17765{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17766echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
480ccd21
DE
17767if test "${ac_cv_prog_cc_g+set}" = set; then
17768 echo $ECHO_N "(cached) $ECHO_C" >&6
17769else
47964710
VS
17770 ac_save_c_werror_flag=$ac_c_werror_flag
17771 ac_c_werror_flag=yes
17772 ac_cv_prog_cc_g=no
17773 CFLAGS="-g"
17774 cat >conftest.$ac_ext <<_ACEOF
3f7f284d
RD
17775/* confdefs.h. */
17776_ACEOF
17777cat confdefs.h >>conftest.$ac_ext
17778cat >>conftest.$ac_ext <<_ACEOF
17779/* end confdefs.h. */
17780
17781int
17782main ()
17783{
17784
17785 ;
17786 return 0;
17787}
17788_ACEOF
17789rm -f conftest.$ac_objext
47964710
VS
17790if { (ac_try="$ac_compile"
17791case "(($ac_try" in
17792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793 *) ac_try_echo=$ac_try;;
17794esac
17795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796 (eval "$ac_compile") 2>conftest.er1
3f7f284d
RD
17797 ac_status=$?
17798 grep -v '^ *+' conftest.er1 >conftest.err
17799 rm -f conftest.er1
17800 cat conftest.err >&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17802 (exit $ac_status); } && {
17803 test -z "$ac_c_werror_flag" ||
17804 test ! -s conftest.err
17805 } && test -s conftest.$ac_objext; then
17806 ac_cv_prog_cc_g=yes
17807else
17808 echo "$as_me: failed program was:" >&5
17809sed 's/^/| /' conftest.$ac_ext >&5
17810
17811 CFLAGS=""
17812 cat >conftest.$ac_ext <<_ACEOF
17813/* confdefs.h. */
17814_ACEOF
17815cat confdefs.h >>conftest.$ac_ext
17816cat >>conftest.$ac_ext <<_ACEOF
17817/* end confdefs.h. */
17818
17819int
17820main ()
17821{
17822
17823 ;
17824 return 0;
17825}
17826_ACEOF
17827rm -f conftest.$ac_objext
17828if { (ac_try="$ac_compile"
17829case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17832esac
17833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_compile") 2>conftest.er1
7fd3acaf 17835 ac_status=$?
47964710
VS
17836 grep -v '^ *+' conftest.er1 >conftest.err
17837 rm -f conftest.er1
17838 cat conftest.err >&5
7fd3acaf 17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17840 (exit $ac_status); } && {
17841 test -z "$ac_c_werror_flag" ||
17842 test ! -s conftest.err
17843 } && test -s conftest.$ac_objext; then
17844 :
17845else
17846 echo "$as_me: failed program was:" >&5
17847sed 's/^/| /' conftest.$ac_ext >&5
17848
17849 ac_c_werror_flag=$ac_save_c_werror_flag
17850 CFLAGS="-g"
17851 cat >conftest.$ac_ext <<_ACEOF
17852/* confdefs.h. */
17853_ACEOF
17854cat confdefs.h >>conftest.$ac_ext
17855cat >>conftest.$ac_ext <<_ACEOF
17856/* end confdefs.h. */
17857
17858int
17859main ()
17860{
17861
17862 ;
17863 return 0;
17864}
17865_ACEOF
17866rm -f conftest.$ac_objext
17867if { (ac_try="$ac_compile"
17868case "(($ac_try" in
17869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870 *) ac_try_echo=$ac_try;;
17871esac
17872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873 (eval "$ac_compile") 2>conftest.er1
7fd3acaf 17874 ac_status=$?
47964710
VS
17875 grep -v '^ *+' conftest.er1 >conftest.err
17876 rm -f conftest.er1
17877 cat conftest.err >&5
7fd3acaf 17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17879 (exit $ac_status); } && {
17880 test -z "$ac_c_werror_flag" ||
17881 test ! -s conftest.err
17882 } && test -s conftest.$ac_objext; then
480ccd21
DE
17883 ac_cv_prog_cc_g=yes
17884else
17885 echo "$as_me: failed program was:" >&5
17886sed 's/^/| /' conftest.$ac_ext >&5
17887
47964710 17888
7fd3acaf 17889fi
47964710
VS
17890
17891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892fi
17893
17894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895fi
17896
17897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17898 ac_c_werror_flag=$ac_save_c_werror_flag
7fd3acaf 17899fi
47964710
VS
17900{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17901echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
480ccd21
DE
17902if test "$ac_test_CFLAGS" = set; then
17903 CFLAGS=$ac_save_CFLAGS
17904elif test $ac_cv_prog_cc_g = yes; then
17905 if test "$GCC" = yes; then
17906 CFLAGS="-g -O2"
17907 else
17908 CFLAGS="-g"
17909 fi
17910else
17911 if test "$GCC" = yes; then
17912 CFLAGS="-O2"
17913 else
17914 CFLAGS=
17915 fi
17916fi
3006edc0 17917 fi
ab0ad5f1 17918 fi
3006edc0
VZ
17919
17920 case `uname -s` in
17921 AIX*)
43a7c679
VZ
17922
17923
17924 ac_ext=c
3006edc0
VZ
17925ac_cpp='$CPP $CPPFLAGS'
17926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17928ac_compiler_gnu=$ac_cv_c_compiler_gnu
17929
47964710
VS
17930 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17931echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
43a7c679 17932if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
faa5c14f
VZ
17933 echo $ECHO_N "(cached) $ECHO_C" >&6
17934else
17935 cat >conftest.$ac_ext <<_ACEOF
17936/* confdefs.h. */
17937_ACEOF
17938cat confdefs.h >>conftest.$ac_ext
17939cat >>conftest.$ac_ext <<_ACEOF
17940/* end confdefs.h. */
17941
17942int
17943main ()
17944{
43a7c679
VZ
17945
17946 #ifndef __xlC__
17947 choke me
17948 #endif
faa5c14f
VZ
17949
17950 ;
17951 return 0;
17952}
17953_ACEOF
17954rm -f conftest.$ac_objext
47964710
VS
17955if { (ac_try="$ac_compile"
17956case "(($ac_try" in
17957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958 *) ac_try_echo=$ac_try;;
17959esac
17960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961 (eval "$ac_compile") 2>conftest.er1
faa5c14f
VZ
17962 ac_status=$?
17963 grep -v '^ *+' conftest.er1 >conftest.err
17964 rm -f conftest.er1
17965 cat conftest.err >&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17967 (exit $ac_status); } && {
17968 test -z "$ac_c_werror_flag" ||
17969 test ! -s conftest.err
17970 } && test -s conftest.$ac_objext; then
43a7c679 17971 bakefile_cv_c_compiler___xlC__=yes
faa5c14f
VZ
17972else
17973 echo "$as_me: failed program was:" >&5
17974sed 's/^/| /' conftest.$ac_ext >&5
17975
47964710 17976 bakefile_cv_c_compiler___xlC__=no
43a7c679 17977
faa5c14f 17978fi
47964710
VS
17979
17980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
faa5c14f 17981
faa5c14f 17982
43a7c679 17983fi
47964710
VS
17984{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17985echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
43a7c679
VZ
17986 if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17987 :; XLCC=yes
17988 else
17989 :;
17990 fi
17991 ac_ext=c
faa5c14f
VZ
17992ac_cpp='$CPP $CPPFLAGS'
17993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17995ac_compiler_gnu=$ac_cv_c_compiler_gnu
17996
17997
43a7c679 17998
faa5c14f
VZ
17999 ;;
18000
18001 Darwin)
43a7c679
VZ
18002
18003
18004 ac_ext=c
faa5c14f
VZ
18005ac_cpp='$CPP $CPPFLAGS'
18006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18008ac_compiler_gnu=$ac_cv_c_compiler_gnu
18009
47964710
VS
18010 { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
18011echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
43a7c679 18012if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
faa5c14f
VZ
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18014else
18015 cat >conftest.$ac_ext <<_ACEOF
18016/* confdefs.h. */
18017_ACEOF
18018cat confdefs.h >>conftest.$ac_ext
18019cat >>conftest.$ac_ext <<_ACEOF
18020/* end confdefs.h. */
18021
18022int
18023main ()
18024{
43a7c679
VZ
18025
18026 #ifndef __MWERKS__
18027 choke me
18028 #endif
faa5c14f
VZ
18029
18030 ;
18031 return 0;
18032}
18033_ACEOF
18034rm -f conftest.$ac_objext
47964710
VS
18035if { (ac_try="$ac_compile"
18036case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18039esac
18040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_compile") 2>conftest.er1
faa5c14f
VZ
18042 ac_status=$?
18043 grep -v '^ *+' conftest.er1 >conftest.err
18044 rm -f conftest.er1
18045 cat conftest.err >&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18047 (exit $ac_status); } && {
18048 test -z "$ac_c_werror_flag" ||
18049 test ! -s conftest.err
18050 } && test -s conftest.$ac_objext; then
43a7c679 18051 bakefile_cv_c_compiler___MWERKS__=yes
faa5c14f
VZ
18052else
18053 echo "$as_me: failed program was:" >&5
18054sed 's/^/| /' conftest.$ac_ext >&5
18055
47964710 18056 bakefile_cv_c_compiler___MWERKS__=no
43a7c679 18057
faa5c14f 18058fi
47964710
VS
18059
18060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
faa5c14f 18061
faa5c14f 18062
43a7c679 18063fi
47964710
VS
18064{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
18065echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
43a7c679
VZ
18066 if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
18067 :; MWCC=yes
18068 else
18069 :;
18070 fi
18071 ac_ext=c
faa5c14f
VZ
18072ac_cpp='$CPP $CPPFLAGS'
18073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18075ac_compiler_gnu=$ac_cv_c_compiler_gnu
18076
18077
43a7c679
VZ
18078
18079
18080
18081 ac_ext=c
faa5c14f
VZ
18082ac_cpp='$CPP $CPPFLAGS'
18083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18085ac_compiler_gnu=$ac_cv_c_compiler_gnu
18086
47964710
VS
18087 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
18088echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
43a7c679 18089if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
3006edc0
VZ
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091else
18092 cat >conftest.$ac_ext <<_ACEOF
18093/* confdefs.h. */
18094_ACEOF
18095cat confdefs.h >>conftest.$ac_ext
18096cat >>conftest.$ac_ext <<_ACEOF
18097/* end confdefs.h. */
18098
18099int
18100main ()
18101{
43a7c679
VZ
18102
18103 #ifndef __xlC__
18104 choke me
18105 #endif
3006edc0
VZ
18106
18107 ;
18108 return 0;
18109}
18110_ACEOF
18111rm -f conftest.$ac_objext
47964710
VS
18112if { (ac_try="$ac_compile"
18113case "(($ac_try" in
18114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115 *) ac_try_echo=$ac_try;;
18116esac
18117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118 (eval "$ac_compile") 2>conftest.er1
3006edc0
VZ
18119 ac_status=$?
18120 grep -v '^ *+' conftest.er1 >conftest.err
18121 rm -f conftest.er1
18122 cat conftest.err >&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18124 (exit $ac_status); } && {
18125 test -z "$ac_c_werror_flag" ||
18126 test ! -s conftest.err
18127 } && test -s conftest.$ac_objext; then
43a7c679 18128 bakefile_cv_c_compiler___xlC__=yes
3006edc0
VZ
18129else
18130 echo "$as_me: failed program was:" >&5
18131sed 's/^/| /' conftest.$ac_ext >&5
18132
47964710 18133 bakefile_cv_c_compiler___xlC__=no
43a7c679 18134
3006edc0 18135fi
47964710
VS
18136
18137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9273ffba 18138
9273ffba 18139
43a7c679 18140fi
47964710
VS
18141{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
18142echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
43a7c679
VZ
18143 if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
18144 :; XLCC=yes
18145 else
18146 :;
18147 fi
18148 ac_ext=c
9273ffba
DE
18149ac_cpp='$CPP $CPPFLAGS'
18150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18152ac_compiler_gnu=$ac_cv_c_compiler_gnu
18153
18154
43a7c679 18155
3006edc0
VZ
18156 ;;
18157
18158 IRIX*)
a848cd7e 18159
6dcfc289 18160
0ad5d837
VZ
18161 ac_ext=c
18162ac_cpp='$CPP $CPPFLAGS'
18163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18165ac_compiler_gnu=$ac_cv_c_compiler_gnu
18166
47964710
VS
18167 { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
18168echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
0ad5d837
VZ
18169if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
18171else
18172 cat >conftest.$ac_ext <<_ACEOF
18173/* confdefs.h. */
18174_ACEOF
18175cat confdefs.h >>conftest.$ac_ext
18176cat >>conftest.$ac_ext <<_ACEOF
18177/* end confdefs.h. */
18178
18179int
18180main ()
18181{
18182
18183 #ifndef _SGI_COMPILER_VERSION
18184 choke me
18185 #endif
18186
18187 ;
18188 return 0;
18189}
18190_ACEOF
18191rm -f conftest.$ac_objext
47964710
VS
18192if { (ac_try="$ac_compile"
18193case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18196esac
18197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_compile") 2>conftest.er1
0ad5d837
VZ
18199 ac_status=$?
18200 grep -v '^ *+' conftest.er1 >conftest.err
18201 rm -f conftest.er1
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18204 (exit $ac_status); } && {
18205 test -z "$ac_c_werror_flag" ||
18206 test ! -s conftest.err
18207 } && test -s conftest.$ac_objext; then
0ad5d837
VZ
18208 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
18209else
18210 echo "$as_me: failed program was:" >&5
18211sed 's/^/| /' conftest.$ac_ext >&5
18212
47964710 18213 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
0ad5d837
VZ
18214
18215fi
47964710
VS
18216
18217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0ad5d837
VZ
18218
18219
18220fi
47964710
VS
18221{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
18222echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
43a7c679
VZ
18223 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18224 :; SGICC=yes
18225 else
18226 :;
18227 fi
0ad5d837
VZ
18228 ac_ext=c
18229ac_cpp='$CPP $CPPFLAGS'
18230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18232ac_compiler_gnu=$ac_cv_c_compiler_gnu
18233
43a7c679
VZ
18234
18235
18236 ;;
18237
18238 Linux*)
18239
18240
18241 ac_ext=c
18242ac_cpp='$CPP $CPPFLAGS'
18243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18245ac_compiler_gnu=$ac_cv_c_compiler_gnu
18246
47964710
VS
18247 { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
18248echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
43a7c679
VZ
18249if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18251else
18252 cat >conftest.$ac_ext <<_ACEOF
18253/* confdefs.h. */
18254_ACEOF
18255cat confdefs.h >>conftest.$ac_ext
18256cat >>conftest.$ac_ext <<_ACEOF
18257/* end confdefs.h. */
18258
18259int
18260main ()
18261{
18262
18263 #ifndef __SUNPRO_C
18264 choke me
18265 #endif
18266
18267 ;
18268 return 0;
18269}
18270_ACEOF
18271rm -f conftest.$ac_objext
47964710
VS
18272if { (ac_try="$ac_compile"
18273case "(($ac_try" in
18274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18275 *) ac_try_echo=$ac_try;;
18276esac
18277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18278 (eval "$ac_compile") 2>conftest.er1
43a7c679
VZ
18279 ac_status=$?
18280 grep -v '^ *+' conftest.er1 >conftest.err
18281 rm -f conftest.er1
18282 cat conftest.err >&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18284 (exit $ac_status); } && {
18285 test -z "$ac_c_werror_flag" ||
18286 test ! -s conftest.err
18287 } && test -s conftest.$ac_objext; then
43a7c679
VZ
18288 bakefile_cv_c_compiler___SUNPRO_C=yes
18289else
18290 echo "$as_me: failed program was:" >&5
18291sed 's/^/| /' conftest.$ac_ext >&5
18292
47964710 18293 bakefile_cv_c_compiler___SUNPRO_C=no
43a7c679
VZ
18294
18295fi
47964710
VS
18296
18297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43a7c679
VZ
18298
18299
18300fi
47964710
VS
18301{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
18302echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
43a7c679
VZ
18303 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
18304 :; SUNCC=yes
a48b6595
VZ
18305 else
18306 :;
18307 fi
43a7c679
VZ
18308 ac_ext=c
18309ac_cpp='$CPP $CPPFLAGS'
18310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18312ac_compiler_gnu=$ac_cv_c_compiler_gnu
18313
0ad5d837
VZ
18314
18315
3006edc0
VZ
18316 ;;
18317
0093c2fc 18318 HP-UX*)
3006edc0
VZ
18319
18320
18321 ac_ext=c
18322ac_cpp='$CPP $CPPFLAGS'
18323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18325ac_compiler_gnu=$ac_cv_c_compiler_gnu
18326
47964710
VS
18327 { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
18328echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
0093c2fc 18329if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
18330 echo $ECHO_N "(cached) $ECHO_C" >&6
18331else
18332 cat >conftest.$ac_ext <<_ACEOF
18333/* confdefs.h. */
18334_ACEOF
18335cat confdefs.h >>conftest.$ac_ext
18336cat >>conftest.$ac_ext <<_ACEOF
18337/* end confdefs.h. */
18338
18339int
18340main ()
18341{
18342
0093c2fc 18343 #ifndef __HP_cc
3006edc0
VZ
18344 choke me
18345 #endif
18346
18347 ;
18348 return 0;
18349}
18350_ACEOF
18351rm -f conftest.$ac_objext
47964710
VS
18352if { (ac_try="$ac_compile"
18353case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18356esac
18357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_compile") 2>conftest.er1
3006edc0
VZ
18359 ac_status=$?
18360 grep -v '^ *+' conftest.er1 >conftest.err
18361 rm -f conftest.er1
18362 cat conftest.err >&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18364 (exit $ac_status); } && {
18365 test -z "$ac_c_werror_flag" ||
18366 test ! -s conftest.err
18367 } && test -s conftest.$ac_objext; then
0093c2fc 18368 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
18369else
18370 echo "$as_me: failed program was:" >&5
18371sed 's/^/| /' conftest.$ac_ext >&5
18372
47964710 18373 bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
18374
18375fi
47964710
VS
18376
18377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006edc0
VZ
18378
18379
18380fi
47964710
VS
18381{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
18382echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
43a7c679
VZ
18383 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
18384 :; HPCC=yes
18385 else
18386 :;
18387 fi
3006edc0
VZ
18388 ac_ext=c
18389ac_cpp='$CPP $CPPFLAGS'
18390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18392ac_compiler_gnu=$ac_cv_c_compiler_gnu
18393
a1aa0349
VZ
18394
18395
18396 ;;
18397
0093c2fc 18398 OSF1)
a1aa0349
VZ
18399
18400
18401 ac_ext=c
18402ac_cpp='$CPP $CPPFLAGS'
18403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18405ac_compiler_gnu=$ac_cv_c_compiler_gnu
18406
47964710
VS
18407 { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
18408echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
0093c2fc 18409if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
18410 echo $ECHO_N "(cached) $ECHO_C" >&6
18411else
18412 cat >conftest.$ac_ext <<_ACEOF
18413/* confdefs.h. */
18414_ACEOF
18415cat confdefs.h >>conftest.$ac_ext
18416cat >>conftest.$ac_ext <<_ACEOF
18417/* end confdefs.h. */
18418
18419int
18420main ()
18421{
18422
0093c2fc 18423 #ifndef __DECC
a1aa0349
VZ
18424 choke me
18425 #endif
18426
18427 ;
18428 return 0;
18429}
18430_ACEOF
18431rm -f conftest.$ac_objext
47964710
VS
18432if { (ac_try="$ac_compile"
18433case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18436esac
18437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_compile") 2>conftest.er1
a1aa0349
VZ
18439 ac_status=$?
18440 grep -v '^ *+' conftest.er1 >conftest.err
18441 rm -f conftest.er1
18442 cat conftest.err >&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18444 (exit $ac_status); } && {
18445 test -z "$ac_c_werror_flag" ||
18446 test ! -s conftest.err
18447 } && test -s conftest.$ac_objext; then
0093c2fc 18448 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
18449else
18450 echo "$as_me: failed program was:" >&5
18451sed 's/^/| /' conftest.$ac_ext >&5
18452
47964710 18453 bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
18454
18455fi
47964710
VS
18456
18457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a1aa0349
VZ
18458
18459
18460fi
47964710
VS
18461{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
18462echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
43a7c679
VZ
18463 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
18464 :; COMPAQCC=yes
18465 else
18466 :;
18467 fi
a1aa0349
VZ
18468 ac_ext=c
18469ac_cpp='$CPP $CPPFLAGS'
18470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18472ac_compiler_gnu=$ac_cv_c_compiler_gnu
18473
0093c2fc
VZ
18474
18475
18476 ;;
18477
18478 SunOS)
18479
18480
18481 ac_ext=c
18482ac_cpp='$CPP $CPPFLAGS'
18483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18485ac_compiler_gnu=$ac_cv_c_compiler_gnu
18486
47964710
VS
18487 { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
18488echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
0093c2fc
VZ
18489if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18491else
18492 cat >conftest.$ac_ext <<_ACEOF
18493/* confdefs.h. */
18494_ACEOF
18495cat confdefs.h >>conftest.$ac_ext
18496cat >>conftest.$ac_ext <<_ACEOF
18497/* end confdefs.h. */
18498
18499int
18500main ()
18501{
18502
18503 #ifndef __SUNPRO_C
18504 choke me
18505 #endif
18506
18507 ;
18508 return 0;
18509}
18510_ACEOF
18511rm -f conftest.$ac_objext
47964710
VS
18512if { (ac_try="$ac_compile"
18513case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516esac
18517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_compile") 2>conftest.er1
0093c2fc
VZ
18519 ac_status=$?
18520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18524 (exit $ac_status); } && {
18525 test -z "$ac_c_werror_flag" ||
18526 test ! -s conftest.err
18527 } && test -s conftest.$ac_objext; then
0093c2fc
VZ
18528 bakefile_cv_c_compiler___SUNPRO_C=yes
18529else
18530 echo "$as_me: failed program was:" >&5
18531sed 's/^/| /' conftest.$ac_ext >&5
18532
47964710 18533 bakefile_cv_c_compiler___SUNPRO_C=no
0093c2fc
VZ
18534
18535fi
47964710
VS
18536
18537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc
VZ
18538
18539
18540fi
47964710
VS
18541{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
18542echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
43a7c679
VZ
18543 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
18544 :; SUNCC=yes
18545 else
18546 :;
18547 fi
0093c2fc
VZ
18548 ac_ext=c
18549ac_cpp='$CPP $CPPFLAGS'
18550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18552ac_compiler_gnu=$ac_cv_c_compiler_gnu
18553
3006edc0
VZ
18554
18555
18556 ;;
18557 esac
ab0ad5f1 18558 fi
a9e5b1f0
MW
18559
18560
3006edc0 18561
a848cd7e
SC
18562ac_ext=c
18563ac_cpp='$CPP $CPPFLAGS'
18564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18566ac_compiler_gnu=$ac_cv_c_compiler_gnu
47964710
VS
18567{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
18568echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
a848cd7e
SC
18569# On Suns, sometimes $CPP names a directory.
18570if test -n "$CPP" && test -d "$CPP"; then
18571 CPP=
18572fi
18573if test -z "$CPP"; then
18574 if test "${ac_cv_prog_CPP+set}" = set; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18576else
18577 # Double quotes because CPP needs to be expanded
18578 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
18579 do
18580 ac_preproc_ok=false
18581for ac_c_preproc_warn_flag in '' yes
18582do
18583 # Use a header file that comes with gcc, so configuring glibc
18584 # with a fresh cross-compiler works.
18585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18586 # <limits.h> exists even on freestanding compilers.
18587 # On the NeXT, cc -E runs the code through the compiler's parser,
18588 # not just through cpp. "Syntax error" is here to catch this case.
18589 cat >conftest.$ac_ext <<_ACEOF
18590/* confdefs.h. */
18591_ACEOF
18592cat confdefs.h >>conftest.$ac_ext
18593cat >>conftest.$ac_ext <<_ACEOF
18594/* end confdefs.h. */
18595#ifdef __STDC__
18596# include <limits.h>
18597#else
18598# include <assert.h>
18599#endif
ac1cb8d3 18600 Syntax error
a848cd7e 18601_ACEOF
47964710
VS
18602if { (ac_try="$ac_cpp conftest.$ac_ext"
18603case "(($ac_try" in
18604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605 *) ac_try_echo=$ac_try;;
18606esac
18607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a848cd7e
SC
18609 ac_status=$?
18610 grep -v '^ *+' conftest.er1 >conftest.err
18611 rm -f conftest.er1
18612 cat conftest.err >&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18614 (exit $ac_status); } >/dev/null && {
18615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18616 test ! -s conftest.err
18617 }; then
a848cd7e
SC
18618 :
18619else
18620 echo "$as_me: failed program was:" >&5
18621sed 's/^/| /' conftest.$ac_ext >&5
18622
18623 # Broken: fails on valid input.
18624continue
18625fi
47964710 18626
a848cd7e
SC
18627rm -f conftest.err conftest.$ac_ext
18628
47964710 18629 # OK, works on sane cases. Now check whether nonexistent headers
a848cd7e
SC
18630 # can be detected and how.
18631 cat >conftest.$ac_ext <<_ACEOF
18632/* confdefs.h. */
18633_ACEOF
18634cat confdefs.h >>conftest.$ac_ext
18635cat >>conftest.$ac_ext <<_ACEOF
18636/* end confdefs.h. */
18637#include <ac_nonexistent.h>
18638_ACEOF
47964710
VS
18639if { (ac_try="$ac_cpp conftest.$ac_ext"
18640case "(($ac_try" in
18641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642 *) ac_try_echo=$ac_try;;
18643esac
18644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a848cd7e
SC
18646 ac_status=$?
18647 grep -v '^ *+' conftest.er1 >conftest.err
18648 rm -f conftest.er1
18649 cat conftest.err >&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18651 (exit $ac_status); } >/dev/null && {
18652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18653 test ! -s conftest.err
18654 }; then
a848cd7e
SC
18655 # Broken: success on invalid input.
18656continue
18657else
18658 echo "$as_me: failed program was:" >&5
18659sed 's/^/| /' conftest.$ac_ext >&5
18660
18661 # Passes both tests.
18662ac_preproc_ok=:
18663break
18664fi
47964710 18665
a848cd7e
SC
18666rm -f conftest.err conftest.$ac_ext
18667
18668done
18669# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18670rm -f conftest.err conftest.$ac_ext
18671if $ac_preproc_ok; then
18672 break
18673fi
18674
18675 done
18676 ac_cv_prog_CPP=$CPP
18677
18678fi
18679 CPP=$ac_cv_prog_CPP
18680else
18681 ac_cv_prog_CPP=$CPP
18682fi
47964710
VS
18683{ echo "$as_me:$LINENO: result: $CPP" >&5
18684echo "${ECHO_T}$CPP" >&6; }
a848cd7e
SC
18685ac_preproc_ok=false
18686for ac_c_preproc_warn_flag in '' yes
18687do
18688 # Use a header file that comes with gcc, so configuring glibc
18689 # with a fresh cross-compiler works.
18690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18691 # <limits.h> exists even on freestanding compilers.
18692 # On the NeXT, cc -E runs the code through the compiler's parser,
18693 # not just through cpp. "Syntax error" is here to catch this case.
18694 cat >conftest.$ac_ext <<_ACEOF
18695/* confdefs.h. */
18696_ACEOF
18697cat confdefs.h >>conftest.$ac_ext
18698cat >>conftest.$ac_ext <<_ACEOF
18699/* end confdefs.h. */
18700#ifdef __STDC__
18701# include <limits.h>
18702#else
18703# include <assert.h>
18704#endif
ac1cb8d3 18705 Syntax error
a848cd7e 18706_ACEOF
47964710
VS
18707if { (ac_try="$ac_cpp conftest.$ac_ext"
18708case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18711esac
18712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a848cd7e
SC
18714 ac_status=$?
18715 grep -v '^ *+' conftest.er1 >conftest.err
18716 rm -f conftest.er1
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18719 (exit $ac_status); } >/dev/null && {
18720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18721 test ! -s conftest.err
18722 }; then
a848cd7e
SC
18723 :
18724else
18725 echo "$as_me: failed program was:" >&5
18726sed 's/^/| /' conftest.$ac_ext >&5
18727
18728 # Broken: fails on valid input.
18729continue
18730fi
47964710 18731
a848cd7e
SC
18732rm -f conftest.err conftest.$ac_ext
18733
47964710 18734 # OK, works on sane cases. Now check whether nonexistent headers
a848cd7e
SC
18735 # can be detected and how.
18736 cat >conftest.$ac_ext <<_ACEOF
18737/* confdefs.h. */
18738_ACEOF
18739cat confdefs.h >>conftest.$ac_ext
18740cat >>conftest.$ac_ext <<_ACEOF
18741/* end confdefs.h. */
18742#include <ac_nonexistent.h>
18743_ACEOF
47964710
VS
18744if { (ac_try="$ac_cpp conftest.$ac_ext"
18745case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18748esac
18749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a848cd7e
SC
18751 ac_status=$?
18752 grep -v '^ *+' conftest.er1 >conftest.err
18753 rm -f conftest.er1
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18756 (exit $ac_status); } >/dev/null && {
18757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18758 test ! -s conftest.err
18759 }; then
a848cd7e
SC
18760 # Broken: success on invalid input.
18761continue
18762else
18763 echo "$as_me: failed program was:" >&5
18764sed 's/^/| /' conftest.$ac_ext >&5
18765
18766 # Passes both tests.
18767ac_preproc_ok=:
18768break
18769fi
47964710 18770
a848cd7e
SC
18771rm -f conftest.err conftest.$ac_ext
18772
18773done
18774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18775rm -f conftest.err conftest.$ac_ext
18776if $ac_preproc_ok; then
18777 :
18778else
18779 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
18780See \`config.log' for more details." >&5
18781echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
18782See \`config.log' for more details." >&2;}
18783 { (exit 1); exit 1; }; }
18784fi
18785
18786ac_ext=c
18787ac_cpp='$CPP $CPPFLAGS'
18788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18790ac_compiler_gnu=$ac_cv_c_compiler_gnu
18791
18792
47964710
VS
18793{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
18794echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
18795if test "${ac_cv_path_GREP+set}" = set; then
84ebfcbd
VZ
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18797else
47964710
VS
18798 # Extract the first word of "grep ggrep" to use in msg output
18799if test -z "$GREP"; then
18800set dummy grep ggrep; ac_prog_name=$2
18801if test "${ac_cv_path_GREP+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803else
18804 ac_path_GREP_found=false
18805# Loop through the user's path and test for each of PROGNAME-LIST
18806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18807for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18808do
18809 IFS=$as_save_IFS
18810 test -z "$as_dir" && as_dir=.
18811 for ac_prog in grep ggrep; do
18812 for ac_exec_ext in '' $ac_executable_extensions; do
18813 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
18814 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
18815 # Check for GNU ac_path_GREP and select it if it is found.
18816 # Check for GNU $ac_path_GREP
18817case `"$ac_path_GREP" --version 2>&1` in
18818*GNU*)
18819 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
18820*)
18821 ac_count=0
18822 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18823 while :
18824 do
18825 cat "conftest.in" "conftest.in" >"conftest.tmp"
18826 mv "conftest.tmp" "conftest.in"
18827 cp "conftest.in" "conftest.nl"
18828 echo 'GREP' >> "conftest.nl"
18829 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18831 ac_count=`expr $ac_count + 1`
18832 if test $ac_count -gt ${ac_path_GREP_max-0}; then
18833 # Best one so far, save it but keep looking for a better one
18834 ac_cv_path_GREP="$ac_path_GREP"
18835 ac_path_GREP_max=$ac_count
18836 fi
18837 # 10*(2^10) chars as input seems more than enough
18838 test $ac_count -gt 10 && break
18839 done
18840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18841esac
18842
18843
18844 $ac_path_GREP_found && break 3
18845 done
18846done
18847
18848done
18849IFS=$as_save_IFS
18850
18851
18852fi
18853
18854GREP="$ac_cv_path_GREP"
18855if test -z "$GREP"; then
18856 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18857echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18858 { (exit 1); exit 1; }; }
18859fi
18860
18861else
18862 ac_cv_path_GREP=$GREP
18863fi
18864
18865
18866fi
18867{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
18868echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
18869 GREP="$ac_cv_path_GREP"
18870
18871
18872{ echo "$as_me:$LINENO: checking for egrep" >&5
18873echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
18874if test "${ac_cv_path_EGREP+set}" = set; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18876else
18877 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
18878 then ac_cv_path_EGREP="$GREP -E"
18879 else
18880 # Extract the first word of "egrep" to use in msg output
18881if test -z "$EGREP"; then
18882set dummy egrep; ac_prog_name=$2
18883if test "${ac_cv_path_EGREP+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
18885else
18886 ac_path_EGREP_found=false
18887# Loop through the user's path and test for each of PROGNAME-LIST
18888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18889for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18890do
18891 IFS=$as_save_IFS
18892 test -z "$as_dir" && as_dir=.
18893 for ac_prog in egrep; do
18894 for ac_exec_ext in '' $ac_executable_extensions; do
18895 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
18896 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
18897 # Check for GNU ac_path_EGREP and select it if it is found.
18898 # Check for GNU $ac_path_EGREP
18899case `"$ac_path_EGREP" --version 2>&1` in
18900*GNU*)
18901 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
18902*)
18903 ac_count=0
18904 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18905 while :
18906 do
18907 cat "conftest.in" "conftest.in" >"conftest.tmp"
18908 mv "conftest.tmp" "conftest.in"
18909 cp "conftest.in" "conftest.nl"
18910 echo 'EGREP' >> "conftest.nl"
18911 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18913 ac_count=`expr $ac_count + 1`
18914 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
18915 # Best one so far, save it but keep looking for a better one
18916 ac_cv_path_EGREP="$ac_path_EGREP"
18917 ac_path_EGREP_max=$ac_count
18918 fi
18919 # 10*(2^10) chars as input seems more than enough
18920 test $ac_count -gt 10 && break
18921 done
18922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18923esac
18924
18925
18926 $ac_path_EGREP_found && break 3
18927 done
18928done
18929
18930done
18931IFS=$as_save_IFS
18932
18933
18934fi
18935
18936EGREP="$ac_cv_path_EGREP"
18937if test -z "$EGREP"; then
18938 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18939echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18940 { (exit 1); exit 1; }; }
18941fi
18942
18943else
18944 ac_cv_path_EGREP=$EGREP
18945fi
18946
18947
18948 fi
7fd3acaf 18949fi
47964710
VS
18950{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
18951echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
18952 EGREP="$ac_cv_path_EGREP"
a848cd7e
SC
18953
18954
18955if test $ac_cv_c_compiler_gnu = yes; then
47964710
VS
18956 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
18957echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
a848cd7e
SC
18958if test "${ac_cv_prog_gcc_traditional+set}" = set; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
18960else
18961 ac_pattern="Autoconf.*'x'"
18962 cat >conftest.$ac_ext <<_ACEOF
18963/* confdefs.h. */
18964_ACEOF
18965cat confdefs.h >>conftest.$ac_ext
18966cat >>conftest.$ac_ext <<_ACEOF
18967/* end confdefs.h. */
18968#include <sgtty.h>
18969Autoconf TIOCGETP
18970_ACEOF
18971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18972 $EGREP "$ac_pattern" >/dev/null 2>&1; then
18973 ac_cv_prog_gcc_traditional=yes
18974else
18975 ac_cv_prog_gcc_traditional=no
18976fi
18977rm -f conftest*
18978
18979
18980 if test $ac_cv_prog_gcc_traditional = no; then
18981 cat >conftest.$ac_ext <<_ACEOF
18982/* confdefs.h. */
18983_ACEOF
18984cat confdefs.h >>conftest.$ac_ext
18985cat >>conftest.$ac_ext <<_ACEOF
18986/* end confdefs.h. */
18987#include <termio.h>
18988Autoconf TCGETA
18989_ACEOF
18990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18991 $EGREP "$ac_pattern" >/dev/null 2>&1; then
18992 ac_cv_prog_gcc_traditional=yes
18993fi
18994rm -f conftest*
18995
18996 fi
18997fi
47964710
VS
18998{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
18999echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
a848cd7e
SC
19000 if test $ac_cv_prog_gcc_traditional = yes; then
19001 CC="$CC -traditional"
19002 fi
19003fi
19004
19005
a848cd7e 19006CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
19007
19008
3006edc0 19009
47964710 19010 ac_ext=cpp
a848cd7e
SC
19011ac_cpp='$CXXCPP $CPPFLAGS'
19012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47964710
VS
19015if test -z "$CXX"; then
19016 if test -n "$CCC"; then
19017 CXX=$CCC
19018 else
19019 if test -n "$ac_tool_prefix"; then
19020 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a848cd7e
SC
19021 do
19022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19023set dummy $ac_tool_prefix$ac_prog; ac_word=$2
47964710
VS
19024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
19026if test "${ac_cv_prog_CXX+set}" = set; then
19027 echo $ECHO_N "(cached) $ECHO_C" >&6
19028else
19029 if test -n "$CXX"; then
19030 ac_cv_prog_CXX="$CXX" # Let the user override the test.
19031else
19032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19033for as_dir in $PATH
19034do
19035 IFS=$as_save_IFS
19036 test -z "$as_dir" && as_dir=.
19037 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 19038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
19039 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19041 break 2
19042 fi
19043done
19044done
47964710 19045IFS=$as_save_IFS
a848cd7e
SC
19046
19047fi
19048fi
19049CXX=$ac_cv_prog_CXX
19050if test -n "$CXX"; then
47964710
VS
19051 { echo "$as_me:$LINENO: result: $CXX" >&5
19052echo "${ECHO_T}$CXX" >&6; }
a848cd7e 19053else
47964710
VS
19054 { echo "$as_me:$LINENO: result: no" >&5
19055echo "${ECHO_T}no" >&6; }
a848cd7e
SC
19056fi
19057
47964710 19058
a848cd7e
SC
19059 test -n "$CXX" && break
19060 done
19061fi
19062if test -z "$CXX"; then
19063 ac_ct_CXX=$CXX
47964710 19064 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a848cd7e
SC
19065do
19066 # Extract the first word of "$ac_prog", so it can be a program name with args.
19067set dummy $ac_prog; ac_word=$2
47964710
VS
19068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
19070if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19072else
19073 if test -n "$ac_ct_CXX"; then
19074 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19075else
19076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19077for as_dir in $PATH
19078do
19079 IFS=$as_save_IFS
19080 test -z "$as_dir" && as_dir=.
19081 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 19082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
19083 ac_cv_prog_ac_ct_CXX="$ac_prog"
19084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19085 break 2
19086 fi
19087done
19088done
47964710 19089IFS=$as_save_IFS
a848cd7e
SC
19090
19091fi
19092fi
19093ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19094if test -n "$ac_ct_CXX"; then
47964710
VS
19095 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19096echo "${ECHO_T}$ac_ct_CXX" >&6; }
a848cd7e 19097else
47964710
VS
19098 { echo "$as_me:$LINENO: result: no" >&5
19099echo "${ECHO_T}no" >&6; }
a848cd7e
SC
19100fi
19101
47964710 19102
a848cd7e
SC
19103 test -n "$ac_ct_CXX" && break
19104done
a848cd7e 19105
47964710
VS
19106 if test "x$ac_ct_CXX" = x; then
19107 CXX="g++"
19108 else
19109 case $cross_compiling:$ac_tool_warned in
19110yes:)
19111{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19112whose name does not start with the host triplet. If you think this
19113configuration is useful to you, please write to autoconf@gnu.org." >&5
19114echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19115whose name does not start with the host triplet. If you think this
19116configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19117ac_tool_warned=yes ;;
19118esac
19119 CXX=$ac_ct_CXX
19120 fi
a848cd7e
SC
19121fi
19122
47964710
VS
19123 fi
19124fi
a848cd7e 19125# Provide some information about the compiler.
47964710 19126echo "$as_me:$LINENO: checking for C++ compiler version" >&5
a848cd7e 19127ac_compiler=`set X $ac_compile; echo $2`
47964710
VS
19128{ (ac_try="$ac_compiler --version >&5"
19129case "(($ac_try" in
19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19132esac
19133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134 (eval "$ac_compiler --version >&5") 2>&5
a848cd7e
SC
19135 ac_status=$?
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }
47964710
VS
19138{ (ac_try="$ac_compiler -v >&5"
19139case "(($ac_try" in
19140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19141 *) ac_try_echo=$ac_try;;
19142esac
19143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19144 (eval "$ac_compiler -v >&5") 2>&5
a848cd7e
SC
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }
47964710
VS
19148{ (ac_try="$ac_compiler -V >&5"
19149case "(($ac_try" in
19150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151 *) ac_try_echo=$ac_try;;
19152esac
19153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154 (eval "$ac_compiler -V >&5") 2>&5
a848cd7e
SC
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }
19158
47964710
VS
19159{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19160echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
a848cd7e
SC
19161if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19163else
19164 cat >conftest.$ac_ext <<_ACEOF
19165/* confdefs.h. */
19166_ACEOF
19167cat confdefs.h >>conftest.$ac_ext
19168cat >>conftest.$ac_ext <<_ACEOF
19169/* end confdefs.h. */
19170
19171int
19172main ()
19173{
19174#ifndef __GNUC__
19175 choke me
19176#endif
19177
19178 ;
19179 return 0;
19180}
19181_ACEOF
19182rm -f conftest.$ac_objext
47964710
VS
19183if { (ac_try="$ac_compile"
19184case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19187esac
19188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_compile") 2>conftest.er1
a848cd7e 19190 ac_status=$?
ac1cb8d3
VS
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
a848cd7e 19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19195 (exit $ac_status); } && {
19196 test -z "$ac_cxx_werror_flag" ||
19197 test ! -s conftest.err
19198 } && test -s conftest.$ac_objext; then
a848cd7e
SC
19199 ac_compiler_gnu=yes
19200else
19201 echo "$as_me: failed program was:" >&5
19202sed 's/^/| /' conftest.$ac_ext >&5
19203
47964710 19204 ac_compiler_gnu=no
a848cd7e 19205fi
47964710
VS
19206
19207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19208ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19209
19210fi
47964710
VS
19211{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19212echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
a848cd7e
SC
19213GXX=`test $ac_compiler_gnu = yes && echo yes`
19214ac_test_CXXFLAGS=${CXXFLAGS+set}
19215ac_save_CXXFLAGS=$CXXFLAGS
47964710
VS
19216{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19217echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
a848cd7e
SC
19218if test "${ac_cv_prog_cxx_g+set}" = set; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19220else
47964710
VS
19221 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
19222 ac_cxx_werror_flag=yes
19223 ac_cv_prog_cxx_g=no
19224 CXXFLAGS="-g"
19225 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
19226/* confdefs.h. */
19227_ACEOF
19228cat confdefs.h >>conftest.$ac_ext
19229cat >>conftest.$ac_ext <<_ACEOF
19230/* end confdefs.h. */
19231
19232int
19233main ()
19234{
19235
19236 ;
19237 return 0;
19238}
19239_ACEOF
19240rm -f conftest.$ac_objext
47964710
VS
19241if { (ac_try="$ac_compile"
19242case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19245esac
19246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_compile") 2>conftest.er1
a848cd7e 19248 ac_status=$?
ac1cb8d3
VS
19249 grep -v '^ *+' conftest.er1 >conftest.err
19250 rm -f conftest.er1
19251 cat conftest.err >&5
a848cd7e 19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19253 (exit $ac_status); } && {
19254 test -z "$ac_cxx_werror_flag" ||
19255 test ! -s conftest.err
19256 } && test -s conftest.$ac_objext; then
a848cd7e
SC
19257 ac_cv_prog_cxx_g=yes
19258else
19259 echo "$as_me: failed program was:" >&5
19260sed 's/^/| /' conftest.$ac_ext >&5
19261
47964710
VS
19262 CXXFLAGS=""
19263 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
19264/* confdefs.h. */
19265_ACEOF
19266cat confdefs.h >>conftest.$ac_ext
19267cat >>conftest.$ac_ext <<_ACEOF
19268/* end confdefs.h. */
47964710 19269
a848cd7e
SC
19270int
19271main ()
19272{
47964710 19273
a848cd7e
SC
19274 ;
19275 return 0;
19276}
19277_ACEOF
19278rm -f conftest.$ac_objext
47964710
VS
19279if { (ac_try="$ac_compile"
19280case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19283esac
19284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_compile") 2>conftest.er1
a848cd7e 19286 ac_status=$?
ac1cb8d3
VS
19287 grep -v '^ *+' conftest.er1 >conftest.err
19288 rm -f conftest.er1
19289 cat conftest.err >&5
a848cd7e 19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19291 (exit $ac_status); } && {
19292 test -z "$ac_cxx_werror_flag" ||
19293 test ! -s conftest.err
19294 } && test -s conftest.$ac_objext; then
a848cd7e
SC
19295 :
19296else
19297 echo "$as_me: failed program was:" >&5
19298sed 's/^/| /' conftest.$ac_ext >&5
19299
47964710
VS
19300 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19301 CXXFLAGS="-g"
19302 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
19303/* confdefs.h. */
19304_ACEOF
19305cat confdefs.h >>conftest.$ac_ext
19306cat >>conftest.$ac_ext <<_ACEOF
19307/* end confdefs.h. */
47964710 19308
a848cd7e
SC
19309int
19310main ()
19311{
47964710 19312
a848cd7e
SC
19313 ;
19314 return 0;
19315}
19316_ACEOF
19317rm -f conftest.$ac_objext
47964710
VS
19318if { (ac_try="$ac_compile"
19319case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19322esac
19323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_compile") 2>conftest.er1
a848cd7e 19325 ac_status=$?
ac1cb8d3
VS
19326 grep -v '^ *+' conftest.er1 >conftest.err
19327 rm -f conftest.er1
19328 cat conftest.err >&5
a848cd7e 19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19330 (exit $ac_status); } && {
19331 test -z "$ac_cxx_werror_flag" ||
19332 test ! -s conftest.err
19333 } && test -s conftest.$ac_objext; then
19334 ac_cv_prog_cxx_g=yes
a848cd7e
SC
19335else
19336 echo "$as_me: failed program was:" >&5
19337sed 's/^/| /' conftest.$ac_ext >&5
19338
47964710 19339
84ebfcbd 19340fi
47964710
VS
19341
19342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19343fi
19344
19345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19346fi
19347
47964710
VS
19348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19349 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19350fi
19351{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
19352echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
19353if test "$ac_test_CXXFLAGS" = set; then
19354 CXXFLAGS=$ac_save_CXXFLAGS
19355elif test $ac_cv_prog_cxx_g = yes; then
19356 if test "$GXX" = yes; then
19357 CXXFLAGS="-g -O2"
19358 else
19359 CXXFLAGS="-g"
19360 fi
19361else
19362 if test "$GXX" = yes; then
19363 CXXFLAGS="-O2"
19364 else
19365 CXXFLAGS=
19366 fi
19367fi
fd5199d6
VZ
19368ac_ext=c
19369ac_cpp='$CPP $CPPFLAGS'
19370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19372ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e 19373
ab0ad5f1
VZ
19374
19375
43a7c679 19376
47964710 19377 ac_ext=cpp
ab0ad5f1
VZ
19378ac_cpp='$CXXCPP $CPPFLAGS'
19379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19382
47964710
VS
19383 { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
19384echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
ab0ad5f1
VZ
19385if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
19386 echo $ECHO_N "(cached) $ECHO_C" >&6
19387else
19388 cat >conftest.$ac_ext <<_ACEOF
19389/* confdefs.h. */
19390_ACEOF
19391cat confdefs.h >>conftest.$ac_ext
19392cat >>conftest.$ac_ext <<_ACEOF
19393/* end confdefs.h. */
19394
19395int
19396main ()
19397{
19398
19399 #ifndef __INTEL_COMPILER
19400 choke me
19401 #endif
19402
19403 ;
19404 return 0;
19405}
19406_ACEOF
19407rm -f conftest.$ac_objext
47964710
VS
19408if { (ac_try="$ac_compile"
19409case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19412esac
19413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_compile") 2>conftest.er1
ab0ad5f1
VZ
19415 ac_status=$?
19416 grep -v '^ *+' conftest.er1 >conftest.err
19417 rm -f conftest.er1
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19420 (exit $ac_status); } && {
19421 test -z "$ac_cxx_werror_flag" ||
19422 test ! -s conftest.err
19423 } && test -s conftest.$ac_objext; then
ab0ad5f1
VZ
19424 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
19425else
19426 echo "$as_me: failed program was:" >&5
19427sed 's/^/| /' conftest.$ac_ext >&5
19428
47964710 19429 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
ab0ad5f1
VZ
19430
19431fi
47964710
VS
19432
19433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ab0ad5f1
VZ
19434
19435
19436fi
47964710
VS
19437{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
19438echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
43a7c679
VZ
19439 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
19440 :; INTELCXX=yes
19441 else
19442 :;
19443 fi
fd5199d6
VZ
19444 ac_ext=c
19445ac_cpp='$CPP $CPPFLAGS'
19446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19448ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab0ad5f1 19449
43a7c679 19450
ab0ad5f1
VZ
19451
19452
3006edc0
VZ
19453 if test "x$GCXX" != "xyes"; then
19454 if test "xCXX" = "xC"; then
47964710
VS
19455 { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
19456echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
fd5199d6 19457if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
19458 echo $ECHO_N "(cached) $ECHO_C" >&6
19459else
19460 cat >conftest.$ac_ext <<_ACEOF
19461/* confdefs.h. */
19462_ACEOF
19463cat confdefs.h >>conftest.$ac_ext
19464cat >>conftest.$ac_ext <<_ACEOF
19465/* end confdefs.h. */
19466
19467int
19468main ()
19469{
19470
19471 ;
19472 return 0;
19473}
19474_ACEOF
19475rm -f conftest.$ac_objext conftest.$ac_ext.o
19476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19477 (eval $ac_compile) 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; then
19481 for ac_file in `(ls conftest.* 2>/dev/null)`; do
19482 case $ac_file in
19483 conftest.$ac_ext.o)
fd5199d6 19484 bakefile_cv_c_exto="-ext o"
480ccd21
DE
19485 ;;
19486 *)
19487 ;;
19488 esac
19489done
19490else
19491 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
19492See \`config.log' for more details." >&5
19493echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
19494See \`config.log' for more details." >&2;}
19495 { (exit 1); exit 1; }; }
19496
19497fi
19498
19499rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
19500
19501fi
47964710
VS
19502{ echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
19503echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
fd5199d6
VZ
19504if test "x$bakefile_cv_c_exto" '!=' "x"; then
19505 if test "c" = "c"; then
19506 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21 19507 fi
fd5199d6
VZ
19508 if test "c" = "cxx"; then
19509 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
19510 fi
19511fi
19512
0093c2fc 19513 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
19514 unset ac_cv_prog_cc_g
19515 ac_test_CFLAGS=${CFLAGS+set}
19516ac_save_CFLAGS=$CFLAGS
47964710
VS
19517{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19518echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3006edc0 19519if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
19520 echo $ECHO_N "(cached) $ECHO_C" >&6
19521else
47964710
VS
19522 ac_save_c_werror_flag=$ac_c_werror_flag
19523 ac_c_werror_flag=yes
19524 ac_cv_prog_cc_g=no
19525 CFLAGS="-g"
19526 cat >conftest.$ac_ext <<_ACEOF
3f7f284d
RD
19527/* confdefs.h. */
19528_ACEOF
19529cat confdefs.h >>conftest.$ac_ext
19530cat >>conftest.$ac_ext <<_ACEOF
19531/* end confdefs.h. */
19532
19533int
19534main ()
19535{
19536
19537 ;
19538 return 0;
19539}
19540_ACEOF
19541rm -f conftest.$ac_objext
47964710
VS
19542if { (ac_try="$ac_compile"
19543case "(($ac_try" in
19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545 *) ac_try_echo=$ac_try;;
19546esac
19547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548 (eval "$ac_compile") 2>conftest.er1
3f7f284d
RD
19549 ac_status=$?
19550 grep -v '^ *+' conftest.er1 >conftest.err
19551 rm -f conftest.er1
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19554 (exit $ac_status); } && {
19555 test -z "$ac_c_werror_flag" ||
19556 test ! -s conftest.err
19557 } && test -s conftest.$ac_objext; then
19558 ac_cv_prog_cc_g=yes
19559else
19560 echo "$as_me: failed program was:" >&5
19561sed 's/^/| /' conftest.$ac_ext >&5
19562
19563 CFLAGS=""
19564 cat >conftest.$ac_ext <<_ACEOF
19565/* confdefs.h. */
19566_ACEOF
19567cat confdefs.h >>conftest.$ac_ext
19568cat >>conftest.$ac_ext <<_ACEOF
19569/* end confdefs.h. */
19570
19571int
19572main ()
19573{
19574
19575 ;
19576 return 0;
19577}
19578_ACEOF
19579rm -f conftest.$ac_objext
19580if { (ac_try="$ac_compile"
19581case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19584esac
19585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_compile") 2>conftest.er1
7fd3acaf 19587 ac_status=$?
47964710
VS
19588 grep -v '^ *+' conftest.er1 >conftest.err
19589 rm -f conftest.er1
19590 cat conftest.err >&5
7fd3acaf 19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19592 (exit $ac_status); } && {
19593 test -z "$ac_c_werror_flag" ||
19594 test ! -s conftest.err
19595 } && test -s conftest.$ac_objext; then
19596 :
19597else
19598 echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601 ac_c_werror_flag=$ac_save_c_werror_flag
19602 CFLAGS="-g"
19603 cat >conftest.$ac_ext <<_ACEOF
19604/* confdefs.h. */
19605_ACEOF
19606cat confdefs.h >>conftest.$ac_ext
19607cat >>conftest.$ac_ext <<_ACEOF
19608/* end confdefs.h. */
19609
19610int
19611main ()
19612{
19613
19614 ;
19615 return 0;
19616}
19617_ACEOF
19618rm -f conftest.$ac_objext
19619if { (ac_try="$ac_compile"
19620case "(($ac_try" in
19621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622 *) ac_try_echo=$ac_try;;
19623esac
19624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19625 (eval "$ac_compile") 2>conftest.er1
7fd3acaf 19626 ac_status=$?
47964710
VS
19627 grep -v '^ *+' conftest.er1 >conftest.err
19628 rm -f conftest.er1
19629 cat conftest.err >&5
7fd3acaf 19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19631 (exit $ac_status); } && {
19632 test -z "$ac_c_werror_flag" ||
19633 test ! -s conftest.err
19634 } && test -s conftest.$ac_objext; then
3006edc0 19635 ac_cv_prog_cc_g=yes
480ccd21
DE
19636else
19637 echo "$as_me: failed program was:" >&5
19638sed 's/^/| /' conftest.$ac_ext >&5
19639
47964710
VS
19640
19641fi
19642
19643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
faa5c14f 19644fi
47964710
VS
19645
19646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19647fi
19648
19649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19650 ac_c_werror_flag=$ac_save_c_werror_flag
faa5c14f 19651fi
47964710
VS
19652{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19653echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3006edc0
VZ
19654if test "$ac_test_CFLAGS" = set; then
19655 CFLAGS=$ac_save_CFLAGS
19656elif test $ac_cv_prog_cc_g = yes; then
19657 if test "$GCC" = yes; then
19658 CFLAGS="-g -O2"
480ccd21 19659 else
3006edc0 19660 CFLAGS="-g"
480ccd21
DE
19661 fi
19662else
3006edc0
VZ
19663 if test "$GCC" = yes; then
19664 CFLAGS="-O2"
480ccd21 19665 else
3006edc0 19666 CFLAGS=
480ccd21
DE
19667 fi
19668fi
3006edc0 19669 fi
ab0ad5f1 19670 fi
3006edc0
VZ
19671
19672 case `uname -s` in
19673 AIX*)
3006edc0 19674
3006edc0 19675
47964710 19676 ac_ext=cpp
95986553
DE
19677ac_cpp='$CXXCPP $CPPFLAGS'
19678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19681
47964710
VS
19682 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19683echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
43a7c679 19684if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
95986553
DE
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686else
19687 cat >conftest.$ac_ext <<_ACEOF
19688/* confdefs.h. */
19689_ACEOF
19690cat confdefs.h >>conftest.$ac_ext
19691cat >>conftest.$ac_ext <<_ACEOF
19692/* end confdefs.h. */
19693
19694int
19695main ()
19696{
43a7c679
VZ
19697
19698 #ifndef __xlC__
19699 choke me
19700 #endif
95986553
DE
19701
19702 ;
19703 return 0;
19704}
19705_ACEOF
19706rm -f conftest.$ac_objext
47964710
VS
19707if { (ac_try="$ac_compile"
19708case "(($ac_try" in
19709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710 *) ac_try_echo=$ac_try;;
19711esac
19712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19713 (eval "$ac_compile") 2>conftest.er1
95986553
DE
19714 ac_status=$?
19715 grep -v '^ *+' conftest.er1 >conftest.err
19716 rm -f conftest.er1
19717 cat conftest.err >&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19719 (exit $ac_status); } && {
19720 test -z "$ac_cxx_werror_flag" ||
19721 test ! -s conftest.err
19722 } && test -s conftest.$ac_objext; then
43a7c679 19723 bakefile_cv_cxx_compiler___xlC__=yes
95986553
DE
19724else
19725 echo "$as_me: failed program was:" >&5
19726sed 's/^/| /' conftest.$ac_ext >&5
19727
47964710 19728 bakefile_cv_cxx_compiler___xlC__=no
43a7c679 19729
95986553 19730fi
47964710
VS
19731
19732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43a7c679 19733
95986553
DE
19734
19735fi
47964710
VS
19736{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19737echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
43a7c679
VZ
19738 if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19739 :; XLCXX=yes
19740 else
19741 :;
19742 fi
19743 ac_ext=c
19744ac_cpp='$CPP $CPPFLAGS'
19745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19747ac_compiler_gnu=$ac_cv_c_compiler_gnu
95986553 19748
43a7c679
VZ
19749
19750
19751 ;;
19752
19753 Darwin)
19754
19755
47964710 19756 ac_ext=cpp
43a7c679
VZ
19757ac_cpp='$CXXCPP $CPPFLAGS'
19758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19761
47964710
VS
19762 { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
19763echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
43a7c679
VZ
19764if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19766else
19767 cat >conftest.$ac_ext <<_ACEOF
19768/* confdefs.h. */
19769_ACEOF
19770cat confdefs.h >>conftest.$ac_ext
19771cat >>conftest.$ac_ext <<_ACEOF
19772/* end confdefs.h. */
19773
19774int
19775main ()
19776{
19777
19778 #ifndef __MWERKS__
19779 choke me
19780 #endif
19781
19782 ;
19783 return 0;
19784}
19785_ACEOF
19786rm -f conftest.$ac_objext
47964710
VS
19787if { (ac_try="$ac_compile"
19788case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19791esac
19792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_compile") 2>conftest.er1
43a7c679
VZ
19794 ac_status=$?
19795 grep -v '^ *+' conftest.er1 >conftest.err
19796 rm -f conftest.er1
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19799 (exit $ac_status); } && {
19800 test -z "$ac_cxx_werror_flag" ||
19801 test ! -s conftest.err
19802 } && test -s conftest.$ac_objext; then
43a7c679
VZ
19803 bakefile_cv_cxx_compiler___MWERKS__=yes
19804else
19805 echo "$as_me: failed program was:" >&5
19806sed 's/^/| /' conftest.$ac_ext >&5
19807
47964710 19808 bakefile_cv_cxx_compiler___MWERKS__=no
43a7c679
VZ
19809
19810fi
47964710
VS
19811
19812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43a7c679
VZ
19813
19814
19815fi
47964710
VS
19816{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
19817echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
43a7c679
VZ
19818 if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
19819 :; MWCXX=yes
19820 else
19821 :;
19822 fi
19823 ac_ext=c
fd5199d6
VZ
19824ac_cpp='$CPP $CPPFLAGS'
19825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19827ac_compiler_gnu=$ac_cv_c_compiler_gnu
95986553
DE
19828
19829
43a7c679
VZ
19830
19831
19832
47964710 19833 ac_ext=cpp
9273ffba
DE
19834ac_cpp='$CXXCPP $CPPFLAGS'
19835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19838
47964710
VS
19839 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19840echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
43a7c679 19841if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
9273ffba
DE
19842 echo $ECHO_N "(cached) $ECHO_C" >&6
19843else
19844 cat >conftest.$ac_ext <<_ACEOF
19845/* confdefs.h. */
19846_ACEOF
19847cat confdefs.h >>conftest.$ac_ext
19848cat >>conftest.$ac_ext <<_ACEOF
19849/* end confdefs.h. */
19850
19851int
19852main ()
19853{
43a7c679
VZ
19854
19855 #ifndef __xlC__
19856 choke me
19857 #endif
9273ffba
DE
19858
19859 ;
19860 return 0;
19861}
19862_ACEOF
19863rm -f conftest.$ac_objext
47964710
VS
19864if { (ac_try="$ac_compile"
19865case "(($ac_try" in
19866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19868esac
19869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870 (eval "$ac_compile") 2>conftest.er1
9273ffba
DE
19871 ac_status=$?
19872 grep -v '^ *+' conftest.er1 >conftest.err
19873 rm -f conftest.er1
19874 cat conftest.err >&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19876 (exit $ac_status); } && {
19877 test -z "$ac_cxx_werror_flag" ||
19878 test ! -s conftest.err
19879 } && test -s conftest.$ac_objext; then
43a7c679 19880 bakefile_cv_cxx_compiler___xlC__=yes
9273ffba
DE
19881else
19882 echo "$as_me: failed program was:" >&5
19883sed 's/^/| /' conftest.$ac_ext >&5
19884
47964710 19885 bakefile_cv_cxx_compiler___xlC__=no
43a7c679 19886
9273ffba 19887fi
47964710
VS
19888
19889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9273ffba 19890
9273ffba 19891
43a7c679 19892fi
47964710
VS
19893{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19894echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
43a7c679
VZ
19895 if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19896 :; XLCXX=yes
19897 else
19898 :;
19899 fi
19900 ac_ext=c
fd5199d6
VZ
19901ac_cpp='$CPP $CPPFLAGS'
19902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19904ac_compiler_gnu=$ac_cv_c_compiler_gnu
9273ffba
DE
19905
19906
43a7c679 19907
3006edc0
VZ
19908 ;;
19909
19910 IRIX*)
95986553 19911
6dcfc289 19912
47964710 19913 ac_ext=cpp
0ad5d837
VZ
19914ac_cpp='$CXXCPP $CPPFLAGS'
19915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19918
47964710
VS
19919 { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
19920echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
0ad5d837
VZ
19921if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19923else
19924 cat >conftest.$ac_ext <<_ACEOF
19925/* confdefs.h. */
19926_ACEOF
19927cat confdefs.h >>conftest.$ac_ext
19928cat >>conftest.$ac_ext <<_ACEOF
19929/* end confdefs.h. */
19930
19931int
19932main ()
19933{
19934
19935 #ifndef _SGI_COMPILER_VERSION
19936 choke me
19937 #endif
19938
19939 ;
19940 return 0;
19941}
19942_ACEOF
19943rm -f conftest.$ac_objext
47964710
VS
19944if { (ac_try="$ac_compile"
19945case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19948esac
19949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_compile") 2>conftest.er1
0ad5d837
VZ
19951 ac_status=$?
19952 grep -v '^ *+' conftest.er1 >conftest.err
19953 rm -f conftest.er1
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19956 (exit $ac_status); } && {
19957 test -z "$ac_cxx_werror_flag" ||
19958 test ! -s conftest.err
19959 } && test -s conftest.$ac_objext; then
0ad5d837
VZ
19960 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
19961else
19962 echo "$as_me: failed program was:" >&5
19963sed 's/^/| /' conftest.$ac_ext >&5
19964
47964710 19965 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
0ad5d837
VZ
19966
19967fi
47964710
VS
19968
19969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0ad5d837
VZ
19970
19971
19972fi
47964710
VS
19973{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
19974echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
43a7c679
VZ
19975 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
19976 :; SGICXX=yes
19977 else
19978 :;
19979 fi
fd5199d6
VZ
19980 ac_ext=c
19981ac_cpp='$CPP $CPPFLAGS'
19982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19984ac_compiler_gnu=$ac_cv_c_compiler_gnu
0ad5d837 19985
43a7c679
VZ
19986
19987
19988 ;;
19989
19990 Linux*)
19991
19992
47964710 19993 ac_ext=cpp
43a7c679
VZ
19994ac_cpp='$CXXCPP $CPPFLAGS'
19995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19998
47964710
VS
19999 { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
20000echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
43a7c679
VZ
20001if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20003else
20004 cat >conftest.$ac_ext <<_ACEOF
20005/* confdefs.h. */
20006_ACEOF
20007cat confdefs.h >>conftest.$ac_ext
20008cat >>conftest.$ac_ext <<_ACEOF
20009/* end confdefs.h. */
20010
20011int
20012main ()
20013{
20014
20015 #ifndef __SUNPRO_CC
20016 choke me
20017 #endif
20018
20019 ;
20020 return 0;
20021}
20022_ACEOF
20023rm -f conftest.$ac_objext
47964710
VS
20024if { (ac_try="$ac_compile"
20025case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20028esac
20029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_compile") 2>conftest.er1
43a7c679
VZ
20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20036 (exit $ac_status); } && {
20037 test -z "$ac_cxx_werror_flag" ||
20038 test ! -s conftest.err
20039 } && test -s conftest.$ac_objext; then
43a7c679
VZ
20040 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
20041else
20042 echo "$as_me: failed program was:" >&5
20043sed 's/^/| /' conftest.$ac_ext >&5
20044
47964710 20045 bakefile_cv_cxx_compiler___SUNPRO_CC=no
43a7c679
VZ
20046
20047fi
47964710
VS
20048
20049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43a7c679
VZ
20050
20051
20052fi
47964710
VS
20053{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
20054echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
43a7c679
VZ
20055 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
20056 :; SUNCXX=yes
a48b6595
VZ
20057 else
20058 :;
20059 fi
43a7c679
VZ
20060 ac_ext=c
20061ac_cpp='$CPP $CPPFLAGS'
20062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20064ac_compiler_gnu=$ac_cv_c_compiler_gnu
20065
0ad5d837
VZ
20066
20067
3006edc0
VZ
20068 ;;
20069
0093c2fc 20070 HP-UX*)
3006edc0
VZ
20071
20072
47964710 20073 ac_ext=cpp
3006edc0
VZ
20074ac_cpp='$CXXCPP $CPPFLAGS'
20075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20078
47964710
VS
20079 { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
20080echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
0093c2fc 20081if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20083else
20084 cat >conftest.$ac_ext <<_ACEOF
20085/* confdefs.h. */
20086_ACEOF
20087cat confdefs.h >>conftest.$ac_ext
20088cat >>conftest.$ac_ext <<_ACEOF
20089/* end confdefs.h. */
20090
20091int
20092main ()
20093{
20094
0093c2fc 20095 #ifndef __HP_aCC
3006edc0
VZ
20096 choke me
20097 #endif
20098
20099 ;
20100 return 0;
20101}
20102_ACEOF
20103rm -f conftest.$ac_objext
47964710
VS
20104if { (ac_try="$ac_compile"
20105case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20108esac
20109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_compile") 2>conftest.er1
3006edc0
VZ
20111 ac_status=$?
20112 grep -v '^ *+' conftest.er1 >conftest.err
20113 rm -f conftest.er1
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20116 (exit $ac_status); } && {
20117 test -z "$ac_cxx_werror_flag" ||
20118 test ! -s conftest.err
20119 } && test -s conftest.$ac_objext; then
0093c2fc 20120 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
20121else
20122 echo "$as_me: failed program was:" >&5
20123sed 's/^/| /' conftest.$ac_ext >&5
20124
47964710 20125 bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
20126
20127fi
47964710
VS
20128
20129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006edc0
VZ
20130
20131
20132fi
47964710
VS
20133{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
20134echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
43a7c679
VZ
20135 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
20136 :; HPCXX=yes
20137 else
20138 :;
20139 fi
fd5199d6
VZ
20140 ac_ext=c
20141ac_cpp='$CPP $CPPFLAGS'
20142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20144ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006edc0 20145
a1aa0349
VZ
20146
20147
20148 ;;
20149
0093c2fc 20150 OSF1)
a1aa0349
VZ
20151
20152
47964710 20153 ac_ext=cpp
a1aa0349
VZ
20154ac_cpp='$CXXCPP $CPPFLAGS'
20155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20158
47964710
VS
20159 { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
20160echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
0093c2fc 20161if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20163else
20164 cat >conftest.$ac_ext <<_ACEOF
20165/* confdefs.h. */
20166_ACEOF
20167cat confdefs.h >>conftest.$ac_ext
20168cat >>conftest.$ac_ext <<_ACEOF
20169/* end confdefs.h. */
20170
20171int
20172main ()
20173{
20174
0093c2fc 20175 #ifndef __DECCXX
a1aa0349
VZ
20176 choke me
20177 #endif
20178
20179 ;
20180 return 0;
20181}
20182_ACEOF
20183rm -f conftest.$ac_objext
47964710
VS
20184if { (ac_try="$ac_compile"
20185case "(($ac_try" in
20186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187 *) ac_try_echo=$ac_try;;
20188esac
20189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20190 (eval "$ac_compile") 2>conftest.er1
a1aa0349
VZ
20191 ac_status=$?
20192 grep -v '^ *+' conftest.er1 >conftest.err
20193 rm -f conftest.er1
20194 cat conftest.err >&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20196 (exit $ac_status); } && {
20197 test -z "$ac_cxx_werror_flag" ||
20198 test ! -s conftest.err
20199 } && test -s conftest.$ac_objext; then
0093c2fc 20200 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
20201else
20202 echo "$as_me: failed program was:" >&5
20203sed 's/^/| /' conftest.$ac_ext >&5
20204
47964710 20205 bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
20206
20207fi
47964710
VS
20208
20209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a1aa0349
VZ
20210
20211
20212fi
47964710
VS
20213{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
20214echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
43a7c679
VZ
20215 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
20216 :; COMPAQCXX=yes
20217 else
20218 :;
20219 fi
fd5199d6
VZ
20220 ac_ext=c
20221ac_cpp='$CPP $CPPFLAGS'
20222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20224ac_compiler_gnu=$ac_cv_c_compiler_gnu
a1aa0349 20225
0093c2fc
VZ
20226
20227
20228 ;;
20229
20230 SunOS)
20231
20232
47964710 20233 ac_ext=cpp
0093c2fc
VZ
20234ac_cpp='$CXXCPP $CPPFLAGS'
20235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20238
47964710
VS
20239 { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
20240echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
0093c2fc
VZ
20241if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20243else
20244 cat >conftest.$ac_ext <<_ACEOF
20245/* confdefs.h. */
20246_ACEOF
20247cat confdefs.h >>conftest.$ac_ext
20248cat >>conftest.$ac_ext <<_ACEOF
20249/* end confdefs.h. */
20250
20251int
20252main ()
20253{
20254
20255 #ifndef __SUNPRO_CC
20256 choke me
20257 #endif
20258
20259 ;
20260 return 0;
20261}
20262_ACEOF
20263rm -f conftest.$ac_objext
47964710
VS
20264if { (ac_try="$ac_compile"
20265case "(($ac_try" in
20266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267 *) ac_try_echo=$ac_try;;
20268esac
20269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20270 (eval "$ac_compile") 2>conftest.er1
0093c2fc
VZ
20271 ac_status=$?
20272 grep -v '^ *+' conftest.er1 >conftest.err
20273 rm -f conftest.er1
20274 cat conftest.err >&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20276 (exit $ac_status); } && {
20277 test -z "$ac_cxx_werror_flag" ||
20278 test ! -s conftest.err
20279 } && test -s conftest.$ac_objext; then
0093c2fc
VZ
20280 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
20281else
20282 echo "$as_me: failed program was:" >&5
20283sed 's/^/| /' conftest.$ac_ext >&5
20284
47964710 20285 bakefile_cv_cxx_compiler___SUNPRO_CC=no
0093c2fc
VZ
20286
20287fi
47964710
VS
20288
20289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc
VZ
20290
20291
20292fi
47964710
VS
20293{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
20294echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
43a7c679
VZ
20295 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
20296 :; SUNCXX=yes
20297 else
20298 :;
20299 fi
fd5199d6
VZ
20300 ac_ext=c
20301ac_cpp='$CPP $CPPFLAGS'
20302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20304ac_compiler_gnu=$ac_cv_c_compiler_gnu
0093c2fc 20305
a9e5b1f0
MW
20306
20307
3006edc0
VZ
20308 ;;
20309 esac
20310 fi
20311
20312
20313
b7064225 20314if test "$CXX" = "g++" -a "$GXX" != "yes"; then
d5e0be7d
VZ
20315 { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
20316echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
20317 { (exit 1); exit 1; }; }
20318fi
20319
d083d201
MW
20320if test "x$SUNCXX" != xyes; then
20321 if test -n "$ac_tool_prefix"; then
8c80d384
DE
20322 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20323set dummy ${ac_tool_prefix}ar; ac_word=$2
47964710
VS
20324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
20326if test "${ac_cv_prog_AR+set}" = set; then
20327 echo $ECHO_N "(cached) $ECHO_C" >&6
20328else
20329 if test -n "$AR"; then
20330 ac_cv_prog_AR="$AR" # Let the user override the test.
20331else
20332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20333for as_dir in $PATH
20334do
20335 IFS=$as_save_IFS
20336 test -z "$as_dir" && as_dir=.
20337 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 20338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8c80d384 20339 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
20340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20341 break 2
20342 fi
20343done
20344done
47964710 20345IFS=$as_save_IFS
a848cd7e
SC
20346
20347fi
20348fi
20349AR=$ac_cv_prog_AR
20350if test -n "$AR"; then
47964710
VS
20351 { echo "$as_me:$LINENO: result: $AR" >&5
20352echo "${ECHO_T}$AR" >&6; }
a848cd7e 20353else
47964710
VS
20354 { echo "$as_me:$LINENO: result: no" >&5
20355echo "${ECHO_T}no" >&6; }
a848cd7e
SC
20356fi
20357
47964710 20358
8c80d384
DE
20359fi
20360if test -z "$ac_cv_prog_AR"; then
20361 ac_ct_AR=$AR
20362 # Extract the first word of "ar", so it can be a program name with args.
20363set dummy ar; ac_word=$2
47964710
VS
20364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8c80d384
DE
20366if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20368else
20369 if test -n "$ac_ct_AR"; then
20370 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20371else
20372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20373for as_dir in $PATH
20374do
20375 IFS=$as_save_IFS
20376 test -z "$as_dir" && as_dir=.
20377 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 20378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8c80d384
DE
20379 ac_cv_prog_ac_ct_AR="ar"
20380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20381 break 2
20382 fi
20383done
20384done
47964710 20385IFS=$as_save_IFS
8c80d384
DE
20386
20387fi
20388fi
20389ac_ct_AR=$ac_cv_prog_ac_ct_AR
20390if test -n "$ac_ct_AR"; then
47964710
VS
20391 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20392echo "${ECHO_T}$ac_ct_AR" >&6; }
8c80d384 20393else
47964710
VS
20394 { echo "$as_me:$LINENO: result: no" >&5
20395echo "${ECHO_T}no" >&6; }
8c80d384
DE
20396fi
20397
47964710
VS
20398 if test "x$ac_ct_AR" = x; then
20399 AR=""
20400 else
20401 case $cross_compiling:$ac_tool_warned in
20402yes:)
20403{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20404whose name does not start with the host triplet. If you think this
20405configuration is useful to you, please write to autoconf@gnu.org." >&5
20406echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20407whose name does not start with the host triplet. If you think this
20408configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20409ac_tool_warned=yes ;;
20410esac
20411 AR=$ac_ct_AR
20412 fi
8c80d384
DE
20413else
20414 AR="$ac_cv_prog_AR"
20415fi
20416
d083d201
MW
20417 if test "x$AR" = "x" ; then
20418 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
77ffb593 20419echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e 20420 { (exit 1); exit 1; }; }
d083d201 20421 fi
a848cd7e
SC
20422fi
20423
b4e05bdd
DE
20424retest_macosx_linking=no
20425
20426#if test "$wxUSE_MAC" = 1; then
20427 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
20428 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
20429 # Implicitly turn on the new --with-macosx-sdk using the default
20430 # SDK which provides the behavior this option has always had.
20431 if test "x$wxUSE_MACOSX_SDK" = "x"; then
20432 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
20433echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
20434 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
20435echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
20436 wxUSE_MACOSX_SDK=yes
20437 fi
20438 else
20439 # Complain to user if he specified an argument to --enable-universal_binary
20440 # and also 1) specified --with-macosx-sdk using the default (yes) or
20441 # 2) specified --with-macosx-sdk using a path or 3) specified
20442 # --without-macosx-sdk (no).
20443 if test "x$wxUSE_MACOSX_SDK" != "x" ; then
20444 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
20445See \`config.log' for more details." >&5
20446echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
20447See \`config.log' for more details." >&2;}
20448 { (exit 1); exit 1; }; }
20449 else
20450 # Put the SDK path into the wxUSE_MACOSX_SDK. We don't have to
20451 # special-case the empty string because the below test simply
20452 # converts "no" to the empty string anyway.
20453 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
20454 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
20455echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
20456 fi
20457 fi
20458 OSX_UNIV_OPTS="-arch ppc -arch i386"
20459 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
20460 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
20461 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
20462 retest_macosx_linking=yes
20463
20464 { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
20465echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
20466 bk_use_pch=no
20467 fi
20468#fi
20469
20470if test "x$wxUSE_MACOSX_SDK" = "xno"; then
20471 wxUSE_MACOSX_SDK=
20472elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
20473 # TODO: Search for most recent SDK and use it.
20474 wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
20475fi
20476
20477
20478if test "x$wxUSE_MACOSX_SDK" != "x"; then
47964710
VS
20479 { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
20480echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
b4e05bdd
DE
20481 if ! test -d "$wxUSE_MACOSX_SDK"; then
20482 { { echo "$as_me:$LINENO: error: not found
20483See \`config.log' for more details." >&5
20484echo "$as_me: error: not found
20485See \`config.log' for more details." >&2;}
20486 { (exit 1); exit 1; }; }
20487 else
47964710
VS
20488 { echo "$as_me:$LINENO: result: exists" >&5
20489echo "${ECHO_T}exists" >&6; }
b4e05bdd
DE
20490 fi
20491 MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
20492 eval "CC=\"$CC $MACOSX_SDK_OPTS\""
20493 eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
20494 eval "LD=\"$LD $MACOSX_SDK_OPTS\""
20495 retest_macosx_linking=yes
20496 fi
20497
20498if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
20499 wxUSE_MACOSX_VERSION_MIN=
20500elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
20501 if test "x$wxUSE_MACOSX_SDK" != "x"; then
47964710
VS
20502 { echo "$as_me:$LINENO: checking SDK deployment version" >&5
20503echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
b4e05bdd
DE
20504
20505 MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
20506
11804291
DE
20507 # If that failed, try again with the new key
20508 if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
20509
20510 MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
20511
20512 fi
20513
b4e05bdd
DE
20514 if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
20515 wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
47964710
VS
20516 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
20517echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
b4e05bdd
DE
20518 else
20519 { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
20520echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
20521 wxUSE_MACOSX_VERSION_MIN=
20522 fi
20523 else
20524 wxUSE_MACOSX_VERSION_MIN=
20525 fi
20526fi
20527
20528if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
20529 MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
20530 eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
20531 eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
20532 eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
20533 retest_macosx_linking=yes
20534fi
20535
20536if test "x$retest_macosx_linking" = "xyes"; then
20537 ac_ext=c
20538ac_cpp='$CPP $CPPFLAGS'
20539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20541ac_compiler_gnu=$ac_cv_c_compiler_gnu
20542
47964710
VS
20543 { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
20544echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
b4e05bdd
DE
20545 cat >conftest.$ac_ext <<_ACEOF
20546/* confdefs.h. */
20547_ACEOF
20548cat confdefs.h >>conftest.$ac_ext
20549cat >>conftest.$ac_ext <<_ACEOF
20550/* end confdefs.h. */
20551
20552int
20553main ()
20554{
20555
20556 ;
20557 return 0;
20558}
20559_ACEOF
20560rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
20561if { (ac_try="$ac_link"
20562case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20565esac
20566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_link") 2>conftest.er1
b4e05bdd
DE
20568 ac_status=$?
20569 grep -v '^ *+' conftest.er1 >conftest.err
20570 rm -f conftest.er1
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20573 (exit $ac_status); } && {
20574 test -z "$ac_c_werror_flag" ||
20575 test ! -s conftest.err
20576 } && test -s conftest$ac_exeext &&
20577 $as_test_x conftest$ac_exeext; then
20578 { echo "$as_me:$LINENO: result: yes" >&5
20579echo "${ECHO_T}yes" >&6; }
b4e05bdd
DE
20580else
20581 echo "$as_me: failed program was:" >&5
20582sed 's/^/| /' conftest.$ac_ext >&5
20583
47964710 20584 { { echo "$as_me:$LINENO: error: no. Try a different SDK
b4e05bdd
DE
20585See \`config.log' for more details." >&5
20586echo "$as_me: error: no. Try a different SDK
20587See \`config.log' for more details." >&2;}
20588 { (exit 1); exit 1; }; }; exit 1
20589fi
47964710
VS
20590
20591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b4e05bdd
DE
20592 conftest$ac_exeext conftest.$ac_ext
20593 ac_ext=c
20594ac_cpp='$CPP $CPPFLAGS'
20595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20597ac_compiler_gnu=$ac_cv_c_compiler_gnu
20598
20599
47964710 20600 ac_ext=cpp
b4e05bdd
DE
20601ac_cpp='$CXXCPP $CPPFLAGS'
20602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20605
47964710
VS
20606 { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
20607echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
b4e05bdd
DE
20608 cat >conftest.$ac_ext <<_ACEOF
20609/* confdefs.h. */
20610_ACEOF
20611cat confdefs.h >>conftest.$ac_ext
20612cat >>conftest.$ac_ext <<_ACEOF
20613/* end confdefs.h. */
20614
20615int
20616main ()
20617{
20618
20619 ;
20620 return 0;
20621}
20622_ACEOF
20623rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
20624if { (ac_try="$ac_link"
20625case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20628esac
20629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_link") 2>conftest.er1
b4e05bdd
DE
20631 ac_status=$?
20632 grep -v '^ *+' conftest.er1 >conftest.err
20633 rm -f conftest.er1
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20636 (exit $ac_status); } && {
20637 test -z "$ac_cxx_werror_flag" ||
20638 test ! -s conftest.err
20639 } && test -s conftest$ac_exeext &&
20640 $as_test_x conftest$ac_exeext; then
20641 { echo "$as_me:$LINENO: result: yes" >&5
20642echo "${ECHO_T}yes" >&6; }
b4e05bdd
DE
20643else
20644 echo "$as_me: failed program was:" >&5
20645sed 's/^/| /' conftest.$ac_ext >&5
20646
47964710 20647 { { echo "$as_me:$LINENO: error: no. Try a different SDK
b4e05bdd
DE
20648See \`config.log' for more details." >&5
20649echo "$as_me: error: no. Try a different SDK
20650See \`config.log' for more details." >&2;}
20651 { (exit 1); exit 1; }; }; exit 1
20652fi
47964710
VS
20653
20654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b4e05bdd
DE
20655 conftest$ac_exeext conftest.$ac_ext
20656 ac_ext=c
20657ac_cpp='$CPP $CPPFLAGS'
20658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20660ac_compiler_gnu=$ac_cv_c_compiler_gnu
20661
20662fi
20663
a848cd7e
SC
20664
20665case "${host}" in
20666
cfda0ea8 20667 *-*-darwin* )
a848cd7e
SC
20668 INSTALL_PROGRAM="cp -fp"
20669 INSTALL_DATA="cp -fp"
20670 ;;
20671 *)
20672 ;;
20673esac
20674
a848cd7e 20675
2113bc77 20676if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 20677 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
20678fi
20679
4d7ec9f1
DE
20680case "${host}" in
20681 powerpc-*-darwin* )
47964710
VS
20682 { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
20683echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
4d7ec9f1
DE
20684 cat >conftest.$ac_ext <<_ACEOF
20685/* confdefs.h. */
20686_ACEOF
20687cat confdefs.h >>conftest.$ac_ext
20688cat >>conftest.$ac_ext <<_ACEOF
20689/* end confdefs.h. */
20690
20691int
20692main ()
20693{
20694#ifndef __POWERPC__
20695 choke me for lack of PowerPC
20696#endif
20697
20698 ;
20699 return 0;
20700}
20701_ACEOF
20702rm -f conftest.$ac_objext
47964710
VS
20703if { (ac_try="$ac_compile"
20704case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20707esac
20708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_compile") 2>conftest.er1
4d7ec9f1
DE
20710 ac_status=$?
20711 grep -v '^ *+' conftest.er1 >conftest.err
20712 rm -f conftest.er1
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20715 (exit $ac_status); } && {
20716 test -z "$ac_c_werror_flag" ||
20717 test ! -s conftest.err
20718 } && test -s conftest.$ac_objext; then
20719 { echo "$as_me:$LINENO: result: yes" >&5
20720echo "${ECHO_T}yes" >&6; }
4d7ec9f1
DE
20721else
20722 echo "$as_me: failed program was:" >&5
20723sed 's/^/| /' conftest.$ac_ext >&5
20724
47964710
VS
20725 { echo "$as_me:$LINENO: result: no" >&5
20726echo "${ECHO_T}no" >&6; }
4d7ec9f1
DE
20727 cat >>confdefs.h <<\_ACEOF
20728#define __POWERPC__ 1
20729_ACEOF
20730
20731
20732fi
47964710
VS
20733
20734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
20735 ;;
20736esac
20737
20738case "${host}" in
20739 *-*-darwin* )
47964710
VS
20740 { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
20741echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
4d7ec9f1
DE
20742 cat >conftest.$ac_ext <<_ACEOF
20743/* confdefs.h. */
20744_ACEOF
20745cat confdefs.h >>conftest.$ac_ext
20746cat >>conftest.$ac_ext <<_ACEOF
20747/* end confdefs.h. */
20748#include <CoreFoundation/CFBase.h>
20749
20750int
20751main ()
20752{
20753
20754 ;
20755 return 0;
20756}
20757_ACEOF
20758rm -f conftest.$ac_objext
47964710
VS
20759if { (ac_try="$ac_compile"
20760case "(($ac_try" in
20761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762 *) ac_try_echo=$ac_try;;
20763esac
20764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765 (eval "$ac_compile") 2>conftest.er1
4d7ec9f1
DE
20766 ac_status=$?
20767 grep -v '^ *+' conftest.er1 >conftest.err
20768 rm -f conftest.er1
20769 cat conftest.err >&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20771 (exit $ac_status); } && {
20772 test -z "$ac_c_werror_flag" ||
20773 test ! -s conftest.err
20774 } && test -s conftest.$ac_objext; then
20775 { echo "$as_me:$LINENO: result: yes" >&5
20776echo "${ECHO_T}yes" >&6; }
4d7ec9f1
DE
20777else
20778 echo "$as_me: failed program was:" >&5
20779sed 's/^/| /' conftest.$ac_ext >&5
20780
47964710
VS
20781 { echo "$as_me:$LINENO: result: no" >&5
20782echo "${ECHO_T}no" >&6; }
20783 { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
20784echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
4d7ec9f1
DE
20785 cat >conftest.$ac_ext <<_ACEOF
20786/* confdefs.h. */
20787_ACEOF
20788cat confdefs.h >>conftest.$ac_ext
20789cat >>conftest.$ac_ext <<_ACEOF
20790/* end confdefs.h. */
20791#define __CF_USE_FRAMEWORK_INCLUDES__
20792#include <CoreFoundation/CFBase.h>
20793
20794int
20795main ()
20796{
20797
20798 ;
20799 return 0;
20800}
20801_ACEOF
20802rm -f conftest.$ac_objext
47964710
VS
20803if { (ac_try="$ac_compile"
20804case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20807esac
20808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_compile") 2>conftest.er1
4d7ec9f1
DE
20810 ac_status=$?
20811 grep -v '^ *+' conftest.er1 >conftest.err
20812 rm -f conftest.er1
20813 cat conftest.err >&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20815 (exit $ac_status); } && {
20816 test -z "$ac_c_werror_flag" ||
20817 test ! -s conftest.err
20818 } && test -s conftest.$ac_objext; then
20819 { echo "$as_me:$LINENO: result: yes" >&5
20820echo "${ECHO_T}yes" >&6; }
c92ad099 20821 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
20822else
20823 echo "$as_me: failed program was:" >&5
20824sed 's/^/| /' conftest.$ac_ext >&5
20825
47964710 20826 { { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
4d7ec9f1
DE
20827See \`config.log' for more details." >&5
20828echo "$as_me: error: no. CoreFoundation not available.
20829See \`config.log' for more details." >&2;}
20830 { (exit 1); exit 1; }; }
20831
20832fi
47964710
VS
20833
20834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4d7ec9f1
DE
20835
20836
20837fi
47964710
VS
20838
20839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4d7ec9f1
DE
20840 ;;
20841esac
20842
8bf7f1a9
VZ
20843wants_win32=0
20844doesnt_want_win32=0
20845case "${host}" in
20846 *-*-cygwin*)
20847 if test "$wxUSE_MSW" = 1 ; then
20848 wants_win32=1
20849 else
47964710
VS
20850 { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
20851echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
8bf7f1a9
VZ
20852if test "${wx_cv_nocygwin+set}" = set; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
20854else
20855
20856 cat >conftest.$ac_ext <<_ACEOF
20857/* confdefs.h. */
20858_ACEOF
20859cat confdefs.h >>conftest.$ac_ext
20860cat >>conftest.$ac_ext <<_ACEOF
20861/* end confdefs.h. */
20862
20863int
20864main ()
20865{
20866
20867 #ifdef __MINGW32__
20868 choke me
20869 #endif
20870
20871 ;
20872 return 0;
20873}
20874_ACEOF
20875rm -f conftest.$ac_objext
47964710
VS
20876if { (ac_try="$ac_compile"
20877case "(($ac_try" in
20878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879 *) ac_try_echo=$ac_try;;
20880esac
20881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882 (eval "$ac_compile") 2>conftest.er1
8bf7f1a9
VZ
20883 ac_status=$?
20884 grep -v '^ *+' conftest.er1 >conftest.err
20885 rm -f conftest.er1
20886 cat conftest.err >&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20888 (exit $ac_status); } && {
20889 test -z "$ac_c_werror_flag" ||
20890 test ! -s conftest.err
20891 } && test -s conftest.$ac_objext; then
8bf7f1a9
VZ
20892 wx_cv_nocygwin=no
20893else
20894 echo "$as_me: failed program was:" >&5
20895sed 's/^/| /' conftest.$ac_ext >&5
20896
47964710 20897 wx_cv_nocygwin=yes
8bf7f1a9
VZ
20898
20899fi
47964710
VS
20900
20901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8bf7f1a9
VZ
20902
20903
20904fi
47964710
VS
20905{ echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
20906echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
8bf7f1a9
VZ
20907
20908 if test "$wx_cv_nocygwin" = "yes"; then
20909 wants_win32=1
20910 else
20911 doesnt_want_win32=1
20912 fi
20913 fi
20914 if test "$wants_win32" = 1 ; then
20915 BAKEFILE_FORCE_PLATFORM=win32
20916 fi
20917 ;;
20918 *-*-mingw*)
20919 wants_win32=1
20920 ;;
20921esac
20922
20923if test "$wxUSE_WINE" = "yes"; then
20924 wants_win32=1
8bf7f1a9
VZ
20925 LDFLAGS_GUI="-mwindows"
20926fi
20927
20928if test "$wants_win32" = 1 ; then
20929 USE_UNIX=0
20930 USE_WIN32=1
20931 cat >>confdefs.h <<\_ACEOF
20932#define __WIN32__ 1
20933_ACEOF
20934
20935 cat >>confdefs.h <<\_ACEOF
20936#define __WIN95__ 1
20937_ACEOF
20938
20939 cat >>confdefs.h <<\_ACEOF
20940#define __WINDOWS__ 1
20941_ACEOF
20942
20943 cat >>confdefs.h <<\_ACEOF
20944#define __GNUWIN32__ 1
20945_ACEOF
20946
20947 cat >>confdefs.h <<\_ACEOF
20948#define STRICT 1
20949_ACEOF
20950
20951fi
20952if test "$doesnt_want_win32" = 1 ; then
20953 USE_UNIX=1
20954 USE_WIN32=0
20955fi
20956
20957if test "$USE_UNIX" = 1 ; then
20958 wxUSE_UNIX=yes
20959 cat >>confdefs.h <<\_ACEOF
20960#define __UNIX__ 1
20961_ACEOF
20962
20963fi
20964
a848cd7e
SC
20965case "${host}" in
20966 *-pc-os2_emx | *-pc-os2-emx )
fd5199d6 20967 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
47964710
VS
20968 { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
20969echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
a848cd7e
SC
20970if test "${ac_cv_lib_cExt_drand48+set}" = set; then
20971 echo $ECHO_N "(cached) $ECHO_C" >&6
20972else
20973 ac_check_lib_save_LIBS=$LIBS
20974LIBS="-lcExt $LIBS"
20975cat >conftest.$ac_ext <<_ACEOF
20976/* confdefs.h. */
20977_ACEOF
20978cat confdefs.h >>conftest.$ac_ext
20979cat >>conftest.$ac_ext <<_ACEOF
20980/* end confdefs.h. */
20981
47964710
VS
20982/* Override any GCC internal prototype to avoid an error.
20983 Use char because int might match the return type of a GCC
20984 builtin and then its argument prototype would still apply. */
a848cd7e
SC
20985#ifdef __cplusplus
20986extern "C"
20987#endif
a848cd7e
SC
20988char drand48 ();
20989int
20990main ()
20991{
47964710 20992return drand48 ();
a848cd7e
SC
20993 ;
20994 return 0;
20995}
20996_ACEOF
20997rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
20998if { (ac_try="$ac_link"
20999case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21002esac
21003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_link") 2>conftest.er1
a848cd7e 21005 ac_status=$?
ac1cb8d3
VS
21006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
a848cd7e 21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21010 (exit $ac_status); } && {
21011 test -z "$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21013 } && test -s conftest$ac_exeext &&
21014 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
21015 ac_cv_lib_cExt_drand48=yes
21016else
21017 echo "$as_me: failed program was:" >&5
21018sed 's/^/| /' conftest.$ac_ext >&5
21019
47964710 21020 ac_cv_lib_cExt_drand48=no
a848cd7e 21021fi
47964710
VS
21022
21023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 21024 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21025LIBS=$ac_check_lib_save_LIBS
21026fi
47964710
VS
21027{ echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
21028echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
a848cd7e
SC
21029if test $ac_cv_lib_cExt_drand48 = yes; then
21030 LIBS="$LIBS -lcExt"
21031fi
21032
21033 else
21034 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
21035 fi
47964710
VS
21036 { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
21037echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
a848cd7e
SC
21038if test "${wx_cv_gccversion+set}" = set; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21040else
21041
391a765e
VS
21042 if test "$cross_compiling" = yes; then
21043 wx_cv_gccversion="EMX2"
21044
21045else
21046 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
21047/* confdefs.h. */
21048_ACEOF
21049cat confdefs.h >>conftest.$ac_ext
21050cat >>conftest.$ac_ext <<_ACEOF
21051/* end confdefs.h. */
21052
391a765e 21053 #include <stdio.h>
a848cd7e 21054
391a765e
VS
21055 int main()
21056 {
21057 FILE *f=fopen("conftestval", "w");
21058 if (!f) exit(1);
21059 fprintf(f,
a848cd7e 21060 #if (__GNUC__ < 3)
391a765e
VS
21061 "EMX2"
21062 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
21063 "EMX3"
21064 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
21065 "Innotek5"
21066 #else
21067 "Innotek6"
a848cd7e 21068 #endif
5039a2df 21069 );
391a765e
VS
21070 exit(0);
21071 }
a848cd7e 21072
a848cd7e 21073_ACEOF
391a765e 21074rm -f conftest$ac_exeext
47964710
VS
21075if { (ac_try="$ac_link"
21076case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21079esac
21080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_link") 2>&5
ac1cb8d3
VS
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 21084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
21085 { (case "(($ac_try" in
21086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087 *) ac_try_echo=$ac_try;;
21088esac
21089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090 (eval "$ac_try") 2>&5
a848cd7e
SC
21091 ac_status=$?
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; }; then
391a765e 21094 wx_cv_gccversion=`cat conftestval`
a848cd7e 21095else
391a765e
VS
21096 echo "$as_me: program exited with status $ac_status" >&5
21097echo "$as_me: failed program was:" >&5
a848cd7e
SC
21098sed 's/^/| /' conftest.$ac_ext >&5
21099
391a765e
VS
21100( exit $ac_status )
21101wx_cv_gccversion="EMX2"
a848cd7e 21102fi
47964710 21103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21104fi
a848cd7e 21105
47964710
VS
21106
21107
a848cd7e 21108fi
47964710
VS
21109{ echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
21110echo "${ECHO_T}$wx_cv_gccversion" >&6; }
391a765e 21111 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
21112 LIBS="$LIBS -lstdcpp"
21113 LDFLAGS="$LDFLAGS -Zsysv-signals"
21114 else
391a765e 21115 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 21116 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
21117 LDFLAGS="$LDFLAGS -Zsysv-signals"
21118 else
21119 LIBS="$LIBS -lstdc++"
21120 fi
21121 fi
94acd38e
DE
21122 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
21123 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
21124echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
21125 wxUSE_OMF=yes
ec3edcc9 21126 enable_omf=yes
a848cd7e
SC
21127 fi
21128 ;;
21129 *)
21130
47964710
VS
21131 { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
21132echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
a848cd7e
SC
21133if test "${ac_cv_string_strcasecmp+set}" = set; then
21134 echo $ECHO_N "(cached) $ECHO_C" >&6
21135else
21136
21137 cat >conftest.$ac_ext <<_ACEOF
21138/* confdefs.h. */
21139_ACEOF
21140cat confdefs.h >>conftest.$ac_ext
21141cat >>conftest.$ac_ext <<_ACEOF
21142/* end confdefs.h. */
21143
21144 #include <string.h>
21145
21146int
21147main ()
21148{
21149
21150 strcasecmp("foo", "bar");
21151
21152 ;
21153 return 0;
21154}
21155_ACEOF
21156rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
21157if { (ac_try="$ac_link"
21158case "(($ac_try" in
21159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160 *) ac_try_echo=$ac_try;;
21161esac
21162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163 (eval "$ac_link") 2>conftest.er1
a848cd7e 21164 ac_status=$?
ac1cb8d3
VS
21165 grep -v '^ *+' conftest.er1 >conftest.err
21166 rm -f conftest.er1
21167 cat conftest.err >&5
a848cd7e 21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21169 (exit $ac_status); } && {
21170 test -z "$ac_c_werror_flag" ||
21171 test ! -s conftest.err
21172 } && test -s conftest$ac_exeext &&
21173 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
21174 ac_cv_string_strcasecmp=yes
21175else
21176 echo "$as_me: failed program was:" >&5
21177sed 's/^/| /' conftest.$ac_ext >&5
21178
47964710 21179 ac_cv_string_strcasecmp=no
a848cd7e
SC
21180
21181fi
47964710
VS
21182
21183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 21184 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21185
21186fi
47964710
VS
21187{ echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
21188echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
a848cd7e
SC
21189
21190 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
21191 cat >>confdefs.h <<\_ACEOF
21192#define HAVE_STRCASECMP_IN_STRING_H 1
21193_ACEOF
21194
21195 else
47964710
VS
21196 { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
21197echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
a848cd7e
SC
21198if test "${ac_cv_strings_strcasecmp+set}" = set; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21200else
21201
21202 cat >conftest.$ac_ext <<_ACEOF
21203/* confdefs.h. */
21204_ACEOF
21205cat confdefs.h >>conftest.$ac_ext
21206cat >>conftest.$ac_ext <<_ACEOF
21207/* end confdefs.h. */
21208
21209 #include <strings.h>
21210
21211int
21212main ()
21213{
21214
21215 strcasecmp("foo", "bar");
21216
21217 ;
21218 return 0;
21219}
21220_ACEOF
21221rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
21222if { (ac_try="$ac_link"
21223case "(($ac_try" in
21224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225 *) ac_try_echo=$ac_try;;
21226esac
21227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21228 (eval "$ac_link") 2>conftest.er1
a848cd7e 21229 ac_status=$?
ac1cb8d3
VS
21230 grep -v '^ *+' conftest.er1 >conftest.err
21231 rm -f conftest.er1
21232 cat conftest.err >&5
a848cd7e 21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21234 (exit $ac_status); } && {
21235 test -z "$ac_c_werror_flag" ||
21236 test ! -s conftest.err
21237 } && test -s conftest$ac_exeext &&
21238 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
21239 ac_cv_strings_strcasecmp=yes
21240else
21241 echo "$as_me: failed program was:" >&5
21242sed 's/^/| /' conftest.$ac_ext >&5
21243
47964710 21244 ac_cv_strings_strcasecmp=no
a848cd7e
SC
21245
21246fi
47964710
VS
21247
21248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 21249 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21250
21251fi
47964710
VS
21252{ echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
21253echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
a848cd7e 21254
0c3c69fc 21255 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
21256 cat >>confdefs.h <<\_ACEOF
21257#define HAVE_STRCASECMP_IN_STRINGS_H 1
21258_ACEOF
21259
21260 else
21261 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
21262echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
21263 { (exit 1); exit 1; }; }
21264 fi
21265 fi
21266
a848cd7e
SC
21267 ;;
21268esac
21269
21270
47964710
VS
21271{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21272echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
a848cd7e
SC
21273if test "${ac_cv_header_stdc+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275else
21276 cat >conftest.$ac_ext <<_ACEOF
21277/* confdefs.h. */
21278_ACEOF
21279cat confdefs.h >>conftest.$ac_ext
21280cat >>conftest.$ac_ext <<_ACEOF
21281/* end confdefs.h. */
21282#include <stdlib.h>
21283#include <stdarg.h>
21284#include <string.h>
21285#include <float.h>
21286
21287int
21288main ()
21289{
21290
21291 ;
21292 return 0;
21293}
21294_ACEOF
21295rm -f conftest.$ac_objext
47964710
VS
21296if { (ac_try="$ac_compile"
21297case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21300esac
21301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21303 ac_status=$?
ac1cb8d3
VS
21304 grep -v '^ *+' conftest.er1 >conftest.err
21305 rm -f conftest.er1
21306 cat conftest.err >&5
a848cd7e 21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21308 (exit $ac_status); } && {
21309 test -z "$ac_c_werror_flag" ||
21310 test ! -s conftest.err
21311 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21312 ac_cv_header_stdc=yes
21313else
21314 echo "$as_me: failed program was:" >&5
21315sed 's/^/| /' conftest.$ac_ext >&5
21316
47964710 21317 ac_cv_header_stdc=no
a848cd7e 21318fi
47964710
VS
21319
21320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21321
21322if test $ac_cv_header_stdc = yes; then
21323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21324 cat >conftest.$ac_ext <<_ACEOF
21325/* confdefs.h. */
21326_ACEOF
21327cat confdefs.h >>conftest.$ac_ext
21328cat >>conftest.$ac_ext <<_ACEOF
21329/* end confdefs.h. */
21330#include <string.h>
21331
21332_ACEOF
21333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21334 $EGREP "memchr" >/dev/null 2>&1; then
21335 :
21336else
21337 ac_cv_header_stdc=no
21338fi
21339rm -f conftest*
21340
21341fi
21342
21343if test $ac_cv_header_stdc = yes; then
21344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21345 cat >conftest.$ac_ext <<_ACEOF
21346/* confdefs.h. */
21347_ACEOF
21348cat confdefs.h >>conftest.$ac_ext
21349cat >>conftest.$ac_ext <<_ACEOF
21350/* end confdefs.h. */
21351#include <stdlib.h>
21352
21353_ACEOF
21354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21355 $EGREP "free" >/dev/null 2>&1; then
21356 :
21357else
21358 ac_cv_header_stdc=no
21359fi
21360rm -f conftest*
21361
21362fi
21363
21364if test $ac_cv_header_stdc = yes; then
21365 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21366 if test "$cross_compiling" = yes; then
21367 :
21368else
21369 cat >conftest.$ac_ext <<_ACEOF
21370/* confdefs.h. */
21371_ACEOF
21372cat confdefs.h >>conftest.$ac_ext
21373cat >>conftest.$ac_ext <<_ACEOF
21374/* end confdefs.h. */
21375#include <ctype.h>
47964710 21376#include <stdlib.h>
a848cd7e
SC
21377#if ((' ' & 0x0FF) == 0x020)
21378# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21379# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21380#else
21381# define ISLOWER(c) \
ac1cb8d3
VS
21382 (('a' <= (c) && (c) <= 'i') \
21383 || ('j' <= (c) && (c) <= 'r') \
21384 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
21385# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21386#endif
21387
21388#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21389int
21390main ()
21391{
21392 int i;
21393 for (i = 0; i < 256; i++)
21394 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 21395 || toupper (i) != TOUPPER (i))
47964710
VS
21396 return 2;
21397 return 0;
a848cd7e
SC
21398}
21399_ACEOF
21400rm -f conftest$ac_exeext
47964710
VS
21401if { (ac_try="$ac_link"
21402case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21405esac
21406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407 (eval "$ac_link") 2>&5
a848cd7e
SC
21408 ac_status=$?
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
21411 { (case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21414esac
21415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416 (eval "$ac_try") 2>&5
a848cd7e
SC
21417 ac_status=$?
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); }; }; then
21420 :
21421else
21422 echo "$as_me: program exited with status $ac_status" >&5
21423echo "$as_me: failed program was:" >&5
21424sed 's/^/| /' conftest.$ac_ext >&5
21425
21426( exit $ac_status )
21427ac_cv_header_stdc=no
21428fi
47964710 21429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21430fi
47964710
VS
21431
21432
a848cd7e
SC
21433fi
21434fi
47964710
VS
21435{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21436echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
a848cd7e
SC
21437if test $ac_cv_header_stdc = yes; then
21438
21439cat >>confdefs.h <<\_ACEOF
21440#define STDC_HEADERS 1
21441_ACEOF
21442
21443fi
21444
21445# On IRIX 5.3, sys/types and inttypes.h are conflicting.
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 21456 inttypes.h stdint.h unistd.h
a848cd7e
SC
21457do
21458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47964710
VS
21459{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21463else
21464 cat >conftest.$ac_ext <<_ACEOF
21465/* confdefs.h. */
21466_ACEOF
21467cat confdefs.h >>conftest.$ac_ext
21468cat >>conftest.$ac_ext <<_ACEOF
21469/* end confdefs.h. */
21470$ac_includes_default
21471
21472#include <$ac_header>
21473_ACEOF
21474rm -f conftest.$ac_objext
47964710
VS
21475if { (ac_try="$ac_compile"
21476case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21479esac
21480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21482 ac_status=$?
ac1cb8d3
VS
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
a848cd7e 21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21487 (exit $ac_status); } && {
21488 test -z "$ac_c_werror_flag" ||
21489 test ! -s conftest.err
21490 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21491 eval "$as_ac_Header=yes"
21492else
21493 echo "$as_me: failed program was:" >&5
21494sed 's/^/| /' conftest.$ac_ext >&5
21495
47964710 21496 eval "$as_ac_Header=no"
a848cd7e 21497fi
47964710
VS
21498
21499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21500fi
47964710
VS
21501ac_res=`eval echo '${'$as_ac_Header'}'`
21502 { echo "$as_me:$LINENO: result: $ac_res" >&5
21503echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
21504if test `eval echo '${'$as_ac_Header'}'` = yes; then
21505 cat >>confdefs.h <<_ACEOF
21506#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21507_ACEOF
21508
21509fi
21510
21511done
21512
21513
21514
a848cd7e 21515
05787cec 21516for ac_header in langinfo.h wchar.h
a848cd7e
SC
21517do
21518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47964710
VS
21519{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e 21522 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 21523else
6e7b8bcb 21524 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
21525/* confdefs.h. */
21526_ACEOF
21527cat confdefs.h >>conftest.$ac_ext
21528cat >>conftest.$ac_ext <<_ACEOF
21529/* end confdefs.h. */
21530$ac_includes_default
6e7b8bcb 21531
a848cd7e
SC
21532#include <$ac_header>
21533_ACEOF
21534rm -f conftest.$ac_objext
47964710
VS
21535if { (ac_try="$ac_compile"
21536case "(($ac_try" in
21537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21538 *) ac_try_echo=$ac_try;;
21539esac
21540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21541 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21542 ac_status=$?
ac1cb8d3
VS
21543 grep -v '^ *+' conftest.er1 >conftest.err
21544 rm -f conftest.er1
21545 cat conftest.err >&5
a848cd7e 21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21547 (exit $ac_status); } && {
21548 test -z "$ac_c_werror_flag" ||
21549 test ! -s conftest.err
21550 } && test -s conftest.$ac_objext; then
6e7b8bcb 21551 eval "$as_ac_Header=yes"
a848cd7e
SC
21552else
21553 echo "$as_me: failed program was:" >&5
21554sed 's/^/| /' conftest.$ac_ext >&5
21555
47964710 21556 eval "$as_ac_Header=no"
a848cd7e 21557fi
47964710
VS
21558
21559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21560fi
47964710
VS
21561ac_res=`eval echo '${'$as_ac_Header'}'`
21562 { echo "$as_me:$LINENO: result: $ac_res" >&5
21563echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
21564if test `eval echo '${'$as_ac_Header'}'` = yes; then
21565 cat >>confdefs.h <<_ACEOF
21566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21567_ACEOF
21568
21569fi
21570
21571done
21572
a848cd7e 21573
55e34571 21574if test "$ac_cv_header_wchar_h" != "yes"; then
1f7e12cc
DE
21575
21576for ac_header in wcstr.h
21577do
21578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47964710
VS
21579{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21581if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e 21582 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 21583else
6e7b8bcb 21584 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
21585/* confdefs.h. */
21586_ACEOF
21587cat confdefs.h >>conftest.$ac_ext
21588cat >>conftest.$ac_ext <<_ACEOF
21589/* end confdefs.h. */
21590$ac_includes_default
6e7b8bcb 21591
1f7e12cc 21592#include <$ac_header>
a848cd7e
SC
21593_ACEOF
21594rm -f conftest.$ac_objext
47964710
VS
21595if { (ac_try="$ac_compile"
21596case "(($ac_try" in
21597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598 *) ac_try_echo=$ac_try;;
21599esac
21600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21601 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21602 ac_status=$?
ac1cb8d3
VS
21603 grep -v '^ *+' conftest.er1 >conftest.err
21604 rm -f conftest.er1
21605 cat conftest.err >&5
a848cd7e 21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21607 (exit $ac_status); } && {
21608 test -z "$ac_c_werror_flag" ||
21609 test ! -s conftest.err
21610 } && test -s conftest.$ac_objext; then
1f7e12cc 21611 eval "$as_ac_Header=yes"
a848cd7e
SC
21612else
21613 echo "$as_me: failed program was:" >&5
21614sed 's/^/| /' conftest.$ac_ext >&5
21615
47964710 21616 eval "$as_ac_Header=no"
a848cd7e 21617fi
47964710
VS
21618
21619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21620fi
47964710
VS
21621ac_res=`eval echo '${'$as_ac_Header'}'`
21622 { echo "$as_me:$LINENO: result: $ac_res" >&5
21623echo "${ECHO_T}$ac_res" >&6; }
1f7e12cc
DE
21624if test `eval echo '${'$as_ac_Header'}'` = yes; then
21625 cat >>confdefs.h <<_ACEOF
21626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21627_ACEOF
21628
21629fi
a848cd7e 21630
1f7e12cc 21631done
a848cd7e 21632
a848cd7e
SC
21633fi
21634
a848cd7e
SC
21635case "${host}" in
21636 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
21637 if test $ac_cv_header_langinfo_h = "yes" \
21638 -a \( "$wx_cv_gccversion" = "EMX2" \
21639 -o "$wx_cv_gccversion" = "EMX3" \
21640 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
21641 LIBS="$LIBS -lintl"
21642 fi
21643 ;;
21644esac
21645
bc023abb 21646if test "$USE_UNIX" = 1 ; then
1f7e12cc
DE
21647
21648for ac_header in sys/select.h
21649do
21650as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47964710
VS
21651{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
bc023abb 21654 echo $ECHO_N "(cached) $ECHO_C" >&6
bc023abb 21655else
6e7b8bcb 21656 cat >conftest.$ac_ext <<_ACEOF
bc023abb
MW
21657/* confdefs.h. */
21658_ACEOF
21659cat confdefs.h >>conftest.$ac_ext
21660cat >>conftest.$ac_ext <<_ACEOF
21661/* end confdefs.h. */
21662$ac_includes_default
6e7b8bcb 21663
1f7e12cc 21664#include <$ac_header>
bc023abb
MW
21665_ACEOF
21666rm -f conftest.$ac_objext
47964710
VS
21667if { (ac_try="$ac_compile"
21668case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21671esac
21672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_compile") 2>conftest.er1
bc023abb
MW
21674 ac_status=$?
21675 grep -v '^ *+' conftest.er1 >conftest.err
21676 rm -f conftest.er1
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21679 (exit $ac_status); } && {
21680 test -z "$ac_c_werror_flag" ||
21681 test ! -s conftest.err
21682 } && test -s conftest.$ac_objext; then
1f7e12cc 21683 eval "$as_ac_Header=yes"
bc023abb
MW
21684else
21685 echo "$as_me: failed program was:" >&5
21686sed 's/^/| /' conftest.$ac_ext >&5
21687
47964710 21688 eval "$as_ac_Header=no"
bc023abb 21689fi
47964710
VS
21690
21691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bc023abb 21692fi
47964710
VS
21693ac_res=`eval echo '${'$as_ac_Header'}'`
21694 { echo "$as_me:$LINENO: result: $ac_res" >&5
21695echo "${ECHO_T}$ac_res" >&6; }
1f7e12cc
DE
21696if test `eval echo '${'$as_ac_Header'}'` = yes; then
21697 cat >>confdefs.h <<_ACEOF
21698#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21699_ACEOF
21700
21701fi
7fd3acaf 21702
1f7e12cc 21703done
bc023abb
MW
21704
21705fi
21706
a848cd7e 21707
47964710
VS
21708{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21709echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
a848cd7e
SC
21710if test "${ac_cv_c_const+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21712else
21713 cat >conftest.$ac_ext <<_ACEOF
21714/* confdefs.h. */
21715_ACEOF
21716cat confdefs.h >>conftest.$ac_ext
21717cat >>conftest.$ac_ext <<_ACEOF
21718/* end confdefs.h. */
21719
21720int
21721main ()
21722{
21723/* FIXME: Include the comments suggested by Paul. */
21724#ifndef __cplusplus
21725 /* Ultrix mips cc rejects this. */
21726 typedef int charset[2];
47964710 21727 const charset cs;
a848cd7e 21728 /* SunOS 4.1.1 cc rejects this. */
47964710
VS
21729 char const *const *pcpcc;
21730 char **ppc;
a848cd7e
SC
21731 /* NEC SVR4.0.2 mips cc rejects this. */
21732 struct point {int x, y;};
21733 static struct point const zero = {0,0};
21734 /* AIX XL C 1.02.0.0 rejects this.
21735 It does not let you subtract one const X* pointer from another in
21736 an arm of an if-expression whose if-part is not a constant
21737 expression */
21738 const char *g = "string";
47964710 21739 pcpcc = &g + (g ? g-g : 0);
a848cd7e 21740 /* HPUX 7.0 cc rejects these. */
47964710
VS
21741 ++pcpcc;
21742 ppc = (char**) pcpcc;
21743 pcpcc = (char const *const *) ppc;
a848cd7e
SC
21744 { /* SCO 3.2v4 cc rejects this. */
21745 char *t;
21746 char const *s = 0 ? (char *) 0 : (char const *) 0;
21747
21748 *t++ = 0;
47964710 21749 if (s) return 0;
a848cd7e
SC
21750 }
21751 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21752 int x[] = {25, 17};
21753 const int *foo = &x[0];
21754 ++foo;
21755 }
21756 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21757 typedef const int *iptr;
21758 iptr p = 0;
21759 ++p;
21760 }
21761 { /* AIX XL C 1.02.0.0 rejects this saying
21762 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21763 struct s { int j; const int *ap[3]; };
21764 struct s *b; b->j = 5;
21765 }
21766 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21767 const int foo = 10;
47964710 21768 if (!foo) return 0;
a848cd7e 21769 }
47964710 21770 return !cs[0] && !zero.x;
a848cd7e
SC
21771#endif
21772
21773 ;
21774 return 0;
21775}
21776_ACEOF
21777rm -f conftest.$ac_objext
47964710
VS
21778if { (ac_try="$ac_compile"
21779case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21782esac
21783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21785 ac_status=$?
ac1cb8d3
VS
21786 grep -v '^ *+' conftest.er1 >conftest.err
21787 rm -f conftest.er1
21788 cat conftest.err >&5
a848cd7e 21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21790 (exit $ac_status); } && {
21791 test -z "$ac_c_werror_flag" ||
21792 test ! -s conftest.err
21793 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21794 ac_cv_c_const=yes
21795else
21796 echo "$as_me: failed program was:" >&5
21797sed 's/^/| /' conftest.$ac_ext >&5
21798
47964710 21799 ac_cv_c_const=no
a848cd7e 21800fi
47964710
VS
21801
21802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21803fi
47964710
VS
21804{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21805echo "${ECHO_T}$ac_cv_c_const" >&6; }
a848cd7e
SC
21806if test $ac_cv_c_const = no; then
21807
21808cat >>confdefs.h <<\_ACEOF
21809#define const
21810_ACEOF
21811
21812fi
21813
47964710
VS
21814{ echo "$as_me:$LINENO: checking for inline" >&5
21815echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
a848cd7e
SC
21816if test "${ac_cv_c_inline+set}" = set; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21818else
21819 ac_cv_c_inline=no
21820for ac_kw in inline __inline__ __inline; do
21821 cat >conftest.$ac_ext <<_ACEOF
21822/* confdefs.h. */
21823_ACEOF
21824cat confdefs.h >>conftest.$ac_ext
21825cat >>conftest.$ac_ext <<_ACEOF
21826/* end confdefs.h. */
21827#ifndef __cplusplus
21828typedef int foo_t;
21829static $ac_kw foo_t static_foo () {return 0; }
21830$ac_kw foo_t foo () {return 0; }
21831#endif
21832
21833_ACEOF
21834rm -f conftest.$ac_objext
47964710
VS
21835if { (ac_try="$ac_compile"
21836case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21839esac
21840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21842 ac_status=$?
ac1cb8d3
VS
21843 grep -v '^ *+' conftest.er1 >conftest.err
21844 rm -f conftest.er1
21845 cat conftest.err >&5
a848cd7e 21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21847 (exit $ac_status); } && {
21848 test -z "$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21850 } && test -s conftest.$ac_objext; then
21851 ac_cv_c_inline=$ac_kw
a848cd7e
SC
21852else
21853 echo "$as_me: failed program was:" >&5
21854sed 's/^/| /' conftest.$ac_ext >&5
21855
47964710 21856
a848cd7e 21857fi
47964710
VS
21858
21859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21860 test "$ac_cv_c_inline" != no && break
a848cd7e
SC
21861done
21862
21863fi
47964710
VS
21864{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21865echo "${ECHO_T}$ac_cv_c_inline" >&6; }
ac1cb8d3
VS
21866
21867
a848cd7e
SC
21868case $ac_cv_c_inline in
21869 inline | yes) ;;
ac1cb8d3
VS
21870 *)
21871 case $ac_cv_c_inline in
21872 no) ac_val=;;
21873 *) ac_val=$ac_cv_c_inline;;
21874 esac
21875 cat >>confdefs.h <<_ACEOF
21876#ifndef __cplusplus
21877#define inline $ac_val
21878#endif
de59c161 21879_ACEOF
ac1cb8d3 21880 ;;
a848cd7e
SC
21881esac
21882
21883
47964710
VS
21884{ echo "$as_me:$LINENO: checking for short" >&5
21885echo $ECHO_N "checking for short... $ECHO_C" >&6; }
a848cd7e
SC
21886if test "${ac_cv_type_short+set}" = set; then
21887 echo $ECHO_N "(cached) $ECHO_C" >&6
21888else
21889 cat >conftest.$ac_ext <<_ACEOF
21890/* confdefs.h. */
21891_ACEOF
21892cat confdefs.h >>conftest.$ac_ext
21893cat >>conftest.$ac_ext <<_ACEOF
21894/* end confdefs.h. */
21895$ac_includes_default
47964710 21896typedef short ac__type_new_;
a848cd7e
SC
21897int
21898main ()
21899{
47964710 21900if ((ac__type_new_ *) 0)
a848cd7e 21901 return 0;
47964710 21902if (sizeof (ac__type_new_))
a848cd7e
SC
21903 return 0;
21904 ;
21905 return 0;
21906}
21907_ACEOF
21908rm -f conftest.$ac_objext
47964710
VS
21909if { (ac_try="$ac_compile"
21910case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21913esac
21914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21916 ac_status=$?
ac1cb8d3
VS
21917 grep -v '^ *+' conftest.er1 >conftest.err
21918 rm -f conftest.er1
21919 cat conftest.err >&5
a848cd7e 21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21921 (exit $ac_status); } && {
21922 test -z "$ac_c_werror_flag" ||
21923 test ! -s conftest.err
21924 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21925 ac_cv_type_short=yes
21926else
21927 echo "$as_me: failed program was:" >&5
21928sed 's/^/| /' conftest.$ac_ext >&5
21929
47964710 21930 ac_cv_type_short=no
a848cd7e 21931fi
47964710
VS
21932
21933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21934fi
47964710
VS
21935{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21936echo "${ECHO_T}$ac_cv_type_short" >&6; }
a848cd7e 21937
47964710
VS
21938# The cast to long int works around a bug in the HP C Compiler
21939# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21940# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21941# This bug is HP SR number 8606223364.
21942{ echo "$as_me:$LINENO: checking size of short" >&5
21943echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
a848cd7e
SC
21944if test "${ac_cv_sizeof_short+set}" = set; then
21945 echo $ECHO_N "(cached) $ECHO_C" >&6
21946else
a848cd7e
SC
21947 if test "$cross_compiling" = yes; then
21948 # Depending upon the size, compute the lo and hi bounds.
21949cat >conftest.$ac_ext <<_ACEOF
21950/* confdefs.h. */
21951_ACEOF
21952cat confdefs.h >>conftest.$ac_ext
21953cat >>conftest.$ac_ext <<_ACEOF
21954/* end confdefs.h. */
21955$ac_includes_default
47964710 21956 typedef short ac__type_sizeof_;
a848cd7e
SC
21957int
21958main ()
21959{
47964710 21960static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
21961test_array [0] = 0
21962
21963 ;
21964 return 0;
21965}
21966_ACEOF
21967rm -f conftest.$ac_objext
47964710
VS
21968if { (ac_try="$ac_compile"
21969case "(($ac_try" in
21970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21971 *) ac_try_echo=$ac_try;;
21972esac
21973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21974 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21975 ac_status=$?
ac1cb8d3
VS
21976 grep -v '^ *+' conftest.er1 >conftest.err
21977 rm -f conftest.er1
21978 cat conftest.err >&5
a848cd7e 21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21980 (exit $ac_status); } && {
21981 test -z "$ac_c_werror_flag" ||
21982 test ! -s conftest.err
21983 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21984 ac_lo=0 ac_mid=0
21985 while :; do
21986 cat >conftest.$ac_ext <<_ACEOF
21987/* confdefs.h. */
21988_ACEOF
21989cat confdefs.h >>conftest.$ac_ext
21990cat >>conftest.$ac_ext <<_ACEOF
21991/* end confdefs.h. */
21992$ac_includes_default
47964710 21993 typedef short ac__type_sizeof_;
a848cd7e
SC
21994int
21995main ()
21996{
47964710 21997static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
21998test_array [0] = 0
21999
22000 ;
22001 return 0;
22002}
22003_ACEOF
22004rm -f conftest.$ac_objext
47964710
VS
22005if { (ac_try="$ac_compile"
22006case "(($ac_try" in
22007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008 *) ac_try_echo=$ac_try;;
22009esac
22010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22012 ac_status=$?
ac1cb8d3
VS
22013 grep -v '^ *+' conftest.er1 >conftest.err
22014 rm -f conftest.er1
22015 cat conftest.err >&5
a848cd7e 22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22017 (exit $ac_status); } && {
22018 test -z "$ac_c_werror_flag" ||
22019 test ! -s conftest.err
22020 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22021 ac_hi=$ac_mid; break
22022else
22023 echo "$as_me: failed program was:" >&5
22024sed 's/^/| /' conftest.$ac_ext >&5
22025
47964710
VS
22026 ac_lo=`expr $ac_mid + 1`
22027 if test $ac_lo -le $ac_mid; then
22028 ac_lo= ac_hi=
22029 break
22030 fi
22031 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 22032fi
47964710
VS
22033
22034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22035 done
22036else
22037 echo "$as_me: failed program was:" >&5
22038sed 's/^/| /' conftest.$ac_ext >&5
22039
47964710 22040 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
22041/* confdefs.h. */
22042_ACEOF
22043cat confdefs.h >>conftest.$ac_ext
22044cat >>conftest.$ac_ext <<_ACEOF
22045/* end confdefs.h. */
22046$ac_includes_default
47964710 22047 typedef short ac__type_sizeof_;
a848cd7e
SC
22048int
22049main ()
22050{
47964710 22051static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
22052test_array [0] = 0
22053
22054 ;
22055 return 0;
22056}
22057_ACEOF
22058rm -f conftest.$ac_objext
47964710
VS
22059if { (ac_try="$ac_compile"
22060case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22063esac
22064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22066 ac_status=$?
ac1cb8d3
VS
22067 grep -v '^ *+' conftest.er1 >conftest.err
22068 rm -f conftest.er1
22069 cat conftest.err >&5
a848cd7e 22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22071 (exit $ac_status); } && {
22072 test -z "$ac_c_werror_flag" ||
22073 test ! -s conftest.err
22074 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22075 ac_hi=-1 ac_mid=-1
22076 while :; do
22077 cat >conftest.$ac_ext <<_ACEOF
22078/* confdefs.h. */
22079_ACEOF
22080cat confdefs.h >>conftest.$ac_ext
22081cat >>conftest.$ac_ext <<_ACEOF
22082/* end confdefs.h. */
22083$ac_includes_default
47964710 22084 typedef short ac__type_sizeof_;
a848cd7e
SC
22085int
22086main ()
22087{
47964710 22088static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
22089test_array [0] = 0
22090
22091 ;
22092 return 0;
22093}
22094_ACEOF
22095rm -f conftest.$ac_objext
47964710
VS
22096if { (ac_try="$ac_compile"
22097case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22100esac
22101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22103 ac_status=$?
ac1cb8d3
VS
22104 grep -v '^ *+' conftest.er1 >conftest.err
22105 rm -f conftest.er1
22106 cat conftest.err >&5
a848cd7e 22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22108 (exit $ac_status); } && {
22109 test -z "$ac_c_werror_flag" ||
22110 test ! -s conftest.err
22111 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22112 ac_lo=$ac_mid; break
22113else
22114 echo "$as_me: failed program was:" >&5
22115sed 's/^/| /' conftest.$ac_ext >&5
22116
47964710
VS
22117 ac_hi=`expr '(' $ac_mid ')' - 1`
22118 if test $ac_mid -le $ac_hi; then
22119 ac_lo= ac_hi=
22120 break
22121 fi
22122 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 22123fi
47964710
VS
22124
22125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22126 done
22127else
22128 echo "$as_me: failed program was:" >&5
22129sed 's/^/| /' conftest.$ac_ext >&5
22130
47964710 22131 ac_lo= ac_hi=
a848cd7e 22132fi
47964710
VS
22133
22134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22135fi
47964710
VS
22136
22137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22138# Binary search between lo and hi bounds.
22139while test "x$ac_lo" != "x$ac_hi"; do
22140 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22141 cat >conftest.$ac_ext <<_ACEOF
22142/* confdefs.h. */
22143_ACEOF
22144cat confdefs.h >>conftest.$ac_ext
22145cat >>conftest.$ac_ext <<_ACEOF
22146/* end confdefs.h. */
22147$ac_includes_default
47964710 22148 typedef short ac__type_sizeof_;
a848cd7e
SC
22149int
22150main ()
22151{
47964710 22152static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
22153test_array [0] = 0
22154
22155 ;
22156 return 0;
22157}
22158_ACEOF
22159rm -f conftest.$ac_objext
47964710
VS
22160if { (ac_try="$ac_compile"
22161case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22164esac
22165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22167 ac_status=$?
ac1cb8d3
VS
22168 grep -v '^ *+' conftest.er1 >conftest.err
22169 rm -f conftest.er1
22170 cat conftest.err >&5
a848cd7e 22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22172 (exit $ac_status); } && {
22173 test -z "$ac_c_werror_flag" ||
22174 test ! -s conftest.err
22175 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22176 ac_hi=$ac_mid
22177else
22178 echo "$as_me: failed program was:" >&5
22179sed 's/^/| /' conftest.$ac_ext >&5
22180
47964710 22181 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 22182fi
47964710
VS
22183
22184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22185done
22186case $ac_lo in
22187?*) ac_cv_sizeof_short=$ac_lo;;
47964710
VS
22188'') if test "$ac_cv_type_short" = yes; then
22189 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
a848cd7e 22190See \`config.log' for more details." >&5
47964710 22191echo "$as_me: error: cannot compute sizeof (short)
a848cd7e 22192See \`config.log' for more details." >&2;}
47964710
VS
22193 { (exit 77); exit 77; }; }
22194 else
22195 ac_cv_sizeof_short=0
22196 fi ;;
a848cd7e 22197esac
a848cd7e
SC
22198else
22199 cat >conftest.$ac_ext <<_ACEOF
22200/* confdefs.h. */
22201_ACEOF
22202cat confdefs.h >>conftest.$ac_ext
22203cat >>conftest.$ac_ext <<_ACEOF
22204/* end confdefs.h. */
22205$ac_includes_default
47964710
VS
22206 typedef short ac__type_sizeof_;
22207static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22208static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
22209#include <stdio.h>
22210#include <stdlib.h>
22211int
22212main ()
22213{
22214
22215 FILE *f = fopen ("conftest.val", "w");
22216 if (! f)
47964710
VS
22217 return 1;
22218 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 22219 {
47964710
VS
22220 long int i = longval ();
22221 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22222 return 1;
a848cd7e
SC
22223 fprintf (f, "%ld\n", i);
22224 }
22225 else
22226 {
47964710
VS
22227 unsigned long int i = ulongval ();
22228 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22229 return 1;
a848cd7e
SC
22230 fprintf (f, "%lu\n", i);
22231 }
47964710 22232 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
22233
22234 ;
22235 return 0;
22236}
22237_ACEOF
22238rm -f conftest$ac_exeext
47964710
VS
22239if { (ac_try="$ac_link"
22240case "(($ac_try" in
22241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242 *) ac_try_echo=$ac_try;;
22243esac
22244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245 (eval "$ac_link") 2>&5
a848cd7e
SC
22246 ac_status=$?
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
22249 { (case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22252esac
22253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_try") 2>&5
a848cd7e
SC
22255 ac_status=$?
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22258 ac_cv_sizeof_short=`cat conftest.val`
22259else
22260 echo "$as_me: program exited with status $ac_status" >&5
22261echo "$as_me: failed program was:" >&5
22262sed 's/^/| /' conftest.$ac_ext >&5
22263
22264( exit $ac_status )
47964710
VS
22265if test "$ac_cv_type_short" = yes; then
22266 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
a848cd7e 22267See \`config.log' for more details." >&5
47964710 22268echo "$as_me: error: cannot compute sizeof (short)
a848cd7e 22269See \`config.log' for more details." >&2;}
47964710
VS
22270 { (exit 77); exit 77; }; }
22271 else
22272 ac_cv_sizeof_short=0
22273 fi
a848cd7e 22274fi
47964710 22275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22276fi
22277rm -f conftest.val
bd8a7646 22278fi
47964710
VS
22279{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22280echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
22281
22282
22283
a848cd7e
SC
22284cat >>confdefs.h <<_ACEOF
22285#define SIZEOF_SHORT $ac_cv_sizeof_short
22286_ACEOF
22287
22288
47964710
VS
22289{ echo "$as_me:$LINENO: checking for void *" >&5
22290echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
a848cd7e
SC
22291if test "${ac_cv_type_void_p+set}" = set; then
22292 echo $ECHO_N "(cached) $ECHO_C" >&6
22293else
22294 cat >conftest.$ac_ext <<_ACEOF
22295/* confdefs.h. */
22296_ACEOF
22297cat confdefs.h >>conftest.$ac_ext
22298cat >>conftest.$ac_ext <<_ACEOF
22299/* end confdefs.h. */
22300$ac_includes_default
47964710 22301typedef void * ac__type_new_;
a848cd7e
SC
22302int
22303main ()
22304{
47964710 22305if ((ac__type_new_ *) 0)
a848cd7e 22306 return 0;
47964710 22307if (sizeof (ac__type_new_))
a848cd7e
SC
22308 return 0;
22309 ;
22310 return 0;
22311}
22312_ACEOF
22313rm -f conftest.$ac_objext
47964710
VS
22314if { (ac_try="$ac_compile"
22315case "(($ac_try" in
22316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317 *) ac_try_echo=$ac_try;;
22318esac
22319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22320 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22321 ac_status=$?
ac1cb8d3
VS
22322 grep -v '^ *+' conftest.er1 >conftest.err
22323 rm -f conftest.er1
22324 cat conftest.err >&5
a848cd7e 22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22326 (exit $ac_status); } && {
22327 test -z "$ac_c_werror_flag" ||
22328 test ! -s conftest.err
22329 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22330 ac_cv_type_void_p=yes
22331else
22332 echo "$as_me: failed program was:" >&5
22333sed 's/^/| /' conftest.$ac_ext >&5
22334
47964710 22335 ac_cv_type_void_p=no
a848cd7e 22336fi
47964710
VS
22337
22338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22339fi
47964710
VS
22340{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22341echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
a848cd7e 22342
47964710
VS
22343# The cast to long int works around a bug in the HP C Compiler
22344# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22345# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22346# This bug is HP SR number 8606223364.
22347{ echo "$as_me:$LINENO: checking size of void *" >&5
22348echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
a848cd7e
SC
22349if test "${ac_cv_sizeof_void_p+set}" = set; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22351else
a848cd7e
SC
22352 if test "$cross_compiling" = yes; then
22353 # Depending upon the size, compute the lo and hi bounds.
22354cat >conftest.$ac_ext <<_ACEOF
22355/* confdefs.h. */
22356_ACEOF
22357cat confdefs.h >>conftest.$ac_ext
22358cat >>conftest.$ac_ext <<_ACEOF
22359/* end confdefs.h. */
22360$ac_includes_default
47964710 22361 typedef void * ac__type_sizeof_;
a848cd7e
SC
22362int
22363main ()
22364{
47964710 22365static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
22366test_array [0] = 0
22367
22368 ;
22369 return 0;
22370}
22371_ACEOF
22372rm -f conftest.$ac_objext
47964710
VS
22373if { (ac_try="$ac_compile"
22374case "(($ac_try" in
22375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22376 *) ac_try_echo=$ac_try;;
22377esac
22378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22379 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22380 ac_status=$?
ac1cb8d3
VS
22381 grep -v '^ *+' conftest.er1 >conftest.err
22382 rm -f conftest.er1
22383 cat conftest.err >&5
a848cd7e 22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22385 (exit $ac_status); } && {
22386 test -z "$ac_c_werror_flag" ||
22387 test ! -s conftest.err
22388 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22389 ac_lo=0 ac_mid=0
22390 while :; do
22391 cat >conftest.$ac_ext <<_ACEOF
22392/* confdefs.h. */
22393_ACEOF
22394cat confdefs.h >>conftest.$ac_ext
22395cat >>conftest.$ac_ext <<_ACEOF
22396/* end confdefs.h. */
22397$ac_includes_default
47964710 22398 typedef void * ac__type_sizeof_;
a848cd7e
SC
22399int
22400main ()
22401{
47964710 22402static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
22403test_array [0] = 0
22404
22405 ;
22406 return 0;
22407}
22408_ACEOF
22409rm -f conftest.$ac_objext
47964710
VS
22410if { (ac_try="$ac_compile"
22411case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22414esac
22415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22417 ac_status=$?
ac1cb8d3
VS
22418 grep -v '^ *+' conftest.er1 >conftest.err
22419 rm -f conftest.er1
22420 cat conftest.err >&5
a848cd7e 22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22422 (exit $ac_status); } && {
22423 test -z "$ac_c_werror_flag" ||
22424 test ! -s conftest.err
22425 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22426 ac_hi=$ac_mid; break
22427else
22428 echo "$as_me: failed program was:" >&5
22429sed 's/^/| /' conftest.$ac_ext >&5
22430
47964710
VS
22431 ac_lo=`expr $ac_mid + 1`
22432 if test $ac_lo -le $ac_mid; then
22433 ac_lo= ac_hi=
22434 break
22435 fi
22436 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 22437fi
47964710
VS
22438
22439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22440 done
22441else
22442 echo "$as_me: failed program was:" >&5
22443sed 's/^/| /' conftest.$ac_ext >&5
22444
47964710 22445 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
22446/* confdefs.h. */
22447_ACEOF
22448cat confdefs.h >>conftest.$ac_ext
22449cat >>conftest.$ac_ext <<_ACEOF
22450/* end confdefs.h. */
22451$ac_includes_default
47964710 22452 typedef void * ac__type_sizeof_;
a848cd7e
SC
22453int
22454main ()
22455{
47964710 22456static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
22457test_array [0] = 0
22458
22459 ;
22460 return 0;
22461}
22462_ACEOF
22463rm -f conftest.$ac_objext
47964710
VS
22464if { (ac_try="$ac_compile"
22465case "(($ac_try" in
22466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22467 *) ac_try_echo=$ac_try;;
22468esac
22469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22470 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22471 ac_status=$?
ac1cb8d3
VS
22472 grep -v '^ *+' conftest.er1 >conftest.err
22473 rm -f conftest.er1
22474 cat conftest.err >&5
a848cd7e 22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22476 (exit $ac_status); } && {
22477 test -z "$ac_c_werror_flag" ||
22478 test ! -s conftest.err
22479 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22480 ac_hi=-1 ac_mid=-1
22481 while :; do
22482 cat >conftest.$ac_ext <<_ACEOF
22483/* confdefs.h. */
22484_ACEOF
22485cat confdefs.h >>conftest.$ac_ext
22486cat >>conftest.$ac_ext <<_ACEOF
22487/* end confdefs.h. */
22488$ac_includes_default
47964710 22489 typedef void * ac__type_sizeof_;
a848cd7e
SC
22490int
22491main ()
22492{
47964710 22493static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
22494test_array [0] = 0
22495
22496 ;
22497 return 0;
22498}
22499_ACEOF
22500rm -f conftest.$ac_objext
47964710
VS
22501if { (ac_try="$ac_compile"
22502case "(($ac_try" in
22503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504 *) ac_try_echo=$ac_try;;
22505esac
22506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22507 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22508 ac_status=$?
ac1cb8d3
VS
22509 grep -v '^ *+' conftest.er1 >conftest.err
22510 rm -f conftest.er1
22511 cat conftest.err >&5
a848cd7e 22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22513 (exit $ac_status); } && {
22514 test -z "$ac_c_werror_flag" ||
22515 test ! -s conftest.err
22516 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22517 ac_lo=$ac_mid; break
22518else
22519 echo "$as_me: failed program was:" >&5
22520sed 's/^/| /' conftest.$ac_ext >&5
22521
47964710
VS
22522 ac_hi=`expr '(' $ac_mid ')' - 1`
22523 if test $ac_mid -le $ac_hi; then
22524 ac_lo= ac_hi=
22525 break
22526 fi
22527 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 22528fi
47964710
VS
22529
22530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22531 done
22532else
22533 echo "$as_me: failed program was:" >&5
22534sed 's/^/| /' conftest.$ac_ext >&5
22535
47964710 22536 ac_lo= ac_hi=
a848cd7e 22537fi
47964710
VS
22538
22539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22540fi
47964710
VS
22541
22542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22543# Binary search between lo and hi bounds.
22544while test "x$ac_lo" != "x$ac_hi"; do
22545 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22546 cat >conftest.$ac_ext <<_ACEOF
22547/* confdefs.h. */
22548_ACEOF
22549cat confdefs.h >>conftest.$ac_ext
22550cat >>conftest.$ac_ext <<_ACEOF
22551/* end confdefs.h. */
22552$ac_includes_default
47964710 22553 typedef void * ac__type_sizeof_;
a848cd7e
SC
22554int
22555main ()
22556{
47964710 22557static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
22558test_array [0] = 0
22559
22560 ;
22561 return 0;
22562}
22563_ACEOF
22564rm -f conftest.$ac_objext
47964710
VS
22565if { (ac_try="$ac_compile"
22566case "(($ac_try" in
22567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22569esac
22570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22572 ac_status=$?
ac1cb8d3
VS
22573 grep -v '^ *+' conftest.er1 >conftest.err
22574 rm -f conftest.er1
22575 cat conftest.err >&5
a848cd7e 22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22577 (exit $ac_status); } && {
22578 test -z "$ac_c_werror_flag" ||
22579 test ! -s conftest.err
22580 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22581 ac_hi=$ac_mid
22582else
22583 echo "$as_me: failed program was:" >&5
22584sed 's/^/| /' conftest.$ac_ext >&5
22585
47964710 22586 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 22587fi
47964710
VS
22588
22589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22590done
22591case $ac_lo in
22592?*) ac_cv_sizeof_void_p=$ac_lo;;
47964710
VS
22593'') if test "$ac_cv_type_void_p" = yes; then
22594 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
a848cd7e 22595See \`config.log' for more details." >&5
47964710 22596echo "$as_me: error: cannot compute sizeof (void *)
a848cd7e 22597See \`config.log' for more details." >&2;}
47964710
VS
22598 { (exit 77); exit 77; }; }
22599 else
22600 ac_cv_sizeof_void_p=0
22601 fi ;;
a848cd7e 22602esac
a848cd7e
SC
22603else
22604 cat >conftest.$ac_ext <<_ACEOF
22605/* confdefs.h. */
22606_ACEOF
22607cat confdefs.h >>conftest.$ac_ext
22608cat >>conftest.$ac_ext <<_ACEOF
22609/* end confdefs.h. */
22610$ac_includes_default
47964710
VS
22611 typedef void * ac__type_sizeof_;
22612static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22613static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
22614#include <stdio.h>
22615#include <stdlib.h>
22616int
22617main ()
22618{
22619
22620 FILE *f = fopen ("conftest.val", "w");
22621 if (! f)
47964710
VS
22622 return 1;
22623 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 22624 {
47964710
VS
22625 long int i = longval ();
22626 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22627 return 1;
a848cd7e
SC
22628 fprintf (f, "%ld\n", i);
22629 }
22630 else
22631 {
47964710
VS
22632 unsigned long int i = ulongval ();
22633 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22634 return 1;
a848cd7e
SC
22635 fprintf (f, "%lu\n", i);
22636 }
47964710 22637 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
22638
22639 ;
22640 return 0;
22641}
22642_ACEOF
22643rm -f conftest$ac_exeext
47964710
VS
22644if { (ac_try="$ac_link"
22645case "(($ac_try" in
22646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22647 *) ac_try_echo=$ac_try;;
22648esac
22649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22650 (eval "$ac_link") 2>&5
a848cd7e
SC
22651 ac_status=$?
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
22654 { (case "(($ac_try" in
22655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22656 *) ac_try_echo=$ac_try;;
22657esac
22658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22659 (eval "$ac_try") 2>&5
a848cd7e
SC
22660 ac_status=$?
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); }; }; then
22663 ac_cv_sizeof_void_p=`cat conftest.val`
22664else
22665 echo "$as_me: program exited with status $ac_status" >&5
22666echo "$as_me: failed program was:" >&5
22667sed 's/^/| /' conftest.$ac_ext >&5
22668
22669( exit $ac_status )
47964710
VS
22670if test "$ac_cv_type_void_p" = yes; then
22671 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
a848cd7e 22672See \`config.log' for more details." >&5
47964710 22673echo "$as_me: error: cannot compute sizeof (void *)
a848cd7e 22674See \`config.log' for more details." >&2;}
47964710
VS
22675 { (exit 77); exit 77; }; }
22676 else
22677 ac_cv_sizeof_void_p=0
22678 fi
a848cd7e 22679fi
47964710 22680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22681fi
22682rm -f conftest.val
bd8a7646 22683fi
47964710
VS
22684{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22685echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22686
22687
22688
a848cd7e
SC
22689cat >>confdefs.h <<_ACEOF
22690#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22691_ACEOF
22692
22693
47964710
VS
22694{ echo "$as_me:$LINENO: checking for int" >&5
22695echo $ECHO_N "checking for int... $ECHO_C" >&6; }
a848cd7e
SC
22696if test "${ac_cv_type_int+set}" = set; then
22697 echo $ECHO_N "(cached) $ECHO_C" >&6
22698else
22699 cat >conftest.$ac_ext <<_ACEOF
22700/* confdefs.h. */
22701_ACEOF
22702cat confdefs.h >>conftest.$ac_ext
22703cat >>conftest.$ac_ext <<_ACEOF
22704/* end confdefs.h. */
22705$ac_includes_default
47964710 22706typedef int ac__type_new_;
a848cd7e
SC
22707int
22708main ()
22709{
47964710 22710if ((ac__type_new_ *) 0)
a848cd7e 22711 return 0;
47964710 22712if (sizeof (ac__type_new_))
a848cd7e
SC
22713 return 0;
22714 ;
22715 return 0;
22716}
22717_ACEOF
22718rm -f conftest.$ac_objext
47964710
VS
22719if { (ac_try="$ac_compile"
22720case "(($ac_try" in
22721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22722 *) ac_try_echo=$ac_try;;
22723esac
22724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22725 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22726 ac_status=$?
ac1cb8d3
VS
22727 grep -v '^ *+' conftest.er1 >conftest.err
22728 rm -f conftest.er1
22729 cat conftest.err >&5
a848cd7e 22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22731 (exit $ac_status); } && {
22732 test -z "$ac_c_werror_flag" ||
22733 test ! -s conftest.err
22734 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22735 ac_cv_type_int=yes
22736else
22737 echo "$as_me: failed program was:" >&5
22738sed 's/^/| /' conftest.$ac_ext >&5
22739
47964710 22740 ac_cv_type_int=no
a848cd7e 22741fi
47964710
VS
22742
22743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22744fi
47964710
VS
22745{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22746echo "${ECHO_T}$ac_cv_type_int" >&6; }
a848cd7e 22747
47964710
VS
22748# The cast to long int works around a bug in the HP C Compiler
22749# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22750# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22751# This bug is HP SR number 8606223364.
22752{ echo "$as_me:$LINENO: checking size of int" >&5
22753echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
a848cd7e
SC
22754if test "${ac_cv_sizeof_int+set}" = set; then
22755 echo $ECHO_N "(cached) $ECHO_C" >&6
22756else
a848cd7e
SC
22757 if test "$cross_compiling" = yes; then
22758 # Depending upon the size, compute the lo and hi bounds.
22759cat >conftest.$ac_ext <<_ACEOF
22760/* confdefs.h. */
22761_ACEOF
22762cat confdefs.h >>conftest.$ac_ext
22763cat >>conftest.$ac_ext <<_ACEOF
22764/* end confdefs.h. */
22765$ac_includes_default
47964710 22766 typedef int ac__type_sizeof_;
a848cd7e
SC
22767int
22768main ()
22769{
47964710 22770static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
22771test_array [0] = 0
22772
22773 ;
22774 return 0;
22775}
22776_ACEOF
22777rm -f conftest.$ac_objext
47964710
VS
22778if { (ac_try="$ac_compile"
22779case "(($ac_try" in
22780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781 *) ac_try_echo=$ac_try;;
22782esac
22783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22784 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22785 ac_status=$?
ac1cb8d3
VS
22786 grep -v '^ *+' conftest.er1 >conftest.err
22787 rm -f conftest.er1
22788 cat conftest.err >&5
a848cd7e 22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22790 (exit $ac_status); } && {
22791 test -z "$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22793 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22794 ac_lo=0 ac_mid=0
22795 while :; do
22796 cat >conftest.$ac_ext <<_ACEOF
22797/* confdefs.h. */
22798_ACEOF
22799cat confdefs.h >>conftest.$ac_ext
22800cat >>conftest.$ac_ext <<_ACEOF
22801/* end confdefs.h. */
22802$ac_includes_default
47964710 22803 typedef int ac__type_sizeof_;
a848cd7e
SC
22804int
22805main ()
22806{
47964710 22807static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
22808test_array [0] = 0
22809
22810 ;
22811 return 0;
22812}
22813_ACEOF
22814rm -f conftest.$ac_objext
47964710
VS
22815if { (ac_try="$ac_compile"
22816case "(($ac_try" in
22817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22818 *) ac_try_echo=$ac_try;;
22819esac
22820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22821 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22822 ac_status=$?
ac1cb8d3
VS
22823 grep -v '^ *+' conftest.er1 >conftest.err
22824 rm -f conftest.er1
22825 cat conftest.err >&5
a848cd7e 22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22827 (exit $ac_status); } && {
22828 test -z "$ac_c_werror_flag" ||
22829 test ! -s conftest.err
22830 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22831 ac_hi=$ac_mid; break
22832else
22833 echo "$as_me: failed program was:" >&5
22834sed 's/^/| /' conftest.$ac_ext >&5
22835
47964710
VS
22836 ac_lo=`expr $ac_mid + 1`
22837 if test $ac_lo -le $ac_mid; then
22838 ac_lo= ac_hi=
22839 break
22840 fi
22841 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 22842fi
47964710
VS
22843
22844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22845 done
22846else
22847 echo "$as_me: failed program was:" >&5
22848sed 's/^/| /' conftest.$ac_ext >&5
22849
47964710 22850 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
22851/* confdefs.h. */
22852_ACEOF
22853cat confdefs.h >>conftest.$ac_ext
22854cat >>conftest.$ac_ext <<_ACEOF
22855/* end confdefs.h. */
22856$ac_includes_default
47964710 22857 typedef int ac__type_sizeof_;
a848cd7e
SC
22858int
22859main ()
22860{
47964710 22861static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
22862test_array [0] = 0
22863
22864 ;
22865 return 0;
22866}
22867_ACEOF
22868rm -f conftest.$ac_objext
47964710
VS
22869if { (ac_try="$ac_compile"
22870case "(($ac_try" in
22871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872 *) ac_try_echo=$ac_try;;
22873esac
22874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22875 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22876 ac_status=$?
ac1cb8d3
VS
22877 grep -v '^ *+' conftest.er1 >conftest.err
22878 rm -f conftest.er1
22879 cat conftest.err >&5
a848cd7e 22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22881 (exit $ac_status); } && {
22882 test -z "$ac_c_werror_flag" ||
22883 test ! -s conftest.err
22884 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22885 ac_hi=-1 ac_mid=-1
22886 while :; do
22887 cat >conftest.$ac_ext <<_ACEOF
22888/* confdefs.h. */
22889_ACEOF
22890cat confdefs.h >>conftest.$ac_ext
22891cat >>conftest.$ac_ext <<_ACEOF
22892/* end confdefs.h. */
22893$ac_includes_default
47964710 22894 typedef int ac__type_sizeof_;
a848cd7e
SC
22895int
22896main ()
22897{
47964710 22898static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
22899test_array [0] = 0
22900
22901 ;
22902 return 0;
22903}
22904_ACEOF
22905rm -f conftest.$ac_objext
47964710
VS
22906if { (ac_try="$ac_compile"
22907case "(($ac_try" in
22908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909 *) ac_try_echo=$ac_try;;
22910esac
22911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22913 ac_status=$?
ac1cb8d3
VS
22914 grep -v '^ *+' conftest.er1 >conftest.err
22915 rm -f conftest.er1
22916 cat conftest.err >&5
a848cd7e 22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22918 (exit $ac_status); } && {
22919 test -z "$ac_c_werror_flag" ||
22920 test ! -s conftest.err
22921 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22922 ac_lo=$ac_mid; break
22923else
22924 echo "$as_me: failed program was:" >&5
22925sed 's/^/| /' conftest.$ac_ext >&5
22926
47964710
VS
22927 ac_hi=`expr '(' $ac_mid ')' - 1`
22928 if test $ac_mid -le $ac_hi; then
22929 ac_lo= ac_hi=
22930 break
22931 fi
22932 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 22933fi
47964710
VS
22934
22935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22936 done
22937else
22938 echo "$as_me: failed program was:" >&5
22939sed 's/^/| /' conftest.$ac_ext >&5
22940
47964710 22941 ac_lo= ac_hi=
a848cd7e 22942fi
47964710
VS
22943
22944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22945fi
47964710
VS
22946
22947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22948# Binary search between lo and hi bounds.
22949while test "x$ac_lo" != "x$ac_hi"; do
22950 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22951 cat >conftest.$ac_ext <<_ACEOF
22952/* confdefs.h. */
22953_ACEOF
22954cat confdefs.h >>conftest.$ac_ext
22955cat >>conftest.$ac_ext <<_ACEOF
22956/* end confdefs.h. */
22957$ac_includes_default
47964710 22958 typedef int ac__type_sizeof_;
a848cd7e
SC
22959int
22960main ()
22961{
47964710 22962static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
22963test_array [0] = 0
22964
22965 ;
22966 return 0;
22967}
22968_ACEOF
22969rm -f conftest.$ac_objext
47964710
VS
22970if { (ac_try="$ac_compile"
22971case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22974esac
22975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22977 ac_status=$?
ac1cb8d3
VS
22978 grep -v '^ *+' conftest.er1 >conftest.err
22979 rm -f conftest.er1
22980 cat conftest.err >&5
a848cd7e 22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22982 (exit $ac_status); } && {
22983 test -z "$ac_c_werror_flag" ||
22984 test ! -s conftest.err
22985 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22986 ac_hi=$ac_mid
22987else
22988 echo "$as_me: failed program was:" >&5
22989sed 's/^/| /' conftest.$ac_ext >&5
22990
47964710 22991 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 22992fi
47964710
VS
22993
22994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22995done
22996case $ac_lo in
22997?*) ac_cv_sizeof_int=$ac_lo;;
47964710
VS
22998'') if test "$ac_cv_type_int" = yes; then
22999 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
a848cd7e 23000See \`config.log' for more details." >&5
47964710 23001echo "$as_me: error: cannot compute sizeof (int)
a848cd7e 23002See \`config.log' for more details." >&2;}
47964710
VS
23003 { (exit 77); exit 77; }; }
23004 else
23005 ac_cv_sizeof_int=0
23006 fi ;;
a848cd7e 23007esac
a848cd7e
SC
23008else
23009 cat >conftest.$ac_ext <<_ACEOF
23010/* confdefs.h. */
23011_ACEOF
23012cat confdefs.h >>conftest.$ac_ext
23013cat >>conftest.$ac_ext <<_ACEOF
23014/* end confdefs.h. */
23015$ac_includes_default
47964710
VS
23016 typedef int ac__type_sizeof_;
23017static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23018static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
23019#include <stdio.h>
23020#include <stdlib.h>
23021int
23022main ()
23023{
23024
23025 FILE *f = fopen ("conftest.val", "w");
23026 if (! f)
47964710
VS
23027 return 1;
23028 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 23029 {
47964710
VS
23030 long int i = longval ();
23031 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23032 return 1;
a848cd7e
SC
23033 fprintf (f, "%ld\n", i);
23034 }
23035 else
23036 {
47964710
VS
23037 unsigned long int i = ulongval ();
23038 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23039 return 1;
a848cd7e
SC
23040 fprintf (f, "%lu\n", i);
23041 }
47964710 23042 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
23043
23044 ;
23045 return 0;
23046}
23047_ACEOF
23048rm -f conftest$ac_exeext
47964710
VS
23049if { (ac_try="$ac_link"
23050case "(($ac_try" in
23051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23052 *) ac_try_echo=$ac_try;;
23053esac
23054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23055 (eval "$ac_link") 2>&5
a848cd7e
SC
23056 ac_status=$?
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
23059 { (case "(($ac_try" in
23060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061 *) ac_try_echo=$ac_try;;
23062esac
23063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064 (eval "$ac_try") 2>&5
a848cd7e
SC
23065 ac_status=$?
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); }; }; then
23068 ac_cv_sizeof_int=`cat conftest.val`
23069else
23070 echo "$as_me: program exited with status $ac_status" >&5
23071echo "$as_me: failed program was:" >&5
23072sed 's/^/| /' conftest.$ac_ext >&5
23073
23074( exit $ac_status )
47964710
VS
23075if test "$ac_cv_type_int" = yes; then
23076 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
a848cd7e 23077See \`config.log' for more details." >&5
47964710 23078echo "$as_me: error: cannot compute sizeof (int)
a848cd7e 23079See \`config.log' for more details." >&2;}
47964710
VS
23080 { (exit 77); exit 77; }; }
23081 else
23082 ac_cv_sizeof_int=0
23083 fi
a848cd7e 23084fi
47964710 23085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23086fi
23087rm -f conftest.val
4db03d26 23088fi
47964710
VS
23089{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23090echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23091
23092
23093
a848cd7e
SC
23094cat >>confdefs.h <<_ACEOF
23095#define SIZEOF_INT $ac_cv_sizeof_int
23096_ACEOF
23097
23098
47964710
VS
23099{ echo "$as_me:$LINENO: checking for long" >&5
23100echo $ECHO_N "checking for long... $ECHO_C" >&6; }
a848cd7e
SC
23101if test "${ac_cv_type_long+set}" = set; then
23102 echo $ECHO_N "(cached) $ECHO_C" >&6
23103else
23104 cat >conftest.$ac_ext <<_ACEOF
23105/* confdefs.h. */
23106_ACEOF
23107cat confdefs.h >>conftest.$ac_ext
23108cat >>conftest.$ac_ext <<_ACEOF
23109/* end confdefs.h. */
23110$ac_includes_default
47964710 23111typedef long ac__type_new_;
a848cd7e
SC
23112int
23113main ()
23114{
47964710 23115if ((ac__type_new_ *) 0)
a848cd7e 23116 return 0;
47964710 23117if (sizeof (ac__type_new_))
a848cd7e
SC
23118 return 0;
23119 ;
23120 return 0;
23121}
23122_ACEOF
23123rm -f conftest.$ac_objext
47964710
VS
23124if { (ac_try="$ac_compile"
23125case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23128esac
23129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23131 ac_status=$?
ac1cb8d3
VS
23132 grep -v '^ *+' conftest.er1 >conftest.err
23133 rm -f conftest.er1
23134 cat conftest.err >&5
a848cd7e 23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23136 (exit $ac_status); } && {
23137 test -z "$ac_c_werror_flag" ||
23138 test ! -s conftest.err
23139 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23140 ac_cv_type_long=yes
23141else
23142 echo "$as_me: failed program was:" >&5
23143sed 's/^/| /' conftest.$ac_ext >&5
23144
47964710 23145 ac_cv_type_long=no
a848cd7e 23146fi
47964710
VS
23147
23148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23149fi
47964710
VS
23150{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23151echo "${ECHO_T}$ac_cv_type_long" >&6; }
a848cd7e 23152
47964710
VS
23153# The cast to long int works around a bug in the HP C Compiler
23154# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23155# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23156# This bug is HP SR number 8606223364.
23157{ echo "$as_me:$LINENO: checking size of long" >&5
23158echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
a848cd7e
SC
23159if test "${ac_cv_sizeof_long+set}" = set; then
23160 echo $ECHO_N "(cached) $ECHO_C" >&6
23161else
a848cd7e
SC
23162 if test "$cross_compiling" = yes; then
23163 # Depending upon the size, compute the lo and hi bounds.
23164cat >conftest.$ac_ext <<_ACEOF
23165/* confdefs.h. */
23166_ACEOF
23167cat confdefs.h >>conftest.$ac_ext
23168cat >>conftest.$ac_ext <<_ACEOF
23169/* end confdefs.h. */
23170$ac_includes_default
47964710 23171 typedef long ac__type_sizeof_;
a848cd7e
SC
23172int
23173main ()
23174{
47964710 23175static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
23176test_array [0] = 0
23177
23178 ;
23179 return 0;
23180}
23181_ACEOF
23182rm -f conftest.$ac_objext
47964710
VS
23183if { (ac_try="$ac_compile"
23184case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23187esac
23188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23189 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23190 ac_status=$?
ac1cb8d3
VS
23191 grep -v '^ *+' conftest.er1 >conftest.err
23192 rm -f conftest.er1
23193 cat conftest.err >&5
a848cd7e 23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23195 (exit $ac_status); } && {
23196 test -z "$ac_c_werror_flag" ||
23197 test ! -s conftest.err
23198 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23199 ac_lo=0 ac_mid=0
23200 while :; do
23201 cat >conftest.$ac_ext <<_ACEOF
23202/* confdefs.h. */
23203_ACEOF
23204cat confdefs.h >>conftest.$ac_ext
23205cat >>conftest.$ac_ext <<_ACEOF
23206/* end confdefs.h. */
23207$ac_includes_default
47964710 23208 typedef long ac__type_sizeof_;
a848cd7e
SC
23209int
23210main ()
23211{
47964710 23212static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
23213test_array [0] = 0
23214
23215 ;
23216 return 0;
23217}
23218_ACEOF
23219rm -f conftest.$ac_objext
47964710
VS
23220if { (ac_try="$ac_compile"
23221case "(($ac_try" in
23222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223 *) ac_try_echo=$ac_try;;
23224esac
23225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23227 ac_status=$?
ac1cb8d3
VS
23228 grep -v '^ *+' conftest.er1 >conftest.err
23229 rm -f conftest.er1
23230 cat conftest.err >&5
a848cd7e 23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23232 (exit $ac_status); } && {
23233 test -z "$ac_c_werror_flag" ||
23234 test ! -s conftest.err
23235 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23236 ac_hi=$ac_mid; break
23237else
23238 echo "$as_me: failed program was:" >&5
23239sed 's/^/| /' conftest.$ac_ext >&5
23240
47964710
VS
23241 ac_lo=`expr $ac_mid + 1`
23242 if test $ac_lo -le $ac_mid; then
23243 ac_lo= ac_hi=
23244 break
23245 fi
23246 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 23247fi
47964710
VS
23248
23249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23250 done
23251else
23252 echo "$as_me: failed program was:" >&5
23253sed 's/^/| /' conftest.$ac_ext >&5
23254
47964710 23255 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23256/* confdefs.h. */
23257_ACEOF
23258cat confdefs.h >>conftest.$ac_ext
23259cat >>conftest.$ac_ext <<_ACEOF
23260/* end confdefs.h. */
23261$ac_includes_default
47964710 23262 typedef long ac__type_sizeof_;
a848cd7e
SC
23263int
23264main ()
23265{
47964710 23266static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
23267test_array [0] = 0
23268
23269 ;
23270 return 0;
23271}
23272_ACEOF
23273rm -f conftest.$ac_objext
47964710
VS
23274if { (ac_try="$ac_compile"
23275case "(($ac_try" in
23276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23277 *) ac_try_echo=$ac_try;;
23278esac
23279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23280 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23281 ac_status=$?
ac1cb8d3
VS
23282 grep -v '^ *+' conftest.er1 >conftest.err
23283 rm -f conftest.er1
23284 cat conftest.err >&5
a848cd7e 23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23286 (exit $ac_status); } && {
23287 test -z "$ac_c_werror_flag" ||
23288 test ! -s conftest.err
23289 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23290 ac_hi=-1 ac_mid=-1
23291 while :; do
23292 cat >conftest.$ac_ext <<_ACEOF
23293/* confdefs.h. */
23294_ACEOF
23295cat confdefs.h >>conftest.$ac_ext
23296cat >>conftest.$ac_ext <<_ACEOF
23297/* end confdefs.h. */
23298$ac_includes_default
47964710 23299 typedef long ac__type_sizeof_;
a848cd7e
SC
23300int
23301main ()
23302{
47964710 23303static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
23304test_array [0] = 0
23305
23306 ;
23307 return 0;
23308}
23309_ACEOF
23310rm -f conftest.$ac_objext
47964710
VS
23311if { (ac_try="$ac_compile"
23312case "(($ac_try" in
23313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23314 *) ac_try_echo=$ac_try;;
23315esac
23316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23317 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23318 ac_status=$?
ac1cb8d3
VS
23319 grep -v '^ *+' conftest.er1 >conftest.err
23320 rm -f conftest.er1
23321 cat conftest.err >&5
a848cd7e 23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23323 (exit $ac_status); } && {
23324 test -z "$ac_c_werror_flag" ||
23325 test ! -s conftest.err
23326 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23327 ac_lo=$ac_mid; break
23328else
23329 echo "$as_me: failed program was:" >&5
23330sed 's/^/| /' conftest.$ac_ext >&5
23331
47964710
VS
23332 ac_hi=`expr '(' $ac_mid ')' - 1`
23333 if test $ac_mid -le $ac_hi; then
23334 ac_lo= ac_hi=
23335 break
23336 fi
23337 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 23338fi
47964710
VS
23339
23340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23341 done
23342else
23343 echo "$as_me: failed program was:" >&5
23344sed 's/^/| /' conftest.$ac_ext >&5
23345
47964710 23346 ac_lo= ac_hi=
a848cd7e 23347fi
47964710
VS
23348
23349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23350fi
47964710
VS
23351
23352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23353# Binary search between lo and hi bounds.
23354while test "x$ac_lo" != "x$ac_hi"; do
23355 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23356 cat >conftest.$ac_ext <<_ACEOF
23357/* confdefs.h. */
23358_ACEOF
23359cat confdefs.h >>conftest.$ac_ext
23360cat >>conftest.$ac_ext <<_ACEOF
23361/* end confdefs.h. */
23362$ac_includes_default
47964710 23363 typedef long ac__type_sizeof_;
a848cd7e
SC
23364int
23365main ()
23366{
47964710 23367static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
23368test_array [0] = 0
23369
23370 ;
23371 return 0;
23372}
23373_ACEOF
23374rm -f conftest.$ac_objext
47964710
VS
23375if { (ac_try="$ac_compile"
23376case "(($ac_try" in
23377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378 *) ac_try_echo=$ac_try;;
23379esac
23380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23381 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23382 ac_status=$?
ac1cb8d3
VS
23383 grep -v '^ *+' conftest.er1 >conftest.err
23384 rm -f conftest.er1
23385 cat conftest.err >&5
a848cd7e 23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23387 (exit $ac_status); } && {
23388 test -z "$ac_c_werror_flag" ||
23389 test ! -s conftest.err
23390 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23391 ac_hi=$ac_mid
23392else
23393 echo "$as_me: failed program was:" >&5
23394sed 's/^/| /' conftest.$ac_ext >&5
23395
47964710 23396 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 23397fi
47964710
VS
23398
23399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23400done
23401case $ac_lo in
23402?*) ac_cv_sizeof_long=$ac_lo;;
47964710
VS
23403'') if test "$ac_cv_type_long" = yes; then
23404 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
a848cd7e 23405See \`config.log' for more details." >&5
47964710 23406echo "$as_me: error: cannot compute sizeof (long)
a848cd7e 23407See \`config.log' for more details." >&2;}
47964710
VS
23408 { (exit 77); exit 77; }; }
23409 else
23410 ac_cv_sizeof_long=0
23411 fi ;;
a848cd7e 23412esac
a848cd7e
SC
23413else
23414 cat >conftest.$ac_ext <<_ACEOF
23415/* confdefs.h. */
23416_ACEOF
23417cat confdefs.h >>conftest.$ac_ext
23418cat >>conftest.$ac_ext <<_ACEOF
23419/* end confdefs.h. */
23420$ac_includes_default
47964710
VS
23421 typedef long ac__type_sizeof_;
23422static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23423static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
23424#include <stdio.h>
23425#include <stdlib.h>
23426int
23427main ()
23428{
23429
23430 FILE *f = fopen ("conftest.val", "w");
23431 if (! f)
47964710
VS
23432 return 1;
23433 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 23434 {
47964710
VS
23435 long int i = longval ();
23436 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23437 return 1;
a848cd7e
SC
23438 fprintf (f, "%ld\n", i);
23439 }
23440 else
23441 {
47964710
VS
23442 unsigned long int i = ulongval ();
23443 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23444 return 1;
a848cd7e
SC
23445 fprintf (f, "%lu\n", i);
23446 }
47964710 23447 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
23448
23449 ;
23450 return 0;
23451}
23452_ACEOF
23453rm -f conftest$ac_exeext
47964710
VS
23454if { (ac_try="$ac_link"
23455case "(($ac_try" in
23456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457 *) ac_try_echo=$ac_try;;
23458esac
23459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23460 (eval "$ac_link") 2>&5
a848cd7e
SC
23461 ac_status=$?
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
23464 { (case "(($ac_try" in
23465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23466 *) ac_try_echo=$ac_try;;
23467esac
23468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23469 (eval "$ac_try") 2>&5
a848cd7e
SC
23470 ac_status=$?
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); }; }; then
23473 ac_cv_sizeof_long=`cat conftest.val`
23474else
23475 echo "$as_me: program exited with status $ac_status" >&5
23476echo "$as_me: failed program was:" >&5
23477sed 's/^/| /' conftest.$ac_ext >&5
23478
23479( exit $ac_status )
47964710
VS
23480if test "$ac_cv_type_long" = yes; then
23481 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
a848cd7e 23482See \`config.log' for more details." >&5
47964710 23483echo "$as_me: error: cannot compute sizeof (long)
a848cd7e 23484See \`config.log' for more details." >&2;}
47964710
VS
23485 { (exit 77); exit 77; }; }
23486 else
23487 ac_cv_sizeof_long=0
23488 fi
a848cd7e 23489fi
47964710 23490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23491fi
23492rm -f conftest.val
bd8a7646 23493fi
47964710
VS
23494{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23495echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
23496
23497
23498
a848cd7e
SC
23499cat >>confdefs.h <<_ACEOF
23500#define SIZEOF_LONG $ac_cv_sizeof_long
23501_ACEOF
23502
23503
47964710
VS
23504{ echo "$as_me:$LINENO: checking for size_t" >&5
23505echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
a848cd7e
SC
23506if test "${ac_cv_type_size_t+set}" = set; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6
23508else
23509 cat >conftest.$ac_ext <<_ACEOF
23510/* confdefs.h. */
23511_ACEOF
23512cat confdefs.h >>conftest.$ac_ext
23513cat >>conftest.$ac_ext <<_ACEOF
23514/* end confdefs.h. */
23515$ac_includes_default
47964710 23516typedef size_t ac__type_new_;
a848cd7e
SC
23517int
23518main ()
23519{
47964710 23520if ((ac__type_new_ *) 0)
a848cd7e 23521 return 0;
47964710 23522if (sizeof (ac__type_new_))
a848cd7e
SC
23523 return 0;
23524 ;
23525 return 0;
23526}
23527_ACEOF
23528rm -f conftest.$ac_objext
47964710
VS
23529if { (ac_try="$ac_compile"
23530case "(($ac_try" in
23531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532 *) ac_try_echo=$ac_try;;
23533esac
23534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23536 ac_status=$?
ac1cb8d3
VS
23537 grep -v '^ *+' conftest.er1 >conftest.err
23538 rm -f conftest.er1
23539 cat conftest.err >&5
a848cd7e 23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23541 (exit $ac_status); } && {
23542 test -z "$ac_c_werror_flag" ||
23543 test ! -s conftest.err
23544 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23545 ac_cv_type_size_t=yes
23546else
23547 echo "$as_me: failed program was:" >&5
23548sed 's/^/| /' conftest.$ac_ext >&5
23549
47964710 23550 ac_cv_type_size_t=no
a848cd7e 23551fi
47964710
VS
23552
23553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23554fi
47964710
VS
23555{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23556echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
a848cd7e 23557
47964710
VS
23558# The cast to long int works around a bug in the HP C Compiler
23559# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23560# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23561# This bug is HP SR number 8606223364.
23562{ echo "$as_me:$LINENO: checking size of size_t" >&5
23563echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
a848cd7e
SC
23564if test "${ac_cv_sizeof_size_t+set}" = set; then
23565 echo $ECHO_N "(cached) $ECHO_C" >&6
23566else
a848cd7e
SC
23567 if test "$cross_compiling" = yes; then
23568 # Depending upon the size, compute the lo and hi bounds.
23569cat >conftest.$ac_ext <<_ACEOF
23570/* confdefs.h. */
23571_ACEOF
23572cat confdefs.h >>conftest.$ac_ext
23573cat >>conftest.$ac_ext <<_ACEOF
23574/* end confdefs.h. */
23575$ac_includes_default
47964710 23576 typedef size_t ac__type_sizeof_;
a848cd7e
SC
23577int
23578main ()
23579{
47964710 23580static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
23581test_array [0] = 0
23582
23583 ;
23584 return 0;
23585}
23586_ACEOF
23587rm -f conftest.$ac_objext
47964710
VS
23588if { (ac_try="$ac_compile"
23589case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23592esac
23593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23595 ac_status=$?
ac1cb8d3
VS
23596 grep -v '^ *+' conftest.er1 >conftest.err
23597 rm -f conftest.er1
23598 cat conftest.err >&5
a848cd7e 23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23600 (exit $ac_status); } && {
23601 test -z "$ac_c_werror_flag" ||
23602 test ! -s conftest.err
23603 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23604 ac_lo=0 ac_mid=0
23605 while :; do
23606 cat >conftest.$ac_ext <<_ACEOF
23607/* confdefs.h. */
23608_ACEOF
23609cat confdefs.h >>conftest.$ac_ext
23610cat >>conftest.$ac_ext <<_ACEOF
23611/* end confdefs.h. */
23612$ac_includes_default
47964710 23613 typedef size_t ac__type_sizeof_;
a848cd7e
SC
23614int
23615main ()
23616{
47964710 23617static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
23618test_array [0] = 0
23619
23620 ;
23621 return 0;
23622}
23623_ACEOF
23624rm -f conftest.$ac_objext
47964710
VS
23625if { (ac_try="$ac_compile"
23626case "(($ac_try" in
23627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628 *) ac_try_echo=$ac_try;;
23629esac
23630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23631 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23632 ac_status=$?
ac1cb8d3
VS
23633 grep -v '^ *+' conftest.er1 >conftest.err
23634 rm -f conftest.er1
23635 cat conftest.err >&5
a848cd7e 23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23637 (exit $ac_status); } && {
23638 test -z "$ac_c_werror_flag" ||
23639 test ! -s conftest.err
23640 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23641 ac_hi=$ac_mid; break
23642else
23643 echo "$as_me: failed program was:" >&5
23644sed 's/^/| /' conftest.$ac_ext >&5
23645
47964710
VS
23646 ac_lo=`expr $ac_mid + 1`
23647 if test $ac_lo -le $ac_mid; then
23648 ac_lo= ac_hi=
23649 break
23650 fi
23651 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 23652fi
47964710
VS
23653
23654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23655 done
23656else
23657 echo "$as_me: failed program was:" >&5
23658sed 's/^/| /' conftest.$ac_ext >&5
23659
47964710 23660 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23661/* confdefs.h. */
23662_ACEOF
23663cat confdefs.h >>conftest.$ac_ext
23664cat >>conftest.$ac_ext <<_ACEOF
23665/* end confdefs.h. */
23666$ac_includes_default
47964710 23667 typedef size_t ac__type_sizeof_;
a848cd7e
SC
23668int
23669main ()
23670{
47964710 23671static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
23672test_array [0] = 0
23673
23674 ;
23675 return 0;
23676}
23677_ACEOF
23678rm -f conftest.$ac_objext
47964710
VS
23679if { (ac_try="$ac_compile"
23680case "(($ac_try" in
23681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682 *) ac_try_echo=$ac_try;;
23683esac
23684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23686 ac_status=$?
ac1cb8d3
VS
23687 grep -v '^ *+' conftest.er1 >conftest.err
23688 rm -f conftest.er1
23689 cat conftest.err >&5
a848cd7e 23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23691 (exit $ac_status); } && {
23692 test -z "$ac_c_werror_flag" ||
23693 test ! -s conftest.err
23694 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23695 ac_hi=-1 ac_mid=-1
23696 while :; do
23697 cat >conftest.$ac_ext <<_ACEOF
23698/* confdefs.h. */
23699_ACEOF
23700cat confdefs.h >>conftest.$ac_ext
23701cat >>conftest.$ac_ext <<_ACEOF
23702/* end confdefs.h. */
23703$ac_includes_default
47964710 23704 typedef size_t ac__type_sizeof_;
a848cd7e
SC
23705int
23706main ()
23707{
47964710 23708static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
23709test_array [0] = 0
23710
23711 ;
23712 return 0;
23713}
23714_ACEOF
23715rm -f conftest.$ac_objext
47964710
VS
23716if { (ac_try="$ac_compile"
23717case "(($ac_try" in
23718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23719 *) ac_try_echo=$ac_try;;
23720esac
23721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23722 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23723 ac_status=$?
ac1cb8d3
VS
23724 grep -v '^ *+' conftest.er1 >conftest.err
23725 rm -f conftest.er1
23726 cat conftest.err >&5
a848cd7e 23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23728 (exit $ac_status); } && {
23729 test -z "$ac_c_werror_flag" ||
23730 test ! -s conftest.err
23731 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23732 ac_lo=$ac_mid; break
23733else
23734 echo "$as_me: failed program was:" >&5
23735sed 's/^/| /' conftest.$ac_ext >&5
23736
47964710
VS
23737 ac_hi=`expr '(' $ac_mid ')' - 1`
23738 if test $ac_mid -le $ac_hi; then
23739 ac_lo= ac_hi=
23740 break
23741 fi
23742 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 23743fi
47964710
VS
23744
23745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23746 done
23747else
23748 echo "$as_me: failed program was:" >&5
23749sed 's/^/| /' conftest.$ac_ext >&5
23750
47964710 23751 ac_lo= ac_hi=
a848cd7e 23752fi
47964710
VS
23753
23754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23755fi
47964710
VS
23756
23757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23758# Binary search between lo and hi bounds.
23759while test "x$ac_lo" != "x$ac_hi"; do
23760 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23761 cat >conftest.$ac_ext <<_ACEOF
23762/* confdefs.h. */
23763_ACEOF
23764cat confdefs.h >>conftest.$ac_ext
23765cat >>conftest.$ac_ext <<_ACEOF
23766/* end confdefs.h. */
23767$ac_includes_default
47964710 23768 typedef size_t ac__type_sizeof_;
a848cd7e
SC
23769int
23770main ()
23771{
47964710 23772static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
23773test_array [0] = 0
23774
23775 ;
23776 return 0;
23777}
23778_ACEOF
23779rm -f conftest.$ac_objext
47964710
VS
23780if { (ac_try="$ac_compile"
23781case "(($ac_try" in
23782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23783 *) ac_try_echo=$ac_try;;
23784esac
23785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23786 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23787 ac_status=$?
ac1cb8d3
VS
23788 grep -v '^ *+' conftest.er1 >conftest.err
23789 rm -f conftest.er1
23790 cat conftest.err >&5
a848cd7e 23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23792 (exit $ac_status); } && {
23793 test -z "$ac_c_werror_flag" ||
23794 test ! -s conftest.err
23795 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23796 ac_hi=$ac_mid
23797else
23798 echo "$as_me: failed program was:" >&5
23799sed 's/^/| /' conftest.$ac_ext >&5
23800
47964710 23801 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 23802fi
47964710
VS
23803
23804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23805done
23806case $ac_lo in
23807?*) ac_cv_sizeof_size_t=$ac_lo;;
47964710
VS
23808'') if test "$ac_cv_type_size_t" = yes; then
23809 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
a848cd7e 23810See \`config.log' for more details." >&5
47964710 23811echo "$as_me: error: cannot compute sizeof (size_t)
a848cd7e 23812See \`config.log' for more details." >&2;}
47964710
VS
23813 { (exit 77); exit 77; }; }
23814 else
23815 ac_cv_sizeof_size_t=0
23816 fi ;;
a848cd7e 23817esac
a848cd7e
SC
23818else
23819 cat >conftest.$ac_ext <<_ACEOF
23820/* confdefs.h. */
23821_ACEOF
23822cat confdefs.h >>conftest.$ac_ext
23823cat >>conftest.$ac_ext <<_ACEOF
23824/* end confdefs.h. */
23825$ac_includes_default
47964710
VS
23826 typedef size_t ac__type_sizeof_;
23827static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23828static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
23829#include <stdio.h>
23830#include <stdlib.h>
23831int
23832main ()
23833{
23834
23835 FILE *f = fopen ("conftest.val", "w");
23836 if (! f)
47964710
VS
23837 return 1;
23838 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 23839 {
47964710
VS
23840 long int i = longval ();
23841 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23842 return 1;
a848cd7e
SC
23843 fprintf (f, "%ld\n", i);
23844 }
23845 else
23846 {
47964710
VS
23847 unsigned long int i = ulongval ();
23848 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23849 return 1;
a848cd7e
SC
23850 fprintf (f, "%lu\n", i);
23851 }
47964710 23852 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
23853
23854 ;
23855 return 0;
23856}
23857_ACEOF
23858rm -f conftest$ac_exeext
47964710
VS
23859if { (ac_try="$ac_link"
23860case "(($ac_try" in
23861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23862 *) ac_try_echo=$ac_try;;
23863esac
23864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23865 (eval "$ac_link") 2>&5
a848cd7e
SC
23866 ac_status=$?
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
23869 { (case "(($ac_try" in
23870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871 *) ac_try_echo=$ac_try;;
23872esac
23873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23874 (eval "$ac_try") 2>&5
a848cd7e
SC
23875 ac_status=$?
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); }; }; then
23878 ac_cv_sizeof_size_t=`cat conftest.val`
23879else
23880 echo "$as_me: program exited with status $ac_status" >&5
23881echo "$as_me: failed program was:" >&5
23882sed 's/^/| /' conftest.$ac_ext >&5
23883
23884( exit $ac_status )
47964710
VS
23885if test "$ac_cv_type_size_t" = yes; then
23886 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
a848cd7e 23887See \`config.log' for more details." >&5
47964710 23888echo "$as_me: error: cannot compute sizeof (size_t)
a848cd7e 23889See \`config.log' for more details." >&2;}
47964710
VS
23890 { (exit 77); exit 77; }; }
23891 else
23892 ac_cv_sizeof_size_t=0
23893 fi
a848cd7e 23894fi
47964710 23895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23896fi
23897rm -f conftest.val
4db03d26 23898fi
47964710
VS
23899{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23900echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
23901
23902
23903
a848cd7e
SC
23904cat >>confdefs.h <<_ACEOF
23905#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23906_ACEOF
23907
23908
23909
23910case "${host}" in
23911 arm-*-linux* )
47964710
VS
23912 { echo "$as_me:$LINENO: checking for long long" >&5
23913echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
a848cd7e
SC
23914if test "${ac_cv_type_long_long+set}" = set; then
23915 echo $ECHO_N "(cached) $ECHO_C" >&6
23916else
23917 cat >conftest.$ac_ext <<_ACEOF
23918/* confdefs.h. */
23919_ACEOF
23920cat confdefs.h >>conftest.$ac_ext
23921cat >>conftest.$ac_ext <<_ACEOF
23922/* end confdefs.h. */
23923$ac_includes_default
47964710 23924typedef long long ac__type_new_;
a848cd7e
SC
23925int
23926main ()
23927{
47964710 23928if ((ac__type_new_ *) 0)
a848cd7e 23929 return 0;
47964710 23930if (sizeof (ac__type_new_))
a848cd7e
SC
23931 return 0;
23932 ;
23933 return 0;
23934}
23935_ACEOF
23936rm -f conftest.$ac_objext
47964710
VS
23937if { (ac_try="$ac_compile"
23938case "(($ac_try" in
23939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940 *) ac_try_echo=$ac_try;;
23941esac
23942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23943 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23944 ac_status=$?
ac1cb8d3
VS
23945 grep -v '^ *+' conftest.er1 >conftest.err
23946 rm -f conftest.er1
23947 cat conftest.err >&5
a848cd7e 23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23949 (exit $ac_status); } && {
23950 test -z "$ac_c_werror_flag" ||
23951 test ! -s conftest.err
23952 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23953 ac_cv_type_long_long=yes
23954else
23955 echo "$as_me: failed program was:" >&5
23956sed 's/^/| /' conftest.$ac_ext >&5
23957
47964710 23958 ac_cv_type_long_long=no
a848cd7e 23959fi
47964710
VS
23960
23961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23962fi
47964710
VS
23963{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23964echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
a848cd7e 23965
47964710
VS
23966# The cast to long int works around a bug in the HP C Compiler
23967# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23968# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23969# This bug is HP SR number 8606223364.
23970{ echo "$as_me:$LINENO: checking size of long long" >&5
23971echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
a848cd7e
SC
23972if test "${ac_cv_sizeof_long_long+set}" = set; then
23973 echo $ECHO_N "(cached) $ECHO_C" >&6
23974else
a848cd7e
SC
23975 if test "$cross_compiling" = yes; then
23976 # Depending upon the size, compute the lo and hi bounds.
23977cat >conftest.$ac_ext <<_ACEOF
23978/* confdefs.h. */
23979_ACEOF
23980cat confdefs.h >>conftest.$ac_ext
23981cat >>conftest.$ac_ext <<_ACEOF
23982/* end confdefs.h. */
23983$ac_includes_default
47964710 23984 typedef long long ac__type_sizeof_;
a848cd7e
SC
23985int
23986main ()
23987{
47964710 23988static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
23989test_array [0] = 0
23990
23991 ;
23992 return 0;
23993}
23994_ACEOF
23995rm -f conftest.$ac_objext
47964710
VS
23996if { (ac_try="$ac_compile"
23997case "(($ac_try" in
23998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23999 *) ac_try_echo=$ac_try;;
24000esac
24001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24002 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24003 ac_status=$?
ac1cb8d3
VS
24004 grep -v '^ *+' conftest.er1 >conftest.err
24005 rm -f conftest.er1
24006 cat conftest.err >&5
a848cd7e 24007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24008 (exit $ac_status); } && {
24009 test -z "$ac_c_werror_flag" ||
24010 test ! -s conftest.err
24011 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24012 ac_lo=0 ac_mid=0
24013 while :; do
24014 cat >conftest.$ac_ext <<_ACEOF
24015/* confdefs.h. */
24016_ACEOF
24017cat confdefs.h >>conftest.$ac_ext
24018cat >>conftest.$ac_ext <<_ACEOF
24019/* end confdefs.h. */
24020$ac_includes_default
47964710 24021 typedef long long ac__type_sizeof_;
a848cd7e
SC
24022int
24023main ()
24024{
47964710 24025static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
24026test_array [0] = 0
24027
24028 ;
24029 return 0;
24030}
24031_ACEOF
24032rm -f conftest.$ac_objext
47964710
VS
24033if { (ac_try="$ac_compile"
24034case "(($ac_try" in
24035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24036 *) ac_try_echo=$ac_try;;
24037esac
24038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24039 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24040 ac_status=$?
ac1cb8d3
VS
24041 grep -v '^ *+' conftest.er1 >conftest.err
24042 rm -f conftest.er1
24043 cat conftest.err >&5
a848cd7e 24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24045 (exit $ac_status); } && {
24046 test -z "$ac_c_werror_flag" ||
24047 test ! -s conftest.err
24048 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24049 ac_hi=$ac_mid; break
24050else
24051 echo "$as_me: failed program was:" >&5
24052sed 's/^/| /' conftest.$ac_ext >&5
24053
47964710
VS
24054 ac_lo=`expr $ac_mid + 1`
24055 if test $ac_lo -le $ac_mid; then
24056 ac_lo= ac_hi=
24057 break
24058 fi
24059 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 24060fi
47964710
VS
24061
24062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24063 done
24064else
24065 echo "$as_me: failed program was:" >&5
24066sed 's/^/| /' conftest.$ac_ext >&5
24067
47964710 24068 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24069/* confdefs.h. */
24070_ACEOF
24071cat confdefs.h >>conftest.$ac_ext
24072cat >>conftest.$ac_ext <<_ACEOF
24073/* end confdefs.h. */
24074$ac_includes_default
47964710 24075 typedef long long ac__type_sizeof_;
a848cd7e
SC
24076int
24077main ()
24078{
47964710 24079static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
24080test_array [0] = 0
24081
24082 ;
24083 return 0;
24084}
24085_ACEOF
24086rm -f conftest.$ac_objext
47964710
VS
24087if { (ac_try="$ac_compile"
24088case "(($ac_try" in
24089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24090 *) ac_try_echo=$ac_try;;
24091esac
24092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24093 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24094 ac_status=$?
ac1cb8d3
VS
24095 grep -v '^ *+' conftest.er1 >conftest.err
24096 rm -f conftest.er1
24097 cat conftest.err >&5
a848cd7e 24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24099 (exit $ac_status); } && {
24100 test -z "$ac_c_werror_flag" ||
24101 test ! -s conftest.err
24102 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24103 ac_hi=-1 ac_mid=-1
24104 while :; do
24105 cat >conftest.$ac_ext <<_ACEOF
24106/* confdefs.h. */
24107_ACEOF
24108cat confdefs.h >>conftest.$ac_ext
24109cat >>conftest.$ac_ext <<_ACEOF
24110/* end confdefs.h. */
24111$ac_includes_default
47964710 24112 typedef long long ac__type_sizeof_;
a848cd7e
SC
24113int
24114main ()
24115{
47964710 24116static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
24117test_array [0] = 0
24118
24119 ;
24120 return 0;
24121}
24122_ACEOF
24123rm -f conftest.$ac_objext
47964710
VS
24124if { (ac_try="$ac_compile"
24125case "(($ac_try" in
24126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24127 *) ac_try_echo=$ac_try;;
24128esac
24129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24130 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24131 ac_status=$?
ac1cb8d3
VS
24132 grep -v '^ *+' conftest.er1 >conftest.err
24133 rm -f conftest.er1
24134 cat conftest.err >&5
a848cd7e 24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24136 (exit $ac_status); } && {
24137 test -z "$ac_c_werror_flag" ||
24138 test ! -s conftest.err
24139 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24140 ac_lo=$ac_mid; break
24141else
24142 echo "$as_me: failed program was:" >&5
24143sed 's/^/| /' conftest.$ac_ext >&5
24144
47964710
VS
24145 ac_hi=`expr '(' $ac_mid ')' - 1`
24146 if test $ac_mid -le $ac_hi; then
24147 ac_lo= ac_hi=
24148 break
24149 fi
24150 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 24151fi
47964710
VS
24152
24153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24154 done
24155else
24156 echo "$as_me: failed program was:" >&5
24157sed 's/^/| /' conftest.$ac_ext >&5
24158
47964710 24159 ac_lo= ac_hi=
a848cd7e 24160fi
47964710
VS
24161
24162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 24163fi
47964710
VS
24164
24165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24166# Binary search between lo and hi bounds.
24167while test "x$ac_lo" != "x$ac_hi"; do
24168 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24169 cat >conftest.$ac_ext <<_ACEOF
24170/* confdefs.h. */
24171_ACEOF
24172cat confdefs.h >>conftest.$ac_ext
24173cat >>conftest.$ac_ext <<_ACEOF
24174/* end confdefs.h. */
24175$ac_includes_default
47964710 24176 typedef long long ac__type_sizeof_;
a848cd7e
SC
24177int
24178main ()
24179{
47964710 24180static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
24181test_array [0] = 0
24182
24183 ;
24184 return 0;
24185}
24186_ACEOF
24187rm -f conftest.$ac_objext
47964710
VS
24188if { (ac_try="$ac_compile"
24189case "(($ac_try" in
24190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24192esac
24193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24195 ac_status=$?
ac1cb8d3
VS
24196 grep -v '^ *+' conftest.er1 >conftest.err
24197 rm -f conftest.er1
24198 cat conftest.err >&5
a848cd7e 24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24200 (exit $ac_status); } && {
24201 test -z "$ac_c_werror_flag" ||
24202 test ! -s conftest.err
24203 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24204 ac_hi=$ac_mid
24205else
24206 echo "$as_me: failed program was:" >&5
24207sed 's/^/| /' conftest.$ac_ext >&5
24208
47964710 24209 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 24210fi
47964710
VS
24211
24212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24213done
24214case $ac_lo in
24215?*) ac_cv_sizeof_long_long=$ac_lo;;
47964710
VS
24216'') if test "$ac_cv_type_long_long" = yes; then
24217 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
a848cd7e 24218See \`config.log' for more details." >&5
47964710 24219echo "$as_me: error: cannot compute sizeof (long long)
a848cd7e 24220See \`config.log' for more details." >&2;}
47964710
VS
24221 { (exit 77); exit 77; }; }
24222 else
24223 ac_cv_sizeof_long_long=0
24224 fi ;;
a848cd7e 24225esac
a848cd7e
SC
24226else
24227 cat >conftest.$ac_ext <<_ACEOF
24228/* confdefs.h. */
24229_ACEOF
24230cat confdefs.h >>conftest.$ac_ext
24231cat >>conftest.$ac_ext <<_ACEOF
24232/* end confdefs.h. */
24233$ac_includes_default
47964710
VS
24234 typedef long long ac__type_sizeof_;
24235static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24236static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
24237#include <stdio.h>
24238#include <stdlib.h>
24239int
24240main ()
24241{
24242
24243 FILE *f = fopen ("conftest.val", "w");
24244 if (! f)
47964710
VS
24245 return 1;
24246 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 24247 {
47964710
VS
24248 long int i = longval ();
24249 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24250 return 1;
a848cd7e
SC
24251 fprintf (f, "%ld\n", i);
24252 }
24253 else
24254 {
47964710
VS
24255 unsigned long int i = ulongval ();
24256 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24257 return 1;
a848cd7e
SC
24258 fprintf (f, "%lu\n", i);
24259 }
47964710 24260 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
24261
24262 ;
24263 return 0;
24264}
24265_ACEOF
24266rm -f conftest$ac_exeext
47964710
VS
24267if { (ac_try="$ac_link"
24268case "(($ac_try" in
24269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24270 *) ac_try_echo=$ac_try;;
24271esac
24272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24273 (eval "$ac_link") 2>&5
a848cd7e
SC
24274 ac_status=$?
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
24277 { (case "(($ac_try" in
24278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24279 *) ac_try_echo=$ac_try;;
24280esac
24281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24282 (eval "$ac_try") 2>&5
a848cd7e
SC
24283 ac_status=$?
24284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285 (exit $ac_status); }; }; then
24286 ac_cv_sizeof_long_long=`cat conftest.val`
24287else
24288 echo "$as_me: program exited with status $ac_status" >&5
24289echo "$as_me: failed program was:" >&5
24290sed 's/^/| /' conftest.$ac_ext >&5
24291
24292( exit $ac_status )
47964710
VS
24293if test "$ac_cv_type_long_long" = yes; then
24294 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
a848cd7e 24295See \`config.log' for more details." >&5
47964710 24296echo "$as_me: error: cannot compute sizeof (long long)
a848cd7e 24297See \`config.log' for more details." >&2;}
47964710
VS
24298 { (exit 77); exit 77; }; }
24299 else
24300 ac_cv_sizeof_long_long=0
24301 fi
a848cd7e 24302fi
47964710 24303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24304fi
24305rm -f conftest.val
bd8a7646 24306fi
47964710
VS
24307{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24308echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24309
24310
24311
a848cd7e
SC
24312cat >>confdefs.h <<_ACEOF
24313#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24314_ACEOF
24315
24316
24317 ;;
24318 *-hp-hpux* )
47964710
VS
24319 { echo "$as_me:$LINENO: checking for long long" >&5
24320echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
a848cd7e
SC
24321if test "${ac_cv_type_long_long+set}" = set; then
24322 echo $ECHO_N "(cached) $ECHO_C" >&6
24323else
24324 cat >conftest.$ac_ext <<_ACEOF
24325/* confdefs.h. */
24326_ACEOF
24327cat confdefs.h >>conftest.$ac_ext
24328cat >>conftest.$ac_ext <<_ACEOF
24329/* end confdefs.h. */
24330$ac_includes_default
47964710 24331typedef long long ac__type_new_;
a848cd7e
SC
24332int
24333main ()
24334{
47964710 24335if ((ac__type_new_ *) 0)
a848cd7e 24336 return 0;
47964710 24337if (sizeof (ac__type_new_))
a848cd7e
SC
24338 return 0;
24339 ;
24340 return 0;
24341}
24342_ACEOF
24343rm -f conftest.$ac_objext
47964710
VS
24344if { (ac_try="$ac_compile"
24345case "(($ac_try" in
24346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24347 *) ac_try_echo=$ac_try;;
24348esac
24349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24350 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24351 ac_status=$?
ac1cb8d3
VS
24352 grep -v '^ *+' conftest.er1 >conftest.err
24353 rm -f conftest.er1
24354 cat conftest.err >&5
a848cd7e 24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24356 (exit $ac_status); } && {
24357 test -z "$ac_c_werror_flag" ||
24358 test ! -s conftest.err
24359 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24360 ac_cv_type_long_long=yes
24361else
24362 echo "$as_me: failed program was:" >&5
24363sed 's/^/| /' conftest.$ac_ext >&5
24364
47964710 24365 ac_cv_type_long_long=no
a848cd7e 24366fi
47964710
VS
24367
24368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 24369fi
47964710
VS
24370{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24371echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
a848cd7e 24372
47964710
VS
24373# The cast to long int works around a bug in the HP C Compiler
24374# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24375# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24376# This bug is HP SR number 8606223364.
24377{ echo "$as_me:$LINENO: checking size of long long" >&5
24378echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
a848cd7e
SC
24379if test "${ac_cv_sizeof_long_long+set}" = set; then
24380 echo $ECHO_N "(cached) $ECHO_C" >&6
24381else
a848cd7e
SC
24382 if test "$cross_compiling" = yes; then
24383 # Depending upon the size, compute the lo and hi bounds.
24384cat >conftest.$ac_ext <<_ACEOF
24385/* confdefs.h. */
24386_ACEOF
24387cat confdefs.h >>conftest.$ac_ext
24388cat >>conftest.$ac_ext <<_ACEOF
24389/* end confdefs.h. */
24390$ac_includes_default
47964710 24391 typedef long long ac__type_sizeof_;
a848cd7e
SC
24392int
24393main ()
24394{
47964710 24395static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
24396test_array [0] = 0
24397
24398 ;
24399 return 0;
24400}
24401_ACEOF
24402rm -f conftest.$ac_objext
47964710
VS
24403if { (ac_try="$ac_compile"
24404case "(($ac_try" in
24405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24406 *) ac_try_echo=$ac_try;;
24407esac
24408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24409 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24410 ac_status=$?
ac1cb8d3
VS
24411 grep -v '^ *+' conftest.er1 >conftest.err
24412 rm -f conftest.er1
24413 cat conftest.err >&5
a848cd7e 24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24415 (exit $ac_status); } && {
24416 test -z "$ac_c_werror_flag" ||
24417 test ! -s conftest.err
24418 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24419 ac_lo=0 ac_mid=0
24420 while :; do
24421 cat >conftest.$ac_ext <<_ACEOF
24422/* confdefs.h. */
24423_ACEOF
24424cat confdefs.h >>conftest.$ac_ext
24425cat >>conftest.$ac_ext <<_ACEOF
24426/* end confdefs.h. */
24427$ac_includes_default
47964710 24428 typedef long long ac__type_sizeof_;
a848cd7e
SC
24429int
24430main ()
24431{
47964710 24432static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
24433test_array [0] = 0
24434
24435 ;
24436 return 0;
24437}
24438_ACEOF
24439rm -f conftest.$ac_objext
47964710
VS
24440if { (ac_try="$ac_compile"
24441case "(($ac_try" in
24442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443 *) ac_try_echo=$ac_try;;
24444esac
24445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24447 ac_status=$?
ac1cb8d3
VS
24448 grep -v '^ *+' conftest.er1 >conftest.err
24449 rm -f conftest.er1
24450 cat conftest.err >&5
a848cd7e 24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24452 (exit $ac_status); } && {
24453 test -z "$ac_c_werror_flag" ||
24454 test ! -s conftest.err
24455 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24456 ac_hi=$ac_mid; break
24457else
24458 echo "$as_me: failed program was:" >&5
24459sed 's/^/| /' conftest.$ac_ext >&5
24460
47964710
VS
24461 ac_lo=`expr $ac_mid + 1`
24462 if test $ac_lo -le $ac_mid; then
24463 ac_lo= ac_hi=
24464 break
24465 fi
24466 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 24467fi
47964710
VS
24468
24469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24470 done
24471else
24472 echo "$as_me: failed program was:" >&5
24473sed 's/^/| /' conftest.$ac_ext >&5
24474
47964710 24475 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24476/* confdefs.h. */
24477_ACEOF
24478cat confdefs.h >>conftest.$ac_ext
24479cat >>conftest.$ac_ext <<_ACEOF
24480/* end confdefs.h. */
24481$ac_includes_default
47964710 24482 typedef long long ac__type_sizeof_;
a848cd7e
SC
24483int
24484main ()
24485{
47964710 24486static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
24487test_array [0] = 0
24488
24489 ;
24490 return 0;
24491}
24492_ACEOF
24493rm -f conftest.$ac_objext
47964710
VS
24494if { (ac_try="$ac_compile"
24495case "(($ac_try" in
24496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497 *) ac_try_echo=$ac_try;;
24498esac
24499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24501 ac_status=$?
ac1cb8d3
VS
24502 grep -v '^ *+' conftest.er1 >conftest.err
24503 rm -f conftest.er1
24504 cat conftest.err >&5
a848cd7e 24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24506 (exit $ac_status); } && {
24507 test -z "$ac_c_werror_flag" ||
24508 test ! -s conftest.err
24509 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24510 ac_hi=-1 ac_mid=-1
24511 while :; do
24512 cat >conftest.$ac_ext <<_ACEOF
24513/* confdefs.h. */
24514_ACEOF
24515cat confdefs.h >>conftest.$ac_ext
24516cat >>conftest.$ac_ext <<_ACEOF
24517/* end confdefs.h. */
24518$ac_includes_default
47964710 24519 typedef long long ac__type_sizeof_;
a848cd7e
SC
24520int
24521main ()
24522{
47964710 24523static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
24524test_array [0] = 0
24525
24526 ;
24527 return 0;
24528}
24529_ACEOF
24530rm -f conftest.$ac_objext
47964710
VS
24531if { (ac_try="$ac_compile"
24532case "(($ac_try" in
24533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534 *) ac_try_echo=$ac_try;;
24535esac
24536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24538 ac_status=$?
ac1cb8d3
VS
24539 grep -v '^ *+' conftest.er1 >conftest.err
24540 rm -f conftest.er1
24541 cat conftest.err >&5
a848cd7e 24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24543 (exit $ac_status); } && {
24544 test -z "$ac_c_werror_flag" ||
24545 test ! -s conftest.err
24546 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24547 ac_lo=$ac_mid; break
24548else
24549 echo "$as_me: failed program was:" >&5
24550sed 's/^/| /' conftest.$ac_ext >&5
24551
47964710
VS
24552 ac_hi=`expr '(' $ac_mid ')' - 1`
24553 if test $ac_mid -le $ac_hi; then
24554 ac_lo= ac_hi=
24555 break
24556 fi
24557 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 24558fi
47964710
VS
24559
24560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24561 done
24562else
24563 echo "$as_me: failed program was:" >&5
24564sed 's/^/| /' conftest.$ac_ext >&5
24565
47964710 24566 ac_lo= ac_hi=
a848cd7e 24567fi
47964710
VS
24568
24569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 24570fi
47964710
VS
24571
24572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24573# Binary search between lo and hi bounds.
24574while test "x$ac_lo" != "x$ac_hi"; do
24575 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24576 cat >conftest.$ac_ext <<_ACEOF
24577/* confdefs.h. */
24578_ACEOF
24579cat confdefs.h >>conftest.$ac_ext
24580cat >>conftest.$ac_ext <<_ACEOF
24581/* end confdefs.h. */
24582$ac_includes_default
47964710 24583 typedef long long ac__type_sizeof_;
a848cd7e
SC
24584int
24585main ()
24586{
47964710 24587static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
24588test_array [0] = 0
24589
24590 ;
24591 return 0;
24592}
24593_ACEOF
24594rm -f conftest.$ac_objext
47964710
VS
24595if { (ac_try="$ac_compile"
24596case "(($ac_try" in
24597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598 *) ac_try_echo=$ac_try;;
24599esac
24600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24601 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24602 ac_status=$?
ac1cb8d3
VS
24603 grep -v '^ *+' conftest.er1 >conftest.err
24604 rm -f conftest.er1
24605 cat conftest.err >&5
a848cd7e 24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24607 (exit $ac_status); } && {
24608 test -z "$ac_c_werror_flag" ||
24609 test ! -s conftest.err
24610 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24611 ac_hi=$ac_mid
24612else
24613 echo "$as_me: failed program was:" >&5
24614sed 's/^/| /' conftest.$ac_ext >&5
24615
47964710 24616 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 24617fi
47964710
VS
24618
24619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24620done
24621case $ac_lo in
24622?*) ac_cv_sizeof_long_long=$ac_lo;;
47964710
VS
24623'') if test "$ac_cv_type_long_long" = yes; then
24624 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
a848cd7e 24625See \`config.log' for more details." >&5
47964710 24626echo "$as_me: error: cannot compute sizeof (long long)
a848cd7e 24627See \`config.log' for more details." >&2;}
47964710
VS
24628 { (exit 77); exit 77; }; }
24629 else
24630 ac_cv_sizeof_long_long=0
24631 fi ;;
a848cd7e 24632esac
a848cd7e
SC
24633else
24634 cat >conftest.$ac_ext <<_ACEOF
24635/* confdefs.h. */
24636_ACEOF
24637cat confdefs.h >>conftest.$ac_ext
24638cat >>conftest.$ac_ext <<_ACEOF
24639/* end confdefs.h. */
24640$ac_includes_default
47964710
VS
24641 typedef long long ac__type_sizeof_;
24642static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24643static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
24644#include <stdio.h>
24645#include <stdlib.h>
24646int
24647main ()
24648{
24649
24650 FILE *f = fopen ("conftest.val", "w");
24651 if (! f)
47964710
VS
24652 return 1;
24653 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 24654 {
47964710
VS
24655 long int i = longval ();
24656 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24657 return 1;
a848cd7e
SC
24658 fprintf (f, "%ld\n", i);
24659 }
24660 else
24661 {
47964710
VS
24662 unsigned long int i = ulongval ();
24663 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24664 return 1;
a848cd7e
SC
24665 fprintf (f, "%lu\n", i);
24666 }
47964710 24667 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
24668
24669 ;
24670 return 0;
24671}
24672_ACEOF
24673rm -f conftest$ac_exeext
47964710
VS
24674if { (ac_try="$ac_link"
24675case "(($ac_try" in
24676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677 *) ac_try_echo=$ac_try;;
24678esac
24679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680 (eval "$ac_link") 2>&5
a848cd7e
SC
24681 ac_status=$?
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
24684 { (case "(($ac_try" in
24685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24686 *) ac_try_echo=$ac_try;;
24687esac
24688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24689 (eval "$ac_try") 2>&5
a848cd7e
SC
24690 ac_status=$?
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); }; }; then
24693 ac_cv_sizeof_long_long=`cat conftest.val`
24694else
24695 echo "$as_me: program exited with status $ac_status" >&5
24696echo "$as_me: failed program was:" >&5
24697sed 's/^/| /' conftest.$ac_ext >&5
24698
24699( exit $ac_status )
47964710
VS
24700if test "$ac_cv_type_long_long" = yes; then
24701 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
a848cd7e 24702See \`config.log' for more details." >&5
47964710 24703echo "$as_me: error: cannot compute sizeof (long long)
a848cd7e 24704See \`config.log' for more details." >&2;}
47964710
VS
24705 { (exit 77); exit 77; }; }
24706 else
24707 ac_cv_sizeof_long_long=0
24708 fi
a848cd7e 24709fi
47964710 24710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24711fi
24712rm -f conftest.val
bd8a7646 24713fi
47964710
VS
24714{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24715echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24716
24717
24718
a848cd7e
SC
24719cat >>confdefs.h <<_ACEOF
24720#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24721_ACEOF
24722
24723
24724 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 24725 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
24726 fi
24727 ;;
24728 * )
47964710
VS
24729 { echo "$as_me:$LINENO: checking for long long" >&5
24730echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
a848cd7e
SC
24731if test "${ac_cv_type_long_long+set}" = set; then
24732 echo $ECHO_N "(cached) $ECHO_C" >&6
24733else
24734 cat >conftest.$ac_ext <<_ACEOF
24735/* confdefs.h. */
24736_ACEOF
24737cat confdefs.h >>conftest.$ac_ext
24738cat >>conftest.$ac_ext <<_ACEOF
24739/* end confdefs.h. */
24740$ac_includes_default
47964710 24741typedef long long ac__type_new_;
a848cd7e
SC
24742int
24743main ()
24744{
47964710 24745if ((ac__type_new_ *) 0)
a848cd7e 24746 return 0;
47964710 24747if (sizeof (ac__type_new_))
a848cd7e
SC
24748 return 0;
24749 ;
24750 return 0;
24751}
24752_ACEOF
24753rm -f conftest.$ac_objext
47964710
VS
24754if { (ac_try="$ac_compile"
24755case "(($ac_try" in
24756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757 *) ac_try_echo=$ac_try;;
24758esac
24759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24760 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24761 ac_status=$?
ac1cb8d3
VS
24762 grep -v '^ *+' conftest.er1 >conftest.err
24763 rm -f conftest.er1
24764 cat conftest.err >&5
a848cd7e 24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24766 (exit $ac_status); } && {
24767 test -z "$ac_c_werror_flag" ||
24768 test ! -s conftest.err
24769 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24770 ac_cv_type_long_long=yes
24771else
24772 echo "$as_me: failed program was:" >&5
24773sed 's/^/| /' conftest.$ac_ext >&5
24774
47964710 24775 ac_cv_type_long_long=no
a848cd7e 24776fi
47964710
VS
24777
24778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 24779fi
47964710
VS
24780{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24781echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
a848cd7e 24782
47964710
VS
24783# The cast to long int works around a bug in the HP C Compiler
24784# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24785# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24786# This bug is HP SR number 8606223364.
24787{ echo "$as_me:$LINENO: checking size of long long" >&5
24788echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
a848cd7e
SC
24789if test "${ac_cv_sizeof_long_long+set}" = set; then
24790 echo $ECHO_N "(cached) $ECHO_C" >&6
24791else
a848cd7e
SC
24792 if test "$cross_compiling" = yes; then
24793 # Depending upon the size, compute the lo and hi bounds.
24794cat >conftest.$ac_ext <<_ACEOF
24795/* confdefs.h. */
24796_ACEOF
24797cat confdefs.h >>conftest.$ac_ext
24798cat >>conftest.$ac_ext <<_ACEOF
24799/* end confdefs.h. */
24800$ac_includes_default
47964710 24801 typedef long long ac__type_sizeof_;
a848cd7e
SC
24802int
24803main ()
24804{
47964710 24805static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
24806test_array [0] = 0
24807
24808 ;
24809 return 0;
24810}
24811_ACEOF
24812rm -f conftest.$ac_objext
47964710
VS
24813if { (ac_try="$ac_compile"
24814case "(($ac_try" in
24815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816 *) ac_try_echo=$ac_try;;
24817esac
24818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24820 ac_status=$?
ac1cb8d3
VS
24821 grep -v '^ *+' conftest.er1 >conftest.err
24822 rm -f conftest.er1
24823 cat conftest.err >&5
a848cd7e 24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24825 (exit $ac_status); } && {
24826 test -z "$ac_c_werror_flag" ||
24827 test ! -s conftest.err
24828 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24829 ac_lo=0 ac_mid=0
24830 while :; do
24831 cat >conftest.$ac_ext <<_ACEOF
24832/* confdefs.h. */
24833_ACEOF
24834cat confdefs.h >>conftest.$ac_ext
24835cat >>conftest.$ac_ext <<_ACEOF
24836/* end confdefs.h. */
24837$ac_includes_default
47964710 24838 typedef long long ac__type_sizeof_;
a848cd7e
SC
24839int
24840main ()
24841{
47964710 24842static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
24843test_array [0] = 0
24844
24845 ;
24846 return 0;
24847}
24848_ACEOF
24849rm -f conftest.$ac_objext
47964710
VS
24850if { (ac_try="$ac_compile"
24851case "(($ac_try" in
24852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853 *) ac_try_echo=$ac_try;;
24854esac
24855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24857 ac_status=$?
ac1cb8d3
VS
24858 grep -v '^ *+' conftest.er1 >conftest.err
24859 rm -f conftest.er1
24860 cat conftest.err >&5
a848cd7e 24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24862 (exit $ac_status); } && {
24863 test -z "$ac_c_werror_flag" ||
24864 test ! -s conftest.err
24865 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24866 ac_hi=$ac_mid; break
24867else
24868 echo "$as_me: failed program was:" >&5
24869sed 's/^/| /' conftest.$ac_ext >&5
24870
47964710
VS
24871 ac_lo=`expr $ac_mid + 1`
24872 if test $ac_lo -le $ac_mid; then
24873 ac_lo= ac_hi=
24874 break
24875 fi
24876 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 24877fi
47964710
VS
24878
24879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24880 done
24881else
24882 echo "$as_me: failed program was:" >&5
24883sed 's/^/| /' conftest.$ac_ext >&5
24884
47964710 24885 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24886/* confdefs.h. */
24887_ACEOF
24888cat confdefs.h >>conftest.$ac_ext
24889cat >>conftest.$ac_ext <<_ACEOF
24890/* end confdefs.h. */
24891$ac_includes_default
47964710 24892 typedef long long ac__type_sizeof_;
a848cd7e
SC
24893int
24894main ()
24895{
47964710 24896static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
24897test_array [0] = 0
24898
24899 ;
24900 return 0;
24901}
24902_ACEOF
24903rm -f conftest.$ac_objext
47964710
VS
24904if { (ac_try="$ac_compile"
24905case "(($ac_try" in
24906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907 *) ac_try_echo=$ac_try;;
24908esac
24909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24911 ac_status=$?
ac1cb8d3
VS
24912 grep -v '^ *+' conftest.er1 >conftest.err
24913 rm -f conftest.er1
24914 cat conftest.err >&5
a848cd7e 24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24916 (exit $ac_status); } && {
24917 test -z "$ac_c_werror_flag" ||
24918 test ! -s conftest.err
24919 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24920 ac_hi=-1 ac_mid=-1
24921 while :; do
24922 cat >conftest.$ac_ext <<_ACEOF
24923/* confdefs.h. */
24924_ACEOF
24925cat confdefs.h >>conftest.$ac_ext
24926cat >>conftest.$ac_ext <<_ACEOF
24927/* end confdefs.h. */
24928$ac_includes_default
47964710 24929 typedef long long ac__type_sizeof_;
a848cd7e
SC
24930int
24931main ()
24932{
47964710 24933static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
24934test_array [0] = 0
24935
24936 ;
24937 return 0;
24938}
24939_ACEOF
24940rm -f conftest.$ac_objext
47964710
VS
24941if { (ac_try="$ac_compile"
24942case "(($ac_try" in
24943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24944 *) ac_try_echo=$ac_try;;
24945esac
24946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24947 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24948 ac_status=$?
ac1cb8d3
VS
24949 grep -v '^ *+' conftest.er1 >conftest.err
24950 rm -f conftest.er1
24951 cat conftest.err >&5
a848cd7e 24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24953 (exit $ac_status); } && {
24954 test -z "$ac_c_werror_flag" ||
24955 test ! -s conftest.err
24956 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24957 ac_lo=$ac_mid; break
24958else
24959 echo "$as_me: failed program was:" >&5
24960sed 's/^/| /' conftest.$ac_ext >&5
24961
47964710
VS
24962 ac_hi=`expr '(' $ac_mid ')' - 1`
24963 if test $ac_mid -le $ac_hi; then
24964 ac_lo= ac_hi=
24965 break
24966 fi
24967 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 24968fi
47964710
VS
24969
24970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24971 done
24972else
24973 echo "$as_me: failed program was:" >&5
24974sed 's/^/| /' conftest.$ac_ext >&5
24975
47964710 24976 ac_lo= ac_hi=
a848cd7e 24977fi
47964710
VS
24978
24979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 24980fi
47964710
VS
24981
24982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24983# Binary search between lo and hi bounds.
24984while test "x$ac_lo" != "x$ac_hi"; do
24985 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24986 cat >conftest.$ac_ext <<_ACEOF
24987/* confdefs.h. */
24988_ACEOF
24989cat confdefs.h >>conftest.$ac_ext
24990cat >>conftest.$ac_ext <<_ACEOF
24991/* end confdefs.h. */
24992$ac_includes_default
47964710 24993 typedef long long ac__type_sizeof_;
a848cd7e
SC
24994int
24995main ()
24996{
47964710 24997static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
24998test_array [0] = 0
24999
25000 ;
25001 return 0;
25002}
25003_ACEOF
25004rm -f conftest.$ac_objext
47964710
VS
25005if { (ac_try="$ac_compile"
25006case "(($ac_try" in
25007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008 *) ac_try_echo=$ac_try;;
25009esac
25010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25011 (eval "$ac_compile") 2>conftest.er1
a848cd7e 25012 ac_status=$?
ac1cb8d3
VS
25013 grep -v '^ *+' conftest.er1 >conftest.err
25014 rm -f conftest.er1
25015 cat conftest.err >&5
a848cd7e 25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25017 (exit $ac_status); } && {
25018 test -z "$ac_c_werror_flag" ||
25019 test ! -s conftest.err
25020 } && test -s conftest.$ac_objext; then
a848cd7e
SC
25021 ac_hi=$ac_mid
25022else
25023 echo "$as_me: failed program was:" >&5
25024sed 's/^/| /' conftest.$ac_ext >&5
25025
47964710 25026 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 25027fi
47964710
VS
25028
25029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25030done
25031case $ac_lo in
25032?*) ac_cv_sizeof_long_long=$ac_lo;;
47964710
VS
25033'') if test "$ac_cv_type_long_long" = yes; then
25034 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
a848cd7e 25035See \`config.log' for more details." >&5
47964710 25036echo "$as_me: error: cannot compute sizeof (long long)
a848cd7e 25037See \`config.log' for more details." >&2;}
47964710
VS
25038 { (exit 77); exit 77; }; }
25039 else
25040 ac_cv_sizeof_long_long=0
25041 fi ;;
a848cd7e 25042esac
a848cd7e
SC
25043else
25044 cat >conftest.$ac_ext <<_ACEOF
25045/* confdefs.h. */
25046_ACEOF
25047cat confdefs.h >>conftest.$ac_ext
25048cat >>conftest.$ac_ext <<_ACEOF
25049/* end confdefs.h. */
25050$ac_includes_default
47964710
VS
25051 typedef long long ac__type_sizeof_;
25052static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25053static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
25054#include <stdio.h>
25055#include <stdlib.h>
25056int
25057main ()
25058{
25059
25060 FILE *f = fopen ("conftest.val", "w");
25061 if (! f)
47964710
VS
25062 return 1;
25063 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 25064 {
47964710
VS
25065 long int i = longval ();
25066 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25067 return 1;
a848cd7e
SC
25068 fprintf (f, "%ld\n", i);
25069 }
25070 else
25071 {
47964710
VS
25072 unsigned long int i = ulongval ();
25073 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25074 return 1;
a848cd7e
SC
25075 fprintf (f, "%lu\n", i);
25076 }
47964710 25077 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
25078
25079 ;
25080 return 0;
25081}
25082_ACEOF
25083rm -f conftest$ac_exeext
47964710
VS
25084if { (ac_try="$ac_link"
25085case "(($ac_try" in
25086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25087 *) ac_try_echo=$ac_try;;
25088esac
25089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25090 (eval "$ac_link") 2>&5
a848cd7e
SC
25091 ac_status=$?
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
25094 { (case "(($ac_try" in
25095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25096 *) ac_try_echo=$ac_try;;
25097esac
25098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25099 (eval "$ac_try") 2>&5
a848cd7e
SC
25100 ac_status=$?
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; }; then
25103 ac_cv_sizeof_long_long=`cat conftest.val`
25104else
25105 echo "$as_me: program exited with status $ac_status" >&5
25106echo "$as_me: failed program was:" >&5
25107sed 's/^/| /' conftest.$ac_ext >&5
25108
25109( exit $ac_status )
47964710
VS
25110if test "$ac_cv_type_long_long" = yes; then
25111 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
a848cd7e 25112See \`config.log' for more details." >&5
47964710 25113echo "$as_me: error: cannot compute sizeof (long long)
a848cd7e 25114See \`config.log' for more details." >&2;}
47964710
VS
25115 { (exit 77); exit 77; }; }
25116 else
25117 ac_cv_sizeof_long_long=0
25118 fi
a848cd7e 25119fi
47964710 25120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25121fi
25122rm -f conftest.val
4db03d26 25123fi
47964710
VS
25124{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
25125echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
25126
25127
25128
a848cd7e
SC
25129cat >>confdefs.h <<_ACEOF
25130#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
25131_ACEOF
25132
25133
25134esac
25135
47964710
VS
25136{ echo "$as_me:$LINENO: checking for wchar_t" >&5
25137echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
238ecede
MW
25138if test "${ac_cv_type_wchar_t+set}" = set; then
25139 echo $ECHO_N "(cached) $ECHO_C" >&6
25140else
25141 cat >conftest.$ac_ext <<_ACEOF
25142/* confdefs.h. */
25143_ACEOF
25144cat confdefs.h >>conftest.$ac_ext
25145cat >>conftest.$ac_ext <<_ACEOF
25146/* end confdefs.h. */
25147
83d8eb47
MW
25148 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25149 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
25150 # error "fake wchar_t"
25151 #endif
25152 #ifdef HAVE_WCHAR_H
25153 # ifdef __CYGWIN__
25154 # include <stddef.h>
25155 # endif
25156 # include <wchar.h>
25157 #endif
25158 #ifdef HAVE_STDLIB_H
25159 # include <stdlib.h>
25160 #endif
25161 #include <stdio.h>
25162
25163
25164
47964710 25165typedef wchar_t ac__type_new_;
238ecede
MW
25166int
25167main ()
25168{
47964710 25169if ((ac__type_new_ *) 0)
238ecede 25170 return 0;
47964710 25171if (sizeof (ac__type_new_))
238ecede
MW
25172 return 0;
25173 ;
25174 return 0;
25175}
25176_ACEOF
25177rm -f conftest.$ac_objext
47964710
VS
25178if { (ac_try="$ac_compile"
25179case "(($ac_try" in
25180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25181 *) ac_try_echo=$ac_try;;
25182esac
25183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25184 (eval "$ac_compile") 2>conftest.er1
238ecede
MW
25185 ac_status=$?
25186 grep -v '^ *+' conftest.er1 >conftest.err
25187 rm -f conftest.er1
25188 cat conftest.err >&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25190 (exit $ac_status); } && {
25191 test -z "$ac_c_werror_flag" ||
25192 test ! -s conftest.err
25193 } && test -s conftest.$ac_objext; then
238ecede
MW
25194 ac_cv_type_wchar_t=yes
25195else
25196 echo "$as_me: failed program was:" >&5
25197sed 's/^/| /' conftest.$ac_ext >&5
25198
47964710 25199 ac_cv_type_wchar_t=no
238ecede 25200fi
47964710
VS
25201
25202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
238ecede 25203fi
47964710
VS
25204{ echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
25205echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
238ecede 25206
47964710
VS
25207# The cast to long int works around a bug in the HP C Compiler
25208# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25209# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25210# This bug is HP SR number 8606223364.
25211{ echo "$as_me:$LINENO: checking size of wchar_t" >&5
25212echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
238ecede 25213if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
25214 echo $ECHO_N "(cached) $ECHO_C" >&6
25215else
238ecede
MW
25216 if test "$cross_compiling" = yes; then
25217 # Depending upon the size, compute the lo and hi bounds.
25218cat >conftest.$ac_ext <<_ACEOF
25219/* confdefs.h. */
25220_ACEOF
25221cat confdefs.h >>conftest.$ac_ext
25222cat >>conftest.$ac_ext <<_ACEOF
25223/* end confdefs.h. */
25224
83d8eb47
MW
25225 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25226 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
25227 # error "fake wchar_t"
25228 #endif
25229 #ifdef HAVE_WCHAR_H
25230 # ifdef __CYGWIN__
25231 # include <stddef.h>
25232 # endif
25233 # include <wchar.h>
25234 #endif
25235 #ifdef HAVE_STDLIB_H
25236 # include <stdlib.h>
25237 #endif
25238 #include <stdio.h>
25239
25240
25241
47964710 25242 typedef wchar_t ac__type_sizeof_;
238ecede
MW
25243int
25244main ()
25245{
47964710 25246static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
238ecede
MW
25247test_array [0] = 0
25248
25249 ;
25250 return 0;
25251}
25252_ACEOF
25253rm -f conftest.$ac_objext
47964710
VS
25254if { (ac_try="$ac_compile"
25255case "(($ac_try" in
25256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25257 *) ac_try_echo=$ac_try;;
25258esac
25259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25260 (eval "$ac_compile") 2>conftest.er1
238ecede
MW
25261 ac_status=$?
25262 grep -v '^ *+' conftest.er1 >conftest.err
25263 rm -f conftest.er1
25264 cat conftest.err >&5
25265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25266 (exit $ac_status); } && {
25267 test -z "$ac_c_werror_flag" ||
25268 test ! -s conftest.err
25269 } && test -s conftest.$ac_objext; then
238ecede
MW
25270 ac_lo=0 ac_mid=0
25271 while :; do
25272 cat >conftest.$ac_ext <<_ACEOF
25273/* confdefs.h. */
25274_ACEOF
25275cat confdefs.h >>conftest.$ac_ext
25276cat >>conftest.$ac_ext <<_ACEOF
25277/* end confdefs.h. */
25278
83d8eb47
MW
25279 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25280 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
25281 # error "fake wchar_t"
25282 #endif
25283 #ifdef HAVE_WCHAR_H
25284 # ifdef __CYGWIN__
25285 # include <stddef.h>
25286 # endif
25287 # include <wchar.h>
25288 #endif
25289 #ifdef HAVE_STDLIB_H
25290 # include <stdlib.h>
25291 #endif
25292 #include <stdio.h>
25293
25294
25295
47964710 25296 typedef wchar_t ac__type_sizeof_;
238ecede
MW
25297int
25298main ()
25299{
47964710 25300static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4db03d26
VZ
25301test_array [0] = 0
25302
25303 ;
25304 return 0;
25305}
25306_ACEOF
25307rm -f conftest.$ac_objext
47964710
VS
25308if { (ac_try="$ac_compile"
25309case "(($ac_try" in
25310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25311 *) ac_try_echo=$ac_try;;
25312esac
25313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25314 (eval "$ac_compile") 2>conftest.er1
4db03d26
VZ
25315 ac_status=$?
25316 grep -v '^ *+' conftest.er1 >conftest.err
25317 rm -f conftest.er1
25318 cat conftest.err >&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25320 (exit $ac_status); } && {
25321 test -z "$ac_c_werror_flag" ||
25322 test ! -s conftest.err
25323 } && test -s conftest.$ac_objext; then
4db03d26
VZ
25324 ac_hi=$ac_mid; break
25325else
25326 echo "$as_me: failed program was:" >&5
25327sed 's/^/| /' conftest.$ac_ext >&5
25328
47964710
VS
25329 ac_lo=`expr $ac_mid + 1`
25330 if test $ac_lo -le $ac_mid; then
25331 ac_lo= ac_hi=
25332 break
25333 fi
25334 ac_mid=`expr 2 '*' $ac_mid + 1`
4db03d26 25335fi
47964710
VS
25336
25337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4db03d26
VZ
25338 done
25339else
25340 echo "$as_me: failed program was:" >&5
25341sed 's/^/| /' conftest.$ac_ext >&5
25342
47964710 25343 cat >conftest.$ac_ext <<_ACEOF
4db03d26
VZ
25344/* confdefs.h. */
25345_ACEOF
25346cat confdefs.h >>conftest.$ac_ext
25347cat >>conftest.$ac_ext <<_ACEOF
25348/* end confdefs.h. */
25349
25350 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25351 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25352 # error "fake wchar_t"
25353 #endif
25354 #ifdef HAVE_WCHAR_H
25355 # ifdef __CYGWIN__
25356 # include <stddef.h>
25357 # endif
25358 # include <wchar.h>
25359 #endif
25360 #ifdef HAVE_STDLIB_H
25361 # include <stdlib.h>
25362 #endif
25363 #include <stdio.h>
25364
25365
25366
47964710 25367 typedef wchar_t ac__type_sizeof_;
4db03d26
VZ
25368int
25369main ()
25370{
47964710 25371static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
238ecede
MW
25372test_array [0] = 0
25373
25374 ;
25375 return 0;
25376}
25377_ACEOF
25378rm -f conftest.$ac_objext
47964710
VS
25379if { (ac_try="$ac_compile"
25380case "(($ac_try" in
25381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25382 *) ac_try_echo=$ac_try;;
25383esac
25384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25385 (eval "$ac_compile") 2>conftest.er1
238ecede
MW
25386 ac_status=$?
25387 grep -v '^ *+' conftest.er1 >conftest.err
25388 rm -f conftest.er1
25389 cat conftest.err >&5
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25391 (exit $ac_status); } && {
25392 test -z "$ac_c_werror_flag" ||
25393 test ! -s conftest.err
25394 } && test -s conftest.$ac_objext; then
39b61aa3
VZ
25395 ac_hi=-1 ac_mid=-1
25396 while :; do
25397 cat >conftest.$ac_ext <<_ACEOF
25398/* confdefs.h. */
25399_ACEOF
25400cat confdefs.h >>conftest.$ac_ext
25401cat >>conftest.$ac_ext <<_ACEOF
25402/* end confdefs.h. */
25403
25404 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25405 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25406 # error "fake wchar_t"
25407 #endif
25408 #ifdef HAVE_WCHAR_H
25409 # ifdef __CYGWIN__
25410 # include <stddef.h>
25411 # endif
25412 # include <wchar.h>
25413 #endif
25414 #ifdef HAVE_STDLIB_H
25415 # include <stdlib.h>
25416 #endif
25417 #include <stdio.h>
25418
25419
25420
47964710 25421 typedef wchar_t ac__type_sizeof_;
39b61aa3
VZ
25422int
25423main ()
25424{
47964710 25425static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
39b61aa3
VZ
25426test_array [0] = 0
25427
25428 ;
25429 return 0;
25430}
25431_ACEOF
25432rm -f conftest.$ac_objext
47964710
VS
25433if { (ac_try="$ac_compile"
25434case "(($ac_try" in
25435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25436 *) ac_try_echo=$ac_try;;
25437esac
25438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25439 (eval "$ac_compile") 2>conftest.er1
238ecede 25440 ac_status=$?
39b61aa3
VZ
25441 grep -v '^ *+' conftest.er1 >conftest.err
25442 rm -f conftest.er1
25443 cat conftest.err >&5
238ecede 25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25445 (exit $ac_status); } && {
25446 test -z "$ac_c_werror_flag" ||
25447 test ! -s conftest.err
25448 } && test -s conftest.$ac_objext; then
39b61aa3
VZ
25449 ac_lo=$ac_mid; break
25450else
25451 echo "$as_me: failed program was:" >&5
25452sed 's/^/| /' conftest.$ac_ext >&5
25453
47964710
VS
25454 ac_hi=`expr '(' $ac_mid ')' - 1`
25455 if test $ac_mid -le $ac_hi; then
25456 ac_lo= ac_hi=
25457 break
25458 fi
25459 ac_mid=`expr 2 '*' $ac_mid`
39b61aa3 25460fi
47964710
VS
25461
25462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39b61aa3
VZ
25463 done
25464else
25465 echo "$as_me: failed program was:" >&5
25466sed 's/^/| /' conftest.$ac_ext >&5
25467
47964710 25468 ac_lo= ac_hi=
39b61aa3 25469fi
47964710
VS
25470
25471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39b61aa3 25472fi
47964710
VS
25473
25474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39b61aa3
VZ
25475# Binary search between lo and hi bounds.
25476while test "x$ac_lo" != "x$ac_hi"; do
25477 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25478 cat >conftest.$ac_ext <<_ACEOF
25479/* confdefs.h. */
25480_ACEOF
25481cat confdefs.h >>conftest.$ac_ext
25482cat >>conftest.$ac_ext <<_ACEOF
25483/* end confdefs.h. */
25484
25485 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25486 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25487 # error "fake wchar_t"
25488 #endif
25489 #ifdef HAVE_WCHAR_H
25490 # ifdef __CYGWIN__
25491 # include <stddef.h>
25492 # endif
25493 # include <wchar.h>
25494 #endif
25495 #ifdef HAVE_STDLIB_H
25496 # include <stdlib.h>
25497 #endif
25498 #include <stdio.h>
25499
25500
25501
47964710 25502 typedef wchar_t ac__type_sizeof_;
39b61aa3
VZ
25503int
25504main ()
25505{
47964710 25506static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
39b61aa3
VZ
25507test_array [0] = 0
25508
25509 ;
25510 return 0;
25511}
25512_ACEOF
25513rm -f conftest.$ac_objext
47964710
VS
25514if { (ac_try="$ac_compile"
25515case "(($ac_try" in
25516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25517 *) ac_try_echo=$ac_try;;
25518esac
25519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25520 (eval "$ac_compile") 2>conftest.er1
238ecede 25521 ac_status=$?
39b61aa3
VZ
25522 grep -v '^ *+' conftest.er1 >conftest.err
25523 rm -f conftest.er1
25524 cat conftest.err >&5
238ecede 25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25526 (exit $ac_status); } && {
25527 test -z "$ac_c_werror_flag" ||
25528 test ! -s conftest.err
25529 } && test -s conftest.$ac_objext; then
39b61aa3
VZ
25530 ac_hi=$ac_mid
25531else
25532 echo "$as_me: failed program was:" >&5
25533sed 's/^/| /' conftest.$ac_ext >&5
25534
47964710 25535 ac_lo=`expr '(' $ac_mid ')' + 1`
39b61aa3 25536fi
47964710
VS
25537
25538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39b61aa3
VZ
25539done
25540case $ac_lo in
25541?*) ac_cv_sizeof_wchar_t=$ac_lo;;
47964710
VS
25542'') if test "$ac_cv_type_wchar_t" = yes; then
25543 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
39b61aa3 25544See \`config.log' for more details." >&5
47964710 25545echo "$as_me: error: cannot compute sizeof (wchar_t)
39b61aa3 25546See \`config.log' for more details." >&2;}
47964710
VS
25547 { (exit 77); exit 77; }; }
25548 else
25549 ac_cv_sizeof_wchar_t=0
25550 fi ;;
39b61aa3
VZ
25551esac
25552else
25553 cat >conftest.$ac_ext <<_ACEOF
238ecede
MW
25554/* confdefs.h. */
25555_ACEOF
25556cat confdefs.h >>conftest.$ac_ext
25557cat >>conftest.$ac_ext <<_ACEOF
25558/* end confdefs.h. */
25559
83d8eb47
MW
25560 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25561 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
25562 # error "fake wchar_t"
25563 #endif
25564 #ifdef HAVE_WCHAR_H
25565 # ifdef __CYGWIN__
25566 # include <stddef.h>
25567 # endif
25568 # include <wchar.h>
25569 #endif
25570 #ifdef HAVE_STDLIB_H
25571 # include <stdlib.h>
25572 #endif
25573 #include <stdio.h>
25574
25575
25576
47964710
VS
25577 typedef wchar_t ac__type_sizeof_;
25578static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25579static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
238ecede
MW
25580#include <stdio.h>
25581#include <stdlib.h>
25582int
25583main ()
25584{
a848cd7e 25585
238ecede
MW
25586 FILE *f = fopen ("conftest.val", "w");
25587 if (! f)
47964710
VS
25588 return 1;
25589 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
238ecede 25590 {
47964710
VS
25591 long int i = longval ();
25592 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25593 return 1;
238ecede
MW
25594 fprintf (f, "%ld\n", i);
25595 }
25596 else
25597 {
47964710
VS
25598 unsigned long int i = ulongval ();
25599 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25600 return 1;
238ecede
MW
25601 fprintf (f, "%lu\n", i);
25602 }
47964710 25603 return ferror (f) || fclose (f) != 0;
238ecede
MW
25604
25605 ;
25606 return 0;
25607}
a848cd7e
SC
25608_ACEOF
25609rm -f conftest$ac_exeext
47964710
VS
25610if { (ac_try="$ac_link"
25611case "(($ac_try" in
25612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25613 *) ac_try_echo=$ac_try;;
25614esac
25615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25616 (eval "$ac_link") 2>&5
a848cd7e
SC
25617 ac_status=$?
25618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
25620 { (case "(($ac_try" in
25621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25622 *) ac_try_echo=$ac_try;;
25623esac
25624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25625 (eval "$ac_try") 2>&5
a848cd7e
SC
25626 ac_status=$?
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); }; }; then
238ecede 25629 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
25630else
25631 echo "$as_me: program exited with status $ac_status" >&5
25632echo "$as_me: failed program was:" >&5
25633sed 's/^/| /' conftest.$ac_ext >&5
25634
25635( exit $ac_status )
47964710
VS
25636if test "$ac_cv_type_wchar_t" = yes; then
25637 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
238ecede 25638See \`config.log' for more details." >&5
47964710 25639echo "$as_me: error: cannot compute sizeof (wchar_t)
238ecede 25640See \`config.log' for more details." >&2;}
47964710
VS
25641 { (exit 77); exit 77; }; }
25642 else
25643 ac_cv_sizeof_wchar_t=0
25644 fi
a848cd7e 25645fi
47964710 25646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 25647fi
238ecede 25648rm -f conftest.val
238ecede 25649fi
47964710
VS
25650{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25651echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25652
25653
25654
a848cd7e 25655cat >>confdefs.h <<_ACEOF
238ecede 25656#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
25657_ACEOF
25658
25659
47a7e797
MW
25660if test "$ac_cv_sizeof_wchar_t" != "0"; then
25661 wxUSE_WCHAR_T=yes
25662else
25663 wxUSE_WCHAR_T=no
25664fi
238ecede 25665
47964710
VS
25666{ echo "$as_me:$LINENO: checking for va_copy" >&5
25667echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
ba3d13e1
VZ
25668if test "${wx_cv_func_va_copy+set}" = set; then
25669 echo $ECHO_N "(cached) $ECHO_C" >&6
25670else
25671
47964710 25672 ac_ext=cpp
65c11337
VZ
25673ac_cpp='$CXXCPP $CPPFLAGS'
25674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25677
ba3d13e1
VZ
25678 cat >conftest.$ac_ext <<_ACEOF
25679
25680 #include <stdarg.h>
25681 void foo(char *f, ...)
25682 {
25683 va_list ap1, ap2;
25684 va_start(ap1, f);
25685 va_copy(ap2, ap1);
25686 va_end(ap2);
25687 va_end(ap1);
25688 }
5886b072
VZ
25689 int main()
25690 {
b902e639
VZ
25691 foo("hi", 17);
25692 return 0;
5886b072 25693 }
ba3d13e1
VZ
25694_ACEOF
25695rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
25696if { (ac_try="$ac_link"
25697case "(($ac_try" in
25698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25699 *) ac_try_echo=$ac_try;;
25700esac
25701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25702 (eval "$ac_link") 2>conftest.er1
ba3d13e1
VZ
25703 ac_status=$?
25704 grep -v '^ *+' conftest.er1 >conftest.err
25705 rm -f conftest.er1
25706 cat conftest.err >&5
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25708 (exit $ac_status); } && {
25709 test -z "$ac_cxx_werror_flag" ||
25710 test ! -s conftest.err
25711 } && test -s conftest$ac_exeext &&
25712 $as_test_x conftest$ac_exeext; then
ba3d13e1
VZ
25713 wx_cv_func_va_copy=yes
25714else
25715 echo "$as_me: failed program was:" >&5
25716sed 's/^/| /' conftest.$ac_ext >&5
25717
47964710 25718 wx_cv_func_va_copy=no
ba3d13e1
VZ
25719
25720fi
47964710
VS
25721
25722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ba3d13e1 25723 conftest$ac_exeext conftest.$ac_ext
65c11337
VZ
25724 ac_ext=c
25725ac_cpp='$CPP $CPPFLAGS'
25726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25728ac_compiler_gnu=$ac_cv_c_compiler_gnu
25729
ba3d13e1
VZ
25730
25731
25732fi
47964710
VS
25733{ echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
25734echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
ba3d13e1
VZ
25735
25736if test $wx_cv_func_va_copy = "yes"; then
25737 cat >>confdefs.h <<\_ACEOF
25738#define HAVE_VA_COPY 1
25739_ACEOF
25740
25741else
47964710
VS
25742 { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
25743echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
ba3d13e1
VZ
25744if test "${wx_cv_type_va_list_lvalue+set}" = set; then
25745 echo $ECHO_N "(cached) $ECHO_C" >&6
25746else
25747
25748 if test "$cross_compiling" = yes; then
25749 wx_cv_type_va_list_lvalue=yes
25750
25751else
25752 cat >conftest.$ac_ext <<_ACEOF
25753
25754 #include <stdarg.h>
25755 int foo(char *f, ...)
25756 {
25757 va_list ap1, ap2;
25758 va_start(ap1, f);
25759 ap2 = ap1;
25760 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
25761 return 1;
25762 va_end(ap2);
25763 va_end(ap1);
25764 return 0;
25765 }
25766 int main()
25767 {
25768 return foo("hi", 17);
25769 }
25770_ACEOF
25771rm -f conftest$ac_exeext
47964710
VS
25772if { (ac_try="$ac_link"
25773case "(($ac_try" in
25774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25775 *) ac_try_echo=$ac_try;;
25776esac
25777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25778 (eval "$ac_link") 2>&5
ba3d13e1
VZ
25779 ac_status=$?
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
25782 { (case "(($ac_try" in
25783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25784 *) ac_try_echo=$ac_try;;
25785esac
25786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25787 (eval "$ac_try") 2>&5
ba3d13e1
VZ
25788 ac_status=$?
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); }; }; then
25791 wx_cv_type_va_list_lvalue=yes
25792else
25793 echo "$as_me: program exited with status $ac_status" >&5
25794echo "$as_me: failed program was:" >&5
25795sed 's/^/| /' conftest.$ac_ext >&5
25796
25797( exit $ac_status )
25798wx_cv_type_va_list_lvalue=no
25799fi
47964710 25800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ba3d13e1
VZ
25801fi
25802
25803
47964710
VS
25804
25805
ba3d13e1 25806fi
47964710
VS
25807{ echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
25808echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
ba3d13e1
VZ
25809
25810 if test $wx_cv_type_va_list_lvalue != "yes"; then
25811 cat >>confdefs.h <<\_ACEOF
25812#define VA_LIST_IS_ARRAY 1
25813_ACEOF
25814
25815 fi
25816fi
25817
70c536f3
VZ
25818if test "$wxUSE_VARARG_MACROS" = "yes"; then
25819
47964710
VS
25820{ echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
25821echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
ca766534
VS
25822if test "${wx_cv_have_variadic_macros+set}" = set; then
25823 echo $ECHO_N "(cached) $ECHO_C" >&6
25824else
25825
47964710 25826 ac_ext=cpp
38c6938f
VZ
25827ac_cpp='$CXXCPP $CPPFLAGS'
25828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25831
ca766534
VS
25832 cat >conftest.$ac_ext <<_ACEOF
25833/* confdefs.h. */
25834_ACEOF
25835cat confdefs.h >>conftest.$ac_ext
25836cat >>conftest.$ac_ext <<_ACEOF
25837/* end confdefs.h. */
25838
25839 #include <stdio.h>
25840 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
25841
25842int
25843main ()
25844{
25845
25846 test("%s %d %p", "test", 1, 0);
25847
25848
25849 ;
25850 return 0;
25851}
25852_ACEOF
25853rm -f conftest.$ac_objext
47964710
VS
25854if { (ac_try="$ac_compile"
25855case "(($ac_try" in
25856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857 *) ac_try_echo=$ac_try;;
25858esac
25859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860 (eval "$ac_compile") 2>conftest.er1
ca766534
VS
25861 ac_status=$?
25862 grep -v '^ *+' conftest.er1 >conftest.err
25863 rm -f conftest.er1
25864 cat conftest.err >&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25866 (exit $ac_status); } && {
25867 test -z "$ac_cxx_werror_flag" ||
25868 test ! -s conftest.err
25869 } && test -s conftest.$ac_objext; then
ca766534
VS
25870 wx_cv_have_variadic_macros=yes
25871else
25872 echo "$as_me: failed program was:" >&5
25873sed 's/^/| /' conftest.$ac_ext >&5
25874
47964710 25875 wx_cv_have_variadic_macros=no
ca766534
VS
25876
25877fi
47964710
VS
25878
25879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38c6938f
VZ
25880 ac_ext=c
25881ac_cpp='$CPP $CPPFLAGS'
25882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25884ac_compiler_gnu=$ac_cv_c_compiler_gnu
25885
ca766534
VS
25886
25887
25888fi
47964710
VS
25889{ echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
25890echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
ca766534
VS
25891
25892if test $wx_cv_have_variadic_macros = "yes"; then
25893 cat >>confdefs.h <<\_ACEOF
25894#define HAVE_VARIADIC_MACROS 1
25895_ACEOF
25896
25897fi
25898
70c536f3 25899fi
47964710 25900# Check whether --enable-largefile was given.
a848cd7e 25901if test "${enable_largefile+set}" = set; then
47964710
VS
25902 enableval=$enable_largefile;
25903fi
a848cd7e 25904
a848cd7e
SC
25905if test "$enable_largefile" != no; then
25906 wx_largefile=no
25907
47964710
VS
25908 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25909echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
a848cd7e
SC
25910if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25911 echo $ECHO_N "(cached) $ECHO_C" >&6
25912else
25913
25914 cat >conftest.$ac_ext <<_ACEOF
25915/* confdefs.h. */
25916_ACEOF
25917cat confdefs.h >>conftest.$ac_ext
25918cat >>conftest.$ac_ext <<_ACEOF
25919/* end confdefs.h. */
25920#define _FILE_OFFSET_BITS 64
25921 #include <sys/types.h>
25922int
25923main ()
25924{
25925typedef struct {
25926 unsigned int field: sizeof(off_t) == 8;
25927} wxlf;
25928
25929 ;
25930 return 0;
25931}
25932_ACEOF
25933rm -f conftest.$ac_objext
47964710
VS
25934if { (ac_try="$ac_compile"
25935case "(($ac_try" in
25936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937 *) ac_try_echo=$ac_try;;
25938esac
25939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25940 (eval "$ac_compile") 2>conftest.er1
a848cd7e 25941 ac_status=$?
ac1cb8d3
VS
25942 grep -v '^ *+' conftest.er1 >conftest.err
25943 rm -f conftest.er1
25944 cat conftest.err >&5
a848cd7e 25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25946 (exit $ac_status); } && {
25947 test -z "$ac_c_werror_flag" ||
25948 test ! -s conftest.err
25949 } && test -s conftest.$ac_objext; then
a848cd7e
SC
25950 ac_cv_sys_file_offset_bits=64
25951else
25952 echo "$as_me: failed program was:" >&5
25953sed 's/^/| /' conftest.$ac_ext >&5
25954
47964710 25955 ac_cv_sys_file_offset_bits=no
a848cd7e 25956fi
47964710
VS
25957
25958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25959
25960
25961fi
47964710
VS
25962{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25963echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
a848cd7e
SC
25964
25965 if test "$ac_cv_sys_file_offset_bits" != no; then
25966 wx_largefile=yes
25967 cat >>confdefs.h <<_ACEOF
25968#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25969_ACEOF
25970
25971 fi
25972
25973 if test "x$wx_largefile" != "xyes"; then
25974
47964710
VS
25975 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25976echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
a848cd7e
SC
25977if test "${ac_cv_sys_large_files+set}" = set; then
25978 echo $ECHO_N "(cached) $ECHO_C" >&6
25979else
25980
25981 cat >conftest.$ac_ext <<_ACEOF
25982/* confdefs.h. */
25983_ACEOF
25984cat confdefs.h >>conftest.$ac_ext
25985cat >>conftest.$ac_ext <<_ACEOF
25986/* end confdefs.h. */
25987#define _LARGE_FILES 1
25988 #include <sys/types.h>
25989int
25990main ()
25991{
25992typedef struct {
25993 unsigned int field: sizeof(off_t) == 8;
25994} wxlf;
25995
25996 ;
25997 return 0;
25998}
25999_ACEOF
26000rm -f conftest.$ac_objext
47964710
VS
26001if { (ac_try="$ac_compile"
26002case "(($ac_try" in
26003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004 *) ac_try_echo=$ac_try;;
26005esac
26006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26007 (eval "$ac_compile") 2>conftest.er1
a848cd7e 26008 ac_status=$?
ac1cb8d3
VS
26009 grep -v '^ *+' conftest.er1 >conftest.err
26010 rm -f conftest.er1
26011 cat conftest.err >&5
a848cd7e 26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26013 (exit $ac_status); } && {
26014 test -z "$ac_c_werror_flag" ||
26015 test ! -s conftest.err
26016 } && test -s conftest.$ac_objext; then
a848cd7e
SC
26017 ac_cv_sys_large_files=1
26018else
26019 echo "$as_me: failed program was:" >&5
26020sed 's/^/| /' conftest.$ac_ext >&5
26021
47964710 26022 ac_cv_sys_large_files=no
a848cd7e 26023fi
47964710
VS
26024
26025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26026
26027
26028fi
47964710
VS
26029{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26030echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
a848cd7e
SC
26031
26032 if test "$ac_cv_sys_large_files" != no; then
26033 wx_largefile=yes
26034 cat >>confdefs.h <<_ACEOF
26035#define _LARGE_FILES $ac_cv_sys_large_files
26036_ACEOF
26037
26038 fi
26039
26040 fi
26041
47964710
VS
26042 { echo "$as_me:$LINENO: checking if large file support is available" >&5
26043echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
a848cd7e
SC
26044 if test "x$wx_largefile" = "xyes"; then
26045 cat >>confdefs.h <<\_ACEOF
26046#define HAVE_LARGEFILE_SUPPORT 1
26047_ACEOF
26048
26049 fi
47964710
VS
26050 { echo "$as_me:$LINENO: result: $wx_largefile" >&5
26051echo "${ECHO_T}$wx_largefile" >&6; }
a848cd7e
SC
26052fi
26053
5b674b9d
DE
26054
26055if test "x$wx_largefile" = "xyes"; then
26056 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 26057 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
26058
26059 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
47964710
VS
26060 { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
26061echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
00421666
MW
26062if test "${wx_cv_STDC_EXT_required+set}" = set; then
26063 echo $ECHO_N "(cached) $ECHO_C" >&6
26064else
26065
47964710 26066 ac_ext=cpp
9b8888f9
VZ
26067ac_cpp='$CXXCPP $CPPFLAGS'
26068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26071
00421666
MW
26072 cat >conftest.$ac_ext <<_ACEOF
26073/* confdefs.h. */
26074_ACEOF
26075cat confdefs.h >>conftest.$ac_ext
26076cat >>conftest.$ac_ext <<_ACEOF
26077/* end confdefs.h. */
26078
26079int
26080main ()
26081{
26082
26083 #ifndef __STDC_EXT__
26084 choke me
26085 #endif
26086
26087 ;
26088 return 0;
26089}
26090_ACEOF
26091rm -f conftest.$ac_objext
47964710
VS
26092if { (ac_try="$ac_compile"
26093case "(($ac_try" in
26094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26095 *) ac_try_echo=$ac_try;;
26096esac
26097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26098 (eval "$ac_compile") 2>conftest.er1
00421666
MW
26099 ac_status=$?
26100 grep -v '^ *+' conftest.er1 >conftest.err
26101 rm -f conftest.er1
26102 cat conftest.err >&5
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26104 (exit $ac_status); } && {
26105 test -z "$ac_cxx_werror_flag" ||
26106 test ! -s conftest.err
26107 } && test -s conftest.$ac_objext; then
00421666
MW
26108 wx_cv_STDC_EXT_required=no
26109else
26110 echo "$as_me: failed program was:" >&5
26111sed 's/^/| /' conftest.$ac_ext >&5
26112
47964710 26113 wx_cv_STDC_EXT_required=yes
00421666
MW
26114
26115fi
47964710
VS
26116
26117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
26118 ac_ext=c
26119ac_cpp='$CPP $CPPFLAGS'
26120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26122ac_compiler_gnu=$ac_cv_c_compiler_gnu
26123
00421666
MW
26124
26125
26126fi
47964710
VS
26127{ echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
26128echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
00421666 26129 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 26130 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
26131 fi
26132 fi
5b674b9d 26133 else
5ff751d6 26134 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d 26135 fi
47964710
VS
26136 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
26137echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5294a27e
VZ
26138if test "${ac_cv_sys_largefile_source+set}" = set; then
26139 echo $ECHO_N "(cached) $ECHO_C" >&6
26140else
26141 while :; do
5294a27e
VZ
26142 cat >conftest.$ac_ext <<_ACEOF
26143/* confdefs.h. */
26144_ACEOF
26145cat confdefs.h >>conftest.$ac_ext
26146cat >>conftest.$ac_ext <<_ACEOF
26147/* end confdefs.h. */
47964710
VS
26148#include <sys/types.h> /* for off_t */
26149 #include <stdio.h>
5294a27e
VZ
26150int
26151main ()
26152{
47964710
VS
26153int (*fp) (FILE *, off_t, int) = fseeko;
26154 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5294a27e
VZ
26155 ;
26156 return 0;
26157}
26158_ACEOF
47964710
VS
26159rm -f conftest.$ac_objext conftest$ac_exeext
26160if { (ac_try="$ac_link"
26161case "(($ac_try" in
26162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26163 *) ac_try_echo=$ac_try;;
26164esac
26165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26166 (eval "$ac_link") 2>conftest.er1
5294a27e
VZ
26167 ac_status=$?
26168 grep -v '^ *+' conftest.er1 >conftest.err
26169 rm -f conftest.er1
26170 cat conftest.err >&5
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26172 (exit $ac_status); } && {
26173 test -z "$ac_c_werror_flag" ||
26174 test ! -s conftest.err
26175 } && test -s conftest$ac_exeext &&
26176 $as_test_x conftest$ac_exeext; then
26177 ac_cv_sys_largefile_source=no; break
5294a27e
VZ
26178else
26179 echo "$as_me: failed program was:" >&5
26180sed 's/^/| /' conftest.$ac_ext >&5
26181
47964710 26182
5294a27e 26183fi
47964710
VS
26184
26185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26186 conftest$ac_exeext conftest.$ac_ext
5294a27e
VZ
26187 cat >conftest.$ac_ext <<_ACEOF
26188/* confdefs.h. */
26189_ACEOF
26190cat confdefs.h >>conftest.$ac_ext
26191cat >>conftest.$ac_ext <<_ACEOF
26192/* end confdefs.h. */
26193#define _LARGEFILE_SOURCE 1
47964710
VS
26194#include <sys/types.h> /* for off_t */
26195 #include <stdio.h>
5294a27e
VZ
26196int
26197main ()
26198{
47964710
VS
26199int (*fp) (FILE *, off_t, int) = fseeko;
26200 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5294a27e
VZ
26201 ;
26202 return 0;
26203}
26204_ACEOF
47964710
VS
26205rm -f conftest.$ac_objext conftest$ac_exeext
26206if { (ac_try="$ac_link"
26207case "(($ac_try" in
26208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26209 *) ac_try_echo=$ac_try;;
26210esac
26211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26212 (eval "$ac_link") 2>conftest.er1
5294a27e
VZ
26213 ac_status=$?
26214 grep -v '^ *+' conftest.er1 >conftest.err
26215 rm -f conftest.er1
26216 cat conftest.err >&5
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26218 (exit $ac_status); } && {
26219 test -z "$ac_c_werror_flag" ||
26220 test ! -s conftest.err
26221 } && test -s conftest$ac_exeext &&
26222 $as_test_x conftest$ac_exeext; then
5294a27e
VZ
26223 ac_cv_sys_largefile_source=1; break
26224else
26225 echo "$as_me: failed program was:" >&5
26226sed 's/^/| /' conftest.$ac_ext >&5
26227
47964710 26228
5294a27e 26229fi
47964710
VS
26230
26231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26232 conftest$ac_exeext conftest.$ac_ext
26233 ac_cv_sys_largefile_source=unknown
5294a27e
VZ
26234 break
26235done
26236fi
47964710
VS
26237{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
26238echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
26239case $ac_cv_sys_largefile_source in #(
26240 no | unknown) ;;
26241 *)
5294a27e
VZ
26242cat >>confdefs.h <<_ACEOF
26243#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
26244_ACEOF
47964710
VS
26245;;
26246esac
5294a27e
VZ
26247rm -f conftest*
26248
26249# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
26250# in glibc 2.1.3, but that breaks too many other things.
26251# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
47964710 26252if test $ac_cv_sys_largefile_source != unknown; then
5294a27e
VZ
26253
26254cat >>confdefs.h <<\_ACEOF
26255#define HAVE_FSEEKO 1
26256_ACEOF
26257
26258fi
26259
5b674b9d 26260 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 26261 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 26262 fi
a848cd7e
SC
26263fi
26264
47964710
VS
26265{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26266echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
a848cd7e
SC
26267if test "${ac_cv_c_bigendian+set}" = set; then
26268 echo $ECHO_N "(cached) $ECHO_C" >&6
26269else
26270 ac_cv_c_bigendian=unknown
26271# See if sys/param.h defines the BYTE_ORDER macro.
26272cat >conftest.$ac_ext <<_ACEOF
26273/* confdefs.h. */
26274_ACEOF
26275cat confdefs.h >>conftest.$ac_ext
26276cat >>conftest.$ac_ext <<_ACEOF
26277/* end confdefs.h. */
26278#include <sys/types.h>
26279#include <sys/param.h>
26280int
26281main ()
26282{
26283
26284#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26285 bogus endian macros
26286#endif
26287 ;
26288 return 0;
26289}
26290_ACEOF
26291rm -f conftest.$ac_objext
47964710
VS
26292if { (ac_try="$ac_compile"
26293case "(($ac_try" in
26294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26295 *) ac_try_echo=$ac_try;;
26296esac
26297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26298 (eval "$ac_compile") 2>conftest.er1
a848cd7e 26299 ac_status=$?
ac1cb8d3
VS
26300 grep -v '^ *+' conftest.er1 >conftest.err
26301 rm -f conftest.er1
26302 cat conftest.err >&5
a848cd7e 26303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26304 (exit $ac_status); } && {
26305 test -z "$ac_c_werror_flag" ||
26306 test ! -s conftest.err
26307 } && test -s conftest.$ac_objext; then
a848cd7e
SC
26308 # It does; now see whether it defined to BIG_ENDIAN or not.
26309cat >conftest.$ac_ext <<_ACEOF
26310/* confdefs.h. */
26311_ACEOF
26312cat confdefs.h >>conftest.$ac_ext
26313cat >>conftest.$ac_ext <<_ACEOF
26314/* end confdefs.h. */
26315#include <sys/types.h>
26316#include <sys/param.h>
26317int
26318main ()
26319{
26320
26321#if BYTE_ORDER != BIG_ENDIAN
26322 not big endian
26323#endif
26324 ;
26325 return 0;
26326}
26327_ACEOF
26328rm -f conftest.$ac_objext
47964710
VS
26329if { (ac_try="$ac_compile"
26330case "(($ac_try" in
26331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26332 *) ac_try_echo=$ac_try;;
26333esac
26334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26335 (eval "$ac_compile") 2>conftest.er1
a848cd7e 26336 ac_status=$?
ac1cb8d3
VS
26337 grep -v '^ *+' conftest.er1 >conftest.err
26338 rm -f conftest.er1
26339 cat conftest.err >&5
a848cd7e 26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26341 (exit $ac_status); } && {
26342 test -z "$ac_c_werror_flag" ||
26343 test ! -s conftest.err
26344 } && test -s conftest.$ac_objext; then
a848cd7e
SC
26345 ac_cv_c_bigendian=yes
26346else
26347 echo "$as_me: failed program was:" >&5
26348sed 's/^/| /' conftest.$ac_ext >&5
26349
47964710 26350 ac_cv_c_bigendian=no
a848cd7e 26351fi
47964710
VS
26352
26353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26354else
26355 echo "$as_me: failed program was:" >&5
26356sed 's/^/| /' conftest.$ac_ext >&5
26357
47964710 26358
a848cd7e 26359fi
47964710
VS
26360
26361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26362if test $ac_cv_c_bigendian = unknown; then
26363if test "$cross_compiling" = yes; then
26364 ac_cv_c_bigendian=unknown
26365else
26366 cat >conftest.$ac_ext <<_ACEOF
26367/* confdefs.h. */
26368_ACEOF
26369cat confdefs.h >>conftest.$ac_ext
26370cat >>conftest.$ac_ext <<_ACEOF
26371/* end confdefs.h. */
26372main () {
26373 /* Are we little or big endian? From Harbison&Steele. */
26374 union
26375 {
26376 long l;
26377 char c[sizeof (long)];
26378 } u;
26379 u.l = 1;
26380 exit (u.c[sizeof (long) - 1] == 1);
26381}
26382_ACEOF
26383rm -f conftest$ac_exeext
47964710
VS
26384if { (ac_try="$ac_link"
26385case "(($ac_try" in
26386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26387 *) ac_try_echo=$ac_try;;
26388esac
26389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26390 (eval "$ac_link") 2>&5
a848cd7e
SC
26391 ac_status=$?
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
26394 { (case "(($ac_try" in
26395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26396 *) ac_try_echo=$ac_try;;
26397esac
26398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26399 (eval "$ac_try") 2>&5
a848cd7e
SC
26400 ac_status=$?
26401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402 (exit $ac_status); }; }; then
26403 ac_cv_c_bigendian=no
26404else
26405 echo "$as_me: program exited with status $ac_status" >&5
26406echo "$as_me: failed program was:" >&5
26407sed 's/^/| /' conftest.$ac_ext >&5
26408
26409( exit $ac_status )
26410ac_cv_c_bigendian=yes
26411fi
47964710 26412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 26413fi
47964710
VS
26414
26415
a848cd7e
SC
26416fi
26417fi
47964710
VS
26418{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26419echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
a848cd7e
SC
26420if test $ac_cv_c_bigendian = unknown; then
26421 { 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
26422echo "$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;}
26423fi
26424if test $ac_cv_c_bigendian = yes; then
26425 cat >>confdefs.h <<\_ACEOF
26426#define WORDS_BIGENDIAN 1
26427_ACEOF
26428
26429fi
26430
26431
a848cd7e
SC
26432
26433
47964710 26434 ac_ext=cpp
a848cd7e
SC
26435ac_cpp='$CXXCPP $CPPFLAGS'
26436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26439
26440
1f7e12cc
DE
26441
26442for ac_header in iostream
26443do
26444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47964710
VS
26445{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fd5199d6 26448 echo $ECHO_N "(cached) $ECHO_C" >&6
fd5199d6 26449else
6e7b8bcb 26450 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26451/* confdefs.h. */
26452_ACEOF
26453cat confdefs.h >>conftest.$ac_ext
26454cat >>conftest.$ac_ext <<_ACEOF
26455/* end confdefs.h. */
6e7b8bcb
PC
26456
26457
1f7e12cc 26458#include <$ac_header>
a848cd7e
SC
26459_ACEOF
26460rm -f conftest.$ac_objext
47964710
VS
26461if { (ac_try="$ac_compile"
26462case "(($ac_try" in
26463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26464 *) ac_try_echo=$ac_try;;
26465esac
26466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26467 (eval "$ac_compile") 2>conftest.er1
a848cd7e 26468 ac_status=$?
ac1cb8d3
VS
26469 grep -v '^ *+' conftest.er1 >conftest.err
26470 rm -f conftest.er1
26471 cat conftest.err >&5
a848cd7e 26472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26473 (exit $ac_status); } && {
26474 test -z "$ac_cxx_werror_flag" ||
26475 test ! -s conftest.err
26476 } && test -s conftest.$ac_objext; then
1f7e12cc 26477 eval "$as_ac_Header=yes"
fd5199d6
VZ
26478else
26479 echo "$as_me: failed program was:" >&5
26480sed 's/^/| /' conftest.$ac_ext >&5
a848cd7e 26481
47964710 26482 eval "$as_ac_Header=no"
fd5199d6 26483fi
47964710
VS
26484
26485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6 26486fi
47964710
VS
26487ac_res=`eval echo '${'$as_ac_Header'}'`
26488 { echo "$as_me:$LINENO: result: $ac_res" >&5
26489echo "${ECHO_T}$ac_res" >&6; }
1f7e12cc
DE
26490if test `eval echo '${'$as_ac_Header'}'` = yes; then
26491 cat >>confdefs.h <<_ACEOF
26492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26493_ACEOF
7fd3acaf 26494
1f7e12cc
DE
26495fi
26496
26497done
fd5199d6
VZ
26498
26499
26500 if test "$ac_cv_header_iostream" = "yes" ; then
26501 :
26502 else
26503 cat >>confdefs.h <<\_ACEOF
26504#define wxUSE_IOSTREAMH 1
26505_ACEOF
26506
26507 fi
26508
26509 ac_ext=c
26510ac_cpp='$CPP $CPPFLAGS'
26511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26513ac_compiler_gnu=$ac_cv_c_compiler_gnu
26514
26515
26516
26517
47964710
VS
26518 { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
26519echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
fd5199d6
VZ
26520if test "${wx_cv_cpp_bool+set}" = set; then
26521 echo $ECHO_N "(cached) $ECHO_C" >&6
26522else
26523
26524
47964710 26525 ac_ext=cpp
5d7b7554
VZ
26526ac_cpp='$CXXCPP $CPPFLAGS'
26527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
26530
26531
fd5199d6
VZ
26532 cat >conftest.$ac_ext <<_ACEOF
26533/* confdefs.h. */
26534_ACEOF
26535cat confdefs.h >>conftest.$ac_ext
26536cat >>conftest.$ac_ext <<_ACEOF
26537/* end confdefs.h. */
26538
26539
26540int
26541main ()
26542{
26543
26544 bool b = true;
26545
26546 return 0;
26547
26548 ;
26549 return 0;
26550}
26551_ACEOF
26552rm -f conftest.$ac_objext
47964710
VS
26553if { (ac_try="$ac_compile"
26554case "(($ac_try" in
26555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26556 *) ac_try_echo=$ac_try;;
26557esac
26558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26559 (eval "$ac_compile") 2>conftest.er1
fd5199d6
VZ
26560 ac_status=$?
26561 grep -v '^ *+' conftest.er1 >conftest.err
26562 rm -f conftest.er1
26563 cat conftest.err >&5
26564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26565 (exit $ac_status); } && {
26566 test -z "$ac_cxx_werror_flag" ||
26567 test ! -s conftest.err
26568 } && test -s conftest.$ac_objext; then
fd5199d6
VZ
26569
26570 wx_cv_cpp_bool=yes
26571
26572else
26573 echo "$as_me: failed program was:" >&5
26574sed 's/^/| /' conftest.$ac_ext >&5
26575
26576
26577 wx_cv_cpp_bool=no
26578
26579
26580fi
47964710
VS
26581
26582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
26583
26584 ac_ext=c
26585ac_cpp='$CPP $CPPFLAGS'
26586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26588ac_compiler_gnu=$ac_cv_c_compiler_gnu
26589
26590
a848cd7e 26591fi
47964710
VS
26592{ echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
26593echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
a848cd7e
SC
26594
26595 if test "$wx_cv_cpp_bool" = "yes"; then
26596 cat >>confdefs.h <<\_ACEOF
26597#define HAVE_BOOL 1
26598_ACEOF
26599
26600 fi
26601
26602
26603
47964710
VS
26604 { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
26605echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
a848cd7e
SC
26606if test "${wx_cv_explicit+set}" = set; then
26607 echo $ECHO_N "(cached) $ECHO_C" >&6
26608else
26609
26610
47964710 26611 ac_ext=cpp
a848cd7e
SC
26612ac_cpp='$CXXCPP $CPPFLAGS'
26613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26616
26617
26618 cat >conftest.$ac_ext <<_ACEOF
26619/* confdefs.h. */
26620_ACEOF
26621cat confdefs.h >>conftest.$ac_ext
26622cat >>conftest.$ac_ext <<_ACEOF
26623/* end confdefs.h. */
26624
26625 class Foo { public: explicit Foo(int) {} };
26626
26627int
26628main ()
26629{
26630
26631 return 0;
26632
26633 ;
26634 return 0;
26635}
26636_ACEOF
26637rm -f conftest.$ac_objext
47964710
VS
26638if { (ac_try="$ac_compile"
26639case "(($ac_try" in
26640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26641 *) ac_try_echo=$ac_try;;
26642esac
26643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26644 (eval "$ac_compile") 2>conftest.er1
a848cd7e 26645 ac_status=$?
ac1cb8d3
VS
26646 grep -v '^ *+' conftest.er1 >conftest.err
26647 rm -f conftest.er1
26648 cat conftest.err >&5
a848cd7e 26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26650 (exit $ac_status); } && {
26651 test -z "$ac_cxx_werror_flag" ||
26652 test ! -s conftest.err
26653 } && test -s conftest.$ac_objext; then
a848cd7e
SC
26654
26655 cat >conftest.$ac_ext <<_ACEOF
26656/* confdefs.h. */
26657_ACEOF
26658cat confdefs.h >>conftest.$ac_ext
26659cat >>conftest.$ac_ext <<_ACEOF
26660/* end confdefs.h. */
26661
26662 class Foo { public: explicit Foo(int) {} };
26663 static void TakeFoo(const Foo& foo) { }
26664
26665int
26666main ()
26667{
26668
26669 TakeFoo(17);
26670 return 0;
26671
26672 ;
26673 return 0;
26674}
26675_ACEOF
26676rm -f conftest.$ac_objext
47964710
VS
26677if { (ac_try="$ac_compile"
26678case "(($ac_try" in
26679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26680 *) ac_try_echo=$ac_try;;
26681esac
26682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26683 (eval "$ac_compile") 2>conftest.er1
a848cd7e 26684 ac_status=$?
ac1cb8d3
VS
26685 grep -v '^ *+' conftest.er1 >conftest.err
26686 rm -f conftest.er1
26687 cat conftest.err >&5
a848cd7e 26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26689 (exit $ac_status); } && {
26690 test -z "$ac_cxx_werror_flag" ||
26691 test ! -s conftest.err
26692 } && test -s conftest.$ac_objext; then
a848cd7e
SC
26693 wx_cv_explicit=no
26694else
26695 echo "$as_me: failed program was:" >&5
26696sed 's/^/| /' conftest.$ac_ext >&5
26697
47964710 26698 wx_cv_explicit=yes
a848cd7e
SC
26699
26700fi
47964710
VS
26701
26702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26703
26704else
26705 echo "$as_me: failed program was:" >&5
26706sed 's/^/| /' conftest.$ac_ext >&5
26707
47964710 26708 wx_cv_explicit=no
a848cd7e
SC
26709
26710fi
47964710
VS
26711
26712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 26713
fd5199d6
VZ
26714 ac_ext=c
26715ac_cpp='$CPP $CPPFLAGS'
26716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26718ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
26719
26720
26721fi
47964710
VS
26722{ echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
26723echo "${ECHO_T}$wx_cv_explicit" >&6; }
a848cd7e
SC
26724
26725 if test "$wx_cv_explicit" = "yes"; then
26726 cat >>confdefs.h <<\_ACEOF
26727#define HAVE_EXPLICIT 1
26728_ACEOF
26729
26730 fi
26731
26732
47964710
VS
26733{ echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
26734echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
a848cd7e
SC
26735if test "${ac_cv_cxx_const_cast+set}" = set; then
26736 echo $ECHO_N "(cached) $ECHO_C" >&6
26737else
26738
47964710 26739 ac_ext=cpp
a848cd7e
SC
26740ac_cpp='$CXXCPP $CPPFLAGS'
26741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26744
26745 cat >conftest.$ac_ext <<_ACEOF
26746/* confdefs.h. */
26747_ACEOF
26748cat confdefs.h >>conftest.$ac_ext
26749cat >>conftest.$ac_ext <<_ACEOF
26750/* end confdefs.h. */
26751
26752int
26753main ()
26754{
26755int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
26756 ;
26757 return 0;
26758}
26759_ACEOF
26760rm -f conftest.$ac_objext
47964710
VS
26761if { (ac_try="$ac_compile"
26762case "(($ac_try" in
26763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26764 *) ac_try_echo=$ac_try;;
26765esac
26766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26767 (eval "$ac_compile") 2>conftest.er1
a848cd7e 26768 ac_status=$?
ac1cb8d3
VS
26769 grep -v '^ *+' conftest.er1 >conftest.err
26770 rm -f conftest.er1
26771 cat conftest.err >&5
a848cd7e 26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26773 (exit $ac_status); } && {
26774 test -z "$ac_cxx_werror_flag" ||
26775 test ! -s conftest.err
26776 } && test -s conftest.$ac_objext; then
a848cd7e
SC
26777 ac_cv_cxx_const_cast=yes
26778else
26779 echo "$as_me: failed program was:" >&5
26780sed 's/^/| /' conftest.$ac_ext >&5
26781
47964710 26782 ac_cv_cxx_const_cast=no
a848cd7e 26783fi
47964710
VS
26784
26785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
26786 ac_ext=c
26787ac_cpp='$CPP $CPPFLAGS'
26788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26790ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
26791
26792
26793fi
47964710
VS
26794{ echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
26795echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
a848cd7e
SC
26796if test "$ac_cv_cxx_const_cast" = yes; then
26797
26798cat >>confdefs.h <<\_ACEOF
26799#define HAVE_CONST_CAST
26800_ACEOF
26801
26802fi
26803
47964710
VS
26804{ echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
26805echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
7714864e
RL
26806if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
26807 echo $ECHO_N "(cached) $ECHO_C" >&6
26808else
26809
47964710 26810 ac_ext=cpp
7714864e
RL
26811ac_cpp='$CXXCPP $CPPFLAGS'
26812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26815
26816 cat >conftest.$ac_ext <<_ACEOF
26817/* confdefs.h. */
26818_ACEOF
26819cat confdefs.h >>conftest.$ac_ext
26820cat >>conftest.$ac_ext <<_ACEOF
26821/* end confdefs.h. */
26822#include <typeinfo>
26823class Base { public : Base () {} virtual void f () = 0;};
26824class Derived : public Base { public : Derived () {} virtual void f () {} };
26825class Unrelated { public : Unrelated () {} };
26826int g (Unrelated&) { return 0; }
26827int
26828main ()
26829{
26830
26831Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
26832 ;
26833 return 0;
26834}
26835_ACEOF
26836rm -f conftest.$ac_objext
47964710
VS
26837if { (ac_try="$ac_compile"
26838case "(($ac_try" in
26839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26840 *) ac_try_echo=$ac_try;;
26841esac
26842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26843 (eval "$ac_compile") 2>conftest.er1
7714864e
RL
26844 ac_status=$?
26845 grep -v '^ *+' conftest.er1 >conftest.err
26846 rm -f conftest.er1
26847 cat conftest.err >&5
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26849 (exit $ac_status); } && {
26850 test -z "$ac_cxx_werror_flag" ||
26851 test ! -s conftest.err
26852 } && test -s conftest.$ac_objext; then
7714864e
RL
26853 ac_cv_cxx_reinterpret_cast=yes
26854else
26855 echo "$as_me: failed program was:" >&5
26856sed 's/^/| /' conftest.$ac_ext >&5
26857
47964710 26858 ac_cv_cxx_reinterpret_cast=no
7714864e 26859fi
47964710
VS
26860
26861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
26862 ac_ext=c
26863ac_cpp='$CPP $CPPFLAGS'
26864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26866ac_compiler_gnu=$ac_cv_c_compiler_gnu
7714864e
RL
26867
26868
26869fi
47964710
VS
26870{ echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
26871echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
7714864e
RL
26872if test "$ac_cv_cxx_reinterpret_cast" = yes; then
26873
26874cat >>confdefs.h <<\_ACEOF
26875#define HAVE_REINTERPRET_CAST
26876_ACEOF
26877
26878fi
26879
47964710
VS
26880{ echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
26881echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
a848cd7e
SC
26882if test "${ac_cv_cxx_static_cast+set}" = set; then
26883 echo $ECHO_N "(cached) $ECHO_C" >&6
26884else
26885
47964710 26886 ac_ext=cpp
a848cd7e
SC
26887ac_cpp='$CXXCPP $CPPFLAGS'
26888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26891
26892 cat >conftest.$ac_ext <<_ACEOF
26893/* confdefs.h. */
26894_ACEOF
26895cat confdefs.h >>conftest.$ac_ext
26896cat >>conftest.$ac_ext <<_ACEOF
26897/* end confdefs.h. */
26898#include <typeinfo>
26899class Base { public : Base () {} virtual void f () = 0; };
26900class Derived : public Base { public : Derived () {} virtual void f () {} };
26901int g (Derived&) { return 0; }
26902int
26903main ()
26904{
26905
26906Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
26907 ;
26908 return 0;
26909}
26910_ACEOF
26911rm -f conftest.$ac_objext
47964710
VS
26912if { (ac_try="$ac_compile"
26913case "(($ac_try" in
26914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915 *) ac_try_echo=$ac_try;;
26916esac
26917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26918 (eval "$ac_compile") 2>conftest.er1
a848cd7e 26919 ac_status=$?
ac1cb8d3
VS
26920 grep -v '^ *+' conftest.er1 >conftest.err
26921 rm -f conftest.er1
26922 cat conftest.err >&5
a848cd7e 26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26924 (exit $ac_status); } && {
26925 test -z "$ac_cxx_werror_flag" ||
26926 test ! -s conftest.err
26927 } && test -s conftest.$ac_objext; then
a848cd7e
SC
26928 ac_cv_cxx_static_cast=yes
26929else
26930 echo "$as_me: failed program was:" >&5
26931sed 's/^/| /' conftest.$ac_ext >&5
26932
47964710 26933 ac_cv_cxx_static_cast=no
a848cd7e 26934fi
47964710
VS
26935
26936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
26937 ac_ext=c
26938ac_cpp='$CPP $CPPFLAGS'
26939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26941ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
26942
26943
26944fi
47964710
VS
26945{ echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
26946echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
a848cd7e
SC
26947if test "$ac_cv_cxx_static_cast" = yes; then
26948
26949cat >>confdefs.h <<\_ACEOF
26950#define HAVE_STATIC_CAST
26951_ACEOF
26952
26953fi
26954
26955
3c28b7cb 26956if test "x$SUNCXX" = xyes; then
c92ad099 26957 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
26958fi
26959
9122d155 26960if test "x$SUNCC" = xyes; then
c92ad099 26961 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
26962fi
26963
0ad5d837 26964if test "x$SGICC" = "xyes"; then
c92ad099 26965 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
26966fi
26967if test "x$SGICXX" = "xyes"; then
c92ad099 26968 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
26969fi
26970
2eef8513 26971if test "x$HPCC" = "xyes"; then
c92ad099 26972 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
26973fi
26974if test "x$HPCXX" = "xyes"; then
c92ad099 26975 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
26976fi
26977
26978if test "x$COMPAQCXX" = "xyes"; then
26979 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
26980fi
26981
47964710 26982ac_ext=cpp
9b8888f9
VZ
26983ac_cpp='$CXXCPP $CPPFLAGS'
26984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26987
26988
f56c22b4 26989if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
26990 if test "$wxUSE_UNICODE" = "yes"; then
26991 std_string="std::wstring"
26992 char_type="wchar_t"
26993 else
26994 std_string="std::string"
26995 char_type="char"
26996 fi
26997
47964710
VS
26998 { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
26999echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
9b8888f9
VZ
27000if test "${wx_cv_class_stdstring+set}" = set; then
27001 echo $ECHO_N "(cached) $ECHO_C" >&6
27002else
27003
27004 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27005/* confdefs.h. */
27006_ACEOF
27007cat confdefs.h >>conftest.$ac_ext
27008cat >>conftest.$ac_ext <<_ACEOF
27009/* end confdefs.h. */
27010#include <string>
a848cd7e
SC
27011int
27012main ()
27013{
f56c22b4 27014$std_string foo;
a848cd7e
SC
27015 ;
27016 return 0;
27017}
27018_ACEOF
27019rm -f conftest.$ac_objext
47964710
VS
27020if { (ac_try="$ac_compile"
27021case "(($ac_try" in
27022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27023 *) ac_try_echo=$ac_try;;
27024esac
27025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27026 (eval "$ac_compile") 2>conftest.er1
a848cd7e 27027 ac_status=$?
ac1cb8d3
VS
27028 grep -v '^ *+' conftest.er1 >conftest.err
27029 rm -f conftest.er1
27030 cat conftest.err >&5
a848cd7e 27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27032 (exit $ac_status); } && {
27033 test -z "$ac_cxx_werror_flag" ||
27034 test ! -s conftest.err
27035 } && test -s conftest.$ac_objext; then
9b8888f9 27036 wx_cv_class_stdstring=yes
a848cd7e
SC
27037else
27038 echo "$as_me: failed program was:" >&5
27039sed 's/^/| /' conftest.$ac_ext >&5
27040
47964710 27041 wx_cv_class_stdstring=no
9b8888f9
VZ
27042
27043fi
47964710
VS
27044
27045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
27046
27047
27048fi
47964710
VS
27049{ echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
27050echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
9b8888f9
VZ
27051
27052 if test "$wx_cv_class_stdstring" = yes; then
27053 if test "$wxUSE_UNICODE" = "yes"; then
27054 cat >>confdefs.h <<\_ACEOF
27055#define HAVE_STD_WSTRING 1
27056_ACEOF
27057
27058 fi
27059 else
47964710
VS
27060 { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
27061echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
9b8888f9
VZ
27062if test "${wx_cv_class_stdbasicstring+set}" = set; then
27063 echo $ECHO_N "(cached) $ECHO_C" >&6
27064else
27065
27066 cat >conftest.$ac_ext <<_ACEOF
0a08f02a
MB
27067/* confdefs.h. */
27068_ACEOF
27069cat confdefs.h >>conftest.$ac_ext
27070cat >>conftest.$ac_ext <<_ACEOF
27071/* end confdefs.h. */
27072
9b8888f9
VZ
27073 #ifdef HAVE_WCHAR_H
27074 # ifdef __CYGWIN__
27075 # include <stddef.h>
27076 # endif
27077 # include <wchar.h>
27078 #endif
27079 #ifdef HAVE_STDLIB_H
27080 # include <stdlib.h>
27081 #endif
27082 #include <stdio.h>
27083 #include <string>
0a08f02a
MB
27084
27085int
27086main ()
27087{
f56c22b4 27088std::basic_string<$char_type> foo;
9b8888f9 27089 const $char_type* dummy = foo.c_str();
0a08f02a
MB
27090 ;
27091 return 0;
27092}
27093_ACEOF
27094rm -f conftest.$ac_objext
47964710
VS
27095if { (ac_try="$ac_compile"
27096case "(($ac_try" in
27097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27098 *) ac_try_echo=$ac_try;;
27099esac
27100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27101 (eval "$ac_compile") 2>conftest.er1
0a08f02a
MB
27102 ac_status=$?
27103 grep -v '^ *+' conftest.er1 >conftest.err
27104 rm -f conftest.er1
27105 cat conftest.err >&5
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27107 (exit $ac_status); } && {
27108 test -z "$ac_cxx_werror_flag" ||
27109 test ! -s conftest.err
27110 } && test -s conftest.$ac_objext; then
9b8888f9 27111 wx_cv_class_stdbasicstring=yes
0a08f02a
MB
27112else
27113 echo "$as_me: failed program was:" >&5
27114sed 's/^/| /' conftest.$ac_ext >&5
27115
47964710 27116 wx_cv_class_stdbasicstring=no
0a08f02a 27117
a848cd7e 27118fi
47964710
VS
27119
27120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 27121
9b8888f9 27122
0a08f02a 27123fi
47964710
VS
27124{ echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
27125echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
9b8888f9
VZ
27126
27127 if test "$wx_cv_class_stdbasicstring" != yes; then
27128 if test "$wxUSE_STL" = "yes"; then
27129 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
27130echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
27131 { (exit 1); exit 1; }; }
27132 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
27133 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
27134echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
27135 { (exit 1); exit 1; }; }
27136 else
27137 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
27138echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
27139 wxUSE_STD_STRING=no
27140 fi
27141 fi
27142 fi
f56c22b4
MW
27143fi
27144
27145if test "$wxUSE_STD_IOSTREAM" = "yes"; then
47964710
VS
27146 { echo "$as_me:$LINENO: checking for std::istream" >&5
27147echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
f56c22b4
MW
27148if test "${ac_cv_type_std__istream+set}" = set; then
27149 echo $ECHO_N "(cached) $ECHO_C" >&6
27150else
27151 cat >conftest.$ac_ext <<_ACEOF
27152/* confdefs.h. */
27153_ACEOF
27154cat confdefs.h >>conftest.$ac_ext
27155cat >>conftest.$ac_ext <<_ACEOF
27156/* end confdefs.h. */
27157#include <iostream>
27158
47964710 27159typedef std::istream ac__type_new_;
f56c22b4
MW
27160int
27161main ()
27162{
47964710 27163if ((ac__type_new_ *) 0)
f56c22b4 27164 return 0;
47964710 27165if (sizeof (ac__type_new_))
f56c22b4
MW
27166 return 0;
27167 ;
27168 return 0;
27169}
27170_ACEOF
27171rm -f conftest.$ac_objext
47964710
VS
27172if { (ac_try="$ac_compile"
27173case "(($ac_try" in
27174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175 *) ac_try_echo=$ac_try;;
27176esac
27177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27178 (eval "$ac_compile") 2>conftest.er1
f56c22b4
MW
27179 ac_status=$?
27180 grep -v '^ *+' conftest.er1 >conftest.err
27181 rm -f conftest.er1
27182 cat conftest.err >&5
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27184 (exit $ac_status); } && {
27185 test -z "$ac_cxx_werror_flag" ||
27186 test ! -s conftest.err
27187 } && test -s conftest.$ac_objext; then
f56c22b4
MW
27188 ac_cv_type_std__istream=yes
27189else
27190 echo "$as_me: failed program was:" >&5
27191sed 's/^/| /' conftest.$ac_ext >&5
27192
47964710 27193 ac_cv_type_std__istream=no
f56c22b4 27194fi
47964710
VS
27195
27196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4 27197fi
47964710
VS
27198{ echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
27199echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
f56c22b4
MW
27200if test $ac_cv_type_std__istream = yes; then
27201
27202cat >>confdefs.h <<_ACEOF
27203#define HAVE_STD__ISTREAM 1
27204_ACEOF
27205
27206
27207else
27208 wxUSE_STD_IOSTREAM=no
27209fi
47964710
VS
27210{ echo "$as_me:$LINENO: checking for std::ostream" >&5
27211echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
f56c22b4
MW
27212if test "${ac_cv_type_std__ostream+set}" = set; then
27213 echo $ECHO_N "(cached) $ECHO_C" >&6
27214else
27215 cat >conftest.$ac_ext <<_ACEOF
27216/* confdefs.h. */
27217_ACEOF
27218cat confdefs.h >>conftest.$ac_ext
27219cat >>conftest.$ac_ext <<_ACEOF
27220/* end confdefs.h. */
27221#include <iostream>
27222
47964710 27223typedef std::ostream ac__type_new_;
f56c22b4
MW
27224int
27225main ()
27226{
47964710 27227if ((ac__type_new_ *) 0)
f56c22b4 27228 return 0;
47964710 27229if (sizeof (ac__type_new_))
f56c22b4
MW
27230 return 0;
27231 ;
27232 return 0;
27233}
27234_ACEOF
27235rm -f conftest.$ac_objext
47964710
VS
27236if { (ac_try="$ac_compile"
27237case "(($ac_try" in
27238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27239 *) ac_try_echo=$ac_try;;
27240esac
27241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27242 (eval "$ac_compile") 2>conftest.er1
f56c22b4
MW
27243 ac_status=$?
27244 grep -v '^ *+' conftest.er1 >conftest.err
27245 rm -f conftest.er1
27246 cat conftest.err >&5
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27248 (exit $ac_status); } && {
27249 test -z "$ac_cxx_werror_flag" ||
27250 test ! -s conftest.err
27251 } && test -s conftest.$ac_objext; then
f56c22b4
MW
27252 ac_cv_type_std__ostream=yes
27253else
27254 echo "$as_me: failed program was:" >&5
27255sed 's/^/| /' conftest.$ac_ext >&5
27256
47964710 27257 ac_cv_type_std__ostream=no
f56c22b4 27258fi
47964710
VS
27259
27260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4 27261fi
47964710
VS
27262{ echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
27263echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
f56c22b4
MW
27264if test $ac_cv_type_std__ostream = yes; then
27265
27266cat >>confdefs.h <<_ACEOF
27267#define HAVE_STD__OSTREAM 1
27268_ACEOF
27269
27270
27271else
27272 wxUSE_STD_IOSTREAM=no
27273fi
27274
27275
27276 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
27277 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
27278 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
27279echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
27280 { (exit 1); exit 1; }; }
27281 else
27282 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 27283echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 27284 fi
f56c22b4 27285 fi
0a08f02a
MB
27286fi
27287
27288if test "$wxUSE_STL" = "yes"; then
47964710
VS
27289 { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
27290echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
9b8888f9
VZ
27291if test "${wx_cv_lib_stl+set}" = set; then
27292 echo $ECHO_N "(cached) $ECHO_C" >&6
27293else
27294 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27295/* confdefs.h. */
27296_ACEOF
27297cat confdefs.h >>conftest.$ac_ext
27298cat >>conftest.$ac_ext <<_ACEOF
27299/* end confdefs.h. */
27300#include <string>
9b8888f9
VZ
27301 #include <functional>
27302 #include <algorithm>
27303 #include <vector>
27304 #include <list>
a848cd7e
SC
27305int
27306main ()
27307{
0a08f02a 27308std::vector<int> moo;
9b8888f9
VZ
27309 std::list<int> foo;
27310 std::vector<int>::iterator it =
27311 std::find_if(moo.begin(), moo.end(),
27312 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
27313 ;
27314 return 0;
27315}
27316_ACEOF
27317rm -f conftest.$ac_objext
47964710
VS
27318if { (ac_try="$ac_compile"
27319case "(($ac_try" in
27320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321 *) ac_try_echo=$ac_try;;
27322esac
27323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324 (eval "$ac_compile") 2>conftest.er1
a848cd7e 27325 ac_status=$?
ac1cb8d3
VS
27326 grep -v '^ *+' conftest.er1 >conftest.err
27327 rm -f conftest.er1
27328 cat conftest.err >&5
a848cd7e 27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27330 (exit $ac_status); } && {
27331 test -z "$ac_cxx_werror_flag" ||
27332 test ! -s conftest.err
27333 } && test -s conftest.$ac_objext; then
9b8888f9 27334 wx_cv_lib_stl=yes
a848cd7e
SC
27335else
27336 echo "$as_me: failed program was:" >&5
27337sed 's/^/| /' conftest.$ac_ext >&5
27338
47964710 27339 wx_cv_lib_stl=no
9b8888f9 27340
a848cd7e 27341fi
47964710
VS
27342
27343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 27344
9b8888f9 27345fi
47964710
VS
27346{ echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
27347echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
9b8888f9
VZ
27348
27349 if test "$wx_cv_lib_stl" != yes; then
27350 { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
27351echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
27352 { (exit 1); exit 1; }; }
27353 fi
27354
47964710
VS
27355 { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
27356echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
9b8888f9
VZ
27357if test "${wx_cv_func_stdstring_compare+set}" = set; then
27358 echo $ECHO_N "(cached) $ECHO_C" >&6
27359else
27360 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27361/* confdefs.h. */
27362_ACEOF
27363cat confdefs.h >>conftest.$ac_ext
27364cat >>conftest.$ac_ext <<_ACEOF
27365/* end confdefs.h. */
27366#include <string>
27367int
27368main ()
27369{
27370std::string foo, bar;
9b8888f9
VZ
27371 foo.compare(bar);
27372 foo.compare(1, 1, bar);
27373 foo.compare(1, 1, bar, 1, 1);
27374 foo.compare("");
27375 foo.compare(1, 1, "");
27376 foo.compare(1, 1, "", 2);
a848cd7e
SC
27377 ;
27378 return 0;
27379}
27380_ACEOF
27381rm -f conftest.$ac_objext
47964710
VS
27382if { (ac_try="$ac_compile"
27383case "(($ac_try" in
27384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27385 *) ac_try_echo=$ac_try;;
27386esac
27387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27388 (eval "$ac_compile") 2>conftest.er1
a848cd7e 27389 ac_status=$?
ac1cb8d3
VS
27390 grep -v '^ *+' conftest.er1 >conftest.err
27391 rm -f conftest.er1
27392 cat conftest.err >&5
a848cd7e 27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27394 (exit $ac_status); } && {
27395 test -z "$ac_cxx_werror_flag" ||
27396 test ! -s conftest.err
27397 } && test -s conftest.$ac_objext; then
9b8888f9 27398 wx_cv_func_stdstring_compare=yes
a848cd7e
SC
27399else
27400 echo "$as_me: failed program was:" >&5
27401sed 's/^/| /' conftest.$ac_ext >&5
27402
47964710 27403 wx_cv_func_stdstring_compare=no
9b8888f9 27404
a848cd7e 27405fi
47964710
VS
27406
27407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 27408
9b8888f9 27409fi
47964710
VS
27410{ echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
27411echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
9b8888f9
VZ
27412
27413 if test "$wx_cv_func_stdstring_compare" = yes; then
27414 cat >>confdefs.h <<\_ACEOF
27415#define HAVE_STD_STRING_COMPARE 1
27416_ACEOF
27417
27418 fi
27419
47964710
VS
27420 { echo "$as_me:$LINENO: checking for hash_map" >&5
27421echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
bdcade0a
MB
27422if test "${ac_cv_header_hash_map+set}" = set; then
27423 echo $ECHO_N "(cached) $ECHO_C" >&6
bdcade0a 27424else
6e7b8bcb 27425 cat >conftest.$ac_ext <<_ACEOF
bdcade0a
MB
27426/* confdefs.h. */
27427_ACEOF
27428cat confdefs.h >>conftest.$ac_ext
27429cat >>conftest.$ac_ext <<_ACEOF
27430/* end confdefs.h. */
6e7b8bcb
PC
27431
27432
27433
bdcade0a
MB
27434#include <hash_map>
27435_ACEOF
27436rm -f conftest.$ac_objext
47964710
VS
27437if { (ac_try="$ac_compile"
27438case "(($ac_try" in
27439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27440 *) ac_try_echo=$ac_try;;
27441esac
27442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27443 (eval "$ac_compile") 2>conftest.er1
bdcade0a 27444 ac_status=$?
ac1cb8d3
VS
27445 grep -v '^ *+' conftest.er1 >conftest.err
27446 rm -f conftest.er1
27447 cat conftest.err >&5
bdcade0a 27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27449 (exit $ac_status); } && {
27450 test -z "$ac_cxx_werror_flag" ||
27451 test ! -s conftest.err
27452 } && test -s conftest.$ac_objext; then
6e7b8bcb 27453 ac_cv_header_hash_map=yes
bdcade0a
MB
27454else
27455 echo "$as_me: failed program was:" >&5
27456sed 's/^/| /' conftest.$ac_ext >&5
27457
47964710 27458 ac_cv_header_hash_map=no
bdcade0a 27459fi
47964710
VS
27460
27461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 27462fi
47964710
VS
27463{ echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
27464echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
bdcade0a 27465if test $ac_cv_header_hash_map = yes; then
47964710
VS
27466 { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
27467echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
9b8888f9
VZ
27468if test "${wx_cv_class_stdhashmapset+set}" = set; then
27469 echo $ECHO_N "(cached) $ECHO_C" >&6
27470else
27471 cat >conftest.$ac_ext <<_ACEOF
bdcade0a
MB
27472/* confdefs.h. */
27473_ACEOF
27474cat confdefs.h >>conftest.$ac_ext
27475cat >>conftest.$ac_ext <<_ACEOF
27476/* end confdefs.h. */
27477#include <hash_map>
9b8888f9 27478 #include <hash_set>
bdcade0a
MB
27479int
27480main ()
27481{
27482std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
9b8888f9 27483 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
bdcade0a
MB
27484 ;
27485 return 0;
27486}
27487_ACEOF
27488rm -f conftest.$ac_objext
47964710
VS
27489if { (ac_try="$ac_compile"
27490case "(($ac_try" in
27491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492 *) ac_try_echo=$ac_try;;
27493esac
27494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495 (eval "$ac_compile") 2>conftest.er1
bdcade0a 27496 ac_status=$?
ac1cb8d3
VS
27497 grep -v '^ *+' conftest.er1 >conftest.err
27498 rm -f conftest.er1
27499 cat conftest.err >&5
bdcade0a 27500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27501 (exit $ac_status); } && {
27502 test -z "$ac_cxx_werror_flag" ||
27503 test ! -s conftest.err
27504 } && test -s conftest.$ac_objext; then
9b8888f9 27505 wx_cv_class_stdhashmapset=yes
bdcade0a
MB
27506else
27507 echo "$as_me: failed program was:" >&5
27508sed 's/^/| /' conftest.$ac_ext >&5
27509
47964710 27510 wx_cv_class_stdhashmapset=no
bdcade0a 27511fi
47964710
VS
27512
27513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 27514
9b8888f9
VZ
27515
27516fi
47964710
VS
27517{ echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
27518echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
bdcade0a
MB
27519fi
27520
27521
27522
9b8888f9
VZ
27523 if test "$wx_cv_class_stdhashmapset" = yes; then
27524 cat >>confdefs.h <<\_ACEOF
27525#define HAVE_HASH_MAP 1
27526_ACEOF
27527
27528 cat >>confdefs.h <<\_ACEOF
27529#define HAVE_STD_HASH_MAP 1
27530_ACEOF
27531
27532 fi
27533
47964710
VS
27534 { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
27535echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
bdcade0a
MB
27536if test "${ac_cv_header_ext_hash_map+set}" = set; then
27537 echo $ECHO_N "(cached) $ECHO_C" >&6
bdcade0a 27538else
6e7b8bcb 27539 cat >conftest.$ac_ext <<_ACEOF
bdcade0a
MB
27540/* confdefs.h. */
27541_ACEOF
27542cat confdefs.h >>conftest.$ac_ext
27543cat >>conftest.$ac_ext <<_ACEOF
27544/* end confdefs.h. */
6e7b8bcb
PC
27545
27546
27547
bdcade0a
MB
27548#include <ext/hash_map>
27549_ACEOF
27550rm -f conftest.$ac_objext
47964710
VS
27551if { (ac_try="$ac_compile"
27552case "(($ac_try" in
27553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27554 *) ac_try_echo=$ac_try;;
27555esac
27556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27557 (eval "$ac_compile") 2>conftest.er1
bdcade0a 27558 ac_status=$?
ac1cb8d3
VS
27559 grep -v '^ *+' conftest.er1 >conftest.err
27560 rm -f conftest.er1
27561 cat conftest.err >&5
bdcade0a 27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27563 (exit $ac_status); } && {
27564 test -z "$ac_cxx_werror_flag" ||
27565 test ! -s conftest.err
27566 } && test -s conftest.$ac_objext; then
6e7b8bcb 27567 ac_cv_header_ext_hash_map=yes
bdcade0a
MB
27568else
27569 echo "$as_me: failed program was:" >&5
27570sed 's/^/| /' conftest.$ac_ext >&5
27571
47964710 27572 ac_cv_header_ext_hash_map=no
bdcade0a 27573fi
47964710
VS
27574
27575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 27576fi
47964710
VS
27577{ echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
27578echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
bdcade0a 27579if test $ac_cv_header_ext_hash_map = yes; then
47964710
VS
27580 { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
27581echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
9b8888f9
VZ
27582if test "${wx_cv_class_gnuhashmapset+set}" = set; then
27583 echo $ECHO_N "(cached) $ECHO_C" >&6
27584else
27585 cat >conftest.$ac_ext <<_ACEOF
bdcade0a
MB
27586/* confdefs.h. */
27587_ACEOF
27588cat confdefs.h >>conftest.$ac_ext
27589cat >>conftest.$ac_ext <<_ACEOF
27590/* end confdefs.h. */
27591#include <ext/hash_map>
9b8888f9 27592 #include <ext/hash_set>
bdcade0a
MB
27593int
27594main ()
27595{
27596__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
9b8888f9 27597 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
bdcade0a
MB
27598 ;
27599 return 0;
27600}
27601_ACEOF
27602rm -f conftest.$ac_objext
47964710
VS
27603if { (ac_try="$ac_compile"
27604case "(($ac_try" in
27605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27606 *) ac_try_echo=$ac_try;;
27607esac
27608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27609 (eval "$ac_compile") 2>conftest.er1
bdcade0a 27610 ac_status=$?
ac1cb8d3
VS
27611 grep -v '^ *+' conftest.er1 >conftest.err
27612 rm -f conftest.er1
27613 cat conftest.err >&5
bdcade0a 27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27615 (exit $ac_status); } && {
27616 test -z "$ac_cxx_werror_flag" ||
27617 test ! -s conftest.err
27618 } && test -s conftest.$ac_objext; then
9b8888f9 27619 wx_cv_class_gnuhashmapset=yes
bdcade0a
MB
27620else
27621 echo "$as_me: failed program was:" >&5
27622sed 's/^/| /' conftest.$ac_ext >&5
27623
47964710 27624 wx_cv_class_gnuhashmapset=no
bdcade0a 27625fi
47964710
VS
27626
27627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 27628
9b8888f9 27629
bdcade0a 27630fi
47964710
VS
27631{ echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
27632echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
9b8888f9
VZ
27633fi
27634
bdcade0a
MB
27635
27636
9b8888f9
VZ
27637 if test "$wx_cv_class_gnuhashmapset" = yes; then
27638 cat >>confdefs.h <<\_ACEOF
27639#define HAVE_EXT_HASH_MAP 1
27640_ACEOF
27641
27642 cat >>confdefs.h <<\_ACEOF
27643#define HAVE_GNU_CXX_HASH_MAP 1
27644_ACEOF
27645
27646 fi
a848cd7e
SC
27647fi
27648
47964710
VS
27649
27650
27651 if test -n "$GCC"; then
27652 { echo "$as_me:$LINENO: checking for __sync_fetch_* builtins" >&5
27653echo $ECHO_N "checking for __sync_fetch_* builtins... $ECHO_C" >&6; }
27654 if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
27655 echo $ECHO_N "(cached) $ECHO_C" >&6
27656else
27657
27658 cat >conftest.$ac_ext <<_ACEOF
27659/* confdefs.h. */
27660_ACEOF
27661cat confdefs.h >>conftest.$ac_ext
27662cat >>conftest.$ac_ext <<_ACEOF
27663/* end confdefs.h. */
27664
27665int
27666main ()
27667{
27668
27669 int value=0;
27670 __sync_fetch_and_add(&value, 1);
27671 __sync_sub_and_fetch(&value, 1);
27672
27673 ;
27674 return 0;
27675}
27676_ACEOF
27677rm -f conftest.$ac_objext
27678if { (ac_try="$ac_compile"
27679case "(($ac_try" in
27680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681 *) ac_try_echo=$ac_try;;
27682esac
27683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684 (eval "$ac_compile") 2>conftest.er1
27685 ac_status=$?
27686 grep -v '^ *+' conftest.er1 >conftest.err
27687 rm -f conftest.er1
27688 cat conftest.err >&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); } && {
27691 test -z "$ac_cxx_werror_flag" ||
27692 test ! -s conftest.err
27693 } && test -s conftest.$ac_objext; then
27694 wx_cv_cc_gcc_atomic_builtins=yes
27695else
27696 echo "$as_me: failed program was:" >&5
27697sed 's/^/| /' conftest.$ac_ext >&5
27698
27699 wx_cv_cc_gcc_atomic_builtins=no
27700fi
27701
27702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27703
27704fi
27705
27706 { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
27707echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
27708 if test $wx_cv_cc_gcc_atomic_builtins = yes; then
27709 cat >>confdefs.h <<\_ACEOF
27710#define HAVE_GCC_ATOMIC_BUILTINS 1
27711_ACEOF
27712
27713 fi
27714 fi
27715
27716
9b8888f9
VZ
27717ac_ext=c
27718ac_cpp='$CPP $CPPFLAGS'
27719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27721ac_compiler_gnu=$ac_cv_c_compiler_gnu
27722
27723
a848cd7e
SC
27724
27725SEARCH_INCLUDE="\
27726 /usr/local/include \
27727 \
27728 /usr/Motif-2.1/include \
27729 /usr/Motif-1.2/include \
27730 /usr/include/Motif1.2 \
a848cd7e
SC
27731 \
27732 /usr/dt/include \
27733 /usr/openwin/include \
27734 \
27735 /usr/include/Xm \
27736 \
27737 /usr/X11R6/include \
27738 /usr/X11R6.4/include \
27739 /usr/X11R5/include \
27740 /usr/X11R4/include \
27741 \
27742 /usr/include/X11R6 \
27743 /usr/include/X11R5 \
27744 /usr/include/X11R4 \
27745 \
27746 /usr/local/X11R6/include \
27747 /usr/local/X11R5/include \
27748 /usr/local/X11R4/include \
27749 \
27750 /usr/local/include/X11R6 \
27751 /usr/local/include/X11R5 \
27752 /usr/local/include/X11R4 \
27753 \
27754 /usr/X11/include \
27755 /usr/include/X11 \
27756 /usr/local/X11/include \
27757 /usr/local/include/X11 \
27758 \
a848cd7e 27759 /usr/XFree86/include/X11 \
e051b34e
MW
27760 /usr/pkg/include \
27761 \
a848cd7e
SC
27762 /usr/openwin/share/include"
27763
47964710
VS
27764{ echo "$as_me:$LINENO: checking for libraries directory" >&5
27765echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
6f9cf1e6
MW
27766
27767case "${host}" in
27768 *-*-irix6* )
27769 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
27770 echo $ECHO_N "(cached) $ECHO_C" >&6
27771else
27772
c687b303
VZ
27773 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27774 for e in a so sl dylib dll.a; do
27775 libc="$d/libc.$e"
27776 if test -f $libc; then
27777 save_LIBS="$LIBS"
27778 LIBS="$libc"
27779 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
27780int main() { return 0; }
27781_ACEOF
27782rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
27783if { (ac_try="$ac_link"
27784case "(($ac_try" in
27785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27786 *) ac_try_echo=$ac_try;;
27787esac
27788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27789 (eval "$ac_link") 2>conftest.er1
0ad5d837
VZ
27790 ac_status=$?
27791 grep -v '^ *+' conftest.er1 >conftest.err
27792 rm -f conftest.er1
27793 cat conftest.err >&5
27794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27795 (exit $ac_status); } && {
27796 test -z "$ac_c_werror_flag" ||
27797 test ! -s conftest.err
27798 } && test -s conftest$ac_exeext &&
27799 $as_test_x conftest$ac_exeext; then
0ad5d837
VZ
27800 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27801else
27802 echo "$as_me: failed program was:" >&5
27803sed 's/^/| /' conftest.$ac_ext >&5
27804
47964710 27805
0ad5d837 27806fi
47964710
VS
27807
27808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0ad5d837 27809 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
27810 LIBS="$save_LIBS"
27811 if test "x$wx_cv_std_libpath" != "x"; then
27812 break 2
27813 fi
27814 fi
27815 done
27816 done
27817 if test "x$wx_cv_std_libpath" = "x"; then
27818 wx_cv_std_libpath="lib"
0ad5d837 27819 fi
0ad5d837
VZ
27820
27821
27822fi
6f9cf1e6
MW
27823
27824 ;;
27825
27826 *-*-solaris2* )
27827 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27828 wx_cv_std_libpath="lib/64"
27829 else
27830 wx_cv_std_libpath="lib"
27831 fi
27832 ;;
27833
27834 *-*-linux* )
27835 if test "$ac_cv_sizeof_void_p" = 8 -a \
27836 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27837 wx_cv_std_libpath="lib64"
27838 else
27839 wx_cv_std_libpath="lib"
27840 fi
c687b303
VZ
27841 ;;
27842
27843 *)
27844 wx_cv_std_libpath="lib";
27845 ;;
27846esac
0ad5d837 27847
47964710
VS
27848{ echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
27849echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
6f9cf1e6
MW
27850
27851SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 27852
3eca31dc
MW
27853if test "$build" != "$host" -a "$GCC" = yes; then
27854 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27855 cross_root=`dirname $cross_root`
27856 cross_root=`dirname $cross_root`
27857
27858 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27859 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 27860 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
27861
27862 if test -z "$PKG_CONFIG_PATH"; then
27863 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27864 export PKG_CONFIG_PATH
27865 fi
27866
27867 if test -z "$x_includes" -o "$x_includes" = NONE; then
27868
27869ac_find_includes=
27870for ac_dir in $SEARCH_INCLUDE /usr/include;
27871 do
27872 if test -f "$ac_dir/X11/Intrinsic.h"; then
27873 ac_find_includes=$ac_dir
27874 break
27875 fi
27876 done
27877
27878 x_includes=$ac_find_includes
27879 fi
27880 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27881
0ad5d837
VZ
27882 ac_find_libraries=
27883 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
27884 do
27885 for ac_extension in a so sl dylib dll.a; do
27886 if test -f "$ac_dir/libXt.$ac_extension"; then
27887 ac_find_libraries=$ac_dir
27888 break 2
27889 fi
27890 done
27891 done
27892
27893 x_libraries=$ac_find_libraries
27894 fi
27895 fi
27896fi
27897
a848cd7e
SC
27898
27899cat >confcache <<\_ACEOF
27900# This file is a shell script that caches the results of configure
27901# tests run on this system so they can be shared between configure
27902# scripts and configure runs, see configure's option --config-cache.
27903# It is not useful on other systems. If it contains results you don't
27904# want to keep, you may remove or edit it.
27905#
27906# config.status only pays attention to the cache file if you give it
27907# the --recheck option to rerun configure.
27908#
27909# `ac_cv_env_foo' variables (set or unset) will be overridden when
27910# loading this file, other *unset* `ac_cv_foo' will be assigned the
27911# following values.
27912
27913_ACEOF
27914
27915# The following way of writing the cache mishandles newlines in values,
27916# but we know of no workaround that is simple, portable, and efficient.
47964710 27917# So, we kill variables containing newlines.
a848cd7e
SC
27918# Ultrix sh set writes to stderr and can't be redirected directly,
27919# and sets the high bit in the cache file unless we assign to the vars.
47964710
VS
27920(
27921 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27922 eval ac_val=\$$ac_var
27923 case $ac_val in #(
27924 *${as_nl}*)
27925 case $ac_var in #(
27926 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27927echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27928 esac
27929 case $ac_var in #(
27930 _ | IFS | as_nl) ;; #(
27931 *) $as_unset $ac_var ;;
27932 esac ;;
27933 esac
27934 done
27935
a848cd7e 27936 (set) 2>&1 |
47964710
VS
27937 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27938 *${as_nl}ac_space=\ *)
a848cd7e
SC
27939 # `set' does not quote correctly, so add quotes (double-quote
27940 # substitution turns \\\\ into \\, and sed turns \\ into \).
27941 sed -n \
ac1cb8d3
VS
27942 "s/'/'\\\\''/g;
27943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47964710 27944 ;; #(
a848cd7e
SC
27945 *)
27946 # `set' quotes correctly as required by POSIX, so do not add quotes.
47964710 27947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
a848cd7e 27948 ;;
47964710
VS
27949 esac |
27950 sort
27951) |
a848cd7e 27952 sed '
47964710 27953 /^ac_cv_env_/b end
a848cd7e 27954 t clear
47964710 27955 :clear
a848cd7e
SC
27956 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27957 t end
47964710
VS
27958 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27959 :end' >>confcache
27960if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27961 if test -w "$cache_file"; then
27962 test "x$cache_file" != "x/dev/null" &&
27963 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27964echo "$as_me: updating cache $cache_file" >&6;}
a848cd7e
SC
27965 cat confcache >$cache_file
27966 else
47964710
VS
27967 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27968echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a848cd7e
SC
27969 fi
27970fi
27971rm -f confcache
27972
27973if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
47964710
VS
27974 { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27975echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
a848cd7e
SC
27976if test "${wx_cv_lib_glibc21+set}" = set; then
27977 echo $ECHO_N "(cached) $ECHO_C" >&6
27978else
27979
27980 cat >conftest.$ac_ext <<_ACEOF
27981/* confdefs.h. */
27982_ACEOF
27983cat confdefs.h >>conftest.$ac_ext
27984cat >>conftest.$ac_ext <<_ACEOF
27985/* end confdefs.h. */
27986#include <features.h>
27987int
27988main ()
27989{
27990
27991 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 27992 not glibc 2.1
a848cd7e
SC
27993 #endif
27994
27995 ;
27996 return 0;
27997}
27998_ACEOF
27999rm -f conftest.$ac_objext
47964710
VS
28000if { (ac_try="$ac_compile"
28001case "(($ac_try" in
28002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003 *) ac_try_echo=$ac_try;;
28004esac
28005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28006 (eval "$ac_compile") 2>conftest.er1
a848cd7e 28007 ac_status=$?
ac1cb8d3
VS
28008 grep -v '^ *+' conftest.er1 >conftest.err
28009 rm -f conftest.er1
28010 cat conftest.err >&5
a848cd7e 28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28012 (exit $ac_status); } && {
28013 test -z "$ac_c_werror_flag" ||
28014 test ! -s conftest.err
28015 } && test -s conftest.$ac_objext; then
a848cd7e
SC
28016
28017 wx_cv_lib_glibc21=yes
28018
28019else
28020 echo "$as_me: failed program was:" >&5
28021sed 's/^/| /' conftest.$ac_ext >&5
28022
28023
28024 wx_cv_lib_glibc21=no
28025
28026
28027fi
47964710
VS
28028
28029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28030
28031fi
47964710
VS
28032{ echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
28033echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
a848cd7e
SC
28034 if test "$wx_cv_lib_glibc21" = "yes"; then
28035 cat >>confdefs.h <<\_ACEOF
28036#define wxHAVE_GLIBC2 1
28037_ACEOF
28038
28039 fi
28040fi
28041
28042if test "x$wx_cv_lib_glibc21" = "xyes"; then
28043 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
28044 cat >>confdefs.h <<\_ACEOF
28045#define _GNU_SOURCE 1
28046_ACEOF
28047
28048 fi
28049fi
28050
5d7b7554
VZ
28051have_cos=0
28052have_floor=0
a848cd7e 28053
5d7b7554
VZ
28054for ac_func in cos
28055do
28056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
28057{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28059if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5d7b7554
VZ
28060 echo $ECHO_N "(cached) $ECHO_C" >&6
28061else
28062 cat >conftest.$ac_ext <<_ACEOF
28063/* confdefs.h. */
28064_ACEOF
28065cat confdefs.h >>conftest.$ac_ext
28066cat >>conftest.$ac_ext <<_ACEOF
28067/* end confdefs.h. */
28068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28070#define $ac_func innocuous_$ac_func
28071
28072/* System header to define __stub macros and hopefully few prototypes,
28073 which can conflict with char $ac_func (); below.
28074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28075 <limits.h> exists even on freestanding compilers. */
28076
28077#ifdef __STDC__
28078# include <limits.h>
28079#else
28080# include <assert.h>
28081#endif
28082
28083#undef $ac_func
28084
47964710
VS
28085/* Override any GCC internal prototype to avoid an error.
28086 Use char because int might match the return type of a GCC
28087 builtin and then its argument prototype would still apply. */
5d7b7554
VZ
28088#ifdef __cplusplus
28089extern "C"
7fd3acaf
RD
28090#endif
28091char $ac_func ();
28092/* The GNU C library defines this for functions which it implements
28093 to always fail with ENOSYS. Some functions are actually named
28094 something starting with __ and the normal name is an alias. */
47964710 28095#if defined __stub_$ac_func || defined __stub___$ac_func
7fd3acaf
RD
28096choke me
28097#endif
28098
28099int
28100main ()
f321ab7f 28101{
47964710 28102return $ac_func ();
7fd3acaf
RD
28103 ;
28104 return 0;
28105}
28106_ACEOF
28107rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
28108if { (ac_try="$ac_link"
28109case "(($ac_try" in
28110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28111 *) ac_try_echo=$ac_try;;
28112esac
28113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28114 (eval "$ac_link") 2>conftest.er1
7fd3acaf
RD
28115 ac_status=$?
28116 grep -v '^ *+' conftest.er1 >conftest.err
28117 rm -f conftest.er1
28118 cat conftest.err >&5
28119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28120 (exit $ac_status); } && {
28121 test -z "$ac_c_werror_flag" ||
28122 test ! -s conftest.err
28123 } && test -s conftest$ac_exeext &&
28124 $as_test_x conftest$ac_exeext; then
7fd3acaf
RD
28125 eval "$as_ac_var=yes"
28126else
28127 echo "$as_me: failed program was:" >&5
28128sed 's/^/| /' conftest.$ac_ext >&5
28129
47964710 28130 eval "$as_ac_var=no"
7fd3acaf 28131fi
47964710
VS
28132
28133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7fd3acaf
RD
28134 conftest$ac_exeext conftest.$ac_ext
28135fi
47964710
VS
28136ac_res=`eval echo '${'$as_ac_var'}'`
28137 { echo "$as_me:$LINENO: result: $ac_res" >&5
28138echo "${ECHO_T}$ac_res" >&6; }
7fd3acaf
RD
28139if test `eval echo '${'$as_ac_var'}'` = yes; then
28140 cat >>confdefs.h <<_ACEOF
28141#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28142_ACEOF
28143 have_cos=1
28144fi
28145done
28146
28147
28148for ac_func in floor
28149do
28150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
28151{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28153if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7fd3acaf
RD
28154 echo $ECHO_N "(cached) $ECHO_C" >&6
28155else
28156 cat >conftest.$ac_ext <<_ACEOF
28157/* confdefs.h. */
28158_ACEOF
28159cat confdefs.h >>conftest.$ac_ext
28160cat >>conftest.$ac_ext <<_ACEOF
28161/* end confdefs.h. */
28162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28164#define $ac_func innocuous_$ac_func
28165
28166/* System header to define __stub macros and hopefully few prototypes,
28167 which can conflict with char $ac_func (); below.
28168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28169 <limits.h> exists even on freestanding compilers. */
28170
28171#ifdef __STDC__
28172# include <limits.h>
28173#else
28174# include <assert.h>
5d7b7554 28175#endif
7fd3acaf
RD
28176
28177#undef $ac_func
28178
47964710
VS
28179/* Override any GCC internal prototype to avoid an error.
28180 Use char because int might match the return type of a GCC
28181 builtin and then its argument prototype would still apply. */
7fd3acaf
RD
28182#ifdef __cplusplus
28183extern "C"
28184#endif
5d7b7554
VZ
28185char $ac_func ();
28186/* The GNU C library defines this for functions which it implements
28187 to always fail with ENOSYS. Some functions are actually named
28188 something starting with __ and the normal name is an alias. */
47964710 28189#if defined __stub_$ac_func || defined __stub___$ac_func
5d7b7554 28190choke me
7fd3acaf
RD
28191#endif
28192
28193int
28194main ()
28195{
47964710 28196return $ac_func ();
7fd3acaf
RD
28197 ;
28198 return 0;
28199}
28200_ACEOF
28201rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
28202if { (ac_try="$ac_link"
28203case "(($ac_try" in
28204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28205 *) ac_try_echo=$ac_try;;
28206esac
28207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28208 (eval "$ac_link") 2>conftest.er1
7fd3acaf
RD
28209 ac_status=$?
28210 grep -v '^ *+' conftest.er1 >conftest.err
28211 rm -f conftest.er1
28212 cat conftest.err >&5
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28214 (exit $ac_status); } && {
28215 test -z "$ac_c_werror_flag" ||
28216 test ! -s conftest.err
28217 } && test -s conftest$ac_exeext &&
28218 $as_test_x conftest$ac_exeext; then
7fd3acaf
RD
28219 eval "$as_ac_var=yes"
28220else
28221 echo "$as_me: failed program was:" >&5
28222sed 's/^/| /' conftest.$ac_ext >&5
28223
47964710 28224 eval "$as_ac_var=no"
7fd3acaf 28225fi
47964710
VS
28226
28227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7fd3acaf
RD
28228 conftest$ac_exeext conftest.$ac_ext
28229fi
47964710
VS
28230ac_res=`eval echo '${'$as_ac_var'}'`
28231 { echo "$as_me:$LINENO: result: $ac_res" >&5
28232echo "${ECHO_T}$ac_res" >&6; }
7fd3acaf
RD
28233if test `eval echo '${'$as_ac_var'}'` = yes; then
28234 cat >>confdefs.h <<_ACEOF
28235#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28236_ACEOF
28237 have_floor=1
28238fi
28239done
28240
47964710
VS
28241{ echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
28242echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
7fd3acaf 28243if test "$have_cos" = 1 -a "$have_floor" = 1; then
47964710
VS
28244 { echo "$as_me:$LINENO: result: yes" >&5
28245echo "${ECHO_T}yes" >&6; }
7fd3acaf 28246else
47964710
VS
28247 { echo "$as_me:$LINENO: result: no" >&5
28248echo "${ECHO_T}no" >&6; }
7fd3acaf
RD
28249 LIBS="$LIBS -lm"
28250 # use different functions to avoid configure caching
28251 have_sin=0
28252 have_ceil=0
28253
28254for ac_func in sin
28255do
28256as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
28257{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28258echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28259if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7fd3acaf
RD
28260 echo $ECHO_N "(cached) $ECHO_C" >&6
28261else
28262 cat >conftest.$ac_ext <<_ACEOF
28263/* confdefs.h. */
28264_ACEOF
28265cat confdefs.h >>conftest.$ac_ext
28266cat >>conftest.$ac_ext <<_ACEOF
28267/* end confdefs.h. */
28268/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28270#define $ac_func innocuous_$ac_func
28271
28272/* System header to define __stub macros and hopefully few prototypes,
28273 which can conflict with char $ac_func (); below.
28274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28275 <limits.h> exists even on freestanding compilers. */
28276
28277#ifdef __STDC__
28278# include <limits.h>
f321ab7f 28279#else
7fd3acaf 28280# include <assert.h>
f321ab7f 28281#endif
7fd3acaf
RD
28282
28283#undef $ac_func
28284
47964710
VS
28285/* Override any GCC internal prototype to avoid an error.
28286 Use char because int might match the return type of a GCC
28287 builtin and then its argument prototype would still apply. */
f321ab7f 28288#ifdef __cplusplus
7fd3acaf
RD
28289extern "C"
28290#endif
28291char $ac_func ();
28292/* The GNU C library defines this for functions which it implements
28293 to always fail with ENOSYS. Some functions are actually named
28294 something starting with __ and the normal name is an alias. */
47964710 28295#if defined __stub_$ac_func || defined __stub___$ac_func
7fd3acaf 28296choke me
5d7b7554
VZ
28297#endif
28298
28299int
28300main ()
28301{
47964710 28302return $ac_func ();
5d7b7554
VZ
28303 ;
28304 return 0;
28305}
28306_ACEOF
28307rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
28308if { (ac_try="$ac_link"
28309case "(($ac_try" in
28310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28311 *) ac_try_echo=$ac_try;;
28312esac
28313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28314 (eval "$ac_link") 2>conftest.er1
5d7b7554
VZ
28315 ac_status=$?
28316 grep -v '^ *+' conftest.er1 >conftest.err
28317 rm -f conftest.er1
28318 cat conftest.err >&5
28319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28320 (exit $ac_status); } && {
28321 test -z "$ac_c_werror_flag" ||
28322 test ! -s conftest.err
28323 } && test -s conftest$ac_exeext &&
28324 $as_test_x conftest$ac_exeext; then
5d7b7554
VZ
28325 eval "$as_ac_var=yes"
28326else
28327 echo "$as_me: failed program was:" >&5
28328sed 's/^/| /' conftest.$ac_ext >&5
28329
47964710 28330 eval "$as_ac_var=no"
5d7b7554 28331fi
47964710
VS
28332
28333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5d7b7554
VZ
28334 conftest$ac_exeext conftest.$ac_ext
28335fi
47964710
VS
28336ac_res=`eval echo '${'$as_ac_var'}'`
28337 { echo "$as_me:$LINENO: result: $ac_res" >&5
28338echo "${ECHO_T}$ac_res" >&6; }
5d7b7554
VZ
28339if test `eval echo '${'$as_ac_var'}'` = yes; then
28340 cat >>confdefs.h <<_ACEOF
28341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28342_ACEOF
28343 have_sin=1
28344fi
28345done
28346
28347
28348for ac_func in ceil
28349do
28350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
28351{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28353if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5d7b7554
VZ
28354 echo $ECHO_N "(cached) $ECHO_C" >&6
28355else
28356 cat >conftest.$ac_ext <<_ACEOF
28357/* confdefs.h. */
28358_ACEOF
28359cat confdefs.h >>conftest.$ac_ext
28360cat >>conftest.$ac_ext <<_ACEOF
28361/* end confdefs.h. */
28362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28364#define $ac_func innocuous_$ac_func
28365
28366/* System header to define __stub macros and hopefully few prototypes,
28367 which can conflict with char $ac_func (); below.
28368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28369 <limits.h> exists even on freestanding compilers. */
28370
28371#ifdef __STDC__
28372# include <limits.h>
28373#else
28374# include <assert.h>
28375#endif
28376
28377#undef $ac_func
28378
47964710
VS
28379/* Override any GCC internal prototype to avoid an error.
28380 Use char because int might match the return type of a GCC
28381 builtin and then its argument prototype would still apply. */
5d7b7554
VZ
28382#ifdef __cplusplus
28383extern "C"
5d7b7554 28384#endif
5d7b7554
VZ
28385char $ac_func ();
28386/* The GNU C library defines this for functions which it implements
28387 to always fail with ENOSYS. Some functions are actually named
28388 something starting with __ and the normal name is an alias. */
47964710 28389#if defined __stub_$ac_func || defined __stub___$ac_func
5d7b7554 28390choke me
5d7b7554
VZ
28391#endif
28392
28393int
28394main ()
28395{
47964710 28396return $ac_func ();
5d7b7554
VZ
28397 ;
28398 return 0;
28399}
28400_ACEOF
28401rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
28402if { (ac_try="$ac_link"
28403case "(($ac_try" in
28404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405 *) ac_try_echo=$ac_try;;
28406esac
28407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408 (eval "$ac_link") 2>conftest.er1
5d7b7554
VZ
28409 ac_status=$?
28410 grep -v '^ *+' conftest.er1 >conftest.err
28411 rm -f conftest.er1
28412 cat conftest.err >&5
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28414 (exit $ac_status); } && {
28415 test -z "$ac_c_werror_flag" ||
28416 test ! -s conftest.err
28417 } && test -s conftest$ac_exeext &&
28418 $as_test_x conftest$ac_exeext; then
5d7b7554
VZ
28419 eval "$as_ac_var=yes"
28420else
28421 echo "$as_me: failed program was:" >&5
28422sed 's/^/| /' conftest.$ac_ext >&5
28423
47964710 28424 eval "$as_ac_var=no"
5d7b7554 28425fi
47964710
VS
28426
28427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5d7b7554
VZ
28428 conftest$ac_exeext conftest.$ac_ext
28429fi
47964710
VS
28430ac_res=`eval echo '${'$as_ac_var'}'`
28431 { echo "$as_me:$LINENO: result: $ac_res" >&5
28432echo "${ECHO_T}$ac_res" >&6; }
5d7b7554
VZ
28433if test `eval echo '${'$as_ac_var'}'` = yes; then
28434 cat >>confdefs.h <<_ACEOF
28435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28436_ACEOF
28437 have_ceil=1
28438fi
28439done
28440
47964710
VS
28441 { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
28442echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
5d7b7554 28443 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
47964710
VS
28444 { echo "$as_me:$LINENO: result: yes" >&5
28445echo "${ECHO_T}yes" >&6; }
5d7b7554 28446 else
47964710
VS
28447 { echo "$as_me:$LINENO: result: no" >&5
28448echo "${ECHO_T}no" >&6; }
5d7b7554
VZ
28449 # not sure we should warn the user, crash, etc.
28450 fi
28451fi
28452
47964710 28453ac_ext=cpp
7fd3acaf
RD
28454ac_cpp='$CXXCPP $CPPFLAGS'
28455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28458
ec3edcc9
VZ
28459if test "wxUSE_UNICODE" = "yes"; then
28460
fd5199d6
VZ
28461 for wx_func in wcstoull
28462 do
47964710
VS
28463 { echo "$as_me:$LINENO: checking for $wx_func" >&5
28464echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28465if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
ec3edcc9
VZ
28466 echo $ECHO_N "(cached) $ECHO_C" >&6
28467else
fd5199d6
VZ
28468
28469 cat >conftest.$ac_ext <<_ACEOF
28470
28471 /* confdefs.h. */
ec3edcc9
VZ
28472_ACEOF
28473cat confdefs.h >>conftest.$ac_ext
28474cat >>conftest.$ac_ext <<_ACEOF
28475/* end confdefs.h. */
ec3edcc9 28476
ec3edcc9 28477
fd5199d6 28478 $ac_includes_default
ec3edcc9
VZ
28479
28480int
28481main ()
28482{
fd5199d6
VZ
28483
28484 #ifndef $wx_func
28485 &$wx_func;
28486 #endif
28487
28488
ec3edcc9
VZ
28489 ;
28490 return 0;
28491}
fd5199d6 28492
ec3edcc9
VZ
28493_ACEOF
28494rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
28495if { (ac_try="$ac_link"
28496case "(($ac_try" in
28497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28498 *) ac_try_echo=$ac_try;;
28499esac
28500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28501 (eval "$ac_link") 2>conftest.er1
ec3edcc9
VZ
28502 ac_status=$?
28503 grep -v '^ *+' conftest.er1 >conftest.err
28504 rm -f conftest.er1
28505 cat conftest.err >&5
28506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28507 (exit $ac_status); } && {
28508 test -z "$ac_cxx_werror_flag" ||
28509 test ! -s conftest.err
28510 } && test -s conftest$ac_exeext &&
28511 $as_test_x conftest$ac_exeext; then
fd5199d6 28512 eval wx_cv_func_$wx_func=yes
ec3edcc9
VZ
28513else
28514 echo "$as_me: failed program was:" >&5
28515sed 's/^/| /' conftest.$ac_ext >&5
28516
47964710 28517 eval wx_cv_func_$wx_func=no
ec3edcc9 28518fi
47964710
VS
28519
28520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54429bb3
RD
28521 conftest$ac_exeext conftest.$ac_ext
28522
28523fi
47964710
VS
28524ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28525 { echo "$as_me:$LINENO: result: $ac_res" >&5
28526echo "${ECHO_T}$ac_res" >&6; }
54429bb3
RD
28527
28528 if eval test \$wx_cv_func_$wx_func = yes
28529 then
28530 cat >>confdefs.h <<_ACEOF
1ad9ba14 28531#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
54429bb3
RD
28532_ACEOF
28533
28534
28535 else
28536 :
28537
28538 fi
28539 done
28540
28541else
28542
28543 for wx_func in strtoull
28544 do
47964710
VS
28545 { echo "$as_me:$LINENO: checking for $wx_func" >&5
28546echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28547if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
54429bb3
RD
28548 echo $ECHO_N "(cached) $ECHO_C" >&6
28549else
28550
28551 cat >conftest.$ac_ext <<_ACEOF
28552
28553 /* confdefs.h. */
28554_ACEOF
28555cat confdefs.h >>conftest.$ac_ext
28556cat >>conftest.$ac_ext <<_ACEOF
28557/* end confdefs.h. */
28558
28559
28560 $ac_includes_default
28561
28562int
28563main ()
28564{
28565
28566 #ifndef $wx_func
28567 &$wx_func;
28568 #endif
28569
28570
28571 ;
28572 return 0;
28573}
28574
28575_ACEOF
28576rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
28577if { (ac_try="$ac_link"
28578case "(($ac_try" in
28579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580 *) ac_try_echo=$ac_try;;
28581esac
28582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583 (eval "$ac_link") 2>conftest.er1
54429bb3
RD
28584 ac_status=$?
28585 grep -v '^ *+' conftest.er1 >conftest.err
28586 rm -f conftest.er1
28587 cat conftest.err >&5
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28589 (exit $ac_status); } && {
28590 test -z "$ac_cxx_werror_flag" ||
28591 test ! -s conftest.err
28592 } && test -s conftest$ac_exeext &&
28593 $as_test_x conftest$ac_exeext; then
54429bb3
RD
28594 eval wx_cv_func_$wx_func=yes
28595else
28596 echo "$as_me: failed program was:" >&5
28597sed 's/^/| /' conftest.$ac_ext >&5
28598
47964710 28599 eval wx_cv_func_$wx_func=no
54429bb3 28600fi
47964710
VS
28601
28602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ec3edcc9 28603 conftest$ac_exeext conftest.$ac_ext
fd5199d6 28604
ec3edcc9 28605fi
47964710
VS
28606ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28607 { echo "$as_me:$LINENO: result: $ac_res" >&5
28608echo "${ECHO_T}$ac_res" >&6; }
fd5199d6
VZ
28609
28610 if eval test \$wx_cv_func_$wx_func = yes
28611 then
28612 cat >>confdefs.h <<_ACEOF
1ad9ba14 28613#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
ec3edcc9
VZ
28614_ACEOF
28615
fd5199d6
VZ
28616
28617 else
28618 :
28619
28620 fi
28621 done
ec3edcc9
VZ
28622
28623fi
7fd3acaf
RD
28624ac_ext=c
28625ac_cpp='$CPP $CPPFLAGS'
28626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28628ac_compiler_gnu=$ac_cv_c_compiler_gnu
28629
ec3edcc9 28630
5d7b7554
VZ
28631
28632
28633if test "$wxUSE_REGEX" != "no"; then
28634 cat >>confdefs.h <<\_ACEOF
28635#define wxUSE_REGEX 1
28636_ACEOF
28637
28638
28639 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
28640 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
28641echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
28642 wxUSE_REGEX=builtin
28643 fi
28644
28645 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
47964710
VS
28646 { echo "$as_me:$LINENO: checking for regex.h" >&5
28647echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
5d7b7554
VZ
28648if test "${ac_cv_header_regex_h+set}" = set; then
28649 echo $ECHO_N "(cached) $ECHO_C" >&6
5d7b7554 28650else
6e7b8bcb 28651 cat >conftest.$ac_ext <<_ACEOF
5d7b7554
VZ
28652/* confdefs.h. */
28653_ACEOF
28654cat confdefs.h >>conftest.$ac_ext
28655cat >>conftest.$ac_ext <<_ACEOF
28656/* end confdefs.h. */
6e7b8bcb
PC
28657
28658
5d7b7554
VZ
28659#include <regex.h>
28660_ACEOF
28661rm -f conftest.$ac_objext
47964710
VS
28662if { (ac_try="$ac_compile"
28663case "(($ac_try" in
28664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665 *) ac_try_echo=$ac_try;;
28666esac
28667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668 (eval "$ac_compile") 2>conftest.er1
5d7b7554
VZ
28669 ac_status=$?
28670 grep -v '^ *+' conftest.er1 >conftest.err
28671 rm -f conftest.er1
28672 cat conftest.err >&5
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28674 (exit $ac_status); } && {
28675 test -z "$ac_c_werror_flag" ||
28676 test ! -s conftest.err
28677 } && test -s conftest.$ac_objext; then
6e7b8bcb 28678 ac_cv_header_regex_h=yes
5d7b7554
VZ
28679else
28680 echo "$as_me: failed program was:" >&5
28681sed 's/^/| /' conftest.$ac_ext >&5
28682
47964710 28683 ac_cv_header_regex_h=no
5d7b7554 28684fi
47964710
VS
28685
28686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554 28687fi
47964710
VS
28688{ echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28689echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
5d7b7554
VZ
28690if test $ac_cv_header_regex_h = yes; then
28691
28692
28693for ac_func in regcomp re_search
28694do
28695as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
28696{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28697echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28698if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5d7b7554
VZ
28699 echo $ECHO_N "(cached) $ECHO_C" >&6
28700else
28701 cat >conftest.$ac_ext <<_ACEOF
28702/* confdefs.h. */
28703_ACEOF
28704cat confdefs.h >>conftest.$ac_ext
28705cat >>conftest.$ac_ext <<_ACEOF
28706/* end confdefs.h. */
28707/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28709#define $ac_func innocuous_$ac_func
28710
28711/* System header to define __stub macros and hopefully few prototypes,
28712 which can conflict with char $ac_func (); below.
28713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28714 <limits.h> exists even on freestanding compilers. */
28715
28716#ifdef __STDC__
28717# include <limits.h>
28718#else
28719# include <assert.h>
28720#endif
28721
28722#undef $ac_func
28723
47964710
VS
28724/* Override any GCC internal prototype to avoid an error.
28725 Use char because int might match the return type of a GCC
28726 builtin and then its argument prototype would still apply. */
5d7b7554
VZ
28727#ifdef __cplusplus
28728extern "C"
5d7b7554 28729#endif
5d7b7554
VZ
28730char $ac_func ();
28731/* The GNU C library defines this for functions which it implements
28732 to always fail with ENOSYS. Some functions are actually named
28733 something starting with __ and the normal name is an alias. */
47964710 28734#if defined __stub_$ac_func || defined __stub___$ac_func
5d7b7554 28735choke me
5d7b7554
VZ
28736#endif
28737
28738int
28739main ()
28740{
47964710 28741return $ac_func ();
5d7b7554
VZ
28742 ;
28743 return 0;
28744}
28745_ACEOF
28746rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
28747if { (ac_try="$ac_link"
28748case "(($ac_try" in
28749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28750 *) ac_try_echo=$ac_try;;
28751esac
28752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28753 (eval "$ac_link") 2>conftest.er1
5d7b7554
VZ
28754 ac_status=$?
28755 grep -v '^ *+' conftest.er1 >conftest.err
28756 rm -f conftest.er1
28757 cat conftest.err >&5
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28759 (exit $ac_status); } && {
28760 test -z "$ac_c_werror_flag" ||
28761 test ! -s conftest.err
28762 } && test -s conftest$ac_exeext &&
28763 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
28764 eval "$as_ac_var=yes"
28765else
28766 echo "$as_me: failed program was:" >&5
28767sed 's/^/| /' conftest.$ac_ext >&5
28768
47964710 28769 eval "$as_ac_var=no"
a848cd7e 28770fi
47964710
VS
28771
28772rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 28773 conftest$ac_exeext conftest.$ac_ext
a848cd7e 28774fi
47964710
VS
28775ac_res=`eval echo '${'$as_ac_var'}'`
28776 { echo "$as_me:$LINENO: result: $ac_res" >&5
28777echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
28778if test `eval echo '${'$as_ac_var'}'` = yes; then
28779 cat >>confdefs.h <<_ACEOF
28780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28781_ACEOF
28782
28783fi
28784done
28785
28786fi
28787
28788
28789
28790 if test "x$ac_cv_func_regcomp" != "xyes"; then
28791 if test "$wxUSE_REGEX" = "sys" ; then
28792 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28793echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28794 { (exit 1); exit 1; }; }
28795 else
28796 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28797echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28798 wxUSE_REGEX=builtin
28799 fi
28800 else
28801 wxUSE_REGEX=sys
28802 cat >>confdefs.h <<\_ACEOF
28803#define WX_NO_REGEX_ADVANCED 1
28804_ACEOF
28805
28806 fi
28807 fi
28808fi
28809
28810
28811ZLIB_LINK=
28812if test "$wxUSE_ZLIB" != "no" ; then
28813 cat >>confdefs.h <<\_ACEOF
28814#define wxUSE_ZLIB 1
28815_ACEOF
28816
28817
28818 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28819 if test "$USE_DARWIN" = 1; then
28820 system_zlib_h_ok="yes"
28821 else
47964710
VS
28822 { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28823echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
a848cd7e
SC
28824if test "${ac_cv_header_zlib_h+set}" = set; then
28825 echo $ECHO_N "(cached) $ECHO_C" >&6
28826else
28827 if test "$cross_compiling" = yes; then
28828 unset ac_cv_header_zlib_h
28829
28830else
28831 cat >conftest.$ac_ext <<_ACEOF
28832/* confdefs.h. */
28833_ACEOF
28834cat confdefs.h >>conftest.$ac_ext
28835cat >>conftest.$ac_ext <<_ACEOF
28836/* end confdefs.h. */
28837
28838 #include <zlib.h>
28839 #include <stdio.h>
28840
28841 int main()
28842 {
28843 FILE *f=fopen("conftestval", "w");
28844 if (!f) exit(1);
28845 fprintf(f, "%s",
28846 ZLIB_VERSION[0] == '1' &&
28847 (ZLIB_VERSION[2] > '1' ||
28848 (ZLIB_VERSION[2] == '1' &&
28849 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28850 exit(0);
28851 }
28852
28853_ACEOF
28854rm -f conftest$ac_exeext
47964710
VS
28855if { (ac_try="$ac_link"
28856case "(($ac_try" in
28857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858 *) ac_try_echo=$ac_try;;
28859esac
28860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28861 (eval "$ac_link") 2>&5
a848cd7e
SC
28862 ac_status=$?
28863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
28865 { (case "(($ac_try" in
28866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28867 *) ac_try_echo=$ac_try;;
28868esac
28869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28870 (eval "$ac_try") 2>&5
a848cd7e
SC
28871 ac_status=$?
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); }; }; then
28874 ac_cv_header_zlib_h=`cat conftestval`
28875else
28876 echo "$as_me: program exited with status $ac_status" >&5
28877echo "$as_me: failed program was:" >&5
28878sed 's/^/| /' conftest.$ac_ext >&5
28879
28880( exit $ac_status )
28881ac_cv_header_zlib_h=no
28882fi
47964710 28883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28884fi
28885
47964710
VS
28886
28887
a848cd7e 28888fi
47964710
VS
28889{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28890echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28891 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28892echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
a848cd7e
SC
28893if test "${ac_cv_header_zlib_h+set}" = set; then
28894 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 28895else
6e7b8bcb 28896 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28897/* confdefs.h. */
28898_ACEOF
28899cat confdefs.h >>conftest.$ac_ext
28900cat >>conftest.$ac_ext <<_ACEOF
28901/* end confdefs.h. */
6e7b8bcb
PC
28902
28903
a848cd7e
SC
28904#include <zlib.h>
28905_ACEOF
28906rm -f conftest.$ac_objext
47964710
VS
28907if { (ac_try="$ac_compile"
28908case "(($ac_try" in
28909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28910 *) ac_try_echo=$ac_try;;
28911esac
28912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28913 (eval "$ac_compile") 2>conftest.er1
a848cd7e 28914 ac_status=$?
ac1cb8d3
VS
28915 grep -v '^ *+' conftest.er1 >conftest.err
28916 rm -f conftest.er1
28917 cat conftest.err >&5
a848cd7e 28918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28919 (exit $ac_status); } && {
28920 test -z "$ac_c_werror_flag" ||
28921 test ! -s conftest.err
28922 } && test -s conftest.$ac_objext; then
6e7b8bcb 28923 ac_cv_header_zlib_h=yes
a848cd7e
SC
28924else
28925 echo "$as_me: failed program was:" >&5
28926sed 's/^/| /' conftest.$ac_ext >&5
28927
47964710 28928 ac_cv_header_zlib_h=no
a848cd7e 28929fi
47964710
VS
28930
28931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 28932fi
47964710
VS
28933{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28934echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
a848cd7e 28935
a848cd7e
SC
28936
28937
28938 system_zlib_h_ok=$ac_cv_header_zlib_h
28939 fi
28940
28941 if test "$system_zlib_h_ok" = "yes"; then
47964710
VS
28942 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28943echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
a848cd7e
SC
28944if test "${ac_cv_lib_z_deflate+set}" = set; then
28945 echo $ECHO_N "(cached) $ECHO_C" >&6
28946else
28947 ac_check_lib_save_LIBS=$LIBS
28948LIBS="-lz $LIBS"
28949cat >conftest.$ac_ext <<_ACEOF
28950/* confdefs.h. */
28951_ACEOF
28952cat confdefs.h >>conftest.$ac_ext
28953cat >>conftest.$ac_ext <<_ACEOF
28954/* end confdefs.h. */
28955
47964710
VS
28956/* Override any GCC internal prototype to avoid an error.
28957 Use char because int might match the return type of a GCC
28958 builtin and then its argument prototype would still apply. */
a848cd7e
SC
28959#ifdef __cplusplus
28960extern "C"
28961#endif
a848cd7e
SC
28962char deflate ();
28963int
28964main ()
28965{
47964710 28966return deflate ();
a848cd7e
SC
28967 ;
28968 return 0;
28969}
28970_ACEOF
28971rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
28972if { (ac_try="$ac_link"
28973case "(($ac_try" in
28974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28975 *) ac_try_echo=$ac_try;;
28976esac
28977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28978 (eval "$ac_link") 2>conftest.er1
a848cd7e 28979 ac_status=$?
ac1cb8d3
VS
28980 grep -v '^ *+' conftest.er1 >conftest.err
28981 rm -f conftest.er1
28982 cat conftest.err >&5
a848cd7e 28983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28984 (exit $ac_status); } && {
28985 test -z "$ac_c_werror_flag" ||
28986 test ! -s conftest.err
28987 } && test -s conftest$ac_exeext &&
28988 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
28989 ac_cv_lib_z_deflate=yes
28990else
28991 echo "$as_me: failed program was:" >&5
28992sed 's/^/| /' conftest.$ac_ext >&5
28993
47964710 28994 ac_cv_lib_z_deflate=no
a848cd7e 28995fi
47964710
VS
28996
28997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 28998 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28999LIBS=$ac_check_lib_save_LIBS
29000fi
47964710
VS
29001{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29002echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
a848cd7e
SC
29003if test $ac_cv_lib_z_deflate = yes; then
29004 ZLIB_LINK=" -lz"
29005fi
29006
29007 fi
29008
29009 if test "x$ZLIB_LINK" = "x" ; then
29010 if test "$wxUSE_ZLIB" = "sys" ; then
29011 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
29012echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
29013 { (exit 1); exit 1; }; }
29014 else
29015 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
29016echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
29017 wxUSE_ZLIB=builtin
29018 fi
29019 else
29020 wxUSE_ZLIB=sys
29021 fi
29022 fi
29023fi
29024
29025
29026PNG_LINK=
29027if test "$wxUSE_LIBPNG" != "no" ; then
29028 cat >>confdefs.h <<\_ACEOF
29029#define wxUSE_LIBPNG 1
29030_ACEOF
29031
29032
29033 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
29034 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
29035echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
29036 wxUSE_LIBPNG=sys
29037 fi
29038
29039 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
29040 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
29041echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
29042 wxUSE_LIBPNG=builtin
29043 fi
29044
29045 if test "$wxUSE_MGL" != 1 ; then
29046 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
47964710
VS
29047 { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
29048echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
a848cd7e
SC
29049if test "${ac_cv_header_png_h+set}" = set; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29051else
29052 if test "$cross_compiling" = yes; then
29053 unset ac_cv_header_png_h
29054
29055else
29056 cat >conftest.$ac_ext <<_ACEOF
29057/* confdefs.h. */
29058_ACEOF
29059cat confdefs.h >>conftest.$ac_ext
29060cat >>conftest.$ac_ext <<_ACEOF
29061/* end confdefs.h. */
29062
29063 #include <png.h>
29064 #include <stdio.h>
29065
29066 int main()
29067 {
29068 FILE *f=fopen("conftestval", "w");
29069 if (!f) exit(1);
29070 fprintf(f, "%s",
29071 PNG_LIBPNG_VER > 90 ? "yes" : "no");
29072 exit(0);
29073 }
29074
29075_ACEOF
29076rm -f conftest$ac_exeext
47964710
VS
29077if { (ac_try="$ac_link"
29078case "(($ac_try" in
29079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29080 *) ac_try_echo=$ac_try;;
29081esac
29082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29083 (eval "$ac_link") 2>&5
a848cd7e
SC
29084 ac_status=$?
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
29087 { (case "(($ac_try" in
29088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089 *) ac_try_echo=$ac_try;;
29090esac
29091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092 (eval "$ac_try") 2>&5
a848cd7e
SC
29093 ac_status=$?
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); }; }; then
29096 ac_cv_header_png_h=`cat conftestval`
29097else
29098 echo "$as_me: program exited with status $ac_status" >&5
29099echo "$as_me: failed program was:" >&5
29100sed 's/^/| /' conftest.$ac_ext >&5
29101
29102( exit $ac_status )
29103ac_cv_header_png_h=no
29104fi
47964710 29105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29106fi
29107
47964710
VS
29108
29109
a848cd7e 29110fi
47964710
VS
29111{ echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29112echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29113 { echo "$as_me:$LINENO: checking for png.h" >&5
29114echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
a848cd7e
SC
29115if test "${ac_cv_header_png_h+set}" = set; then
29116 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 29117else
6e7b8bcb 29118 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29119/* confdefs.h. */
29120_ACEOF
29121cat confdefs.h >>conftest.$ac_ext
29122cat >>conftest.$ac_ext <<_ACEOF
29123/* end confdefs.h. */
6e7b8bcb
PC
29124
29125
a848cd7e
SC
29126#include <png.h>
29127_ACEOF
29128rm -f conftest.$ac_objext
47964710
VS
29129if { (ac_try="$ac_compile"
29130case "(($ac_try" in
29131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132 *) ac_try_echo=$ac_try;;
29133esac
29134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135 (eval "$ac_compile") 2>conftest.er1
a848cd7e 29136 ac_status=$?
ac1cb8d3
VS
29137 grep -v '^ *+' conftest.er1 >conftest.err
29138 rm -f conftest.er1
29139 cat conftest.err >&5
a848cd7e 29140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29141 (exit $ac_status); } && {
29142 test -z "$ac_c_werror_flag" ||
29143 test ! -s conftest.err
29144 } && test -s conftest.$ac_objext; then
6e7b8bcb 29145 ac_cv_header_png_h=yes
a848cd7e
SC
29146else
29147 echo "$as_me: failed program was:" >&5
29148sed 's/^/| /' conftest.$ac_ext >&5
29149
47964710 29150 ac_cv_header_png_h=no
a848cd7e 29151fi
47964710
VS
29152
29153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 29154fi
47964710
VS
29155{ echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29156echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
a848cd7e 29157
a848cd7e
SC
29158
29159
29160 if test "$ac_cv_header_png_h" = "yes"; then
47964710
VS
29161 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
29162echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
a848cd7e
SC
29163if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
29164 echo $ECHO_N "(cached) $ECHO_C" >&6
29165else
29166 ac_check_lib_save_LIBS=$LIBS
29167LIBS="-lpng -lz -lm $LIBS"
29168cat >conftest.$ac_ext <<_ACEOF
29169/* confdefs.h. */
29170_ACEOF
29171cat confdefs.h >>conftest.$ac_ext
29172cat >>conftest.$ac_ext <<_ACEOF
29173/* end confdefs.h. */
29174
47964710
VS
29175/* Override any GCC internal prototype to avoid an error.
29176 Use char because int might match the return type of a GCC
29177 builtin and then its argument prototype would still apply. */
a848cd7e
SC
29178#ifdef __cplusplus
29179extern "C"
29180#endif
a848cd7e
SC
29181char png_check_sig ();
29182int
29183main ()
29184{
47964710 29185return png_check_sig ();
a848cd7e
SC
29186 ;
29187 return 0;
29188}
29189_ACEOF
29190rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
29191if { (ac_try="$ac_link"
29192case "(($ac_try" in
29193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29194 *) ac_try_echo=$ac_try;;
29195esac
29196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29197 (eval "$ac_link") 2>conftest.er1
a848cd7e 29198 ac_status=$?
ac1cb8d3
VS
29199 grep -v '^ *+' conftest.er1 >conftest.err
29200 rm -f conftest.er1
29201 cat conftest.err >&5
a848cd7e 29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29203 (exit $ac_status); } && {
29204 test -z "$ac_c_werror_flag" ||
29205 test ! -s conftest.err
29206 } && test -s conftest$ac_exeext &&
29207 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
29208 ac_cv_lib_png_png_check_sig=yes
29209else
29210 echo "$as_me: failed program was:" >&5
29211sed 's/^/| /' conftest.$ac_ext >&5
29212
47964710 29213 ac_cv_lib_png_png_check_sig=no
a848cd7e 29214fi
47964710
VS
29215
29216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 29217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29218LIBS=$ac_check_lib_save_LIBS
29219fi
47964710
VS
29220{ echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
29221echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
a848cd7e
SC
29222if test $ac_cv_lib_png_png_check_sig = yes; then
29223 PNG_LINK=" -lpng -lz"
29224fi
29225
29226 fi
29227
29228 if test "x$PNG_LINK" = "x" ; then
29229 if test "$wxUSE_LIBPNG" = "sys" ; then
29230 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
29231echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
29232 { (exit 1); exit 1; }; }
29233 else
29234 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
29235echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
29236 wxUSE_LIBPNG=builtin
29237 fi
29238 else
29239 wxUSE_LIBPNG=sys
29240 fi
29241 fi
29242 fi
a848cd7e
SC
29243fi
29244
29245
29246JPEG_LINK=
29247if test "$wxUSE_LIBJPEG" != "no" ; then
29248 cat >>confdefs.h <<\_ACEOF
29249#define wxUSE_LIBJPEG 1
29250_ACEOF
29251
29252
29253 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
29254 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
29255echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
29256 wxUSE_LIBJPEG=sys
29257 fi
29258
29259 if test "$wxUSE_MGL" != 1 ; then
29260 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
47964710
VS
29261 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
29262echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
a848cd7e
SC
29263 if test "${ac_cv_header_jpeglib_h+set}" = set; then
29264 echo $ECHO_N "(cached) $ECHO_C" >&6
29265else
29266 cat >conftest.$ac_ext <<_ACEOF
29267/* confdefs.h. */
29268_ACEOF
29269cat confdefs.h >>conftest.$ac_ext
29270cat >>conftest.$ac_ext <<_ACEOF
29271/* end confdefs.h. */
29272
29273 #undef HAVE_STDLIB_H
29274 #include <stdio.h>
29275 #include <jpeglib.h>
29276
29277int
29278main ()
29279{
29280
29281
29282 ;
29283 return 0;
29284}
29285_ACEOF
29286rm -f conftest.$ac_objext
47964710
VS
29287if { (ac_try="$ac_compile"
29288case "(($ac_try" in
29289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29290 *) ac_try_echo=$ac_try;;
29291esac
29292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29293 (eval "$ac_compile") 2>conftest.er1
a848cd7e 29294 ac_status=$?
ac1cb8d3
VS
29295 grep -v '^ *+' conftest.er1 >conftest.err
29296 rm -f conftest.er1
29297 cat conftest.err >&5
a848cd7e 29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29299 (exit $ac_status); } && {
29300 test -z "$ac_c_werror_flag" ||
29301 test ! -s conftest.err
29302 } && test -s conftest.$ac_objext; then
a848cd7e
SC
29303 ac_cv_header_jpeglib_h=yes
29304else
29305 echo "$as_me: failed program was:" >&5
29306sed 's/^/| /' conftest.$ac_ext >&5
29307
47964710 29308 ac_cv_header_jpeglib_h=no
a848cd7e
SC
29309
29310fi
47964710
VS
29311
29312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29313
29314fi
29315
47964710
VS
29316 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
29317echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
a848cd7e
SC
29318
29319 if test "$ac_cv_header_jpeglib_h" = "yes"; then
47964710
VS
29320 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
29321echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
a848cd7e
SC
29322if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
29323 echo $ECHO_N "(cached) $ECHO_C" >&6
29324else
29325 ac_check_lib_save_LIBS=$LIBS
29326LIBS="-ljpeg $LIBS"
29327cat >conftest.$ac_ext <<_ACEOF
29328/* confdefs.h. */
29329_ACEOF
29330cat confdefs.h >>conftest.$ac_ext
29331cat >>conftest.$ac_ext <<_ACEOF
29332/* end confdefs.h. */
29333
47964710
VS
29334/* Override any GCC internal prototype to avoid an error.
29335 Use char because int might match the return type of a GCC
29336 builtin and then its argument prototype would still apply. */
a848cd7e
SC
29337#ifdef __cplusplus
29338extern "C"
29339#endif
a848cd7e
SC
29340char jpeg_read_header ();
29341int
29342main ()
29343{
47964710 29344return jpeg_read_header ();
a848cd7e
SC
29345 ;
29346 return 0;
29347}
29348_ACEOF
29349rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
29350if { (ac_try="$ac_link"
29351case "(($ac_try" in
29352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353 *) ac_try_echo=$ac_try;;
29354esac
29355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356 (eval "$ac_link") 2>conftest.er1
a848cd7e 29357 ac_status=$?
ac1cb8d3
VS
29358 grep -v '^ *+' conftest.er1 >conftest.err
29359 rm -f conftest.er1
29360 cat conftest.err >&5
a848cd7e 29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29362 (exit $ac_status); } && {
29363 test -z "$ac_c_werror_flag" ||
29364 test ! -s conftest.err
29365 } && test -s conftest$ac_exeext &&
29366 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
29367 ac_cv_lib_jpeg_jpeg_read_header=yes
29368else
29369 echo "$as_me: failed program was:" >&5
29370sed 's/^/| /' conftest.$ac_ext >&5
29371
47964710 29372 ac_cv_lib_jpeg_jpeg_read_header=no
a848cd7e 29373fi
47964710
VS
29374
29375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 29376 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29377LIBS=$ac_check_lib_save_LIBS
29378fi
47964710
VS
29379{ echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29380echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
a848cd7e
SC
29381if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
29382 JPEG_LINK=" -ljpeg"
29383fi
29384
29385 fi
29386
29387 if test "x$JPEG_LINK" = "x" ; then
29388 if test "$wxUSE_LIBJPEG" = "sys" ; then
29389 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
29390echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
29391 { (exit 1); exit 1; }; }
29392 else
29393 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
29394echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
29395 wxUSE_LIBJPEG=builtin
29396 fi
29397 else
29398 wxUSE_LIBJPEG=sys
90eaf433
MW
29399
29400 if test "$wxUSE_MSW" = 1; then
47964710
VS
29401 { echo "$as_me:$LINENO: checking for boolean" >&5
29402echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
90eaf433
MW
29403if test "${ac_cv_type_boolean+set}" = set; then
29404 echo $ECHO_N "(cached) $ECHO_C" >&6
29405else
29406 cat >conftest.$ac_ext <<_ACEOF
29407/* confdefs.h. */
29408_ACEOF
29409cat confdefs.h >>conftest.$ac_ext
29410cat >>conftest.$ac_ext <<_ACEOF
29411/* end confdefs.h. */
29412#include <windows.h>
29413
47964710 29414typedef boolean ac__type_new_;
90eaf433
MW
29415int
29416main ()
29417{
47964710 29418if ((ac__type_new_ *) 0)
90eaf433 29419 return 0;
47964710 29420if (sizeof (ac__type_new_))
90eaf433
MW
29421 return 0;
29422 ;
29423 return 0;
29424}
29425_ACEOF
29426rm -f conftest.$ac_objext
47964710
VS
29427if { (ac_try="$ac_compile"
29428case "(($ac_try" in
29429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29430 *) ac_try_echo=$ac_try;;
29431esac
29432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29433 (eval "$ac_compile") 2>conftest.er1
90eaf433
MW
29434 ac_status=$?
29435 grep -v '^ *+' conftest.er1 >conftest.err
29436 rm -f conftest.er1
29437 cat conftest.err >&5
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29439 (exit $ac_status); } && {
29440 test -z "$ac_c_werror_flag" ||
29441 test ! -s conftest.err
29442 } && test -s conftest.$ac_objext; then
90eaf433
MW
29443 ac_cv_type_boolean=yes
29444else
29445 echo "$as_me: failed program was:" >&5
29446sed 's/^/| /' conftest.$ac_ext >&5
29447
47964710 29448 ac_cv_type_boolean=no
90eaf433 29449fi
47964710
VS
29450
29451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433 29452fi
47964710
VS
29453{ echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29454echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
90eaf433
MW
29455if test $ac_cv_type_boolean = yes; then
29456
29457cat >>confdefs.h <<_ACEOF
29458#define HAVE_BOOLEAN 1
29459_ACEOF
29460
29461
47964710
VS
29462 { echo "$as_me:$LINENO: checking for boolean" >&5
29463echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
90eaf433
MW
29464if test "${ac_cv_type_boolean+set}" = set; then
29465 echo $ECHO_N "(cached) $ECHO_C" >&6
29466else
29467 cat >conftest.$ac_ext <<_ACEOF
29468/* confdefs.h. */
29469_ACEOF
29470cat confdefs.h >>conftest.$ac_ext
29471cat >>conftest.$ac_ext <<_ACEOF
29472/* end confdefs.h. */
29473
29474 #undef HAVE_BOOLEAN
29475 #include <stdio.h>
29476 #include <jpeglib.h>
29477
29478
47964710 29479typedef boolean ac__type_new_;
90eaf433
MW
29480int
29481main ()
29482{
47964710 29483if ((ac__type_new_ *) 0)
90eaf433 29484 return 0;
47964710 29485if (sizeof (ac__type_new_))
90eaf433
MW
29486 return 0;
29487 ;
29488 return 0;
29489}
29490_ACEOF
29491rm -f conftest.$ac_objext
47964710
VS
29492if { (ac_try="$ac_compile"
29493case "(($ac_try" in
29494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495 *) ac_try_echo=$ac_try;;
29496esac
29497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498 (eval "$ac_compile") 2>conftest.er1
90eaf433
MW
29499 ac_status=$?
29500 grep -v '^ *+' conftest.er1 >conftest.err
29501 rm -f conftest.er1
29502 cat conftest.err >&5
29503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29504 (exit $ac_status); } && {
29505 test -z "$ac_c_werror_flag" ||
29506 test ! -s conftest.err
29507 } && test -s conftest.$ac_objext; then
90eaf433
MW
29508 ac_cv_type_boolean=yes
29509else
29510 echo "$as_me: failed program was:" >&5
29511sed 's/^/| /' conftest.$ac_ext >&5
29512
47964710 29513 ac_cv_type_boolean=no
90eaf433 29514fi
47964710
VS
29515
29516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433 29517fi
47964710
VS
29518{ echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29519echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
90eaf433 29520
47964710
VS
29521# The cast to long int works around a bug in the HP C Compiler
29522# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29523# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29524# This bug is HP SR number 8606223364.
29525{ echo "$as_me:$LINENO: checking size of boolean" >&5
29526echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
90eaf433
MW
29527if test "${ac_cv_sizeof_boolean+set}" = set; then
29528 echo $ECHO_N "(cached) $ECHO_C" >&6
29529else
90eaf433
MW
29530 if test "$cross_compiling" = yes; then
29531 # Depending upon the size, compute the lo and hi bounds.
29532cat >conftest.$ac_ext <<_ACEOF
29533/* confdefs.h. */
29534_ACEOF
29535cat confdefs.h >>conftest.$ac_ext
29536cat >>conftest.$ac_ext <<_ACEOF
29537/* end confdefs.h. */
29538
29539 #undef HAVE_BOOLEAN
29540 #include <stdio.h>
29541 #include <jpeglib.h>
29542
29543
47964710 29544 typedef boolean ac__type_sizeof_;
90eaf433
MW
29545int
29546main ()
29547{
47964710 29548static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
90eaf433
MW
29549test_array [0] = 0
29550
29551 ;
29552 return 0;
29553}
29554_ACEOF
29555rm -f conftest.$ac_objext
47964710
VS
29556if { (ac_try="$ac_compile"
29557case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29560esac
29561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_compile") 2>conftest.er1
90eaf433
MW
29563 ac_status=$?
29564 grep -v '^ *+' conftest.er1 >conftest.err
29565 rm -f conftest.er1
29566 cat conftest.err >&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29568 (exit $ac_status); } && {
29569 test -z "$ac_c_werror_flag" ||
29570 test ! -s conftest.err
29571 } && test -s conftest.$ac_objext; then
90eaf433
MW
29572 ac_lo=0 ac_mid=0
29573 while :; do
29574 cat >conftest.$ac_ext <<_ACEOF
29575/* confdefs.h. */
29576_ACEOF
29577cat confdefs.h >>conftest.$ac_ext
29578cat >>conftest.$ac_ext <<_ACEOF
29579/* end confdefs.h. */
29580
29581 #undef HAVE_BOOLEAN
29582 #include <stdio.h>
29583 #include <jpeglib.h>
29584
29585
47964710 29586 typedef boolean ac__type_sizeof_;
90eaf433
MW
29587int
29588main ()
29589{
47964710 29590static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
90eaf433
MW
29591test_array [0] = 0
29592
29593 ;
29594 return 0;
29595}
29596_ACEOF
29597rm -f conftest.$ac_objext
47964710
VS
29598if { (ac_try="$ac_compile"
29599case "(($ac_try" in
29600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29601 *) ac_try_echo=$ac_try;;
29602esac
29603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29604 (eval "$ac_compile") 2>conftest.er1
90eaf433
MW
29605 ac_status=$?
29606 grep -v '^ *+' conftest.er1 >conftest.err
29607 rm -f conftest.er1
29608 cat conftest.err >&5
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29610 (exit $ac_status); } && {
29611 test -z "$ac_c_werror_flag" ||
29612 test ! -s conftest.err
29613 } && test -s conftest.$ac_objext; then
90eaf433
MW
29614 ac_hi=$ac_mid; break
29615else
29616 echo "$as_me: failed program was:" >&5
29617sed 's/^/| /' conftest.$ac_ext >&5
29618
47964710
VS
29619 ac_lo=`expr $ac_mid + 1`
29620 if test $ac_lo -le $ac_mid; then
29621 ac_lo= ac_hi=
29622 break
29623 fi
29624 ac_mid=`expr 2 '*' $ac_mid + 1`
90eaf433 29625fi
47964710
VS
29626
29627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
29628 done
29629else
29630 echo "$as_me: failed program was:" >&5
29631sed 's/^/| /' conftest.$ac_ext >&5
29632
47964710 29633 cat >conftest.$ac_ext <<_ACEOF
90eaf433
MW
29634/* confdefs.h. */
29635_ACEOF
29636cat confdefs.h >>conftest.$ac_ext
29637cat >>conftest.$ac_ext <<_ACEOF
29638/* end confdefs.h. */
29639
29640 #undef HAVE_BOOLEAN
29641 #include <stdio.h>
29642 #include <jpeglib.h>
29643
29644
47964710 29645 typedef boolean ac__type_sizeof_;
90eaf433
MW
29646int
29647main ()
29648{
47964710 29649static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
90eaf433
MW
29650test_array [0] = 0
29651
29652 ;
29653 return 0;
29654}
29655_ACEOF
29656rm -f conftest.$ac_objext
47964710
VS
29657if { (ac_try="$ac_compile"
29658case "(($ac_try" in
29659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29660 *) ac_try_echo=$ac_try;;
29661esac
29662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29663 (eval "$ac_compile") 2>conftest.er1
90eaf433
MW
29664 ac_status=$?
29665 grep -v '^ *+' conftest.er1 >conftest.err
29666 rm -f conftest.er1
29667 cat conftest.err >&5
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29669 (exit $ac_status); } && {
29670 test -z "$ac_c_werror_flag" ||
29671 test ! -s conftest.err
29672 } && test -s conftest.$ac_objext; then
90eaf433
MW
29673 ac_hi=-1 ac_mid=-1
29674 while :; do
29675 cat >conftest.$ac_ext <<_ACEOF
29676/* confdefs.h. */
29677_ACEOF
29678cat confdefs.h >>conftest.$ac_ext
29679cat >>conftest.$ac_ext <<_ACEOF
29680/* end confdefs.h. */
29681
29682 #undef HAVE_BOOLEAN
29683 #include <stdio.h>
29684 #include <jpeglib.h>
29685
29686
47964710 29687 typedef boolean ac__type_sizeof_;
90eaf433
MW
29688int
29689main ()
29690{
47964710 29691static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
90eaf433
MW
29692test_array [0] = 0
29693
29694 ;
29695 return 0;
29696}
29697_ACEOF
29698rm -f conftest.$ac_objext
47964710
VS
29699if { (ac_try="$ac_compile"
29700case "(($ac_try" in
29701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702 *) ac_try_echo=$ac_try;;
29703esac
29704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29705 (eval "$ac_compile") 2>conftest.er1
90eaf433
MW
29706 ac_status=$?
29707 grep -v '^ *+' conftest.er1 >conftest.err
29708 rm -f conftest.er1
29709 cat conftest.err >&5
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29711 (exit $ac_status); } && {
29712 test -z "$ac_c_werror_flag" ||
29713 test ! -s conftest.err
29714 } && test -s conftest.$ac_objext; then
90eaf433
MW
29715 ac_lo=$ac_mid; break
29716else
29717 echo "$as_me: failed program was:" >&5
29718sed 's/^/| /' conftest.$ac_ext >&5
29719
47964710
VS
29720 ac_hi=`expr '(' $ac_mid ')' - 1`
29721 if test $ac_mid -le $ac_hi; then
29722 ac_lo= ac_hi=
29723 break
29724 fi
29725 ac_mid=`expr 2 '*' $ac_mid`
90eaf433 29726fi
47964710
VS
29727
29728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
29729 done
29730else
29731 echo "$as_me: failed program was:" >&5
29732sed 's/^/| /' conftest.$ac_ext >&5
29733
47964710 29734 ac_lo= ac_hi=
90eaf433 29735fi
47964710
VS
29736
29737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433 29738fi
47964710
VS
29739
29740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
29741# Binary search between lo and hi bounds.
29742while test "x$ac_lo" != "x$ac_hi"; do
29743 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29744 cat >conftest.$ac_ext <<_ACEOF
29745/* confdefs.h. */
29746_ACEOF
29747cat confdefs.h >>conftest.$ac_ext
29748cat >>conftest.$ac_ext <<_ACEOF
29749/* end confdefs.h. */
29750
29751 #undef HAVE_BOOLEAN
29752 #include <stdio.h>
29753 #include <jpeglib.h>
29754
29755
47964710 29756 typedef boolean ac__type_sizeof_;
90eaf433
MW
29757int
29758main ()
29759{
47964710 29760static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
90eaf433
MW
29761test_array [0] = 0
29762
29763 ;
29764 return 0;
29765}
29766_ACEOF
29767rm -f conftest.$ac_objext
47964710
VS
29768if { (ac_try="$ac_compile"
29769case "(($ac_try" in
29770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771 *) ac_try_echo=$ac_try;;
29772esac
29773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29774 (eval "$ac_compile") 2>conftest.er1
90eaf433
MW
29775 ac_status=$?
29776 grep -v '^ *+' conftest.er1 >conftest.err
29777 rm -f conftest.er1
29778 cat conftest.err >&5
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29780 (exit $ac_status); } && {
29781 test -z "$ac_c_werror_flag" ||
29782 test ! -s conftest.err
29783 } && test -s conftest.$ac_objext; then
90eaf433
MW
29784 ac_hi=$ac_mid
29785else
29786 echo "$as_me: failed program was:" >&5
29787sed 's/^/| /' conftest.$ac_ext >&5
29788
47964710 29789 ac_lo=`expr '(' $ac_mid ')' + 1`
90eaf433 29790fi
47964710
VS
29791
29792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
29793done
29794case $ac_lo in
29795?*) ac_cv_sizeof_boolean=$ac_lo;;
47964710
VS
29796'') if test "$ac_cv_type_boolean" = yes; then
29797 { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
90eaf433 29798See \`config.log' for more details." >&5
47964710 29799echo "$as_me: error: cannot compute sizeof (boolean)
90eaf433 29800See \`config.log' for more details." >&2;}
47964710
VS
29801 { (exit 77); exit 77; }; }
29802 else
29803 ac_cv_sizeof_boolean=0
29804 fi ;;
90eaf433 29805esac
90eaf433
MW
29806else
29807 cat >conftest.$ac_ext <<_ACEOF
29808/* confdefs.h. */
29809_ACEOF
29810cat confdefs.h >>conftest.$ac_ext
29811cat >>conftest.$ac_ext <<_ACEOF
29812/* end confdefs.h. */
29813
29814 #undef HAVE_BOOLEAN
29815 #include <stdio.h>
29816 #include <jpeglib.h>
29817
29818
47964710
VS
29819 typedef boolean ac__type_sizeof_;
29820static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29821static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
90eaf433
MW
29822#include <stdio.h>
29823#include <stdlib.h>
29824int
29825main ()
29826{
29827
29828 FILE *f = fopen ("conftest.val", "w");
29829 if (! f)
47964710
VS
29830 return 1;
29831 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
90eaf433 29832 {
47964710
VS
29833 long int i = longval ();
29834 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29835 return 1;
90eaf433
MW
29836 fprintf (f, "%ld\n", i);
29837 }
29838 else
29839 {
47964710
VS
29840 unsigned long int i = ulongval ();
29841 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29842 return 1;
90eaf433
MW
29843 fprintf (f, "%lu\n", i);
29844 }
47964710 29845 return ferror (f) || fclose (f) != 0;
90eaf433
MW
29846
29847 ;
29848 return 0;
29849}
29850_ACEOF
29851rm -f conftest$ac_exeext
47964710
VS
29852if { (ac_try="$ac_link"
29853case "(($ac_try" in
29854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855 *) ac_try_echo=$ac_try;;
29856esac
29857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29858 (eval "$ac_link") 2>&5
90eaf433
MW
29859 ac_status=$?
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
29862 { (case "(($ac_try" in
29863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29864 *) ac_try_echo=$ac_try;;
29865esac
29866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29867 (eval "$ac_try") 2>&5
90eaf433
MW
29868 ac_status=$?
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); }; }; then
29871 ac_cv_sizeof_boolean=`cat conftest.val`
29872else
29873 echo "$as_me: program exited with status $ac_status" >&5
29874echo "$as_me: failed program was:" >&5
29875sed 's/^/| /' conftest.$ac_ext >&5
29876
29877( exit $ac_status )
47964710
VS
29878if test "$ac_cv_type_boolean" = yes; then
29879 { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
90eaf433 29880See \`config.log' for more details." >&5
47964710 29881echo "$as_me: error: cannot compute sizeof (boolean)
90eaf433 29882See \`config.log' for more details." >&2;}
47964710
VS
29883 { (exit 77); exit 77; }; }
29884 else
29885 ac_cv_sizeof_boolean=0
29886 fi
90eaf433 29887fi
47964710 29888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
29889fi
29890rm -f conftest.val
90eaf433 29891fi
47964710
VS
29892{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29893echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29894
29895
29896
90eaf433
MW
29897cat >>confdefs.h <<_ACEOF
29898#define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29899_ACEOF
29900
29901
29902 cat >>confdefs.h <<_ACEOF
29903#define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29904_ACEOF
29905
29906
29907fi
29908
29909 fi
a848cd7e
SC
29910 fi
29911 fi
29912 fi
29913fi
29914
29915
29916TIFF_LINK=
29917TIFF_PREREQ_LINKS=-lm
29918if test "$wxUSE_LIBTIFF" != "no" ; then
29919 cat >>confdefs.h <<\_ACEOF
29920#define wxUSE_LIBTIFF 1
29921_ACEOF
29922
29923
29924 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29925 if test "$wxUSE_LIBJPEG" = "sys"; then
29926 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29927 fi
29928 if test "$wxUSE_ZLIB" = "sys"; then
29929 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29930 fi
47964710
VS
29931 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29932echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
a848cd7e
SC
29933if test "${ac_cv_header_tiffio_h+set}" = set; then
29934 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 29935else
6e7b8bcb 29936 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29937/* confdefs.h. */
29938_ACEOF
29939cat confdefs.h >>conftest.$ac_ext
29940cat >>conftest.$ac_ext <<_ACEOF
29941/* end confdefs.h. */
6e7b8bcb
PC
29942
29943
29944
a848cd7e
SC
29945#include <tiffio.h>
29946_ACEOF
29947rm -f conftest.$ac_objext
47964710
VS
29948if { (ac_try="$ac_compile"
29949case "(($ac_try" in
29950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951 *) ac_try_echo=$ac_try;;
29952esac
29953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954 (eval "$ac_compile") 2>conftest.er1
a848cd7e 29955 ac_status=$?
ac1cb8d3
VS
29956 grep -v '^ *+' conftest.er1 >conftest.err
29957 rm -f conftest.er1
29958 cat conftest.err >&5
a848cd7e 29959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29960 (exit $ac_status); } && {
29961 test -z "$ac_c_werror_flag" ||
29962 test ! -s conftest.err
29963 } && test -s conftest.$ac_objext; then
6e7b8bcb 29964 ac_cv_header_tiffio_h=yes
a848cd7e
SC
29965else
29966 echo "$as_me: failed program was:" >&5
29967sed 's/^/| /' conftest.$ac_ext >&5
29968
47964710 29969 ac_cv_header_tiffio_h=no
a848cd7e 29970fi
47964710
VS
29971
29972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 29973fi
47964710
VS
29974{ echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29975echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
a848cd7e
SC
29976if test $ac_cv_header_tiffio_h = yes; then
29977
47964710
VS
29978 { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29979echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
a848cd7e
SC
29980if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29981 echo $ECHO_N "(cached) $ECHO_C" >&6
29982else
29983 ac_check_lib_save_LIBS=$LIBS
29984LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29985cat >conftest.$ac_ext <<_ACEOF
29986/* confdefs.h. */
29987_ACEOF
29988cat confdefs.h >>conftest.$ac_ext
29989cat >>conftest.$ac_ext <<_ACEOF
29990/* end confdefs.h. */
29991
47964710
VS
29992/* Override any GCC internal prototype to avoid an error.
29993 Use char because int might match the return type of a GCC
29994 builtin and then its argument prototype would still apply. */
a848cd7e
SC
29995#ifdef __cplusplus
29996extern "C"
29997#endif
a848cd7e
SC
29998char TIFFError ();
29999int
30000main ()
30001{
47964710 30002return TIFFError ();
a848cd7e
SC
30003 ;
30004 return 0;
30005}
30006_ACEOF
30007rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
30008if { (ac_try="$ac_link"
30009case "(($ac_try" in
30010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30011 *) ac_try_echo=$ac_try;;
30012esac
30013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30014 (eval "$ac_link") 2>conftest.er1
a848cd7e 30015 ac_status=$?
ac1cb8d3
VS
30016 grep -v '^ *+' conftest.er1 >conftest.err
30017 rm -f conftest.er1
30018 cat conftest.err >&5
a848cd7e 30019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30020 (exit $ac_status); } && {
30021 test -z "$ac_c_werror_flag" ||
30022 test ! -s conftest.err
30023 } && test -s conftest$ac_exeext &&
30024 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
30025 ac_cv_lib_tiff_TIFFError=yes
30026else
30027 echo "$as_me: failed program was:" >&5
30028sed 's/^/| /' conftest.$ac_ext >&5
30029
47964710 30030 ac_cv_lib_tiff_TIFFError=no
a848cd7e 30031fi
47964710
VS
30032
30033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 30034 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30035LIBS=$ac_check_lib_save_LIBS
30036fi
47964710
VS
30037{ echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
30038echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
a848cd7e
SC
30039if test $ac_cv_lib_tiff_TIFFError = yes; then
30040 TIFF_LINK=" -ltiff"
30041fi
30042
30043
a848cd7e
SC
30044fi
30045
30046
30047
30048 if test "x$TIFF_LINK" = "x" ; then
30049 if test "$wxUSE_LIBTIFF" = "sys" ; then
30050 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
30051echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
30052 { (exit 1); exit 1; }; }
30053 else
30054 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
30055echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
30056 wxUSE_LIBTIFF=builtin
30057 fi
30058 else
30059 wxUSE_LIBTIFF=sys
30060 fi
3442c078
VZ
30061 if test "$wxUSE_LIBTIFF" = "builtin" ; then
30062 subdirs="$subdirs src/tiff"
30063
30064 fi
a848cd7e
SC
30065 fi
30066fi
30067
30068
47a7e797
MW
30069if test "$wxUSE_WCHAR_T" != "yes"; then
30070 if test "$wxUSE_EXPAT" != "no"; then
30071 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
30072echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
30073 wxUSE_EXPAT=no
30074 fi
30075 if test "$wxUSE_XML" != "no"; then
30076 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
30077echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
30078 wxUSE_XML=no
30079 fi
30080fi
30081
a848cd7e
SC
30082if test "$wxUSE_EXPAT" != "no"; then
30083 wxUSE_XML=yes
30084 cat >>confdefs.h <<\_ACEOF
30085#define wxUSE_EXPAT 1
30086_ACEOF
30087
30088 cat >>confdefs.h <<\_ACEOF
30089#define wxUSE_XML 1
30090_ACEOF
30091
30092
30093 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
47964710
VS
30094 { echo "$as_me:$LINENO: checking for expat.h" >&5
30095echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
a848cd7e
SC
30096if test "${ac_cv_header_expat_h+set}" = set; then
30097 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 30098else
6e7b8bcb 30099 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30100/* confdefs.h. */
30101_ACEOF
30102cat confdefs.h >>conftest.$ac_ext
30103cat >>conftest.$ac_ext <<_ACEOF
30104/* end confdefs.h. */
6e7b8bcb
PC
30105
30106
a848cd7e
SC
30107#include <expat.h>
30108_ACEOF
30109rm -f conftest.$ac_objext
47964710
VS
30110if { (ac_try="$ac_compile"
30111case "(($ac_try" in
30112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113 *) ac_try_echo=$ac_try;;
30114esac
30115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116 (eval "$ac_compile") 2>conftest.er1
a848cd7e 30117 ac_status=$?
ac1cb8d3
VS
30118 grep -v '^ *+' conftest.er1 >conftest.err
30119 rm -f conftest.er1
30120 cat conftest.err >&5
a848cd7e 30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30122 (exit $ac_status); } && {
30123 test -z "$ac_c_werror_flag" ||
30124 test ! -s conftest.err
30125 } && test -s conftest.$ac_objext; then
6e7b8bcb 30126 ac_cv_header_expat_h=yes
a848cd7e
SC
30127else
30128 echo "$as_me: failed program was:" >&5
30129sed 's/^/| /' conftest.$ac_ext >&5
30130
47964710 30131 ac_cv_header_expat_h=no
a848cd7e 30132fi
47964710
VS
30133
30134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 30135fi
47964710
VS
30136{ echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
30137echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
a848cd7e
SC
30138if test $ac_cv_header_expat_h = yes; then
30139 found_expat_h=1
30140fi
30141
30142
30143 if test "x$found_expat_h" = "x1"; then
47964710
VS
30144 { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
30145echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
a848cd7e
SC
30146if test "${wx_cv_expat_is_not_broken+set}" = set; then
30147 echo $ECHO_N "(cached) $ECHO_C" >&6
30148else
30149
47964710 30150 ac_ext=cpp
9b8888f9
VZ
30151ac_cpp='$CXXCPP $CPPFLAGS'
30152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30155
a848cd7e
SC
30156 cat >conftest.$ac_ext <<_ACEOF
30157/* confdefs.h. */
30158_ACEOF
30159cat confdefs.h >>conftest.$ac_ext
30160cat >>conftest.$ac_ext <<_ACEOF
30161/* end confdefs.h. */
30162#include <expat.h>
30163int
30164main ()
30165{
30166
30167 ;
30168 return 0;
30169}
30170_ACEOF
30171rm -f conftest.$ac_objext
47964710
VS
30172if { (ac_try="$ac_compile"
30173case "(($ac_try" in
30174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30175 *) ac_try_echo=$ac_try;;
30176esac
30177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30178 (eval "$ac_compile") 2>conftest.er1
a848cd7e 30179 ac_status=$?
ac1cb8d3
VS
30180 grep -v '^ *+' conftest.er1 >conftest.err
30181 rm -f conftest.er1
30182 cat conftest.err >&5
a848cd7e 30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30184 (exit $ac_status); } && {
30185 test -z "$ac_cxx_werror_flag" ||
30186 test ! -s conftest.err
30187 } && test -s conftest.$ac_objext; then
a848cd7e
SC
30188 wx_cv_expat_is_not_broken=yes
30189else
30190 echo "$as_me: failed program was:" >&5
30191sed 's/^/| /' conftest.$ac_ext >&5
30192
47964710 30193 wx_cv_expat_is_not_broken=no
a848cd7e
SC
30194
30195fi
47964710
VS
30196
30197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
30198 ac_ext=c
30199ac_cpp='$CPP $CPPFLAGS'
30200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30202ac_compiler_gnu=$ac_cv_c_compiler_gnu
30203
a848cd7e
SC
30204
30205
30206fi
47964710
VS
30207{ echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
30208echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
a848cd7e 30209 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
47964710
VS
30210 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
30211echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
a848cd7e
SC
30212if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
30213 echo $ECHO_N "(cached) $ECHO_C" >&6
30214else
30215 ac_check_lib_save_LIBS=$LIBS
30216LIBS="-lexpat $LIBS"
30217cat >conftest.$ac_ext <<_ACEOF
30218/* confdefs.h. */
30219_ACEOF
30220cat confdefs.h >>conftest.$ac_ext
30221cat >>conftest.$ac_ext <<_ACEOF
30222/* end confdefs.h. */
30223
47964710
VS
30224/* Override any GCC internal prototype to avoid an error.
30225 Use char because int might match the return type of a GCC
30226 builtin and then its argument prototype would still apply. */
a848cd7e
SC
30227#ifdef __cplusplus
30228extern "C"
30229#endif
a848cd7e
SC
30230char XML_ParserCreate ();
30231int
30232main ()
30233{
47964710 30234return XML_ParserCreate ();
a848cd7e
SC
30235 ;
30236 return 0;
30237}
30238_ACEOF
30239rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
30240if { (ac_try="$ac_link"
30241case "(($ac_try" in
30242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30243 *) ac_try_echo=$ac_try;;
30244esac
30245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30246 (eval "$ac_link") 2>conftest.er1
a848cd7e 30247 ac_status=$?
ac1cb8d3
VS
30248 grep -v '^ *+' conftest.er1 >conftest.err
30249 rm -f conftest.er1
30250 cat conftest.err >&5
a848cd7e 30251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30252 (exit $ac_status); } && {
30253 test -z "$ac_c_werror_flag" ||
30254 test ! -s conftest.err
30255 } && test -s conftest$ac_exeext &&
30256 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
30257 ac_cv_lib_expat_XML_ParserCreate=yes
30258else
30259 echo "$as_me: failed program was:" >&5
30260sed 's/^/| /' conftest.$ac_ext >&5
30261
47964710 30262 ac_cv_lib_expat_XML_ParserCreate=no
a848cd7e 30263fi
47964710
VS
30264
30265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 30266 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30267LIBS=$ac_check_lib_save_LIBS
30268fi
47964710
VS
30269{ echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
30270echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
a848cd7e
SC
30271if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
30272 EXPAT_LINK=" -lexpat"
30273fi
30274
30275 fi
30276 fi
30277 if test "x$EXPAT_LINK" = "x" ; then
30278 if test "$wxUSE_EXPAT" = "sys" ; then
30279 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
30280echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
30281 { (exit 1); exit 1; }; }
30282 else
30283 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
30284echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
30285 wxUSE_EXPAT=builtin
30286 fi
30287 else
30288 wxUSE_EXPAT=sys
30289 fi
30290 fi
30291 if test "$wxUSE_EXPAT" = "builtin" ; then
47964710 30292 subdirs="$subdirs src/expat"
a848cd7e
SC
30293
30294 fi
30295fi
30296
30297
30298
30299if test "$wxUSE_LIBMSPACK" != "no"; then
47964710
VS
30300 { echo "$as_me:$LINENO: checking for mspack.h" >&5
30301echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
a848cd7e
SC
30302if test "${ac_cv_header_mspack_h+set}" = set; then
30303 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 30304else
6e7b8bcb 30305 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30306/* confdefs.h. */
30307_ACEOF
30308cat confdefs.h >>conftest.$ac_ext
30309cat >>conftest.$ac_ext <<_ACEOF
30310/* end confdefs.h. */
6e7b8bcb
PC
30311
30312
a848cd7e
SC
30313#include <mspack.h>
30314_ACEOF
30315rm -f conftest.$ac_objext
47964710
VS
30316if { (ac_try="$ac_compile"
30317case "(($ac_try" in
30318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30319 *) ac_try_echo=$ac_try;;
30320esac
30321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30322 (eval "$ac_compile") 2>conftest.er1
a848cd7e 30323 ac_status=$?
ac1cb8d3
VS
30324 grep -v '^ *+' conftest.er1 >conftest.err
30325 rm -f conftest.er1
30326 cat conftest.err >&5
a848cd7e 30327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30328 (exit $ac_status); } && {
30329 test -z "$ac_c_werror_flag" ||
30330 test ! -s conftest.err
30331 } && test -s conftest.$ac_objext; then
6e7b8bcb 30332 ac_cv_header_mspack_h=yes
a848cd7e
SC
30333else
30334 echo "$as_me: failed program was:" >&5
30335sed 's/^/| /' conftest.$ac_ext >&5
30336
47964710 30337 ac_cv_header_mspack_h=no
a848cd7e 30338fi
47964710
VS
30339
30340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 30341fi
47964710
VS
30342{ echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
30343echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
a848cd7e
SC
30344if test $ac_cv_header_mspack_h = yes; then
30345 found_mspack_h=1
30346fi
30347
30348
30349 if test "x$found_mspack_h" = "x1"; then
47964710
VS
30350 { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
30351echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
a848cd7e
SC
30352if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
30353 echo $ECHO_N "(cached) $ECHO_C" >&6
30354else
30355 ac_check_lib_save_LIBS=$LIBS
30356LIBS="-lmspack $LIBS"
30357cat >conftest.$ac_ext <<_ACEOF
30358/* confdefs.h. */
30359_ACEOF
30360cat confdefs.h >>conftest.$ac_ext
30361cat >>conftest.$ac_ext <<_ACEOF
30362/* end confdefs.h. */
30363
47964710
VS
30364/* Override any GCC internal prototype to avoid an error.
30365 Use char because int might match the return type of a GCC
30366 builtin and then its argument prototype would still apply. */
a848cd7e
SC
30367#ifdef __cplusplus
30368extern "C"
30369#endif
a848cd7e
SC
30370char mspack_create_chm_decompressor ();
30371int
30372main ()
30373{
47964710 30374return mspack_create_chm_decompressor ();
a848cd7e
SC
30375 ;
30376 return 0;
30377}
30378_ACEOF
30379rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
30380if { (ac_try="$ac_link"
30381case "(($ac_try" in
30382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30383 *) ac_try_echo=$ac_try;;
30384esac
30385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30386 (eval "$ac_link") 2>conftest.er1
a848cd7e 30387 ac_status=$?
ac1cb8d3
VS
30388 grep -v '^ *+' conftest.er1 >conftest.err
30389 rm -f conftest.er1
30390 cat conftest.err >&5
a848cd7e 30391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30392 (exit $ac_status); } && {
30393 test -z "$ac_c_werror_flag" ||
30394 test ! -s conftest.err
30395 } && test -s conftest$ac_exeext &&
30396 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
30397 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
30398else
30399 echo "$as_me: failed program was:" >&5
30400sed 's/^/| /' conftest.$ac_ext >&5
30401
47964710 30402 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
a848cd7e 30403fi
47964710
VS
30404
30405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 30406 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30407LIBS=$ac_check_lib_save_LIBS
30408fi
47964710
VS
30409{ echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
30410echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
a848cd7e
SC
30411if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
30412 MSPACK_LINK=" -lmspack"
30413fi
30414
30415 fi
30416 if test "x$MSPACK_LINK" = "x" ; then
30417 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
30418 fi
30419fi
30420
30421if test "$wxUSE_LIBMSPACK" != "no"; then
30422 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30423#define wxUSE_LIBMSPACK 1
30424_ACEOF
30425
a848cd7e
SC
30426fi
30427
30428
30429
30430AFMINSTALL=
30431WIN32INSTALL=
30432
30433TOOLKIT=
30434TOOLKIT_INCLUDE=
30435WIDGET_SET=
30436
30437if test "$USE_WIN32" = 1 ; then
be2ad872
PC
30438
30439for ac_header in w32api.h
30440do
30441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47964710
VS
30442{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e 30445 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 30446else
6e7b8bcb 30447 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30448/* confdefs.h. */
30449_ACEOF
30450cat confdefs.h >>conftest.$ac_ext
30451cat >>conftest.$ac_ext <<_ACEOF
30452/* end confdefs.h. */
6e7b8bcb
PC
30453
30454
be2ad872 30455#include <$ac_header>
a848cd7e
SC
30456_ACEOF
30457rm -f conftest.$ac_objext
47964710
VS
30458if { (ac_try="$ac_compile"
30459case "(($ac_try" in
30460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30461 *) ac_try_echo=$ac_try;;
30462esac
30463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30464 (eval "$ac_compile") 2>conftest.er1
a848cd7e 30465 ac_status=$?
ac1cb8d3
VS
30466 grep -v '^ *+' conftest.er1 >conftest.err
30467 rm -f conftest.er1
30468 cat conftest.err >&5
a848cd7e 30469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30470 (exit $ac_status); } && {
30471 test -z "$ac_c_werror_flag" ||
30472 test ! -s conftest.err
30473 } && test -s conftest.$ac_objext; then
be2ad872 30474 eval "$as_ac_Header=yes"
a848cd7e
SC
30475else
30476 echo "$as_me: failed program was:" >&5
30477sed 's/^/| /' conftest.$ac_ext >&5
30478
47964710 30479 eval "$as_ac_Header=no"
a848cd7e 30480fi
47964710
VS
30481
30482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 30483fi
47964710
VS
30484ac_res=`eval echo '${'$as_ac_Header'}'`
30485 { echo "$as_me:$LINENO: result: $ac_res" >&5
30486echo "${ECHO_T}$ac_res" >&6; }
be2ad872
PC
30487if test `eval echo '${'$as_ac_Header'}'` = yes; then
30488 cat >>confdefs.h <<_ACEOF
30489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30490_ACEOF
30491
30492fi
7fd3acaf 30493
be2ad872 30494done
f321ab7f 30495
47964710
VS
30496 { echo "$as_me:$LINENO: checking for windows.h" >&5
30497echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
f321ab7f
VS
30498if test "${ac_cv_header_windows_h+set}" = set; then
30499 echo $ECHO_N "(cached) $ECHO_C" >&6
f321ab7f 30500else
6e7b8bcb 30501 cat >conftest.$ac_ext <<_ACEOF
f321ab7f
VS
30502/* confdefs.h. */
30503_ACEOF
30504cat confdefs.h >>conftest.$ac_ext
30505cat >>conftest.$ac_ext <<_ACEOF
30506/* end confdefs.h. */
6e7b8bcb
PC
30507
30508
f321ab7f
VS
30509#include <windows.h>
30510_ACEOF
30511rm -f conftest.$ac_objext
47964710
VS
30512if { (ac_try="$ac_compile"
30513case "(($ac_try" in
30514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515 *) ac_try_echo=$ac_try;;
30516esac
30517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518 (eval "$ac_compile") 2>conftest.er1
f321ab7f
VS
30519 ac_status=$?
30520 grep -v '^ *+' conftest.er1 >conftest.err
30521 rm -f conftest.er1
30522 cat conftest.err >&5
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30524 (exit $ac_status); } && {
30525 test -z "$ac_c_werror_flag" ||
30526 test ! -s conftest.err
30527 } && test -s conftest.$ac_objext; then
6e7b8bcb 30528 ac_cv_header_windows_h=yes
f321ab7f
VS
30529else
30530 echo "$as_me: failed program was:" >&5
30531sed 's/^/| /' conftest.$ac_ext >&5
30532
47964710 30533 ac_cv_header_windows_h=no
f321ab7f 30534fi
47964710
VS
30535
30536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 30537fi
47964710
VS
30538{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30539echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
a848cd7e
SC
30540if test $ac_cv_header_windows_h = yes; then
30541 :
30542else
30543
30544 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
30545echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
30546 { (exit 1); exit 1; }; }
30547
30548fi
30549
30550
30551
30552 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
30553
30554 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
30555 LIBS="$LIBS -loleacc"
30556 fi
30557
30558 case "${host}" in
30559 *-*-cygwin* )
30560 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
30561 esac
30562
30563 if test "$wxUSE_ODBC" = "sys" ; then
30564 wxUSE_ODBC = "yes"
30565 fi
30566 if test "$wxUSE_ODBC" = "yes" ; then
30567 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
30568 cat >>confdefs.h <<\_ACEOF
30569#define wxUSE_ODBC 1
30570_ACEOF
30571
30572 fi
30573
370d2fd7 30574 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
30575 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
30576
004ee6da 30577 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 30578
a848cd7e 30579 WIN32INSTALL=win32install
5f41d1bf 30580
47964710
VS
30581 { echo "$as_me:$LINENO: checking for pbt.h" >&5
30582echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
6e7b8bcb 30583if test "${ac_cv_header_pbt_h+set}" = set; then
dcfd4ac4 30584 echo $ECHO_N "(cached) $ECHO_C" >&6
dcfd4ac4 30585else
6e7b8bcb 30586 cat >conftest.$ac_ext <<_ACEOF
dcfd4ac4
MW
30587/* confdefs.h. */
30588_ACEOF
30589cat confdefs.h >>conftest.$ac_ext
30590cat >>conftest.$ac_ext <<_ACEOF
30591/* end confdefs.h. */
6e7b8bcb
PC
30592
30593
30594#include <pbt.h>
dcfd4ac4
MW
30595_ACEOF
30596rm -f conftest.$ac_objext
47964710
VS
30597if { (ac_try="$ac_compile"
30598case "(($ac_try" in
30599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30600 *) ac_try_echo=$ac_try;;
30601esac
30602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30603 (eval "$ac_compile") 2>conftest.er1
dcfd4ac4
MW
30604 ac_status=$?
30605 grep -v '^ *+' conftest.er1 >conftest.err
30606 rm -f conftest.er1
30607 cat conftest.err >&5
30608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30609 (exit $ac_status); } && {
30610 test -z "$ac_c_werror_flag" ||
30611 test ! -s conftest.err
30612 } && test -s conftest.$ac_objext; then
6e7b8bcb 30613 ac_cv_header_pbt_h=yes
dcfd4ac4
MW
30614else
30615 echo "$as_me: failed program was:" >&5
30616sed 's/^/| /' conftest.$ac_ext >&5
30617
47964710 30618 ac_cv_header_pbt_h=no
dcfd4ac4 30619fi
47964710
VS
30620
30621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dcfd4ac4 30622fi
47964710
VS
30623{ echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
30624echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
6e7b8bcb
PC
30625if test $ac_cv_header_pbt_h = yes; then
30626 :
dcfd4ac4
MW
30627else
30628 cat >>confdefs.h <<\_ACEOF
30629#define NEED_PBT_H 1
30630_ACEOF
30631
30632fi
30633
dcfd4ac4 30634
a848cd7e
SC
30635fi
30636
30637if test "$wxUSE_GUI" = "yes"; then
30638 USE_GUI=1
30639
30640 GUI_TK_LIBRARY=
30641
30642 WXGTK12=
30643 WXGTK127=
30644 WXGTK20=
30645 WXGPE=
30646
207bc66c
RN
30647 if test "$wxUSE_COCOA" = 1 ; then
30648 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
30649 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
30650echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
30651 wxUSE_PRINTING_ARCHITECTURE=no
30652 fi
30653 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
30654 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
30655echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
30656 wxUSE_DRAG_AND_DROP=no
30657 fi
30658 if test "$wxUSE_DRAGIMAGE" = "yes"; then
cde242b8
VZ
30659 { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
30660echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
207bc66c
RN
30661 wxUSE_DRAGIMAGE=no
30662 fi
30663 fi
30664
a848cd7e
SC
30665 if test "$wxUSE_MSW" = 1 ; then
30666 TOOLKIT=MSW
30667 GUIDIST=MSW_DIST
30668
ceec2216 30669 case "${host}" in
a848cd7e
SC
30670 *-*-mingw32* )
30671 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
30672 esac
30673 fi
30674
30675 if test "$wxUSE_GTK" = 1; then
47964710
VS
30676 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
30677echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
a848cd7e
SC
30678
30679 gtk_version_cached=1
30680 if test "${wx_cv_lib_gtk+set}" = set; then
30681 echo $ECHO_N "(cached) $ECHO_C" >&6
30682else
30683
30684 gtk_version_cached=0
47964710
VS
30685 { echo "$as_me:$LINENO: result: " >&5
30686echo "${ECHO_T}" >&6; }
a848cd7e
SC
30687
30688 GTK_MODULES=
30689 if test "$wxUSE_THREADS" = "yes"; then
30690 GTK_MODULES=gthread
30691 fi
30692
f597b41c 30693 wx_cv_lib_gtk=
5001df0d
MW
30694 if test "x$wxGTK_VERSION" != "x1"
30695 then
30696 case "${host}" in
30697 *-*-solaris2* )
30698 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
43a7c679 30699 enable_gtktest=no
5001df0d
MW
30700 fi
30701 esac
30702
47964710 30703 # Check whether --enable-gtktest was given.
a848cd7e 30704if test "${enable_gtktest+set}" = set; then
47964710 30705 enableval=$enable_gtktest;
a848cd7e
SC
30706else
30707 enable_gtktest=yes
47964710
VS
30708fi
30709
a848cd7e
SC
30710
30711 pkg_config_args=gtk+-2.0
30712 for module in . $GTK_MODULES
30713 do
30714 case "$module" in
30715 gthread)
30716 pkg_config_args="$pkg_config_args gthread-2.0"
30717 ;;
30718 esac
30719 done
30720
30721 no_gtk=""
30722
30723 # Extract the first word of "pkg-config", so it can be a program name with args.
30724set dummy pkg-config; ac_word=$2
47964710
VS
30725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
30727if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30728 echo $ECHO_N "(cached) $ECHO_C" >&6
30729else
30730 case $PKG_CONFIG in
30731 [\\/]* | ?:[\\/]*)
30732 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30733 ;;
30734 *)
30735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30736for as_dir in $PATH
30737do
30738 IFS=$as_save_IFS
30739 test -z "$as_dir" && as_dir=.
30740 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 30741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
30742 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30744 break 2
30745 fi
30746done
30747done
47964710 30748IFS=$as_save_IFS
a848cd7e
SC
30749
30750 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30751 ;;
30752esac
30753fi
30754PKG_CONFIG=$ac_cv_path_PKG_CONFIG
a848cd7e 30755if test -n "$PKG_CONFIG"; then
47964710
VS
30756 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30757echo "${ECHO_T}$PKG_CONFIG" >&6; }
a848cd7e 30758else
47964710
VS
30759 { echo "$as_me:$LINENO: result: no" >&5
30760echo "${ECHO_T}no" >&6; }
a848cd7e
SC
30761fi
30762
30763
47964710 30764
a848cd7e
SC
30765 if test x$PKG_CONFIG != xno ; then
30766 if pkg-config --atleast-pkgconfig-version 0.7 ; then
30767 :
30768 else
c2218763 30769 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
30770 no_gtk=yes
30771 PKG_CONFIG=no
30772 fi
30773 else
30774 no_gtk=yes
30775 fi
30776
30777 min_gtk_version=2.0.0
47964710
VS
30778 { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30779echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
a848cd7e
SC
30780
30781 if test x$PKG_CONFIG != xno ; then
30782 ## don't try to run the test against uninstalled libtool libs
30783 if $PKG_CONFIG --uninstalled $pkg_config_args; then
30784 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30785 enable_gtktest=no
30786 fi
30787
30788 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30789 :
30790 else
30791 no_gtk=yes
30792 fi
30793 fi
30794
30795 if test x"$no_gtk" = x ; then
30796 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30797 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30798 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30799 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30800 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30801 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30802 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30803 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30804 if test "x$enable_gtktest" = "xyes" ; then
30805 ac_save_CFLAGS="$CFLAGS"
30806 ac_save_LIBS="$LIBS"
30807 CFLAGS="$CFLAGS $GTK_CFLAGS"
30808 LIBS="$GTK_LIBS $LIBS"
30809 rm -f conf.gtktest
30810 if test "$cross_compiling" = yes; then
30811 echo $ac_n "cross compiling; assumed OK... $ac_c"
30812else
30813 cat >conftest.$ac_ext <<_ACEOF
30814/* confdefs.h. */
30815_ACEOF
30816cat confdefs.h >>conftest.$ac_ext
30817cat >>conftest.$ac_ext <<_ACEOF
30818/* end confdefs.h. */
30819
30820#include <gtk/gtk.h>
30821#include <stdio.h>
30822#include <stdlib.h>
30823
30824int
30825main ()
30826{
30827 int major, minor, micro;
30828 char *tmp_version;
30829
30830 system ("touch conf.gtktest");
30831
30832 /* HP/UX 9 (%@#!) writes to sscanf strings */
30833 tmp_version = g_strdup("$min_gtk_version");
30834 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30835 printf("%s, bad version string\n", "$min_gtk_version");
30836 exit(1);
30837 }
30838
30839 if ((gtk_major_version != $gtk_config_major_version) ||
30840 (gtk_minor_version != $gtk_config_minor_version) ||
30841 (gtk_micro_version != $gtk_config_micro_version))
30842 {
30843 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30844 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30845 gtk_major_version, gtk_minor_version, gtk_micro_version);
30846 printf ("*** was found! If pkg-config was correct, then it is best\n");
30847 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30848 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30849 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30850 printf("*** required on your system.\n");
30851 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30852 printf("*** to point to the correct configuration files\n");
30853 }
30854 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30855 (gtk_minor_version != GTK_MINOR_VERSION) ||
30856 (gtk_micro_version != GTK_MICRO_VERSION))
30857 {
30858 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30859 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30860 printf("*** library (version %d.%d.%d)\n",
30861 gtk_major_version, gtk_minor_version, gtk_micro_version);
30862 }
30863 else
30864 {
30865 if ((gtk_major_version > major) ||
30866 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30867 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30868 {
30869 return 0;
30870 }
30871 else
30872 {
30873 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30874 gtk_major_version, gtk_minor_version, gtk_micro_version);
30875 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30876 major, minor, micro);
30877 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30878 printf("***\n");
30879 printf("*** If you have already installed a sufficiently new version, this error\n");
30880 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30881 printf("*** being found. The easiest way to fix this is to remove the old version\n");
30882 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30883 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30884 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30885 printf("*** so that the correct libraries are found at run-time))\n");
30886 }
30887 }
30888 return 1;
30889}
30890
30891_ACEOF
30892rm -f conftest$ac_exeext
47964710
VS
30893if { (ac_try="$ac_link"
30894case "(($ac_try" in
30895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896 *) ac_try_echo=$ac_try;;
30897esac
30898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899 (eval "$ac_link") 2>&5
a848cd7e
SC
30900 ac_status=$?
30901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
30903 { (case "(($ac_try" in
30904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30905 *) ac_try_echo=$ac_try;;
30906esac
30907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30908 (eval "$ac_try") 2>&5
a848cd7e
SC
30909 ac_status=$?
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); }; }; then
30912 :
30913else
30914 echo "$as_me: program exited with status $ac_status" >&5
30915echo "$as_me: failed program was:" >&5
30916sed 's/^/| /' conftest.$ac_ext >&5
30917
30918( exit $ac_status )
30919no_gtk=yes
30920fi
47964710 30921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 30922fi
47964710
VS
30923
30924
a848cd7e
SC
30925 CFLAGS="$ac_save_CFLAGS"
30926 LIBS="$ac_save_LIBS"
30927 fi
30928 fi
30929 if test "x$no_gtk" = x ; then
47964710
VS
30930 { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30931echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
a848cd7e
SC
30932 wx_cv_lib_gtk=2.0
30933 else
47964710
VS
30934 { echo "$as_me:$LINENO: result: no" >&5
30935echo "${ECHO_T}no" >&6; }
a848cd7e
SC
30936 if test "$PKG_CONFIG" = "no" ; then
30937 echo "*** A new enough version of pkg-config was not found."
30938 echo "*** See http://pkgconfig.sourceforge.net"
30939 else
30940 if test -f conf.gtktest ; then
30941 :
30942 else
30943 echo "*** Could not run GTK+ test program, checking why..."
30944 ac_save_CFLAGS="$CFLAGS"
30945 ac_save_LIBS="$LIBS"
30946 CFLAGS="$CFLAGS $GTK_CFLAGS"
30947 LIBS="$LIBS $GTK_LIBS"
30948 cat >conftest.$ac_ext <<_ACEOF
30949/* confdefs.h. */
30950_ACEOF
30951cat confdefs.h >>conftest.$ac_ext
30952cat >>conftest.$ac_ext <<_ACEOF
30953/* end confdefs.h. */
30954
30955#include <gtk/gtk.h>
30956#include <stdio.h>
30957
30958int
30959main ()
30960{
30961 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30962 ;
30963 return 0;
30964}
30965_ACEOF
30966rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
30967if { (ac_try="$ac_link"
30968case "(($ac_try" in
30969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30970 *) ac_try_echo=$ac_try;;
30971esac
30972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30973 (eval "$ac_link") 2>conftest.er1
a848cd7e 30974 ac_status=$?
ac1cb8d3
VS
30975 grep -v '^ *+' conftest.er1 >conftest.err
30976 rm -f conftest.er1
30977 cat conftest.err >&5
a848cd7e 30978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30979 (exit $ac_status); } && {
30980 test -z "$ac_c_werror_flag" ||
30981 test ! -s conftest.err
30982 } && test -s conftest$ac_exeext &&
30983 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
30984 echo "*** The test program compiled, but did not run. This usually means"
30985 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30986 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30987 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30988 echo "*** to the installed location Also, make sure you have run ldconfig if that"
30989 echo "*** is required on your system"
30990 echo "***"
30991 echo "*** If you have an old version installed, it is best to remove it, although"
30992 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30993else
30994 echo "$as_me: failed program was:" >&5
30995sed 's/^/| /' conftest.$ac_ext >&5
30996
47964710 30997 echo "*** The test program failed to compile or link. See the file config.log for the"
a848cd7e
SC
30998 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30999fi
47964710
VS
31000
31001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31002 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31003 CFLAGS="$ac_save_CFLAGS"
31004 LIBS="$ac_save_LIBS"
31005 fi
31006 fi
31007 GTK_CFLAGS=""
31008 GTK_LIBS=""
31009 :
31010 fi
31011
31012
31013 rm -f conf.gtktest
31014
5001df0d
MW
31015
31016 case "${host}" in
31017 *-*-solaris2* )
43a7c679 31018 if test "$wxUSE_SHARED" != "yes"; then
5001df0d
MW
31019 GTK_LIBS="$GTK_LIBS -lX11"
31020 fi
31021 esac
f597b41c
MW
31022 fi
31023
f34ca037
MW
31024 if test -z "$wx_cv_lib_gtk"; then
31025 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e 31026
47964710 31027# Check whether --with-gtk-prefix was given.
a848cd7e 31028if test "${with_gtk_prefix+set}" = set; then
47964710 31029 withval=$with_gtk_prefix; gtk_config_prefix="$withval"
a848cd7e
SC
31030else
31031 gtk_config_prefix=""
47964710 31032fi
84ebfcbd 31033
47964710
VS
31034
31035# Check whether --with-gtk-exec-prefix was given.
a848cd7e 31036if test "${with_gtk_exec_prefix+set}" = set; then
47964710 31037 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
a848cd7e
SC
31038else
31039 gtk_config_exec_prefix=""
47964710 31040fi
bd8a7646 31041
47964710
VS
31042# Check whether --enable-gtktest was given.
31043if test "${enable_gtktest+set}" = set; then
31044 enableval=$enable_gtktest;
a848cd7e
SC
31045else
31046 enable_gtktest=yes
47964710
VS
31047fi
31048
a848cd7e
SC
31049
31050 for module in . $GTK_MODULES
31051 do
31052 case "$module" in
31053 gthread)
31054 gtk_config_args="$gtk_config_args gthread"
31055 ;;
31056 esac
31057 done
31058
31059 if test x$gtk_config_exec_prefix != x ; then
31060 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
31061 if test x${GTK_CONFIG+set} != xset ; then
31062 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
31063 fi
31064 fi
31065 if test x$gtk_config_prefix != x ; then
31066 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
31067 if test x${GTK_CONFIG+set} != xset ; then
31068 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
31069 fi
31070 fi
31071
31072 # Extract the first word of "gtk-config", so it can be a program name with args.
31073set dummy gtk-config; ac_word=$2
47964710
VS
31074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
31076if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
31077 echo $ECHO_N "(cached) $ECHO_C" >&6
31078else
31079 case $GTK_CONFIG in
31080 [\\/]* | ?:[\\/]*)
31081 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
31082 ;;
31083 *)
31084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31085for as_dir in $PATH
31086do
31087 IFS=$as_save_IFS
31088 test -z "$as_dir" && as_dir=.
31089 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 31090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
31091 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31093 break 2
31094 fi
31095done
31096done
47964710 31097IFS=$as_save_IFS
a848cd7e
SC
31098
31099 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31100 ;;
31101esac
31102fi
31103GTK_CONFIG=$ac_cv_path_GTK_CONFIG
a848cd7e 31104if test -n "$GTK_CONFIG"; then
47964710
VS
31105 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31106echo "${ECHO_T}$GTK_CONFIG" >&6; }
a848cd7e 31107else
47964710
VS
31108 { echo "$as_me:$LINENO: result: no" >&5
31109echo "${ECHO_T}no" >&6; }
a848cd7e
SC
31110fi
31111
47964710 31112
a848cd7e 31113 min_gtk_version=1.2.7
47964710
VS
31114 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31115echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
a848cd7e
SC
31116 no_gtk=""
31117 if test "$GTK_CONFIG" = "no" ; then
31118 no_gtk=yes
31119 else
31120 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31121 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31122 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31123 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31124 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31125 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31126 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31127 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31128 if test "x$enable_gtktest" = "xyes" ; then
31129 ac_save_CFLAGS="$CFLAGS"
31130 ac_save_LIBS="$LIBS"
31131 CFLAGS="$CFLAGS $GTK_CFLAGS"
31132 LIBS="$GTK_LIBS $LIBS"
31133 rm -f conf.gtktest
31134 if test "$cross_compiling" = yes; then
31135 echo $ac_n "cross compiling; assumed OK... $ac_c"
31136else
31137 cat >conftest.$ac_ext <<_ACEOF
31138/* confdefs.h. */
31139_ACEOF
31140cat confdefs.h >>conftest.$ac_ext
31141cat >>conftest.$ac_ext <<_ACEOF
31142/* end confdefs.h. */
31143
31144#include <gtk/gtk.h>
31145#include <stdio.h>
31146#include <stdlib.h>
31147
31148int
31149main ()
31150{
31151 int major, minor, micro;
31152 char *tmp_version;
31153
31154 system ("touch conf.gtktest");
31155
31156 /* HP/UX 9 (%@#!) writes to sscanf strings */
31157 tmp_version = g_strdup("$min_gtk_version");
31158 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31159 printf("%s, bad version string\n", "$min_gtk_version");
31160 exit(1);
31161 }
31162
31163 if ((gtk_major_version != $gtk_config_major_version) ||
31164 (gtk_minor_version != $gtk_config_minor_version) ||
31165 (gtk_micro_version != $gtk_config_micro_version))
31166 {
31167 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31168 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31169 gtk_major_version, gtk_minor_version, gtk_micro_version);
31170 printf ("*** was found! If gtk-config was correct, then it is best\n");
31171 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31172 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31173 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31174 printf("*** required on your system.\n");
31175 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31176 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31177 printf("*** before re-running configure\n");
31178 }
31179#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31180 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31181 (gtk_minor_version != GTK_MINOR_VERSION) ||
31182 (gtk_micro_version != GTK_MICRO_VERSION))
31183 {
31184 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31185 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31186 printf("*** library (version %d.%d.%d)\n",
31187 gtk_major_version, gtk_minor_version, gtk_micro_version);
31188 }
31189#endif /* defined (GTK_MAJOR_VERSION) ... */
31190 else
31191 {
31192 if ((gtk_major_version > major) ||
31193 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31194 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31195 {
31196 return 0;
31197 }
31198 else
31199 {
31200 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31201 gtk_major_version, gtk_minor_version, gtk_micro_version);
31202 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31203 major, minor, micro);
31204 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31205 printf("***\n");
31206 printf("*** If you have already installed a sufficiently new version, this error\n");
31207 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31208 printf("*** being found. The easiest way to fix this is to remove the old version\n");
31209 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31210 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31211 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31212 printf("*** so that the correct libraries are found at run-time))\n");
31213 }
31214 }
31215 return 1;
31216}
31217
31218_ACEOF
31219rm -f conftest$ac_exeext
47964710
VS
31220if { (ac_try="$ac_link"
31221case "(($ac_try" in
31222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223 *) ac_try_echo=$ac_try;;
31224esac
31225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226 (eval "$ac_link") 2>&5
a848cd7e
SC
31227 ac_status=$?
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
31230 { (case "(($ac_try" in
31231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232 *) ac_try_echo=$ac_try;;
31233esac
31234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31235 (eval "$ac_try") 2>&5
a848cd7e
SC
31236 ac_status=$?
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); }; }; then
31239 :
31240else
31241 echo "$as_me: program exited with status $ac_status" >&5
31242echo "$as_me: failed program was:" >&5
31243sed 's/^/| /' conftest.$ac_ext >&5
31244
31245( exit $ac_status )
31246no_gtk=yes
31247fi
47964710 31248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 31249fi
47964710
VS
31250
31251
a848cd7e
SC
31252 CFLAGS="$ac_save_CFLAGS"
31253 LIBS="$ac_save_LIBS"
31254 fi
31255 fi
31256 if test "x$no_gtk" = x ; then
47964710
VS
31257 { echo "$as_me:$LINENO: result: yes" >&5
31258echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
31259 wx_cv_lib_gtk=1.2.7
31260 else
47964710
VS
31261 { echo "$as_me:$LINENO: result: no" >&5
31262echo "${ECHO_T}no" >&6; }
a848cd7e
SC
31263 if test "$GTK_CONFIG" = "no" ; then
31264 echo "*** The gtk-config script installed by GTK could not be found"
31265 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31266 echo "*** your path, or set the GTK_CONFIG environment variable to the"
31267 echo "*** full path to gtk-config."
31268 else
31269 if test -f conf.gtktest ; then
31270 :
31271 else
31272 echo "*** Could not run GTK test program, checking why..."
31273 CFLAGS="$CFLAGS $GTK_CFLAGS"
31274 LIBS="$LIBS $GTK_LIBS"
31275 cat >conftest.$ac_ext <<_ACEOF
31276/* confdefs.h. */
31277_ACEOF
31278cat confdefs.h >>conftest.$ac_ext
31279cat >>conftest.$ac_ext <<_ACEOF
31280/* end confdefs.h. */
31281
31282#include <gtk/gtk.h>
31283#include <stdio.h>
31284
31285int
31286main ()
31287{
31288 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31289 ;
31290 return 0;
31291}
31292_ACEOF
31293rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31294if { (ac_try="$ac_link"
31295case "(($ac_try" in
31296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31297 *) ac_try_echo=$ac_try;;
31298esac
31299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31300 (eval "$ac_link") 2>conftest.er1
a848cd7e 31301 ac_status=$?
ac1cb8d3
VS
31302 grep -v '^ *+' conftest.er1 >conftest.err
31303 rm -f conftest.er1
31304 cat conftest.err >&5
a848cd7e 31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31306 (exit $ac_status); } && {
31307 test -z "$ac_c_werror_flag" ||
31308 test ! -s conftest.err
31309 } && test -s conftest$ac_exeext &&
31310 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
31311 echo "*** The test program compiled, but did not run. This usually means"
31312 echo "*** that the run-time linker is not finding GTK or finding the wrong"
31313 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31314 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31315 echo "*** to the installed location Also, make sure you have run ldconfig if that"
31316 echo "*** is required on your system"
31317 echo "***"
31318 echo "*** If you have an old version installed, it is best to remove it, although"
31319 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31320 echo "***"
31321 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31322 echo "*** came with the system with the command"
31323 echo "***"
31324 echo "*** rpm --erase --nodeps gtk gtk-devel"
31325else
31326 echo "$as_me: failed program was:" >&5
31327sed 's/^/| /' conftest.$ac_ext >&5
31328
47964710 31329 echo "*** The test program failed to compile or link. See the file config.log for the"
a848cd7e
SC
31330 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31331 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31332 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31333fi
47964710
VS
31334
31335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31336 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31337 CFLAGS="$ac_save_CFLAGS"
31338 LIBS="$ac_save_LIBS"
31339 fi
31340 fi
31341 GTK_CFLAGS=""
31342 GTK_LIBS=""
31343 :
31344 fi
31345
31346
31347 rm -f conf.gtktest
31348
31349
f34ca037 31350 if test -z "$wx_cv_lib_gtk"; then
a848cd7e 31351
47964710 31352# Check whether --with-gtk-prefix was given.
a848cd7e 31353if test "${with_gtk_prefix+set}" = set; then
47964710 31354 withval=$with_gtk_prefix; gtk_config_prefix="$withval"
a848cd7e
SC
31355else
31356 gtk_config_prefix=""
47964710
VS
31357fi
31358
84ebfcbd 31359
47964710 31360# Check whether --with-gtk-exec-prefix was given.
a848cd7e 31361if test "${with_gtk_exec_prefix+set}" = set; then
47964710 31362 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
a848cd7e
SC
31363else
31364 gtk_config_exec_prefix=""
47964710 31365fi
bd8a7646 31366
47964710
VS
31367# Check whether --enable-gtktest was given.
31368if test "${enable_gtktest+set}" = set; then
31369 enableval=$enable_gtktest;
a848cd7e
SC
31370else
31371 enable_gtktest=yes
47964710
VS
31372fi
31373
a848cd7e
SC
31374
31375 for module in . $GTK_MODULES
31376 do
31377 case "$module" in
31378 gthread)
31379 gtk_config_args="$gtk_config_args gthread"
31380 ;;
31381 esac
31382 done
31383
31384 if test x$gtk_config_exec_prefix != x ; then
31385 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
31386 if test x${GTK_CONFIG+set} != xset ; then
31387 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
31388 fi
31389 fi
31390 if test x$gtk_config_prefix != x ; then
31391 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
31392 if test x${GTK_CONFIG+set} != xset ; then
31393 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
31394 fi
31395 fi
31396
31397 # Extract the first word of "gtk-config", so it can be a program name with args.
31398set dummy gtk-config; ac_word=$2
47964710
VS
31399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
31401if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
31402 echo $ECHO_N "(cached) $ECHO_C" >&6
31403else
31404 case $GTK_CONFIG in
31405 [\\/]* | ?:[\\/]*)
31406 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
31407 ;;
31408 *)
31409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31410for as_dir in $PATH
31411do
31412 IFS=$as_save_IFS
31413 test -z "$as_dir" && as_dir=.
31414 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 31415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
31416 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31418 break 2
31419 fi
31420done
31421done
47964710 31422IFS=$as_save_IFS
a848cd7e
SC
31423
31424 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31425 ;;
31426esac
31427fi
31428GTK_CONFIG=$ac_cv_path_GTK_CONFIG
a848cd7e 31429if test -n "$GTK_CONFIG"; then
47964710
VS
31430 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31431echo "${ECHO_T}$GTK_CONFIG" >&6; }
a848cd7e 31432else
47964710
VS
31433 { echo "$as_me:$LINENO: result: no" >&5
31434echo "${ECHO_T}no" >&6; }
a848cd7e
SC
31435fi
31436
47964710 31437
a848cd7e 31438 min_gtk_version=1.2.3
47964710
VS
31439 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31440echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
a848cd7e
SC
31441 no_gtk=""
31442 if test "$GTK_CONFIG" = "no" ; then
31443 no_gtk=yes
31444 else
31445 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31446 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31447 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31448 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31449 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31450 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31451 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31452 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31453 if test "x$enable_gtktest" = "xyes" ; then
31454 ac_save_CFLAGS="$CFLAGS"
31455 ac_save_LIBS="$LIBS"
31456 CFLAGS="$CFLAGS $GTK_CFLAGS"
31457 LIBS="$GTK_LIBS $LIBS"
31458 rm -f conf.gtktest
31459 if test "$cross_compiling" = yes; then
31460 echo $ac_n "cross compiling; assumed OK... $ac_c"
31461else
31462 cat >conftest.$ac_ext <<_ACEOF
31463/* confdefs.h. */
31464_ACEOF
31465cat confdefs.h >>conftest.$ac_ext
31466cat >>conftest.$ac_ext <<_ACEOF
31467/* end confdefs.h. */
31468
31469#include <gtk/gtk.h>
31470#include <stdio.h>
31471#include <stdlib.h>
31472
31473int
31474main ()
31475{
31476 int major, minor, micro;
31477 char *tmp_version;
31478
31479 system ("touch conf.gtktest");
31480
31481 /* HP/UX 9 (%@#!) writes to sscanf strings */
31482 tmp_version = g_strdup("$min_gtk_version");
31483 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31484 printf("%s, bad version string\n", "$min_gtk_version");
31485 exit(1);
31486 }
31487
31488 if ((gtk_major_version != $gtk_config_major_version) ||
31489 (gtk_minor_version != $gtk_config_minor_version) ||
31490 (gtk_micro_version != $gtk_config_micro_version))
31491 {
31492 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31493 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31494 gtk_major_version, gtk_minor_version, gtk_micro_version);
31495 printf ("*** was found! If gtk-config was correct, then it is best\n");
31496 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31497 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31498 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31499 printf("*** required on your system.\n");
31500 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31501 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31502 printf("*** before re-running configure\n");
31503 }
31504#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31505 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31506 (gtk_minor_version != GTK_MINOR_VERSION) ||
31507 (gtk_micro_version != GTK_MICRO_VERSION))
31508 {
31509 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31510 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31511 printf("*** library (version %d.%d.%d)\n",
31512 gtk_major_version, gtk_minor_version, gtk_micro_version);
31513 }
31514#endif /* defined (GTK_MAJOR_VERSION) ... */
31515 else
31516 {
31517 if ((gtk_major_version > major) ||
31518 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31519 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31520 {
31521 return 0;
31522 }
31523 else
31524 {
31525 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31526 gtk_major_version, gtk_minor_version, gtk_micro_version);
31527 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31528 major, minor, micro);
31529 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31530 printf("***\n");
31531 printf("*** If you have already installed a sufficiently new version, this error\n");
31532 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31533 printf("*** being found. The easiest way to fix this is to remove the old version\n");
31534 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31535 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31536 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31537 printf("*** so that the correct libraries are found at run-time))\n");
31538 }
31539 }
31540 return 1;
31541}
31542
31543_ACEOF
31544rm -f conftest$ac_exeext
47964710
VS
31545if { (ac_try="$ac_link"
31546case "(($ac_try" in
31547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31548 *) ac_try_echo=$ac_try;;
31549esac
31550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31551 (eval "$ac_link") 2>&5
a848cd7e
SC
31552 ac_status=$?
31553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
31555 { (case "(($ac_try" in
31556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31557 *) ac_try_echo=$ac_try;;
31558esac
31559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31560 (eval "$ac_try") 2>&5
a848cd7e
SC
31561 ac_status=$?
31562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); }; }; then
31564 :
31565else
31566 echo "$as_me: program exited with status $ac_status" >&5
31567echo "$as_me: failed program was:" >&5
31568sed 's/^/| /' conftest.$ac_ext >&5
31569
31570( exit $ac_status )
31571no_gtk=yes
31572fi
47964710 31573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 31574fi
47964710
VS
31575
31576
a848cd7e
SC
31577 CFLAGS="$ac_save_CFLAGS"
31578 LIBS="$ac_save_LIBS"
31579 fi
31580 fi
31581 if test "x$no_gtk" = x ; then
47964710
VS
31582 { echo "$as_me:$LINENO: result: yes" >&5
31583echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
31584 wx_cv_lib_gtk=1.2.3
31585 else
47964710
VS
31586 { echo "$as_me:$LINENO: result: no" >&5
31587echo "${ECHO_T}no" >&6; }
a848cd7e
SC
31588 if test "$GTK_CONFIG" = "no" ; then
31589 echo "*** The gtk-config script installed by GTK could not be found"
31590 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31591 echo "*** your path, or set the GTK_CONFIG environment variable to the"
31592 echo "*** full path to gtk-config."
31593 else
31594 if test -f conf.gtktest ; then
31595 :
31596 else
31597 echo "*** Could not run GTK test program, checking why..."
31598 CFLAGS="$CFLAGS $GTK_CFLAGS"
31599 LIBS="$LIBS $GTK_LIBS"
31600 cat >conftest.$ac_ext <<_ACEOF
31601/* confdefs.h. */
31602_ACEOF
31603cat confdefs.h >>conftest.$ac_ext
31604cat >>conftest.$ac_ext <<_ACEOF
31605/* end confdefs.h. */
31606
31607#include <gtk/gtk.h>
31608#include <stdio.h>
31609
31610int
31611main ()
31612{
31613 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31614 ;
31615 return 0;
31616}
31617_ACEOF
31618rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31619if { (ac_try="$ac_link"
31620case "(($ac_try" in
31621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622 *) ac_try_echo=$ac_try;;
31623esac
31624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625 (eval "$ac_link") 2>conftest.er1
a848cd7e 31626 ac_status=$?
ac1cb8d3
VS
31627 grep -v '^ *+' conftest.er1 >conftest.err
31628 rm -f conftest.er1
31629 cat conftest.err >&5
a848cd7e 31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31631 (exit $ac_status); } && {
31632 test -z "$ac_c_werror_flag" ||
31633 test ! -s conftest.err
31634 } && test -s conftest$ac_exeext &&
31635 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
31636 echo "*** The test program compiled, but did not run. This usually means"
31637 echo "*** that the run-time linker is not finding GTK or finding the wrong"
31638 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31639 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31640 echo "*** to the installed location Also, make sure you have run ldconfig if that"
31641 echo "*** is required on your system"
31642 echo "***"
31643 echo "*** If you have an old version installed, it is best to remove it, although"
31644 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31645 echo "***"
31646 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31647 echo "*** came with the system with the command"
31648 echo "***"
31649 echo "*** rpm --erase --nodeps gtk gtk-devel"
31650else
31651 echo "$as_me: failed program was:" >&5
31652sed 's/^/| /' conftest.$ac_ext >&5
31653
47964710 31654 echo "*** The test program failed to compile or link. See the file config.log for the"
a848cd7e
SC
31655 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31656 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31657 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31658fi
47964710
VS
31659
31660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31661 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31662 CFLAGS="$ac_save_CFLAGS"
31663 LIBS="$ac_save_LIBS"
31664 fi
31665 fi
31666 GTK_CFLAGS=""
31667 GTK_LIBS=""
31668 :
31669 fi
31670
31671
31672 rm -f conf.gtktest
31673
f34ca037 31674 fi
a848cd7e
SC
31675 fi
31676 fi
31677
31678 if test -z "$wx_cv_lib_gtk"; then
31679 wx_cv_lib_gtk=none
31680 else
31681 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 31682 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
31683 fi
31684
31685
31686fi
31687
31688
31689 if test "$gtk_version_cached" = 1; then
47964710
VS
31690 { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
31691echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
a848cd7e
SC
31692 fi
31693
31694 case "$wx_cv_lib_gtk" in
31695 2.0) WXGTK20=1
31696 TOOLKIT_VERSION=2
31697 ;;
31698 1.2.7) WXGTK127=1
31699 WXGTK12=1
31700 ;;
31701 1.2.3) WXGTK12=1
31702 ;;
31703 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
31704The development files for GTK+ were not found. For GTK+ 2, please
31705ensure that pkg-config is in the path and that gtk+-2.0.pc is
31706installed. For GTK+ 1.2 please check that gtk-config is in the path,
31707and that the version is 1.2.3 or above. Also check that the
31708libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31709--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
31710 " >&5
31711echo "$as_me: error:
f597b41c
MW
31712The development files for GTK+ were not found. For GTK+ 2, please
31713ensure that pkg-config is in the path and that gtk+-2.0.pc is
31714installed. For GTK+ 1.2 please check that gtk-config is in the path,
31715and that the version is 1.2.3 or above. Also check that the
31716libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31717--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
31718 " >&2;}
31719 { (exit 1); exit 1; }; }
31720 ;;
31721 esac
31722
31723 if test "$WXGTK20" = 1; then
6954625c 31724 save_CFLAGS="$CFLAGS"
304205f1 31725 save_LIBS="$LIBS"
6954625c 31726 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 31727 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 31728
47964710
VS
31729 { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
31730echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
58e65954
MW
31731if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
31732 echo $ECHO_N "(cached) $ECHO_C" >&6
31733else
31734 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
31735/* confdefs.h. */
31736_ACEOF
31737cat confdefs.h >>conftest.$ac_ext
31738cat >>conftest.$ac_ext <<_ACEOF
31739/* end confdefs.h. */
58e65954 31740#include <gtk/gtk.h>
304205f1 31741
d12aef51
VZ
31742int
31743main ()
31744{
58e65954 31745#ifndef gtk_icon_size_lookup
47964710 31746 (void) gtk_icon_size_lookup;
58e65954 31747#endif
abc736fd
MW
31748
31749 ;
31750 return 0;
31751}
31752_ACEOF
31753rm -f conftest.$ac_objext
47964710
VS
31754if { (ac_try="$ac_compile"
31755case "(($ac_try" in
31756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31757 *) ac_try_echo=$ac_try;;
31758esac
31759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31760 (eval "$ac_compile") 2>conftest.er1
abc736fd
MW
31761 ac_status=$?
31762 grep -v '^ *+' conftest.er1 >conftest.err
31763 rm -f conftest.er1
31764 cat conftest.err >&5
31765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31766 (exit $ac_status); } && {
31767 test -z "$ac_c_werror_flag" ||
31768 test ! -s conftest.err
31769 } && test -s conftest.$ac_objext; then
58e65954 31770 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
31771else
31772 echo "$as_me: failed program was:" >&5
31773sed 's/^/| /' conftest.$ac_ext >&5
31774
47964710 31775 ac_cv_have_decl_gtk_icon_size_lookup=no
58e65954 31776fi
47964710
VS
31777
31778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58e65954 31779fi
47964710
VS
31780{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
31781echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
58e65954 31782if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 31783
58e65954
MW
31784cat >>confdefs.h <<_ACEOF
31785#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
31786_ACEOF
31787
58e65954
MW
31788
31789else
31790 cat >>confdefs.h <<_ACEOF
31791#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
31792_ACEOF
31793
31794cat >>confdefs.h <<\_ACEOF
31795#define NEED_GTK_ICON_SIZE_LOOKUP 1
31796_ACEOF
abc736fd
MW
31797
31798fi
58e65954
MW
31799
31800
abc736fd 31801
a48b6595 31802
47964710
VS
31803 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31804echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
e9263684
VZ
31805 cat >conftest.$ac_ext <<_ACEOF
31806/* confdefs.h. */
31807_ACEOF
31808cat confdefs.h >>conftest.$ac_ext
31809cat >>conftest.$ac_ext <<_ACEOF
31810/* end confdefs.h. */
31811
31812 #include <gtk/gtk.h>
31813
31814int
31815main ()
31816{
31817
a48b6595
VZ
31818 #if !GTK_CHECK_VERSION(2,10,0)
31819 Not GTK+ 2.10
e9263684
VZ
31820 #endif
31821
31822 ;
31823 return 0;
31824}
31825_ACEOF
31826rm -f conftest.$ac_objext
47964710
VS
31827if { (ac_try="$ac_compile"
31828case "(($ac_try" in
31829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31830 *) ac_try_echo=$ac_try;;
31831esac
31832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31833 (eval "$ac_compile") 2>conftest.er1
e9263684
VZ
31834 ac_status=$?
31835 grep -v '^ *+' conftest.er1 >conftest.err
31836 rm -f conftest.er1
31837 cat conftest.err >&5
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31839 (exit $ac_status); } && {
31840 test -z "$ac_c_werror_flag" ||
31841 test ! -s conftest.err
31842 } && test -s conftest.$ac_objext; then
e9263684 31843
a48b6595
VZ
31844 cat >>confdefs.h <<\_ACEOF
31845#define __WXGTK210__ 1
31846_ACEOF
31847
e9263684
VZ
31848 cat >>confdefs.h <<\_ACEOF
31849#define __WXGTK26__ 1
31850_ACEOF
31851
31852 cat >>confdefs.h <<\_ACEOF
31853#define __WXGTK24__ 1
31854_ACEOF
31855
47964710
VS
31856 { echo "$as_me:$LINENO: result: yes" >&5
31857echo "${ECHO_T}yes" >&6; }
a48b6595 31858 ac_wxgtk210=1
e9263684
VZ
31859
31860else
31861 echo "$as_me: failed program was:" >&5
31862sed 's/^/| /' conftest.$ac_ext >&5
31863
31864
47964710
VS
31865 { echo "$as_me:$LINENO: result: no" >&5
31866echo "${ECHO_T}no" >&6; }
a48b6595
VZ
31867 ac_wxgtk210=0
31868
31869fi
47964710
VS
31870
31871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a48b6595
VZ
31872
31873 if test "$ac_wxgtk210" = 0; then
47964710
VS
31874 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31875echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
a48b6595
VZ
31876 cat >conftest.$ac_ext <<_ACEOF
31877/* confdefs.h. */
31878_ACEOF
31879cat confdefs.h >>conftest.$ac_ext
31880cat >>conftest.$ac_ext <<_ACEOF
31881/* end confdefs.h. */
31882
31883 #include <gtk/gtk.h>
31884
31885int
31886main ()
31887{
31888
31889 #if !GTK_CHECK_VERSION(2,6,0)
31890 Not GTK+ 2.6
31891 #endif
31892
31893 ;
31894 return 0;
31895}
31896_ACEOF
31897rm -f conftest.$ac_objext
47964710
VS
31898if { (ac_try="$ac_compile"
31899case "(($ac_try" in
31900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31901 *) ac_try_echo=$ac_try;;
31902esac
31903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31904 (eval "$ac_compile") 2>conftest.er1
a48b6595
VZ
31905 ac_status=$?
31906 grep -v '^ *+' conftest.er1 >conftest.err
31907 rm -f conftest.er1
31908 cat conftest.err >&5
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31910 (exit $ac_status); } && {
31911 test -z "$ac_c_werror_flag" ||
31912 test ! -s conftest.err
31913 } && test -s conftest.$ac_objext; then
a48b6595
VZ
31914
31915 cat >>confdefs.h <<\_ACEOF
31916#define __WXGTK26__ 1
31917_ACEOF
31918
31919 cat >>confdefs.h <<\_ACEOF
31920#define __WXGTK24__ 1
31921_ACEOF
31922
47964710
VS
31923 { echo "$as_me:$LINENO: result: yes" >&5
31924echo "${ECHO_T}yes" >&6; }
a48b6595
VZ
31925 ac_wxgtk26=1
31926
31927else
31928 echo "$as_me: failed program was:" >&5
31929sed 's/^/| /' conftest.$ac_ext >&5
31930
31931
47964710
VS
31932 { echo "$as_me:$LINENO: result: no" >&5
31933echo "${ECHO_T}no" >&6; }
a48b6595 31934 ac_wxgtk26=0
e9263684
VZ
31935
31936fi
47964710
VS
31937
31938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a48b6595 31939 fi
e9263684
VZ
31940
31941 if test "$ac_wxgtk26" = 0; then
47964710
VS
31942 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
31943echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6; }
a48b6595 31944 cat >conftest.$ac_ext <<_ACEOF
9755e73b
VS
31945/* confdefs.h. */
31946_ACEOF
31947cat confdefs.h >>conftest.$ac_ext
31948cat >>conftest.$ac_ext <<_ACEOF
31949/* end confdefs.h. */
31950
a48b6595 31951 #include <gtk/gtk.h>
9755e73b
VS
31952
31953int
31954main ()
31955{
31956
a48b6595
VZ
31957 #if !GTK_CHECK_VERSION(2,4,0)
31958 Not GTK+ 2.4
31959 #endif
9755e73b
VS
31960
31961 ;
31962 return 0;
31963}
31964_ACEOF
31965rm -f conftest.$ac_objext
47964710
VS
31966if { (ac_try="$ac_compile"
31967case "(($ac_try" in
31968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31969 *) ac_try_echo=$ac_try;;
31970esac
31971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31972 (eval "$ac_compile") 2>conftest.er1
9755e73b
VS
31973 ac_status=$?
31974 grep -v '^ *+' conftest.er1 >conftest.err
31975 rm -f conftest.er1
31976 cat conftest.err >&5
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31978 (exit $ac_status); } && {
31979 test -z "$ac_c_werror_flag" ||
31980 test ! -s conftest.err
31981 } && test -s conftest.$ac_objext; then
9755e73b 31982
a48b6595 31983 cat >>confdefs.h <<\_ACEOF
9755e73b
VS
31984#define __WXGTK24__ 1
31985_ACEOF
31986
47964710
VS
31987 { echo "$as_me:$LINENO: result: yes" >&5
31988echo "${ECHO_T}yes" >&6; }
9755e73b
VS
31989
31990else
31991 echo "$as_me: failed program was:" >&5
31992sed 's/^/| /' conftest.$ac_ext >&5
31993
31994
47964710
VS
31995 { echo "$as_me:$LINENO: result: no" >&5
31996echo "${ECHO_T}no" >&6; }
9755e73b
VS
31997
31998fi
47964710
VS
31999
32000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 32001 fi
9755e73b 32002
6954625c 32003 CFLAGS="$save_CFLAGS"
304205f1 32004 LIBS="$save_LIBS"
a848cd7e
SC
32005 else
32006 if test "$wxUSE_UNICODE" = "yes"; then
32007 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
32008echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
32009 wxUSE_UNICODE=no
32010 fi
64b75e64 32011
47964710
VS
32012 { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
32013echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
64b75e64
RD
32014if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
32015 echo $ECHO_N "(cached) $ECHO_C" >&6
32016else
32017 ac_check_lib_save_LIBS=$LIBS
32018LIBS="-lgdk $LIBS"
32019cat >conftest.$ac_ext <<_ACEOF
32020/* confdefs.h. */
32021_ACEOF
32022cat confdefs.h >>conftest.$ac_ext
32023cat >>conftest.$ac_ext <<_ACEOF
32024/* end confdefs.h. */
32025
47964710
VS
32026/* Override any GCC internal prototype to avoid an error.
32027 Use char because int might match the return type of a GCC
32028 builtin and then its argument prototype would still apply. */
64b75e64
RD
32029#ifdef __cplusplus
32030extern "C"
32031#endif
64b75e64
RD
32032char gdk_im_open ();
32033int
32034main ()
32035{
47964710 32036return gdk_im_open ();
64b75e64
RD
32037 ;
32038 return 0;
32039}
32040_ACEOF
32041rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
32042if { (ac_try="$ac_link"
32043case "(($ac_try" in
32044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32045 *) ac_try_echo=$ac_try;;
32046esac
32047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32048 (eval "$ac_link") 2>conftest.er1
64b75e64
RD
32049 ac_status=$?
32050 grep -v '^ *+' conftest.er1 >conftest.err
32051 rm -f conftest.er1
32052 cat conftest.err >&5
32053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
32054 (exit $ac_status); } && {
32055 test -z "$ac_c_werror_flag" ||
32056 test ! -s conftest.err
32057 } && test -s conftest$ac_exeext &&
32058 $as_test_x conftest$ac_exeext; then
64b75e64
RD
32059 ac_cv_lib_gdk_gdk_im_open=yes
32060else
32061 echo "$as_me: failed program was:" >&5
32062sed 's/^/| /' conftest.$ac_ext >&5
32063
47964710 32064 ac_cv_lib_gdk_gdk_im_open=no
64b75e64 32065fi
47964710
VS
32066
32067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64b75e64
RD
32068 conftest$ac_exeext conftest.$ac_ext
32069LIBS=$ac_check_lib_save_LIBS
32070fi
47964710
VS
32071{ echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
32072echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
64b75e64
RD
32073if test $ac_cv_lib_gdk_gdk_im_open = yes; then
32074 cat >>confdefs.h <<\_ACEOF
32075#define HAVE_XIM 1
32076_ACEOF
32077
32078fi
32079
a848cd7e 32080
7fd3acaf 32081 if test "$USE_DARWIN" != 1; then
a848cd7e
SC
32082
32083for ac_func in poll
32084do
32085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
32086{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32088if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
32089 echo $ECHO_N "(cached) $ECHO_C" >&6
32090else
32091 cat >conftest.$ac_ext <<_ACEOF
32092/* confdefs.h. */
32093_ACEOF
32094cat confdefs.h >>conftest.$ac_ext
32095cat >>conftest.$ac_ext <<_ACEOF
32096/* end confdefs.h. */
ac1cb8d3
VS
32097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32099#define $ac_func innocuous_$ac_func
32100
a848cd7e
SC
32101/* System header to define __stub macros and hopefully few prototypes,
32102 which can conflict with char $ac_func (); below.
32103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32104 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32105
a848cd7e
SC
32106#ifdef __STDC__
32107# include <limits.h>
32108#else
32109# include <assert.h>
32110#endif
ac1cb8d3
VS
32111
32112#undef $ac_func
32113
47964710
VS
32114/* Override any GCC internal prototype to avoid an error.
32115 Use char because int might match the return type of a GCC
32116 builtin and then its argument prototype would still apply. */
a848cd7e
SC
32117#ifdef __cplusplus
32118extern "C"
a848cd7e 32119#endif
a848cd7e
SC
32120char $ac_func ();
32121/* The GNU C library defines this for functions which it implements
32122 to always fail with ENOSYS. Some functions are actually named
32123 something starting with __ and the normal name is an alias. */
47964710 32124#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 32125choke me
a848cd7e
SC
32126#endif
32127
32128int
32129main ()
32130{
47964710 32131return $ac_func ();
a848cd7e
SC
32132 ;
32133 return 0;
32134}
32135_ACEOF
32136rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
32137if { (ac_try="$ac_link"
32138case "(($ac_try" in
32139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32140 *) ac_try_echo=$ac_try;;
32141esac
32142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32143 (eval "$ac_link") 2>conftest.er1
a848cd7e 32144 ac_status=$?
ac1cb8d3
VS
32145 grep -v '^ *+' conftest.er1 >conftest.err
32146 rm -f conftest.er1
32147 cat conftest.err >&5
a848cd7e 32148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
32149 (exit $ac_status); } && {
32150 test -z "$ac_c_werror_flag" ||
32151 test ! -s conftest.err
32152 } && test -s conftest$ac_exeext &&
32153 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
32154 eval "$as_ac_var=yes"
32155else
32156 echo "$as_me: failed program was:" >&5
32157sed 's/^/| /' conftest.$ac_ext >&5
32158
47964710 32159 eval "$as_ac_var=no"
a848cd7e 32160fi
47964710
VS
32161
32162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 32163 conftest$ac_exeext conftest.$ac_ext
a848cd7e 32164fi
47964710
VS
32165ac_res=`eval echo '${'$as_ac_var'}'`
32166 { echo "$as_me:$LINENO: result: $ac_res" >&5
32167echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
32168if test `eval echo '${'$as_ac_var'}'` = yes; then
32169 cat >>confdefs.h <<_ACEOF
32170#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32171_ACEOF
32172
32173fi
32174done
32175
7fd3acaf 32176 fi
a848cd7e
SC
32177 fi
32178
32179 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
32180 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
32181
32182 AFMINSTALL=afminstall
32183 TOOLKIT=GTK
32184 GUIDIST=GTK_DIST
32185
a848cd7e 32186 if test "$wxUSE_GPE" = "yes"; then
47964710
VS
32187 { echo "$as_me:$LINENO: checking for gpewidget library" >&5
32188echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
a848cd7e 32189
0ad5d837
VZ
32190 ac_find_libraries=
32191 for ac_dir in $SEARCH_LIB;
a848cd7e 32192 do
3eca31dc 32193 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32194 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
32195 ac_find_libraries=$ac_dir
32196 break 2
32197 fi
32198 done
32199 done
32200
32201 if test "$ac_find_libraries" != "" ; then
32202
0ad5d837 32203 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32204 ac_path_to_link=""
32205 else
0ad5d837
VZ
32206 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32207 result=$?
32208 if test $result = 0; then
32209 ac_path_to_link=""
32210 else
32211 ac_path_to_link=" -L$ac_find_libraries"
32212 fi
a848cd7e
SC
32213 fi
32214
32215 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
32216 WXGPE=1
47964710
VS
32217 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32218echo "${ECHO_T}found in $ac_find_libraries" >&6; }
a848cd7e 32219 else
47964710
VS
32220 { echo "$as_me:$LINENO: result: not found" >&5
32221echo "${ECHO_T}not found" >&6; }
a848cd7e
SC
32222 fi
32223
32224 fi
32225 fi
32226
32227 if test "$wxUSE_MGL" = 1; then
47964710
VS
32228 { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
32229echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
a848cd7e 32230 if test "x$MGL_ROOT" = x ; then
47964710
VS
32231 { echo "$as_me:$LINENO: result: not found" >&5
32232echo "${ECHO_T}not found" >&6; }
a848cd7e
SC
32233 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
32234echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
32235 { (exit 1); exit 1; }; }
32236 else
47964710
VS
32237 { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
32238echo "${ECHO_T}$MGL_ROOT" >&6; }
a848cd7e
SC
32239 fi
32240
47964710
VS
32241 { echo "$as_me:$LINENO: checking for libmgl location" >&5
32242echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
a848cd7e
SC
32243 case "${host}" in
32244 *-*-linux* )
32245 if test "x$wxUSE_SHARED" = xyes ; then
32246 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
32247 else
32248 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
32249 fi
32250 ;;
32251 *-pc-msdosdjgpp )
32252 mgl_os_candidates="dos32/dj2"
32253 ;;
32254 *)
32255 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
32256echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
32257 { (exit 1); exit 1; }; }
32258 esac
32259
32260 mgl_lib_type=""
32261 mgl_os=""
32262
32263 for mgl_os_i in $mgl_os_candidates ; do
32264 if test "x$mgl_os" = x ; then
32265 if test "$wxUSE_DEBUG_FLAG" = yes ; then
32266 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
32267 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
32268 mgl_lib_type=debug
32269 mgl_os=$mgl_os_i
32270 fi
32271 fi
32272 if test "x$mgl_lib_type" = x ; then
32273 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
32274 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
32275 mgl_lib_type=release
32276 mgl_os=$mgl_os_i
32277 fi
32278 fi
32279 fi
32280 done
32281
32282 if test "x$mgl_os" = x ; then
47964710
VS
32283 { echo "$as_me:$LINENO: result: not found" >&5
32284echo "${ECHO_T}not found" >&6; }
a848cd7e
SC
32285 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
32286echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
32287 { (exit 1); exit 1; }; }
32288 fi
47964710
VS
32289 { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
32290echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
a848cd7e
SC
32291
32292 wxUSE_UNIVERSAL="yes"
32293
32294 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
32295 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
32296
32297 AFMINSTALL=afminstall
32298 TOOLKIT=MGL
32299 GUIDIST=MGL_DIST
32300 fi
32301
b3c86150
VS
32302 if test "$wxUSE_DFB" = 1; then
32303
32304
32305if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32306 if test -n "$ac_tool_prefix"; then
32307 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32308set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
47964710
VS
32309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
32310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3c86150
VS
32311if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32312 echo $ECHO_N "(cached) $ECHO_C" >&6
32313else
32314 case $PKG_CONFIG in
32315 [\\/]* | ?:[\\/]*)
32316 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32317 ;;
32318 *)
32319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32320for as_dir in $PATH
32321do
32322 IFS=$as_save_IFS
32323 test -z "$as_dir" && as_dir=.
32324 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 32325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3c86150
VS
32326 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32328 break 2
32329 fi
32330done
32331done
47964710 32332IFS=$as_save_IFS
b3c86150
VS
32333
32334 ;;
32335esac
32336fi
32337PKG_CONFIG=$ac_cv_path_PKG_CONFIG
b3c86150 32338if test -n "$PKG_CONFIG"; then
47964710
VS
32339 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32340echo "${ECHO_T}$PKG_CONFIG" >&6; }
b3c86150 32341else
47964710
VS
32342 { echo "$as_me:$LINENO: result: no" >&5
32343echo "${ECHO_T}no" >&6; }
b3c86150
VS
32344fi
32345
47964710 32346
b3c86150
VS
32347fi
32348if test -z "$ac_cv_path_PKG_CONFIG"; then
32349 ac_pt_PKG_CONFIG=$PKG_CONFIG
32350 # Extract the first word of "pkg-config", so it can be a program name with args.
32351set dummy pkg-config; ac_word=$2
47964710
VS
32352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
32353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3c86150
VS
32354if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32355 echo $ECHO_N "(cached) $ECHO_C" >&6
32356else
32357 case $ac_pt_PKG_CONFIG in
32358 [\\/]* | ?:[\\/]*)
32359 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32360 ;;
32361 *)
32362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32363for as_dir in $PATH
32364do
32365 IFS=$as_save_IFS
32366 test -z "$as_dir" && as_dir=.
32367 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 32368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3c86150
VS
32369 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32371 break 2
32372 fi
32373done
32374done
47964710 32375IFS=$as_save_IFS
b3c86150
VS
32376
32377 ;;
32378esac
32379fi
32380ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
b3c86150 32381if test -n "$ac_pt_PKG_CONFIG"; then
47964710
VS
32382 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32383echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
b3c86150 32384else
47964710
VS
32385 { echo "$as_me:$LINENO: result: no" >&5
32386echo "${ECHO_T}no" >&6; }
b3c86150
VS
32387fi
32388
47964710
VS
32389 if test "x$ac_pt_PKG_CONFIG" = x; then
32390 PKG_CONFIG=""
32391 else
32392 case $cross_compiling:$ac_tool_warned in
32393yes:)
32394{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32395whose name does not start with the host triplet. If you think this
32396configuration is useful to you, please write to autoconf@gnu.org." >&5
32397echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32398whose name does not start with the host triplet. If you think this
32399configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32400ac_tool_warned=yes ;;
32401esac
32402 PKG_CONFIG=$ac_pt_PKG_CONFIG
32403 fi
b3c86150
VS
32404else
32405 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32406fi
32407
32408fi
32409if test -n "$PKG_CONFIG"; then
32410 _pkg_min_version=0.9.0
47964710
VS
32411 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32412echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
b3c86150 32413 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
47964710
VS
32414 { echo "$as_me:$LINENO: result: yes" >&5
32415echo "${ECHO_T}yes" >&6; }
b3c86150 32416 else
47964710
VS
32417 { echo "$as_me:$LINENO: result: no" >&5
32418echo "${ECHO_T}no" >&6; }
b3c86150
VS
32419 PKG_CONFIG=""
32420 fi
32421
32422fi
32423
479c790c 32424
b3c86150 32425pkg_failed=no
47964710
VS
32426{ echo "$as_me:$LINENO: checking for DIRECTFB" >&5
32427echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
b3c86150
VS
32428
32429if test -n "$PKG_CONFIG"; then
32430 if test -n "$DIRECTFB_CFLAGS"; then
32431 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
32432 else
32433 if test -n "$PKG_CONFIG" && \
d7ae4a62
VS
32434 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32435 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
b3c86150
VS
32436 ac_status=$?
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); }; then
d7ae4a62 32439 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
b3c86150
VS
32440else
32441 pkg_failed=yes
32442fi
32443 fi
32444else
32445 pkg_failed=untried
32446fi
32447if test -n "$PKG_CONFIG"; then
32448 if test -n "$DIRECTFB_LIBS"; then
32449 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
32450 else
32451 if test -n "$PKG_CONFIG" && \
d7ae4a62
VS
32452 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32453 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
b3c86150
VS
32454 ac_status=$?
32455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32456 (exit $ac_status); }; then
d7ae4a62 32457 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
b3c86150
VS
32458else
32459 pkg_failed=yes
32460fi
32461 fi
32462else
32463 pkg_failed=untried
32464fi
32465
32466
32467
32468if test $pkg_failed = yes; then
32469
32470if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32471 _pkg_short_errors_supported=yes
32472else
32473 _pkg_short_errors_supported=no
32474fi
32475 if test $_pkg_short_errors_supported = yes; then
d7ae4a62 32476 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
b3c86150 32477 else
d7ae4a62 32478 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
b3c86150
VS
32479 fi
32480 # Put the nasty error message in config.log where it belongs
32481 echo "$DIRECTFB_PKG_ERRORS" >&5
32482
32483
32484 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32485echo "$as_me: error: DirectFB not found." >&2;}
32486 { (exit 1); exit 1; }; }
32487
32488
32489elif test $pkg_failed = untried; then
32490
32491 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32492echo "$as_me: error: DirectFB not found." >&2;}
32493 { (exit 1); exit 1; }; }
32494
32495
32496else
32497 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
32498 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
47964710
VS
32499 { echo "$as_me:$LINENO: result: yes" >&5
32500echo "${ECHO_T}yes" >&6; }
b3c86150
VS
32501
32502 wxUSE_UNIVERSAL="yes"
32503 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
32504 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
32505 TOOLKIT=DFB
32506 GUIDIST=DFB_DIST
32507
32508fi
32509 fi
32510
a848cd7e 32511 if test "$wxUSE_MICROWIN" = 1; then
47964710
VS
32512 { echo "$as_me:$LINENO: checking for MicroWindows" >&5
32513echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
a848cd7e 32514 if test "x$MICROWINDOWS" = x ; then
47964710
VS
32515 { echo "$as_me:$LINENO: result: not found" >&5
32516echo "${ECHO_T}not found" >&6; }
a848cd7e
SC
32517 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
32518echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
32519 { (exit 1); exit 1; }; }
32520 else
47964710
VS
32521 { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
32522echo "${ECHO_T}$MICROWINDOWS" >&6; }
a848cd7e
SC
32523 fi
32524
32525 if test -f $MICROWINDOWS/lib/libmwin.a; then
47964710
VS
32526 { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
32527echo "${ECHO_T}MicroWindows' libraries found." >&6; }
a848cd7e
SC
32528 else
32529 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
32530echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
32531 { (exit 1); exit 1; }; }
32532 fi
32533
32534 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
32535 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
32536
32537 wxUSE_UNIVERSAL="yes"
32538
32539 AFMINSTALL=afminstall
32540 TOOLKIT=MICROWIN
32541 GUIDIST=MICROWIN_DIST
32542
32543 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
32544 fi
32545
74b84332 32546 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
47964710
VS
32547 { echo "$as_me:$LINENO: checking for X" >&5
32548echo $ECHO_N "checking for X... $ECHO_C" >&6; }
bb9e79c0 32549
f321ab7f 32550
47964710 32551# Check whether --with-x was given.
a848cd7e 32552if test "${with_x+set}" = set; then
47964710
VS
32553 withval=$with_x;
32554fi
a848cd7e 32555
a848cd7e
SC
32556# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32557if test "x$with_x" = xno; then
32558 # The user explicitly disabled X.
32559 have_x=disabled
32560else
47964710
VS
32561 case $x_includes,$x_libraries in #(
32562 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
32563echo "$as_me: error: Cannot use X directory names containing '" >&2;}
32564 { (exit 1); exit 1; }; };; #(
32565 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
a848cd7e
SC
32566 echo $ECHO_N "(cached) $ECHO_C" >&6
32567else
32568 # One or both of the vars are not set, and there is no cached value.
32569ac_x_includes=no ac_x_libraries=no
47964710 32570rm -f -r conftest.dir
a848cd7e
SC
32571if mkdir conftest.dir; then
32572 cd conftest.dir
a848cd7e 32573 cat >Imakefile <<'_ACEOF'
47964710
VS
32574incroot:
32575 @echo incroot='${INCROOT}'
32576usrlibdir:
32577 @echo usrlibdir='${USRLIBDIR}'
32578libdir:
32579 @echo libdir='${LIBDIR}'
32580_ACEOF
32581 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
a848cd7e 32582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47964710
VS
32583 for ac_var in incroot usrlibdir libdir; do
32584 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32585 done
a848cd7e
SC
32586 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32587 for ac_extension in a so sl; do
47964710
VS
32588 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32589 test -f "$ac_im_libdir/libX11.$ac_extension"; then
ac1cb8d3 32590 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
32591 fi
32592 done
32593 # Screen out bogus values from the imake configuration. They are
32594 # bogus both because they are the default anyway, and because
32595 # using them would break gcc on systems where it needs fixed includes.
32596 case $ac_im_incroot in
47964710 32597 /usr/include) ac_x_includes= ;;
a848cd7e
SC
32598 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
32599 esac
32600 case $ac_im_usrlibdir in
32601 /usr/lib | /lib) ;;
32602 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
32603 esac
32604 fi
32605 cd ..
47964710 32606 rm -f -r conftest.dir
a848cd7e
SC
32607fi
32608
32609# Standard set of common directories for X headers.
32610# Check X11 before X11Rn because it is often a symlink to the current release.
32611ac_x_header_dirs='
32612/usr/X11/include
32613/usr/X11R6/include
32614/usr/X11R5/include
32615/usr/X11R4/include
32616
32617/usr/include/X11
32618/usr/include/X11R6
32619/usr/include/X11R5
32620/usr/include/X11R4
32621
32622/usr/local/X11/include
32623/usr/local/X11R6/include
32624/usr/local/X11R5/include
32625/usr/local/X11R4/include
32626
32627/usr/local/include/X11
32628/usr/local/include/X11R6
32629/usr/local/include/X11R5
32630/usr/local/include/X11R4
32631
32632/usr/X386/include
32633/usr/x386/include
32634/usr/XFree86/include/X11
32635
32636/usr/include
32637/usr/local/include
32638/usr/unsupported/include
32639/usr/athena/include
32640/usr/local/x11r5/include
32641/usr/lpp/Xamples/include
32642
32643/usr/openwin/include
32644/usr/openwin/share/include'
32645
32646if test "$ac_x_includes" = no; then
47964710 32647 # Guess where to find include files, by looking for Xlib.h.
a848cd7e
SC
32648 # First, try using that file with no special directory specified.
32649 cat >conftest.$ac_ext <<_ACEOF
32650/* confdefs.h. */
32651_ACEOF
32652cat confdefs.h >>conftest.$ac_ext
32653cat >>conftest.$ac_ext <<_ACEOF
32654/* end confdefs.h. */
47964710 32655#include <X11/Xlib.h>
a848cd7e 32656_ACEOF
47964710
VS
32657if { (ac_try="$ac_cpp conftest.$ac_ext"
32658case "(($ac_try" in
32659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32660 *) ac_try_echo=$ac_try;;
32661esac
32662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a848cd7e
SC
32664 ac_status=$?
32665 grep -v '^ *+' conftest.er1 >conftest.err
32666 rm -f conftest.er1
32667 cat conftest.err >&5
32668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
32669 (exit $ac_status); } >/dev/null && {
32670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32671 test ! -s conftest.err
32672 }; then
a848cd7e
SC
32673 # We can compile using X headers with no special include directory.
32674ac_x_includes=
32675else
32676 echo "$as_me: failed program was:" >&5
32677sed 's/^/| /' conftest.$ac_ext >&5
32678
32679 for ac_dir in $ac_x_header_dirs; do
47964710 32680 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
32681 ac_x_includes=$ac_dir
32682 break
32683 fi
32684done
32685fi
47964710 32686
a848cd7e
SC
32687rm -f conftest.err conftest.$ac_ext
32688fi # $ac_x_includes = no
32689
32690if test "$ac_x_libraries" = no; then
32691 # Check for the libraries.
32692 # See if we find them without any special options.
32693 # Don't add to $LIBS permanently.
32694 ac_save_LIBS=$LIBS
47964710 32695 LIBS="-lX11 $LIBS"
a848cd7e
SC
32696 cat >conftest.$ac_ext <<_ACEOF
32697/* confdefs.h. */
32698_ACEOF
32699cat confdefs.h >>conftest.$ac_ext
32700cat >>conftest.$ac_ext <<_ACEOF
32701/* end confdefs.h. */
47964710 32702#include <X11/Xlib.h>
a848cd7e
SC
32703int
32704main ()
32705{
47964710 32706XrmInitialize ()
a848cd7e
SC
32707 ;
32708 return 0;
32709}
32710_ACEOF
32711rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
32712if { (ac_try="$ac_link"
32713case "(($ac_try" in
32714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715 *) ac_try_echo=$ac_try;;
32716esac
32717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32718 (eval "$ac_link") 2>conftest.er1
a848cd7e 32719 ac_status=$?
ac1cb8d3
VS
32720 grep -v '^ *+' conftest.er1 >conftest.err
32721 rm -f conftest.er1
32722 cat conftest.err >&5
a848cd7e 32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
32724 (exit $ac_status); } && {
32725 test -z "$ac_c_werror_flag" ||
32726 test ! -s conftest.err
32727 } && test -s conftest$ac_exeext &&
32728 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
32729 LIBS=$ac_save_LIBS
32730# We can link X programs with no special library path.
32731ac_x_libraries=
32732else
32733 echo "$as_me: failed program was:" >&5
32734sed 's/^/| /' conftest.$ac_ext >&5
32735
47964710 32736 LIBS=$ac_save_LIBS
a848cd7e
SC
32737for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32738do
32739 # Don't even attempt the hair of trying to link an X program!
32740 for ac_extension in a so sl; do
47964710 32741 if test -r "$ac_dir/libX11.$ac_extension"; then
a848cd7e
SC
32742 ac_x_libraries=$ac_dir
32743 break 2
32744 fi
32745 done
32746done
32747fi
47964710
VS
32748
32749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 32750 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32751fi # $ac_x_libraries = no
32752
47964710
VS
32753case $ac_x_includes,$ac_x_libraries in #(
32754 no,* | *,no | *\'*)
32755 # Didn't find X, or a directory has "'" in its name.
32756 ac_cv_have_x="have_x=no";; #(
32757 *)
32758 # Record where we found X for the cache.
32759 ac_cv_have_x="have_x=yes\
32760 ac_x_includes='$ac_x_includes'\
32761 ac_x_libraries='$ac_x_libraries'"
32762esac
bd8a7646 32763fi
47964710
VS
32764;; #(
32765 *) have_x=yes;;
32766 esac
a848cd7e
SC
32767 eval "$ac_cv_have_x"
32768fi # $with_x != no
32769
32770if test "$have_x" != yes; then
47964710
VS
32771 { echo "$as_me:$LINENO: result: $have_x" >&5
32772echo "${ECHO_T}$have_x" >&6; }
a848cd7e
SC
32773 no_x=yes
32774else
32775 # If each of the values was on the command line, it overrides each guess.
32776 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32777 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32778 # Update the cache value to reflect the command line values.
47964710
VS
32779 ac_cv_have_x="have_x=yes\
32780 ac_x_includes='$x_includes'\
32781 ac_x_libraries='$x_libraries'"
32782 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
32783echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
a848cd7e
SC
32784fi
32785
32786if test "$no_x" = yes; then
32787 # Not all programs may use this symbol, but it does not hurt to define it.
32788
32789cat >>confdefs.h <<\_ACEOF
32790#define X_DISPLAY_MISSING 1
32791_ACEOF
32792
32793 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
32794else
32795 if test -n "$x_includes"; then
32796 X_CFLAGS="$X_CFLAGS -I$x_includes"
32797 fi
32798
32799 # It would also be nice to do this for all -L options, not just this one.
32800 if test -n "$x_libraries"; then
32801 X_LIBS="$X_LIBS -L$x_libraries"
32802 # For Solaris; some versions of Sun CC require a space after -R and
32803 # others require no space. Words are not sufficient . . . .
47964710
VS
32804 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32805echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32806 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32807 ac_xsave_c_werror_flag=$ac_c_werror_flag
32808 ac_c_werror_flag=yes
32809 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32810/* confdefs.h. */
32811_ACEOF
32812cat confdefs.h >>conftest.$ac_ext
32813cat >>conftest.$ac_ext <<_ACEOF
32814/* end confdefs.h. */
32815
32816int
32817main ()
32818{
32819
32820 ;
32821 return 0;
32822}
32823_ACEOF
32824rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
32825if { (ac_try="$ac_link"
32826case "(($ac_try" in
32827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32828 *) ac_try_echo=$ac_try;;
32829esac
32830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32831 (eval "$ac_link") 2>conftest.er1
a848cd7e 32832 ac_status=$?
ac1cb8d3
VS
32833 grep -v '^ *+' conftest.er1 >conftest.err
32834 rm -f conftest.er1
32835 cat conftest.err >&5
a848cd7e 32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
32837 (exit $ac_status); } && {
32838 test -z "$ac_c_werror_flag" ||
32839 test ! -s conftest.err
32840 } && test -s conftest$ac_exeext &&
32841 $as_test_x conftest$ac_exeext; then
32842 { echo "$as_me:$LINENO: result: no" >&5
32843echo "${ECHO_T}no" >&6; }
32844 X_LIBS="$X_LIBS -R$x_libraries"
a848cd7e
SC
32845else
32846 echo "$as_me: failed program was:" >&5
32847sed 's/^/| /' conftest.$ac_ext >&5
32848
a848cd7e 32849 LIBS="$ac_xsave_LIBS -R $x_libraries"
47964710 32850 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32851/* confdefs.h. */
32852_ACEOF
32853cat confdefs.h >>conftest.$ac_ext
32854cat >>conftest.$ac_ext <<_ACEOF
32855/* end confdefs.h. */
32856
32857int
32858main ()
32859{
32860
32861 ;
32862 return 0;
32863}
32864_ACEOF
32865rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
32866if { (ac_try="$ac_link"
32867case "(($ac_try" in
32868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32869 *) ac_try_echo=$ac_try;;
32870esac
32871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32872 (eval "$ac_link") 2>conftest.er1
a848cd7e 32873 ac_status=$?
ac1cb8d3
VS
32874 grep -v '^ *+' conftest.er1 >conftest.err
32875 rm -f conftest.er1
32876 cat conftest.err >&5
a848cd7e 32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
32878 (exit $ac_status); } && {
32879 test -z "$ac_c_werror_flag" ||
32880 test ! -s conftest.err
32881 } && test -s conftest$ac_exeext &&
32882 $as_test_x conftest$ac_exeext; then
32883 { echo "$as_me:$LINENO: result: yes" >&5
32884echo "${ECHO_T}yes" >&6; }
32885 X_LIBS="$X_LIBS -R $x_libraries"
a848cd7e
SC
32886else
32887 echo "$as_me: failed program was:" >&5
32888sed 's/^/| /' conftest.$ac_ext >&5
32889
47964710
VS
32890 { echo "$as_me:$LINENO: result: neither works" >&5
32891echo "${ECHO_T}neither works" >&6; }
faa5c14f 32892fi
47964710
VS
32893
32894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
faa5c14f 32895 conftest$ac_exeext conftest.$ac_ext
47964710
VS
32896fi
32897
32898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32899 conftest$ac_exeext conftest.$ac_ext
32900 ac_c_werror_flag=$ac_xsave_c_werror_flag
32901 LIBS=$ac_xsave_LIBS
a848cd7e
SC
32902 fi
32903
32904 # Check for system-dependent libraries X programs must link with.
32905 # Do this before checking for the system-independent R6 libraries
32906 # (-lICE), since we may need -lsocket or whatever for X linking.
32907
32908 if test "$ISC" = yes; then
32909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32910 else
32911 # Martyn Johnson says this is needed for Ultrix, if the X
32912 # libraries were built with DECnet support. And Karl Berry says
32913 # the Alpha needs dnet_stub (dnet does not exist).
32914 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32915 cat >conftest.$ac_ext <<_ACEOF
32916/* confdefs.h. */
32917_ACEOF
32918cat confdefs.h >>conftest.$ac_ext
32919cat >>conftest.$ac_ext <<_ACEOF
32920/* end confdefs.h. */
32921
47964710
VS
32922/* Override any GCC internal prototype to avoid an error.
32923 Use char because int might match the return type of a GCC
32924 builtin and then its argument prototype would still apply. */
a848cd7e
SC
32925#ifdef __cplusplus
32926extern "C"
32927#endif
a848cd7e
SC
32928char XOpenDisplay ();
32929int
32930main ()
32931{
47964710 32932return XOpenDisplay ();
a848cd7e
SC
32933 ;
32934 return 0;
32935}
32936_ACEOF
32937rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
32938if { (ac_try="$ac_link"
32939case "(($ac_try" in
32940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32941 *) ac_try_echo=$ac_try;;
32942esac
32943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32944 (eval "$ac_link") 2>conftest.er1
a848cd7e 32945 ac_status=$?
ac1cb8d3
VS
32946 grep -v '^ *+' conftest.er1 >conftest.err
32947 rm -f conftest.er1
32948 cat conftest.err >&5
a848cd7e 32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
32950 (exit $ac_status); } && {
32951 test -z "$ac_c_werror_flag" ||
32952 test ! -s conftest.err
32953 } && test -s conftest$ac_exeext &&
32954 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
32955 :
32956else
32957 echo "$as_me: failed program was:" >&5
32958sed 's/^/| /' conftest.$ac_ext >&5
32959
47964710
VS
32960 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32961echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
a848cd7e
SC
32962if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32963 echo $ECHO_N "(cached) $ECHO_C" >&6
32964else
32965 ac_check_lib_save_LIBS=$LIBS
32966LIBS="-ldnet $LIBS"
32967cat >conftest.$ac_ext <<_ACEOF
32968/* confdefs.h. */
32969_ACEOF
32970cat confdefs.h >>conftest.$ac_ext
32971cat >>conftest.$ac_ext <<_ACEOF
32972/* end confdefs.h. */
32973
47964710
VS
32974/* Override any GCC internal prototype to avoid an error.
32975 Use char because int might match the return type of a GCC
32976 builtin and then its argument prototype would still apply. */
a848cd7e
SC
32977#ifdef __cplusplus
32978extern "C"
32979#endif
a848cd7e
SC
32980char dnet_ntoa ();
32981int
32982main ()
32983{
47964710 32984return dnet_ntoa ();
a848cd7e
SC
32985 ;
32986 return 0;
32987}
32988_ACEOF
32989rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
32990if { (ac_try="$ac_link"
32991case "(($ac_try" in
32992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32993 *) ac_try_echo=$ac_try;;
32994esac
32995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32996 (eval "$ac_link") 2>conftest.er1
a848cd7e 32997 ac_status=$?
ac1cb8d3
VS
32998 grep -v '^ *+' conftest.er1 >conftest.err
32999 rm -f conftest.er1
33000 cat conftest.err >&5
a848cd7e 33001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33002 (exit $ac_status); } && {
33003 test -z "$ac_c_werror_flag" ||
33004 test ! -s conftest.err
33005 } && test -s conftest$ac_exeext &&
33006 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
33007 ac_cv_lib_dnet_dnet_ntoa=yes
33008else
33009 echo "$as_me: failed program was:" >&5
33010sed 's/^/| /' conftest.$ac_ext >&5
33011
47964710 33012 ac_cv_lib_dnet_dnet_ntoa=no
a848cd7e 33013fi
47964710
VS
33014
33015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 33016 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33017LIBS=$ac_check_lib_save_LIBS
33018fi
47964710
VS
33019{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
33020echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
a848cd7e
SC
33021if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
33022 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
33023fi
33024
33025 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
47964710
VS
33026 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
33027echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
a848cd7e
SC
33028if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
33029 echo $ECHO_N "(cached) $ECHO_C" >&6
33030else
33031 ac_check_lib_save_LIBS=$LIBS
33032LIBS="-ldnet_stub $LIBS"
33033cat >conftest.$ac_ext <<_ACEOF
33034/* confdefs.h. */
33035_ACEOF
33036cat confdefs.h >>conftest.$ac_ext
33037cat >>conftest.$ac_ext <<_ACEOF
33038/* end confdefs.h. */
33039
47964710
VS
33040/* Override any GCC internal prototype to avoid an error.
33041 Use char because int might match the return type of a GCC
33042 builtin and then its argument prototype would still apply. */
a848cd7e
SC
33043#ifdef __cplusplus
33044extern "C"
33045#endif
a848cd7e
SC
33046char dnet_ntoa ();
33047int
33048main ()
33049{
47964710 33050return dnet_ntoa ();
a848cd7e
SC
33051 ;
33052 return 0;
33053}
33054_ACEOF
33055rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
33056if { (ac_try="$ac_link"
33057case "(($ac_try" in
33058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33059 *) ac_try_echo=$ac_try;;
33060esac
33061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33062 (eval "$ac_link") 2>conftest.er1
a848cd7e 33063 ac_status=$?
ac1cb8d3
VS
33064 grep -v '^ *+' conftest.er1 >conftest.err
33065 rm -f conftest.er1
33066 cat conftest.err >&5
a848cd7e 33067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33068 (exit $ac_status); } && {
33069 test -z "$ac_c_werror_flag" ||
33070 test ! -s conftest.err
33071 } && test -s conftest$ac_exeext &&
33072 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
33073 ac_cv_lib_dnet_stub_dnet_ntoa=yes
33074else
33075 echo "$as_me: failed program was:" >&5
33076sed 's/^/| /' conftest.$ac_ext >&5
33077
47964710 33078 ac_cv_lib_dnet_stub_dnet_ntoa=no
a848cd7e 33079fi
47964710
VS
33080
33081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 33082 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33083LIBS=$ac_check_lib_save_LIBS
33084fi
47964710
VS
33085{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
33086echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
a848cd7e
SC
33087if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
33088 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
33089fi
33090
33091 fi
33092fi
47964710
VS
33093
33094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 33095 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33096 LIBS="$ac_xsave_LIBS"
33097
33098 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
33099 # to get the SysV transport functions.
33100 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
33101 # needs -lnsl.
33102 # The nsl library prevents programs from opening the X display
33103 # on Irix 5.2, according to T.E. Dickey.
33104 # The functions gethostbyname, getservbyname, and inet_addr are
33105 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
47964710
VS
33106 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
33107echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
a848cd7e
SC
33108if test "${ac_cv_func_gethostbyname+set}" = set; then
33109 echo $ECHO_N "(cached) $ECHO_C" >&6
33110else
33111 cat >conftest.$ac_ext <<_ACEOF
33112/* confdefs.h. */
33113_ACEOF
33114cat confdefs.h >>conftest.$ac_ext
33115cat >>conftest.$ac_ext <<_ACEOF
33116/* end confdefs.h. */
ac1cb8d3
VS
33117/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
33118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33119#define gethostbyname innocuous_gethostbyname
33120
a848cd7e
SC
33121/* System header to define __stub macros and hopefully few prototypes,
33122 which can conflict with char gethostbyname (); below.
33123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33124 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33125
a848cd7e
SC
33126#ifdef __STDC__
33127# include <limits.h>
33128#else
33129# include <assert.h>
33130#endif
ac1cb8d3
VS
33131
33132#undef gethostbyname
33133
47964710
VS
33134/* Override any GCC internal prototype to avoid an error.
33135 Use char because int might match the return type of a GCC
33136 builtin and then its argument prototype would still apply. */
a848cd7e
SC
33137#ifdef __cplusplus
33138extern "C"
a848cd7e 33139#endif
a848cd7e
SC
33140char gethostbyname ();
33141/* The GNU C library defines this for functions which it implements
33142 to always fail with ENOSYS. Some functions are actually named
33143 something starting with __ and the normal name is an alias. */
47964710 33144#if defined __stub_gethostbyname || defined __stub___gethostbyname
a848cd7e 33145choke me
a848cd7e
SC
33146#endif
33147
33148int
33149main ()
33150{
47964710 33151return gethostbyname ();
a848cd7e
SC
33152 ;
33153 return 0;
33154}
33155_ACEOF
33156rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
33157if { (ac_try="$ac_link"
33158case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33161esac
33162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33163 (eval "$ac_link") 2>conftest.er1
a848cd7e 33164 ac_status=$?
ac1cb8d3
VS
33165 grep -v '^ *+' conftest.er1 >conftest.err
33166 rm -f conftest.er1
33167 cat conftest.err >&5
a848cd7e 33168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33169 (exit $ac_status); } && {
33170 test -z "$ac_c_werror_flag" ||
33171 test ! -s conftest.err
33172 } && test -s conftest$ac_exeext &&
33173 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
33174 ac_cv_func_gethostbyname=yes
33175else
33176 echo "$as_me: failed program was:" >&5
33177sed 's/^/| /' conftest.$ac_ext >&5
33178
47964710 33179 ac_cv_func_gethostbyname=no
a848cd7e 33180fi
47964710
VS
33181
33182rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 33183 conftest$ac_exeext conftest.$ac_ext
a848cd7e 33184fi
47964710
VS
33185{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
33186echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
a848cd7e
SC
33187
33188 if test $ac_cv_func_gethostbyname = no; then
47964710
VS
33189 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
33190echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
a848cd7e
SC
33191if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
33192 echo $ECHO_N "(cached) $ECHO_C" >&6
33193else
33194 ac_check_lib_save_LIBS=$LIBS
33195LIBS="-lnsl $LIBS"
33196cat >conftest.$ac_ext <<_ACEOF
33197/* confdefs.h. */
33198_ACEOF
33199cat confdefs.h >>conftest.$ac_ext
33200cat >>conftest.$ac_ext <<_ACEOF
33201/* end confdefs.h. */
33202
47964710
VS
33203/* Override any GCC internal prototype to avoid an error.
33204 Use char because int might match the return type of a GCC
33205 builtin and then its argument prototype would still apply. */
a848cd7e
SC
33206#ifdef __cplusplus
33207extern "C"
33208#endif
a848cd7e
SC
33209char gethostbyname ();
33210int
33211main ()
33212{
47964710 33213return gethostbyname ();
a848cd7e
SC
33214 ;
33215 return 0;
33216}
33217_ACEOF
33218rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
33219if { (ac_try="$ac_link"
33220case "(($ac_try" in
33221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33222 *) ac_try_echo=$ac_try;;
33223esac
33224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33225 (eval "$ac_link") 2>conftest.er1
ac1cb8d3
VS
33226 ac_status=$?
33227 grep -v '^ *+' conftest.er1 >conftest.err
33228 rm -f conftest.er1
33229 cat conftest.err >&5
33230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33231 (exit $ac_status); } && {
33232 test -z "$ac_c_werror_flag" ||
33233 test ! -s conftest.err
33234 } && test -s conftest$ac_exeext &&
33235 $as_test_x conftest$ac_exeext; then
ac1cb8d3
VS
33236 ac_cv_lib_nsl_gethostbyname=yes
33237else
33238 echo "$as_me: failed program was:" >&5
33239sed 's/^/| /' conftest.$ac_ext >&5
33240
47964710 33241 ac_cv_lib_nsl_gethostbyname=no
ac1cb8d3 33242fi
47964710
VS
33243
33244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3
VS
33245 conftest$ac_exeext conftest.$ac_ext
33246LIBS=$ac_check_lib_save_LIBS
33247fi
47964710
VS
33248{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
33249echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
ac1cb8d3
VS
33250if test $ac_cv_lib_nsl_gethostbyname = yes; then
33251 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
33252fi
33253
33254 if test $ac_cv_lib_nsl_gethostbyname = no; then
47964710
VS
33255 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
33256echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
ac1cb8d3
VS
33257if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
33258 echo $ECHO_N "(cached) $ECHO_C" >&6
33259else
33260 ac_check_lib_save_LIBS=$LIBS
33261LIBS="-lbsd $LIBS"
33262cat >conftest.$ac_ext <<_ACEOF
33263/* confdefs.h. */
33264_ACEOF
33265cat confdefs.h >>conftest.$ac_ext
33266cat >>conftest.$ac_ext <<_ACEOF
33267/* end confdefs.h. */
33268
47964710
VS
33269/* Override any GCC internal prototype to avoid an error.
33270 Use char because int might match the return type of a GCC
33271 builtin and then its argument prototype would still apply. */
ac1cb8d3
VS
33272#ifdef __cplusplus
33273extern "C"
33274#endif
ac1cb8d3
VS
33275char gethostbyname ();
33276int
33277main ()
33278{
47964710 33279return gethostbyname ();
ac1cb8d3
VS
33280 ;
33281 return 0;
33282}
33283_ACEOF
33284rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
33285if { (ac_try="$ac_link"
33286case "(($ac_try" in
33287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33288 *) ac_try_echo=$ac_try;;
33289esac
33290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33291 (eval "$ac_link") 2>conftest.er1
a848cd7e 33292 ac_status=$?
ac1cb8d3
VS
33293 grep -v '^ *+' conftest.er1 >conftest.err
33294 rm -f conftest.er1
33295 cat conftest.err >&5
a848cd7e 33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33297 (exit $ac_status); } && {
33298 test -z "$ac_c_werror_flag" ||
33299 test ! -s conftest.err
33300 } && test -s conftest$ac_exeext &&
33301 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
33302 ac_cv_lib_bsd_gethostbyname=yes
33303else
33304 echo "$as_me: failed program was:" >&5
33305sed 's/^/| /' conftest.$ac_ext >&5
33306
47964710 33307 ac_cv_lib_bsd_gethostbyname=no
a848cd7e 33308fi
47964710
VS
33309
33310rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 33311 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33312LIBS=$ac_check_lib_save_LIBS
33313fi
47964710
VS
33314{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
33315echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
a848cd7e
SC
33316if test $ac_cv_lib_bsd_gethostbyname = yes; then
33317 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
33318fi
33319
33320 fi
33321 fi
33322
33323 # lieder@skyler.mavd.honeywell.com says without -lsocket,
33324 # socket/setsockopt and other routines are undefined under SCO ODT
33325 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
33326 # on later versions), says Simon Leinen: it contains gethostby*
33327 # variants that don't use the name server (or something). -lsocket
33328 # must be given before -lnsl if both are needed. We assume that
33329 # if connect needs -lnsl, so does gethostbyname.
47964710
VS
33330 { echo "$as_me:$LINENO: checking for connect" >&5
33331echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
a848cd7e
SC
33332if test "${ac_cv_func_connect+set}" = set; then
33333 echo $ECHO_N "(cached) $ECHO_C" >&6
33334else
33335 cat >conftest.$ac_ext <<_ACEOF
33336/* confdefs.h. */
33337_ACEOF
33338cat confdefs.h >>conftest.$ac_ext
33339cat >>conftest.$ac_ext <<_ACEOF
33340/* end confdefs.h. */
ac1cb8d3
VS
33341/* Define connect to an innocuous variant, in case <limits.h> declares connect.
33342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33343#define connect innocuous_connect
33344
a848cd7e
SC
33345/* System header to define __stub macros and hopefully few prototypes,
33346 which can conflict with char connect (); below.
33347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33348 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33349
a848cd7e
SC
33350#ifdef __STDC__
33351# include <limits.h>
33352#else
33353# include <assert.h>
33354#endif
ac1cb8d3
VS
33355
33356#undef connect
33357
47964710
VS
33358/* Override any GCC internal prototype to avoid an error.
33359 Use char because int might match the return type of a GCC
33360 builtin and then its argument prototype would still apply. */
a848cd7e
SC
33361#ifdef __cplusplus
33362extern "C"
a848cd7e 33363#endif
a848cd7e
SC
33364char connect ();
33365/* The GNU C library defines this for functions which it implements
33366 to always fail with ENOSYS. Some functions are actually named
33367 something starting with __ and the normal name is an alias. */
47964710 33368#if defined __stub_connect || defined __stub___connect
a848cd7e 33369choke me
a848cd7e
SC
33370#endif
33371
33372int
33373main ()
33374{
47964710 33375return connect ();
a848cd7e
SC
33376 ;
33377 return 0;
33378}
33379_ACEOF
33380rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
33381if { (ac_try="$ac_link"
33382case "(($ac_try" in
33383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33384 *) ac_try_echo=$ac_try;;
33385esac
33386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33387 (eval "$ac_link") 2>conftest.er1
a848cd7e 33388 ac_status=$?
ac1cb8d3
VS
33389 grep -v '^ *+' conftest.er1 >conftest.err
33390 rm -f conftest.er1
33391 cat conftest.err >&5
a848cd7e 33392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33393 (exit $ac_status); } && {
33394 test -z "$ac_c_werror_flag" ||
33395 test ! -s conftest.err
33396 } && test -s conftest$ac_exeext &&
33397 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
33398 ac_cv_func_connect=yes
33399else
33400 echo "$as_me: failed program was:" >&5
33401sed 's/^/| /' conftest.$ac_ext >&5
33402
47964710 33403 ac_cv_func_connect=no
a848cd7e 33404fi
47964710
VS
33405
33406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 33407 conftest$ac_exeext conftest.$ac_ext
a848cd7e 33408fi
47964710
VS
33409{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
33410echo "${ECHO_T}$ac_cv_func_connect" >&6; }
a848cd7e
SC
33411
33412 if test $ac_cv_func_connect = no; then
47964710
VS
33413 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
33414echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
a848cd7e
SC
33415if test "${ac_cv_lib_socket_connect+set}" = set; then
33416 echo $ECHO_N "(cached) $ECHO_C" >&6
33417else
33418 ac_check_lib_save_LIBS=$LIBS
33419LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
33420cat >conftest.$ac_ext <<_ACEOF
33421/* confdefs.h. */
33422_ACEOF
33423cat confdefs.h >>conftest.$ac_ext
33424cat >>conftest.$ac_ext <<_ACEOF
33425/* end confdefs.h. */
33426
47964710
VS
33427/* Override any GCC internal prototype to avoid an error.
33428 Use char because int might match the return type of a GCC
33429 builtin and then its argument prototype would still apply. */
a848cd7e
SC
33430#ifdef __cplusplus
33431extern "C"
33432#endif
a848cd7e
SC
33433char connect ();
33434int
33435main ()
33436{
47964710 33437return connect ();
a848cd7e
SC
33438 ;
33439 return 0;
33440}
33441_ACEOF
33442rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
33443if { (ac_try="$ac_link"
33444case "(($ac_try" in
33445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33446 *) ac_try_echo=$ac_try;;
33447esac
33448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33449 (eval "$ac_link") 2>conftest.er1
a848cd7e 33450 ac_status=$?
ac1cb8d3
VS
33451 grep -v '^ *+' conftest.er1 >conftest.err
33452 rm -f conftest.er1
33453 cat conftest.err >&5
a848cd7e 33454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33455 (exit $ac_status); } && {
33456 test -z "$ac_c_werror_flag" ||
33457 test ! -s conftest.err
33458 } && test -s conftest$ac_exeext &&
33459 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
33460 ac_cv_lib_socket_connect=yes
33461else
33462 echo "$as_me: failed program was:" >&5
33463sed 's/^/| /' conftest.$ac_ext >&5
33464
47964710 33465 ac_cv_lib_socket_connect=no
a848cd7e 33466fi
47964710
VS
33467
33468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 33469 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33470LIBS=$ac_check_lib_save_LIBS
33471fi
47964710
VS
33472{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
33473echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
a848cd7e
SC
33474if test $ac_cv_lib_socket_connect = yes; then
33475 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
33476fi
33477
33478 fi
33479
33480 # Guillermo Gomez says -lposix is necessary on A/UX.
47964710
VS
33481 { echo "$as_me:$LINENO: checking for remove" >&5
33482echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
a848cd7e
SC
33483if test "${ac_cv_func_remove+set}" = set; then
33484 echo $ECHO_N "(cached) $ECHO_C" >&6
33485else
33486 cat >conftest.$ac_ext <<_ACEOF
33487/* confdefs.h. */
33488_ACEOF
33489cat confdefs.h >>conftest.$ac_ext
33490cat >>conftest.$ac_ext <<_ACEOF
33491/* end confdefs.h. */
ac1cb8d3
VS
33492/* Define remove to an innocuous variant, in case <limits.h> declares remove.
33493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33494#define remove innocuous_remove
33495
a848cd7e
SC
33496/* System header to define __stub macros and hopefully few prototypes,
33497 which can conflict with char remove (); below.
33498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33499 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33500
a848cd7e
SC
33501#ifdef __STDC__
33502# include <limits.h>
33503#else
33504# include <assert.h>
33505#endif
ac1cb8d3
VS
33506
33507#undef remove
33508
47964710
VS
33509/* Override any GCC internal prototype to avoid an error.
33510 Use char because int might match the return type of a GCC
33511 builtin and then its argument prototype would still apply. */
a848cd7e
SC
33512#ifdef __cplusplus
33513extern "C"
a848cd7e 33514#endif
a848cd7e
SC
33515char remove ();
33516/* The GNU C library defines this for functions which it implements
33517 to always fail with ENOSYS. Some functions are actually named
33518 something starting with __ and the normal name is an alias. */
47964710 33519#if defined __stub_remove || defined __stub___remove
a848cd7e 33520choke me
a848cd7e
SC
33521#endif
33522
33523int
33524main ()
33525{
47964710 33526return remove ();
a848cd7e
SC
33527 ;
33528 return 0;
33529}
33530_ACEOF
33531rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
33532if { (ac_try="$ac_link"
33533case "(($ac_try" in
33534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33535 *) ac_try_echo=$ac_try;;
33536esac
33537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33538 (eval "$ac_link") 2>conftest.er1
a848cd7e 33539 ac_status=$?
ac1cb8d3
VS
33540 grep -v '^ *+' conftest.er1 >conftest.err
33541 rm -f conftest.er1
33542 cat conftest.err >&5
a848cd7e 33543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33544 (exit $ac_status); } && {
33545 test -z "$ac_c_werror_flag" ||
33546 test ! -s conftest.err
33547 } && test -s conftest$ac_exeext &&
33548 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
33549 ac_cv_func_remove=yes
33550else
33551 echo "$as_me: failed program was:" >&5
33552sed 's/^/| /' conftest.$ac_ext >&5
33553
47964710 33554 ac_cv_func_remove=no
a848cd7e 33555fi
47964710
VS
33556
33557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 33558 conftest$ac_exeext conftest.$ac_ext
a848cd7e 33559fi
47964710
VS
33560{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
33561echo "${ECHO_T}$ac_cv_func_remove" >&6; }
a848cd7e
SC
33562
33563 if test $ac_cv_func_remove = no; then
47964710
VS
33564 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
33565echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
a848cd7e
SC
33566if test "${ac_cv_lib_posix_remove+set}" = set; then
33567 echo $ECHO_N "(cached) $ECHO_C" >&6
33568else
33569 ac_check_lib_save_LIBS=$LIBS
33570LIBS="-lposix $LIBS"
33571cat >conftest.$ac_ext <<_ACEOF
33572/* confdefs.h. */
33573_ACEOF
33574cat confdefs.h >>conftest.$ac_ext
33575cat >>conftest.$ac_ext <<_ACEOF
33576/* end confdefs.h. */
33577
47964710
VS
33578/* Override any GCC internal prototype to avoid an error.
33579 Use char because int might match the return type of a GCC
33580 builtin and then its argument prototype would still apply. */
a848cd7e
SC
33581#ifdef __cplusplus
33582extern "C"
33583#endif
a848cd7e
SC
33584char remove ();
33585int
33586main ()
33587{
47964710 33588return remove ();
a848cd7e
SC
33589 ;
33590 return 0;
33591}
33592_ACEOF
33593rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
33594if { (ac_try="$ac_link"
33595case "(($ac_try" in
33596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33597 *) ac_try_echo=$ac_try;;
33598esac
33599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33600 (eval "$ac_link") 2>conftest.er1
a848cd7e 33601 ac_status=$?
ac1cb8d3
VS
33602 grep -v '^ *+' conftest.er1 >conftest.err
33603 rm -f conftest.er1
33604 cat conftest.err >&5
a848cd7e 33605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33606 (exit $ac_status); } && {
33607 test -z "$ac_c_werror_flag" ||
33608 test ! -s conftest.err
33609 } && test -s conftest$ac_exeext &&
33610 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
33611 ac_cv_lib_posix_remove=yes
33612else
33613 echo "$as_me: failed program was:" >&5
33614sed 's/^/| /' conftest.$ac_ext >&5
33615
47964710 33616 ac_cv_lib_posix_remove=no
a848cd7e 33617fi
47964710
VS
33618
33619rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 33620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33621LIBS=$ac_check_lib_save_LIBS
33622fi
47964710
VS
33623{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
33624echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
a848cd7e
SC
33625if test $ac_cv_lib_posix_remove = yes; then
33626 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
33627fi
33628
33629 fi
33630
33631 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
47964710
VS
33632 { echo "$as_me:$LINENO: checking for shmat" >&5
33633echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
a848cd7e
SC
33634if test "${ac_cv_func_shmat+set}" = set; then
33635 echo $ECHO_N "(cached) $ECHO_C" >&6
33636else
33637 cat >conftest.$ac_ext <<_ACEOF
33638/* confdefs.h. */
33639_ACEOF
33640cat confdefs.h >>conftest.$ac_ext
33641cat >>conftest.$ac_ext <<_ACEOF
33642/* end confdefs.h. */
ac1cb8d3
VS
33643/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
33644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33645#define shmat innocuous_shmat
33646
a848cd7e
SC
33647/* System header to define __stub macros and hopefully few prototypes,
33648 which can conflict with char shmat (); below.
33649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33650 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33651
a848cd7e
SC
33652#ifdef __STDC__
33653# include <limits.h>
33654#else
33655# include <assert.h>
33656#endif
ac1cb8d3
VS
33657
33658#undef shmat
33659
47964710
VS
33660/* Override any GCC internal prototype to avoid an error.
33661 Use char because int might match the return type of a GCC
33662 builtin and then its argument prototype would still apply. */
a848cd7e
SC
33663#ifdef __cplusplus
33664extern "C"
a848cd7e 33665#endif
a848cd7e
SC
33666char shmat ();
33667/* The GNU C library defines this for functions which it implements
33668 to always fail with ENOSYS. Some functions are actually named
33669 something starting with __ and the normal name is an alias. */
47964710 33670#if defined __stub_shmat || defined __stub___shmat
a848cd7e 33671choke me
a848cd7e
SC
33672#endif
33673
33674int
33675main ()
33676{
47964710 33677return shmat ();
a848cd7e
SC
33678 ;
33679 return 0;
33680}
33681_ACEOF
33682rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
33683if { (ac_try="$ac_link"
33684case "(($ac_try" in
33685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33686 *) ac_try_echo=$ac_try;;
33687esac
33688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33689 (eval "$ac_link") 2>conftest.er1
a848cd7e 33690 ac_status=$?
ac1cb8d3
VS
33691 grep -v '^ *+' conftest.er1 >conftest.err
33692 rm -f conftest.er1
33693 cat conftest.err >&5
a848cd7e 33694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33695 (exit $ac_status); } && {
33696 test -z "$ac_c_werror_flag" ||
33697 test ! -s conftest.err
33698 } && test -s conftest$ac_exeext &&
33699 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
33700 ac_cv_func_shmat=yes
33701else
33702 echo "$as_me: failed program was:" >&5
33703sed 's/^/| /' conftest.$ac_ext >&5
33704
47964710 33705 ac_cv_func_shmat=no
a848cd7e 33706fi
47964710
VS
33707
33708rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 33709 conftest$ac_exeext conftest.$ac_ext
a848cd7e 33710fi
47964710
VS
33711{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
33712echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
a848cd7e
SC
33713
33714 if test $ac_cv_func_shmat = no; then
47964710
VS
33715 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
33716echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
a848cd7e
SC
33717if test "${ac_cv_lib_ipc_shmat+set}" = set; then
33718 echo $ECHO_N "(cached) $ECHO_C" >&6
33719else
33720 ac_check_lib_save_LIBS=$LIBS
33721LIBS="-lipc $LIBS"
33722cat >conftest.$ac_ext <<_ACEOF
33723/* confdefs.h. */
33724_ACEOF
33725cat confdefs.h >>conftest.$ac_ext
33726cat >>conftest.$ac_ext <<_ACEOF
33727/* end confdefs.h. */
33728
47964710
VS
33729/* Override any GCC internal prototype to avoid an error.
33730 Use char because int might match the return type of a GCC
33731 builtin and then its argument prototype would still apply. */
a848cd7e
SC
33732#ifdef __cplusplus
33733extern "C"
33734#endif
a848cd7e
SC
33735char shmat ();
33736int
33737main ()
33738{
47964710 33739return shmat ();
a848cd7e
SC
33740 ;
33741 return 0;
33742}
33743_ACEOF
33744rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
33745if { (ac_try="$ac_link"
33746case "(($ac_try" in
33747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33748 *) ac_try_echo=$ac_try;;
33749esac
33750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33751 (eval "$ac_link") 2>conftest.er1
a848cd7e 33752 ac_status=$?
ac1cb8d3
VS
33753 grep -v '^ *+' conftest.er1 >conftest.err
33754 rm -f conftest.er1
33755 cat conftest.err >&5
a848cd7e 33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33757 (exit $ac_status); } && {
33758 test -z "$ac_c_werror_flag" ||
33759 test ! -s conftest.err
33760 } && test -s conftest$ac_exeext &&
33761 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
33762 ac_cv_lib_ipc_shmat=yes
33763else
33764 echo "$as_me: failed program was:" >&5
33765sed 's/^/| /' conftest.$ac_ext >&5
33766
47964710 33767 ac_cv_lib_ipc_shmat=no
a848cd7e 33768fi
47964710
VS
33769
33770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 33771 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33772LIBS=$ac_check_lib_save_LIBS
33773fi
47964710
VS
33774{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
33775echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
a848cd7e
SC
33776if test $ac_cv_lib_ipc_shmat = yes; then
33777 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
33778fi
33779
33780 fi
33781 fi
33782
33783 # Check for libraries that X11R6 Xt/Xaw programs need.
33784 ac_save_LDFLAGS=$LDFLAGS
33785 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
33786 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
33787 # check for ICE first), but we must link in the order -lSM -lICE or
33788 # we get undefined symbols. So assume we have SM if we have ICE.
33789 # These have to be linked with before -lX11, unlike the other
33790 # libraries we check for below, so use a different variable.
33791 # John Interrante, Karl Berry
47964710
VS
33792 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
33793echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
a848cd7e
SC
33794if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
33795 echo $ECHO_N "(cached) $ECHO_C" >&6
33796else
33797 ac_check_lib_save_LIBS=$LIBS
33798LIBS="-lICE $X_EXTRA_LIBS $LIBS"
33799cat >conftest.$ac_ext <<_ACEOF
33800/* confdefs.h. */
33801_ACEOF
33802cat confdefs.h >>conftest.$ac_ext
33803cat >>conftest.$ac_ext <<_ACEOF
33804/* end confdefs.h. */
33805
47964710
VS
33806/* Override any GCC internal prototype to avoid an error.
33807 Use char because int might match the return type of a GCC
33808 builtin and then its argument prototype would still apply. */
a848cd7e
SC
33809#ifdef __cplusplus
33810extern "C"
33811#endif
a848cd7e
SC
33812char IceConnectionNumber ();
33813int
33814main ()
33815{
47964710 33816return IceConnectionNumber ();
a848cd7e
SC
33817 ;
33818 return 0;
33819}
33820_ACEOF
33821rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
33822if { (ac_try="$ac_link"
33823case "(($ac_try" in
33824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33825 *) ac_try_echo=$ac_try;;
33826esac
33827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33828 (eval "$ac_link") 2>conftest.er1
a848cd7e 33829 ac_status=$?
ac1cb8d3
VS
33830 grep -v '^ *+' conftest.er1 >conftest.err
33831 rm -f conftest.er1
33832 cat conftest.err >&5
a848cd7e 33833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33834 (exit $ac_status); } && {
33835 test -z "$ac_c_werror_flag" ||
33836 test ! -s conftest.err
33837 } && test -s conftest$ac_exeext &&
33838 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
33839 ac_cv_lib_ICE_IceConnectionNumber=yes
33840else
33841 echo "$as_me: failed program was:" >&5
33842sed 's/^/| /' conftest.$ac_ext >&5
33843
47964710 33844 ac_cv_lib_ICE_IceConnectionNumber=no
a848cd7e 33845fi
47964710
VS
33846
33847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 33848 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33849LIBS=$ac_check_lib_save_LIBS
33850fi
47964710
VS
33851{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33852echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
a848cd7e
SC
33853if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33854 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33855fi
33856
33857 LDFLAGS=$ac_save_LDFLAGS
33858
33859fi
33860
33861
33862 if test "$no_x" = "yes"; then
89d90d6d
VZ
33863 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33864echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33865 { (exit 1); exit 1; }; }
a848cd7e
SC
33866 fi
33867
74b84332
VS
33868 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33869 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
33870 AFMINSTALL=afminstall
33871 COMPILED_X_PROGRAM=0
33872
74b84332
VS
33873 fi
33874
33875 if test "$wxUSE_X11" = 1; then
a848cd7e 33876 if test "$wxUSE_NANOX" = "yes"; then
47964710
VS
33877 { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33878echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
a848cd7e 33879 if test "x$MICROWIN" = x ; then
47964710
VS
33880 { echo "$as_me:$LINENO: result: not found" >&5
33881echo "${ECHO_T}not found" >&6; }
a848cd7e
SC
33882 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33883echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33884 { (exit 1); exit 1; }; }
33885 else
47964710
VS
33886 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33887echo "${ECHO_T}$MICROWIN" >&6; }
a848cd7e
SC
33888 cat >>confdefs.h <<\_ACEOF
33889#define wxUSE_NANOX 1
33890_ACEOF
33891
33892 fi
33893 fi
33894
33895 if test "$wxUSE_UNICODE" = "yes"; then
33896
479c790c
VZ
33897
33898if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33899 if test -n "$ac_tool_prefix"; then
33900 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33901set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
47964710
VS
33902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
33903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
479c790c
VZ
33904if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33905 echo $ECHO_N "(cached) $ECHO_C" >&6
33906else
33907 case $PKG_CONFIG in
33908 [\\/]* | ?:[\\/]*)
33909 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33910 ;;
33911 *)
33912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33913for as_dir in $PATH
33914do
33915 IFS=$as_save_IFS
33916 test -z "$as_dir" && as_dir=.
33917 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 33918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
479c790c
VZ
33919 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33921 break 2
33922 fi
33923done
33924done
47964710 33925IFS=$as_save_IFS
479c790c
VZ
33926
33927 ;;
33928esac
33929fi
33930PKG_CONFIG=$ac_cv_path_PKG_CONFIG
479c790c 33931if test -n "$PKG_CONFIG"; then
47964710
VS
33932 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33933echo "${ECHO_T}$PKG_CONFIG" >&6; }
479c790c 33934else
47964710
VS
33935 { echo "$as_me:$LINENO: result: no" >&5
33936echo "${ECHO_T}no" >&6; }
479c790c
VZ
33937fi
33938
47964710 33939
479c790c
VZ
33940fi
33941if test -z "$ac_cv_path_PKG_CONFIG"; then
33942 ac_pt_PKG_CONFIG=$PKG_CONFIG
33943 # Extract the first word of "pkg-config", so it can be a program name with args.
33944set dummy pkg-config; ac_word=$2
47964710
VS
33945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
33946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
479c790c
VZ
33947if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33948 echo $ECHO_N "(cached) $ECHO_C" >&6
33949else
33950 case $ac_pt_PKG_CONFIG in
33951 [\\/]* | ?:[\\/]*)
33952 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33953 ;;
33954 *)
33955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33956for as_dir in $PATH
33957do
33958 IFS=$as_save_IFS
33959 test -z "$as_dir" && as_dir=.
33960 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 33961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
479c790c
VZ
33962 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33964 break 2
33965 fi
33966done
33967done
47964710 33968IFS=$as_save_IFS
479c790c
VZ
33969
33970 ;;
33971esac
33972fi
33973ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
479c790c 33974if test -n "$ac_pt_PKG_CONFIG"; then
47964710
VS
33975 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33976echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
479c790c 33977else
47964710
VS
33978 { echo "$as_me:$LINENO: result: no" >&5
33979echo "${ECHO_T}no" >&6; }
479c790c
VZ
33980fi
33981
47964710
VS
33982 if test "x$ac_pt_PKG_CONFIG" = x; then
33983 PKG_CONFIG=""
33984 else
33985 case $cross_compiling:$ac_tool_warned in
33986yes:)
33987{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33988whose name does not start with the host triplet. If you think this
33989configuration is useful to you, please write to autoconf@gnu.org." >&5
33990echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33991whose name does not start with the host triplet. If you think this
33992configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33993ac_tool_warned=yes ;;
33994esac
33995 PKG_CONFIG=$ac_pt_PKG_CONFIG
33996 fi
479c790c
VZ
33997else
33998 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33999fi
34000
34001fi
34002if test -n "$PKG_CONFIG"; then
34003 _pkg_min_version=0.9.0
47964710
VS
34004 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
34005echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
479c790c 34006 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
47964710
VS
34007 { echo "$as_me:$LINENO: result: yes" >&5
34008echo "${ECHO_T}yes" >&6; }
479c790c 34009 else
47964710
VS
34010 { echo "$as_me:$LINENO: result: no" >&5
34011echo "${ECHO_T}no" >&6; }
479c790c
VZ
34012 PKG_CONFIG=""
34013 fi
34014
34015fi
34016
34017
3ecd9f92 34018pkg_failed=no
47964710
VS
34019{ echo "$as_me:$LINENO: checking for PANGOX" >&5
34020echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
a848cd7e 34021
3ecd9f92
MW
34022if test -n "$PKG_CONFIG"; then
34023 if test -n "$PANGOX_CFLAGS"; then
34024 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
34025 else
34026 if test -n "$PKG_CONFIG" && \
34027 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
34028 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
34029 ac_status=$?
34030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031 (exit $ac_status); }; then
34032 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
34033else
34034 pkg_failed=yes
34035fi
34036 fi
34037else
34038 pkg_failed=untried
34039fi
34040if test -n "$PKG_CONFIG"; then
34041 if test -n "$PANGOX_LIBS"; then
34042 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
34043 else
34044 if test -n "$PKG_CONFIG" && \
34045 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
34046 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
34047 ac_status=$?
34048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049 (exit $ac_status); }; then
34050 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
34051else
34052 pkg_failed=yes
34053fi
34054 fi
34055else
34056 pkg_failed=untried
34057fi
34058
34059
34060
34061if test $pkg_failed = yes; then
34062
34063if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34064 _pkg_short_errors_supported=yes
34065else
34066 _pkg_short_errors_supported=no
34067fi
34068 if test $_pkg_short_errors_supported = yes; then
34069 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
34070 else
34071 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 34072 fi
3ecd9f92
MW
34073 # Put the nasty error message in config.log where it belongs
34074 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
34075
34076
479c790c 34077 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
34078echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
34079 { (exit 1); exit 1; }; }
a848cd7e 34080
a848cd7e 34081
3ecd9f92 34082elif test $pkg_failed = untried; then
a848cd7e 34083
479c790c 34084 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
34085echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
34086 { (exit 1); exit 1; }; }
34087
34088
34089else
34090 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
34091 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
47964710
VS
34092 { echo "$as_me:$LINENO: result: yes" >&5
34093echo "${ECHO_T}yes" >&6; }
3ecd9f92 34094
9b8888f9 34095 CFLAGS="$PANGOX_CFLAGS $CFLAGS"
479c790c
VZ
34096 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
34097 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
3ecd9f92
MW
34098
34099fi
34100
34101pkg_failed=no
47964710
VS
34102{ echo "$as_me:$LINENO: checking for PANGOFT2" >&5
34103echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
3ecd9f92
MW
34104
34105if test -n "$PKG_CONFIG"; then
34106 if test -n "$PANGOFT2_CFLAGS"; then
34107 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
34108 else
34109 if test -n "$PKG_CONFIG" && \
34110 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
34111 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
34112 ac_status=$?
34113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114 (exit $ac_status); }; then
34115 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
34116else
34117 pkg_failed=yes
34118fi
34119 fi
34120else
34121 pkg_failed=untried
34122fi
34123if test -n "$PKG_CONFIG"; then
34124 if test -n "$PANGOFT2_LIBS"; then
34125 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
34126 else
34127 if test -n "$PKG_CONFIG" && \
34128 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
34129 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
34130 ac_status=$?
34131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34132 (exit $ac_status); }; then
34133 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
34134else
34135 pkg_failed=yes
34136fi
34137 fi
34138else
34139 pkg_failed=untried
34140fi
34141
34142
34143
34144if test $pkg_failed = yes; then
34145
34146if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34147 _pkg_short_errors_supported=yes
34148else
34149 _pkg_short_errors_supported=no
34150fi
34151 if test $_pkg_short_errors_supported = yes; then
34152 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
34153 else
34154 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
34155 fi
34156 # Put the nasty error message in config.log where it belongs
34157 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 34158
a848cd7e 34159
479c790c 34160 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
a848cd7e 34161echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 34162 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e
SC
34163
34164
3ecd9f92 34165elif test $pkg_failed = untried; then
a848cd7e 34166
479c790c 34167 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
3ecd9f92 34168echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 34169 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 34170
a848cd7e 34171
a848cd7e 34172else
3ecd9f92
MW
34173 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
34174 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
47964710
VS
34175 { echo "$as_me:$LINENO: result: yes" >&5
34176echo "${ECHO_T}yes" >&6; }
3ecd9f92 34177
9b8888f9 34178 CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
479c790c
VZ
34179 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
34180 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 34181
a848cd7e 34182fi
3ecd9f92
MW
34183
34184pkg_failed=no
47964710
VS
34185{ echo "$as_me:$LINENO: checking for PANGOXFT" >&5
34186echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
a848cd7e
SC
34187
34188if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
34189 if test -n "$PANGOXFT_CFLAGS"; then
34190 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
34191 else
34192 if test -n "$PKG_CONFIG" && \
34193 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34194 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34195 ac_status=$?
34196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197 (exit $ac_status); }; then
34198 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 34199else
3ecd9f92
MW
34200 pkg_failed=yes
34201fi
34202 fi
34203else
34204 pkg_failed=untried
34205fi
34206if test -n "$PKG_CONFIG"; then
34207 if test -n "$PANGOXFT_LIBS"; then
34208 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
34209 else
34210 if test -n "$PKG_CONFIG" && \
34211 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34212 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34213 ac_status=$?
34214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215 (exit $ac_status); }; then
34216 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
34217else
34218 pkg_failed=yes
34219fi
34220 fi
34221else
34222 pkg_failed=untried
a848cd7e
SC
34223fi
34224
a848cd7e 34225
a848cd7e 34226
3ecd9f92 34227if test $pkg_failed = yes; then
a848cd7e 34228
3ecd9f92
MW
34229if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34230 _pkg_short_errors_supported=yes
34231else
34232 _pkg_short_errors_supported=no
34233fi
34234 if test $_pkg_short_errors_supported = yes; then
34235 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
34236 else
34237 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 34238 fi
3ecd9f92
MW
34239 # Put the nasty error message in config.log where it belongs
34240 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
34241
34242
479c790c 34243 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
34244echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34245
a848cd7e 34246
3ecd9f92 34247elif test $pkg_failed = untried; then
a848cd7e 34248
479c790c 34249 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
34250echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34251
34252
34253else
34254 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
34255 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
47964710
VS
34256 { echo "$as_me:$LINENO: result: yes" >&5
34257echo "${ECHO_T}yes" >&6; }
a848cd7e 34258
479c790c 34259 cat >>confdefs.h <<\_ACEOF
4ae1af05
MB
34260#define HAVE_PANGO_XFT 1
34261_ACEOF
34262
9b8888f9 34263 CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
479c790c
VZ
34264 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
34265 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
a848cd7e 34266
3ecd9f92 34267fi
479c790c 34268 save_LIBS="$LIBS"
479c790c 34269 LIBS="$LIBS $PANGOX_LIBS"
304205f1
VS
34270
34271for ac_func in pango_font_family_is_monospace
34272do
34273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
34274{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34276if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
304205f1
VS
34277 echo $ECHO_N "(cached) $ECHO_C" >&6
34278else
34279 cat >conftest.$ac_ext <<_ACEOF
34280/* confdefs.h. */
34281_ACEOF
34282cat confdefs.h >>conftest.$ac_ext
34283cat >>conftest.$ac_ext <<_ACEOF
34284/* end confdefs.h. */
34285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34287#define $ac_func innocuous_$ac_func
34288
34289/* System header to define __stub macros and hopefully few prototypes,
34290 which can conflict with char $ac_func (); below.
34291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34292 <limits.h> exists even on freestanding compilers. */
34293
34294#ifdef __STDC__
34295# include <limits.h>
34296#else
34297# include <assert.h>
34298#endif
34299
34300#undef $ac_func
34301
47964710
VS
34302/* Override any GCC internal prototype to avoid an error.
34303 Use char because int might match the return type of a GCC
34304 builtin and then its argument prototype would still apply. */
304205f1
VS
34305#ifdef __cplusplus
34306extern "C"
304205f1 34307#endif
304205f1
VS
34308char $ac_func ();
34309/* The GNU C library defines this for functions which it implements
34310 to always fail with ENOSYS. Some functions are actually named
34311 something starting with __ and the normal name is an alias. */
47964710 34312#if defined __stub_$ac_func || defined __stub___$ac_func
304205f1 34313choke me
304205f1
VS
34314#endif
34315
34316int
34317main ()
34318{
47964710 34319return $ac_func ();
304205f1
VS
34320 ;
34321 return 0;
34322}
34323_ACEOF
34324rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
34325if { (ac_try="$ac_link"
34326case "(($ac_try" in
34327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34328 *) ac_try_echo=$ac_try;;
34329esac
34330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34331 (eval "$ac_link") 2>conftest.er1
304205f1
VS
34332 ac_status=$?
34333 grep -v '^ *+' conftest.er1 >conftest.err
34334 rm -f conftest.er1
34335 cat conftest.err >&5
34336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34337 (exit $ac_status); } && {
34338 test -z "$ac_c_werror_flag" ||
34339 test ! -s conftest.err
34340 } && test -s conftest$ac_exeext &&
34341 $as_test_x conftest$ac_exeext; then
304205f1
VS
34342 eval "$as_ac_var=yes"
34343else
34344 echo "$as_me: failed program was:" >&5
34345sed 's/^/| /' conftest.$ac_ext >&5
34346
47964710 34347 eval "$as_ac_var=no"
304205f1 34348fi
47964710
VS
34349
34350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
304205f1
VS
34351 conftest$ac_exeext conftest.$ac_ext
34352fi
47964710
VS
34353ac_res=`eval echo '${'$as_ac_var'}'`
34354 { echo "$as_me:$LINENO: result: $ac_res" >&5
34355echo "${ECHO_T}$ac_res" >&6; }
304205f1
VS
34356if test `eval echo '${'$as_ac_var'}'` = yes; then
34357 cat >>confdefs.h <<_ACEOF
34358#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34359_ACEOF
34360
34361fi
34362done
34363
479c790c 34364 LIBS="$save_LIBS"
a848cd7e
SC
34365 fi
34366
34367 wxUSE_UNIVERSAL="yes"
34368
34369 if test "$wxUSE_NANOX" = "yes"; then
34370 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
34371 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"
34372 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
34373 else
34374 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
34375 fi
34376
a848cd7e
SC
34377 TOOLKIT=X11
34378 GUIDIST=X11_DIST
34379 fi
34380
34381 if test "$wxUSE_MOTIF" = 1; then
47964710
VS
34382 { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
34383echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
a848cd7e 34384
74b84332
VS
34385ac_find_includes=
34386for ac_dir in $SEARCH_INCLUDE /usr/include;
34387 do
34388 if test -f "$ac_dir/Xm/Xm.h"; then
34389 ac_find_includes=$ac_dir
34390 break
34391 fi
34392 done
a848cd7e 34393
74b84332 34394 if test "$ac_find_includes" != "" ; then
47964710
VS
34395 { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34396echo "${ECHO_T}found in $ac_find_includes" >&6; }
74b84332
VS
34397
34398 if test "x$ac_find_includes" = "x/usr/include"; then
34399 ac_path_to_include=""
34400 else
34401 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
34402 result=$?
34403 if test $result = 0; then
34404 ac_path_to_include=""
34405 else
34406 ac_path_to_include=" -I$ac_find_includes"
34407 fi
a848cd7e
SC
34408 fi
34409
74b84332
VS
34410 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
34411 else
9b8888f9
VZ
34412 save_CFLAGS=$CFLAGS
34413 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
e051b34e 34414
74b84332 34415 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34416/* confdefs.h. */
34417_ACEOF
34418cat confdefs.h >>conftest.$ac_ext
34419cat >>conftest.$ac_ext <<_ACEOF
34420/* end confdefs.h. */
34421
74b84332
VS
34422 #include <Xm/Xm.h>
34423
a848cd7e
SC
34424int
34425main ()
34426{
34427
74b84332
VS
34428 int version;
34429 version = xmUseVersion;
34430
a848cd7e
SC
34431 ;
34432 return 0;
34433}
34434_ACEOF
74b84332 34435rm -f conftest.$ac_objext
47964710
VS
34436if { (ac_try="$ac_compile"
34437case "(($ac_try" in
34438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34439 *) ac_try_echo=$ac_try;;
34440esac
34441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34442 (eval "$ac_compile") 2>conftest.er1
a848cd7e 34443 ac_status=$?
ac1cb8d3
VS
34444 grep -v '^ *+' conftest.er1 >conftest.err
34445 rm -f conftest.er1
34446 cat conftest.err >&5
a848cd7e 34447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34448 (exit $ac_status); } && {
34449 test -z "$ac_c_werror_flag" ||
34450 test ! -s conftest.err
34451 } && test -s conftest.$ac_objext; then
74b84332 34452
47964710
VS
34453 { echo "$as_me:$LINENO: result: found in default search path" >&5
34454echo "${ECHO_T}found in default search path" >&6; }
74b84332
VS
34455 COMPILED_X_PROGRAM=1
34456
a848cd7e
SC
34457else
34458 echo "$as_me: failed program was:" >&5
34459sed 's/^/| /' conftest.$ac_ext >&5
34460
a848cd7e 34461
47964710
VS
34462 { echo "$as_me:$LINENO: result: no" >&5
34463echo "${ECHO_T}no" >&6; }
e051b34e
MW
34464 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
34465echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 34466 { (exit 1); exit 1; }; }
a848cd7e 34467
a848cd7e 34468
a848cd7e 34469fi
47964710
VS
34470
34471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 34472
9b8888f9 34473 CFLAGS=$save_CFLAGS
74b84332
VS
34474 fi
34475
0ad5d837 34476
47964710
VS
34477 { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
34478echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
74b84332 34479
0ad5d837
VZ
34480 ac_find_libraries=
34481 for ac_dir in $SEARCH_LIB;
74b84332 34482 do
3eca31dc 34483 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
34484 if test -f "$ac_dir/libXm.$ac_extension"; then
34485 ac_find_libraries=$ac_dir
34486 break 2
a848cd7e 34487 fi
74b84332
VS
34488 done
34489 done
a848cd7e 34490
0ad5d837
VZ
34491
34492 if test "x$ac_find_libraries" != "x" ; then
47964710
VS
34493 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34494echo "${ECHO_T}found in $ac_find_libraries" >&6; }
a848cd7e 34495
74b84332 34496
0ad5d837 34497 if test "$ac_find_libraries" = "default location"; then
74b84332 34498 ac_path_to_link=""
a848cd7e 34499 else
0ad5d837
VZ
34500 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34501 result=$?
34502 if test $result = 0; then
34503 ac_path_to_link=""
34504 else
34505 ac_path_to_link=" -L$ac_find_libraries"
34506 fi
74b84332
VS
34507 fi
34508
0ad5d837
VZ
34509 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34510 else
9b8888f9
VZ
34511 save_CFLAGS=$CFLAGS
34512 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
6f9cf1e6
MW
34513 save_LIBS="$LIBS"
34514 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 34515
0ad5d837 34516 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34517/* confdefs.h. */
34518_ACEOF
34519cat confdefs.h >>conftest.$ac_ext
34520cat >>conftest.$ac_ext <<_ACEOF
34521/* end confdefs.h. */
34522
0ad5d837 34523 #include <Xm/Xm.h>
74b84332 34524
a848cd7e
SC
34525int
34526main ()
34527{
74b84332 34528
0ad5d837
VZ
34529 int version;
34530 version = xmUseVersion;
74b84332 34531
a848cd7e
SC
34532 ;
34533 return 0;
34534}
34535_ACEOF
0ad5d837 34536rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
34537if { (ac_try="$ac_link"
34538case "(($ac_try" in
34539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34540 *) ac_try_echo=$ac_try;;
34541esac
34542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34543 (eval "$ac_link") 2>conftest.er1
a848cd7e 34544 ac_status=$?
ac1cb8d3
VS
34545 grep -v '^ *+' conftest.er1 >conftest.err
34546 rm -f conftest.er1
34547 cat conftest.err >&5
a848cd7e 34548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34549 (exit $ac_status); } && {
34550 test -z "$ac_c_werror_flag" ||
34551 test ! -s conftest.err
34552 } && test -s conftest$ac_exeext &&
34553 $as_test_x conftest$ac_exeext; then
74b84332 34554
47964710
VS
34555 { echo "$as_me:$LINENO: result: found in default search path" >&5
34556echo "${ECHO_T}found in default search path" >&6; }
0ad5d837 34557 COMPILED_X_PROGRAM=1
74b84332 34558
a848cd7e
SC
34559else
34560 echo "$as_me: failed program was:" >&5
34561sed 's/^/| /' conftest.$ac_ext >&5
34562
74b84332 34563
47964710
VS
34564 { echo "$as_me:$LINENO: result: no" >&5
34565echo "${ECHO_T}no" >&6; }
6f9cf1e6 34566 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
34567echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
34568 { (exit 1); exit 1; }; }
34569
34570
34571fi
47964710
VS
34572
34573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0ad5d837 34574 conftest$ac_exeext conftest.$ac_ext
74b84332 34575
9b8888f9 34576 CFLAGS=$save_CFLAGS
6f9cf1e6 34577 LIBS="$save_LIBS"
74b84332
VS
34578 fi
34579
47964710
VS
34580 { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
34581echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
74b84332
VS
34582 libp_link=""
34583 libsm_ice_link=""
34584 libs_found=0
34585 for libp in "" " -lXp"; do
34586 if test "$libs_found" = "0"; then
34587 for libsm_ice in "" " -lSM -lICE"; do
34588 if test "$libs_found" = "0"; then
34589 save_LIBS="$LIBS"
34590 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
9b8888f9
VZ
34591 save_CFLAGS=$CFLAGS
34592 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
74b84332
VS
34593
34594 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34595/* confdefs.h. */
34596_ACEOF
34597cat confdefs.h >>conftest.$ac_ext
34598cat >>conftest.$ac_ext <<_ACEOF
34599/* end confdefs.h. */
34600
74b84332
VS
34601 #include <Xm/Xm.h>
34602 #include <Xm/List.h>
34603
a848cd7e
SC
34604int
34605main ()
34606{
74b84332
VS
34607
34608 XmString string = NULL;
34609 Widget w = NULL;
34610 int position = 0;
34611 XmListAddItem(w, string, position);
34612
a848cd7e
SC
34613 ;
34614 return 0;
34615}
34616_ACEOF
34617rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
34618if { (ac_try="$ac_link"
34619case "(($ac_try" in
34620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34621 *) ac_try_echo=$ac_try;;
34622esac
34623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34624 (eval "$ac_link") 2>conftest.er1
a848cd7e 34625 ac_status=$?
ac1cb8d3
VS
34626 grep -v '^ *+' conftest.er1 >conftest.err
34627 rm -f conftest.er1
34628 cat conftest.err >&5
a848cd7e 34629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34630 (exit $ac_status); } && {
34631 test -z "$ac_c_werror_flag" ||
34632 test ! -s conftest.err
34633 } && test -s conftest$ac_exeext &&
34634 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
34635
34636 libp_link="$libp"
34637 libsm_ice_link="$libsm_ice"
47964710
VS
34638 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
34639echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
a848cd7e
SC
34640 libs_found=1
34641
34642else
34643 echo "$as_me: failed program was:" >&5
34644sed 's/^/| /' conftest.$ac_ext >&5
34645
34646
34647
34648fi
47964710
VS
34649
34650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 34651 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34652
34653 LIBS="$save_LIBS"
9b8888f9 34654 CFLAGS=$save_CFLAGS
a848cd7e
SC
34655 fi
34656 done
34657 fi
34658 done
34659
34660 if test "$libs_found" = "0"; then
47964710
VS
34661 { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
34662echo "${ECHO_T}can't find the right libraries" >&6; }
a848cd7e
SC
34663 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
34664echo "$as_me: error: can't link a simple motif program" >&2;}
34665 { (exit 1); exit 1; }; }
34666 fi
34667
47964710
VS
34668 { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
34669echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
62fa8b3a
MW
34670if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
34671 echo $ECHO_N "(cached) $ECHO_C" >&6
34672else
34673 ac_check_lib_save_LIBS=$LIBS
34674LIBS="-lSgm $LIBS"
34675cat >conftest.$ac_ext <<_ACEOF
34676/* confdefs.h. */
34677_ACEOF
34678cat confdefs.h >>conftest.$ac_ext
34679cat >>conftest.$ac_ext <<_ACEOF
34680/* end confdefs.h. */
34681
47964710
VS
34682/* Override any GCC internal prototype to avoid an error.
34683 Use char because int might match the return type of a GCC
34684 builtin and then its argument prototype would still apply. */
62fa8b3a
MW
34685#ifdef __cplusplus
34686extern "C"
34687#endif
62fa8b3a
MW
34688char SgCreateList ();
34689int
34690main ()
34691{
47964710 34692return SgCreateList ();
62fa8b3a
MW
34693 ;
34694 return 0;
34695}
34696_ACEOF
34697rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
34698if { (ac_try="$ac_link"
34699case "(($ac_try" in
34700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34701 *) ac_try_echo=$ac_try;;
34702esac
34703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34704 (eval "$ac_link") 2>conftest.er1
62fa8b3a
MW
34705 ac_status=$?
34706 grep -v '^ *+' conftest.er1 >conftest.err
34707 rm -f conftest.er1
34708 cat conftest.err >&5
34709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34710 (exit $ac_status); } && {
34711 test -z "$ac_c_werror_flag" ||
34712 test ! -s conftest.err
34713 } && test -s conftest$ac_exeext &&
34714 $as_test_x conftest$ac_exeext; then
62fa8b3a
MW
34715 ac_cv_lib_Sgm_SgCreateList=yes
34716else
34717 echo "$as_me: failed program was:" >&5
34718sed 's/^/| /' conftest.$ac_ext >&5
34719
47964710 34720 ac_cv_lib_Sgm_SgCreateList=no
62fa8b3a 34721fi
47964710
VS
34722
34723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62fa8b3a
MW
34724 conftest$ac_exeext conftest.$ac_ext
34725LIBS=$ac_check_lib_save_LIBS
34726fi
47964710
VS
34727{ echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
34728echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
62fa8b3a
MW
34729if test $ac_cv_lib_Sgm_SgCreateList = yes; then
34730 libsgm_link=" -lSgm"
34731fi
34732
34733
9b8888f9
VZ
34734 save_CFLAGS=$CFLAGS
34735 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
0ad5d837 34736
47964710
VS
34737 { echo "$as_me:$LINENO: checking for Motif 2" >&5
34738echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
0ad5d837
VZ
34739if test "${wx_cv_lib_motif2+set}" = set; then
34740 echo $ECHO_N "(cached) $ECHO_C" >&6
34741else
34742 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34743/* confdefs.h. */
34744_ACEOF
34745cat confdefs.h >>conftest.$ac_ext
34746cat >>conftest.$ac_ext <<_ACEOF
34747/* end confdefs.h. */
34748
0ad5d837 34749 #include <Xm/Xm.h>
a848cd7e
SC
34750
34751int
34752main ()
34753{
34754
0ad5d837
VZ
34755 #if XmVersion < 2000
34756 Not Motif 2
34757 #endif
a848cd7e
SC
34758
34759 ;
34760 return 0;
34761}
34762_ACEOF
34763rm -f conftest.$ac_objext
47964710
VS
34764if { (ac_try="$ac_compile"
34765case "(($ac_try" in
34766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34767 *) ac_try_echo=$ac_try;;
34768esac
34769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34770 (eval "$ac_compile") 2>conftest.er1
a848cd7e 34771 ac_status=$?
ac1cb8d3
VS
34772 grep -v '^ *+' conftest.er1 >conftest.err
34773 rm -f conftest.er1
34774 cat conftest.err >&5
a848cd7e 34775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34776 (exit $ac_status); } && {
34777 test -z "$ac_c_werror_flag" ||
34778 test ! -s conftest.err
34779 } && test -s conftest.$ac_objext; then
0ad5d837 34780 wx_cv_lib_motif2="yes"
a848cd7e
SC
34781else
34782 echo "$as_me: failed program was:" >&5
34783sed 's/^/| /' conftest.$ac_ext >&5
34784
47964710 34785 wx_cv_lib_motif2="no"
0ad5d837 34786fi
47964710
VS
34787
34788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0ad5d837 34789fi
47964710
VS
34790{ echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
34791echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
0ad5d837
VZ
34792 if test "$wx_cv_lib_motif2" = "yes"; then
34793 cat >>confdefs.h <<\_ACEOF
34794#define __WXMOTIF20__ 1
34795_ACEOF
a848cd7e 34796
0ad5d837
VZ
34797 else
34798 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
34799#define __WXMOTIF20__ 0
34800_ACEOF
34801
0ad5d837 34802 fi
2113bc77 34803
47964710
VS
34804 { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34805echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
0ad5d837
VZ
34806if test "${wx_cv_lib_lesstif+set}" = set; then
34807 echo $ECHO_N "(cached) $ECHO_C" >&6
34808else
34809 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
34810/* confdefs.h. */
34811_ACEOF
34812cat confdefs.h >>conftest.$ac_ext
34813cat >>conftest.$ac_ext <<_ACEOF
34814/* end confdefs.h. */
34815
0ad5d837 34816 #include <Xm/Xm.h>
2113bc77
MW
34817
34818int
34819main ()
34820{
34821
0ad5d837
VZ
34822 #if !defined(LesstifVersion) || LesstifVersion <= 0
34823 Not Lesstif
34824 #endif
2113bc77
MW
34825
34826 ;
34827 return 0;
34828}
34829_ACEOF
34830rm -f conftest.$ac_objext
47964710
VS
34831if { (ac_try="$ac_compile"
34832case "(($ac_try" in
34833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34834 *) ac_try_echo=$ac_try;;
34835esac
34836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34837 (eval "$ac_compile") 2>conftest.er1
2113bc77
MW
34838 ac_status=$?
34839 grep -v '^ *+' conftest.er1 >conftest.err
34840 rm -f conftest.er1
34841 cat conftest.err >&5
34842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34843 (exit $ac_status); } && {
34844 test -z "$ac_c_werror_flag" ||
34845 test ! -s conftest.err
34846 } && test -s conftest.$ac_objext; then
0ad5d837 34847 wx_cv_lib_lesstif="yes"
2113bc77
MW
34848else
34849 echo "$as_me: failed program was:" >&5
34850sed 's/^/| /' conftest.$ac_ext >&5
34851
47964710 34852 wx_cv_lib_lesstif="no"
0ad5d837 34853fi
47964710
VS
34854
34855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 34856
0ad5d837 34857fi
47964710
VS
34858{ echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34859echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
0ad5d837
VZ
34860 if test "$wx_cv_lib_lesstif" = "yes"; then
34861 cat >>confdefs.h <<\_ACEOF
34862#define __WXLESSTIF__ 1
34863_ACEOF
34864
34865 else
34866 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
34867#define __WXLESSTIF__ 0
34868_ACEOF
34869
0ad5d837 34870 fi
2113bc77 34871
9b8888f9 34872 CFLAGS=$save_CFLAGS
a848cd7e 34873
62fa8b3a 34874 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
34875 TOOLKIT=MOTIF
34876 GUIDIST=MOTIF_DIST
34877 fi
34878
74b84332 34879 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e 34880 if test "$wxUSE_LIBXPM" = "sys"; then
47964710
VS
34881 { echo "$as_me:$LINENO: checking for Xpm library" >&5
34882echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
a848cd7e 34883
0ad5d837
VZ
34884 ac_find_libraries=
34885 for ac_dir in $SEARCH_LIB;
a848cd7e 34886 do
3eca31dc 34887 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
34888 if test -f "$ac_dir/libXpm.$ac_extension"; then
34889 ac_find_libraries=$ac_dir
34890 break 2
34891 fi
34892 done
34893 done
34894
34895 if test "$ac_find_libraries" != "" ; then
34896
0ad5d837 34897 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
34898 ac_path_to_link=""
34899 else
0ad5d837
VZ
34900 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34901 result=$?
34902 if test $result = 0; then
34903 ac_path_to_link=""
34904 else
34905 ac_path_to_link=" -L$ac_find_libraries"
34906 fi
a848cd7e
SC
34907 fi
34908
34909 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
47964710
VS
34910 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34911echo "${ECHO_T}found in $ac_find_libraries" >&6; }
a848cd7e 34912
47964710
VS
34913 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34914echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
a848cd7e
SC
34915if test "${wx_cv_x11_xpm_h+set}" = set; then
34916 echo $ECHO_N "(cached) $ECHO_C" >&6
34917else
34918
9b8888f9
VZ
34919 save_CFLAGS=$CFLAGS
34920 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
34921
34922 cat >conftest.$ac_ext <<_ACEOF
34923/* confdefs.h. */
34924_ACEOF
34925cat confdefs.h >>conftest.$ac_ext
34926cat >>conftest.$ac_ext <<_ACEOF
34927/* end confdefs.h. */
34928
34929 #include <X11/xpm.h>
34930
34931int
34932main ()
34933{
34934
34935 int version;
34936 version = XpmLibraryVersion();
34937
34938 ;
34939 return 0;
34940}
34941_ACEOF
34942rm -f conftest.$ac_objext
47964710
VS
34943if { (ac_try="$ac_compile"
34944case "(($ac_try" in
34945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34946 *) ac_try_echo=$ac_try;;
34947esac
34948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34949 (eval "$ac_compile") 2>conftest.er1
a848cd7e 34950 ac_status=$?
ac1cb8d3
VS
34951 grep -v '^ *+' conftest.er1 >conftest.err
34952 rm -f conftest.er1
34953 cat conftest.err >&5
a848cd7e 34954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34955 (exit $ac_status); } && {
34956 test -z "$ac_c_werror_flag" ||
34957 test ! -s conftest.err
34958 } && test -s conftest.$ac_objext; then
a848cd7e
SC
34959 wx_cv_x11_xpm_h=yes
34960else
34961 echo "$as_me: failed program was:" >&5
34962sed 's/^/| /' conftest.$ac_ext >&5
34963
47964710 34964 wx_cv_x11_xpm_h=no
a848cd7e
SC
34965
34966fi
47964710
VS
34967
34968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 34969
9b8888f9 34970 CFLAGS=$save_CFLAGS
a848cd7e
SC
34971
34972
34973fi
47964710
VS
34974{ echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34975echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
a848cd7e
SC
34976
34977 if test $wx_cv_x11_xpm_h = "yes"; then
34978 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34979 cat >>confdefs.h <<\_ACEOF
34980#define wxHAVE_LIB_XPM 1
34981_ACEOF
34982
34983 else
34984 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34985echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34986 fi
34987 fi
34988
34989 fi
34990
47964710
VS
34991 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34992echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
a848cd7e
SC
34993if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34994 echo $ECHO_N "(cached) $ECHO_C" >&6
34995else
34996 ac_check_lib_save_LIBS=$LIBS
34997LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34998cat >conftest.$ac_ext <<_ACEOF
34999/* confdefs.h. */
35000_ACEOF
35001cat confdefs.h >>conftest.$ac_ext
35002cat >>conftest.$ac_ext <<_ACEOF
35003/* end confdefs.h. */
35004
47964710
VS
35005/* Override any GCC internal prototype to avoid an error.
35006 Use char because int might match the return type of a GCC
35007 builtin and then its argument prototype would still apply. */
a848cd7e
SC
35008#ifdef __cplusplus
35009extern "C"
35010#endif
a848cd7e
SC
35011char XShapeQueryExtension ();
35012int
35013main ()
35014{
47964710 35015return XShapeQueryExtension ();
a848cd7e
SC
35016 ;
35017 return 0;
35018}
35019_ACEOF
35020rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
35021if { (ac_try="$ac_link"
35022case "(($ac_try" in
35023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35024 *) ac_try_echo=$ac_try;;
35025esac
35026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35027 (eval "$ac_link") 2>conftest.er1
a848cd7e 35028 ac_status=$?
ac1cb8d3
VS
35029 grep -v '^ *+' conftest.er1 >conftest.err
35030 rm -f conftest.er1
35031 cat conftest.err >&5
a848cd7e 35032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35033 (exit $ac_status); } && {
35034 test -z "$ac_c_werror_flag" ||
35035 test ! -s conftest.err
35036 } && test -s conftest$ac_exeext &&
35037 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
35038 ac_cv_lib_Xext_XShapeQueryExtension=yes
35039else
35040 echo "$as_me: failed program was:" >&5
35041sed 's/^/| /' conftest.$ac_ext >&5
35042
47964710 35043 ac_cv_lib_Xext_XShapeQueryExtension=no
a848cd7e 35044fi
47964710
VS
35045
35046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 35047 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35048LIBS=$ac_check_lib_save_LIBS
35049fi
47964710
VS
35050{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
35051echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
a848cd7e
SC
35052if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
35053
35054 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
35055 wxHAVE_XEXT_LIB=1
35056
35057fi
35058
35059
35060 if test "$wxHAVE_XEXT_LIB" = 1; then
9b8888f9
VZ
35061 save_CFLAGS="$CFLAGS"
35062 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e 35063
47964710
VS
35064 { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
35065echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
a848cd7e
SC
35066 cat >conftest.$ac_ext <<_ACEOF
35067/* confdefs.h. */
35068_ACEOF
35069cat confdefs.h >>conftest.$ac_ext
35070cat >>conftest.$ac_ext <<_ACEOF
35071/* end confdefs.h. */
35072
35073 #include <X11/Xlib.h>
35074 #include <X11/extensions/shape.h>
35075
35076int
35077main ()
35078{
35079
35080 int dummy1, dummy2;
35081 XShapeQueryExtension((Display*)NULL,
35082 (int*)NULL, (int*)NULL);
35083
35084 ;
35085 return 0;
35086}
35087_ACEOF
35088rm -f conftest.$ac_objext
47964710
VS
35089if { (ac_try="$ac_compile"
35090case "(($ac_try" in
35091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35092 *) ac_try_echo=$ac_try;;
35093esac
35094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35095 (eval "$ac_compile") 2>conftest.er1
a848cd7e 35096 ac_status=$?
ac1cb8d3
VS
35097 grep -v '^ *+' conftest.er1 >conftest.err
35098 rm -f conftest.er1
35099 cat conftest.err >&5
a848cd7e 35100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35101 (exit $ac_status); } && {
35102 test -z "$ac_c_werror_flag" ||
35103 test ! -s conftest.err
35104 } && test -s conftest.$ac_objext; then
a848cd7e
SC
35105
35106 cat >>confdefs.h <<\_ACEOF
35107#define HAVE_XSHAPE 1
35108_ACEOF
35109
47964710
VS
35110 { echo "$as_me:$LINENO: result: found" >&5
35111echo "${ECHO_T}found" >&6; }
a848cd7e
SC
35112
35113else
35114 echo "$as_me: failed program was:" >&5
35115sed 's/^/| /' conftest.$ac_ext >&5
35116
35117
47964710
VS
35118 { echo "$as_me:$LINENO: result: not found" >&5
35119echo "${ECHO_T}not found" >&6; }
a848cd7e
SC
35120
35121fi
47964710
VS
35122
35123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9 35124 CFLAGS="$save_CFLAGS"
a848cd7e
SC
35125
35126 fi
35127 fi
35128
35129 if test "$wxUSE_MAC" = 1; then
47964710
VS
35130 { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
35131echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
a848cd7e 35132 if test "$GCC" = yes; then
47964710
VS
35133 { echo "$as_me:$LINENO: result: gcc" >&5
35134echo "${ECHO_T}gcc" >&6; }
a848cd7e
SC
35135 CPPFLAGS_PASCAL="-fpascal-strings"
35136 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
47964710
VS
35137 { echo "$as_me:$LINENO: result: xlc" >&5
35138echo "${ECHO_T}xlc" >&6; }
a848cd7e
SC
35139 CPPFLAGS_PASCAL="-qmacpstr"
35140 else
47964710
VS
35141 { echo "$as_me:$LINENO: result: none" >&5
35142echo "${ECHO_T}none" >&6; }
a848cd7e
SC
35143 fi
35144
1e9e8aba 35145 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 35146 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 35147 else
c92ad099 35148 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 35149 fi
a848cd7e 35150
a848cd7e
SC
35151 TOOLKIT=MAC
35152 GUIDIST=MACX_DIST
dd21ced8 35153 WXBASEPORT="_carbon"
a848cd7e
SC
35154 fi
35155
35156 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
35157 TOOLKIT=COCOA
35158 GUIDIST=COCOA_DIST
35159 fi
35160
35161 if test "$wxUSE_PM" = 1; then
35162 TOOLKIT=PM
de59c161 35163 GUIDIST=PM_DIST
47964710
VS
35164 { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
35165echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
de59c161
RD
35166if test "${wx_cv_spbcdata+set}" = set; then
35167 echo $ECHO_N "(cached) $ECHO_C" >&6
35168else
35169
35170 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
35171/* confdefs.h. */
35172_ACEOF
35173cat confdefs.h >>conftest.$ac_ext
35174cat >>conftest.$ac_ext <<_ACEOF
35175/* end confdefs.h. */
35176
35177 #define INCL_PM
35178 #include <os2.h>
35179
35180int
35181main ()
35182{
35183
35184 SPBCDATA test;
35185
35186 ;
35187 return 0;
35188}
35189_ACEOF
35190rm -f conftest.$ac_objext
47964710
VS
35191if { (ac_try="$ac_compile"
35192case "(($ac_try" in
35193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35194 *) ac_try_echo=$ac_try;;
35195esac
35196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35197 (eval "$ac_compile") 2>conftest.er1
de59c161 35198 ac_status=$?
ac1cb8d3
VS
35199 grep -v '^ *+' conftest.er1 >conftest.err
35200 rm -f conftest.er1
35201 cat conftest.err >&5
de59c161 35202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35203 (exit $ac_status); } && {
35204 test -z "$ac_c_werror_flag" ||
35205 test ! -s conftest.err
35206 } && test -s conftest.$ac_objext; then
de59c161
RD
35207 wx_cv_spbcdata=yes
35208else
35209 echo "$as_me: failed program was:" >&5
35210sed 's/^/| /' conftest.$ac_ext >&5
35211
47964710 35212 wx_cv_spbcdata=no
de59c161
RD
35213
35214fi
47964710
VS
35215
35216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
35217
35218
35219fi
47964710
VS
35220{ echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
35221echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
de59c161
RD
35222
35223 if test $wx_cv_spbcdata = "yes"; then
35224 cat >>confdefs.h <<\_ACEOF
35225#define HAVE_SPBCDATA 1
35226_ACEOF
35227
35228 fi
a848cd7e
SC
35229 fi
35230
35231 if test "$TOOLKIT" = "PM" ; then
35232 TOOLKIT_DIR="os2"
35233 else
35234 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
35235 fi
35236
a848cd7e 35237 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
35238 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
35239 WIDGET_SET=univ
a848cd7e
SC
35240 fi
35241
35242 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
35243 DISTDIR="wx\$(TOOLKIT)"
35244else
35245 USE_GUI=0
35246
35247 TOOLKIT_DIR="base"
35248
35249 if test "$USE_WIN32" = 1 ; then
a848cd7e 35250 TOOLKIT="MSW"
a848cd7e
SC
35251 fi
35252
a848cd7e
SC
35253 GUIDIST="BASE_DIST"
35254 DISTDIR="wxBase"
35255fi
35256
35257
ca4c9b7e
VS
35258
35259if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
10d1a996 35260 if test "$USE_UNIX" = "1" -a "$wxUSE_DARWIN" != "1" ; then
ca4c9b7e 35261 wxUSE_UNICODE_UTF8=yes
63a09523
VZ
35262 elif test "$USE_OS2" = "1" ; then
35263 wxUSE_UNICODE_UTF8=yes
ca4c9b7e
VS
35264 else
35265 wxUSE_UNICODE_UTF8=no
35266 fi
35267fi
35268
35269
d12aef51
VZ
35270if test "$wxUSE_GUI" = "yes"; then
35271 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
1f7e12cc
DE
35272
35273for ac_header in X11/Xlib.h
35274do
35275as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47964710
VS
35276{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d12aef51 35279 echo $ECHO_N "(cached) $ECHO_C" >&6
d12aef51 35280else
6e7b8bcb 35281 cat >conftest.$ac_ext <<_ACEOF
d12aef51
VZ
35282/* confdefs.h. */
35283_ACEOF
35284cat confdefs.h >>conftest.$ac_ext
35285cat >>conftest.$ac_ext <<_ACEOF
35286/* end confdefs.h. */
6e7b8bcb
PC
35287
35288
1f7e12cc 35289#include <$ac_header>
d12aef51
VZ
35290_ACEOF
35291rm -f conftest.$ac_objext
47964710
VS
35292if { (ac_try="$ac_compile"
35293case "(($ac_try" in
35294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35295 *) ac_try_echo=$ac_try;;
35296esac
35297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35298 (eval "$ac_compile") 2>conftest.er1
d12aef51
VZ
35299 ac_status=$?
35300 grep -v '^ *+' conftest.er1 >conftest.err
35301 rm -f conftest.er1
35302 cat conftest.err >&5
35303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35304 (exit $ac_status); } && {
35305 test -z "$ac_c_werror_flag" ||
35306 test ! -s conftest.err
35307 } && test -s conftest.$ac_objext; then
1f7e12cc 35308 eval "$as_ac_Header=yes"
d12aef51
VZ
35309else
35310 echo "$as_me: failed program was:" >&5
35311sed 's/^/| /' conftest.$ac_ext >&5
35312
47964710 35313 eval "$as_ac_Header=no"
d12aef51 35314fi
47964710
VS
35315
35316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d12aef51 35317fi
47964710
VS
35318ac_res=`eval echo '${'$as_ac_Header'}'`
35319 { echo "$as_me:$LINENO: result: $ac_res" >&5
35320echo "${ECHO_T}$ac_res" >&6; }
1f7e12cc
DE
35321if test `eval echo '${'$as_ac_Header'}'` = yes; then
35322 cat >>confdefs.h <<_ACEOF
35323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35324_ACEOF
35325
35326fi
7fd3acaf 35327
1f7e12cc 35328done
d12aef51 35329
1f7e12cc
DE
35330
35331for ac_header in X11/XKBlib.h
35332do
35333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47964710
VS
35334{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d12aef51
VZ
35337 echo $ECHO_N "(cached) $ECHO_C" >&6
35338else
35339 cat >conftest.$ac_ext <<_ACEOF
35340/* confdefs.h. */
35341_ACEOF
35342cat confdefs.h >>conftest.$ac_ext
35343cat >>conftest.$ac_ext <<_ACEOF
35344/* end confdefs.h. */
35345
35346 #if HAVE_X11_XLIB_H
35347 #include <X11/Xlib.h>
35348 #endif
35349
35350
1f7e12cc 35351#include <$ac_header>
d12aef51
VZ
35352_ACEOF
35353rm -f conftest.$ac_objext
47964710
VS
35354if { (ac_try="$ac_compile"
35355case "(($ac_try" in
35356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35357 *) ac_try_echo=$ac_try;;
35358esac
35359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35360 (eval "$ac_compile") 2>conftest.er1
d12aef51
VZ
35361 ac_status=$?
35362 grep -v '^ *+' conftest.er1 >conftest.err
35363 rm -f conftest.er1
35364 cat conftest.err >&5
35365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35366 (exit $ac_status); } && {
35367 test -z "$ac_c_werror_flag" ||
35368 test ! -s conftest.err
35369 } && test -s conftest.$ac_objext; then
1f7e12cc 35370 eval "$as_ac_Header=yes"
d12aef51
VZ
35371else
35372 echo "$as_me: failed program was:" >&5
35373sed 's/^/| /' conftest.$ac_ext >&5
35374
47964710 35375 eval "$as_ac_Header=no"
d12aef51 35376fi
47964710
VS
35377
35378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d12aef51 35379fi
47964710
VS
35380ac_res=`eval echo '${'$as_ac_Header'}'`
35381 { echo "$as_me:$LINENO: result: $ac_res" >&5
35382echo "${ECHO_T}$ac_res" >&6; }
1f7e12cc
DE
35383if test `eval echo '${'$as_ac_Header'}'` = yes; then
35384 cat >>confdefs.h <<_ACEOF
35385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35386_ACEOF
35387
35388fi
d12aef51 35389
1f7e12cc 35390done
d12aef51
VZ
35391
35392 fi
35393fi
35394
a848cd7e
SC
35395
35396
35397IODBC_C_SRC=""
35398
35399
35400if test "$TOOLKIT" != "MSW" ; then
35401
35402 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
35403
47964710
VS
35404 { echo "$as_me:$LINENO: checking for sql.h" >&5
35405echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
a848cd7e
SC
35406if test "${ac_cv_header_sql_h+set}" = set; then
35407 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 35408else
6e7b8bcb 35409 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
35410/* confdefs.h. */
35411_ACEOF
35412cat confdefs.h >>conftest.$ac_ext
35413cat >>conftest.$ac_ext <<_ACEOF
35414/* end confdefs.h. */
6e7b8bcb
PC
35415
35416
a848cd7e
SC
35417#include <sql.h>
35418_ACEOF
35419rm -f conftest.$ac_objext
47964710
VS
35420if { (ac_try="$ac_compile"
35421case "(($ac_try" in
35422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35423 *) ac_try_echo=$ac_try;;
35424esac
35425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35426 (eval "$ac_compile") 2>conftest.er1
a848cd7e 35427 ac_status=$?
ac1cb8d3
VS
35428 grep -v '^ *+' conftest.er1 >conftest.err
35429 rm -f conftest.er1
35430 cat conftest.err >&5
a848cd7e 35431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35432 (exit $ac_status); } && {
35433 test -z "$ac_c_werror_flag" ||
35434 test ! -s conftest.err
35435 } && test -s conftest.$ac_objext; then
6e7b8bcb 35436 ac_cv_header_sql_h=yes
a848cd7e
SC
35437else
35438 echo "$as_me: failed program was:" >&5
35439sed 's/^/| /' conftest.$ac_ext >&5
35440
47964710 35441 ac_cv_header_sql_h=no
a848cd7e 35442fi
47964710
VS
35443
35444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 35445fi
47964710
VS
35446{ echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
35447echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
a848cd7e
SC
35448if test $ac_cv_header_sql_h = yes; then
35449 found_sql_h=1
35450fi
35451
35452
35453 if test "x$found_sql_h" = "x1" ; then
47964710
VS
35454 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
35455echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6; }
a848cd7e
SC
35456if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
35457 echo $ECHO_N "(cached) $ECHO_C" >&6
35458else
35459 ac_check_lib_save_LIBS=$LIBS
35460LIBS="-liodbc $LIBS"
35461cat >conftest.$ac_ext <<_ACEOF
35462/* confdefs.h. */
35463_ACEOF
35464cat confdefs.h >>conftest.$ac_ext
35465cat >>conftest.$ac_ext <<_ACEOF
35466/* end confdefs.h. */
35467
47964710
VS
35468/* Override any GCC internal prototype to avoid an error.
35469 Use char because int might match the return type of a GCC
35470 builtin and then its argument prototype would still apply. */
a848cd7e
SC
35471#ifdef __cplusplus
35472extern "C"
35473#endif
a848cd7e
SC
35474char SQLAllocEnv ();
35475int
35476main ()
35477{
47964710 35478return SQLAllocEnv ();
a848cd7e
SC
35479 ;
35480 return 0;
35481}
35482_ACEOF
35483rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
35484if { (ac_try="$ac_link"
35485case "(($ac_try" in
35486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35487 *) ac_try_echo=$ac_try;;
35488esac
35489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35490 (eval "$ac_link") 2>conftest.er1
a848cd7e 35491 ac_status=$?
ac1cb8d3
VS
35492 grep -v '^ *+' conftest.er1 >conftest.err
35493 rm -f conftest.er1
35494 cat conftest.err >&5
a848cd7e 35495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35496 (exit $ac_status); } && {
35497 test -z "$ac_c_werror_flag" ||
35498 test ! -s conftest.err
35499 } && test -s conftest$ac_exeext &&
35500 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
35501 ac_cv_lib_iodbc_SQLAllocEnv=yes
35502else
35503 echo "$as_me: failed program was:" >&5
35504sed 's/^/| /' conftest.$ac_ext >&5
35505
47964710 35506 ac_cv_lib_iodbc_SQLAllocEnv=no
a848cd7e 35507fi
47964710
VS
35508
35509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 35510 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35511LIBS=$ac_check_lib_save_LIBS
35512fi
47964710
VS
35513{ echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
35514echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6; }
a848cd7e
SC
35515if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
35516 ODBC_LINK=" -liodbc"
35517else
35518
47964710
VS
35519 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
35520echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6; }
a848cd7e
SC
35521if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
35522 echo $ECHO_N "(cached) $ECHO_C" >&6
35523else
35524 ac_check_lib_save_LIBS=$LIBS
35525LIBS="-lunixodbc $LIBS"
35526cat >conftest.$ac_ext <<_ACEOF
35527/* confdefs.h. */
35528_ACEOF
35529cat confdefs.h >>conftest.$ac_ext
35530cat >>conftest.$ac_ext <<_ACEOF
35531/* end confdefs.h. */
35532
47964710
VS
35533/* Override any GCC internal prototype to avoid an error.
35534 Use char because int might match the return type of a GCC
35535 builtin and then its argument prototype would still apply. */
a848cd7e
SC
35536#ifdef __cplusplus
35537extern "C"
35538#endif
a848cd7e
SC
35539char SQLAllocEnv ();
35540int
35541main ()
35542{
47964710 35543return SQLAllocEnv ();
a848cd7e
SC
35544 ;
35545 return 0;
35546}
35547_ACEOF
35548rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
35549if { (ac_try="$ac_link"
35550case "(($ac_try" in
35551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35552 *) ac_try_echo=$ac_try;;
35553esac
35554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35555 (eval "$ac_link") 2>conftest.er1
a848cd7e 35556 ac_status=$?
ac1cb8d3
VS
35557 grep -v '^ *+' conftest.er1 >conftest.err
35558 rm -f conftest.er1
35559 cat conftest.err >&5
a848cd7e 35560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35561 (exit $ac_status); } && {
35562 test -z "$ac_c_werror_flag" ||
35563 test ! -s conftest.err
35564 } && test -s conftest$ac_exeext &&
35565 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
35566 ac_cv_lib_unixodbc_SQLAllocEnv=yes
35567else
35568 echo "$as_me: failed program was:" >&5
35569sed 's/^/| /' conftest.$ac_ext >&5
35570
47964710 35571 ac_cv_lib_unixodbc_SQLAllocEnv=no
a848cd7e 35572fi
47964710
VS
35573
35574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 35575 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35576LIBS=$ac_check_lib_save_LIBS
35577fi
47964710
VS
35578{ echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
35579echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6; }
a848cd7e
SC
35580if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
35581 ODBC_LINK=" -lunixodbc"
35582else
35583
47964710
VS
35584 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
35585echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6; }
a848cd7e
SC
35586if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
35587 echo $ECHO_N "(cached) $ECHO_C" >&6
35588else
35589 ac_check_lib_save_LIBS=$LIBS
35590LIBS="-lodbc $LIBS"
35591cat >conftest.$ac_ext <<_ACEOF
35592/* confdefs.h. */
35593_ACEOF
35594cat confdefs.h >>conftest.$ac_ext
35595cat >>conftest.$ac_ext <<_ACEOF
35596/* end confdefs.h. */
35597
47964710
VS
35598/* Override any GCC internal prototype to avoid an error.
35599 Use char because int might match the return type of a GCC
35600 builtin and then its argument prototype would still apply. */
a848cd7e
SC
35601#ifdef __cplusplus
35602extern "C"
35603#endif
a848cd7e
SC
35604char SQLAllocEnv ();
35605int
35606main ()
35607{
47964710 35608return SQLAllocEnv ();
a848cd7e
SC
35609 ;
35610 return 0;
35611}
35612_ACEOF
35613rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
35614if { (ac_try="$ac_link"
35615case "(($ac_try" in
35616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35617 *) ac_try_echo=$ac_try;;
35618esac
35619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35620 (eval "$ac_link") 2>conftest.er1
a848cd7e 35621 ac_status=$?
ac1cb8d3
VS
35622 grep -v '^ *+' conftest.er1 >conftest.err
35623 rm -f conftest.er1
35624 cat conftest.err >&5
a848cd7e 35625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35626 (exit $ac_status); } && {
35627 test -z "$ac_c_werror_flag" ||
35628 test ! -s conftest.err
35629 } && test -s conftest$ac_exeext &&
35630 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
35631 ac_cv_lib_odbc_SQLAllocEnv=yes
35632else
35633 echo "$as_me: failed program was:" >&5
35634sed 's/^/| /' conftest.$ac_ext >&5
35635
47964710 35636 ac_cv_lib_odbc_SQLAllocEnv=no
a848cd7e 35637fi
47964710
VS
35638
35639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 35640 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35641LIBS=$ac_check_lib_save_LIBS
35642fi
47964710
VS
35643{ echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
35644echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6; }
a848cd7e
SC
35645if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
35646 ODBC_LINK=" -lodbc"
35647fi
35648
35649
35650fi
35651
35652
35653fi
35654
35655 fi
35656 if test "x$ODBC_LINK" = "x" ; then
35657 if test "$wxUSE_ODBC" = "sys" ; then
35658 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
35659echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
35660 { (exit 1); exit 1; }; }
35661 else
35662 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
35663echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
35664 wxUSE_ODBC=builtin
35665 fi
35666 else
35667 wxUSE_ODBC=sys
35668 fi
35669 fi
a848cd7e 35670
2da0c077
RD
35671 if test "$wxUSE_ODBC" = "builtin" ; then
35672 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35673#define wxUSE_BUILTIN_IODBC 1
35674_ACEOF
35675
a848cd7e
SC
35676 fi
35677fi
35678
2da0c077
RD
35679if test "$wxUSE_ODBC" != "no" ; then
35680 cat >>confdefs.h <<\_ACEOF
35681#define wxUSE_ODBC 1
35682_ACEOF
35683
35684 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
35685
5ff751d6 35686 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 35687fi
a848cd7e 35688
01cb68df 35689
a848cd7e 35690if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 35691 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
47964710
VS
35692 { echo "$as_me:$LINENO: checking for Xinerama" >&5
35693echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
a848cd7e 35694
0ad5d837
VZ
35695 ac_find_libraries=
35696 for ac_dir in $SEARCH_LIB;
35697 do
35698 for ac_extension in a so sl dylib dll.a; do
35699 if test -f "$ac_dir/libXinerama.$ac_extension"; then
35700 ac_find_libraries=$ac_dir
35701 break 2
35702 fi
35703 done
35704 done
35705
a848cd7e
SC
35706 if test "$ac_find_libraries" != "" ; then
35707
0ad5d837 35708 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
35709 ac_path_to_link=""
35710 else
0ad5d837
VZ
35711 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35712 result=$?
35713 if test $result = 0; then
35714 ac_path_to_link=""
35715 else
35716 ac_path_to_link=" -L$ac_find_libraries"
35717 fi
a848cd7e
SC
35718 fi
35719
35720 if test "$ac_path_to_link" != " -L/usr/lib" ; then
35721 LDFLAGS="$LDFLAGS $ac_path_to_link"
35722 fi
35723 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
47964710
VS
35724 { echo "$as_me:$LINENO: result: yes" >&5
35725echo "${ECHO_T}yes" >&6; }
a848cd7e 35726
47964710
VS
35727 { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
35728echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
a848cd7e 35729
0ad5d837
VZ
35730 ac_find_libraries=
35731 for ac_dir in $SEARCH_LIB;
a848cd7e 35732 do
3eca31dc 35733 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
35734 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35735 ac_find_libraries=$ac_dir
35736 break 2
35737 fi
35738 done
35739 done
35740
35741 if test "$ac_find_libraries" != "" ; then
47964710
VS
35742 { echo "$as_me:$LINENO: result: yes" >&5
35743echo "${ECHO_T}yes" >&6; }
1f7e12cc
DE
35744
35745for ac_header in X11/extensions/xf86vmode.h
35746do
35747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47964710
VS
35748{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
35751 echo $ECHO_N "(cached) $ECHO_C" >&6
35752else
35753 cat >conftest.$ac_ext <<_ACEOF
35754/* confdefs.h. */
35755_ACEOF
35756cat confdefs.h >>conftest.$ac_ext
35757cat >>conftest.$ac_ext <<_ACEOF
35758/* end confdefs.h. */
35759
35760 #if HAVE_X11_XLIB_H
35761 #include <X11/Xlib.h>
35762 #endif
35763
35764
1f7e12cc 35765#include <$ac_header>
a848cd7e
SC
35766_ACEOF
35767rm -f conftest.$ac_objext
47964710
VS
35768if { (ac_try="$ac_compile"
35769case "(($ac_try" in
35770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35771 *) ac_try_echo=$ac_try;;
35772esac
35773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35774 (eval "$ac_compile") 2>conftest.er1
a848cd7e 35775 ac_status=$?
ac1cb8d3
VS
35776 grep -v '^ *+' conftest.er1 >conftest.err
35777 rm -f conftest.er1
35778 cat conftest.err >&5
a848cd7e 35779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35780 (exit $ac_status); } && {
35781 test -z "$ac_c_werror_flag" ||
35782 test ! -s conftest.err
35783 } && test -s conftest.$ac_objext; then
1f7e12cc 35784 eval "$as_ac_Header=yes"
a848cd7e
SC
35785else
35786 echo "$as_me: failed program was:" >&5
35787sed 's/^/| /' conftest.$ac_ext >&5
35788
47964710 35789 eval "$as_ac_Header=no"
a848cd7e 35790fi
47964710
VS
35791
35792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 35793fi
47964710
VS
35794ac_res=`eval echo '${'$as_ac_Header'}'`
35795 { echo "$as_me:$LINENO: result: $ac_res" >&5
35796echo "${ECHO_T}$ac_res" >&6; }
1f7e12cc
DE
35797if test `eval echo '${'$as_ac_Header'}'` = yes; then
35798 cat >>confdefs.h <<_ACEOF
35799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35800_ACEOF
a848cd7e
SC
35801
35802 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35803
35804fi
35805
1f7e12cc 35806done
a848cd7e
SC
35807
35808 else
47964710
VS
35809 { echo "$as_me:$LINENO: result: no" >&5
35810echo "${ECHO_T}no" >&6; }
a848cd7e
SC
35811 fi
35812
35813 else
47964710
VS
35814 { echo "$as_me:$LINENO: result: no" >&5
35815echo "${ECHO_T}no" >&6; }
dcc1b6ad
VS
35816 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
35817echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
35818 wxUSE_DISPLAY="no"
35819 fi
01cb68df 35820 elif test "$wxUSE_MSW" = 1; then
47964710
VS
35821 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
35822echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
6e7b8bcb 35823if test "${ac_cv_header_ddraw_h+set}" = set; then
01cb68df 35824 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 35825else
5294a27e 35826 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
35827/* confdefs.h. */
35828_ACEOF
35829cat confdefs.h >>conftest.$ac_ext
35830cat >>conftest.$ac_ext <<_ACEOF
35831/* end confdefs.h. */
5294a27e
VZ
35832#include <windows.h>
35833
6e7b8bcb 35834#include <ddraw.h>
01cb68df
RG
35835_ACEOF
35836rm -f conftest.$ac_objext
47964710
VS
35837if { (ac_try="$ac_compile"
35838case "(($ac_try" in
35839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35840 *) ac_try_echo=$ac_try;;
35841esac
35842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35843 (eval "$ac_compile") 2>conftest.er1
01cb68df 35844 ac_status=$?
ac1cb8d3
VS
35845 grep -v '^ *+' conftest.er1 >conftest.err
35846 rm -f conftest.er1
35847 cat conftest.err >&5
01cb68df 35848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35849 (exit $ac_status); } && {
35850 test -z "$ac_c_werror_flag" ||
35851 test ! -s conftest.err
35852 } && test -s conftest.$ac_objext; then
6e7b8bcb 35853 ac_cv_header_ddraw_h=yes
01cb68df
RG
35854else
35855 echo "$as_me: failed program was:" >&5
35856sed 's/^/| /' conftest.$ac_ext >&5
35857
47964710 35858 ac_cv_header_ddraw_h=no
01cb68df 35859fi
47964710
VS
35860
35861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df 35862fi
47964710
VS
35863{ echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
35864echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
01cb68df 35865
01cb68df 35866
a848cd7e
SC
35867 fi
35868fi
35869
88bbc332
RR
35870if test "$wxUSE_DETECT_SM" = "yes"; then
35871 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
47964710
VS
35872 { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
35873echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
88bbc332
RR
35874
35875 ac_find_libraries=
35876 for ac_dir in $SEARCH_LIB;
35877 do
35878 for ac_extension in a so sl dylib dll.a; do
35879 if test -f "$ac_dir/libSM.$ac_extension"; then
35880 ac_find_libraries=$ac_dir
35881 break 2
35882 fi
35883 done
35884 done
35885
35886 if test "$ac_find_libraries" != "" ; then
35887
35888 if test "$ac_find_libraries" = "default location"; then
35889 ac_path_to_link=""
35890 else
35891 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35892 result=$?
35893 if test $result = 0; then
35894 ac_path_to_link=""
35895 else
35896 ac_path_to_link=" -L$ac_find_libraries"
35897 fi
35898 fi
35899
35900 if test "$ac_path_to_link" != " -L/usr/lib" ; then
35901 LDFLAGS="$LDFLAGS $ac_path_to_link"
35902 fi
35903 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
47964710
VS
35904 { echo "$as_me:$LINENO: result: yes" >&5
35905echo "${ECHO_T}yes" >&6; }
88bbc332 35906 else
47964710
VS
35907 { echo "$as_me:$LINENO: result: no" >&5
35908echo "${ECHO_T}no" >&6; }
88bbc332
RR
35909 { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
35910echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
35911 wxUSE_DETECT_SM="no"
35912 fi
35913 else
35914 wxUSE_DETECT_SM="no"
35915 fi
35916fi
35917
35918
a848cd7e
SC
35919
35920USE_OPENGL=0
35921if test "$wxUSE_OPENGL" = "yes"; then
2e35565a
VZ
35922 if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
35923 { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35924echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35925 wxUSE_OPENGL="no"
35926 elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
a848cd7e
SC
35927 OPENGL_LIBS="-framework OpenGL -framework AGL"
35928 elif test "$wxUSE_MSW" = 1; then
35929 OPENGL_LIBS="-lopengl32 -lglu32"
35930 else
47964710
VS
35931 { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
35932echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
a848cd7e 35933
a848cd7e 35934ac_find_includes=
02b05020 35935for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
a848cd7e
SC
35936 do
35937 if test -f "$ac_dir/GL/gl.h"; then
35938 ac_find_includes=$ac_dir
35939 break
35940 fi
35941 done
35942
35943 if test "$ac_find_includes" != "" ; then
47964710
VS
35944 { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35945echo "${ECHO_T}found in $ac_find_includes" >&6; }
a848cd7e
SC
35946
35947 if test "x$ac_find_includes" = "x/usr/include"; then
35948 ac_path_to_include=""
35949 else
35950 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
35951 result=$?
35952 if test $result = 0; then
35953 ac_path_to_include=""
35954 else
35955 ac_path_to_include=" -I$ac_find_includes"
35956 fi
35957 fi
35958
c92ad099 35959 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
e541dae0 35960 else
47964710
VS
35961 { echo "$as_me:$LINENO: result: not found" >&5
35962echo "${ECHO_T}not found" >&6; }
a848cd7e
SC
35963 fi
35964
47964710
VS
35965 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
35966echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
a848cd7e
SC
35967if test "${ac_cv_header_GL_gl_h+set}" = set; then
35968 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 35969else
6e7b8bcb 35970 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
35971/* confdefs.h. */
35972_ACEOF
35973cat confdefs.h >>conftest.$ac_ext
35974cat >>conftest.$ac_ext <<_ACEOF
35975/* end confdefs.h. */
6e7b8bcb
PC
35976
35977
a848cd7e
SC
35978#include <GL/gl.h>
35979_ACEOF
35980rm -f conftest.$ac_objext
47964710
VS
35981if { (ac_try="$ac_compile"
35982case "(($ac_try" in
35983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35984 *) ac_try_echo=$ac_try;;
35985esac
35986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35987 (eval "$ac_compile") 2>conftest.er1
a848cd7e 35988 ac_status=$?
ac1cb8d3
VS
35989 grep -v '^ *+' conftest.er1 >conftest.err
35990 rm -f conftest.er1
35991 cat conftest.err >&5
a848cd7e 35992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35993 (exit $ac_status); } && {
35994 test -z "$ac_c_werror_flag" ||
35995 test ! -s conftest.err
35996 } && test -s conftest.$ac_objext; then
6e7b8bcb 35997 ac_cv_header_GL_gl_h=yes
a848cd7e
SC
35998else
35999 echo "$as_me: failed program was:" >&5
36000sed 's/^/| /' conftest.$ac_ext >&5
36001
47964710 36002 ac_cv_header_GL_gl_h=no
a848cd7e 36003fi
47964710
VS
36004
36005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 36006fi
47964710
VS
36007{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
36008echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
a848cd7e
SC
36009if test $ac_cv_header_GL_gl_h = yes; then
36010
47964710
VS
36011 { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
36012echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
5dfc7e56
VZ
36013if test "${ac_cv_header_GL_glu_h+set}" = set; then
36014 echo $ECHO_N "(cached) $ECHO_C" >&6
5dfc7e56 36015else
b55e1842 36016 cat >conftest.$ac_ext <<_ACEOF
5dfc7e56
VZ
36017/* confdefs.h. */
36018_ACEOF
36019cat confdefs.h >>conftest.$ac_ext
36020cat >>conftest.$ac_ext <<_ACEOF
36021/* end confdefs.h. */
b55e1842
VZ
36022
36023
5dfc7e56
VZ
36024#include <GL/glu.h>
36025_ACEOF
36026rm -f conftest.$ac_objext
47964710
VS
36027if { (ac_try="$ac_compile"
36028case "(($ac_try" in
36029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36030 *) ac_try_echo=$ac_try;;
36031esac
36032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36033 (eval "$ac_compile") 2>conftest.er1
5dfc7e56
VZ
36034 ac_status=$?
36035 grep -v '^ *+' conftest.er1 >conftest.err
36036 rm -f conftest.er1
36037 cat conftest.err >&5
36038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36039 (exit $ac_status); } && {
36040 test -z "$ac_c_werror_flag" ||
36041 test ! -s conftest.err
36042 } && test -s conftest.$ac_objext; then
b55e1842 36043 ac_cv_header_GL_glu_h=yes
5dfc7e56
VZ
36044else
36045 echo "$as_me: failed program was:" >&5
36046sed 's/^/| /' conftest.$ac_ext >&5
36047
47964710 36048 ac_cv_header_GL_glu_h=no
5dfc7e56 36049fi
47964710
VS
36050
36051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5dfc7e56 36052fi
47964710
VS
36053{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
36054echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
5dfc7e56
VZ
36055if test $ac_cv_header_GL_glu_h = yes; then
36056
a848cd7e
SC
36057 found_gl=0
36058
47964710
VS
36059 { echo "$as_me:$LINENO: checking for -lGL" >&5
36060echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
a848cd7e 36061
0ad5d837 36062 ac_find_libraries=
02b05020 36063 for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
a848cd7e 36064 do
3eca31dc 36065 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
36066 if test -f "$ac_dir/libGL.$ac_extension"; then
36067 ac_find_libraries=$ac_dir
36068 break 2
36069 fi
36070 done
36071 done
36072
36073 if test "$ac_find_libraries" != "" ; then
47964710
VS
36074 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
36075echo "${ECHO_T}found in $ac_find_libraries" >&6; }
69120ee4 36076
a848cd7e 36077
0ad5d837 36078 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
36079 ac_path_to_link=""
36080 else
0ad5d837
VZ
36081 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36082 result=$?
36083 if test $result = 0; then
36084 ac_path_to_link=""
36085 else
36086 ac_path_to_link=" -L$ac_find_libraries"
36087 fi
a848cd7e
SC
36088 fi
36089
36090 if test "$ac_path_to_link" != " -L/usr/lib" ; then
36091 LDFLAGS_GL="$ac_path_to_link"
36092 fi
36093
47964710
VS
36094 { echo "$as_me:$LINENO: checking for -lGLU" >&5
36095echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
a848cd7e 36096
0ad5d837
VZ
36097 ac_find_libraries=
36098 for ac_dir in $SEARCH_LIB;
36099 do
36100 for ac_extension in a so sl dylib dll.a; do
36101 if test -f "$ac_dir/libGLU.$ac_extension"; then
36102 ac_find_libraries=$ac_dir
36103 break 2
36104 fi
36105 done
36106 done
36107
a848cd7e
SC
36108 if test "$ac_find_libraries" != "" ; then
36109
0ad5d837 36110 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
36111 ac_path_to_link=""
36112 else
0ad5d837
VZ
36113 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36114 result=$?
36115 if test $result = 0; then
36116 ac_path_to_link=""
36117 else
36118 ac_path_to_link=" -L$ac_find_libraries"
36119 fi
a848cd7e
SC
36120 fi
36121
36122 if test "$ac_path_to_link" != " -L/usr/lib" -a \
36123 "$ac_path_to_link" != "$LDFLAGS_GL"; then
36124 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
36125 fi
36126
36127 found_gl=1
36128 OPENGL_LIBS="-lGL -lGLU"
47964710
VS
36129 { echo "$as_me:$LINENO: result: yes" >&5
36130echo "${ECHO_T}yes" >&6; }
69120ee4 36131 else
47964710
VS
36132 { echo "$as_me:$LINENO: result: no" >&5
36133echo "${ECHO_T}no" >&6; }
a848cd7e 36134 fi
69120ee4 36135 else
47964710
VS
36136 { echo "$as_me:$LINENO: result: no" >&5
36137echo "${ECHO_T}no" >&6; }
a848cd7e
SC
36138 fi
36139
36140 if test "$found_gl" != 1; then
47964710
VS
36141 { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
36142echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
a848cd7e 36143
0ad5d837
VZ
36144 ac_find_libraries=
36145 for ac_dir in $SEARCH_LIB;
a848cd7e 36146 do
3eca31dc 36147 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
36148 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
36149 ac_find_libraries=$ac_dir
36150 break 2
36151 fi
36152 done
36153 done
36154
36155 if test "$ac_find_libraries" != "" ; then
36156
0ad5d837 36157 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
36158 ac_path_to_link=""
36159 else
0ad5d837
VZ
36160 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36161 result=$?
36162 if test $result = 0; then
36163 ac_path_to_link=""
36164 else
36165 ac_path_to_link=" -L$ac_find_libraries"
36166 fi
a848cd7e
SC
36167 fi
36168
36169 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
36170 OPENGL_LIBS="-lMesaGL -lMesaGLU"
47964710
VS
36171 { echo "$as_me:$LINENO: result: yes" >&5
36172echo "${ECHO_T}yes" >&6; }
a848cd7e 36173 else
47964710
VS
36174 { echo "$as_me:$LINENO: result: no" >&5
36175echo "${ECHO_T}no" >&6; }
a848cd7e
SC
36176 fi
36177 fi
36178
36179fi
36180
36181
36182
5dfc7e56
VZ
36183fi
36184
36185
36186
a848cd7e
SC
36187 if test "x$OPENGL_LIBS" = "x"; then
36188 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
36189echo "$as_me: error: OpenGL libraries not available" >&2;}
36190 { (exit 1); exit 1; }; }
36191 fi
36192 fi
36193
36194 if test "$wxUSE_OPENGL" = "yes"; then
36195 USE_OPENGL=1
36196 cat >>confdefs.h <<\_ACEOF
36197#define wxUSE_OPENGL 1
36198_ACEOF
36199
36200 cat >>confdefs.h <<\_ACEOF
36201#define wxUSE_GLCANVAS 1
36202_ACEOF
36203
36204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
36205 fi
36206fi
36207
a848cd7e
SC
36208
36209if test -n "$TOOLKIT" ; then
36210 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
36211fi
36212
a848cd7e
SC
36213
36214
36215if test "$wxUSE_SHARED" = "yes"; then
36216 case "${host}" in
36217 *-pc-msdosdjgpp )
36218 wxUSE_SHARED=no
36219 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
36220echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
36221 ;;
36222 esac
36223fi
36224
a848cd7e 36225if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
36226
36227
077c7880
VZ
36228 case "${host}" in
36229 *-*-cygwin* | *-*-mingw* )
2dbd07cb 36230 wx_cv_version_script=no
077c7880 36231 ;;
a848cd7e 36232
077c7880 36233 *)
47964710
VS
36234 { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
36235echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
a848cd7e
SC
36236if test "${wx_cv_version_script+set}" = set; then
36237 echo $ECHO_N "(cached) $ECHO_C" >&6
36238else
36239
077c7880
VZ
36240 echo "VER_1 { *; };" >conftest.sym
36241 echo "int main() { return 0; }" >conftest.cpp
a848cd7e 36242
077c7880
VZ
36243 if { ac_try='
36244 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36245 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
a848cd7e
SC
36246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36247 (eval $ac_try) 2>&5
36248 ac_status=$?
36249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250 (exit $ac_status); }; } ; then
077c7880
VZ
36251 if test -s conftest.stderr ; then
36252 wx_cv_version_script=no
36253 else
36254 wx_cv_version_script=yes
36255 fi
36256 else
36257 wx_cv_version_script=no
36258 fi
e5d4b470 36259
077c7880
VZ
36260 if test $wx_cv_version_script = yes
36261 then
36262 echo "struct B { virtual ~B() { } }; \
36263 struct D : public B { }; \
36264 void F() { D d; }" > conftest.cpp
e5d4b470 36265
077c7880
VZ
36266 if { ac_try='
36267 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36268 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
e5d4b470
MW
36269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36270 (eval $ac_try) 2>&5
36271 ac_status=$?
36272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36273 (exit $ac_status); }; } &&
077c7880
VZ
36274 { ac_try='
36275 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36276 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
e5d4b470
MW
36277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36278 (eval $ac_try) 2>&5
36279 ac_status=$?
36280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36281 (exit $ac_status); }; }
077c7880
VZ
36282 then
36283 if { ac_try='
36284 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36285 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
e5d4b470
MW
36286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36287 (eval $ac_try) 2>&5
36288 ac_status=$?
36289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290 (exit $ac_status); }; }
077c7880
VZ
36291 then
36292 wx_cv_version_script=yes
36293 else
36294 wx_cv_version_script=no
36295 fi
36296 fi
36297 fi
e5d4b470 36298
077c7880
VZ
36299 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
36300 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
36301
36302fi
47964710
VS
36303{ echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
36304echo "${ECHO_T}$wx_cv_version_script" >&6; }
077c7880
VZ
36305
36306 if test $wx_cv_version_script = yes ; then
36307 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
36308 fi
36309 ;;
36310 esac
a848cd7e
SC
36311
36312
a2bd84a5 36313 if test "$wxUSE_VISIBILITY" != "no"; then
0ff20b9f
VS
36314
36315
36316 if test -n "$GCC"; then
36317 CFLAGS_VISIBILITY="-fvisibility=hidden"
36318 CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
47964710
VS
36319 { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
36320echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
0ff20b9f
VS
36321 if test "${wx_cv_cc_visibility+set}" = set; then
36322 echo $ECHO_N "(cached) $ECHO_C" >&6
36323else
36324
36325 wx_save_CXXFLAGS="$CXXFLAGS"
36326 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
47964710 36327 ac_ext=cpp
0ff20b9f
VS
36328ac_cpp='$CXXCPP $CPPFLAGS'
36329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36332
36333 cat >conftest.$ac_ext <<_ACEOF
36334/* confdefs.h. */
36335_ACEOF
36336cat confdefs.h >>conftest.$ac_ext
36337cat >>conftest.$ac_ext <<_ACEOF
36338/* end confdefs.h. */
36339
36340 /* we need gcc >= 4.0, older versions with visibility support
36341 didn't have class visibility: */
36342 #if defined(__GNUC__) && __GNUC__ < 4
36343 error this gcc is too old;
36344 #endif
36345
b9d4eff6
VS
36346 /* visibility only makes sense for ELF shared libs: */
36347 #if !defined(__ELF__) && !defined(__APPLE__)
36348 error this platform has no visibility;
36349 #endif
36350
0ff20b9f
VS
36351 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
36352 extern __attribute__((__visibility__("default"))) int exportedvar;
36353 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
36354 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
36355 class __attribute__((__visibility__("default"))) Foo {
36356 Foo() {}
36357 };
36358
36359int
36360main ()
36361{
36362
36363 ;
36364 return 0;
36365}
36366_ACEOF
36367rm -f conftest.$ac_objext
47964710
VS
36368if { (ac_try="$ac_compile"
36369case "(($ac_try" in
36370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36371 *) ac_try_echo=$ac_try;;
36372esac
36373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36374 (eval "$ac_compile") 2>conftest.er1
0ff20b9f
VS
36375 ac_status=$?
36376 grep -v '^ *+' conftest.er1 >conftest.err
36377 rm -f conftest.er1
36378 cat conftest.err >&5
36379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36380 (exit $ac_status); } && {
36381 test -z "$ac_cxx_werror_flag" ||
36382 test ! -s conftest.err
36383 } && test -s conftest.$ac_objext; then
0ff20b9f
VS
36384 wx_cv_cc_visibility=yes
36385else
36386 echo "$as_me: failed program was:" >&5
36387sed 's/^/| /' conftest.$ac_ext >&5
36388
47964710 36389 wx_cv_cc_visibility=no
0ff20b9f 36390fi
47964710
VS
36391
36392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0ff20b9f
VS
36393 ac_ext=c
36394ac_cpp='$CPP $CPPFLAGS'
36395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36397ac_compiler_gnu=$ac_cv_c_compiler_gnu
36398
36399 CXXFLAGS="$wx_save_CXXFLAGS"
36400fi
36401
47964710
VS
36402 { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
36403echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
0ff20b9f 36404 if test $wx_cv_cc_visibility = yes; then
c9bd045b 36405 { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
47964710 36406echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
d6f513f8
VS
36407 if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
36408 echo $ECHO_N "(cached) $ECHO_C" >&6
36409else
36410
36411 wx_save_CXXFLAGS="$CXXFLAGS"
34b340a0 36412 wx_save_LDFLAGS="$LDFLAGS"
d6f513f8 36413 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
34b340a0 36414 LDFLAGS="$LDFLAGS -shared -fPIC"
47964710 36415 ac_ext=cpp
d6f513f8
VS
36416ac_cpp='$CXXCPP $CPPFLAGS'
36417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36420
36421 cat >conftest.$ac_ext <<_ACEOF
36422/* confdefs.h. */
36423_ACEOF
36424cat confdefs.h >>conftest.$ac_ext
36425cat >>conftest.$ac_ext <<_ACEOF
36426/* end confdefs.h. */
36427
36428 #include <string>
36429
36430int
36431main ()
36432{
36433
34b340a0
VS
36434 std::string s("hello");
36435 return s.length();
d6f513f8
VS
36436
36437 ;
36438 return 0;
36439}
36440_ACEOF
36441rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
36442if { (ac_try="$ac_link"
36443case "(($ac_try" in
36444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36445 *) ac_try_echo=$ac_try;;
36446esac
36447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36448 (eval "$ac_link") 2>conftest.er1
d6f513f8
VS
36449 ac_status=$?
36450 grep -v '^ *+' conftest.er1 >conftest.err
36451 rm -f conftest.er1
36452 cat conftest.err >&5
36453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36454 (exit $ac_status); } && {
36455 test -z "$ac_cxx_werror_flag" ||
36456 test ! -s conftest.err
36457 } && test -s conftest$ac_exeext &&
36458 $as_test_x conftest$ac_exeext; then
d6f513f8
VS
36459 wx_cv_cc_broken_libstdcxx_visibility=no
36460else
36461 echo "$as_me: failed program was:" >&5
36462sed 's/^/| /' conftest.$ac_ext >&5
36463
47964710 36464 wx_cv_cc_broken_libstdcxx_visibility=yes
d6f513f8 36465fi
47964710
VS
36466
36467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d6f513f8
VS
36468 conftest$ac_exeext conftest.$ac_ext
36469 ac_ext=c
36470ac_cpp='$CPP $CPPFLAGS'
36471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36473ac_compiler_gnu=$ac_cv_c_compiler_gnu
36474
36475 CXXFLAGS="$wx_save_CXXFLAGS"
34b340a0 36476 LDFLAGS="$wx_save_LDFLAGS"
d6f513f8
VS
36477fi
36478
47964710
VS
36479 { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
36480echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
c9bd045b
VZ
36481
36482 if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
36483 { echo "$as_me:$LINENO: checking whether we can work around it" >&5
36484echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
36485 if test "${wx_cv_cc_visibility_workaround+set}" = set; then
36486 echo $ECHO_N "(cached) $ECHO_C" >&6
36487else
36488
36489 ac_ext=cpp
36490ac_cpp='$CXXCPP $CPPFLAGS'
36491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36494
36495 cat >conftest.$ac_ext <<_ACEOF
36496/* confdefs.h. */
36497_ACEOF
36498cat confdefs.h >>conftest.$ac_ext
36499cat >>conftest.$ac_ext <<_ACEOF
36500/* end confdefs.h. */
36501
36502 #pragma GCC visibility push(default)
36503 #include <string>
36504 #pragma GCC visibility pop
36505
36506int
36507main ()
36508{
36509
36510 std::string s("hello");
36511 return s.length();
36512
36513 ;
36514 return 0;
36515}
36516_ACEOF
36517rm -f conftest.$ac_objext conftest$ac_exeext
36518if { (ac_try="$ac_link"
36519case "(($ac_try" in
36520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36521 *) ac_try_echo=$ac_try;;
36522esac
36523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36524 (eval "$ac_link") 2>conftest.er1
36525 ac_status=$?
36526 grep -v '^ *+' conftest.er1 >conftest.err
36527 rm -f conftest.er1
36528 cat conftest.err >&5
36529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36530 (exit $ac_status); } && {
36531 test -z "$ac_cxx_werror_flag" ||
36532 test ! -s conftest.err
36533 } && test -s conftest$ac_exeext &&
36534 $as_test_x conftest$ac_exeext; then
36535 wx_cv_cc_visibility_workaround=no
36536else
36537 echo "$as_me: failed program was:" >&5
36538sed 's/^/| /' conftest.$ac_ext >&5
36539
36540 wx_cv_cc_visibility_workaround=yes
36541fi
36542
36543rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36544 conftest$ac_exeext conftest.$ac_ext
36545 ac_ext=c
36546ac_cpp='$CPP $CPPFLAGS'
36547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36549ac_compiler_gnu=$ac_cv_c_compiler_gnu
36550
36551
36552fi
36553
36554 { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
36555echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
36556
36557 if test $wx_cv_cc_visibility_workaround = no; then
36558 wx_cv_cc_visibility=no
36559 fi
36560 fi
36561 fi
36562
36563 if test $wx_cv_cc_visibility = yes; then
36564 cat >>confdefs.h <<\_ACEOF
36565#define HAVE_VISIBILITY 1
36566_ACEOF
36567
d6f513f8
VS
36568 if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
36569 cat >>confdefs.h <<\_ACEOF
36570#define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
36571_ACEOF
36572
36573 fi
0ff20b9f
VS
36574 else
36575 CFLAGS_VISIBILITY=""
36576 CXXFLAGS_VISIBILITY=""
36577 fi
36578
36579
36580 fi
36581
a2bd84a5 36582 fi
0ff20b9f 36583
43a7c679
VZ
36584 if test "x$SUNCXX" = xyes; then
36585 SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
36586 WXCONFIG_RPATH="-R\$libdir"
36587 else
a848cd7e
SC
36588 case "${host}" in
36589 *-*-linux* | *-*-gnu* )
02b05020 36590 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
ffa0583f 36591 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 36592 ;;
a848cd7e
SC
36593
36594 *-*-solaris2* )
a848cd7e 36595
43a7c679
VZ
36596 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
36597
36598 saveLdflags="$LDFLAGS"
36599 LDFLAGS="$saveLdflags -Wl,-rpath,/"
47964710
VS
36600 { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
36601echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
43a7c679 36602 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
36603/* confdefs.h. */
36604_ACEOF
36605cat confdefs.h >>conftest.$ac_ext
36606cat >>conftest.$ac_ext <<_ACEOF
36607/* end confdefs.h. */
36608
36609int
36610main ()
36611{
36612
36613 ;
36614 return 0;
36615}
36616_ACEOF
36617rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
36618if { (ac_try="$ac_link"
36619case "(($ac_try" in
36620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36621 *) ac_try_echo=$ac_try;;
36622esac
36623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36624 (eval "$ac_link") 2>conftest.er1
a848cd7e 36625 ac_status=$?
ac1cb8d3
VS
36626 grep -v '^ *+' conftest.er1 >conftest.err
36627 rm -f conftest.er1
36628 cat conftest.err >&5
a848cd7e 36629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36630 (exit $ac_status); } && {
36631 test -z "$ac_c_werror_flag" ||
36632 test ! -s conftest.err
36633 } && test -s conftest$ac_exeext &&
36634 $as_test_x conftest$ac_exeext; then
a848cd7e 36635
47964710
VS
36636 { echo "$as_me:$LINENO: result: yes" >&5
36637echo "${ECHO_T}yes" >&6; }
43a7c679
VZ
36638 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36639 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
36640
36641else
36642 echo "$as_me: failed program was:" >&5
36643sed 's/^/| /' conftest.$ac_ext >&5
36644
36645
47964710
VS
36646 { echo "$as_me:$LINENO: result: no" >&5
36647echo "${ECHO_T}no" >&6; }
36648 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
36649echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
43a7c679
VZ
36650 LDFLAGS="$saveLdflags -Wl,-R,/"
36651 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
36652/* confdefs.h. */
36653_ACEOF
36654cat confdefs.h >>conftest.$ac_ext
36655cat >>conftest.$ac_ext <<_ACEOF
36656/* end confdefs.h. */
36657
36658int
36659main ()
36660{
36661
36662 ;
36663 return 0;
36664}
36665_ACEOF
36666rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
36667if { (ac_try="$ac_link"
36668case "(($ac_try" in
36669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36670 *) ac_try_echo=$ac_try;;
36671esac
36672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36673 (eval "$ac_link") 2>conftest.er1
a848cd7e 36674 ac_status=$?
ac1cb8d3
VS
36675 grep -v '^ *+' conftest.er1 >conftest.err
36676 rm -f conftest.er1
36677 cat conftest.err >&5
a848cd7e 36678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36679 (exit $ac_status); } && {
36680 test -z "$ac_c_werror_flag" ||
36681 test ! -s conftest.err
36682 } && test -s conftest$ac_exeext &&
36683 $as_test_x conftest$ac_exeext; then
a848cd7e 36684
47964710
VS
36685 { echo "$as_me:$LINENO: result: yes" >&5
36686echo "${ECHO_T}yes" >&6; }
43a7c679
VZ
36687 SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
36688 WXCONFIG_RPATH="-Wl,-R,\$libdir"
ffa0583f 36689
a848cd7e
SC
36690else
36691 echo "$as_me: failed program was:" >&5
36692sed 's/^/| /' conftest.$ac_ext >&5
36693
36694
47964710
VS
36695 { echo "$as_me:$LINENO: result: no" >&5
36696echo "${ECHO_T}no" >&6; }
a848cd7e
SC
36697
36698fi
47964710
VS
36699
36700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 36701 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36702
36703fi
47964710
VS
36704
36705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 36706 conftest$ac_exeext conftest.$ac_ext
43a7c679 36707 LDFLAGS="$saveLdflags"
a848cd7e
SC
36708 ;;
36709
cfda0ea8 36710 *-*-darwin* )
0caebc27
MW
36711 install_name_tool=`which install_name_tool`
36712 if test "$install_name_tool" -a -x "$install_name_tool"; then
02b05020 36713 SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
0caebc27 36714 cat <<EOF >change-install-names
a848cd7e
SC
36715#!/bin/sh
36716libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
36717inst_cmd="install_name_tool "
36718for i in \${libnames} ; do
36719 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
36720done
36721\${inst_cmd} \${3}
36722EOF
0caebc27
MW
36723 chmod +x change-install-names
36724 fi
a848cd7e
SC
36725 ;;
36726
36727 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
36728 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
36729 ;;
a848cd7e 36730
81f90336 36731 *-*-hpux* )
02b05020 36732 SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
81f90336 36733 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 36734 ;;
81f90336 36735
a848cd7e 36736 esac
43a7c679 36737 fi
ceec2216 36738
ffa0583f
RL
36739 if test $wxUSE_RPATH = "no"; then
36740 SAMPLES_RPATH_FLAG=''
36741 SAMPLES_RPATH_POSTLINK=''
36742 WXCONFIG_RPATH=''
36743 fi
36744
36745 SHARED=1
36746
36747else
36748
ceec2216
RL
36749 config_linkage_component="-static"
36750 SHARED=0
ffa0583f 36751
ceec2216 36752fi
a848cd7e 36753
a848cd7e 36754
ceec2216
RL
36755UNICODE=0
36756lib_unicode_suffix=
36757WX_CHARTYPE="ansi"
36758if test "$wxUSE_UNICODE" = "yes"; then
36759 lib_unicode_suffix=u
36760 WX_CHARTYPE="unicode"
36761 UNICODE=1
a848cd7e
SC
36762fi
36763
ceec2216
RL
36764lib_debug_suffix=
36765WX_DEBUGTYPE="release"
36766DEBUG_FLAG=0
36767if test "$wxUSE_DEBUG_FLAG" = "yes"; then
36768 lib_debug_suffix=d
36769 WX_DEBUGTYPE="debug"
36770 DEBUG_FLAG=1
36771fi
a848cd7e 36772
ceec2216
RL
36773WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
36774WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 36775
ceec2216
RL
36776DEBUG_INFO=0
36777if test "$wxUSE_DEBUG_INFO" = "yes"; then
36778 DEBUG_INFO=1
36779fi
a848cd7e 36780
ceec2216 36781WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 36782
ceec2216 36783TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 36784
ceec2216 36785TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 36786
ceec2216
RL
36787if test "$cross_compiling" = "yes"; then
36788 HOST_SUFFIX="-$host_alias"
36789 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
36790 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
36791fi
36792
dd21ced8 36793WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
36794if test "${TOOLKIT_DIR}" = "os2"; then
36795 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36796else
36797 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36798fi
ceec2216
RL
36799
36800
36801
1d1af5ea
DE
36802if test "$wxUSE_COCOA" = 1; then
36803
1d1af5ea
DE
36804 ac_ext=c
36805ac_cpp='$CPP $CPPFLAGS'
36806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36808ac_compiler_gnu=$ac_cv_c_compiler_gnu
36809
36810ac_ext=m
36811
47964710
VS
36812 { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
36813echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
1d1af5ea
DE
36814 cat >conftest.$ac_ext <<_ACEOF
36815/* confdefs.h. */
36816_ACEOF
36817cat confdefs.h >>conftest.$ac_ext
36818cat >>conftest.$ac_ext <<_ACEOF
36819/* end confdefs.h. */
36820#include <AppKit/NSEvent.h>
36821#include <CoreFoundation/CoreFoundation.h>
36822
36823int
36824main ()
36825{
36826
36827 ;
36828 return 0;
36829}
36830_ACEOF
36831rm -f conftest.$ac_objext
47964710
VS
36832if { (ac_try="$ac_compile"
36833case "(($ac_try" in
36834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36835 *) ac_try_echo=$ac_try;;
36836esac
36837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36838 (eval "$ac_compile") 2>conftest.er1
1d1af5ea
DE
36839 ac_status=$?
36840 grep -v '^ *+' conftest.er1 >conftest.err
36841 rm -f conftest.er1
36842 cat conftest.err >&5
36843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36844 (exit $ac_status); } && {
36845 test -z "$ac_c_werror_flag" ||
36846 test ! -s conftest.err
36847 } && test -s conftest.$ac_objext; then
36848 { echo "$as_me:$LINENO: result: no" >&5
36849echo "${ECHO_T}no" >&6; }
1d1af5ea
DE
36850else
36851 echo "$as_me: failed program was:" >&5
36852sed 's/^/| /' conftest.$ac_ext >&5
36853
47964710
VS
36854 { echo "$as_me:$LINENO: result: yes" >&5
36855echo "${ECHO_T}yes" >&6; }
36856 { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
36857echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
1d1af5ea
DE
36858 cat >conftest.$ac_ext <<_ACEOF
36859/* confdefs.h. */
36860_ACEOF
36861cat confdefs.h >>conftest.$ac_ext
36862cat >>conftest.$ac_ext <<_ACEOF
36863/* end confdefs.h. */
36864#define __Point__ 1
36865#include <AppKit/NSEvent.h>
36866#include <CoreFoundation/CoreFoundation.h>
36867
36868int
36869main ()
36870{
36871
36872 ;
36873 return 0;
36874}
36875_ACEOF
36876rm -f conftest.$ac_objext
47964710
VS
36877if { (ac_try="$ac_compile"
36878case "(($ac_try" in
36879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36880 *) ac_try_echo=$ac_try;;
36881esac
36882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36883 (eval "$ac_compile") 2>conftest.er1
1d1af5ea
DE
36884 ac_status=$?
36885 grep -v '^ *+' conftest.er1 >conftest.err
36886 rm -f conftest.er1
36887 cat conftest.err >&5
36888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36889 (exit $ac_status); } && {
36890 test -z "$ac_c_werror_flag" ||
36891 test ! -s conftest.err
36892 } && test -s conftest.$ac_objext; then
36893 { echo "$as_me:$LINENO: result: yes" >&5
36894echo "${ECHO_T}yes" >&6; }
1d1af5ea
DE
36895 cat >>confdefs.h <<\_ACEOF
36896#define __Point__ 1
36897_ACEOF
36898
36899
36900else
36901 echo "$as_me: failed program was:" >&5
36902sed 's/^/| /' conftest.$ac_ext >&5
36903
47964710 36904 { { echo "$as_me:$LINENO: error: no
1d1af5ea
DE
36905See \`config.log' for more details." >&5
36906echo "$as_me: error: no
36907See \`config.log' for more details." >&2;}
36908 { (exit 1); exit 1; }; }
36909
36910fi
47964710
VS
36911
36912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d1af5ea
DE
36913
36914fi
47964710
VS
36915
36916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
36917 ac_ext=c
36918ac_cpp='$CPP $CPPFLAGS'
36919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36921ac_compiler_gnu=$ac_cv_c_compiler_gnu
1d1af5ea
DE
36922
36923fi
36924
a848cd7e 36925
47964710
VS
36926{ echo "$as_me:$LINENO: checking for mode_t" >&5
36927echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
a848cd7e
SC
36928if test "${ac_cv_type_mode_t+set}" = set; then
36929 echo $ECHO_N "(cached) $ECHO_C" >&6
36930else
36931 cat >conftest.$ac_ext <<_ACEOF
36932/* confdefs.h. */
36933_ACEOF
36934cat confdefs.h >>conftest.$ac_ext
36935cat >>conftest.$ac_ext <<_ACEOF
36936/* end confdefs.h. */
36937$ac_includes_default
47964710 36938typedef mode_t ac__type_new_;
a848cd7e
SC
36939int
36940main ()
36941{
47964710 36942if ((ac__type_new_ *) 0)
a848cd7e 36943 return 0;
47964710 36944if (sizeof (ac__type_new_))
a848cd7e
SC
36945 return 0;
36946 ;
36947 return 0;
36948}
36949_ACEOF
36950rm -f conftest.$ac_objext
47964710
VS
36951if { (ac_try="$ac_compile"
36952case "(($ac_try" in
36953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36954 *) ac_try_echo=$ac_try;;
36955esac
36956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36957 (eval "$ac_compile") 2>conftest.er1
a848cd7e 36958 ac_status=$?
ac1cb8d3
VS
36959 grep -v '^ *+' conftest.er1 >conftest.err
36960 rm -f conftest.er1
36961 cat conftest.err >&5
a848cd7e 36962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36963 (exit $ac_status); } && {
36964 test -z "$ac_c_werror_flag" ||
36965 test ! -s conftest.err
36966 } && test -s conftest.$ac_objext; then
a848cd7e
SC
36967 ac_cv_type_mode_t=yes
36968else
36969 echo "$as_me: failed program was:" >&5
36970sed 's/^/| /' conftest.$ac_ext >&5
36971
47964710 36972 ac_cv_type_mode_t=no
a848cd7e 36973fi
47964710
VS
36974
36975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 36976fi
47964710
VS
36977{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36978echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
a848cd7e
SC
36979if test $ac_cv_type_mode_t = yes; then
36980 :
36981else
36982
36983cat >>confdefs.h <<_ACEOF
36984#define mode_t int
36985_ACEOF
36986
36987fi
36988
47964710
VS
36989{ echo "$as_me:$LINENO: checking for off_t" >&5
36990echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
a848cd7e
SC
36991if test "${ac_cv_type_off_t+set}" = set; then
36992 echo $ECHO_N "(cached) $ECHO_C" >&6
36993else
36994 cat >conftest.$ac_ext <<_ACEOF
36995/* confdefs.h. */
36996_ACEOF
36997cat confdefs.h >>conftest.$ac_ext
36998cat >>conftest.$ac_ext <<_ACEOF
36999/* end confdefs.h. */
37000$ac_includes_default
47964710 37001typedef off_t ac__type_new_;
a848cd7e
SC
37002int
37003main ()
37004{
47964710 37005if ((ac__type_new_ *) 0)
a848cd7e 37006 return 0;
47964710 37007if (sizeof (ac__type_new_))
a848cd7e
SC
37008 return 0;
37009 ;
37010 return 0;
37011}
37012_ACEOF
37013rm -f conftest.$ac_objext
47964710
VS
37014if { (ac_try="$ac_compile"
37015case "(($ac_try" in
37016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37017 *) ac_try_echo=$ac_try;;
37018esac
37019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37020 (eval "$ac_compile") 2>conftest.er1
a848cd7e 37021 ac_status=$?
ac1cb8d3
VS
37022 grep -v '^ *+' conftest.er1 >conftest.err
37023 rm -f conftest.er1
37024 cat conftest.err >&5
a848cd7e 37025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37026 (exit $ac_status); } && {
37027 test -z "$ac_c_werror_flag" ||
37028 test ! -s conftest.err
37029 } && test -s conftest.$ac_objext; then
a848cd7e
SC
37030 ac_cv_type_off_t=yes
37031else
37032 echo "$as_me: failed program was:" >&5
37033sed 's/^/| /' conftest.$ac_ext >&5
37034
47964710 37035 ac_cv_type_off_t=no
a848cd7e 37036fi
47964710
VS
37037
37038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 37039fi
47964710
VS
37040{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
37041echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
a848cd7e
SC
37042if test $ac_cv_type_off_t = yes; then
37043 :
37044else
37045
37046cat >>confdefs.h <<_ACEOF
47964710 37047#define off_t long int
a848cd7e
SC
37048_ACEOF
37049
37050fi
37051
47964710
VS
37052{ echo "$as_me:$LINENO: checking for pid_t" >&5
37053echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
a848cd7e
SC
37054if test "${ac_cv_type_pid_t+set}" = set; then
37055 echo $ECHO_N "(cached) $ECHO_C" >&6
37056else
37057 cat >conftest.$ac_ext <<_ACEOF
37058/* confdefs.h. */
37059_ACEOF
37060cat confdefs.h >>conftest.$ac_ext
37061cat >>conftest.$ac_ext <<_ACEOF
37062/* end confdefs.h. */
37063$ac_includes_default
47964710 37064typedef pid_t ac__type_new_;
a848cd7e
SC
37065int
37066main ()
37067{
47964710 37068if ((ac__type_new_ *) 0)
a848cd7e 37069 return 0;
47964710 37070if (sizeof (ac__type_new_))
a848cd7e
SC
37071 return 0;
37072 ;
37073 return 0;
37074}
37075_ACEOF
37076rm -f conftest.$ac_objext
47964710
VS
37077if { (ac_try="$ac_compile"
37078case "(($ac_try" in
37079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37080 *) ac_try_echo=$ac_try;;
37081esac
37082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37083 (eval "$ac_compile") 2>conftest.er1
a848cd7e 37084 ac_status=$?
ac1cb8d3
VS
37085 grep -v '^ *+' conftest.er1 >conftest.err
37086 rm -f conftest.er1
37087 cat conftest.err >&5
a848cd7e 37088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37089 (exit $ac_status); } && {
37090 test -z "$ac_c_werror_flag" ||
37091 test ! -s conftest.err
37092 } && test -s conftest.$ac_objext; then
a848cd7e
SC
37093 ac_cv_type_pid_t=yes
37094else
37095 echo "$as_me: failed program was:" >&5
37096sed 's/^/| /' conftest.$ac_ext >&5
37097
47964710 37098 ac_cv_type_pid_t=no
a848cd7e 37099fi
47964710
VS
37100
37101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 37102fi
47964710
VS
37103{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37104echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
a848cd7e
SC
37105if test $ac_cv_type_pid_t = yes; then
37106 :
37107else
37108
37109cat >>confdefs.h <<_ACEOF
37110#define pid_t int
37111_ACEOF
37112
37113fi
37114
47964710
VS
37115{ echo "$as_me:$LINENO: checking for size_t" >&5
37116echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
a848cd7e
SC
37117if test "${ac_cv_type_size_t+set}" = set; then
37118 echo $ECHO_N "(cached) $ECHO_C" >&6
37119else
37120 cat >conftest.$ac_ext <<_ACEOF
37121/* confdefs.h. */
37122_ACEOF
37123cat confdefs.h >>conftest.$ac_ext
37124cat >>conftest.$ac_ext <<_ACEOF
37125/* end confdefs.h. */
37126$ac_includes_default
47964710 37127typedef size_t ac__type_new_;
a848cd7e
SC
37128int
37129main ()
37130{
47964710 37131if ((ac__type_new_ *) 0)
a848cd7e 37132 return 0;
47964710 37133if (sizeof (ac__type_new_))
a848cd7e
SC
37134 return 0;
37135 ;
37136 return 0;
37137}
37138_ACEOF
37139rm -f conftest.$ac_objext
47964710
VS
37140if { (ac_try="$ac_compile"
37141case "(($ac_try" in
37142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37143 *) ac_try_echo=$ac_try;;
37144esac
37145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37146 (eval "$ac_compile") 2>conftest.er1
a848cd7e 37147 ac_status=$?
ac1cb8d3
VS
37148 grep -v '^ *+' conftest.er1 >conftest.err
37149 rm -f conftest.er1
37150 cat conftest.err >&5
a848cd7e 37151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37152 (exit $ac_status); } && {
37153 test -z "$ac_c_werror_flag" ||
37154 test ! -s conftest.err
37155 } && test -s conftest.$ac_objext; then
a848cd7e
SC
37156 ac_cv_type_size_t=yes
37157else
37158 echo "$as_me: failed program was:" >&5
37159sed 's/^/| /' conftest.$ac_ext >&5
37160
47964710 37161 ac_cv_type_size_t=no
a848cd7e 37162fi
47964710
VS
37163
37164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 37165fi
47964710
VS
37166{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37167echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
a848cd7e
SC
37168if test $ac_cv_type_size_t = yes; then
37169 :
37170else
37171
37172cat >>confdefs.h <<_ACEOF
47964710 37173#define size_t unsigned int
a848cd7e
SC
37174_ACEOF
37175
37176fi
37177
47964710
VS
37178{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37179echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
a848cd7e
SC
37180if test "${ac_cv_type_uid_t+set}" = set; then
37181 echo $ECHO_N "(cached) $ECHO_C" >&6
37182else
37183 cat >conftest.$ac_ext <<_ACEOF
37184/* confdefs.h. */
37185_ACEOF
37186cat confdefs.h >>conftest.$ac_ext
37187cat >>conftest.$ac_ext <<_ACEOF
37188/* end confdefs.h. */
37189#include <sys/types.h>
37190
37191_ACEOF
37192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37193 $EGREP "uid_t" >/dev/null 2>&1; then
37194 ac_cv_type_uid_t=yes
37195else
37196 ac_cv_type_uid_t=no
37197fi
37198rm -f conftest*
37199
37200fi
47964710
VS
37201{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37202echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
a848cd7e
SC
37203if test $ac_cv_type_uid_t = no; then
37204
37205cat >>confdefs.h <<\_ACEOF
37206#define uid_t int
37207_ACEOF
37208
37209
37210cat >>confdefs.h <<\_ACEOF
37211#define gid_t int
37212_ACEOF
37213
37214fi
37215
37216
47964710
VS
37217{ echo "$as_me:$LINENO: checking for ssize_t" >&5
37218echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
d51253e8
RL
37219if test "${ac_cv_type_ssize_t+set}" = set; then
37220 echo $ECHO_N "(cached) $ECHO_C" >&6
37221else
37222 cat >conftest.$ac_ext <<_ACEOF
37223/* confdefs.h. */
37224_ACEOF
37225cat confdefs.h >>conftest.$ac_ext
37226cat >>conftest.$ac_ext <<_ACEOF
37227/* end confdefs.h. */
37228$ac_includes_default
47964710 37229typedef ssize_t ac__type_new_;
d51253e8
RL
37230int
37231main ()
37232{
47964710 37233if ((ac__type_new_ *) 0)
d51253e8 37234 return 0;
47964710 37235if (sizeof (ac__type_new_))
d51253e8
RL
37236 return 0;
37237 ;
37238 return 0;
37239}
37240_ACEOF
37241rm -f conftest.$ac_objext
47964710
VS
37242if { (ac_try="$ac_compile"
37243case "(($ac_try" in
37244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37245 *) ac_try_echo=$ac_try;;
37246esac
37247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37248 (eval "$ac_compile") 2>conftest.er1
d51253e8
RL
37249 ac_status=$?
37250 grep -v '^ *+' conftest.er1 >conftest.err
37251 rm -f conftest.er1
37252 cat conftest.err >&5
37253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37254 (exit $ac_status); } && {
37255 test -z "$ac_c_werror_flag" ||
37256 test ! -s conftest.err
37257 } && test -s conftest.$ac_objext; then
d51253e8
RL
37258 ac_cv_type_ssize_t=yes
37259else
37260 echo "$as_me: failed program was:" >&5
37261sed 's/^/| /' conftest.$ac_ext >&5
37262
47964710 37263 ac_cv_type_ssize_t=no
d51253e8 37264fi
47964710
VS
37265
37266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d51253e8 37267fi
47964710
VS
37268{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37269echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
d51253e8
RL
37270if test $ac_cv_type_ssize_t = yes; then
37271
37272cat >>confdefs.h <<_ACEOF
37273#define HAVE_SSIZE_T 1
37274_ACEOF
37275
37276
37277fi
37278
37279
47964710 37280ac_ext=cpp
9b8888f9
VZ
37281ac_cpp='$CXXCPP $CPPFLAGS'
37282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47964710
VS
37285 { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
37286echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
a848cd7e
SC
37287if test "${wx_cv_size_t_is_uint+set}" = set; then
37288 echo $ECHO_N "(cached) $ECHO_C" >&6
37289else
37290
37291 cat >conftest.$ac_ext <<_ACEOF
37292/* confdefs.h. */
37293_ACEOF
37294cat confdefs.h >>conftest.$ac_ext
37295cat >>conftest.$ac_ext <<_ACEOF
37296/* end confdefs.h. */
37297#include <stddef.h>
37298int
37299main ()
37300{
37301
37302 return 0; }
37303
37304 struct Foo { void foo(size_t); void foo(unsigned int); };
37305
37306 int bar() {
37307
37308 ;
37309 return 0;
37310}
37311_ACEOF
37312rm -f conftest.$ac_objext
47964710
VS
37313if { (ac_try="$ac_compile"
37314case "(($ac_try" in
37315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37316 *) ac_try_echo=$ac_try;;
37317esac
37318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37319 (eval "$ac_compile") 2>conftest.er1
a848cd7e 37320 ac_status=$?
ac1cb8d3
VS
37321 grep -v '^ *+' conftest.er1 >conftest.err
37322 rm -f conftest.er1
37323 cat conftest.err >&5
a848cd7e 37324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37325 (exit $ac_status); } && {
37326 test -z "$ac_cxx_werror_flag" ||
37327 test ! -s conftest.err
37328 } && test -s conftest.$ac_objext; then
a848cd7e
SC
37329 wx_cv_size_t_is_uint=no
37330else
37331 echo "$as_me: failed program was:" >&5
37332sed 's/^/| /' conftest.$ac_ext >&5
37333
47964710 37334 wx_cv_size_t_is_uint=yes
a848cd7e
SC
37335
37336fi
47964710
VS
37337
37338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37339
37340
37341fi
47964710
VS
37342{ echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
37343echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
a848cd7e
SC
37344
37345if test "$wx_cv_size_t_is_uint" = "yes"; then
37346 cat >>confdefs.h <<\_ACEOF
37347#define wxSIZE_T_IS_UINT 1
37348_ACEOF
37349
37350else
47964710
VS
37351 { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
37352echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
a848cd7e
SC
37353if test "${wx_cv_size_t_is_ulong+set}" = set; then
37354 echo $ECHO_N "(cached) $ECHO_C" >&6
37355else
37356 cat >conftest.$ac_ext <<_ACEOF
37357/* confdefs.h. */
37358_ACEOF
37359cat confdefs.h >>conftest.$ac_ext
37360cat >>conftest.$ac_ext <<_ACEOF
37361/* end confdefs.h. */
37362#include <stddef.h>
37363int
37364main ()
37365{
37366
37367 return 0; }
37368
37369 struct Foo { void foo(size_t); void foo(unsigned long); };
37370
37371 int bar() {
37372
37373 ;
37374 return 0;
37375}
37376_ACEOF
37377rm -f conftest.$ac_objext
47964710
VS
37378if { (ac_try="$ac_compile"
37379case "(($ac_try" in
37380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37381 *) ac_try_echo=$ac_try;;
37382esac
37383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37384 (eval "$ac_compile") 2>conftest.er1
a848cd7e 37385 ac_status=$?
ac1cb8d3
VS
37386 grep -v '^ *+' conftest.er1 >conftest.err
37387 rm -f conftest.er1
37388 cat conftest.err >&5
a848cd7e 37389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37390 (exit $ac_status); } && {
37391 test -z "$ac_cxx_werror_flag" ||
37392 test ! -s conftest.err
37393 } && test -s conftest.$ac_objext; then
a848cd7e
SC
37394 wx_cv_size_t_is_ulong=no
37395else
37396 echo "$as_me: failed program was:" >&5
37397sed 's/^/| /' conftest.$ac_ext >&5
37398
47964710 37399 wx_cv_size_t_is_ulong=yes
a848cd7e
SC
37400
37401fi
47964710
VS
37402
37403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37404
37405fi
47964710
VS
37406{ echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
37407echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
a848cd7e
SC
37408
37409 if test "$wx_cv_size_t_is_ulong" = "yes"; then
37410 cat >>confdefs.h <<\_ACEOF
37411#define wxSIZE_T_IS_ULONG 1
37412_ACEOF
37413
37414 fi
37415fi
37416
47964710
VS
37417{ echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
37418echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
21f0762a
VS
37419if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
37420 echo $ECHO_N "(cached) $ECHO_C" >&6
37421else
37422 cat >conftest.$ac_ext <<_ACEOF
37423/* confdefs.h. */
37424_ACEOF
37425cat confdefs.h >>conftest.$ac_ext
37426cat >>conftest.$ac_ext <<_ACEOF
37427/* end confdefs.h. */
37428#include <wchar.h>
37429int
37430main ()
37431{
37432
37433 return 0; }
37434
37435 struct Foo { void foo(wchar_t);
37436 void foo(unsigned short);
37437 void foo(unsigned int);
37438 void foo(unsigned long); };
37439
37440 int bar() {
37441
37442 ;
37443 return 0;
37444}
37445_ACEOF
37446rm -f conftest.$ac_objext
47964710
VS
37447if { (ac_try="$ac_compile"
37448case "(($ac_try" in
37449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37450 *) ac_try_echo=$ac_try;;
37451esac
37452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37453 (eval "$ac_compile") 2>conftest.er1
21f0762a
VS
37454 ac_status=$?
37455 grep -v '^ *+' conftest.er1 >conftest.err
37456 rm -f conftest.er1
37457 cat conftest.err >&5
37458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37459 (exit $ac_status); } && {
37460 test -z "$ac_cxx_werror_flag" ||
37461 test ! -s conftest.err
37462 } && test -s conftest.$ac_objext; then
21f0762a
VS
37463 wx_cv_wchar_t_is_separate_type=yes
37464else
37465 echo "$as_me: failed program was:" >&5
37466sed 's/^/| /' conftest.$ac_ext >&5
37467
47964710 37468 wx_cv_wchar_t_is_separate_type=no
21f0762a
VS
37469
37470fi
47964710
VS
37471
37472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21f0762a
VS
37473
37474fi
47964710
VS
37475{ echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
37476echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
21f0762a
VS
37477
37478if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
37479 cat >>confdefs.h <<\_ACEOF
c5cf8663 37480#define wxWCHAR_T_IS_REAL_TYPE 1
21f0762a
VS
37481_ACEOF
37482
4d62edfb
VS
37483else
37484 cat >>confdefs.h <<\_ACEOF
c5cf8663 37485#define wxWCHAR_T_IS_REAL_TYPE 0
4d62edfb
VS
37486_ACEOF
37487
21f0762a
VS
37488fi
37489
9b8888f9
VZ
37490ac_ext=c
37491ac_cpp='$CPP $CPPFLAGS'
37492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37494ac_compiler_gnu=$ac_cv_c_compiler_gnu
37495
a848cd7e 37496
47964710
VS
37497{ echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
37498echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
a848cd7e
SC
37499if test "${wx_cv_struct_pw_gecos+set}" = set; then
37500 echo $ECHO_N "(cached) $ECHO_C" >&6
37501else
37502
37503 cat >conftest.$ac_ext <<_ACEOF
37504/* confdefs.h. */
37505_ACEOF
37506cat confdefs.h >>conftest.$ac_ext
37507cat >>conftest.$ac_ext <<_ACEOF
37508/* end confdefs.h. */
37509#include <pwd.h>
37510int
37511main ()
37512{
37513
37514 char *p;
37515 struct passwd *pw;
37516 p = pw->pw_gecos;
37517
37518 ;
37519 return 0;
37520}
37521_ACEOF
37522rm -f conftest.$ac_objext
47964710
VS
37523if { (ac_try="$ac_compile"
37524case "(($ac_try" in
37525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37526 *) ac_try_echo=$ac_try;;
37527esac
37528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37529 (eval "$ac_compile") 2>conftest.er1
a848cd7e 37530 ac_status=$?
ac1cb8d3
VS
37531 grep -v '^ *+' conftest.er1 >conftest.err
37532 rm -f conftest.er1
37533 cat conftest.err >&5
a848cd7e 37534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37535 (exit $ac_status); } && {
37536 test -z "$ac_c_werror_flag" ||
37537 test ! -s conftest.err
37538 } && test -s conftest.$ac_objext; then
a848cd7e
SC
37539
37540 wx_cv_struct_pw_gecos=yes
37541
37542else
37543 echo "$as_me: failed program was:" >&5
37544sed 's/^/| /' conftest.$ac_ext >&5
37545
37546
37547 wx_cv_struct_pw_gecos=no
37548
37549
37550fi
47964710
VS
37551
37552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37553
37554
37555fi
47964710
VS
37556{ echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
37557echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
a848cd7e
SC
37558
37559if test "$wx_cv_struct_pw_gecos" = "yes"; then
37560 cat >>confdefs.h <<\_ACEOF
37561#define HAVE_PW_GECOS 1
37562_ACEOF
37563
37564fi
37565
37566
47a7e797 37567if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
37568 cat >>confdefs.h <<\_ACEOF
37569#define wxUSE_WCHAR_T 1
37570_ACEOF
37571
37572
37573 WCSLEN_FOUND=0
37574 WCHAR_LINK=
37575
37576for ac_func in wcslen
37577do
37578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
37579{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37581if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
37582 echo $ECHO_N "(cached) $ECHO_C" >&6
37583else
37584 cat >conftest.$ac_ext <<_ACEOF
37585/* confdefs.h. */
37586_ACEOF
37587cat confdefs.h >>conftest.$ac_ext
37588cat >>conftest.$ac_ext <<_ACEOF
37589/* end confdefs.h. */
ac1cb8d3
VS
37590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37592#define $ac_func innocuous_$ac_func
37593
a848cd7e
SC
37594/* System header to define __stub macros and hopefully few prototypes,
37595 which can conflict with char $ac_func (); below.
37596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37597 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37598
a848cd7e
SC
37599#ifdef __STDC__
37600# include <limits.h>
37601#else
37602# include <assert.h>
37603#endif
ac1cb8d3
VS
37604
37605#undef $ac_func
37606
47964710
VS
37607/* Override any GCC internal prototype to avoid an error.
37608 Use char because int might match the return type of a GCC
37609 builtin and then its argument prototype would still apply. */
a848cd7e
SC
37610#ifdef __cplusplus
37611extern "C"
a848cd7e 37612#endif
a848cd7e
SC
37613char $ac_func ();
37614/* The GNU C library defines this for functions which it implements
37615 to always fail with ENOSYS. Some functions are actually named
37616 something starting with __ and the normal name is an alias. */
47964710 37617#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 37618choke me
a848cd7e
SC
37619#endif
37620
37621int
37622main ()
37623{
47964710 37624return $ac_func ();
a848cd7e
SC
37625 ;
37626 return 0;
37627}
37628_ACEOF
37629rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
37630if { (ac_try="$ac_link"
37631case "(($ac_try" in
37632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37633 *) ac_try_echo=$ac_try;;
37634esac
37635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37636 (eval "$ac_link") 2>conftest.er1
a848cd7e 37637 ac_status=$?
ac1cb8d3
VS
37638 grep -v '^ *+' conftest.er1 >conftest.err
37639 rm -f conftest.er1
37640 cat conftest.err >&5
a848cd7e 37641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37642 (exit $ac_status); } && {
37643 test -z "$ac_c_werror_flag" ||
37644 test ! -s conftest.err
37645 } && test -s conftest$ac_exeext &&
37646 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
37647 eval "$as_ac_var=yes"
37648else
37649 echo "$as_me: failed program was:" >&5
37650sed 's/^/| /' conftest.$ac_ext >&5
37651
47964710 37652 eval "$as_ac_var=no"
a848cd7e 37653fi
47964710
VS
37654
37655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 37656 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37657fi
47964710
VS
37658ac_res=`eval echo '${'$as_ac_var'}'`
37659 { echo "$as_me:$LINENO: result: $ac_res" >&5
37660echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
37661if test `eval echo '${'$as_ac_var'}'` = yes; then
37662 cat >>confdefs.h <<_ACEOF
37663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37664_ACEOF
37665 WCSLEN_FOUND=1
37666fi
37667done
37668
37669
37670 if test "$WCSLEN_FOUND" = 0; then
37671 if test "$TOOLKIT" = "MSW"; then
47964710
VS
37672 { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
37673echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
a848cd7e
SC
37674if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
37675 echo $ECHO_N "(cached) $ECHO_C" >&6
37676else
37677 ac_check_lib_save_LIBS=$LIBS
37678LIBS="-lmsvcrt $LIBS"
37679cat >conftest.$ac_ext <<_ACEOF
37680/* confdefs.h. */
37681_ACEOF
37682cat confdefs.h >>conftest.$ac_ext
37683cat >>conftest.$ac_ext <<_ACEOF
37684/* end confdefs.h. */
37685
47964710
VS
37686/* Override any GCC internal prototype to avoid an error.
37687 Use char because int might match the return type of a GCC
37688 builtin and then its argument prototype would still apply. */
a848cd7e
SC
37689#ifdef __cplusplus
37690extern "C"
37691#endif
a848cd7e
SC
37692char wcslen ();
37693int
37694main ()
37695{
47964710 37696return wcslen ();
a848cd7e
SC
37697 ;
37698 return 0;
37699}
37700_ACEOF
37701rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
37702if { (ac_try="$ac_link"
37703case "(($ac_try" in
37704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37705 *) ac_try_echo=$ac_try;;
37706esac
37707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37708 (eval "$ac_link") 2>conftest.er1
a848cd7e 37709 ac_status=$?
ac1cb8d3
VS
37710 grep -v '^ *+' conftest.er1 >conftest.err
37711 rm -f conftest.er1
37712 cat conftest.err >&5
a848cd7e 37713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37714 (exit $ac_status); } && {
37715 test -z "$ac_c_werror_flag" ||
37716 test ! -s conftest.err
37717 } && test -s conftest$ac_exeext &&
37718 $as_test_x conftest$ac_exeext; then
39b61aa3
VZ
37719 ac_cv_lib_msvcrt_wcslen=yes
37720else
37721 echo "$as_me: failed program was:" >&5
37722sed 's/^/| /' conftest.$ac_ext >&5
37723
47964710 37724 ac_cv_lib_msvcrt_wcslen=no
39b61aa3 37725fi
47964710
VS
37726
37727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39b61aa3
VZ
37728 conftest$ac_exeext conftest.$ac_ext
37729LIBS=$ac_check_lib_save_LIBS
37730fi
47964710
VS
37731{ echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
37732echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
39b61aa3
VZ
37733if test $ac_cv_lib_msvcrt_wcslen = yes; then
37734 WCHAR_OK=1
37735fi
37736
37737 else
47964710
VS
37738 { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
37739echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
39b61aa3
VZ
37740if test "${ac_cv_lib_w_wcslen+set}" = set; then
37741 echo $ECHO_N "(cached) $ECHO_C" >&6
37742else
37743 ac_check_lib_save_LIBS=$LIBS
37744LIBS="-lw $LIBS"
37745cat >conftest.$ac_ext <<_ACEOF
37746/* confdefs.h. */
37747_ACEOF
37748cat confdefs.h >>conftest.$ac_ext
37749cat >>conftest.$ac_ext <<_ACEOF
37750/* end confdefs.h. */
37751
47964710
VS
37752/* Override any GCC internal prototype to avoid an error.
37753 Use char because int might match the return type of a GCC
37754 builtin and then its argument prototype would still apply. */
39b61aa3
VZ
37755#ifdef __cplusplus
37756extern "C"
37757#endif
37758char wcslen ();
37759int
37760main ()
37761{
47964710 37762return wcslen ();
39b61aa3
VZ
37763 ;
37764 return 0;
37765}
37766_ACEOF
37767rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
37768if { (ac_try="$ac_link"
37769case "(($ac_try" in
37770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37771 *) ac_try_echo=$ac_try;;
37772esac
37773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37774 (eval "$ac_link") 2>conftest.er1
a848cd7e 37775 ac_status=$?
39b61aa3
VZ
37776 grep -v '^ *+' conftest.er1 >conftest.err
37777 rm -f conftest.er1
37778 cat conftest.err >&5
a848cd7e 37779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37780 (exit $ac_status); } && {
37781 test -z "$ac_c_werror_flag" ||
37782 test ! -s conftest.err
37783 } && test -s conftest$ac_exeext &&
37784 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
37785 ac_cv_lib_w_wcslen=yes
37786else
37787 echo "$as_me: failed program was:" >&5
37788sed 's/^/| /' conftest.$ac_ext >&5
37789
47964710 37790 ac_cv_lib_w_wcslen=no
a848cd7e 37791fi
47964710
VS
37792
37793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 37794 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37795LIBS=$ac_check_lib_save_LIBS
37796fi
47964710
VS
37797{ echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
37798echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
a848cd7e
SC
37799if test $ac_cv_lib_w_wcslen = yes; then
37800
37801 WCHAR_LINK=" -lw"
37802 WCSLEN_FOUND=1
37803
37804fi
37805
37806 fi
37807 fi
37808
37809 if test "$WCSLEN_FOUND" = 1; then
37810 cat >>confdefs.h <<\_ACEOF
37811#define HAVE_WCSLEN 1
37812_ACEOF
37813
37814 fi
37815
8a02058a
VS
37816
37817for ac_func in wcsdup
37818do
37819as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
37820{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37822if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8a02058a
VS
37823 echo $ECHO_N "(cached) $ECHO_C" >&6
37824else
37825 cat >conftest.$ac_ext <<_ACEOF
37826/* confdefs.h. */
37827_ACEOF
37828cat confdefs.h >>conftest.$ac_ext
37829cat >>conftest.$ac_ext <<_ACEOF
37830/* end confdefs.h. */
37831/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37833#define $ac_func innocuous_$ac_func
37834
37835/* System header to define __stub macros and hopefully few prototypes,
37836 which can conflict with char $ac_func (); below.
37837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37838 <limits.h> exists even on freestanding compilers. */
37839
37840#ifdef __STDC__
37841# include <limits.h>
37842#else
37843# include <assert.h>
37844#endif
37845
37846#undef $ac_func
37847
47964710
VS
37848/* Override any GCC internal prototype to avoid an error.
37849 Use char because int might match the return type of a GCC
37850 builtin and then its argument prototype would still apply. */
8a02058a
VS
37851#ifdef __cplusplus
37852extern "C"
37853#endif
37854char $ac_func ();
37855/* The GNU C library defines this for functions which it implements
37856 to always fail with ENOSYS. Some functions are actually named
37857 something starting with __ and the normal name is an alias. */
47964710 37858#if defined __stub_$ac_func || defined __stub___$ac_func
8a02058a
VS
37859choke me
37860#endif
37861
37862int
37863main ()
37864{
47964710 37865return $ac_func ();
8a02058a
VS
37866 ;
37867 return 0;
37868}
37869_ACEOF
37870rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
37871if { (ac_try="$ac_link"
37872case "(($ac_try" in
37873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37874 *) ac_try_echo=$ac_try;;
37875esac
37876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37877 (eval "$ac_link") 2>conftest.er1
8a02058a
VS
37878 ac_status=$?
37879 grep -v '^ *+' conftest.er1 >conftest.err
37880 rm -f conftest.er1
37881 cat conftest.err >&5
37882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37883 (exit $ac_status); } && {
37884 test -z "$ac_c_werror_flag" ||
37885 test ! -s conftest.err
37886 } && test -s conftest$ac_exeext &&
37887 $as_test_x conftest$ac_exeext; then
8a02058a
VS
37888 eval "$as_ac_var=yes"
37889else
37890 echo "$as_me: failed program was:" >&5
37891sed 's/^/| /' conftest.$ac_ext >&5
37892
47964710 37893 eval "$as_ac_var=no"
8a02058a 37894fi
47964710
VS
37895
37896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a02058a
VS
37897 conftest$ac_exeext conftest.$ac_ext
37898fi
47964710
VS
37899ac_res=`eval echo '${'$as_ac_var'}'`
37900 { echo "$as_me:$LINENO: result: $ac_res" >&5
37901echo "${ECHO_T}$ac_res" >&6; }
8a02058a
VS
37902if test `eval echo '${'$as_ac_var'}'` = yes; then
37903 cat >>confdefs.h <<_ACEOF
37904#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37905_ACEOF
37906
37907fi
37908done
37909
37910
efdf6afe 37911 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 37912 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
37913 fi
37914
47964710
VS
37915 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
37916echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
efdf6afe
VZ
37917if test "${ac_cv_type_mbstate_t+set}" = set; then
37918 echo $ECHO_N "(cached) $ECHO_C" >&6
37919else
37920 cat >conftest.$ac_ext <<_ACEOF
37921/* confdefs.h. */
37922_ACEOF
37923cat confdefs.h >>conftest.$ac_ext
37924cat >>conftest.$ac_ext <<_ACEOF
37925/* end confdefs.h. */
37926#include <wchar.h>
37927
47964710 37928typedef mbstate_t ac__type_new_;
efdf6afe
VZ
37929int
37930main ()
37931{
47964710 37932if ((ac__type_new_ *) 0)
efdf6afe 37933 return 0;
47964710 37934if (sizeof (ac__type_new_))
efdf6afe
VZ
37935 return 0;
37936 ;
37937 return 0;
37938}
37939_ACEOF
37940rm -f conftest.$ac_objext
47964710
VS
37941if { (ac_try="$ac_compile"
37942case "(($ac_try" in
37943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37944 *) ac_try_echo=$ac_try;;
37945esac
37946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37947 (eval "$ac_compile") 2>conftest.er1
efdf6afe
VZ
37948 ac_status=$?
37949 grep -v '^ *+' conftest.er1 >conftest.err
37950 rm -f conftest.er1
37951 cat conftest.err >&5
37952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37953 (exit $ac_status); } && {
37954 test -z "$ac_c_werror_flag" ||
37955 test ! -s conftest.err
37956 } && test -s conftest.$ac_objext; then
efdf6afe
VZ
37957 ac_cv_type_mbstate_t=yes
37958else
37959 echo "$as_me: failed program was:" >&5
37960sed 's/^/| /' conftest.$ac_ext >&5
37961
47964710 37962 ac_cv_type_mbstate_t=no
efdf6afe 37963fi
47964710
VS
37964
37965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
efdf6afe 37966fi
47964710
VS
37967{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
37968echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
efdf6afe
VZ
37969if test $ac_cv_type_mbstate_t = yes; then
37970
37971cat >>confdefs.h <<_ACEOF
37972#define HAVE_MBSTATE_T 1
37973_ACEOF
37974
a848cd7e
SC
37975
37976for ac_func in wcsrtombs
37977do
37978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
37979{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
37982 echo $ECHO_N "(cached) $ECHO_C" >&6
37983else
37984 cat >conftest.$ac_ext <<_ACEOF
37985/* confdefs.h. */
37986_ACEOF
37987cat confdefs.h >>conftest.$ac_ext
37988cat >>conftest.$ac_ext <<_ACEOF
37989/* end confdefs.h. */
ac1cb8d3
VS
37990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37992#define $ac_func innocuous_$ac_func
37993
a848cd7e
SC
37994/* System header to define __stub macros and hopefully few prototypes,
37995 which can conflict with char $ac_func (); below.
37996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37997 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37998
a848cd7e
SC
37999#ifdef __STDC__
38000# include <limits.h>
38001#else
38002# include <assert.h>
38003#endif
ac1cb8d3
VS
38004
38005#undef $ac_func
38006
47964710
VS
38007/* Override any GCC internal prototype to avoid an error.
38008 Use char because int might match the return type of a GCC
38009 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38010#ifdef __cplusplus
38011extern "C"
a848cd7e 38012#endif
a848cd7e
SC
38013char $ac_func ();
38014/* The GNU C library defines this for functions which it implements
38015 to always fail with ENOSYS. Some functions are actually named
38016 something starting with __ and the normal name is an alias. */
47964710 38017#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 38018choke me
a848cd7e
SC
38019#endif
38020
38021int
38022main ()
38023{
47964710 38024return $ac_func ();
a848cd7e
SC
38025 ;
38026 return 0;
38027}
38028_ACEOF
38029rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38030if { (ac_try="$ac_link"
38031case "(($ac_try" in
38032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38033 *) ac_try_echo=$ac_try;;
38034esac
38035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38036 (eval "$ac_link") 2>conftest.er1
a848cd7e 38037 ac_status=$?
ac1cb8d3
VS
38038 grep -v '^ *+' conftest.er1 >conftest.err
38039 rm -f conftest.er1
38040 cat conftest.err >&5
a848cd7e 38041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38042 (exit $ac_status); } && {
38043 test -z "$ac_c_werror_flag" ||
38044 test ! -s conftest.err
38045 } && test -s conftest$ac_exeext &&
38046 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
38047 eval "$as_ac_var=yes"
38048else
38049 echo "$as_me: failed program was:" >&5
38050sed 's/^/| /' conftest.$ac_ext >&5
38051
47964710 38052 eval "$as_ac_var=no"
a848cd7e 38053fi
47964710
VS
38054
38055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 38056 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38057fi
47964710
VS
38058ac_res=`eval echo '${'$as_ac_var'}'`
38059 { echo "$as_me:$LINENO: result: $ac_res" >&5
38060echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
38061if test `eval echo '${'$as_ac_var'}'` = yes; then
38062 cat >>confdefs.h <<_ACEOF
38063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38064_ACEOF
38065
38066fi
38067done
38068
efdf6afe
VZ
38069fi
38070
a848cd7e
SC
38071else
38072 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
38073echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
38074fi
38075
a848cd7e 38076
4a767dd5
VZ
38077
38078for ac_func in snprintf vsnprintf
a848cd7e
SC
38079do
38080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
38081{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38083if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
38084 echo $ECHO_N "(cached) $ECHO_C" >&6
38085else
38086 cat >conftest.$ac_ext <<_ACEOF
38087/* confdefs.h. */
38088_ACEOF
38089cat confdefs.h >>conftest.$ac_ext
38090cat >>conftest.$ac_ext <<_ACEOF
38091/* end confdefs.h. */
ac1cb8d3
VS
38092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38094#define $ac_func innocuous_$ac_func
38095
a848cd7e
SC
38096/* System header to define __stub macros and hopefully few prototypes,
38097 which can conflict with char $ac_func (); below.
38098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38099 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38100
a848cd7e
SC
38101#ifdef __STDC__
38102# include <limits.h>
38103#else
38104# include <assert.h>
38105#endif
ac1cb8d3
VS
38106
38107#undef $ac_func
38108
47964710
VS
38109/* Override any GCC internal prototype to avoid an error.
38110 Use char because int might match the return type of a GCC
38111 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38112#ifdef __cplusplus
38113extern "C"
a848cd7e 38114#endif
a848cd7e
SC
38115char $ac_func ();
38116/* The GNU C library defines this for functions which it implements
38117 to always fail with ENOSYS. Some functions are actually named
38118 something starting with __ and the normal name is an alias. */
47964710 38119#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 38120choke me
a848cd7e
SC
38121#endif
38122
38123int
38124main ()
38125{
47964710 38126return $ac_func ();
a848cd7e
SC
38127 ;
38128 return 0;
38129}
38130_ACEOF
38131rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38132if { (ac_try="$ac_link"
38133case "(($ac_try" in
38134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38135 *) ac_try_echo=$ac_try;;
38136esac
38137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38138 (eval "$ac_link") 2>conftest.er1
a848cd7e 38139 ac_status=$?
ac1cb8d3
VS
38140 grep -v '^ *+' conftest.er1 >conftest.err
38141 rm -f conftest.er1
38142 cat conftest.err >&5
a848cd7e 38143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38144 (exit $ac_status); } && {
38145 test -z "$ac_c_werror_flag" ||
38146 test ! -s conftest.err
38147 } && test -s conftest$ac_exeext &&
38148 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
38149 eval "$as_ac_var=yes"
38150else
38151 echo "$as_me: failed program was:" >&5
38152sed 's/^/| /' conftest.$ac_ext >&5
38153
47964710 38154 eval "$as_ac_var=no"
a848cd7e 38155fi
47964710
VS
38156
38157rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 38158 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38159fi
47964710
VS
38160ac_res=`eval echo '${'$as_ac_var'}'`
38161 { echo "$as_me:$LINENO: result: $ac_res" >&5
38162echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
38163if test `eval echo '${'$as_ac_var'}'` = yes; then
38164 cat >>confdefs.h <<_ACEOF
38165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38166_ACEOF
38167
38168fi
38169done
38170
38171
38172if test "$ac_cv_func_vsnprintf" = "yes"; then
47964710
VS
38173 { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
38174echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
a848cd7e
SC
38175if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
38176 echo $ECHO_N "(cached) $ECHO_C" >&6
38177else
38178
efdf6afe 38179 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38180/* confdefs.h. */
38181_ACEOF
38182cat confdefs.h >>conftest.$ac_ext
38183cat >>conftest.$ac_ext <<_ACEOF
38184/* end confdefs.h. */
38185
38186 #include <stdio.h>
38187 #include <stdarg.h>
efdf6afe
VZ
38188 #ifdef __MSL__
38189 #if __MSL__ >= 0x6000
38190 namespace std {}
38191 using namespace std;
38192 #endif
38193 #endif
a848cd7e
SC
38194
38195int
38196main ()
38197{
38198
38199 char *buf;
38200 va_list ap;
62fa8b3a 38201 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
38202
38203 ;
38204 return 0;
38205}
38206_ACEOF
38207rm -f conftest.$ac_objext
47964710
VS
38208if { (ac_try="$ac_compile"
38209case "(($ac_try" in
38210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38211 *) ac_try_echo=$ac_try;;
38212esac
38213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38214 (eval "$ac_compile") 2>conftest.er1
c122b164
DE
38215 ac_status=$?
38216 grep -v '^ *+' conftest.er1 >conftest.err
38217 rm -f conftest.er1
38218 cat conftest.err >&5
38219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38220 (exit $ac_status); } && {
38221 test -z "$ac_c_werror_flag" ||
38222 test ! -s conftest.err
38223 } && test -s conftest.$ac_objext; then
c122b164
DE
38224 wx_cv_func_vsnprintf_decl=yes
38225else
38226 echo "$as_me: failed program was:" >&5
38227sed 's/^/| /' conftest.$ac_ext >&5
38228
47964710 38229 wx_cv_func_vsnprintf_decl=no
a848cd7e
SC
38230
38231fi
47964710
VS
38232
38233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38234
38235
38236fi
47964710
VS
38237{ echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
38238echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
a848cd7e
SC
38239
38240 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
38241 cat >>confdefs.h <<\_ACEOF
38242#define HAVE_VSNPRINTF_DECL 1
38243_ACEOF
38244
62fa8b3a 38245
47964710
VS
38246 { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
38247echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
62fa8b3a
MW
38248if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
38249 echo $ECHO_N "(cached) $ECHO_C" >&6
38250else
38251
38252 cat >conftest.$ac_ext <<_ACEOF
38253/* confdefs.h. */
38254_ACEOF
38255cat confdefs.h >>conftest.$ac_ext
38256cat >>conftest.$ac_ext <<_ACEOF
38257/* end confdefs.h. */
38258
38259 #include <stdio.h>
38260 #include <stdarg.h>
38261 #ifdef __MSL__
38262 #if __MSL__ >= 0x6000
38263 namespace std {}
38264 using namespace std;
38265 #endif
38266 #endif
38267
38268int
38269main ()
38270{
38271
38272 char *buf;
38273 va_list ap;
38274 const char *fmt = "%s";
38275 vsnprintf(buf, 10u, fmt, ap);
38276
38277 ;
38278 return 0;
38279}
38280_ACEOF
38281rm -f conftest.$ac_objext
47964710
VS
38282if { (ac_try="$ac_compile"
38283case "(($ac_try" in
38284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38285 *) ac_try_echo=$ac_try;;
38286esac
38287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38288 (eval "$ac_compile") 2>conftest.er1
62fa8b3a
MW
38289 ac_status=$?
38290 grep -v '^ *+' conftest.er1 >conftest.err
38291 rm -f conftest.er1
38292 cat conftest.err >&5
38293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38294 (exit $ac_status); } && {
38295 test -z "$ac_c_werror_flag" ||
38296 test ! -s conftest.err
38297 } && test -s conftest.$ac_objext; then
62fa8b3a
MW
38298 wx_cv_func_broken_vsnprintf_decl=no
38299else
38300 echo "$as_me: failed program was:" >&5
38301sed 's/^/| /' conftest.$ac_ext >&5
38302
47964710 38303 wx_cv_func_broken_vsnprintf_decl=yes
62fa8b3a
MW
38304
38305fi
47964710
VS
38306
38307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62fa8b3a
MW
38308
38309
38310fi
47964710
VS
38311{ echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
38312echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
62fa8b3a
MW
38313
38314 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
38315 cat >>confdefs.h <<\_ACEOF
38316#define HAVE_BROKEN_VSNPRINTF_DECL 1
38317_ACEOF
38318
38319 fi
a848cd7e
SC
38320 fi
38321fi
38322
4a767dd5 38323if test "$ac_cv_func_snprintf" = "yes"; then
47964710
VS
38324 { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
38325echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
4a767dd5
VZ
38326if test "${wx_cv_func_snprintf_decl+set}" = set; then
38327 echo $ECHO_N "(cached) $ECHO_C" >&6
38328else
38329
38330 cat >conftest.$ac_ext <<_ACEOF
38331/* confdefs.h. */
38332_ACEOF
38333cat confdefs.h >>conftest.$ac_ext
38334cat >>conftest.$ac_ext <<_ACEOF
38335/* end confdefs.h. */
38336
38337 #include <stdio.h>
38338 #include <stdarg.h>
38339 #ifdef __MSL__
38340 #if __MSL__ >= 0x6000
38341 namespace std {}
38342 using namespace std;
38343 #endif
38344 #endif
38345
38346int
38347main ()
38348{
38349
38350 char *buf;
62fa8b3a 38351 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
38352
38353 ;
38354 return 0;
38355}
38356_ACEOF
38357rm -f conftest.$ac_objext
47964710
VS
38358if { (ac_try="$ac_compile"
38359case "(($ac_try" in
38360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38361 *) ac_try_echo=$ac_try;;
38362esac
38363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38364 (eval "$ac_compile") 2>conftest.er1
4a767dd5
VZ
38365 ac_status=$?
38366 grep -v '^ *+' conftest.er1 >conftest.err
38367 rm -f conftest.er1
38368 cat conftest.err >&5
38369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38370 (exit $ac_status); } && {
38371 test -z "$ac_c_werror_flag" ||
38372 test ! -s conftest.err
38373 } && test -s conftest.$ac_objext; then
4a767dd5
VZ
38374 wx_cv_func_snprintf_decl=yes
38375else
38376 echo "$as_me: failed program was:" >&5
38377sed 's/^/| /' conftest.$ac_ext >&5
38378
47964710 38379 wx_cv_func_snprintf_decl=no
4a767dd5
VZ
38380
38381fi
47964710
VS
38382
38383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4a767dd5
VZ
38384
38385
38386fi
47964710
VS
38387{ echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
38388echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
4a767dd5
VZ
38389
38390 if test "$wx_cv_func_snprintf_decl" = "yes"; then
38391 cat >>confdefs.h <<\_ACEOF
38392#define HAVE_SNPRINTF_DECL 1
38393_ACEOF
38394
8b6682b9
JS
38395 fi
38396
38397 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
38398
47964710
VS
38399 { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
38400echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
8b6682b9
JS
38401if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
38402 echo $ECHO_N "(cached) $ECHO_C" >&6
38403else
38404
38405 if test "$cross_compiling" = yes; then
5039a2df
VZ
38406
38407 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
38408define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
38409echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
38410define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
38411 wx_cv_func_snprintf_pos_params=no
38412
38413
8b6682b9
JS
38414else
38415 cat >conftest.$ac_ext <<_ACEOF
38416/* confdefs.h. */
38417_ACEOF
38418cat confdefs.h >>conftest.$ac_ext
38419cat >>conftest.$ac_ext <<_ACEOF
38420/* end confdefs.h. */
38421
38422 #include <stdio.h>
38423
38424 int main (void)
38425 {
38426 char buffer[128];
f321ab7f 38427 snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
8b6682b9
JS
38428 if (strcmp ("2 3 1", buffer) == 0)
38429 exit (0);
38430 exit (1);
38431 }
38432
38433_ACEOF
38434rm -f conftest$ac_exeext
47964710
VS
38435if { (ac_try="$ac_link"
38436case "(($ac_try" in
38437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38438 *) ac_try_echo=$ac_try;;
38439esac
38440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38441 (eval "$ac_link") 2>&5
8b6682b9
JS
38442 ac_status=$?
38443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
38445 { (case "(($ac_try" in
38446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38447 *) ac_try_echo=$ac_try;;
38448esac
38449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38450 (eval "$ac_try") 2>&5
8b6682b9
JS
38451 ac_status=$?
38452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453 (exit $ac_status); }; }; then
38454 wx_cv_func_snprintf_pos_params=no
38455else
38456 echo "$as_me: program exited with status $ac_status" >&5
38457echo "$as_me: failed program was:" >&5
38458sed 's/^/| /' conftest.$ac_ext >&5
38459
38460( exit $ac_status )
38461wx_cv_func_snprintf_pos_params=yes
8b6682b9 38462fi
47964710 38463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8b6682b9
JS
38464fi
38465
38466
47964710
VS
38467
38468
8b6682b9 38469fi
47964710
VS
38470{ echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
38471echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
8b6682b9
JS
38472
38473 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
38474 cat >>confdefs.h <<\_ACEOF
38475#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
38476_ACEOF
38477
38478 fi
4a767dd5
VZ
38479 fi
38480fi
38481
a848cd7e
SC
38482if test "$wxUSE_UNICODE" = yes; then
38483
a49ffb32
VZ
38484 wchar_headers="#include <stdio.h>
38485#include <wchar.h>"
38486 case "${host}" in
38487 *-*-solaris2* )
be2ad872
PC
38488
38489for ac_header in widec.h
38490do
38491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47964710
VS
38492{ echo "$as_me:$LINENO: checking for $ac_header" >&5
38493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a49ffb32 38495 echo $ECHO_N "(cached) $ECHO_C" >&6
a49ffb32 38496else
6e7b8bcb 38497 cat >conftest.$ac_ext <<_ACEOF
a49ffb32
VZ
38498/* confdefs.h. */
38499_ACEOF
38500cat confdefs.h >>conftest.$ac_ext
38501cat >>conftest.$ac_ext <<_ACEOF
38502/* end confdefs.h. */
38503$ac_includes_default
6e7b8bcb 38504
be2ad872 38505#include <$ac_header>
a49ffb32
VZ
38506_ACEOF
38507rm -f conftest.$ac_objext
47964710
VS
38508if { (ac_try="$ac_compile"
38509case "(($ac_try" in
38510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38511 *) ac_try_echo=$ac_try;;
38512esac
38513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38514 (eval "$ac_compile") 2>conftest.er1
a49ffb32
VZ
38515 ac_status=$?
38516 grep -v '^ *+' conftest.er1 >conftest.err
38517 rm -f conftest.er1
38518 cat conftest.err >&5
38519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38520 (exit $ac_status); } && {
38521 test -z "$ac_c_werror_flag" ||
38522 test ! -s conftest.err
38523 } && test -s conftest.$ac_objext; then
be2ad872 38524 eval "$as_ac_Header=yes"
a49ffb32
VZ
38525else
38526 echo "$as_me: failed program was:" >&5
38527sed 's/^/| /' conftest.$ac_ext >&5
38528
47964710 38529 eval "$as_ac_Header=no"
a49ffb32 38530fi
47964710
VS
38531
38532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a49ffb32 38533fi
47964710
VS
38534ac_res=`eval echo '${'$as_ac_Header'}'`
38535 { echo "$as_me:$LINENO: result: $ac_res" >&5
38536echo "${ECHO_T}$ac_res" >&6; }
be2ad872
PC
38537if test `eval echo '${'$as_ac_Header'}'` = yes; then
38538 cat >>confdefs.h <<_ACEOF
38539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38540_ACEOF
7fd3acaf 38541
be2ad872
PC
38542fi
38543
38544done
a49ffb32
VZ
38545
38546 if test "$ac_cv_header_widec_h" = "yes"; then
38547 wchar_headers="$wchar_headers
38548#include <widec.h>"
38549 fi
38550 esac
38551
6a5c9b3f 38552
05787cec 38553 for wx_func in putws fputws wprintf vswprintf
fd5199d6 38554 do
47964710
VS
38555 { echo "$as_me:$LINENO: checking for $wx_func" >&5
38556echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38557if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
38558 echo $ECHO_N "(cached) $ECHO_C" >&6
38559else
fd5199d6
VZ
38560
38561 cat >conftest.$ac_ext <<_ACEOF
38562
38563 /* confdefs.h. */
a848cd7e
SC
38564_ACEOF
38565cat confdefs.h >>conftest.$ac_ext
38566cat >>conftest.$ac_ext <<_ACEOF
38567/* end confdefs.h. */
ac1cb8d3 38568
a49ffb32 38569 $wchar_headers
fd5199d6 38570 $ac_includes_default
a848cd7e
SC
38571
38572int
38573main ()
38574{
fd5199d6
VZ
38575
38576 #ifndef $wx_func
38577 &$wx_func;
38578 #endif
38579
38580
a848cd7e
SC
38581 ;
38582 return 0;
38583}
fd5199d6 38584
a848cd7e
SC
38585_ACEOF
38586rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38587if { (ac_try="$ac_link"
38588case "(($ac_try" in
38589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38590 *) ac_try_echo=$ac_try;;
38591esac
38592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38593 (eval "$ac_link") 2>conftest.er1
a848cd7e 38594 ac_status=$?
ac1cb8d3
VS
38595 grep -v '^ *+' conftest.er1 >conftest.err
38596 rm -f conftest.er1
38597 cat conftest.err >&5
a848cd7e 38598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38599 (exit $ac_status); } && {
38600 test -z "$ac_c_werror_flag" ||
38601 test ! -s conftest.err
38602 } && test -s conftest$ac_exeext &&
38603 $as_test_x conftest$ac_exeext; then
fd5199d6 38604 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38605else
38606 echo "$as_me: failed program was:" >&5
38607sed 's/^/| /' conftest.$ac_ext >&5
38608
47964710 38609 eval wx_cv_func_$wx_func=no
a848cd7e 38610fi
47964710
VS
38611
38612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 38613 conftest$ac_exeext conftest.$ac_ext
fd5199d6 38614
a848cd7e 38615fi
47964710
VS
38616ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38617 { echo "$as_me:$LINENO: result: $ac_res" >&5
38618echo "${ECHO_T}$ac_res" >&6; }
fd5199d6
VZ
38619
38620 if eval test \$wx_cv_func_$wx_func = yes
38621 then
38622 cat >>confdefs.h <<_ACEOF
1ad9ba14 38623#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
a848cd7e
SC
38624_ACEOF
38625
fd5199d6
VZ
38626
38627 else
38628 :
38629
38630 fi
38631 done
a848cd7e
SC
38632
38633
47964710
VS
38634 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
38635echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
a848cd7e
SC
38636 cat >conftest.$ac_ext <<_ACEOF
38637/* confdefs.h. */
38638_ACEOF
38639cat confdefs.h >>conftest.$ac_ext
38640cat >>conftest.$ac_ext <<_ACEOF
38641/* end confdefs.h. */
38642#include <wchar.h>
38643int
38644main ()
38645{
38646&_vsnwprintf;
38647 ;
38648 return 0;
38649}
38650_ACEOF
38651rm -f conftest.$ac_objext
47964710
VS
38652if { (ac_try="$ac_compile"
38653case "(($ac_try" in
38654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38655 *) ac_try_echo=$ac_try;;
38656esac
38657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38658 (eval "$ac_compile") 2>conftest.er1
a848cd7e 38659 ac_status=$?
ac1cb8d3
VS
38660 grep -v '^ *+' conftest.er1 >conftest.err
38661 rm -f conftest.er1
38662 cat conftest.err >&5
a848cd7e 38663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38664 (exit $ac_status); } && {
38665 test -z "$ac_c_werror_flag" ||
38666 test ! -s conftest.err
38667 } && test -s conftest.$ac_objext; then
38668 { echo "$as_me:$LINENO: result: yes" >&5
38669echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
38670 cat >>confdefs.h <<\_ACEOF
38671#define HAVE__VSNWPRINTF 1
38672_ACEOF
38673
38674else
38675 echo "$as_me: failed program was:" >&5
38676sed 's/^/| /' conftest.$ac_ext >&5
38677
47964710
VS
38678 { echo "$as_me:$LINENO: result: no" >&5
38679echo "${ECHO_T}no" >&6; }
a848cd7e 38680fi
47964710
VS
38681
38682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
38683fi
38684
6ebeb4c7
VZ
38685if test "$wxUSE_FILE" = "yes"; then
38686
fd5199d6
VZ
38687 for wx_func in fsync
38688 do
47964710
VS
38689 { echo "$as_me:$LINENO: checking for $wx_func" >&5
38690echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38691if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
6ebeb4c7
VZ
38692 echo $ECHO_N "(cached) $ECHO_C" >&6
38693else
fd5199d6
VZ
38694
38695 cat >conftest.$ac_ext <<_ACEOF
38696
38697 /* confdefs.h. */
6ebeb4c7
VZ
38698_ACEOF
38699cat confdefs.h >>conftest.$ac_ext
38700cat >>conftest.$ac_ext <<_ACEOF
38701/* end confdefs.h. */
6ebeb4c7 38702
6ebeb4c7 38703
fd5199d6 38704 $ac_includes_default
6ebeb4c7
VZ
38705
38706int
38707main ()
38708{
fd5199d6
VZ
38709
38710 #ifndef $wx_func
38711 &$wx_func;
38712 #endif
38713
38714
6ebeb4c7
VZ
38715 ;
38716 return 0;
38717}
fd5199d6 38718
6ebeb4c7
VZ
38719_ACEOF
38720rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38721if { (ac_try="$ac_link"
38722case "(($ac_try" in
38723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38724 *) ac_try_echo=$ac_try;;
38725esac
38726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38727 (eval "$ac_link") 2>conftest.er1
6ebeb4c7
VZ
38728 ac_status=$?
38729 grep -v '^ *+' conftest.er1 >conftest.err
38730 rm -f conftest.er1
38731 cat conftest.err >&5
38732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38733 (exit $ac_status); } && {
38734 test -z "$ac_c_werror_flag" ||
38735 test ! -s conftest.err
38736 } && test -s conftest$ac_exeext &&
38737 $as_test_x conftest$ac_exeext; then
fd5199d6 38738 eval wx_cv_func_$wx_func=yes
6ebeb4c7
VZ
38739else
38740 echo "$as_me: failed program was:" >&5
38741sed 's/^/| /' conftest.$ac_ext >&5
38742
47964710 38743 eval wx_cv_func_$wx_func=no
6ebeb4c7 38744fi
47964710
VS
38745
38746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6ebeb4c7 38747 conftest$ac_exeext conftest.$ac_ext
fd5199d6 38748
6ebeb4c7 38749fi
47964710
VS
38750ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38751 { echo "$as_me:$LINENO: result: $ac_res" >&5
38752echo "${ECHO_T}$ac_res" >&6; }
fd5199d6
VZ
38753
38754 if eval test \$wx_cv_func_$wx_func = yes
38755 then
38756 cat >>confdefs.h <<_ACEOF
1ad9ba14 38757#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
6ebeb4c7
VZ
38758_ACEOF
38759
fd5199d6
VZ
38760
38761 else
38762 :
38763
38764 fi
38765 done
6ebeb4c7
VZ
38766
38767fi
a848cd7e 38768
47964710 38769ac_ext=cpp
371bc2f7
VZ
38770ac_cpp='$CXXCPP $CPPFLAGS'
38771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38774
a848cd7e 38775
fd5199d6
VZ
38776 for wx_func in round
38777 do
47964710
VS
38778 { echo "$as_me:$LINENO: checking for $wx_func" >&5
38779echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38780if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
c2e9ada4
VZ
38781 echo $ECHO_N "(cached) $ECHO_C" >&6
38782else
fd5199d6
VZ
38783
38784 cat >conftest.$ac_ext <<_ACEOF
38785
38786 /* confdefs.h. */
c2e9ada4
VZ
38787_ACEOF
38788cat confdefs.h >>conftest.$ac_ext
38789cat >>conftest.$ac_ext <<_ACEOF
38790/* end confdefs.h. */
c2e9ada4 38791
fd5199d6
VZ
38792 #include <math.h>
38793 $ac_includes_default
c2e9ada4
VZ
38794
38795int
38796main ()
38797{
fd5199d6
VZ
38798
38799 #ifndef $wx_func
38800 &$wx_func;
38801 #endif
38802
38803
c2e9ada4
VZ
38804 ;
38805 return 0;
38806}
fd5199d6 38807
c2e9ada4
VZ
38808_ACEOF
38809rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38810if { (ac_try="$ac_link"
38811case "(($ac_try" in
38812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38813 *) ac_try_echo=$ac_try;;
38814esac
38815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38816 (eval "$ac_link") 2>conftest.er1
c2e9ada4
VZ
38817 ac_status=$?
38818 grep -v '^ *+' conftest.er1 >conftest.err
38819 rm -f conftest.er1
38820 cat conftest.err >&5
38821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38822 (exit $ac_status); } && {
38823 test -z "$ac_cxx_werror_flag" ||
38824 test ! -s conftest.err
38825 } && test -s conftest$ac_exeext &&
38826 $as_test_x conftest$ac_exeext; then
fd5199d6 38827 eval wx_cv_func_$wx_func=yes
c2e9ada4
VZ
38828else
38829 echo "$as_me: failed program was:" >&5
38830sed 's/^/| /' conftest.$ac_ext >&5
38831
47964710 38832 eval wx_cv_func_$wx_func=no
c2e9ada4 38833fi
47964710
VS
38834
38835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
c2e9ada4 38836 conftest$ac_exeext conftest.$ac_ext
c2e9ada4 38837
c2e9ada4 38838fi
47964710
VS
38839ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38840 { echo "$as_me:$LINENO: result: $ac_res" >&5
38841echo "${ECHO_T}$ac_res" >&6; }
c2e9ada4 38842
fd5199d6
VZ
38843 if eval test \$wx_cv_func_$wx_func = yes
38844 then
38845 cat >>confdefs.h <<_ACEOF
1ad9ba14 38846#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
c2e9ada4
VZ
38847_ACEOF
38848
38849
fd5199d6
VZ
38850 else
38851 :
c2e9ada4 38852
fd5199d6
VZ
38853 fi
38854 done
c2e9ada4 38855
371bc2f7
VZ
38856ac_ext=c
38857ac_cpp='$CPP $CPPFLAGS'
38858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38860ac_compiler_gnu=$ac_cv_c_compiler_gnu
38861
c2e9ada4 38862
a848cd7e
SC
38863if test "$TOOLKIT" != "MSW"; then
38864
38865
a848cd7e
SC
38866
38867
38868
47964710 38869# Check whether --with-libiconv-prefix was given.
a848cd7e 38870if test "${with_libiconv_prefix+set}" = set; then
47964710 38871 withval=$with_libiconv_prefix;
a848cd7e
SC
38872 for dir in `echo "$withval" | tr : ' '`; do
38873 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
38874 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
38875 done
38876
47964710 38877fi
faa5c14f 38878
47964710
VS
38879
38880 { echo "$as_me:$LINENO: checking for iconv" >&5
38881echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
a848cd7e
SC
38882if test "${am_cv_func_iconv+set}" = set; then
38883 echo $ECHO_N "(cached) $ECHO_C" >&6
38884else
38885
38886 am_cv_func_iconv="no, consider installing GNU libiconv"
38887 am_cv_lib_iconv=no
38888 cat >conftest.$ac_ext <<_ACEOF
38889/* confdefs.h. */
38890_ACEOF
38891cat confdefs.h >>conftest.$ac_ext
38892cat >>conftest.$ac_ext <<_ACEOF
38893/* end confdefs.h. */
38894#include <stdlib.h>
38895#include <iconv.h>
38896int
38897main ()
38898{
38899iconv_t cd = iconv_open("","");
38900 iconv(cd,NULL,NULL,NULL,NULL);
38901 iconv_close(cd);
38902 ;
38903 return 0;
38904}
38905_ACEOF
38906rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38907if { (ac_try="$ac_link"
38908case "(($ac_try" in
38909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38910 *) ac_try_echo=$ac_try;;
38911esac
38912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38913 (eval "$ac_link") 2>conftest.er1
a848cd7e 38914 ac_status=$?
ac1cb8d3
VS
38915 grep -v '^ *+' conftest.er1 >conftest.err
38916 rm -f conftest.er1
38917 cat conftest.err >&5
a848cd7e 38918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38919 (exit $ac_status); } && {
38920 test -z "$ac_c_werror_flag" ||
38921 test ! -s conftest.err
38922 } && test -s conftest$ac_exeext &&
38923 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
38924 am_cv_func_iconv=yes
38925else
38926 echo "$as_me: failed program was:" >&5
38927sed 's/^/| /' conftest.$ac_ext >&5
38928
47964710 38929
a848cd7e 38930fi
47964710
VS
38931
38932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 38933 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38934 if test "$am_cv_func_iconv" != yes; then
38935 am_save_LIBS="$LIBS"
38936 LIBS="$LIBS -liconv"
38937 cat >conftest.$ac_ext <<_ACEOF
38938/* confdefs.h. */
38939_ACEOF
38940cat confdefs.h >>conftest.$ac_ext
38941cat >>conftest.$ac_ext <<_ACEOF
38942/* end confdefs.h. */
38943#include <stdlib.h>
38944#include <iconv.h>
38945int
38946main ()
38947{
38948iconv_t cd = iconv_open("","");
38949 iconv(cd,NULL,NULL,NULL,NULL);
38950 iconv_close(cd);
38951 ;
38952 return 0;
38953}
38954_ACEOF
38955rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38956if { (ac_try="$ac_link"
38957case "(($ac_try" in
38958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38959 *) ac_try_echo=$ac_try;;
38960esac
38961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38962 (eval "$ac_link") 2>conftest.er1
a848cd7e 38963 ac_status=$?
ac1cb8d3
VS
38964 grep -v '^ *+' conftest.er1 >conftest.err
38965 rm -f conftest.er1
38966 cat conftest.err >&5
a848cd7e 38967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38968 (exit $ac_status); } && {
38969 test -z "$ac_c_werror_flag" ||
38970 test ! -s conftest.err
38971 } && test -s conftest$ac_exeext &&
38972 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
38973 am_cv_lib_iconv=yes
38974 am_cv_func_iconv=yes
38975else
38976 echo "$as_me: failed program was:" >&5
38977sed 's/^/| /' conftest.$ac_ext >&5
38978
47964710 38979
a848cd7e 38980fi
47964710
VS
38981
38982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 38983 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38984 LIBS="$am_save_LIBS"
38985 fi
38986
38987fi
47964710
VS
38988{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
38989echo "${ECHO_T}$am_cv_func_iconv" >&6; }
a848cd7e
SC
38990 if test "$am_cv_func_iconv" = yes; then
38991
38992cat >>confdefs.h <<\_ACEOF
38993#define HAVE_ICONV 1
38994_ACEOF
38995
47964710
VS
38996 { echo "$as_me:$LINENO: checking if iconv needs const" >&5
38997echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
a848cd7e
SC
38998if test "${wx_cv_func_iconv_const+set}" = set; then
38999 echo $ECHO_N "(cached) $ECHO_C" >&6
39000else
39001 cat >conftest.$ac_ext <<_ACEOF
39002/* confdefs.h. */
39003_ACEOF
39004cat confdefs.h >>conftest.$ac_ext
39005cat >>conftest.$ac_ext <<_ACEOF
39006/* end confdefs.h. */
39007
39008#include <stdlib.h>
39009#include <iconv.h>
39010extern
39011#ifdef __cplusplus
39012"C"
39013#endif
39014#if defined(__STDC__) || defined(__cplusplus)
39015size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
39016#else
39017size_t iconv();
39018#endif
39019
39020int
39021main ()
39022{
39023
39024 ;
39025 return 0;
39026}
39027_ACEOF
39028rm -f conftest.$ac_objext
47964710
VS
39029if { (ac_try="$ac_compile"
39030case "(($ac_try" in
39031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39032 *) ac_try_echo=$ac_try;;
39033esac
39034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39035 (eval "$ac_compile") 2>conftest.er1
a848cd7e 39036 ac_status=$?
ac1cb8d3
VS
39037 grep -v '^ *+' conftest.er1 >conftest.err
39038 rm -f conftest.er1
39039 cat conftest.err >&5
a848cd7e 39040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39041 (exit $ac_status); } && {
39042 test -z "$ac_c_werror_flag" ||
39043 test ! -s conftest.err
39044 } && test -s conftest.$ac_objext; then
a848cd7e
SC
39045 wx_cv_func_iconv_const="no"
39046else
39047 echo "$as_me: failed program was:" >&5
39048sed 's/^/| /' conftest.$ac_ext >&5
39049
47964710 39050 wx_cv_func_iconv_const="yes"
a848cd7e
SC
39051
39052fi
47964710
VS
39053
39054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39055
39056fi
47964710
VS
39057{ echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
39058echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
a848cd7e
SC
39059
39060 iconv_const=
39061 if test "x$wx_cv_func_iconv_const" = "xyes"; then
39062 iconv_const="const"
39063 fi
39064
39065
39066cat >>confdefs.h <<_ACEOF
39067#define ICONV_CONST $iconv_const
39068_ACEOF
39069
39070 fi
39071 LIBICONV=
39072 if test "$am_cv_lib_iconv" = yes; then
39073 LIBICONV="-liconv"
39074 fi
39075
39076
39077LIBS="$LIBICONV $LIBS"
a848cd7e
SC
39078
39079if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
39080
39081for ac_func in sigaction
39082do
39083as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
39084{ echo "$as_me:$LINENO: checking for $ac_func" >&5
39085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39086if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
39087 echo $ECHO_N "(cached) $ECHO_C" >&6
39088else
39089 cat >conftest.$ac_ext <<_ACEOF
39090/* confdefs.h. */
39091_ACEOF
39092cat confdefs.h >>conftest.$ac_ext
39093cat >>conftest.$ac_ext <<_ACEOF
39094/* end confdefs.h. */
ac1cb8d3
VS
39095/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39097#define $ac_func innocuous_$ac_func
39098
a848cd7e
SC
39099/* System header to define __stub macros and hopefully few prototypes,
39100 which can conflict with char $ac_func (); below.
39101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39102 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39103
a848cd7e
SC
39104#ifdef __STDC__
39105# include <limits.h>
39106#else
39107# include <assert.h>
39108#endif
ac1cb8d3
VS
39109
39110#undef $ac_func
39111
47964710
VS
39112/* Override any GCC internal prototype to avoid an error.
39113 Use char because int might match the return type of a GCC
39114 builtin and then its argument prototype would still apply. */
a848cd7e
SC
39115#ifdef __cplusplus
39116extern "C"
a848cd7e 39117#endif
a848cd7e
SC
39118char $ac_func ();
39119/* The GNU C library defines this for functions which it implements
39120 to always fail with ENOSYS. Some functions are actually named
39121 something starting with __ and the normal name is an alias. */
47964710 39122#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 39123choke me
a848cd7e
SC
39124#endif
39125
39126int
39127main ()
39128{
47964710 39129return $ac_func ();
a848cd7e
SC
39130 ;
39131 return 0;
39132}
39133_ACEOF
39134rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
39135if { (ac_try="$ac_link"
39136case "(($ac_try" in
39137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39138 *) ac_try_echo=$ac_try;;
39139esac
39140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39141 (eval "$ac_link") 2>conftest.er1
a848cd7e 39142 ac_status=$?
ac1cb8d3
VS
39143 grep -v '^ *+' conftest.er1 >conftest.err
39144 rm -f conftest.er1
39145 cat conftest.err >&5
a848cd7e 39146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39147 (exit $ac_status); } && {
39148 test -z "$ac_c_werror_flag" ||
39149 test ! -s conftest.err
39150 } && test -s conftest$ac_exeext &&
39151 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
39152 eval "$as_ac_var=yes"
39153else
39154 echo "$as_me: failed program was:" >&5
39155sed 's/^/| /' conftest.$ac_ext >&5
39156
47964710 39157 eval "$as_ac_var=no"
a848cd7e 39158fi
47964710
VS
39159
39160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 39161 conftest$ac_exeext conftest.$ac_ext
a848cd7e 39162fi
47964710
VS
39163ac_res=`eval echo '${'$as_ac_var'}'`
39164 { echo "$as_me:$LINENO: result: $ac_res" >&5
39165echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
39166if test `eval echo '${'$as_ac_var'}'` = yes; then
39167 cat >>confdefs.h <<_ACEOF
39168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39169_ACEOF
39170
39171fi
39172done
39173
39174
39175 if test "$ac_cv_func_sigaction" = "no"; then
39176 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
39177echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
39178 wxUSE_ON_FATAL_EXCEPTION=no
39179 fi
39180
39181 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
47964710
VS
39182 { echo "$as_me:$LINENO: checking for sa_handler type" >&5
39183echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
a848cd7e
SC
39184if test "${wx_cv_type_sa_handler+set}" = set; then
39185 echo $ECHO_N "(cached) $ECHO_C" >&6
39186else
39187
47964710 39188 ac_ext=cpp
9b8888f9
VZ
39189ac_cpp='$CXXCPP $CPPFLAGS'
39190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39193
a848cd7e
SC
39194 cat >conftest.$ac_ext <<_ACEOF
39195/* confdefs.h. */
39196_ACEOF
39197cat confdefs.h >>conftest.$ac_ext
39198cat >>conftest.$ac_ext <<_ACEOF
39199/* end confdefs.h. */
39200#include <signal.h>
39201int
39202main ()
39203{
39204
39205 extern void testSigHandler(int);
39206
39207 struct sigaction sa;
39208 sa.sa_handler = testSigHandler;
39209
39210 ;
39211 return 0;
39212}
39213_ACEOF
39214rm -f conftest.$ac_objext
47964710
VS
39215if { (ac_try="$ac_compile"
39216case "(($ac_try" in
39217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39218 *) ac_try_echo=$ac_try;;
39219esac
39220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39221 (eval "$ac_compile") 2>conftest.er1
a848cd7e 39222 ac_status=$?
ac1cb8d3
VS
39223 grep -v '^ *+' conftest.er1 >conftest.err
39224 rm -f conftest.er1
39225 cat conftest.err >&5
a848cd7e 39226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39227 (exit $ac_status); } && {
39228 test -z "$ac_cxx_werror_flag" ||
39229 test ! -s conftest.err
39230 } && test -s conftest.$ac_objext; then
a848cd7e
SC
39231
39232 wx_cv_type_sa_handler=int
39233
39234else
39235 echo "$as_me: failed program was:" >&5
39236sed 's/^/| /' conftest.$ac_ext >&5
39237
39238
39239 wx_cv_type_sa_handler=void
39240
39241fi
47964710
VS
39242
39243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
39244 ac_ext=c
39245ac_cpp='$CPP $CPPFLAGS'
39246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39248ac_compiler_gnu=$ac_cv_c_compiler_gnu
39249
a848cd7e
SC
39250
39251fi
47964710
VS
39252{ echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
39253echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
a848cd7e 39254
a848cd7e
SC
39255 cat >>confdefs.h <<_ACEOF
39256#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
39257_ACEOF
39258
39259 fi
39260fi
39261
eaff0f0d 39262if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
47964710
VS
39263 { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
39264echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
eaff0f0d
VZ
39265if test "${wx_cv_func_backtrace+set}" = set; then
39266 echo $ECHO_N "(cached) $ECHO_C" >&6
39267else
39268
47964710 39269 ac_ext=cpp
9b8888f9
VZ
39270ac_cpp='$CXXCPP $CPPFLAGS'
39271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39274
eaff0f0d
VZ
39275 cat >conftest.$ac_ext <<_ACEOF
39276/* confdefs.h. */
39277_ACEOF
39278cat confdefs.h >>conftest.$ac_ext
39279cat >>conftest.$ac_ext <<_ACEOF
39280/* end confdefs.h. */
39281#include <execinfo.h>
39282int
39283main ()
39284{
39285
39286 void *trace[1];
39287 char **messages;
39288
39289 backtrace(trace, 1);
39290 messages = backtrace_symbols(trace, 1);
39291
39292 ;
39293 return 0;
39294}
39295_ACEOF
39296rm -f conftest.$ac_objext
47964710
VS
39297if { (ac_try="$ac_compile"
39298case "(($ac_try" in
39299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39300 *) ac_try_echo=$ac_try;;
39301esac
39302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39303 (eval "$ac_compile") 2>conftest.er1
eaff0f0d
VZ
39304 ac_status=$?
39305 grep -v '^ *+' conftest.er1 >conftest.err
39306 rm -f conftest.er1
39307 cat conftest.err >&5
39308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39309 (exit $ac_status); } && {
39310 test -z "$ac_cxx_werror_flag" ||
39311 test ! -s conftest.err
39312 } && test -s conftest.$ac_objext; then
eaff0f0d
VZ
39313 wx_cv_func_backtrace=yes
39314else
39315 echo "$as_me: failed program was:" >&5
39316sed 's/^/| /' conftest.$ac_ext >&5
39317
47964710 39318 wx_cv_func_backtrace=no
eaff0f0d
VZ
39319
39320fi
47964710
VS
39321
39322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
39323 ac_ext=c
39324ac_cpp='$CPP $CPPFLAGS'
39325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39327ac_compiler_gnu=$ac_cv_c_compiler_gnu
39328
eaff0f0d
VZ
39329
39330
39331fi
47964710
VS
39332{ echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
39333echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
eaff0f0d
VZ
39334
39335
39336 if test "$wx_cv_func_backtrace" = "no"; then
39337 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
39338echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
39339 wxUSE_STACKWALKER=no
39340 else
47964710
VS
39341 { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
39342echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
eaff0f0d
VZ
39343if test "${wx_cv_func_cxa_demangle+set}" = set; then
39344 echo $ECHO_N "(cached) $ECHO_C" >&6
39345else
39346
47964710 39347 ac_ext=cpp
9b8888f9
VZ
39348ac_cpp='$CXXCPP $CPPFLAGS'
39349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39352
eaff0f0d
VZ
39353 cat >conftest.$ac_ext <<_ACEOF
39354/* confdefs.h. */
39355_ACEOF
39356cat confdefs.h >>conftest.$ac_ext
39357cat >>conftest.$ac_ext <<_ACEOF
39358/* end confdefs.h. */
39359#include <cxxabi.h>
39360int
39361main ()
39362{
39363
39364 int rc;
39365 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
39366
39367 ;
39368 return 0;
39369}
39370_ACEOF
dfe0c803 39371rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
39372if { (ac_try="$ac_link"
39373case "(($ac_try" in
39374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39375 *) ac_try_echo=$ac_try;;
39376esac
39377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39378 (eval "$ac_link") 2>conftest.er1
eaff0f0d
VZ
39379 ac_status=$?
39380 grep -v '^ *+' conftest.er1 >conftest.err
39381 rm -f conftest.er1
39382 cat conftest.err >&5
39383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39384 (exit $ac_status); } && {
39385 test -z "$ac_cxx_werror_flag" ||
39386 test ! -s conftest.err
39387 } && test -s conftest$ac_exeext &&
39388 $as_test_x conftest$ac_exeext; then
eaff0f0d
VZ
39389 wx_cv_func_cxa_demangle=yes
39390else
39391 echo "$as_me: failed program was:" >&5
39392sed 's/^/| /' conftest.$ac_ext >&5
39393
47964710 39394 wx_cv_func_cxa_demangle=no
eaff0f0d
VZ
39395
39396fi
47964710
VS
39397
39398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
dfe0c803 39399 conftest$ac_exeext conftest.$ac_ext
9b8888f9
VZ
39400 ac_ext=c
39401ac_cpp='$CPP $CPPFLAGS'
39402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39404ac_compiler_gnu=$ac_cv_c_compiler_gnu
39405
eaff0f0d
VZ
39406
39407
39408fi
47964710
VS
39409{ echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
39410echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
eaff0f0d
VZ
39411
39412 if test "$wx_cv_func_cxa_demangle" = "yes"; then
39413 cat >>confdefs.h <<\_ACEOF
39414#define HAVE_CXA_DEMANGLE 1
39415_ACEOF
39416
39417 fi
39418 fi
eaff0f0d
VZ
39419fi
39420
898beab1
DE
39421if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
39422 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
39423echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
39424 wxUSE_STACKWALKER=no
39425fi
39426
39427
a848cd7e
SC
39428
39429
39430for ac_func in mkstemp mktemp
39431do
39432as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
39433{ echo "$as_me:$LINENO: checking for $ac_func" >&5
39434echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39435if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
39436 echo $ECHO_N "(cached) $ECHO_C" >&6
39437else
39438 cat >conftest.$ac_ext <<_ACEOF
39439/* confdefs.h. */
39440_ACEOF
39441cat confdefs.h >>conftest.$ac_ext
39442cat >>conftest.$ac_ext <<_ACEOF
39443/* end confdefs.h. */
ac1cb8d3
VS
39444/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39446#define $ac_func innocuous_$ac_func
39447
a848cd7e
SC
39448/* System header to define __stub macros and hopefully few prototypes,
39449 which can conflict with char $ac_func (); below.
39450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39451 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39452
a848cd7e
SC
39453#ifdef __STDC__
39454# include <limits.h>
39455#else
39456# include <assert.h>
39457#endif
ac1cb8d3
VS
39458
39459#undef $ac_func
39460
47964710
VS
39461/* Override any GCC internal prototype to avoid an error.
39462 Use char because int might match the return type of a GCC
39463 builtin and then its argument prototype would still apply. */
a848cd7e
SC
39464#ifdef __cplusplus
39465extern "C"
a848cd7e 39466#endif
a848cd7e
SC
39467char $ac_func ();
39468/* The GNU C library defines this for functions which it implements
39469 to always fail with ENOSYS. Some functions are actually named
39470 something starting with __ and the normal name is an alias. */
47964710 39471#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 39472choke me
a848cd7e
SC
39473#endif
39474
39475int
39476main ()
39477{
47964710 39478return $ac_func ();
a848cd7e
SC
39479 ;
39480 return 0;
39481}
39482_ACEOF
39483rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
39484if { (ac_try="$ac_link"
39485case "(($ac_try" in
39486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39487 *) ac_try_echo=$ac_try;;
39488esac
39489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39490 (eval "$ac_link") 2>conftest.er1
a848cd7e 39491 ac_status=$?
ac1cb8d3
VS
39492 grep -v '^ *+' conftest.er1 >conftest.err
39493 rm -f conftest.er1
39494 cat conftest.err >&5
a848cd7e 39495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39496 (exit $ac_status); } && {
39497 test -z "$ac_c_werror_flag" ||
39498 test ! -s conftest.err
39499 } && test -s conftest$ac_exeext &&
39500 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
39501 eval "$as_ac_var=yes"
39502else
39503 echo "$as_me: failed program was:" >&5
39504sed 's/^/| /' conftest.$ac_ext >&5
39505
47964710 39506 eval "$as_ac_var=no"
a848cd7e 39507fi
47964710
VS
39508
39509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 39510 conftest$ac_exeext conftest.$ac_ext
a848cd7e 39511fi
47964710
VS
39512ac_res=`eval echo '${'$as_ac_var'}'`
39513 { echo "$as_me:$LINENO: result: $ac_res" >&5
39514echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
39515if test `eval echo '${'$as_ac_var'}'` = yes; then
39516 cat >>confdefs.h <<_ACEOF
39517#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39518_ACEOF
39519 break
39520fi
39521done
39522
39523
47964710
VS
39524{ echo "$as_me:$LINENO: checking for statfs" >&5
39525echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
a848cd7e
SC
39526if test "${wx_cv_func_statfs+set}" = set; then
39527 echo $ECHO_N "(cached) $ECHO_C" >&6
39528else
39529 cat >conftest.$ac_ext <<_ACEOF
39530/* confdefs.h. */
39531_ACEOF
39532cat confdefs.h >>conftest.$ac_ext
39533cat >>conftest.$ac_ext <<_ACEOF
39534/* end confdefs.h. */
39535
39536 #if defined(__BSD__)
84ae7ca4
VZ
39537 #include <sys/param.h>
39538 #include <sys/mount.h>
a848cd7e 39539 #else
84ae7ca4 39540 #include <sys/vfs.h>
a848cd7e
SC
39541 #endif
39542
39543int
39544main ()
39545{
39546
39547 long l;
39548 struct statfs fs;
39549 statfs("/", &fs);
39550 l = fs.f_bsize;
39551 l += fs.f_blocks;
39552 l += fs.f_bavail;
39553
39554 ;
39555 return 0;
39556}
39557_ACEOF
39558rm -f conftest.$ac_objext
47964710
VS
39559if { (ac_try="$ac_compile"
39560case "(($ac_try" in
39561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39562 *) ac_try_echo=$ac_try;;
39563esac
39564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39565 (eval "$ac_compile") 2>conftest.er1
a848cd7e 39566 ac_status=$?
ac1cb8d3
VS
39567 grep -v '^ *+' conftest.er1 >conftest.err
39568 rm -f conftest.er1
39569 cat conftest.err >&5
a848cd7e 39570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39571 (exit $ac_status); } && {
39572 test -z "$ac_c_werror_flag" ||
39573 test ! -s conftest.err
39574 } && test -s conftest.$ac_objext; then
84ae7ca4 39575 wx_cv_func_statfs=yes
a848cd7e
SC
39576else
39577 echo "$as_me: failed program was:" >&5
39578sed 's/^/| /' conftest.$ac_ext >&5
39579
47964710 39580 wx_cv_func_statfs=no
a848cd7e
SC
39581
39582fi
47964710
VS
39583
39584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39585
39586fi
47964710
VS
39587{ echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
39588echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
a848cd7e
SC
39589
39590if test "$wx_cv_func_statfs" = "yes"; then
47964710
VS
39591 { echo "$as_me:$LINENO: checking for statfs declaration" >&5
39592echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
84ae7ca4
VZ
39593if test "${wx_cv_func_statfs_decl+set}" = set; then
39594 echo $ECHO_N "(cached) $ECHO_C" >&6
39595else
47964710 39596 ac_ext=cpp
9b8888f9
VZ
39597ac_cpp='$CXXCPP $CPPFLAGS'
39598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39601
39602 cat >conftest.$ac_ext <<_ACEOF
0683aca6
VZ
39603/* confdefs.h. */
39604_ACEOF
39605cat confdefs.h >>conftest.$ac_ext
39606cat >>conftest.$ac_ext <<_ACEOF
39607/* end confdefs.h. */
84ae7ca4 39608
0683aca6
VZ
39609 #if defined(__BSD__)
39610 #include <sys/param.h>
39611 #include <sys/mount.h>
39612 #else
39613 #include <sys/vfs.h>
39614 #endif
39615
39616int
39617main ()
39618{
39619
39620 struct statfs fs;
39621 statfs("", &fs);
39622
39623 ;
39624 return 0;
39625}
39626_ACEOF
39627rm -f conftest.$ac_objext
47964710
VS
39628if { (ac_try="$ac_compile"
39629case "(($ac_try" in
39630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39631 *) ac_try_echo=$ac_try;;
39632esac
39633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39634 (eval "$ac_compile") 2>conftest.er1
0683aca6
VZ
39635 ac_status=$?
39636 grep -v '^ *+' conftest.er1 >conftest.err
39637 rm -f conftest.er1
39638 cat conftest.err >&5
39639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39640 (exit $ac_status); } && {
39641 test -z "$ac_cxx_werror_flag" ||
39642 test ! -s conftest.err
39643 } && test -s conftest.$ac_objext; then
0683aca6
VZ
39644 wx_cv_func_statfs_decl=yes
39645else
39646 echo "$as_me: failed program was:" >&5
39647sed 's/^/| /' conftest.$ac_ext >&5
39648
47964710 39649 wx_cv_func_statfs_decl=no
0683aca6
VZ
39650
39651fi
47964710
VS
39652
39653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
39654 ac_ext=c
39655ac_cpp='$CPP $CPPFLAGS'
39656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39658ac_compiler_gnu=$ac_cv_c_compiler_gnu
39659
84ae7ca4
VZ
39660
39661fi
47964710
VS
39662{ echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
39663echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
84ae7ca4
VZ
39664
39665 if test "$wx_cv_func_statfs_decl" = "yes"; then
39666 cat >>confdefs.h <<\_ACEOF
39667#define HAVE_STATFS_DECL 1
39668_ACEOF
39669
39670 fi
39671
a848cd7e
SC
39672 wx_cv_type_statvfs_t="struct statfs"
39673 cat >>confdefs.h <<\_ACEOF
39674#define HAVE_STATFS 1
39675_ACEOF
39676
39677else
47964710
VS
39678 { echo "$as_me:$LINENO: checking for statvfs" >&5
39679echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
a848cd7e
SC
39680if test "${wx_cv_func_statvfs+set}" = set; then
39681 echo $ECHO_N "(cached) $ECHO_C" >&6
39682else
39683 cat >conftest.$ac_ext <<_ACEOF
39684/* confdefs.h. */
39685_ACEOF
39686cat confdefs.h >>conftest.$ac_ext
39687cat >>conftest.$ac_ext <<_ACEOF
39688/* end confdefs.h. */
39689
39690 #include <stddef.h>
39691 #include <sys/statvfs.h>
39692
39693int
39694main ()
39695{
39696
39697 statvfs("/", NULL);
39698
39699 ;
39700 return 0;
39701}
39702_ACEOF
39703rm -f conftest.$ac_objext
47964710
VS
39704if { (ac_try="$ac_compile"
39705case "(($ac_try" in
39706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39707 *) ac_try_echo=$ac_try;;
39708esac
39709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39710 (eval "$ac_compile") 2>conftest.er1
a848cd7e 39711 ac_status=$?
ac1cb8d3
VS
39712 grep -v '^ *+' conftest.er1 >conftest.err
39713 rm -f conftest.er1
39714 cat conftest.err >&5
a848cd7e 39715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39716 (exit $ac_status); } && {
39717 test -z "$ac_c_werror_flag" ||
39718 test ! -s conftest.err
39719 } && test -s conftest.$ac_objext; then
a848cd7e
SC
39720 wx_cv_func_statvfs=yes
39721else
39722 echo "$as_me: failed program was:" >&5
39723sed 's/^/| /' conftest.$ac_ext >&5
39724
47964710 39725 wx_cv_func_statvfs=no
a848cd7e
SC
39726
39727fi
47964710
VS
39728
39729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39730
39731fi
47964710
VS
39732{ echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
39733echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
a848cd7e
SC
39734
39735 if test "$wx_cv_func_statvfs" = "yes"; then
47964710
VS
39736 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
39737echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
a848cd7e
SC
39738if test "${wx_cv_type_statvfs_t+set}" = set; then
39739 echo $ECHO_N "(cached) $ECHO_C" >&6
39740else
47964710 39741 ac_ext=cpp
9b8888f9
VZ
39742ac_cpp='$CXXCPP $CPPFLAGS'
39743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39746
39747 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
39748/* confdefs.h. */
39749_ACEOF
39750cat confdefs.h >>conftest.$ac_ext
39751cat >>conftest.$ac_ext <<_ACEOF
39752/* end confdefs.h. */
39753
39754 #include <sys/statvfs.h>
39755
39756int
39757main ()
39758{
39759
39760 long l;
39761 statvfs_t fs;
39762 statvfs("/", &fs);
39763 l = fs.f_bsize;
39764 l += fs.f_blocks;
39765 l += fs.f_bavail;
39766
39767 ;
39768 return 0;
39769}
39770_ACEOF
39771rm -f conftest.$ac_objext
47964710
VS
39772if { (ac_try="$ac_compile"
39773case "(($ac_try" in
39774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39775 *) ac_try_echo=$ac_try;;
39776esac
39777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39778 (eval "$ac_compile") 2>conftest.er1
a848cd7e 39779 ac_status=$?
ac1cb8d3
VS
39780 grep -v '^ *+' conftest.er1 >conftest.err
39781 rm -f conftest.er1
39782 cat conftest.err >&5
a848cd7e 39783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39784 (exit $ac_status); } && {
39785 test -z "$ac_cxx_werror_flag" ||
39786 test ! -s conftest.err
39787 } && test -s conftest.$ac_objext; then
a848cd7e
SC
39788 wx_cv_type_statvfs_t=statvfs_t
39789else
39790 echo "$as_me: failed program was:" >&5
39791sed 's/^/| /' conftest.$ac_ext >&5
39792
39793
39794 cat >conftest.$ac_ext <<_ACEOF
39795/* confdefs.h. */
39796_ACEOF
39797cat confdefs.h >>conftest.$ac_ext
39798cat >>conftest.$ac_ext <<_ACEOF
39799/* end confdefs.h. */
39800
39801 #include <sys/statvfs.h>
39802
39803int
39804main ()
39805{
39806
39807 long l;
39808 struct statvfs fs;
39809 statvfs("/", &fs);
39810 l = fs.f_bsize;
39811 l += fs.f_blocks;
39812 l += fs.f_bavail;
39813
39814 ;
39815 return 0;
39816}
39817_ACEOF
39818rm -f conftest.$ac_objext
47964710
VS
39819if { (ac_try="$ac_compile"
39820case "(($ac_try" in
39821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39822 *) ac_try_echo=$ac_try;;
39823esac
39824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39825 (eval "$ac_compile") 2>conftest.er1
a848cd7e 39826 ac_status=$?
ac1cb8d3
VS
39827 grep -v '^ *+' conftest.er1 >conftest.err
39828 rm -f conftest.er1
39829 cat conftest.err >&5
a848cd7e 39830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39831 (exit $ac_status); } && {
39832 test -z "$ac_cxx_werror_flag" ||
39833 test ! -s conftest.err
39834 } && test -s conftest.$ac_objext; then
a848cd7e
SC
39835 wx_cv_type_statvfs_t="struct statvfs"
39836else
39837 echo "$as_me: failed program was:" >&5
39838sed 's/^/| /' conftest.$ac_ext >&5
39839
47964710 39840 wx_cv_type_statvfs_t="unknown"
a848cd7e
SC
39841
39842fi
47964710
VS
39843
39844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39845
39846
39847fi
47964710
VS
39848
39849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
39850 ac_ext=c
39851ac_cpp='$CPP $CPPFLAGS'
39852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39854ac_compiler_gnu=$ac_cv_c_compiler_gnu
39855
a848cd7e
SC
39856
39857fi
47964710
VS
39858{ echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
39859echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
a848cd7e 39860
a848cd7e
SC
39861 if test "$wx_cv_type_statvfs_t" != "unknown"; then
39862 cat >>confdefs.h <<\_ACEOF
39863#define HAVE_STATVFS 1
39864_ACEOF
39865
39866 fi
39867 else
39868 wx_cv_type_statvfs_t="unknown"
39869 fi
39870fi
39871
39872if test "$wx_cv_type_statvfs_t" != "unknown"; then
39873 cat >>confdefs.h <<_ACEOF
39874#define WX_STATFS_T $wx_cv_type_statvfs_t
39875_ACEOF
39876
39877else
39878 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
39879echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
39880fi
39881
39882if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39883
39884
39885for ac_func in fcntl flock
39886do
39887as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
39888{ echo "$as_me:$LINENO: checking for $ac_func" >&5
39889echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39890if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
39891 echo $ECHO_N "(cached) $ECHO_C" >&6
39892else
39893 cat >conftest.$ac_ext <<_ACEOF
39894/* confdefs.h. */
39895_ACEOF
39896cat confdefs.h >>conftest.$ac_ext
39897cat >>conftest.$ac_ext <<_ACEOF
39898/* end confdefs.h. */
ac1cb8d3
VS
39899/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39901#define $ac_func innocuous_$ac_func
39902
a848cd7e
SC
39903/* System header to define __stub macros and hopefully few prototypes,
39904 which can conflict with char $ac_func (); below.
39905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39906 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39907
a848cd7e
SC
39908#ifdef __STDC__
39909# include <limits.h>
39910#else
39911# include <assert.h>
39912#endif
ac1cb8d3
VS
39913
39914#undef $ac_func
39915
47964710
VS
39916/* Override any GCC internal prototype to avoid an error.
39917 Use char because int might match the return type of a GCC
39918 builtin and then its argument prototype would still apply. */
a848cd7e
SC
39919#ifdef __cplusplus
39920extern "C"
a848cd7e 39921#endif
a848cd7e
SC
39922char $ac_func ();
39923/* The GNU C library defines this for functions which it implements
39924 to always fail with ENOSYS. Some functions are actually named
39925 something starting with __ and the normal name is an alias. */
47964710 39926#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 39927choke me
a848cd7e
SC
39928#endif
39929
39930int
39931main ()
39932{
47964710 39933return $ac_func ();
a848cd7e
SC
39934 ;
39935 return 0;
39936}
39937_ACEOF
39938rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
39939if { (ac_try="$ac_link"
39940case "(($ac_try" in
39941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39942 *) ac_try_echo=$ac_try;;
39943esac
39944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39945 (eval "$ac_link") 2>conftest.er1
a848cd7e 39946 ac_status=$?
ac1cb8d3
VS
39947 grep -v '^ *+' conftest.er1 >conftest.err
39948 rm -f conftest.er1
39949 cat conftest.err >&5
a848cd7e 39950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39951 (exit $ac_status); } && {
39952 test -z "$ac_c_werror_flag" ||
39953 test ! -s conftest.err
39954 } && test -s conftest$ac_exeext &&
39955 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
39956 eval "$as_ac_var=yes"
39957else
39958 echo "$as_me: failed program was:" >&5
39959sed 's/^/| /' conftest.$ac_ext >&5
39960
47964710 39961 eval "$as_ac_var=no"
a848cd7e 39962fi
47964710
VS
39963
39964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 39965 conftest$ac_exeext conftest.$ac_ext
a848cd7e 39966fi
47964710
VS
39967ac_res=`eval echo '${'$as_ac_var'}'`
39968 { echo "$as_me:$LINENO: result: $ac_res" >&5
39969echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
39970if test `eval echo '${'$as_ac_var'}'` = yes; then
39971 cat >>confdefs.h <<_ACEOF
39972#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39973_ACEOF
39974 break
39975fi
39976done
39977
39978
39979 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
39980 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
39981echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
39982 wxUSE_SNGLINST_CHECKER=no
39983 fi
39984fi
39985
39986
7fd3acaf 39987
c225b981 39988for ac_func in setenv putenv
7fd3acaf
RD
39989do
39990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
39991{ echo "$as_me:$LINENO: checking for $ac_func" >&5
39992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39993if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7fd3acaf
RD
39994 echo $ECHO_N "(cached) $ECHO_C" >&6
39995else
39996 cat >conftest.$ac_ext <<_ACEOF
39997/* confdefs.h. */
39998_ACEOF
39999cat confdefs.h >>conftest.$ac_ext
40000cat >>conftest.$ac_ext <<_ACEOF
40001/* end confdefs.h. */
40002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40004#define $ac_func innocuous_$ac_func
40005
40006/* System header to define __stub macros and hopefully few prototypes,
40007 which can conflict with char $ac_func (); below.
40008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40009 <limits.h> exists even on freestanding compilers. */
40010
40011#ifdef __STDC__
40012# include <limits.h>
f321ab7f 40013#else
7fd3acaf 40014# include <assert.h>
f321ab7f 40015#endif
7fd3acaf
RD
40016
40017#undef $ac_func
40018
47964710
VS
40019/* Override any GCC internal prototype to avoid an error.
40020 Use char because int might match the return type of a GCC
40021 builtin and then its argument prototype would still apply. */
f321ab7f 40022#ifdef __cplusplus
7fd3acaf
RD
40023extern "C"
40024#endif
40025char $ac_func ();
40026/* The GNU C library defines this for functions which it implements
40027 to always fail with ENOSYS. Some functions are actually named
40028 something starting with __ and the normal name is an alias. */
47964710 40029#if defined __stub_$ac_func || defined __stub___$ac_func
7fd3acaf 40030choke me
a848cd7e
SC
40031#endif
40032
40033int
40034main ()
40035{
47964710 40036return $ac_func ();
a848cd7e
SC
40037 ;
40038 return 0;
40039}
40040_ACEOF
40041rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40042if { (ac_try="$ac_link"
40043case "(($ac_try" in
40044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40045 *) ac_try_echo=$ac_try;;
40046esac
40047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40048 (eval "$ac_link") 2>conftest.er1
a848cd7e 40049 ac_status=$?
ac1cb8d3
VS
40050 grep -v '^ *+' conftest.er1 >conftest.err
40051 rm -f conftest.er1
40052 cat conftest.err >&5
a848cd7e 40053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40054 (exit $ac_status); } && {
40055 test -z "$ac_c_werror_flag" ||
40056 test ! -s conftest.err
40057 } && test -s conftest$ac_exeext &&
40058 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
40059 eval "$as_ac_var=yes"
40060else
40061 echo "$as_me: failed program was:" >&5
40062sed 's/^/| /' conftest.$ac_ext >&5
40063
47964710 40064 eval "$as_ac_var=no"
a848cd7e 40065fi
47964710
VS
40066
40067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40068 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40069fi
47964710
VS
40070ac_res=`eval echo '${'$as_ac_var'}'`
40071 { echo "$as_me:$LINENO: result: $ac_res" >&5
40072echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
40073if test `eval echo '${'$as_ac_var'}'` = yes; then
40074 cat >>confdefs.h <<_ACEOF
40075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40076_ACEOF
40077 break
40078fi
40079done
40080
a1353ea4
VZ
40081if test "$ac_cv_func_setenv" = "yes"; then
40082
40083for ac_func in unsetenv
40084do
40085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
40086{ echo "$as_me:$LINENO: checking for $ac_func" >&5
40087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40088if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a1353ea4
VZ
40089 echo $ECHO_N "(cached) $ECHO_C" >&6
40090else
40091 cat >conftest.$ac_ext <<_ACEOF
40092/* confdefs.h. */
40093_ACEOF
40094cat confdefs.h >>conftest.$ac_ext
40095cat >>conftest.$ac_ext <<_ACEOF
40096/* end confdefs.h. */
40097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40099#define $ac_func innocuous_$ac_func
40100
40101/* System header to define __stub macros and hopefully few prototypes,
40102 which can conflict with char $ac_func (); below.
40103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40104 <limits.h> exists even on freestanding compilers. */
40105
40106#ifdef __STDC__
40107# include <limits.h>
40108#else
40109# include <assert.h>
40110#endif
40111
40112#undef $ac_func
40113
47964710
VS
40114/* Override any GCC internal prototype to avoid an error.
40115 Use char because int might match the return type of a GCC
40116 builtin and then its argument prototype would still apply. */
a1353ea4
VZ
40117#ifdef __cplusplus
40118extern "C"
40119#endif
40120char $ac_func ();
40121/* The GNU C library defines this for functions which it implements
40122 to always fail with ENOSYS. Some functions are actually named
40123 something starting with __ and the normal name is an alias. */
47964710 40124#if defined __stub_$ac_func || defined __stub___$ac_func
a1353ea4
VZ
40125choke me
40126#endif
40127
40128int
40129main ()
40130{
47964710 40131return $ac_func ();
a1353ea4
VZ
40132 ;
40133 return 0;
40134}
40135_ACEOF
40136rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40137if { (ac_try="$ac_link"
40138case "(($ac_try" in
40139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40140 *) ac_try_echo=$ac_try;;
40141esac
40142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40143 (eval "$ac_link") 2>conftest.er1
a1353ea4
VZ
40144 ac_status=$?
40145 grep -v '^ *+' conftest.er1 >conftest.err
40146 rm -f conftest.er1
40147 cat conftest.err >&5
40148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40149 (exit $ac_status); } && {
40150 test -z "$ac_c_werror_flag" ||
40151 test ! -s conftest.err
40152 } && test -s conftest$ac_exeext &&
40153 $as_test_x conftest$ac_exeext; then
a1353ea4
VZ
40154 eval "$as_ac_var=yes"
40155else
40156 echo "$as_me: failed program was:" >&5
40157sed 's/^/| /' conftest.$ac_ext >&5
40158
47964710 40159 eval "$as_ac_var=no"
a1353ea4 40160fi
47964710
VS
40161
40162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a1353ea4
VZ
40163 conftest$ac_exeext conftest.$ac_ext
40164fi
47964710
VS
40165ac_res=`eval echo '${'$as_ac_var'}'`
40166 { echo "$as_me:$LINENO: result: $ac_res" >&5
40167echo "${ECHO_T}$ac_res" >&6; }
a1353ea4
VZ
40168if test `eval echo '${'$as_ac_var'}'` = yes; then
40169 cat >>confdefs.h <<_ACEOF
40170#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40171_ACEOF
40172
40173fi
40174done
40175
40176fi
a848cd7e
SC
40177
40178HAVE_SOME_SLEEP_FUNC=0
40179if test "$USE_BEOS" = 1; then
40180 cat >>confdefs.h <<\_ACEOF
40181#define HAVE_SLEEP 1
40182_ACEOF
40183
40184 HAVE_SOME_SLEEP_FUNC=1
40185fi
40186
40187if test "$USE_DARWIN" = 1; then
40188 cat >>confdefs.h <<\_ACEOF
40189#define HAVE_USLEEP 1
40190_ACEOF
40191
40192 HAVE_SOME_SLEEP_FUNC=1
40193fi
40194
40195if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
40196 POSIX4_LINK=
40197
40198for ac_func in nanosleep
40199do
40200as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
40201{ echo "$as_me:$LINENO: checking for $ac_func" >&5
40202echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40203if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
40204 echo $ECHO_N "(cached) $ECHO_C" >&6
40205else
40206 cat >conftest.$ac_ext <<_ACEOF
40207/* confdefs.h. */
40208_ACEOF
40209cat confdefs.h >>conftest.$ac_ext
40210cat >>conftest.$ac_ext <<_ACEOF
40211/* end confdefs.h. */
ac1cb8d3
VS
40212/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40214#define $ac_func innocuous_$ac_func
40215
a848cd7e
SC
40216/* System header to define __stub macros and hopefully few prototypes,
40217 which can conflict with char $ac_func (); below.
40218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40219 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40220
a848cd7e
SC
40221#ifdef __STDC__
40222# include <limits.h>
40223#else
40224# include <assert.h>
40225#endif
ac1cb8d3
VS
40226
40227#undef $ac_func
40228
47964710
VS
40229/* Override any GCC internal prototype to avoid an error.
40230 Use char because int might match the return type of a GCC
40231 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40232#ifdef __cplusplus
40233extern "C"
a848cd7e 40234#endif
a848cd7e
SC
40235char $ac_func ();
40236/* The GNU C library defines this for functions which it implements
40237 to always fail with ENOSYS. Some functions are actually named
40238 something starting with __ and the normal name is an alias. */
47964710 40239#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 40240choke me
a848cd7e
SC
40241#endif
40242
40243int
40244main ()
40245{
47964710 40246return $ac_func ();
a848cd7e
SC
40247 ;
40248 return 0;
40249}
40250_ACEOF
40251rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40252if { (ac_try="$ac_link"
40253case "(($ac_try" in
40254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40255 *) ac_try_echo=$ac_try;;
40256esac
40257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40258 (eval "$ac_link") 2>conftest.er1
a848cd7e 40259 ac_status=$?
ac1cb8d3
VS
40260 grep -v '^ *+' conftest.er1 >conftest.err
40261 rm -f conftest.er1
40262 cat conftest.err >&5
a848cd7e 40263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40264 (exit $ac_status); } && {
40265 test -z "$ac_c_werror_flag" ||
40266 test ! -s conftest.err
40267 } && test -s conftest$ac_exeext &&
40268 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
40269 eval "$as_ac_var=yes"
40270else
40271 echo "$as_me: failed program was:" >&5
40272sed 's/^/| /' conftest.$ac_ext >&5
40273
47964710 40274 eval "$as_ac_var=no"
a848cd7e 40275fi
47964710
VS
40276
40277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40278 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40279fi
47964710
VS
40280ac_res=`eval echo '${'$as_ac_var'}'`
40281 { echo "$as_me:$LINENO: result: $ac_res" >&5
40282echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
40283if test `eval echo '${'$as_ac_var'}'` = yes; then
40284 cat >>confdefs.h <<_ACEOF
40285#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40286_ACEOF
40287 cat >>confdefs.h <<\_ACEOF
40288#define HAVE_NANOSLEEP 1
40289_ACEOF
40290
40291else
40292
47964710
VS
40293 { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
40294echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
a848cd7e
SC
40295if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
40296 echo $ECHO_N "(cached) $ECHO_C" >&6
40297else
40298 ac_check_lib_save_LIBS=$LIBS
40299LIBS="-lposix4 $LIBS"
40300cat >conftest.$ac_ext <<_ACEOF
40301/* confdefs.h. */
40302_ACEOF
40303cat confdefs.h >>conftest.$ac_ext
40304cat >>conftest.$ac_ext <<_ACEOF
40305/* end confdefs.h. */
40306
47964710
VS
40307/* Override any GCC internal prototype to avoid an error.
40308 Use char because int might match the return type of a GCC
40309 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40310#ifdef __cplusplus
40311extern "C"
40312#endif
a848cd7e
SC
40313char nanosleep ();
40314int
40315main ()
40316{
47964710 40317return nanosleep ();
a848cd7e
SC
40318 ;
40319 return 0;
40320}
40321_ACEOF
40322rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40323if { (ac_try="$ac_link"
40324case "(($ac_try" in
40325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40326 *) ac_try_echo=$ac_try;;
40327esac
40328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40329 (eval "$ac_link") 2>conftest.er1
a848cd7e 40330 ac_status=$?
ac1cb8d3
VS
40331 grep -v '^ *+' conftest.er1 >conftest.err
40332 rm -f conftest.er1
40333 cat conftest.err >&5
a848cd7e 40334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40335 (exit $ac_status); } && {
40336 test -z "$ac_c_werror_flag" ||
40337 test ! -s conftest.err
40338 } && test -s conftest$ac_exeext &&
40339 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
40340 ac_cv_lib_posix4_nanosleep=yes
40341else
40342 echo "$as_me: failed program was:" >&5
40343sed 's/^/| /' conftest.$ac_ext >&5
40344
47964710 40345 ac_cv_lib_posix4_nanosleep=no
a848cd7e 40346fi
47964710
VS
40347
40348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40349 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40350LIBS=$ac_check_lib_save_LIBS
40351fi
47964710
VS
40352{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
40353echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
a848cd7e
SC
40354if test $ac_cv_lib_posix4_nanosleep = yes; then
40355
40356 cat >>confdefs.h <<\_ACEOF
40357#define HAVE_NANOSLEEP 1
40358_ACEOF
40359
40360 POSIX4_LINK=" -lposix4"
40361
40362else
40363
40364
fd5199d6
VZ
40365 for wx_func in usleep
40366 do
47964710
VS
40367 { echo "$as_me:$LINENO: checking for $wx_func" >&5
40368echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40369if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
40370 echo $ECHO_N "(cached) $ECHO_C" >&6
40371else
fd5199d6
VZ
40372
40373 cat >conftest.$ac_ext <<_ACEOF
40374
40375 /* confdefs.h. */
a848cd7e
SC
40376_ACEOF
40377cat confdefs.h >>conftest.$ac_ext
40378cat >>conftest.$ac_ext <<_ACEOF
40379/* end confdefs.h. */
ac1cb8d3 40380
ac1cb8d3 40381
fd5199d6 40382 $ac_includes_default
a848cd7e
SC
40383
40384int
40385main ()
40386{
fd5199d6
VZ
40387
40388 #ifndef $wx_func
40389 &$wx_func;
40390 #endif
40391
40392
a848cd7e
SC
40393 ;
40394 return 0;
40395}
fd5199d6 40396
a848cd7e
SC
40397_ACEOF
40398rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40399if { (ac_try="$ac_link"
40400case "(($ac_try" in
40401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40402 *) ac_try_echo=$ac_try;;
40403esac
40404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40405 (eval "$ac_link") 2>conftest.er1
a848cd7e 40406 ac_status=$?
ac1cb8d3
VS
40407 grep -v '^ *+' conftest.er1 >conftest.err
40408 rm -f conftest.er1
40409 cat conftest.err >&5
a848cd7e 40410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40411 (exit $ac_status); } && {
40412 test -z "$ac_c_werror_flag" ||
40413 test ! -s conftest.err
40414 } && test -s conftest$ac_exeext &&
40415 $as_test_x conftest$ac_exeext; then
fd5199d6 40416 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
40417else
40418 echo "$as_me: failed program was:" >&5
40419sed 's/^/| /' conftest.$ac_ext >&5
40420
47964710 40421 eval wx_cv_func_$wx_func=no
a848cd7e 40422fi
47964710
VS
40423
40424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40425 conftest$ac_exeext conftest.$ac_ext
fd5199d6 40426
a848cd7e 40427fi
47964710
VS
40428ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40429 { echo "$as_me:$LINENO: result: $ac_res" >&5
40430echo "${ECHO_T}$ac_res" >&6; }
fd5199d6
VZ
40431
40432 if eval test \$wx_cv_func_$wx_func = yes
40433 then
40434 cat >>confdefs.h <<_ACEOF
1ad9ba14 40435#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
a848cd7e
SC
40436_ACEOF
40437
fd5199d6
VZ
40438
40439 else
40440 :
40441 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
a848cd7e
SC
40442echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
40443
fd5199d6
VZ
40444 fi
40445 done
a848cd7e
SC
40446
40447
40448
40449fi
40450
40451
40452
40453fi
40454done
40455
40456fi
40457
40458
9b8888f9
VZ
40459 for wx_func in uname
40460 do
47964710
VS
40461 { echo "$as_me:$LINENO: checking for $wx_func" >&5
40462echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40463if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
9b8888f9
VZ
40464 echo $ECHO_N "(cached) $ECHO_C" >&6
40465else
40466
40467 cat >conftest.$ac_ext <<_ACEOF
40468
40469 /* confdefs.h. */
40470_ACEOF
40471cat confdefs.h >>conftest.$ac_ext
40472cat >>conftest.$ac_ext <<_ACEOF
40473/* end confdefs.h. */
40474
40475 #include <sys/utsname.h>
40476 $ac_includes_default
40477
40478int
40479main ()
40480{
40481
40482 #ifndef $wx_func
40483 &$wx_func;
40484 #endif
40485
40486
40487 ;
40488 return 0;
40489}
40490
40491_ACEOF
40492rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40493if { (ac_try="$ac_link"
40494case "(($ac_try" in
40495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40496 *) ac_try_echo=$ac_try;;
40497esac
40498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40499 (eval "$ac_link") 2>conftest.er1
9b8888f9
VZ
40500 ac_status=$?
40501 grep -v '^ *+' conftest.er1 >conftest.err
40502 rm -f conftest.er1
40503 cat conftest.err >&5
40504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40505 (exit $ac_status); } && {
40506 test -z "$ac_c_werror_flag" ||
40507 test ! -s conftest.err
40508 } && test -s conftest$ac_exeext &&
40509 $as_test_x conftest$ac_exeext; then
9b8888f9
VZ
40510 eval wx_cv_func_$wx_func=yes
40511else
40512 echo "$as_me: failed program was:" >&5
40513sed 's/^/| /' conftest.$ac_ext >&5
40514
47964710 40515 eval wx_cv_func_$wx_func=no
9b8888f9 40516fi
47964710
VS
40517
40518rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9b8888f9
VZ
40519 conftest$ac_exeext conftest.$ac_ext
40520
40521fi
47964710
VS
40522ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40523 { echo "$as_me:$LINENO: result: $ac_res" >&5
40524echo "${ECHO_T}$ac_res" >&6; }
9b8888f9
VZ
40525
40526 if eval test \$wx_cv_func_$wx_func = yes
40527 then
40528 cat >>confdefs.h <<_ACEOF
1ad9ba14 40529#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
9b8888f9
VZ
40530_ACEOF
40531
40532
40533 else
40534 :
40535
40536 fi
40537 done
40538
40539if test "$wx_cv_func_uname" != yes; then
40540
40541 for wx_func in gethostname
fd5199d6 40542 do
47964710
VS
40543 { echo "$as_me:$LINENO: checking for $wx_func" >&5
40544echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40545if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
40546 echo $ECHO_N "(cached) $ECHO_C" >&6
40547else
fd5199d6
VZ
40548
40549 cat >conftest.$ac_ext <<_ACEOF
40550
40551 /* confdefs.h. */
a848cd7e
SC
40552_ACEOF
40553cat confdefs.h >>conftest.$ac_ext
40554cat >>conftest.$ac_ext <<_ACEOF
40555/* end confdefs.h. */
ac1cb8d3 40556
ac1cb8d3 40557
fd5199d6 40558 $ac_includes_default
a848cd7e
SC
40559
40560int
40561main ()
40562{
fd5199d6
VZ
40563
40564 #ifndef $wx_func
40565 &$wx_func;
40566 #endif
40567
40568
a848cd7e
SC
40569 ;
40570 return 0;
40571}
fd5199d6 40572
a848cd7e
SC
40573_ACEOF
40574rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40575if { (ac_try="$ac_link"
40576case "(($ac_try" in
40577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40578 *) ac_try_echo=$ac_try;;
40579esac
40580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40581 (eval "$ac_link") 2>conftest.er1
a848cd7e 40582 ac_status=$?
ac1cb8d3
VS
40583 grep -v '^ *+' conftest.er1 >conftest.err
40584 rm -f conftest.er1
40585 cat conftest.err >&5
a848cd7e 40586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40587 (exit $ac_status); } && {
40588 test -z "$ac_c_werror_flag" ||
40589 test ! -s conftest.err
40590 } && test -s conftest$ac_exeext &&
40591 $as_test_x conftest$ac_exeext; then
fd5199d6 40592 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
40593else
40594 echo "$as_me: failed program was:" >&5
40595sed 's/^/| /' conftest.$ac_ext >&5
40596
47964710 40597 eval wx_cv_func_$wx_func=no
a848cd7e 40598fi
47964710
VS
40599
40600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40601 conftest$ac_exeext conftest.$ac_ext
fd5199d6 40602
a848cd7e 40603fi
47964710
VS
40604ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40605 { echo "$as_me:$LINENO: result: $ac_res" >&5
40606echo "${ECHO_T}$ac_res" >&6; }
fd5199d6
VZ
40607
40608 if eval test \$wx_cv_func_$wx_func = yes
40609 then
40610 cat >>confdefs.h <<_ACEOF
1ad9ba14 40611#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
a848cd7e 40612_ACEOF
fd5199d6 40613
9b8888f9 40614
fd5199d6
VZ
40615 else
40616 :
40617
40618 fi
40619 done
a848cd7e 40620
9b8888f9 40621fi
a848cd7e 40622
56632e81
MW
40623
40624 for wx_func in strtok_r
40625 do
47964710
VS
40626 { echo "$as_me:$LINENO: checking for $wx_func" >&5
40627echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40628if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
40629 echo $ECHO_N "(cached) $ECHO_C" >&6
40630else
56632e81
MW
40631
40632 cat >conftest.$ac_ext <<_ACEOF
40633
40634 /* confdefs.h. */
a848cd7e
SC
40635_ACEOF
40636cat confdefs.h >>conftest.$ac_ext
40637cat >>conftest.$ac_ext <<_ACEOF
40638/* end confdefs.h. */
56632e81
MW
40639
40640 #define _REENTRANT
40641 $ac_includes_default
40642
a848cd7e
SC
40643int
40644main ()
40645{
56632e81
MW
40646
40647 #ifndef $wx_func
40648 &$wx_func;
40649 #endif
40650
5acfd58d 40651
a848cd7e
SC
40652 ;
40653 return 0;
40654}
56632e81 40655
a848cd7e 40656_ACEOF
56632e81 40657rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40658if { (ac_try="$ac_link"
40659case "(($ac_try" in
40660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40661 *) ac_try_echo=$ac_try;;
40662esac
40663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40664 (eval "$ac_link") 2>conftest.er1
a848cd7e 40665 ac_status=$?
ac1cb8d3
VS
40666 grep -v '^ *+' conftest.er1 >conftest.err
40667 rm -f conftest.er1
40668 cat conftest.err >&5
a848cd7e 40669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40670 (exit $ac_status); } && {
40671 test -z "$ac_c_werror_flag" ||
40672 test ! -s conftest.err
40673 } && test -s conftest$ac_exeext &&
40674 $as_test_x conftest$ac_exeext; then
56632e81 40675 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
40676else
40677 echo "$as_me: failed program was:" >&5
40678sed 's/^/| /' conftest.$ac_ext >&5
40679
47964710 40680 eval wx_cv_func_$wx_func=no
a848cd7e 40681fi
47964710
VS
40682
40683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56632e81 40684 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40685
56632e81 40686fi
47964710
VS
40687ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40688 { echo "$as_me:$LINENO: result: $ac_res" >&5
40689echo "${ECHO_T}$ac_res" >&6; }
a848cd7e 40690
56632e81
MW
40691 if eval test \$wx_cv_func_$wx_func = yes
40692 then
40693 cat >>confdefs.h <<_ACEOF
1ad9ba14 40694#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
82a2636b
MW
40695_ACEOF
40696
40697
56632e81
MW
40698 else
40699 :
5acfd58d 40700
56632e81
MW
40701 fi
40702 done
5acfd58d 40703
a848cd7e 40704
a848cd7e
SC
40705INET_LINK=
40706
40707for ac_func in inet_addr
40708do
40709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
40710{ echo "$as_me:$LINENO: checking for $ac_func" >&5
40711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40712if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
40713 echo $ECHO_N "(cached) $ECHO_C" >&6
40714else
40715 cat >conftest.$ac_ext <<_ACEOF
40716/* confdefs.h. */
40717_ACEOF
40718cat confdefs.h >>conftest.$ac_ext
40719cat >>conftest.$ac_ext <<_ACEOF
40720/* end confdefs.h. */
ac1cb8d3
VS
40721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40723#define $ac_func innocuous_$ac_func
40724
a848cd7e
SC
40725/* System header to define __stub macros and hopefully few prototypes,
40726 which can conflict with char $ac_func (); below.
40727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40728 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40729
a848cd7e
SC
40730#ifdef __STDC__
40731# include <limits.h>
40732#else
40733# include <assert.h>
40734#endif
ac1cb8d3
VS
40735
40736#undef $ac_func
40737
47964710
VS
40738/* Override any GCC internal prototype to avoid an error.
40739 Use char because int might match the return type of a GCC
40740 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40741#ifdef __cplusplus
40742extern "C"
a848cd7e 40743#endif
a848cd7e
SC
40744char $ac_func ();
40745/* The GNU C library defines this for functions which it implements
40746 to always fail with ENOSYS. Some functions are actually named
40747 something starting with __ and the normal name is an alias. */
47964710 40748#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 40749choke me
a848cd7e
SC
40750#endif
40751
40752int
40753main ()
40754{
47964710 40755return $ac_func ();
a848cd7e
SC
40756 ;
40757 return 0;
40758}
40759_ACEOF
40760rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40761if { (ac_try="$ac_link"
40762case "(($ac_try" in
40763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40764 *) ac_try_echo=$ac_try;;
40765esac
40766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40767 (eval "$ac_link") 2>conftest.er1
a848cd7e 40768 ac_status=$?
ac1cb8d3
VS
40769 grep -v '^ *+' conftest.er1 >conftest.err
40770 rm -f conftest.er1
40771 cat conftest.err >&5
a848cd7e 40772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40773 (exit $ac_status); } && {
40774 test -z "$ac_c_werror_flag" ||
40775 test ! -s conftest.err
40776 } && test -s conftest$ac_exeext &&
40777 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
40778 eval "$as_ac_var=yes"
40779else
40780 echo "$as_me: failed program was:" >&5
40781sed 's/^/| /' conftest.$ac_ext >&5
40782
47964710 40783 eval "$as_ac_var=no"
a848cd7e 40784fi
47964710
VS
40785
40786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40787 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40788fi
47964710
VS
40789ac_res=`eval echo '${'$as_ac_var'}'`
40790 { echo "$as_me:$LINENO: result: $ac_res" >&5
40791echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
40792if test `eval echo '${'$as_ac_var'}'` = yes; then
40793 cat >>confdefs.h <<_ACEOF
40794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40795_ACEOF
40796 cat >>confdefs.h <<\_ACEOF
40797#define HAVE_INET_ADDR 1
40798_ACEOF
40799
40800else
40801
47964710
VS
40802 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
40803echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
a848cd7e
SC
40804if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
40805 echo $ECHO_N "(cached) $ECHO_C" >&6
40806else
40807 ac_check_lib_save_LIBS=$LIBS
40808LIBS="-lnsl $LIBS"
40809cat >conftest.$ac_ext <<_ACEOF
40810/* confdefs.h. */
40811_ACEOF
40812cat confdefs.h >>conftest.$ac_ext
40813cat >>conftest.$ac_ext <<_ACEOF
40814/* end confdefs.h. */
40815
47964710
VS
40816/* Override any GCC internal prototype to avoid an error.
40817 Use char because int might match the return type of a GCC
40818 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40819#ifdef __cplusplus
40820extern "C"
40821#endif
a848cd7e
SC
40822char inet_addr ();
40823int
40824main ()
40825{
47964710 40826return inet_addr ();
a848cd7e
SC
40827 ;
40828 return 0;
40829}
40830_ACEOF
40831rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40832if { (ac_try="$ac_link"
40833case "(($ac_try" in
40834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40835 *) ac_try_echo=$ac_try;;
40836esac
40837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40838 (eval "$ac_link") 2>conftest.er1
a848cd7e 40839 ac_status=$?
ac1cb8d3
VS
40840 grep -v '^ *+' conftest.er1 >conftest.err
40841 rm -f conftest.er1
40842 cat conftest.err >&5
a848cd7e 40843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40844 (exit $ac_status); } && {
40845 test -z "$ac_c_werror_flag" ||
40846 test ! -s conftest.err
40847 } && test -s conftest$ac_exeext &&
40848 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
40849 ac_cv_lib_nsl_inet_addr=yes
40850else
40851 echo "$as_me: failed program was:" >&5
40852sed 's/^/| /' conftest.$ac_ext >&5
40853
47964710 40854 ac_cv_lib_nsl_inet_addr=no
a848cd7e 40855fi
47964710
VS
40856
40857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40859LIBS=$ac_check_lib_save_LIBS
40860fi
47964710
VS
40861{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
40862echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
a848cd7e
SC
40863if test $ac_cv_lib_nsl_inet_addr = yes; then
40864 INET_LINK="nsl"
40865else
40866
47964710
VS
40867 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
40868echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
a848cd7e
SC
40869if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
40870 echo $ECHO_N "(cached) $ECHO_C" >&6
40871else
40872 ac_check_lib_save_LIBS=$LIBS
40873LIBS="-lresolv $LIBS"
40874cat >conftest.$ac_ext <<_ACEOF
40875/* confdefs.h. */
40876_ACEOF
40877cat confdefs.h >>conftest.$ac_ext
40878cat >>conftest.$ac_ext <<_ACEOF
40879/* end confdefs.h. */
40880
47964710
VS
40881/* Override any GCC internal prototype to avoid an error.
40882 Use char because int might match the return type of a GCC
40883 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40884#ifdef __cplusplus
40885extern "C"
40886#endif
a848cd7e
SC
40887char inet_addr ();
40888int
40889main ()
40890{
47964710 40891return inet_addr ();
a848cd7e
SC
40892 ;
40893 return 0;
40894}
40895_ACEOF
40896rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40897if { (ac_try="$ac_link"
40898case "(($ac_try" in
40899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40900 *) ac_try_echo=$ac_try;;
40901esac
40902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40903 (eval "$ac_link") 2>conftest.er1
a848cd7e 40904 ac_status=$?
ac1cb8d3
VS
40905 grep -v '^ *+' conftest.er1 >conftest.err
40906 rm -f conftest.er1
40907 cat conftest.err >&5
a848cd7e 40908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40909 (exit $ac_status); } && {
40910 test -z "$ac_c_werror_flag" ||
40911 test ! -s conftest.err
40912 } && test -s conftest$ac_exeext &&
40913 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
40914 ac_cv_lib_resolv_inet_addr=yes
40915else
40916 echo "$as_me: failed program was:" >&5
40917sed 's/^/| /' conftest.$ac_ext >&5
40918
47964710 40919 ac_cv_lib_resolv_inet_addr=no
a848cd7e 40920fi
47964710
VS
40921
40922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40923 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40924LIBS=$ac_check_lib_save_LIBS
40925fi
47964710
VS
40926{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
40927echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
a848cd7e
SC
40928if test $ac_cv_lib_resolv_inet_addr = yes; then
40929 INET_LINK="resolv"
40930else
40931
47964710
VS
40932 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
40933echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
a848cd7e
SC
40934if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
40935 echo $ECHO_N "(cached) $ECHO_C" >&6
40936else
40937 ac_check_lib_save_LIBS=$LIBS
40938LIBS="-lsocket $LIBS"
40939cat >conftest.$ac_ext <<_ACEOF
40940/* confdefs.h. */
40941_ACEOF
40942cat confdefs.h >>conftest.$ac_ext
40943cat >>conftest.$ac_ext <<_ACEOF
40944/* end confdefs.h. */
40945
47964710
VS
40946/* Override any GCC internal prototype to avoid an error.
40947 Use char because int might match the return type of a GCC
40948 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40949#ifdef __cplusplus
40950extern "C"
40951#endif
a848cd7e
SC
40952char inet_addr ();
40953int
40954main ()
40955{
47964710 40956return inet_addr ();
a848cd7e
SC
40957 ;
40958 return 0;
40959}
40960_ACEOF
40961rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40962if { (ac_try="$ac_link"
40963case "(($ac_try" in
40964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40965 *) ac_try_echo=$ac_try;;
40966esac
40967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40968 (eval "$ac_link") 2>conftest.er1
a848cd7e 40969 ac_status=$?
ac1cb8d3
VS
40970 grep -v '^ *+' conftest.er1 >conftest.err
40971 rm -f conftest.er1
40972 cat conftest.err >&5
a848cd7e 40973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40974 (exit $ac_status); } && {
40975 test -z "$ac_c_werror_flag" ||
40976 test ! -s conftest.err
40977 } && test -s conftest$ac_exeext &&
40978 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
40979 ac_cv_lib_socket_inet_addr=yes
40980else
40981 echo "$as_me: failed program was:" >&5
40982sed 's/^/| /' conftest.$ac_ext >&5
40983
47964710 40984 ac_cv_lib_socket_inet_addr=no
a848cd7e 40985fi
47964710
VS
40986
40987rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40988 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40989LIBS=$ac_check_lib_save_LIBS
40990fi
47964710
VS
40991{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
40992echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
a848cd7e
SC
40993if test $ac_cv_lib_socket_inet_addr = yes; then
40994 INET_LINK="socket"
40995
40996fi
40997
40998
40999
41000fi
41001
41002
41003
41004fi
41005
41006
41007
41008fi
41009done
41010
41011
41012
41013for ac_func in inet_aton
41014do
41015as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
41016{ echo "$as_me:$LINENO: checking for $ac_func" >&5
41017echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41018if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
41019 echo $ECHO_N "(cached) $ECHO_C" >&6
41020else
41021 cat >conftest.$ac_ext <<_ACEOF
41022/* confdefs.h. */
41023_ACEOF
41024cat confdefs.h >>conftest.$ac_ext
41025cat >>conftest.$ac_ext <<_ACEOF
41026/* end confdefs.h. */
ac1cb8d3
VS
41027/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41029#define $ac_func innocuous_$ac_func
41030
a848cd7e
SC
41031/* System header to define __stub macros and hopefully few prototypes,
41032 which can conflict with char $ac_func (); below.
41033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41034 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41035
a848cd7e
SC
41036#ifdef __STDC__
41037# include <limits.h>
41038#else
41039# include <assert.h>
41040#endif
ac1cb8d3
VS
41041
41042#undef $ac_func
41043
47964710
VS
41044/* Override any GCC internal prototype to avoid an error.
41045 Use char because int might match the return type of a GCC
41046 builtin and then its argument prototype would still apply. */
a848cd7e
SC
41047#ifdef __cplusplus
41048extern "C"
a848cd7e 41049#endif
a848cd7e
SC
41050char $ac_func ();
41051/* The GNU C library defines this for functions which it implements
41052 to always fail with ENOSYS. Some functions are actually named
41053 something starting with __ and the normal name is an alias. */
47964710 41054#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 41055choke me
a848cd7e
SC
41056#endif
41057
41058int
41059main ()
41060{
47964710 41061return $ac_func ();
a848cd7e
SC
41062 ;
41063 return 0;
41064}
41065_ACEOF
41066rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
41067if { (ac_try="$ac_link"
41068case "(($ac_try" in
41069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41070 *) ac_try_echo=$ac_try;;
41071esac
41072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41073 (eval "$ac_link") 2>conftest.er1
a848cd7e 41074 ac_status=$?
ac1cb8d3
VS
41075 grep -v '^ *+' conftest.er1 >conftest.err
41076 rm -f conftest.er1
41077 cat conftest.err >&5
a848cd7e 41078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41079 (exit $ac_status); } && {
41080 test -z "$ac_c_werror_flag" ||
41081 test ! -s conftest.err
41082 } && test -s conftest$ac_exeext &&
41083 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
41084 eval "$as_ac_var=yes"
41085else
41086 echo "$as_me: failed program was:" >&5
41087sed 's/^/| /' conftest.$ac_ext >&5
41088
47964710 41089 eval "$as_ac_var=no"
a848cd7e 41090fi
47964710
VS
41091
41092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 41093 conftest$ac_exeext conftest.$ac_ext
a848cd7e 41094fi
47964710
VS
41095ac_res=`eval echo '${'$as_ac_var'}'`
41096 { echo "$as_me:$LINENO: result: $ac_res" >&5
41097echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
41098if test `eval echo '${'$as_ac_var'}'` = yes; then
41099 cat >>confdefs.h <<_ACEOF
41100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41101_ACEOF
41102 cat >>confdefs.h <<\_ACEOF
41103#define HAVE_INET_ATON 1
41104_ACEOF
41105
41106else
41107
41108 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
47964710
VS
41109{ echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
41110echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
41111if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
41112 echo $ECHO_N "(cached) $ECHO_C" >&6
41113else
41114 ac_check_lib_save_LIBS=$LIBS
41115LIBS="-l$INET_LINK $LIBS"
41116cat >conftest.$ac_ext <<_ACEOF
41117/* confdefs.h. */
41118_ACEOF
41119cat confdefs.h >>conftest.$ac_ext
41120cat >>conftest.$ac_ext <<_ACEOF
41121/* end confdefs.h. */
41122
47964710
VS
41123/* Override any GCC internal prototype to avoid an error.
41124 Use char because int might match the return type of a GCC
41125 builtin and then its argument prototype would still apply. */
a848cd7e
SC
41126#ifdef __cplusplus
41127extern "C"
41128#endif
a848cd7e
SC
41129char inet_aton ();
41130int
41131main ()
41132{
47964710 41133return inet_aton ();
a848cd7e
SC
41134 ;
41135 return 0;
41136}
41137_ACEOF
41138rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
41139if { (ac_try="$ac_link"
41140case "(($ac_try" in
41141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41142 *) ac_try_echo=$ac_try;;
41143esac
41144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41145 (eval "$ac_link") 2>conftest.er1
a848cd7e 41146 ac_status=$?
ac1cb8d3
VS
41147 grep -v '^ *+' conftest.er1 >conftest.err
41148 rm -f conftest.er1
41149 cat conftest.err >&5
a848cd7e 41150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41151 (exit $ac_status); } && {
41152 test -z "$ac_c_werror_flag" ||
41153 test ! -s conftest.err
41154 } && test -s conftest$ac_exeext &&
41155 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
41156 eval "$as_ac_Lib=yes"
41157else
41158 echo "$as_me: failed program was:" >&5
41159sed 's/^/| /' conftest.$ac_ext >&5
41160
47964710 41161 eval "$as_ac_Lib=no"
a848cd7e 41162fi
47964710
VS
41163
41164rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 41165 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41166LIBS=$ac_check_lib_save_LIBS
41167fi
47964710
VS
41168ac_res=`eval echo '${'$as_ac_Lib'}'`
41169 { echo "$as_me:$LINENO: result: $ac_res" >&5
41170echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
41171if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41172 cat >>confdefs.h <<\_ACEOF
41173#define HAVE_INET_ATON 1
41174_ACEOF
41175
41176fi
41177
41178
41179fi
41180done
41181
41182
41183if test "x$INET_LINK" != "x"; then
41184 cat >>confdefs.h <<\_ACEOF
41185#define HAVE_INET_ADDR 1
41186_ACEOF
41187
41188 INET_LINK=" -l$INET_LINK"
41189fi
41190
f8f6c91a
MW
41191
41192 for wx_func in fdopen
41193 do
47964710
VS
41194 { echo "$as_me:$LINENO: checking for $wx_func" >&5
41195echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41196if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
f8f6c91a
MW
41197 echo $ECHO_N "(cached) $ECHO_C" >&6
41198else
41199
41200 cat >conftest.$ac_ext <<_ACEOF
41201
41202 /* confdefs.h. */
41203_ACEOF
41204cat confdefs.h >>conftest.$ac_ext
41205cat >>conftest.$ac_ext <<_ACEOF
41206/* end confdefs.h. */
41207
41208
41209 $ac_includes_default
41210
41211int
41212main ()
41213{
41214
41215 #ifndef $wx_func
41216 &$wx_func;
41217 #endif
41218
41219
41220 ;
41221 return 0;
41222}
41223
41224_ACEOF
41225rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
41226if { (ac_try="$ac_link"
41227case "(($ac_try" in
41228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41229 *) ac_try_echo=$ac_try;;
41230esac
41231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41232 (eval "$ac_link") 2>conftest.er1
f8f6c91a
MW
41233 ac_status=$?
41234 grep -v '^ *+' conftest.er1 >conftest.err
41235 rm -f conftest.er1
41236 cat conftest.err >&5
41237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41238 (exit $ac_status); } && {
41239 test -z "$ac_c_werror_flag" ||
41240 test ! -s conftest.err
41241 } && test -s conftest$ac_exeext &&
41242 $as_test_x conftest$ac_exeext; then
f8f6c91a
MW
41243 eval wx_cv_func_$wx_func=yes
41244else
41245 echo "$as_me: failed program was:" >&5
41246sed 's/^/| /' conftest.$ac_ext >&5
41247
47964710 41248 eval wx_cv_func_$wx_func=no
a848cd7e 41249fi
47964710
VS
41250
41251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
f8f6c91a
MW
41252 conftest$ac_exeext conftest.$ac_ext
41253
41254fi
47964710
VS
41255ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41256 { echo "$as_me:$LINENO: result: $ac_res" >&5
41257echo "${ECHO_T}$ac_res" >&6; }
f8f6c91a
MW
41258
41259 if eval test \$wx_cv_func_$wx_func = yes
41260 then
41261 cat >>confdefs.h <<_ACEOF
1ad9ba14 41262#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
f8f6c91a
MW
41263_ACEOF
41264
41265
41266 else
41267 :
41268
41269 fi
41270 done
41271
41272
41273fi
41274
a848cd7e
SC
41275
41276
a848cd7e
SC
41277cat >confcache <<\_ACEOF
41278# This file is a shell script that caches the results of configure
41279# tests run on this system so they can be shared between configure
41280# scripts and configure runs, see configure's option --config-cache.
41281# It is not useful on other systems. If it contains results you don't
41282# want to keep, you may remove or edit it.
41283#
41284# config.status only pays attention to the cache file if you give it
41285# the --recheck option to rerun configure.
41286#
41287# `ac_cv_env_foo' variables (set or unset) will be overridden when
41288# loading this file, other *unset* `ac_cv_foo' will be assigned the
41289# following values.
41290
41291_ACEOF
41292
41293# The following way of writing the cache mishandles newlines in values,
41294# but we know of no workaround that is simple, portable, and efficient.
47964710 41295# So, we kill variables containing newlines.
a848cd7e
SC
41296# Ultrix sh set writes to stderr and can't be redirected directly,
41297# and sets the high bit in the cache file unless we assign to the vars.
47964710
VS
41298(
41299 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41300 eval ac_val=\$$ac_var
41301 case $ac_val in #(
41302 *${as_nl}*)
41303 case $ac_var in #(
41304 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41305echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41306 esac
41307 case $ac_var in #(
41308 _ | IFS | as_nl) ;; #(
41309 *) $as_unset $ac_var ;;
41310 esac ;;
41311 esac
41312 done
41313
a848cd7e 41314 (set) 2>&1 |
47964710
VS
41315 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41316 *${as_nl}ac_space=\ *)
a848cd7e
SC
41317 # `set' does not quote correctly, so add quotes (double-quote
41318 # substitution turns \\\\ into \\, and sed turns \\ into \).
41319 sed -n \
ac1cb8d3
VS
41320 "s/'/'\\\\''/g;
41321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47964710 41322 ;; #(
a848cd7e
SC
41323 *)
41324 # `set' quotes correctly as required by POSIX, so do not add quotes.
47964710 41325 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
a848cd7e 41326 ;;
47964710
VS
41327 esac |
41328 sort
41329) |
a848cd7e 41330 sed '
47964710 41331 /^ac_cv_env_/b end
a848cd7e 41332 t clear
47964710 41333 :clear
a848cd7e
SC
41334 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41335 t end
47964710
VS
41336 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41337 :end' >>confcache
41338if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41339 if test -w "$cache_file"; then
41340 test "x$cache_file" != "x/dev/null" &&
41341 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41342echo "$as_me: updating cache $cache_file" >&6;}
a848cd7e
SC
41343 cat confcache >$cache_file
41344 else
47964710
VS
41345 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41346echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a848cd7e
SC
41347 fi
41348fi
41349rm -f confcache
41350
41351
a848cd7e
SC
41352if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41353
41354
41355 THREADS_LINK=
9b8888f9 41356 THREADS_CFLAGS=
a848cd7e
SC
41357
41358 if test "$wxUSE_THREADS" = "yes" ; then
41359 if test "$USE_BEOS" = 1; then
41360 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
41361echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
41362 wxUSE_THREADS="no"
41363 fi
41364 fi
41365
41366 if test "$wxUSE_THREADS" = "yes" ; then
41367
41368
41369 THREAD_OPTS="-pthread"
43a7c679
VZ
41370 if test "x$SUNCXX" = xyes; then
41371 THREAD_OPTS="-mt lthread $THREAD_OPTS"
41372 fi
41373
a848cd7e
SC
41374 case "${host}" in
41375 *-*-solaris2* | *-*-sunos4* )
41376 if test "x$GCC" = "xyes"; then
41377 THREAD_OPTS="-pthreads $THREAD_OPTS"
a848cd7e
SC
41378 fi
41379 ;;
41380 *-*-freebsd*)
41381 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
41382 ;;
41383 *-*-darwin* | *-*-cygwin* )
41384 THREAD_OPTS=""
41385 ;;
41386 *-*-aix*)
41387 THREAD_OPTS="pthreads"
41388 ;;
41389 *-hp-hpux* )
00421666
MW
41390 if test "x$GCC" = "xyes"; then
41391 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
41392 THREAD_OPTS=""
41393 else
0093c2fc 41394 THREAD_OPTS="-mt"
a848cd7e
SC
41395 fi
41396 ;;
41397
41398 *-*-irix* )
41399 if test "x$GCC" = "xyes"; then
41400 THREAD_OPTS=""
41401 fi
41402 ;;
41403
41404 *-*-*UnixWare*)
41405 if test "x$GCC" != "xyes"; then
41406 THREAD_OPTS="-Ethread"
41407 fi
41408 ;;
41409 esac
41410
41411 THREAD_OPTS="$THREAD_OPTS pthread none"
41412
41413 THREADS_OK=no
41414 for flag in $THREAD_OPTS; do
41415 case $flag in
41416 none)
47964710
VS
41417 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
41418echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
a848cd7e
SC
41419 ;;
41420
41421 -*)
47964710
VS
41422 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
41423echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
9b8888f9 41424 THREADS_CFLAGS="$flag"
a848cd7e
SC
41425 ;;
41426
41427 *)
47964710
VS
41428 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
41429echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
a848cd7e
SC
41430 THREADS_LINK="-l$flag"
41431 ;;
41432 esac
41433
41434 save_LIBS="$LIBS"
9b8888f9 41435 save_CFLAGS="$CFLAGS"
a848cd7e 41436 LIBS="$THREADS_LINK $LIBS"
9b8888f9 41437 CFLAGS="$THREADS_CFLAGS $CFLAGS"
a848cd7e
SC
41438
41439 cat >conftest.$ac_ext <<_ACEOF
41440/* confdefs.h. */
41441_ACEOF
41442cat confdefs.h >>conftest.$ac_ext
41443cat >>conftest.$ac_ext <<_ACEOF
41444/* end confdefs.h. */
41445#include <pthread.h>
41446int
41447main ()
41448{
41449pthread_create(0,0,0,0);
41450 ;
41451 return 0;
41452}
41453_ACEOF
41454rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
41455if { (ac_try="$ac_link"
41456case "(($ac_try" in
41457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41458 *) ac_try_echo=$ac_try;;
41459esac
41460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41461 (eval "$ac_link") 2>conftest.er1
a848cd7e 41462 ac_status=$?
ac1cb8d3
VS
41463 grep -v '^ *+' conftest.er1 >conftest.err
41464 rm -f conftest.er1
41465 cat conftest.err >&5
a848cd7e 41466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41467 (exit $ac_status); } && {
41468 test -z "$ac_c_werror_flag" ||
41469 test ! -s conftest.err
41470 } && test -s conftest$ac_exeext &&
41471 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
41472 THREADS_OK=yes
41473else
41474 echo "$as_me: failed program was:" >&5
41475sed 's/^/| /' conftest.$ac_ext >&5
41476
47964710 41477
a848cd7e 41478fi
47964710
VS
41479
41480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 41481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41482
41483 LIBS="$save_LIBS"
9b8888f9 41484 CFLAGS="$save_CFLAGS"
a848cd7e 41485
47964710
VS
41486 { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
41487echo "${ECHO_T}$THREADS_OK" >&6; }
a848cd7e
SC
41488 if test "x$THREADS_OK" = "xyes"; then
41489 break;
41490 fi
41491
41492 THREADS_LINK=""
9b8888f9 41493 THREADS_CFLAGS=""
a848cd7e
SC
41494 done
41495
41496 if test "x$THREADS_OK" != "xyes"; then
41497 wxUSE_THREADS=no
41498 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
41499echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
41500 else
9b8888f9 41501 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
a848cd7e
SC
41502 LIBS="$THREADS_LINK $LIBS"
41503
47964710
VS
41504 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
41505echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
a848cd7e
SC
41506 flag=no
41507 case "${host}" in
41508 *-aix*)
41509 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
41510 flag="-D_THREAD_SAFE"
41511 ;;
41512 *-freebsd*)
41513 flag="-D_THREAD_SAFE"
41514 ;;
41515 *-hp-hpux* )
41516 flag="-D_REENTRANT"
41517 if test "x$GCC" != "xyes"; then
41518 flag="$flag -D_RWSTD_MULTI_THREAD"
41519 fi
41520 ;;
41521 *solaris* | alpha*-osf*)
41522 flag="-D_REENTRANT"
41523 ;;
41524 esac
47964710
VS
41525 { echo "$as_me:$LINENO: result: ${flag}" >&5
41526echo "${ECHO_T}${flag}" >&6; }
a848cd7e 41527 if test "x$flag" != xno; then
9b8888f9 41528 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
a848cd7e
SC
41529 fi
41530
9b8888f9 41531 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
41532 fi
41533 fi
41534
41535 if test "$wxUSE_THREADS" = "yes" ; then
41536
41537for ac_func in thr_setconcurrency
41538do
41539as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
41540{ echo "$as_me:$LINENO: checking for $ac_func" >&5
41541echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41542if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
41543 echo $ECHO_N "(cached) $ECHO_C" >&6
41544else
41545 cat >conftest.$ac_ext <<_ACEOF
41546/* confdefs.h. */
41547_ACEOF
41548cat confdefs.h >>conftest.$ac_ext
41549cat >>conftest.$ac_ext <<_ACEOF
41550/* end confdefs.h. */
ac1cb8d3
VS
41551/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41553#define $ac_func innocuous_$ac_func
41554
a848cd7e
SC
41555/* System header to define __stub macros and hopefully few prototypes,
41556 which can conflict with char $ac_func (); below.
41557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41558 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41559
a848cd7e
SC
41560#ifdef __STDC__
41561# include <limits.h>
41562#else
41563# include <assert.h>
41564#endif
ac1cb8d3
VS
41565
41566#undef $ac_func
41567
47964710
VS
41568/* Override any GCC internal prototype to avoid an error.
41569 Use char because int might match the return type of a GCC
41570 builtin and then its argument prototype would still apply. */
a848cd7e
SC
41571#ifdef __cplusplus
41572extern "C"
a848cd7e 41573#endif
a848cd7e
SC
41574char $ac_func ();
41575/* The GNU C library defines this for functions which it implements
41576 to always fail with ENOSYS. Some functions are actually named
41577 something starting with __ and the normal name is an alias. */
47964710 41578#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 41579choke me
a848cd7e
SC
41580#endif
41581
41582int
41583main ()
41584{
47964710 41585return $ac_func ();
a848cd7e
SC
41586 ;
41587 return 0;
41588}
41589_ACEOF
41590rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
41591if { (ac_try="$ac_link"
41592case "(($ac_try" in
41593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41594 *) ac_try_echo=$ac_try;;
41595esac
41596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41597 (eval "$ac_link") 2>conftest.er1
a848cd7e 41598 ac_status=$?
ac1cb8d3
VS
41599 grep -v '^ *+' conftest.er1 >conftest.err
41600 rm -f conftest.er1
41601 cat conftest.err >&5
a848cd7e 41602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41603 (exit $ac_status); } && {
41604 test -z "$ac_c_werror_flag" ||
41605 test ! -s conftest.err
41606 } && test -s conftest$ac_exeext &&
41607 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
41608 eval "$as_ac_var=yes"
41609else
41610 echo "$as_me: failed program was:" >&5
41611sed 's/^/| /' conftest.$ac_ext >&5
41612
47964710 41613 eval "$as_ac_var=no"
a848cd7e 41614fi
47964710
VS
41615
41616rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 41617 conftest$ac_exeext conftest.$ac_ext
a848cd7e 41618fi
47964710
VS
41619ac_res=`eval echo '${'$as_ac_var'}'`
41620 { echo "$as_me:$LINENO: result: $ac_res" >&5
41621echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
41622if test `eval echo '${'$as_ac_var'}'` = yes; then
41623 cat >>confdefs.h <<_ACEOF
41624#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41625_ACEOF
41626
41627fi
41628done
41629
41630
47964710
VS
41631 { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
41632echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
6ebeb4c7
VZ
41633if test "${wx_cv_func_pthread_cleanup+set}" = set; then
41634 echo $ECHO_N "(cached) $ECHO_C" >&6
41635else
41636
47964710 41637 ac_ext=cpp
43a7c679
VZ
41638ac_cpp='$CXXCPP $CPPFLAGS'
41639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41642
6ebeb4c7
VZ
41643 cat >conftest.$ac_ext <<_ACEOF
41644/* confdefs.h. */
41645_ACEOF
41646cat confdefs.h >>conftest.$ac_ext
41647cat >>conftest.$ac_ext <<_ACEOF
41648/* end confdefs.h. */
41649#include <pthread.h>
41650 void ThreadCleanupFunc(void *p);
41651
41652int
41653main ()
41654{
41655
41656 void *p;
41657 pthread_cleanup_push(ThreadCleanupFunc, p);
41658 pthread_cleanup_pop(0);
41659
41660 ;
41661 return 0;
41662}
41663_ACEOF
41664rm -f conftest.$ac_objext
47964710
VS
41665if { (ac_try="$ac_compile"
41666case "(($ac_try" in
41667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41668 *) ac_try_echo=$ac_try;;
41669esac
41670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41671 (eval "$ac_compile") 2>conftest.er1
6ebeb4c7
VZ
41672 ac_status=$?
41673 grep -v '^ *+' conftest.er1 >conftest.err
41674 rm -f conftest.er1
41675 cat conftest.err >&5
41676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41677 (exit $ac_status); } && {
41678 test -z "$ac_cxx_werror_flag" ||
41679 test ! -s conftest.err
41680 } && test -s conftest.$ac_objext; then
6ebeb4c7
VZ
41681
41682 wx_cv_func_pthread_cleanup=yes
41683
41684else
41685 echo "$as_me: failed program was:" >&5
41686sed 's/^/| /' conftest.$ac_ext >&5
41687
41688
41689 wx_cv_func_pthread_cleanup=no
41690
41691
41692fi
47964710
VS
41693
41694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43a7c679
VZ
41695 ac_ext=c
41696ac_cpp='$CPP $CPPFLAGS'
41697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41699ac_compiler_gnu=$ac_cv_c_compiler_gnu
41700
6ebeb4c7
VZ
41701
41702fi
47964710
VS
41703{ echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
41704echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
6ebeb4c7
VZ
41705 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
41706 cat >>confdefs.h <<\_ACEOF
41707#define wxHAVE_PTHREAD_CLEANUP 1
41708_ACEOF
41709
41710 fi
41711
1f7e12cc
DE
41712
41713for ac_header in sched.h
41714do
41715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47964710
VS
41716{ echo "$as_me:$LINENO: checking for $ac_header" >&5
41717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e 41719 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 41720else
6e7b8bcb 41721 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41722/* confdefs.h. */
41723_ACEOF
41724cat confdefs.h >>conftest.$ac_ext
41725cat >>conftest.$ac_ext <<_ACEOF
41726/* end confdefs.h. */
41727$ac_includes_default
6e7b8bcb 41728
1f7e12cc 41729#include <$ac_header>
a848cd7e
SC
41730_ACEOF
41731rm -f conftest.$ac_objext
47964710
VS
41732if { (ac_try="$ac_compile"
41733case "(($ac_try" in
41734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41735 *) ac_try_echo=$ac_try;;
41736esac
41737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41738 (eval "$ac_compile") 2>conftest.er1
a848cd7e 41739 ac_status=$?
ac1cb8d3
VS
41740 grep -v '^ *+' conftest.er1 >conftest.err
41741 rm -f conftest.er1
41742 cat conftest.err >&5
a848cd7e 41743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41744 (exit $ac_status); } && {
41745 test -z "$ac_c_werror_flag" ||
41746 test ! -s conftest.err
41747 } && test -s conftest.$ac_objext; then
1f7e12cc 41748 eval "$as_ac_Header=yes"
a848cd7e
SC
41749else
41750 echo "$as_me: failed program was:" >&5
41751sed 's/^/| /' conftest.$ac_ext >&5
41752
47964710 41753 eval "$as_ac_Header=no"
a848cd7e 41754fi
47964710
VS
41755
41756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 41757fi
47964710
VS
41758ac_res=`eval echo '${'$as_ac_Header'}'`
41759 { echo "$as_me:$LINENO: result: $ac_res" >&5
41760echo "${ECHO_T}$ac_res" >&6; }
1f7e12cc
DE
41761if test `eval echo '${'$as_ac_Header'}'` = yes; then
41762 cat >>confdefs.h <<_ACEOF
41763#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41764_ACEOF
7fd3acaf 41765
1f7e12cc
DE
41766fi
41767
41768done
a848cd7e
SC
41769
41770 if test "$ac_cv_header_sched_h" = "yes"; then
47964710
VS
41771 { echo "$as_me:$LINENO: checking for sched_yield" >&5
41772echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
a848cd7e
SC
41773if test "${ac_cv_func_sched_yield+set}" = set; then
41774 echo $ECHO_N "(cached) $ECHO_C" >&6
41775else
41776 cat >conftest.$ac_ext <<_ACEOF
41777/* confdefs.h. */
41778_ACEOF
41779cat confdefs.h >>conftest.$ac_ext
41780cat >>conftest.$ac_ext <<_ACEOF
41781/* end confdefs.h. */
ac1cb8d3
VS
41782/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
41783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41784#define sched_yield innocuous_sched_yield
41785
a848cd7e
SC
41786/* System header to define __stub macros and hopefully few prototypes,
41787 which can conflict with char sched_yield (); below.
41788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41789 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41790
a848cd7e
SC
41791#ifdef __STDC__
41792# include <limits.h>
41793#else
41794# include <assert.h>
41795#endif
ac1cb8d3
VS
41796
41797#undef sched_yield
41798
47964710
VS
41799/* Override any GCC internal prototype to avoid an error.
41800 Use char because int might match the return type of a GCC
41801 builtin and then its argument prototype would still apply. */
a848cd7e
SC
41802#ifdef __cplusplus
41803extern "C"
a848cd7e 41804#endif
a848cd7e
SC
41805char sched_yield ();
41806/* The GNU C library defines this for functions which it implements
41807 to always fail with ENOSYS. Some functions are actually named
41808 something starting with __ and the normal name is an alias. */
47964710 41809#if defined __stub_sched_yield || defined __stub___sched_yield
a848cd7e 41810choke me
a848cd7e
SC
41811#endif
41812
41813int
41814main ()
41815{
47964710 41816return sched_yield ();
a848cd7e
SC
41817 ;
41818 return 0;
41819}
41820_ACEOF
41821rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
41822if { (ac_try="$ac_link"
41823case "(($ac_try" in
41824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41825 *) ac_try_echo=$ac_try;;
41826esac
41827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41828 (eval "$ac_link") 2>conftest.er1
a848cd7e 41829 ac_status=$?
ac1cb8d3
VS
41830 grep -v '^ *+' conftest.er1 >conftest.err
41831 rm -f conftest.er1
41832 cat conftest.err >&5
a848cd7e 41833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41834 (exit $ac_status); } && {
41835 test -z "$ac_c_werror_flag" ||
41836 test ! -s conftest.err
41837 } && test -s conftest$ac_exeext &&
41838 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
41839 ac_cv_func_sched_yield=yes
41840else
41841 echo "$as_me: failed program was:" >&5
41842sed 's/^/| /' conftest.$ac_ext >&5
41843
47964710 41844 ac_cv_func_sched_yield=no
a848cd7e 41845fi
47964710
VS
41846
41847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 41848 conftest$ac_exeext conftest.$ac_ext
a848cd7e 41849fi
47964710
VS
41850{ echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
41851echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
a848cd7e
SC
41852if test $ac_cv_func_sched_yield = yes; then
41853 cat >>confdefs.h <<\_ACEOF
41854#define HAVE_SCHED_YIELD 1
41855_ACEOF
41856
41857else
41858
47964710
VS
41859 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
41860echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
a848cd7e
SC
41861if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
41862 echo $ECHO_N "(cached) $ECHO_C" >&6
41863else
41864 ac_check_lib_save_LIBS=$LIBS
41865LIBS="-lposix4 $LIBS"
41866cat >conftest.$ac_ext <<_ACEOF
41867/* confdefs.h. */
41868_ACEOF
41869cat confdefs.h >>conftest.$ac_ext
41870cat >>conftest.$ac_ext <<_ACEOF
41871/* end confdefs.h. */
41872
47964710
VS
41873/* Override any GCC internal prototype to avoid an error.
41874 Use char because int might match the return type of a GCC
41875 builtin and then its argument prototype would still apply. */
a848cd7e
SC
41876#ifdef __cplusplus
41877extern "C"
41878#endif
a848cd7e
SC
41879char sched_yield ();
41880int
41881main ()
41882{
47964710 41883return sched_yield ();
a848cd7e
SC
41884 ;
41885 return 0;
41886}
41887_ACEOF
41888rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
41889if { (ac_try="$ac_link"
41890case "(($ac_try" in
41891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41892 *) ac_try_echo=$ac_try;;
41893esac
41894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41895 (eval "$ac_link") 2>conftest.er1
a848cd7e 41896 ac_status=$?
ac1cb8d3
VS
41897 grep -v '^ *+' conftest.er1 >conftest.err
41898 rm -f conftest.er1
41899 cat conftest.err >&5
a848cd7e 41900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41901 (exit $ac_status); } && {
41902 test -z "$ac_c_werror_flag" ||
41903 test ! -s conftest.err
41904 } && test -s conftest$ac_exeext &&
41905 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
41906 ac_cv_lib_posix4_sched_yield=yes
41907else
41908 echo "$as_me: failed program was:" >&5
41909sed 's/^/| /' conftest.$ac_ext >&5
41910
47964710 41911 ac_cv_lib_posix4_sched_yield=no
a848cd7e 41912fi
47964710
VS
41913
41914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 41915 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41916LIBS=$ac_check_lib_save_LIBS
41917fi
47964710
VS
41918{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
41919echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
a848cd7e
SC
41920if test $ac_cv_lib_posix4_sched_yield = yes; then
41921 cat >>confdefs.h <<\_ACEOF
41922#define HAVE_SCHED_YIELD 1
41923_ACEOF
41924 POSIX4_LINK=" -lposix4"
41925else
41926 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
41927echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
41928
41929fi
41930
41931
41932
41933fi
41934
41935 fi
41936
41937 HAVE_PRIOR_FUNCS=0
47964710
VS
41938 { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
41939echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
a848cd7e
SC
41940if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
41941 echo $ECHO_N "(cached) $ECHO_C" >&6
41942else
41943 cat >conftest.$ac_ext <<_ACEOF
41944/* confdefs.h. */
41945_ACEOF
41946cat confdefs.h >>conftest.$ac_ext
41947cat >>conftest.$ac_ext <<_ACEOF
41948/* end confdefs.h. */
ac1cb8d3
VS
41949/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
41950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41951#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
41952
a848cd7e
SC
41953/* System header to define __stub macros and hopefully few prototypes,
41954 which can conflict with char pthread_attr_getschedpolicy (); below.
41955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41956 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41957
a848cd7e
SC
41958#ifdef __STDC__
41959# include <limits.h>
41960#else
41961# include <assert.h>
41962#endif
ac1cb8d3
VS
41963
41964#undef pthread_attr_getschedpolicy
41965
47964710
VS
41966/* Override any GCC internal prototype to avoid an error.
41967 Use char because int might match the return type of a GCC
41968 builtin and then its argument prototype would still apply. */
a848cd7e
SC
41969#ifdef __cplusplus
41970extern "C"
a848cd7e 41971#endif
a848cd7e
SC
41972char pthread_attr_getschedpolicy ();
41973/* The GNU C library defines this for functions which it implements
41974 to always fail with ENOSYS. Some functions are actually named
41975 something starting with __ and the normal name is an alias. */
47964710 41976#if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
a848cd7e 41977choke me
a848cd7e
SC
41978#endif
41979
41980int
41981main ()
41982{
47964710 41983return pthread_attr_getschedpolicy ();
a848cd7e
SC
41984 ;
41985 return 0;
41986}
41987_ACEOF
41988rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
41989if { (ac_try="$ac_link"
41990case "(($ac_try" in
41991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41992 *) ac_try_echo=$ac_try;;
41993esac
41994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41995 (eval "$ac_link") 2>conftest.er1
a848cd7e 41996 ac_status=$?
ac1cb8d3
VS
41997 grep -v '^ *+' conftest.er1 >conftest.err
41998 rm -f conftest.er1
41999 cat conftest.err >&5
a848cd7e 42000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42001 (exit $ac_status); } && {
42002 test -z "$ac_c_werror_flag" ||
42003 test ! -s conftest.err
42004 } && test -s conftest$ac_exeext &&
42005 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
42006 ac_cv_func_pthread_attr_getschedpolicy=yes
42007else
42008 echo "$as_me: failed program was:" >&5
42009sed 's/^/| /' conftest.$ac_ext >&5
42010
47964710 42011 ac_cv_func_pthread_attr_getschedpolicy=no
a848cd7e 42012fi
47964710
VS
42013
42014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 42015 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42016fi
47964710
VS
42017{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
42018echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
a848cd7e 42019if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
47964710
VS
42020 { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
42021echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
a848cd7e
SC
42022if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
42023 echo $ECHO_N "(cached) $ECHO_C" >&6
42024else
42025 cat >conftest.$ac_ext <<_ACEOF
42026/* confdefs.h. */
42027_ACEOF
42028cat confdefs.h >>conftest.$ac_ext
42029cat >>conftest.$ac_ext <<_ACEOF
42030/* end confdefs.h. */
ac1cb8d3
VS
42031/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
42032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42033#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
42034
a848cd7e
SC
42035/* System header to define __stub macros and hopefully few prototypes,
42036 which can conflict with char pthread_attr_setschedparam (); below.
42037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42038 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42039
a848cd7e
SC
42040#ifdef __STDC__
42041# include <limits.h>
42042#else
42043# include <assert.h>
42044#endif
ac1cb8d3
VS
42045
42046#undef pthread_attr_setschedparam
42047
47964710
VS
42048/* Override any GCC internal prototype to avoid an error.
42049 Use char because int might match the return type of a GCC
42050 builtin and then its argument prototype would still apply. */
a848cd7e
SC
42051#ifdef __cplusplus
42052extern "C"
a848cd7e 42053#endif
a848cd7e
SC
42054char pthread_attr_setschedparam ();
42055/* The GNU C library defines this for functions which it implements
42056 to always fail with ENOSYS. Some functions are actually named
42057 something starting with __ and the normal name is an alias. */
47964710 42058#if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
a848cd7e 42059choke me
a848cd7e
SC
42060#endif
42061
42062int
42063main ()
42064{
47964710 42065return pthread_attr_setschedparam ();
a848cd7e
SC
42066 ;
42067 return 0;
42068}
42069_ACEOF
42070rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42071if { (ac_try="$ac_link"
42072case "(($ac_try" in
42073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42074 *) ac_try_echo=$ac_try;;
42075esac
42076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42077 (eval "$ac_link") 2>conftest.er1
a848cd7e 42078 ac_status=$?
ac1cb8d3
VS
42079 grep -v '^ *+' conftest.er1 >conftest.err
42080 rm -f conftest.er1
42081 cat conftest.err >&5
a848cd7e 42082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42083 (exit $ac_status); } && {
42084 test -z "$ac_c_werror_flag" ||
42085 test ! -s conftest.err
42086 } && test -s conftest$ac_exeext &&
42087 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
42088 ac_cv_func_pthread_attr_setschedparam=yes
42089else
42090 echo "$as_me: failed program was:" >&5
42091sed 's/^/| /' conftest.$ac_ext >&5
42092
47964710 42093 ac_cv_func_pthread_attr_setschedparam=no
a848cd7e 42094fi
47964710
VS
42095
42096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 42097 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42098fi
47964710
VS
42099{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
42100echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
a848cd7e 42101if test $ac_cv_func_pthread_attr_setschedparam = yes; then
47964710
VS
42102 { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
42103echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
a848cd7e
SC
42104if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
42105 echo $ECHO_N "(cached) $ECHO_C" >&6
42106else
42107 cat >conftest.$ac_ext <<_ACEOF
42108/* confdefs.h. */
42109_ACEOF
42110cat confdefs.h >>conftest.$ac_ext
42111cat >>conftest.$ac_ext <<_ACEOF
42112/* end confdefs.h. */
ac1cb8d3
VS
42113/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
42114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42115#define sched_get_priority_max innocuous_sched_get_priority_max
42116
a848cd7e
SC
42117/* System header to define __stub macros and hopefully few prototypes,
42118 which can conflict with char sched_get_priority_max (); below.
42119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42120 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42121
a848cd7e
SC
42122#ifdef __STDC__
42123# include <limits.h>
42124#else
42125# include <assert.h>
42126#endif
ac1cb8d3
VS
42127
42128#undef sched_get_priority_max
42129
47964710
VS
42130/* Override any GCC internal prototype to avoid an error.
42131 Use char because int might match the return type of a GCC
42132 builtin and then its argument prototype would still apply. */
a848cd7e
SC
42133#ifdef __cplusplus
42134extern "C"
a848cd7e 42135#endif
a848cd7e
SC
42136char sched_get_priority_max ();
42137/* The GNU C library defines this for functions which it implements
42138 to always fail with ENOSYS. Some functions are actually named
42139 something starting with __ and the normal name is an alias. */
47964710 42140#if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
a848cd7e 42141choke me
a848cd7e
SC
42142#endif
42143
42144int
42145main ()
42146{
47964710 42147return sched_get_priority_max ();
a848cd7e
SC
42148 ;
42149 return 0;
42150}
42151_ACEOF
42152rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42153if { (ac_try="$ac_link"
42154case "(($ac_try" in
42155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42156 *) ac_try_echo=$ac_try;;
42157esac
42158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42159 (eval "$ac_link") 2>conftest.er1
a848cd7e 42160 ac_status=$?
ac1cb8d3
VS
42161 grep -v '^ *+' conftest.er1 >conftest.err
42162 rm -f conftest.er1
42163 cat conftest.err >&5
a848cd7e 42164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42165 (exit $ac_status); } && {
42166 test -z "$ac_c_werror_flag" ||
42167 test ! -s conftest.err
42168 } && test -s conftest$ac_exeext &&
42169 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
42170 ac_cv_func_sched_get_priority_max=yes
42171else
42172 echo "$as_me: failed program was:" >&5
42173sed 's/^/| /' conftest.$ac_ext >&5
42174
47964710 42175 ac_cv_func_sched_get_priority_max=no
a848cd7e 42176fi
47964710
VS
42177
42178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 42179 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42180fi
47964710
VS
42181{ echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
42182echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
a848cd7e
SC
42183if test $ac_cv_func_sched_get_priority_max = yes; then
42184 HAVE_PRIOR_FUNCS=1
42185else
47964710
VS
42186 { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
42187echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
a848cd7e
SC
42188if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
42189 echo $ECHO_N "(cached) $ECHO_C" >&6
42190else
42191 ac_check_lib_save_LIBS=$LIBS
42192LIBS="-lposix4 $LIBS"
42193cat >conftest.$ac_ext <<_ACEOF
42194/* confdefs.h. */
42195_ACEOF
42196cat confdefs.h >>conftest.$ac_ext
42197cat >>conftest.$ac_ext <<_ACEOF
42198/* end confdefs.h. */
42199
47964710
VS
42200/* Override any GCC internal prototype to avoid an error.
42201 Use char because int might match the return type of a GCC
42202 builtin and then its argument prototype would still apply. */
a848cd7e
SC
42203#ifdef __cplusplus
42204extern "C"
42205#endif
a848cd7e
SC
42206char sched_get_priority_max ();
42207int
42208main ()
42209{
47964710 42210return sched_get_priority_max ();
a848cd7e
SC
42211 ;
42212 return 0;
42213}
42214_ACEOF
42215rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42216if { (ac_try="$ac_link"
42217case "(($ac_try" in
42218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42219 *) ac_try_echo=$ac_try;;
42220esac
42221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42222 (eval "$ac_link") 2>conftest.er1
a848cd7e 42223 ac_status=$?
ac1cb8d3
VS
42224 grep -v '^ *+' conftest.er1 >conftest.err
42225 rm -f conftest.er1
42226 cat conftest.err >&5
a848cd7e 42227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42228 (exit $ac_status); } && {
42229 test -z "$ac_c_werror_flag" ||
42230 test ! -s conftest.err
42231 } && test -s conftest$ac_exeext &&
42232 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
42233 ac_cv_lib_posix4_sched_get_priority_max=yes
42234else
42235 echo "$as_me: failed program was:" >&5
42236sed 's/^/| /' conftest.$ac_ext >&5
42237
47964710 42238 ac_cv_lib_posix4_sched_get_priority_max=no
a848cd7e 42239fi
47964710
VS
42240
42241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 42242 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42243LIBS=$ac_check_lib_save_LIBS
42244fi
47964710
VS
42245{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
42246echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
a848cd7e
SC
42247if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
42248
42249 HAVE_PRIOR_FUNCS=1
42250 POSIX4_LINK=" -lposix4"
42251
42252fi
42253
42254
42255fi
42256
42257
42258fi
42259
42260
42261fi
42262
42263
42264 if test "$HAVE_PRIOR_FUNCS" = 1; then
42265 cat >>confdefs.h <<\_ACEOF
42266#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
42267_ACEOF
42268
42269 else
42270 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
42271echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
42272 fi
42273
47964710
VS
42274 { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
42275echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
a848cd7e
SC
42276if test "${ac_cv_func_pthread_cancel+set}" = set; then
42277 echo $ECHO_N "(cached) $ECHO_C" >&6
42278else
42279 cat >conftest.$ac_ext <<_ACEOF
42280/* confdefs.h. */
42281_ACEOF
42282cat confdefs.h >>conftest.$ac_ext
42283cat >>conftest.$ac_ext <<_ACEOF
42284/* end confdefs.h. */
ac1cb8d3
VS
42285/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
42286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42287#define pthread_cancel innocuous_pthread_cancel
42288
a848cd7e
SC
42289/* System header to define __stub macros and hopefully few prototypes,
42290 which can conflict with char pthread_cancel (); below.
42291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42292 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42293
a848cd7e
SC
42294#ifdef __STDC__
42295# include <limits.h>
42296#else
42297# include <assert.h>
42298#endif
ac1cb8d3
VS
42299
42300#undef pthread_cancel
42301
47964710
VS
42302/* Override any GCC internal prototype to avoid an error.
42303 Use char because int might match the return type of a GCC
42304 builtin and then its argument prototype would still apply. */
a848cd7e
SC
42305#ifdef __cplusplus
42306extern "C"
a848cd7e 42307#endif
a848cd7e
SC
42308char pthread_cancel ();
42309/* The GNU C library defines this for functions which it implements
42310 to always fail with ENOSYS. Some functions are actually named
42311 something starting with __ and the normal name is an alias. */
47964710 42312#if defined __stub_pthread_cancel || defined __stub___pthread_cancel
a848cd7e 42313choke me
a848cd7e
SC
42314#endif
42315
42316int
42317main ()
42318{
47964710 42319return pthread_cancel ();
a848cd7e
SC
42320 ;
42321 return 0;
42322}
42323_ACEOF
42324rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42325if { (ac_try="$ac_link"
42326case "(($ac_try" in
42327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42328 *) ac_try_echo=$ac_try;;
42329esac
42330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42331 (eval "$ac_link") 2>conftest.er1
a848cd7e 42332 ac_status=$?
ac1cb8d3
VS
42333 grep -v '^ *+' conftest.er1 >conftest.err
42334 rm -f conftest.er1
42335 cat conftest.err >&5
a848cd7e 42336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42337 (exit $ac_status); } && {
42338 test -z "$ac_c_werror_flag" ||
42339 test ! -s conftest.err
42340 } && test -s conftest$ac_exeext &&
42341 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
42342 ac_cv_func_pthread_cancel=yes
42343else
42344 echo "$as_me: failed program was:" >&5
42345sed 's/^/| /' conftest.$ac_ext >&5
42346
47964710 42347 ac_cv_func_pthread_cancel=no
a848cd7e 42348fi
47964710
VS
42349
42350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 42351 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42352fi
47964710
VS
42353{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
42354echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
a848cd7e
SC
42355if test $ac_cv_func_pthread_cancel = yes; then
42356 cat >>confdefs.h <<\_ACEOF
42357#define HAVE_PTHREAD_CANCEL 1
42358_ACEOF
42359
42360else
42361 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
42362echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
42363fi
42364
42365
47964710
VS
42366 { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
42367echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
e55a667c
VZ
42368if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
42369 echo $ECHO_N "(cached) $ECHO_C" >&6
42370else
42371 cat >conftest.$ac_ext <<_ACEOF
42372/* confdefs.h. */
42373_ACEOF
42374cat confdefs.h >>conftest.$ac_ext
42375cat >>conftest.$ac_ext <<_ACEOF
42376/* end confdefs.h. */
42377/* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
42378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42379#define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
42380
42381/* System header to define __stub macros and hopefully few prototypes,
42382 which can conflict with char pthread_mutex_timedlock (); below.
42383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42384 <limits.h> exists even on freestanding compilers. */
42385
42386#ifdef __STDC__
42387# include <limits.h>
42388#else
42389# include <assert.h>
42390#endif
42391
42392#undef pthread_mutex_timedlock
42393
47964710
VS
42394/* Override any GCC internal prototype to avoid an error.
42395 Use char because int might match the return type of a GCC
42396 builtin and then its argument prototype would still apply. */
e55a667c
VZ
42397#ifdef __cplusplus
42398extern "C"
42399#endif
42400char pthread_mutex_timedlock ();
42401/* The GNU C library defines this for functions which it implements
42402 to always fail with ENOSYS. Some functions are actually named
42403 something starting with __ and the normal name is an alias. */
47964710 42404#if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
e55a667c
VZ
42405choke me
42406#endif
42407
42408int
42409main ()
42410{
47964710 42411return pthread_mutex_timedlock ();
e55a667c
VZ
42412 ;
42413 return 0;
42414}
42415_ACEOF
42416rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42417if { (ac_try="$ac_link"
42418case "(($ac_try" in
42419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42420 *) ac_try_echo=$ac_try;;
42421esac
42422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42423 (eval "$ac_link") 2>conftest.er1
e55a667c
VZ
42424 ac_status=$?
42425 grep -v '^ *+' conftest.er1 >conftest.err
42426 rm -f conftest.er1
42427 cat conftest.err >&5
42428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42429 (exit $ac_status); } && {
42430 test -z "$ac_c_werror_flag" ||
42431 test ! -s conftest.err
42432 } && test -s conftest$ac_exeext &&
42433 $as_test_x conftest$ac_exeext; then
e55a667c
VZ
42434 ac_cv_func_pthread_mutex_timedlock=yes
42435else
42436 echo "$as_me: failed program was:" >&5
42437sed 's/^/| /' conftest.$ac_ext >&5
42438
47964710 42439 ac_cv_func_pthread_mutex_timedlock=no
e55a667c 42440fi
47964710
VS
42441
42442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
e55a667c
VZ
42443 conftest$ac_exeext conftest.$ac_ext
42444fi
47964710
VS
42445{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
42446echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
e55a667c
VZ
42447if test $ac_cv_func_pthread_mutex_timedlock = yes; then
42448 cat >>confdefs.h <<\_ACEOF
42449#define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
42450_ACEOF
42451
42452else
42453 { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
42454echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
42455fi
42456
42457
47964710
VS
42458 { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
42459echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
abc736fd
MW
42460if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
42461 echo $ECHO_N "(cached) $ECHO_C" >&6
42462else
42463 cat >conftest.$ac_ext <<_ACEOF
42464/* confdefs.h. */
42465_ACEOF
42466cat confdefs.h >>conftest.$ac_ext
42467cat >>conftest.$ac_ext <<_ACEOF
42468/* end confdefs.h. */
42469/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
42470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42471#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
42472
42473/* System header to define __stub macros and hopefully few prototypes,
42474 which can conflict with char pthread_attr_setstacksize (); below.
42475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42476 <limits.h> exists even on freestanding compilers. */
42477
42478#ifdef __STDC__
42479# include <limits.h>
42480#else
42481# include <assert.h>
42482#endif
42483
42484#undef pthread_attr_setstacksize
42485
47964710
VS
42486/* Override any GCC internal prototype to avoid an error.
42487 Use char because int might match the return type of a GCC
42488 builtin and then its argument prototype would still apply. */
abc736fd
MW
42489#ifdef __cplusplus
42490extern "C"
abc736fd 42491#endif
abc736fd
MW
42492char pthread_attr_setstacksize ();
42493/* The GNU C library defines this for functions which it implements
42494 to always fail with ENOSYS. Some functions are actually named
42495 something starting with __ and the normal name is an alias. */
47964710 42496#if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
abc736fd 42497choke me
abc736fd
MW
42498#endif
42499
42500int
42501main ()
42502{
47964710 42503return pthread_attr_setstacksize ();
abc736fd
MW
42504 ;
42505 return 0;
42506}
42507_ACEOF
42508rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42509if { (ac_try="$ac_link"
42510case "(($ac_try" in
42511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42512 *) ac_try_echo=$ac_try;;
42513esac
42514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42515 (eval "$ac_link") 2>conftest.er1
abc736fd
MW
42516 ac_status=$?
42517 grep -v '^ *+' conftest.er1 >conftest.err
42518 rm -f conftest.er1
42519 cat conftest.err >&5
42520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42521 (exit $ac_status); } && {
42522 test -z "$ac_c_werror_flag" ||
42523 test ! -s conftest.err
42524 } && test -s conftest$ac_exeext &&
42525 $as_test_x conftest$ac_exeext; then
abc736fd
MW
42526 ac_cv_func_pthread_attr_setstacksize=yes
42527else
42528 echo "$as_me: failed program was:" >&5
42529sed 's/^/| /' conftest.$ac_ext >&5
42530
47964710 42531 ac_cv_func_pthread_attr_setstacksize=no
abc736fd 42532fi
47964710
VS
42533
42534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
abc736fd
MW
42535 conftest$ac_exeext conftest.$ac_ext
42536fi
47964710
VS
42537{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
42538echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
abc736fd
MW
42539if test $ac_cv_func_pthread_attr_setstacksize = yes; then
42540 cat >>confdefs.h <<\_ACEOF
42541#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
42542_ACEOF
42543
42544fi
42545
a848cd7e
SC
42546
42547
47964710
VS
42548 { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
42549echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
a848cd7e
SC
42550if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
42551 echo $ECHO_N "(cached) $ECHO_C" >&6
42552else
42553
42554 cat >conftest.$ac_ext <<_ACEOF
42555/* confdefs.h. */
42556_ACEOF
42557cat confdefs.h >>conftest.$ac_ext
42558cat >>conftest.$ac_ext <<_ACEOF
42559/* end confdefs.h. */
42560#include <pthread.h>
42561int
42562main ()
42563{
42564
42565 pthread_mutexattr_t attr;
42566 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42567
42568 ;
42569 return 0;
42570}
42571_ACEOF
42572rm -f conftest.$ac_objext
47964710
VS
42573if { (ac_try="$ac_compile"
42574case "(($ac_try" in
42575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42576 *) ac_try_echo=$ac_try;;
42577esac
42578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42579 (eval "$ac_compile") 2>conftest.er1
a848cd7e 42580 ac_status=$?
ac1cb8d3
VS
42581 grep -v '^ *+' conftest.er1 >conftest.err
42582 rm -f conftest.er1
42583 cat conftest.err >&5
a848cd7e 42584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42585 (exit $ac_status); } && {
42586 test -z "$ac_c_werror_flag" ||
42587 test ! -s conftest.err
42588 } && test -s conftest.$ac_objext; then
123dca7d 42589 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
42590else
42591 echo "$as_me: failed program was:" >&5
42592sed 's/^/| /' conftest.$ac_ext >&5
42593
47964710 42594 wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
42595
42596fi
47964710
VS
42597
42598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42599
42600fi
47964710
VS
42601{ echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
42602echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
a848cd7e
SC
42603
42604 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
42605 cat >>confdefs.h <<\_ACEOF
42606#define HAVE_PTHREAD_MUTEXATTR_T 1
42607_ACEOF
42608
123dca7d 42609
47964710
VS
42610 { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
42611echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
123dca7d
VZ
42612if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
42613 echo $ECHO_N "(cached) $ECHO_C" >&6
42614else
42615
42616 cat >conftest.$ac_ext <<_ACEOF
42617/* confdefs.h. */
42618_ACEOF
42619cat confdefs.h >>conftest.$ac_ext
42620cat >>conftest.$ac_ext <<_ACEOF
42621/* end confdefs.h. */
42622#include <pthread.h>
42623int
42624main ()
42625{
42626
42627 pthread_mutexattr_t attr;
42628 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42629
42630 ;
42631 return 0;
42632}
42633_ACEOF
42634rm -f conftest.$ac_objext
47964710
VS
42635if { (ac_try="$ac_compile"
42636case "(($ac_try" in
42637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42638 *) ac_try_echo=$ac_try;;
42639esac
42640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42641 (eval "$ac_compile") 2>conftest.er1
123dca7d
VZ
42642 ac_status=$?
42643 grep -v '^ *+' conftest.er1 >conftest.err
42644 rm -f conftest.er1
42645 cat conftest.err >&5
42646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42647 (exit $ac_status); } && {
42648 test -z "$ac_c_werror_flag" ||
42649 test ! -s conftest.err
42650 } && test -s conftest.$ac_objext; then
123dca7d
VZ
42651 wx_cv_func_pthread_mutexattr_settype_decl=yes
42652else
42653 echo "$as_me: failed program was:" >&5
42654sed 's/^/| /' conftest.$ac_ext >&5
42655
47964710 42656 wx_cv_func_pthread_mutexattr_settype_decl=no
123dca7d
VZ
42657
42658fi
47964710
VS
42659
42660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
123dca7d
VZ
42661
42662fi
47964710
VS
42663{ echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
42664echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
123dca7d
VZ
42665 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
42666 cat >>confdefs.h <<\_ACEOF
42667#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
42668_ACEOF
42669
42670 fi
a848cd7e 42671 else
47964710
VS
42672 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
42673echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
a848cd7e
SC
42674if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
42675 echo $ECHO_N "(cached) $ECHO_C" >&6
42676else
42677
42678 cat >conftest.$ac_ext <<_ACEOF
42679/* confdefs.h. */
42680_ACEOF
42681cat confdefs.h >>conftest.$ac_ext
42682cat >>conftest.$ac_ext <<_ACEOF
42683/* end confdefs.h. */
42684#include <pthread.h>
42685int
42686main ()
42687{
42688
42689 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
42690
42691 ;
42692 return 0;
42693}
42694_ACEOF
42695rm -f conftest.$ac_objext
47964710
VS
42696if { (ac_try="$ac_compile"
42697case "(($ac_try" in
42698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42699 *) ac_try_echo=$ac_try;;
42700esac
42701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42702 (eval "$ac_compile") 2>conftest.er1
a848cd7e 42703 ac_status=$?
ac1cb8d3
VS
42704 grep -v '^ *+' conftest.er1 >conftest.err
42705 rm -f conftest.er1
42706 cat conftest.err >&5
a848cd7e 42707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42708 (exit $ac_status); } && {
42709 test -z "$ac_c_werror_flag" ||
42710 test ! -s conftest.err
42711 } && test -s conftest.$ac_objext; then
a848cd7e
SC
42712
42713 wx_cv_type_pthread_rec_mutex_init=yes
42714
42715else
42716 echo "$as_me: failed program was:" >&5
42717sed 's/^/| /' conftest.$ac_ext >&5
42718
42719
42720 wx_cv_type_pthread_rec_mutex_init=no
42721
42722
42723fi
47964710
VS
42724
42725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42726
42727fi
47964710
VS
42728{ echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
42729echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
a848cd7e
SC
42730 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
42731 cat >>confdefs.h <<\_ACEOF
42732#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
42733_ACEOF
42734
42735 else
42736 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
42737echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
42738 fi
42739 fi
42740 fi
42741
42742else
42743 if test "$wxUSE_THREADS" = "yes" ; then
42744 case "${host}" in
42745 *-*-mingw32* )
47964710
VS
42746 { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
42747echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
a848cd7e
SC
42748if test "${wx_cv_cflags_mthread+set}" = set; then
42749 echo $ECHO_N "(cached) $ECHO_C" >&6
42750else
42751
9b8888f9
VZ
42752 CFLAGS_OLD="$CFLAGS"
42753 CFLAGS="-mthreads $CFLAGS"
a848cd7e
SC
42754 cat >conftest.$ac_ext <<_ACEOF
42755/* confdefs.h. */
42756_ACEOF
42757cat confdefs.h >>conftest.$ac_ext
42758cat >>conftest.$ac_ext <<_ACEOF
42759/* end confdefs.h. */
42760
42761int
42762main ()
42763{
42764
42765 ;
42766 return 0;
42767}
42768_ACEOF
42769rm -f conftest.$ac_objext
47964710
VS
42770if { (ac_try="$ac_compile"
42771case "(($ac_try" in
42772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42773 *) ac_try_echo=$ac_try;;
42774esac
42775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42776 (eval "$ac_compile") 2>conftest.er1
a848cd7e 42777 ac_status=$?
ac1cb8d3
VS
42778 grep -v '^ *+' conftest.er1 >conftest.err
42779 rm -f conftest.er1
42780 cat conftest.err >&5
a848cd7e 42781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42782 (exit $ac_status); } && {
42783 test -z "$ac_c_werror_flag" ||
42784 test ! -s conftest.err
42785 } && test -s conftest.$ac_objext; then
a848cd7e
SC
42786 wx_cv_cflags_mthread=yes
42787else
42788 echo "$as_me: failed program was:" >&5
42789sed 's/^/| /' conftest.$ac_ext >&5
42790
47964710 42791 wx_cv_cflags_mthread=no
a848cd7e
SC
42792
42793fi
47964710
VS
42794
42795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42796
42797
42798fi
47964710
VS
42799{ echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
42800echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
a848cd7e
SC
42801
42802 if test "$wx_cv_cflags_mthread" = "yes"; then
9b8888f9 42803 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
42804 LDFLAGS="$LDFLAGS -mthreads"
42805 else
9b8888f9 42806 CFLAGS="$CFLAGS_OLD"
a848cd7e
SC
42807 fi
42808 ;;
42809 *-pc-os2*emx )
5ff751d6 42810 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
42811 LDFLAGS="$LDFLAGS -Zmt"
42812 ;;
42813 esac
42814 fi
42815fi
42816
47964710
VS
42817{ echo "$as_me:$LINENO: checking for localtime_r" >&5
42818echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
004ee6da 42819if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
42820 echo $ECHO_N "(cached) $ECHO_C" >&6
42821else
42822 cat >conftest.$ac_ext <<_ACEOF
42823/* confdefs.h. */
42824_ACEOF
42825cat confdefs.h >>conftest.$ac_ext
42826cat >>conftest.$ac_ext <<_ACEOF
42827/* end confdefs.h. */
004ee6da 42828/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 42829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 42830#define localtime_r innocuous_localtime_r
ac1cb8d3 42831
a848cd7e 42832/* System header to define __stub macros and hopefully few prototypes,
004ee6da 42833 which can conflict with char localtime_r (); below.
a848cd7e
SC
42834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42835 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42836
a848cd7e
SC
42837#ifdef __STDC__
42838# include <limits.h>
42839#else
42840# include <assert.h>
42841#endif
ac1cb8d3 42842
004ee6da 42843#undef localtime_r
ac1cb8d3 42844
47964710
VS
42845/* Override any GCC internal prototype to avoid an error.
42846 Use char because int might match the return type of a GCC
42847 builtin and then its argument prototype would still apply. */
a848cd7e
SC
42848#ifdef __cplusplus
42849extern "C"
a848cd7e 42850#endif
004ee6da 42851char localtime_r ();
a848cd7e
SC
42852/* The GNU C library defines this for functions which it implements
42853 to always fail with ENOSYS. Some functions are actually named
42854 something starting with __ and the normal name is an alias. */
47964710 42855#if defined __stub_localtime_r || defined __stub___localtime_r
a848cd7e 42856choke me
a848cd7e
SC
42857#endif
42858
42859int
42860main ()
42861{
47964710 42862return localtime_r ();
004ee6da
RL
42863 ;
42864 return 0;
42865}
42866_ACEOF
42867rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42868if { (ac_try="$ac_link"
42869case "(($ac_try" in
42870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42871 *) ac_try_echo=$ac_try;;
42872esac
42873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42874 (eval "$ac_link") 2>conftest.er1
004ee6da
RL
42875 ac_status=$?
42876 grep -v '^ *+' conftest.er1 >conftest.err
42877 rm -f conftest.er1
42878 cat conftest.err >&5
42879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42880 (exit $ac_status); } && {
42881 test -z "$ac_c_werror_flag" ||
42882 test ! -s conftest.err
42883 } && test -s conftest$ac_exeext &&
42884 $as_test_x conftest$ac_exeext; then
004ee6da
RL
42885 ac_cv_func_localtime_r=yes
42886else
42887 echo "$as_me: failed program was:" >&5
42888sed 's/^/| /' conftest.$ac_ext >&5
42889
47964710 42890 ac_cv_func_localtime_r=no
004ee6da 42891fi
47964710
VS
42892
42893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
004ee6da
RL
42894 conftest$ac_exeext conftest.$ac_ext
42895fi
47964710
VS
42896{ echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42897echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
004ee6da
RL
42898if test $ac_cv_func_localtime_r = yes; then
42899 cat >>confdefs.h <<\_ACEOF
42900#define HAVE_LOCALTIME_R 1
42901_ACEOF
42902
42903fi
42904
47964710
VS
42905{ echo "$as_me:$LINENO: checking for gmtime_r" >&5
42906echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
004ee6da
RL
42907if test "${ac_cv_func_gmtime_r+set}" = set; then
42908 echo $ECHO_N "(cached) $ECHO_C" >&6
42909else
42910 cat >conftest.$ac_ext <<_ACEOF
42911/* confdefs.h. */
42912_ACEOF
42913cat confdefs.h >>conftest.$ac_ext
42914cat >>conftest.$ac_ext <<_ACEOF
42915/* end confdefs.h. */
42916/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42918#define gmtime_r innocuous_gmtime_r
42919
42920/* System header to define __stub macros and hopefully few prototypes,
42921 which can conflict with char gmtime_r (); below.
42922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42923 <limits.h> exists even on freestanding compilers. */
42924
42925#ifdef __STDC__
42926# include <limits.h>
42927#else
42928# include <assert.h>
42929#endif
42930
42931#undef gmtime_r
42932
47964710
VS
42933/* Override any GCC internal prototype to avoid an error.
42934 Use char because int might match the return type of a GCC
42935 builtin and then its argument prototype would still apply. */
004ee6da
RL
42936#ifdef __cplusplus
42937extern "C"
004ee6da 42938#endif
004ee6da
RL
42939char gmtime_r ();
42940/* The GNU C library defines this for functions which it implements
42941 to always fail with ENOSYS. Some functions are actually named
42942 something starting with __ and the normal name is an alias. */
47964710 42943#if defined __stub_gmtime_r || defined __stub___gmtime_r
004ee6da 42944choke me
004ee6da
RL
42945#endif
42946
42947int
42948main ()
42949{
47964710 42950return gmtime_r ();
004ee6da
RL
42951 ;
42952 return 0;
42953}
42954_ACEOF
42955rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42956if { (ac_try="$ac_link"
42957case "(($ac_try" in
42958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42959 *) ac_try_echo=$ac_try;;
42960esac
42961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42962 (eval "$ac_link") 2>conftest.er1
004ee6da
RL
42963 ac_status=$?
42964 grep -v '^ *+' conftest.er1 >conftest.err
42965 rm -f conftest.er1
42966 cat conftest.err >&5
42967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42968 (exit $ac_status); } && {
42969 test -z "$ac_c_werror_flag" ||
42970 test ! -s conftest.err
42971 } && test -s conftest$ac_exeext &&
42972 $as_test_x conftest$ac_exeext; then
004ee6da
RL
42973 ac_cv_func_gmtime_r=yes
42974else
42975 echo "$as_me: failed program was:" >&5
42976sed 's/^/| /' conftest.$ac_ext >&5
42977
47964710 42978 ac_cv_func_gmtime_r=no
004ee6da 42979fi
47964710
VS
42980
42981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
004ee6da
RL
42982 conftest$ac_exeext conftest.$ac_ext
42983fi
47964710
VS
42984{ echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42985echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
004ee6da
RL
42986if test $ac_cv_func_gmtime_r = yes; then
42987 cat >>confdefs.h <<\_ACEOF
42988#define HAVE_GMTIME_R 1
42989_ACEOF
42990
42991fi
42992
004ee6da 42993
004ee6da
RL
42994
42995
42996 ac_ext=c
42997ac_cpp='$CPP $CPPFLAGS'
42998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43000ac_compiler_gnu=$ac_cv_c_compiler_gnu
43001
47964710
VS
43002 { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
43003echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
004ee6da
RL
43004
43005 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
43006 echo $ECHO_N "(cached) $ECHO_C" >&6
43007else
43008
43009
43a7c679 43010################################################################
004ee6da
RL
43011
43012ac_cv_func_which_gethostbyname_r=unknown
43013
43014#
43015# ONE ARGUMENT (sanity check)
43016#
43017
43018# This should fail, as there is no variant of gethostbyname_r() that takes
43019# a single argument. If it actually compiles, then we can assume that
43020# netdb.h is not declaring the function, and the compiler is thereby
43021# assuming an implicit prototype. In which case, we're out of luck.
43022#
43023cat >conftest.$ac_ext <<_ACEOF
43024/* confdefs.h. */
43025_ACEOF
43026cat confdefs.h >>conftest.$ac_ext
43027cat >>conftest.$ac_ext <<_ACEOF
43028/* end confdefs.h. */
43029#include <netdb.h>
43030int
43031main ()
43032{
43033
43034 char *name = "www.gnu.org";
43035 (void)gethostbyname_r(name) /* ; */
43036
43037 ;
43038 return 0;
43039}
43040_ACEOF
43041rm -f conftest.$ac_objext
47964710
VS
43042if { (ac_try="$ac_compile"
43043case "(($ac_try" in
43044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43045 *) ac_try_echo=$ac_try;;
43046esac
43047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43048 (eval "$ac_compile") 2>conftest.er1
004ee6da
RL
43049 ac_status=$?
43050 grep -v '^ *+' conftest.er1 >conftest.err
43051 rm -f conftest.er1
43052 cat conftest.err >&5
43053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
43054 (exit $ac_status); } && {
43055 test -z "$ac_c_werror_flag" ||
43056 test ! -s conftest.err
43057 } && test -s conftest.$ac_objext; then
004ee6da
RL
43058 ac_cv_func_which_gethostbyname_r=no
43059else
43060 echo "$as_me: failed program was:" >&5
43061sed 's/^/| /' conftest.$ac_ext >&5
43062
47964710 43063
004ee6da 43064fi
47964710
VS
43065
43066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
43067
43068#
43069# SIX ARGUMENTS
43070# (e.g. Linux)
43071#
43072
43073if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43074
43075cat >conftest.$ac_ext <<_ACEOF
43076/* confdefs.h. */
43077_ACEOF
43078cat confdefs.h >>conftest.$ac_ext
43079cat >>conftest.$ac_ext <<_ACEOF
43080/* end confdefs.h. */
43081#include <netdb.h>
43082int
43083main ()
43084{
43085
43086 char *name = "www.gnu.org";
43087 struct hostent ret, *retp;
43088 char buf[1024];
43089 int buflen = 1024;
43090 int my_h_errno;
43091 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
43092
43093 ;
43094 return 0;
43095}
43096_ACEOF
43097rm -f conftest.$ac_objext
47964710
VS
43098if { (ac_try="$ac_compile"
43099case "(($ac_try" in
43100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43101 *) ac_try_echo=$ac_try;;
43102esac
43103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43104 (eval "$ac_compile") 2>conftest.er1
004ee6da
RL
43105 ac_status=$?
43106 grep -v '^ *+' conftest.er1 >conftest.err
43107 rm -f conftest.er1
43108 cat conftest.err >&5
43109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
43110 (exit $ac_status); } && {
43111 test -z "$ac_c_werror_flag" ||
43112 test ! -s conftest.err
43113 } && test -s conftest.$ac_objext; then
004ee6da
RL
43114 ac_cv_func_which_gethostbyname_r=six
43115else
43116 echo "$as_me: failed program was:" >&5
43117sed 's/^/| /' conftest.$ac_ext >&5
43118
47964710 43119
004ee6da 43120fi
47964710
VS
43121
43122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
43123
43124fi
43125
43126#
43127# FIVE ARGUMENTS
43128# (e.g. Solaris)
43129#
43130
43131if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43132
43133cat >conftest.$ac_ext <<_ACEOF
43134/* confdefs.h. */
43135_ACEOF
43136cat confdefs.h >>conftest.$ac_ext
43137cat >>conftest.$ac_ext <<_ACEOF
43138/* end confdefs.h. */
43139#include <netdb.h>
43140int
43141main ()
43142{
43143
43144 char *name = "www.gnu.org";
43145 struct hostent ret;
43146 char buf[1024];
43147 int buflen = 1024;
43148 int my_h_errno;
43149 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
43150
43151 ;
43152 return 0;
43153}
43154_ACEOF
43155rm -f conftest.$ac_objext
47964710
VS
43156if { (ac_try="$ac_compile"
43157case "(($ac_try" in
43158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43159 *) ac_try_echo=$ac_try;;
43160esac
43161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43162 (eval "$ac_compile") 2>conftest.er1
004ee6da
RL
43163 ac_status=$?
43164 grep -v '^ *+' conftest.er1 >conftest.err
43165 rm -f conftest.er1
43166 cat conftest.err >&5
43167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
43168 (exit $ac_status); } && {
43169 test -z "$ac_c_werror_flag" ||
43170 test ! -s conftest.err
43171 } && test -s conftest.$ac_objext; then
004ee6da
RL
43172 ac_cv_func_which_gethostbyname_r=five
43173else
43174 echo "$as_me: failed program was:" >&5
43175sed 's/^/| /' conftest.$ac_ext >&5
43176
47964710 43177
004ee6da 43178fi
47964710
VS
43179
43180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
43181
43182fi
43183
43184#
43185# THREE ARGUMENTS
43186# (e.g. AIX, HP-UX, Tru64)
43187#
43188
43189if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43190
43191cat >conftest.$ac_ext <<_ACEOF
43192/* confdefs.h. */
43193_ACEOF
43194cat confdefs.h >>conftest.$ac_ext
43195cat >>conftest.$ac_ext <<_ACEOF
43196/* end confdefs.h. */
43197#include <netdb.h>
43198int
43199main ()
43200{
43201
43202 char *name = "www.gnu.org";
43203 struct hostent ret;
43204 struct hostent_data data;
43205 (void)gethostbyname_r(name, &ret, &data) /* ; */
43206
43207 ;
43208 return 0;
43209}
43210_ACEOF
43211rm -f conftest.$ac_objext
47964710
VS
43212if { (ac_try="$ac_compile"
43213case "(($ac_try" in
43214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43215 *) ac_try_echo=$ac_try;;
43216esac
43217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43218 (eval "$ac_compile") 2>conftest.er1
004ee6da
RL
43219 ac_status=$?
43220 grep -v '^ *+' conftest.er1 >conftest.err
43221 rm -f conftest.er1
43222 cat conftest.err >&5
43223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
43224 (exit $ac_status); } && {
43225 test -z "$ac_c_werror_flag" ||
43226 test ! -s conftest.err
43227 } && test -s conftest.$ac_objext; then
004ee6da
RL
43228 ac_cv_func_which_gethostbyname_r=three
43229else
43230 echo "$as_me: failed program was:" >&5
43231sed 's/^/| /' conftest.$ac_ext >&5
43232
47964710 43233
004ee6da 43234fi
47964710
VS
43235
43236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
43237
43238fi
43239
43a7c679 43240################################################################
004ee6da
RL
43241
43242
43243fi
43244
43245case "$ac_cv_func_which_gethostbyname_r" in
43246 three)
47964710
VS
43247 { echo "$as_me:$LINENO: result: three" >&5
43248echo "${ECHO_T}three" >&6; }
004ee6da
RL
43249 cat >>confdefs.h <<\_ACEOF
43250#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
43251_ACEOF
43252
43253 ;;
43254
43255 five)
47964710
VS
43256 { echo "$as_me:$LINENO: result: five" >&5
43257echo "${ECHO_T}five" >&6; }
004ee6da
RL
43258 cat >>confdefs.h <<\_ACEOF
43259#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
43260_ACEOF
43261
43262 ;;
43263
43264 six)
47964710
VS
43265 { echo "$as_me:$LINENO: result: six" >&5
43266echo "${ECHO_T}six" >&6; }
004ee6da
RL
43267 cat >>confdefs.h <<\_ACEOF
43268#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
43269_ACEOF
43270
43271 ;;
43272
43273 no)
47964710
VS
43274 { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
43275echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
004ee6da
RL
43276 ;;
43277
43278 unknown)
47964710
VS
43279 { echo "$as_me:$LINENO: result: can't tell" >&5
43280echo "${ECHO_T}can't tell" >&6; }
004ee6da
RL
43281 ;;
43282
43283 *)
43284 { { echo "$as_me:$LINENO: error: internal error" >&5
43285echo "$as_me: error: internal error" >&2;}
43286 { (exit 1); exit 1; }; }
43287 ;;
43288esac
43289
fd5199d6
VZ
43290ac_ext=c
43291ac_cpp='$CPP $CPPFLAGS'
43292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43294ac_compiler_gnu=$ac_cv_c_compiler_gnu
004ee6da
RL
43295
43296
43297
43298 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
ec3edcc9 43299 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
47964710
VS
43300 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
43301echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
004ee6da
RL
43302if test "${ac_cv_func_gethostbyname+set}" = set; then
43303 echo $ECHO_N "(cached) $ECHO_C" >&6
43304else
43305 cat >conftest.$ac_ext <<_ACEOF
43306/* confdefs.h. */
43307_ACEOF
43308cat confdefs.h >>conftest.$ac_ext
43309cat >>conftest.$ac_ext <<_ACEOF
43310/* end confdefs.h. */
43311/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
43312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43313#define gethostbyname innocuous_gethostbyname
43314
43315/* System header to define __stub macros and hopefully few prototypes,
43316 which can conflict with char gethostbyname (); below.
43317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43318 <limits.h> exists even on freestanding compilers. */
43319
43320#ifdef __STDC__
43321# include <limits.h>
43322#else
43323# include <assert.h>
43324#endif
43325
43326#undef gethostbyname
43327
47964710
VS
43328/* Override any GCC internal prototype to avoid an error.
43329 Use char because int might match the return type of a GCC
43330 builtin and then its argument prototype would still apply. */
004ee6da
RL
43331#ifdef __cplusplus
43332extern "C"
004ee6da 43333#endif
004ee6da
RL
43334char gethostbyname ();
43335/* The GNU C library defines this for functions which it implements
43336 to always fail with ENOSYS. Some functions are actually named
43337 something starting with __ and the normal name is an alias. */
47964710 43338#if defined __stub_gethostbyname || defined __stub___gethostbyname
004ee6da 43339choke me
004ee6da
RL
43340#endif
43341
43342int
43343main ()
43344{
47964710 43345return gethostbyname ();
004ee6da
RL
43346 ;
43347 return 0;
43348}
43349_ACEOF
43350rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
43351if { (ac_try="$ac_link"
43352case "(($ac_try" in
43353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43354 *) ac_try_echo=$ac_try;;
43355esac
43356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43357 (eval "$ac_link") 2>conftest.er1
004ee6da
RL
43358 ac_status=$?
43359 grep -v '^ *+' conftest.er1 >conftest.err
43360 rm -f conftest.er1
43361 cat conftest.err >&5
43362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
43363 (exit $ac_status); } && {
43364 test -z "$ac_c_werror_flag" ||
43365 test ! -s conftest.err
43366 } && test -s conftest$ac_exeext &&
43367 $as_test_x conftest$ac_exeext; then
004ee6da
RL
43368 ac_cv_func_gethostbyname=yes
43369else
43370 echo "$as_me: failed program was:" >&5
43371sed 's/^/| /' conftest.$ac_ext >&5
43372
47964710 43373 ac_cv_func_gethostbyname=no
004ee6da 43374fi
47964710
VS
43375
43376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
004ee6da
RL
43377 conftest$ac_exeext conftest.$ac_ext
43378fi
47964710
VS
43379{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
43380echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
004ee6da
RL
43381if test $ac_cv_func_gethostbyname = yes; then
43382 cat >>confdefs.h <<\_ACEOF
43383#define HAVE_GETHOSTBYNAME 1
43384_ACEOF
43385
43386fi
43387
43388 fi
111d9948 43389
47964710
VS
43390{ echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
43391echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
43a7c679 43392if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
4fc1c0f0
VS
43393 echo $ECHO_N "(cached) $ECHO_C" >&6
43394else
4fc1c0f0 43395
47964710 43396 ac_ext=cpp
43a7c679
VZ
43397ac_cpp='$CXXCPP $CPPFLAGS'
43398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4fc1c0f0 43401
fd5199d6 43402
3ecd9f92 43403 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
43404/* confdefs.h. */
43405_ACEOF
43406cat confdefs.h >>conftest.$ac_ext
43407cat >>conftest.$ac_ext <<_ACEOF
43408/* end confdefs.h. */
43a7c679 43409#include <netdb.h>
004ee6da
RL
43410int
43411main ()
43412{
43413
43a7c679
VZ
43414 char *name;
43415 char *proto;
43416 struct servent *se, *res;
43417 char buffer[2048];
43418 int buflen = 2048;
43419 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
43420
43421 ;
43422 return 0;
43423}
43424_ACEOF
43425rm -f conftest.$ac_objext
47964710
VS
43426if { (ac_try="$ac_compile"
43427case "(($ac_try" in
43428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43429 *) ac_try_echo=$ac_try;;
43430esac
43431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43432 (eval "$ac_compile") 2>conftest.er1
004ee6da
RL
43433 ac_status=$?
43434 grep -v '^ *+' conftest.er1 >conftest.err
43435 rm -f conftest.er1
43436 cat conftest.err >&5
43437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
43438 (exit $ac_status); } && {
43439 test -z "$ac_cxx_werror_flag" ||
43440 test ! -s conftest.err
43441 } && test -s conftest.$ac_objext; then
43a7c679 43442 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
43443else
43444 echo "$as_me: failed program was:" >&5
43445sed 's/^/| /' conftest.$ac_ext >&5
43446
3ecd9f92 43447
43a7c679 43448 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
43449/* confdefs.h. */
43450_ACEOF
43451cat confdefs.h >>conftest.$ac_ext
43452cat >>conftest.$ac_ext <<_ACEOF
43453/* end confdefs.h. */
43a7c679 43454#include <netdb.h>
004ee6da
RL
43455int
43456main ()
43457{
43458
43a7c679
VZ
43459 char *name;
43460 char *proto;
43461 struct servent *se;
43462 char buffer[2048];
43463 int buflen = 2048;
43464 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
43465
43466 ;
43467 return 0;
43468}
43469_ACEOF
43470rm -f conftest.$ac_objext
47964710
VS
43471if { (ac_try="$ac_compile"
43472case "(($ac_try" in
43473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43474 *) ac_try_echo=$ac_try;;
43475esac
43476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43477 (eval "$ac_compile") 2>conftest.er1
004ee6da
RL
43478 ac_status=$?
43479 grep -v '^ *+' conftest.er1 >conftest.err
43480 rm -f conftest.er1
43481 cat conftest.err >&5
43482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
43483 (exit $ac_status); } && {
43484 test -z "$ac_cxx_werror_flag" ||
43485 test ! -s conftest.err
43486 } && test -s conftest.$ac_objext; then
43a7c679 43487 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
43488else
43489 echo "$as_me: failed program was:" >&5
43490sed 's/^/| /' conftest.$ac_ext >&5
43491
3ecd9f92 43492
43a7c679 43493 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
43494/* confdefs.h. */
43495_ACEOF
43496cat confdefs.h >>conftest.$ac_ext
43497cat >>conftest.$ac_ext <<_ACEOF
43498/* end confdefs.h. */
43a7c679 43499#include <netdb.h>
004ee6da
RL
43500int
43501main ()
43502{
43503
43a7c679
VZ
43504 char *name;
43505 char *proto;
43506 struct servent *se;
43507 struct servent_data data;
43508 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
43509
43510 ;
43511 return 0;
43512}
43513_ACEOF
43514rm -f conftest.$ac_objext
47964710
VS
43515if { (ac_try="$ac_compile"
43516case "(($ac_try" in
43517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43518 *) ac_try_echo=$ac_try;;
43519esac
43520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43521 (eval "$ac_compile") 2>conftest.er1
004ee6da
RL
43522 ac_status=$?
43523 grep -v '^ *+' conftest.er1 >conftest.err
43524 rm -f conftest.er1
43525 cat conftest.err >&5
43526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
43527 (exit $ac_status); } && {
43528 test -z "$ac_cxx_werror_flag" ||
43529 test ! -s conftest.err
43530 } && test -s conftest.$ac_objext; then
43a7c679 43531 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
43532else
43533 echo "$as_me: failed program was:" >&5
43534sed 's/^/| /' conftest.$ac_ext >&5
43535
47964710 43536 ac_cv_func_which_getservbyname_r=no
43a7c679 43537
faa5c14f 43538fi
47964710
VS
43539
43540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
111d9948
VS
43541
43542
004ee6da 43543fi
47964710
VS
43544
43545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 43546
3ecd9f92 43547
111d9948 43548fi
47964710
VS
43549
43550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43a7c679
VZ
43551 ac_ext=c
43552ac_cpp='$CPP $CPPFLAGS'
43553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43555ac_compiler_gnu=$ac_cv_c_compiler_gnu
43556
faa5c14f
VZ
43557
43558
3ecd9f92 43559fi
47964710
VS
43560{ echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
43561echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
004ee6da
RL
43562
43563if test $ac_cv_func_which_getservbyname_r = six; then
43564 cat >>confdefs.h <<\_ACEOF
43565#define HAVE_FUNC_GETSERVBYNAME_R_6 1
43566_ACEOF
43567
43568elif test $ac_cv_func_which_getservbyname_r = five; then
43569 cat >>confdefs.h <<\_ACEOF
43570#define HAVE_FUNC_GETSERVBYNAME_R_5 1
43571_ACEOF
43572
43573elif test $ac_cv_func_which_getservbyname_r = four; then
43574 cat >>confdefs.h <<\_ACEOF
43575#define HAVE_FUNC_GETSERVBYNAME_R_4 1
43576_ACEOF
43577
004ee6da
RL
43578fi
43579
43580
43581 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
ec3edcc9 43582 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
004ee6da
RL
43583
43584for ac_func in getservbyname
43585do
43586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
43587{ echo "$as_me:$LINENO: checking for $ac_func" >&5
43588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
004ee6da
RL
43590 echo $ECHO_N "(cached) $ECHO_C" >&6
43591else
43592 cat >conftest.$ac_ext <<_ACEOF
43593/* confdefs.h. */
43594_ACEOF
43595cat confdefs.h >>conftest.$ac_ext
43596cat >>conftest.$ac_ext <<_ACEOF
43597/* end confdefs.h. */
43598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43600#define $ac_func innocuous_$ac_func
43601
43602/* System header to define __stub macros and hopefully few prototypes,
43603 which can conflict with char $ac_func (); below.
43604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43605 <limits.h> exists even on freestanding compilers. */
43606
43607#ifdef __STDC__
43608# include <limits.h>
43609#else
43610# include <assert.h>
43611#endif
43612
43613#undef $ac_func
43614
47964710
VS
43615/* Override any GCC internal prototype to avoid an error.
43616 Use char because int might match the return type of a GCC
43617 builtin and then its argument prototype would still apply. */
004ee6da
RL
43618#ifdef __cplusplus
43619extern "C"
004ee6da 43620#endif
004ee6da
RL
43621char $ac_func ();
43622/* The GNU C library defines this for functions which it implements
43623 to always fail with ENOSYS. Some functions are actually named
43624 something starting with __ and the normal name is an alias. */
47964710 43625#if defined __stub_$ac_func || defined __stub___$ac_func
004ee6da 43626choke me
004ee6da
RL
43627#endif
43628
43629int
43630main ()
43631{
47964710 43632return $ac_func ();
004ee6da
RL
43633 ;
43634 return 0;
43635}
43636_ACEOF
43637rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
43638if { (ac_try="$ac_link"
43639case "(($ac_try" in
43640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43641 *) ac_try_echo=$ac_try;;
43642esac
43643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43644 (eval "$ac_link") 2>conftest.er1
004ee6da
RL
43645 ac_status=$?
43646 grep -v '^ *+' conftest.er1 >conftest.err
43647 rm -f conftest.er1
43648 cat conftest.err >&5
43649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
43650 (exit $ac_status); } && {
43651 test -z "$ac_c_werror_flag" ||
43652 test ! -s conftest.err
43653 } && test -s conftest$ac_exeext &&
43654 $as_test_x conftest$ac_exeext; then
004ee6da
RL
43655 eval "$as_ac_var=yes"
43656else
43657 echo "$as_me: failed program was:" >&5
43658sed 's/^/| /' conftest.$ac_ext >&5
43659
47964710 43660 eval "$as_ac_var=no"
004ee6da 43661fi
47964710
VS
43662
43663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
004ee6da
RL
43664 conftest$ac_exeext conftest.$ac_ext
43665fi
47964710
VS
43666ac_res=`eval echo '${'$as_ac_var'}'`
43667 { echo "$as_me:$LINENO: result: $ac_res" >&5
43668echo "${ECHO_T}$ac_res" >&6; }
004ee6da
RL
43669if test `eval echo '${'$as_ac_var'}'` = yes; then
43670 cat >>confdefs.h <<_ACEOF
43671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43672_ACEOF
43673 cat >>confdefs.h <<\_ACEOF
43674#define HAVE_GETSERVBYNAME 1
43675_ACEOF
43676
43677fi
43678done
43679
43680 fi
43681
004ee6da
RL
43682if test "$wxUSE_THREADS" = "yes"; then
43683 cat >>confdefs.h <<\_ACEOF
43684#define wxUSE_THREADS 1
43685_ACEOF
43686
43687
43688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
43689else
56632e81 43690 if test "$wx_cv_func_strtok_r" = "yes"; then
47964710
VS
43691 { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
43692echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
004ee6da
RL
43693 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
43694 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
47964710
VS
43695 { echo "$as_me:$LINENO: result: yes" >&5
43696echo "${ECHO_T}yes" >&6; }
004ee6da 43697 else
47964710
VS
43698 { echo "$as_me:$LINENO: result: no" >&5
43699echo "${ECHO_T}no" >&6; }
004ee6da
RL
43700 fi
43701 fi
43702fi
43703
43704if test "$WXGTK20" = 1 ; then
43705 cat >>confdefs.h <<_ACEOF
43706#define __WXGTK20__ $WXGTK20
43707_ACEOF
43708
43709 WXGTK12=1
43710fi
43711
43712if test "$WXGTK12" = 1 ; then
43713 cat >>confdefs.h <<_ACEOF
43714#define __WXGTK12__ $WXGTK12
43715_ACEOF
43716
43717fi
43718
43719if test "$WXGTK127" = 1 ; then
43720 cat >>confdefs.h <<_ACEOF
43721#define __WXGTK127__ $WXGTK127
43722_ACEOF
43723
43724fi
43725
43726if test "$WXGPE" = 1 ; then
43727 cat >>confdefs.h <<_ACEOF
43728#define __WXGPE__ $WXGPE
43729_ACEOF
43730
43731fi
43732
43733DEBUG_CFLAGS=
43734if test "$wxUSE_DEBUG_INFO" = "yes" ; then
43735 DEBUG_CFLAGS="-g"
43736 wxUSE_OPTIMISE=no
43737fi
43738
43739if test "$wxUSE_DEBUG_GDB" = "yes" ; then
43740 wxUSE_DEBUG_INFO=yes
43741 if test "$GCC" = yes; then
43742 DEBUG_CFLAGS="-ggdb"
43743 fi
43744fi
43745
43746if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
43747 cat >>confdefs.h <<\_ACEOF
43748#define WXDEBUG 1
43749_ACEOF
43750
43751 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
43752else
43753 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
43754 if test "x$wxGTK_VERSION" = "x1" ; then
43755 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
43756 fi
004ee6da
RL
43757 fi
43758fi
43759
43760if test "$wxUSE_MEM_TRACING" = "yes" ; then
43761 cat >>confdefs.h <<\_ACEOF
43762#define wxUSE_MEMORY_TRACING 1
43763_ACEOF
43764
43765 cat >>confdefs.h <<\_ACEOF
43766#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
43767_ACEOF
43768
43769 cat >>confdefs.h <<\_ACEOF
43770#define wxUSE_DEBUG_NEW_ALWAYS 1
43771_ACEOF
43772
43773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
43774fi
43775
43776if test "$wxUSE_DMALLOC" = "yes" ; then
43777 DMALLOC_LIBS="-ldmallocthcxx"
43778fi
43779
43780PROFILE_FLAGS=
43781if test "$wxUSE_PROFILE" = "yes" ; then
43782 PROFILE_FLAGS=" -pg"
43783fi
43784
43785if test "$GCC" = "yes" ; then
43786 if test "$wxUSE_NO_RTTI" = "yes" ; then
43787 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
43788 fi
43789 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43790 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
43791 fi
43792 if test "$wxUSE_PERMISSIVE" = "yes" ; then
43793 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
43794 fi
43795
43796 case "${host}" in
43797 powerpc*-*-aix* )
43798 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
43799 ;;
43800 *-hppa* )
43801 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
43802 ;;
43803 esac
43804fi
43805
43806OPTIMISE_CFLAGS=
43807if test "$wxUSE_OPTIMISE" = "no" ; then
43808 if test "$GCC" = yes ; then
43809 OPTIMISE_CFLAGS="-O0"
43810 fi
43811else
43812 if test "$GCC" = yes ; then
e5efa97e
VZ
43813 case "${host}" in
43814 *-pc-os2_emx | *-pc-os2-emx )
43815 OPTIMISE_CFLAGS="-O2"
43816 ;;
43817 *)
43818 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
43819 ;;
43820 esac
004ee6da
RL
43821 else
43822 OPTIMISE_CFLAGS="-O"
43823 fi
43824fi
43825
43826
abb6edd1 43827if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
004ee6da
RL
43828 cat >>confdefs.h <<\_ACEOF
43829#define WXWIN_COMPATIBILITY_2_6 1
43830_ACEOF
43831
abb6edd1
VS
43832
43833 WXWIN_COMPATIBILITY_2_8="yes"
43834fi
43835
43836if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
43837 cat >>confdefs.h <<\_ACEOF
43838#define WXWIN_COMPATIBILITY_2_8 1
43839_ACEOF
43840
004ee6da
RL
43841fi
43842
43843
43844if test "$wxUSE_GUI" = "yes"; then
43845 cat >>confdefs.h <<\_ACEOF
43846#define wxUSE_GUI 1
43847_ACEOF
43848
43849
43850 fi
43851
43852
43853if test "$wxUSE_UNIX" = "yes"; then
43854 cat >>confdefs.h <<\_ACEOF
43855#define wxUSE_UNIX 1
43856_ACEOF
43857
43858fi
43859
43860
43861if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43862
43863 HAVE_DL_FUNCS=0
43864 HAVE_SHL_FUNCS=0
43865 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43866 if test "$USE_DARWIN" = 1; then
43867 HAVE_DL_FUNCS=1
43868 elif test "$USE_DOS" = 1; then
43869 HAVE_DL_FUNCS=0
43870 else
43871
43872for ac_func in dlopen
43873do
43874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
43875{ echo "$as_me:$LINENO: checking for $ac_func" >&5
43876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43877if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
004ee6da
RL
43878 echo $ECHO_N "(cached) $ECHO_C" >&6
43879else
43880 cat >conftest.$ac_ext <<_ACEOF
43881/* confdefs.h. */
43882_ACEOF
43883cat confdefs.h >>conftest.$ac_ext
43884cat >>conftest.$ac_ext <<_ACEOF
43885/* end confdefs.h. */
43886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43888#define $ac_func innocuous_$ac_func
43889
43890/* System header to define __stub macros and hopefully few prototypes,
43891 which can conflict with char $ac_func (); below.
43892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43893 <limits.h> exists even on freestanding compilers. */
43894
43895#ifdef __STDC__
43896# include <limits.h>
43897#else
43898# include <assert.h>
43899#endif
43900
43901#undef $ac_func
43902
47964710
VS
43903/* Override any GCC internal prototype to avoid an error.
43904 Use char because int might match the return type of a GCC
43905 builtin and then its argument prototype would still apply. */
004ee6da
RL
43906#ifdef __cplusplus
43907extern "C"
004ee6da 43908#endif
004ee6da
RL
43909char $ac_func ();
43910/* The GNU C library defines this for functions which it implements
43911 to always fail with ENOSYS. Some functions are actually named
43912 something starting with __ and the normal name is an alias. */
47964710 43913#if defined __stub_$ac_func || defined __stub___$ac_func
004ee6da 43914choke me
004ee6da
RL
43915#endif
43916
43917int
43918main ()
43919{
47964710 43920return $ac_func ();
a848cd7e
SC
43921 ;
43922 return 0;
43923}
43924_ACEOF
43925rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
43926if { (ac_try="$ac_link"
43927case "(($ac_try" in
43928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43929 *) ac_try_echo=$ac_try;;
43930esac
43931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43932 (eval "$ac_link") 2>conftest.er1
a848cd7e 43933 ac_status=$?
ac1cb8d3
VS
43934 grep -v '^ *+' conftest.er1 >conftest.err
43935 rm -f conftest.er1
43936 cat conftest.err >&5
a848cd7e 43937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
43938 (exit $ac_status); } && {
43939 test -z "$ac_c_werror_flag" ||
43940 test ! -s conftest.err
43941 } && test -s conftest$ac_exeext &&
43942 $as_test_x conftest$ac_exeext; then
54429bb3
RD
43943 eval "$as_ac_var=yes"
43944else
43945 echo "$as_me: failed program was:" >&5
43946sed 's/^/| /' conftest.$ac_ext >&5
43947
47964710 43948 eval "$as_ac_var=no"
54429bb3 43949fi
47964710
VS
43950
43951rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54429bb3
RD
43952 conftest$ac_exeext conftest.$ac_ext
43953fi
47964710
VS
43954ac_res=`eval echo '${'$as_ac_var'}'`
43955 { echo "$as_me:$LINENO: result: $ac_res" >&5
43956echo "${ECHO_T}$ac_res" >&6; }
54429bb3
RD
43957if test `eval echo '${'$as_ac_var'}'` = yes; then
43958 cat >>confdefs.h <<_ACEOF
43959#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43960_ACEOF
43961
43962 cat >>confdefs.h <<\_ACEOF
43963#define HAVE_DLOPEN 1
43964_ACEOF
43965
43966 HAVE_DL_FUNCS=1
43967
43968else
43969
47964710
VS
43970 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43971echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
54429bb3
RD
43972if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43973 echo $ECHO_N "(cached) $ECHO_C" >&6
43974else
43975 ac_check_lib_save_LIBS=$LIBS
43976LIBS="-ldl $LIBS"
43977cat >conftest.$ac_ext <<_ACEOF
43978/* confdefs.h. */
43979_ACEOF
43980cat confdefs.h >>conftest.$ac_ext
43981cat >>conftest.$ac_ext <<_ACEOF
43982/* end confdefs.h. */
43983
47964710
VS
43984/* Override any GCC internal prototype to avoid an error.
43985 Use char because int might match the return type of a GCC
43986 builtin and then its argument prototype would still apply. */
54429bb3
RD
43987#ifdef __cplusplus
43988extern "C"
43989#endif
43990char dlopen ();
43991int
43992main ()
43993{
47964710 43994return dlopen ();
54429bb3
RD
43995 ;
43996 return 0;
43997}
43998_ACEOF
43999rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
44000if { (ac_try="$ac_link"
44001case "(($ac_try" in
44002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44003 *) ac_try_echo=$ac_try;;
44004esac
44005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44006 (eval "$ac_link") 2>conftest.er1
54429bb3
RD
44007 ac_status=$?
44008 grep -v '^ *+' conftest.er1 >conftest.err
44009 rm -f conftest.er1
44010 cat conftest.err >&5
44011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44012 (exit $ac_status); } && {
44013 test -z "$ac_c_werror_flag" ||
44014 test ! -s conftest.err
44015 } && test -s conftest$ac_exeext &&
44016 $as_test_x conftest$ac_exeext; then
54429bb3
RD
44017 ac_cv_lib_dl_dlopen=yes
44018else
44019 echo "$as_me: failed program was:" >&5
44020sed 's/^/| /' conftest.$ac_ext >&5
44021
47964710 44022 ac_cv_lib_dl_dlopen=no
54429bb3 44023fi
47964710
VS
44024
44025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54429bb3
RD
44026 conftest$ac_exeext conftest.$ac_ext
44027LIBS=$ac_check_lib_save_LIBS
44028fi
47964710
VS
44029{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
44030echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
54429bb3
RD
44031if test $ac_cv_lib_dl_dlopen = yes; then
44032
44033 cat >>confdefs.h <<\_ACEOF
44034#define HAVE_DLOPEN 1
44035_ACEOF
44036
44037 HAVE_DL_FUNCS=1
44038 DL_LINK=" -ldl$DL_LINK"
44039
44040else
44041
44042
44043for ac_func in shl_load
44044do
44045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
44046{ echo "$as_me:$LINENO: checking for $ac_func" >&5
44047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44048if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
54429bb3
RD
44049 echo $ECHO_N "(cached) $ECHO_C" >&6
44050else
44051 cat >conftest.$ac_ext <<_ACEOF
44052/* confdefs.h. */
44053_ACEOF
44054cat confdefs.h >>conftest.$ac_ext
44055cat >>conftest.$ac_ext <<_ACEOF
44056/* end confdefs.h. */
44057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44059#define $ac_func innocuous_$ac_func
44060
44061/* System header to define __stub macros and hopefully few prototypes,
44062 which can conflict with char $ac_func (); below.
44063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44064 <limits.h> exists even on freestanding compilers. */
44065
44066#ifdef __STDC__
44067# include <limits.h>
44068#else
44069# include <assert.h>
44070#endif
44071
44072#undef $ac_func
44073
47964710
VS
44074/* Override any GCC internal prototype to avoid an error.
44075 Use char because int might match the return type of a GCC
44076 builtin and then its argument prototype would still apply. */
54429bb3
RD
44077#ifdef __cplusplus
44078extern "C"
44079#endif
44080char $ac_func ();
44081/* The GNU C library defines this for functions which it implements
44082 to always fail with ENOSYS. Some functions are actually named
44083 something starting with __ and the normal name is an alias. */
47964710 44084#if defined __stub_$ac_func || defined __stub___$ac_func
54429bb3
RD
44085choke me
44086#endif
44087
44088int
44089main ()
44090{
47964710 44091return $ac_func ();
54429bb3
RD
44092 ;
44093 return 0;
44094}
44095_ACEOF
44096rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
44097if { (ac_try="$ac_link"
44098case "(($ac_try" in
44099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44100 *) ac_try_echo=$ac_try;;
44101esac
44102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44103 (eval "$ac_link") 2>conftest.er1
54429bb3
RD
44104 ac_status=$?
44105 grep -v '^ *+' conftest.er1 >conftest.err
44106 rm -f conftest.er1
44107 cat conftest.err >&5
44108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44109 (exit $ac_status); } && {
44110 test -z "$ac_c_werror_flag" ||
44111 test ! -s conftest.err
44112 } && test -s conftest$ac_exeext &&
44113 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
44114 eval "$as_ac_var=yes"
44115else
44116 echo "$as_me: failed program was:" >&5
44117sed 's/^/| /' conftest.$ac_ext >&5
44118
47964710 44119 eval "$as_ac_var=no"
a848cd7e 44120fi
47964710
VS
44121
44122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 44123 conftest$ac_exeext conftest.$ac_ext
a848cd7e 44124fi
47964710
VS
44125ac_res=`eval echo '${'$as_ac_var'}'`
44126 { echo "$as_me:$LINENO: result: $ac_res" >&5
44127echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
44128if test `eval echo '${'$as_ac_var'}'` = yes; then
44129 cat >>confdefs.h <<_ACEOF
44130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44131_ACEOF
44132
44133 cat >>confdefs.h <<\_ACEOF
44134#define HAVE_SHL_LOAD 1
44135_ACEOF
44136
44137 HAVE_SHL_FUNCS=1
44138
44139else
44140
47964710
VS
44141 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
44142echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
a848cd7e
SC
44143if test "${ac_cv_lib_shl_load_dld+set}" = set; then
44144 echo $ECHO_N "(cached) $ECHO_C" >&6
44145else
44146 ac_check_lib_save_LIBS=$LIBS
44147LIBS="-lshl_load $LIBS"
44148cat >conftest.$ac_ext <<_ACEOF
44149/* confdefs.h. */
44150_ACEOF
44151cat confdefs.h >>conftest.$ac_ext
44152cat >>conftest.$ac_ext <<_ACEOF
44153/* end confdefs.h. */
44154
47964710
VS
44155/* Override any GCC internal prototype to avoid an error.
44156 Use char because int might match the return type of a GCC
44157 builtin and then its argument prototype would still apply. */
a848cd7e
SC
44158#ifdef __cplusplus
44159extern "C"
44160#endif
a848cd7e
SC
44161char dld ();
44162int
44163main ()
44164{
47964710 44165return dld ();
a848cd7e
SC
44166 ;
44167 return 0;
44168}
44169_ACEOF
44170rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
44171if { (ac_try="$ac_link"
44172case "(($ac_try" in
44173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44174 *) ac_try_echo=$ac_try;;
44175esac
44176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44177 (eval "$ac_link") 2>conftest.er1
a848cd7e 44178 ac_status=$?
ac1cb8d3
VS
44179 grep -v '^ *+' conftest.er1 >conftest.err
44180 rm -f conftest.er1
44181 cat conftest.err >&5
a848cd7e 44182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44183 (exit $ac_status); } && {
44184 test -z "$ac_c_werror_flag" ||
44185 test ! -s conftest.err
44186 } && test -s conftest$ac_exeext &&
44187 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
44188 ac_cv_lib_shl_load_dld=yes
44189else
44190 echo "$as_me: failed program was:" >&5
44191sed 's/^/| /' conftest.$ac_ext >&5
44192
47964710 44193 ac_cv_lib_shl_load_dld=no
a848cd7e 44194fi
47964710
VS
44195
44196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 44197 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44198LIBS=$ac_check_lib_save_LIBS
44199fi
47964710
VS
44200{ echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
44201echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
a848cd7e
SC
44202if test $ac_cv_lib_shl_load_dld = yes; then
44203
44204 HAVE_SHL_FUNCS=1
44205 DL_LINK=" -ldld$DL_LINK"
44206
44207fi
44208
44209
44210fi
44211done
44212
44213
44214fi
44215
44216
44217fi
44218done
44219
44220
44221 if test "$HAVE_DL_FUNCS" = 1; then
44222
44223for ac_func in dlerror
44224do
44225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
44226{ echo "$as_me:$LINENO: checking for $ac_func" >&5
44227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44228if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
44229 echo $ECHO_N "(cached) $ECHO_C" >&6
44230else
44231 cat >conftest.$ac_ext <<_ACEOF
44232/* confdefs.h. */
44233_ACEOF
44234cat confdefs.h >>conftest.$ac_ext
44235cat >>conftest.$ac_ext <<_ACEOF
44236/* end confdefs.h. */
ac1cb8d3
VS
44237/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44239#define $ac_func innocuous_$ac_func
44240
a848cd7e
SC
44241/* System header to define __stub macros and hopefully few prototypes,
44242 which can conflict with char $ac_func (); below.
44243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44244 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44245
a848cd7e
SC
44246#ifdef __STDC__
44247# include <limits.h>
44248#else
44249# include <assert.h>
44250#endif
ac1cb8d3
VS
44251
44252#undef $ac_func
44253
47964710
VS
44254/* Override any GCC internal prototype to avoid an error.
44255 Use char because int might match the return type of a GCC
44256 builtin and then its argument prototype would still apply. */
a848cd7e
SC
44257#ifdef __cplusplus
44258extern "C"
a848cd7e 44259#endif
a848cd7e
SC
44260char $ac_func ();
44261/* The GNU C library defines this for functions which it implements
44262 to always fail with ENOSYS. Some functions are actually named
44263 something starting with __ and the normal name is an alias. */
47964710 44264#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 44265choke me
a848cd7e
SC
44266#endif
44267
44268int
44269main ()
44270{
47964710 44271return $ac_func ();
a848cd7e
SC
44272 ;
44273 return 0;
44274}
44275_ACEOF
44276rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
44277if { (ac_try="$ac_link"
44278case "(($ac_try" in
44279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44280 *) ac_try_echo=$ac_try;;
44281esac
44282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44283 (eval "$ac_link") 2>conftest.er1
a848cd7e 44284 ac_status=$?
ac1cb8d3
VS
44285 grep -v '^ *+' conftest.er1 >conftest.err
44286 rm -f conftest.er1
44287 cat conftest.err >&5
a848cd7e 44288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44289 (exit $ac_status); } && {
44290 test -z "$ac_c_werror_flag" ||
44291 test ! -s conftest.err
44292 } && test -s conftest$ac_exeext &&
44293 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
44294 eval "$as_ac_var=yes"
44295else
44296 echo "$as_me: failed program was:" >&5
44297sed 's/^/| /' conftest.$ac_ext >&5
44298
47964710 44299 eval "$as_ac_var=no"
a848cd7e 44300fi
47964710
VS
44301
44302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 44303 conftest$ac_exeext conftest.$ac_ext
a848cd7e 44304fi
47964710
VS
44305ac_res=`eval echo '${'$as_ac_var'}'`
44306 { echo "$as_me:$LINENO: result: $ac_res" >&5
44307echo "${ECHO_T}$ac_res" >&6; }
a848cd7e
SC
44308if test `eval echo '${'$as_ac_var'}'` = yes; then
44309 cat >>confdefs.h <<_ACEOF
44310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44311_ACEOF
44312 cat >>confdefs.h <<\_ACEOF
44313#define HAVE_DLERROR 1
44314_ACEOF
44315
44316else
44317
47964710
VS
44318 { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
44319echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
a848cd7e
SC
44320if test "${ac_cv_lib_dl_dlerror+set}" = set; then
44321 echo $ECHO_N "(cached) $ECHO_C" >&6
44322else
44323 ac_check_lib_save_LIBS=$LIBS
44324LIBS="-ldl $LIBS"
44325cat >conftest.$ac_ext <<_ACEOF
44326/* confdefs.h. */
44327_ACEOF
44328cat confdefs.h >>conftest.$ac_ext
44329cat >>conftest.$ac_ext <<_ACEOF
44330/* end confdefs.h. */
44331
47964710
VS
44332/* Override any GCC internal prototype to avoid an error.
44333 Use char because int might match the return type of a GCC
44334 builtin and then its argument prototype would still apply. */
a848cd7e
SC
44335#ifdef __cplusplus
44336extern "C"
44337#endif
a848cd7e
SC
44338char dlerror ();
44339int
44340main ()
44341{
47964710 44342return dlerror ();
a848cd7e
SC
44343 ;
44344 return 0;
44345}
44346_ACEOF
44347rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
44348if { (ac_try="$ac_link"
44349case "(($ac_try" in
44350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44351 *) ac_try_echo=$ac_try;;
44352esac
44353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44354 (eval "$ac_link") 2>conftest.er1
a848cd7e 44355 ac_status=$?
ac1cb8d3
VS
44356 grep -v '^ *+' conftest.er1 >conftest.err
44357 rm -f conftest.er1
44358 cat conftest.err >&5
a848cd7e 44359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44360 (exit $ac_status); } && {
44361 test -z "$ac_c_werror_flag" ||
44362 test ! -s conftest.err
44363 } && test -s conftest$ac_exeext &&
44364 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
44365 ac_cv_lib_dl_dlerror=yes
44366else
44367 echo "$as_me: failed program was:" >&5
44368sed 's/^/| /' conftest.$ac_ext >&5
44369
47964710 44370 ac_cv_lib_dl_dlerror=no
a848cd7e 44371fi
47964710
VS
44372
44373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 44374 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44375LIBS=$ac_check_lib_save_LIBS
44376fi
47964710
VS
44377{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
44378echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
a848cd7e
SC
44379if test $ac_cv_lib_dl_dlerror = yes; then
44380 cat >>confdefs.h <<\_ACEOF
44381#define HAVE_DLERROR 1
44382_ACEOF
44383
44384fi
44385
44386
44387
44388fi
44389done
44390
44391 fi
44392 fi
44393
44394 if test "$HAVE_DL_FUNCS" = 0; then
44395 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 44396 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
44397 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
44398echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
44399 wxUSE_DYNAMIC_LOADER=no
44400 wxUSE_DYNLIB_CLASS=no
44401 else
44402 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
44403echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
44404 fi
44405 fi
44406 fi
44407 fi
44408fi
44409
44410if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
44411 cat >>confdefs.h <<\_ACEOF
44412#define wxUSE_DYNAMIC_LOADER 1
44413_ACEOF
44414
44415fi
44416if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44417 cat >>confdefs.h <<\_ACEOF
44418#define wxUSE_DYNLIB_CLASS 1
44419_ACEOF
44420
44421fi
44422
44423
44424
44425if test "$wxUSE_PLUGINS" = "yes" ; then
44426 if test "$wxUSE_SHARED" = "no" ; then
44427 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
44428echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
44429 wxUSE_PLUGINS=no
44430 fi
44431 if test "$wxUSE_MONOLITHIC" = "yes" ; then
44432 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
44433echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
44434 wxUSE_PLUGINS=no
44435 fi
44436 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
44437 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
44438echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
44439 wxUSE_PLUGINS=no
44440 fi
44441 if test "$wxUSE_PLUGINS" = "yes" ; then
44442 cat >>confdefs.h <<\_ACEOF
44443#define wxUSE_PLUGINS 1
44444_ACEOF
44445
44446 fi
44447fi
44448
44449
44450if test "$wxUSE_STL" = "yes"; then
44451 cat >>confdefs.h <<\_ACEOF
44452#define wxUSE_STL 1
44453_ACEOF
44454
44455fi
44456
81727065
VS
44457if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
44458 cat >>confdefs.h <<\_ACEOF
44459#define wxUSE_EXTENDED_RTTI 1
44460_ACEOF
44461
44462fi
44463
a848cd7e
SC
44464if test "$wxUSE_APPLE_IEEE" = "yes"; then
44465 cat >>confdefs.h <<\_ACEOF
44466#define wxUSE_APPLE_IEEE 1
44467_ACEOF
44468
44469fi
44470
44471if test "$wxUSE_TIMER" = "yes"; then
44472 cat >>confdefs.h <<\_ACEOF
44473#define wxUSE_TIMER 1
44474_ACEOF
44475
44476fi
44477
9c112555 44478if test "$USE_UNIX" = "1" ; then
a1b1cf33 44479 if test "$wxUSE_MGL" != 1; then
47964710
VS
44480 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
44481echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
d12aef51 44482if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 44483 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 44484else
d12aef51 44485
a1b1cf33 44486 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
44487/* confdefs.h. */
44488_ACEOF
44489cat confdefs.h >>conftest.$ac_ext
44490cat >>conftest.$ac_ext <<_ACEOF
44491/* end confdefs.h. */
d12aef51 44492
a1b1cf33
VZ
44493 #include <sys/ioctl.h>
44494 #include <sys/soundcard.h>
d12aef51
VZ
44495
44496int
44497main ()
44498{
44499
a1b1cf33 44500 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
44501
44502 ;
44503 return 0;
44504}
a848cd7e 44505_ACEOF
d12aef51 44506rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
44507if { (ac_try="$ac_link"
44508case "(($ac_try" in
44509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44510 *) ac_try_echo=$ac_try;;
44511esac
44512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44513 (eval "$ac_link") 2>conftest.er1
a848cd7e 44514 ac_status=$?
ac1cb8d3
VS
44515 grep -v '^ *+' conftest.er1 >conftest.err
44516 rm -f conftest.er1
44517 cat conftest.err >&5
a848cd7e 44518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44519 (exit $ac_status); } && {
44520 test -z "$ac_c_werror_flag" ||
44521 test ! -s conftest.err
44522 } && test -s conftest$ac_exeext &&
44523 $as_test_x conftest$ac_exeext; then
d12aef51 44524 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
44525else
44526 echo "$as_me: failed program was:" >&5
44527sed 's/^/| /' conftest.$ac_ext >&5
44528
a848cd7e 44529
a1b1cf33
VZ
44530 saveLibs="$LIBS"
44531 LIBS="$saveLibs -lossaudio"
44532 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
44533/* confdefs.h. */
44534_ACEOF
44535cat confdefs.h >>conftest.$ac_ext
44536cat >>conftest.$ac_ext <<_ACEOF
44537/* end confdefs.h. */
d12aef51 44538
a1b1cf33
VZ
44539 #include <sys/ioctl.h>
44540 #include <sys/soundcard.h>
d12aef51
VZ
44541
44542int
44543main ()
44544{
44545
a1b1cf33 44546 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
44547
44548 ;
44549 return 0;
44550}
a848cd7e 44551_ACEOF
d12aef51 44552rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
44553if { (ac_try="$ac_link"
44554case "(($ac_try" in
44555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44556 *) ac_try_echo=$ac_try;;
44557esac
44558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44559 (eval "$ac_link") 2>conftest.er1
a848cd7e
SC
44560 ac_status=$?
44561 grep -v '^ *+' conftest.er1 >conftest.err
44562 rm -f conftest.er1
44563 cat conftest.err >&5
44564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44565 (exit $ac_status); } && {
44566 test -z "$ac_c_werror_flag" ||
44567 test ! -s conftest.err
44568 } && test -s conftest$ac_exeext &&
44569 $as_test_x conftest$ac_exeext; then
d12aef51 44570 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
44571else
44572 echo "$as_me: failed program was:" >&5
44573sed 's/^/| /' conftest.$ac_ext >&5
44574
a848cd7e 44575
a1b1cf33
VZ
44576 LIBS="$saveLibs"
44577 ac_cv_header_sys_soundcard=no
d12aef51
VZ
44578
44579
a848cd7e 44580fi
47964710
VS
44581
44582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d12aef51
VZ
44583 conftest$ac_exeext conftest.$ac_ext
44584
a848cd7e
SC
44585
44586fi
47964710
VS
44587
44588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d12aef51 44589 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44590
44591fi
47964710
VS
44592{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
44593echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
a1b1cf33 44594 fi
a848cd7e 44595
d12aef51
VZ
44596 if test "$ac_cv_header_sys_soundcard" = "yes"; then
44597 cat >>confdefs.h <<\_ACEOF
44598#define HAVE_SYS_SOUNDCARD_H 1
44599_ACEOF
a848cd7e 44600
d12aef51 44601 fi
9c112555 44602fi
a1b1cf33 44603
9c112555
MW
44604WITH_PLUGIN_SDL=0
44605if test "$wxUSE_SOUND" = "yes"; then
44606 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
44607 if test "$wxUSE_LIBSDL" != "no"; then
44608
47964710 44609# Check whether --with-sdl-prefix was given.
a848cd7e 44610if test "${with_sdl_prefix+set}" = set; then
47964710 44611 withval=$with_sdl_prefix; sdl_prefix="$withval"
a848cd7e
SC
44612else
44613 sdl_prefix=""
47964710
VS
44614fi
44615
3f7f284d 44616
47964710 44617# Check whether --with-sdl-exec-prefix was given.
a848cd7e 44618if test "${with_sdl_exec_prefix+set}" = set; then
47964710 44619 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
a848cd7e
SC
44620else
44621 sdl_exec_prefix=""
47964710 44622fi
bd8a7646 44623
47964710
VS
44624# Check whether --enable-sdltest was given.
44625if test "${enable_sdltest+set}" = set; then
44626 enableval=$enable_sdltest;
a848cd7e
SC
44627else
44628 enable_sdltest=yes
47964710
VS
44629fi
44630
a848cd7e
SC
44631
44632 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
44633 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
44634 if test x${SDL_CONFIG+set} != xset ; then
44635 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
44636 fi
a848cd7e
SC
44637 fi
44638 if test x$sdl_prefix != x ; then
3ecd9f92
MW
44639 sdl_args="$sdl_args --prefix=$sdl_prefix"
44640 if test x${SDL_CONFIG+set} != xset ; then
44641 SDL_CONFIG=$sdl_prefix/bin/sdl-config
44642 fi
a848cd7e
SC
44643 fi
44644
3ecd9f92
MW
44645 if test "x$prefix" != xNONE; then
44646 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
44647 fi
a848cd7e
SC
44648 # Extract the first word of "sdl-config", so it can be a program name with args.
44649set dummy sdl-config; ac_word=$2
47964710
VS
44650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
44651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
44652if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
44653 echo $ECHO_N "(cached) $ECHO_C" >&6
44654else
44655 case $SDL_CONFIG in
44656 [\\/]* | ?:[\\/]*)
44657 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
44658 ;;
44659 *)
44660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44661for as_dir in $PATH
44662do
44663 IFS=$as_save_IFS
44664 test -z "$as_dir" && as_dir=.
44665 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 44666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
44667 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44669 break 2
44670 fi
44671done
44672done
47964710 44673IFS=$as_save_IFS
a848cd7e
SC
44674
44675 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44676 ;;
44677esac
44678fi
44679SDL_CONFIG=$ac_cv_path_SDL_CONFIG
a848cd7e 44680if test -n "$SDL_CONFIG"; then
47964710
VS
44681 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44682echo "${ECHO_T}$SDL_CONFIG" >&6; }
a848cd7e 44683else
47964710
VS
44684 { echo "$as_me:$LINENO: result: no" >&5
44685echo "${ECHO_T}no" >&6; }
a848cd7e
SC
44686fi
44687
47964710 44688
a848cd7e 44689 min_sdl_version=1.2.0
47964710
VS
44690 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44691echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
a848cd7e
SC
44692 no_sdl=""
44693 if test "$SDL_CONFIG" = "no" ; then
44694 no_sdl=yes
44695 else
44696 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44697 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44698
44699 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44700 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44701 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44702 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44703 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44704 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44705 if test "x$enable_sdltest" = "xyes" ; then
44706 ac_save_CFLAGS="$CFLAGS"
94acd38e 44707 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
44708 ac_save_LIBS="$LIBS"
44709 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 44710 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
44711 LIBS="$LIBS $SDL_LIBS"
44712 rm -f conf.sdltest
44713 if test "$cross_compiling" = yes; then
44714 echo $ac_n "cross compiling; assumed OK... $ac_c"
44715else
44716 cat >conftest.$ac_ext <<_ACEOF
44717/* confdefs.h. */
44718_ACEOF
44719cat confdefs.h >>conftest.$ac_ext
44720cat >>conftest.$ac_ext <<_ACEOF
44721/* end confdefs.h. */
44722
44723#include <stdio.h>
44724#include <stdlib.h>
44725#include <string.h>
44726#include "SDL.h"
44727
44728char*
44729my_strdup (char *str)
44730{
44731 char *new_str;
44732
44733 if (str)
44734 {
44735 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44736 strcpy (new_str, str);
44737 }
44738 else
44739 new_str = NULL;
44740
44741 return new_str;
44742}
44743
44744int main (int argc, char *argv[])
44745{
44746 int major, minor, micro;
44747 char *tmp_version;
44748
44749 /* This hangs on some systems (?)
44750 system ("touch conf.sdltest");
44751 */
44752 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44753
44754 /* HP/UX 9 (%@#!) writes to sscanf strings */
44755 tmp_version = my_strdup("$min_sdl_version");
44756 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44757 printf("%s, bad version string\n", "$min_sdl_version");
44758 exit(1);
44759 }
44760
44761 if (($sdl_major_version > major) ||
44762 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44763 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44764 {
44765 return 0;
44766 }
44767 else
44768 {
44769 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44770 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44771 printf("*** best to upgrade to the required version.\n");
44772 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44773 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44774 printf("*** config.cache before re-running configure\n");
44775 return 1;
44776 }
44777}
44778
44779
44780_ACEOF
44781rm -f conftest$ac_exeext
47964710
VS
44782if { (ac_try="$ac_link"
44783case "(($ac_try" in
44784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44785 *) ac_try_echo=$ac_try;;
44786esac
44787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44788 (eval "$ac_link") 2>&5
a848cd7e
SC
44789 ac_status=$?
44790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
44792 { (case "(($ac_try" in
44793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44794 *) ac_try_echo=$ac_try;;
44795esac
44796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44797 (eval "$ac_try") 2>&5
a848cd7e
SC
44798 ac_status=$?
44799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44800 (exit $ac_status); }; }; then
44801 :
44802else
44803 echo "$as_me: program exited with status $ac_status" >&5
44804echo "$as_me: failed program was:" >&5
44805sed 's/^/| /' conftest.$ac_ext >&5
44806
44807( exit $ac_status )
44808no_sdl=yes
44809fi
47964710 44810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 44811fi
47964710
VS
44812
44813
a848cd7e 44814 CFLAGS="$ac_save_CFLAGS"
94acd38e 44815 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
44816 LIBS="$ac_save_LIBS"
44817 fi
44818 fi
44819 if test "x$no_sdl" = x ; then
47964710
VS
44820 { echo "$as_me:$LINENO: result: yes" >&5
44821echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
44822
44823 EXTRALIBS_SDL="$SDL_LIBS"
9b8888f9 44824 CFLAGS="$SDL_CFLAGS $CFLAGS"
c92ad099 44825 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
44826 cat >>confdefs.h <<\_ACEOF
44827#define wxUSE_LIBSDL 1
44828_ACEOF
44829
44830
44831 else
47964710
VS
44832 { echo "$as_me:$LINENO: result: no" >&5
44833echo "${ECHO_T}no" >&6; }
a848cd7e
SC
44834 if test "$SDL_CONFIG" = "no" ; then
44835 echo "*** The sdl-config script installed by SDL could not be found"
44836 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44837 echo "*** your path, or set the SDL_CONFIG environment variable to the"
44838 echo "*** full path to sdl-config."
44839 else
44840 if test -f conf.sdltest ; then
44841 :
44842 else
44843 echo "*** Could not run SDL test program, checking why..."
44844 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 44845 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
44846 LIBS="$LIBS $SDL_LIBS"
44847 cat >conftest.$ac_ext <<_ACEOF
44848/* confdefs.h. */
44849_ACEOF
44850cat confdefs.h >>conftest.$ac_ext
44851cat >>conftest.$ac_ext <<_ACEOF
44852/* end confdefs.h. */
44853
44854#include <stdio.h>
44855#include "SDL.h"
44856
44857int main(int argc, char *argv[])
44858{ return 0; }
44859#undef main
44860#define main K_and_R_C_main
44861
44862int
44863main ()
44864{
44865 return 0;
44866 ;
44867 return 0;
44868}
44869_ACEOF
44870rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
44871if { (ac_try="$ac_link"
44872case "(($ac_try" in
44873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44874 *) ac_try_echo=$ac_try;;
44875esac
44876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44877 (eval "$ac_link") 2>conftest.er1
a848cd7e 44878 ac_status=$?
ac1cb8d3
VS
44879 grep -v '^ *+' conftest.er1 >conftest.err
44880 rm -f conftest.er1
44881 cat conftest.err >&5
a848cd7e 44882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44883 (exit $ac_status); } && {
44884 test -z "$ac_c_werror_flag" ||
44885 test ! -s conftest.err
44886 } && test -s conftest$ac_exeext &&
44887 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
44888 echo "*** The test program compiled, but did not run. This usually means"
44889 echo "*** that the run-time linker is not finding SDL or finding the wrong"
44890 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44891 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44892 echo "*** to the installed location Also, make sure you have run ldconfig if that"
44893 echo "*** is required on your system"
44894 echo "***"
44895 echo "*** If you have an old version installed, it is best to remove it, although"
44896 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44897else
44898 echo "$as_me: failed program was:" >&5
44899sed 's/^/| /' conftest.$ac_ext >&5
44900
47964710 44901 echo "*** The test program failed to compile or link. See the file config.log for the"
a848cd7e
SC
44902 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44903 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44904 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44905fi
47964710
VS
44906
44907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 44908 conftest$ac_exeext conftest.$ac_ext
a848cd7e 44909 CFLAGS="$ac_save_CFLAGS"
94acd38e 44910 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
44911 LIBS="$ac_save_LIBS"
44912 fi
44913 fi
44914 SDL_CFLAGS=""
44915 SDL_LIBS=""
44916 wxUSE_LIBSDL="no"
44917 fi
44918
44919
44920 rm -f conf.sdltest
44921
44922 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44923 WITH_PLUGIN_SDL=1
44924 fi
44925 fi
480b9f18
VZ
44926 else
44927 if test "$wxUSE_MGL" = 1; then
44928 { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44929echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44930 wxUSE_SOUND="no"
44931 fi
a848cd7e 44932 fi
480b9f18 44933fi
a848cd7e 44934
480b9f18 44935if test "$wxUSE_SOUND" = "yes"; then
a848cd7e
SC
44936 cat >>confdefs.h <<\_ACEOF
44937#define wxUSE_SOUND 1
44938_ACEOF
44939
44940 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44941fi
44942
d1c38808 44943if test "$WXGTK20" = 1; then
d6fb5527
VZ
44944
44945
44946if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44947 if test -n "$ac_tool_prefix"; then
44948 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44949set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
47964710
VS
44950{ echo "$as_me:$LINENO: checking for $ac_word" >&5
44951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d6fb5527
VZ
44952if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44953 echo $ECHO_N "(cached) $ECHO_C" >&6
44954else
44955 case $PKG_CONFIG in
44956 [\\/]* | ?:[\\/]*)
44957 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44958 ;;
44959 *)
44960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44961for as_dir in $PATH
44962do
44963 IFS=$as_save_IFS
44964 test -z "$as_dir" && as_dir=.
44965 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 44966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d6fb5527
VZ
44967 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44969 break 2
44970 fi
44971done
44972done
47964710 44973IFS=$as_save_IFS
d6fb5527
VZ
44974
44975 ;;
44976esac
44977fi
44978PKG_CONFIG=$ac_cv_path_PKG_CONFIG
d6fb5527 44979if test -n "$PKG_CONFIG"; then
47964710
VS
44980 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44981echo "${ECHO_T}$PKG_CONFIG" >&6; }
d6fb5527 44982else
47964710
VS
44983 { echo "$as_me:$LINENO: result: no" >&5
44984echo "${ECHO_T}no" >&6; }
d6fb5527
VZ
44985fi
44986
47964710 44987
d6fb5527
VZ
44988fi
44989if test -z "$ac_cv_path_PKG_CONFIG"; then
44990 ac_pt_PKG_CONFIG=$PKG_CONFIG
44991 # Extract the first word of "pkg-config", so it can be a program name with args.
44992set dummy pkg-config; ac_word=$2
47964710
VS
44993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
44994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d6fb5527
VZ
44995if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44996 echo $ECHO_N "(cached) $ECHO_C" >&6
44997else
44998 case $ac_pt_PKG_CONFIG in
44999 [\\/]* | ?:[\\/]*)
45000 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
45001 ;;
45002 *)
45003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45004for as_dir in $PATH
45005do
45006 IFS=$as_save_IFS
45007 test -z "$as_dir" && as_dir=.
45008 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 45009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d6fb5527
VZ
45010 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45012 break 2
45013 fi
45014done
45015done
47964710 45016IFS=$as_save_IFS
d6fb5527
VZ
45017
45018 ;;
45019esac
45020fi
45021ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
d6fb5527 45022if test -n "$ac_pt_PKG_CONFIG"; then
47964710
VS
45023 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
45024echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
d6fb5527 45025else
47964710
VS
45026 { echo "$as_me:$LINENO: result: no" >&5
45027echo "${ECHO_T}no" >&6; }
d6fb5527
VZ
45028fi
45029
47964710
VS
45030 if test "x$ac_pt_PKG_CONFIG" = x; then
45031 PKG_CONFIG=""
45032 else
45033 case $cross_compiling:$ac_tool_warned in
45034yes:)
45035{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
45036whose name does not start with the host triplet. If you think this
45037configuration is useful to you, please write to autoconf@gnu.org." >&5
45038echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
45039whose name does not start with the host triplet. If you think this
45040configuration is useful to you, please write to autoconf@gnu.org." >&2;}
45041ac_tool_warned=yes ;;
45042esac
45043 PKG_CONFIG=$ac_pt_PKG_CONFIG
45044 fi
d6fb5527
VZ
45045else
45046 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
45047fi
45048
45049fi
45050if test -n "$PKG_CONFIG"; then
45051 _pkg_min_version=0.9.0
47964710
VS
45052 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
45053echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
d6fb5527 45054 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
47964710
VS
45055 { echo "$as_me:$LINENO: result: yes" >&5
45056echo "${ECHO_T}yes" >&6; }
d6fb5527 45057 else
47964710
VS
45058 { echo "$as_me:$LINENO: result: no" >&5
45059echo "${ECHO_T}no" >&6; }
d6fb5527
VZ
45060 PKG_CONFIG=""
45061 fi
45062
45063fi
45064
d1c38808 45065 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
bd8a7646
RR
45066
45067 if test "$wxUSE_GTKPRINT" = "yes" ; then
45068
45069
45070pkg_failed=no
47964710
VS
45071{ echo "$as_me:$LINENO: checking for GTKPRINT" >&5
45072echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
bd8a7646
RR
45073
45074if test -n "$PKG_CONFIG"; then
45075 if test -n "$GTKPRINT_CFLAGS"; then
45076 pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
45077 else
45078 if test -n "$PKG_CONFIG" && \
45079 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
45080 ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
45081 ac_status=$?
45082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45083 (exit $ac_status); }; then
45084 pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
45085else
45086 pkg_failed=yes
45087fi
45088 fi
45089else
45090 pkg_failed=untried
45091fi
45092if test -n "$PKG_CONFIG"; then
45093 if test -n "$GTKPRINT_LIBS"; then
45094 pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
45095 else
45096 if test -n "$PKG_CONFIG" && \
45097 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
45098 ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
45099 ac_status=$?
45100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45101 (exit $ac_status); }; then
45102 pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
45103else
45104 pkg_failed=yes
45105fi
45106 fi
45107else
45108 pkg_failed=untried
45109fi
45110
45111
45112
45113if test $pkg_failed = yes; then
45114
45115if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45116 _pkg_short_errors_supported=yes
45117else
45118 _pkg_short_errors_supported=no
45119fi
45120 if test $_pkg_short_errors_supported = yes; then
45121 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
45122 else
45123 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
45124 fi
45125 # Put the nasty error message in config.log where it belongs
45126 echo "$GTKPRINT_PKG_ERRORS" >&5
45127
45128
45129 { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
45130echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
45131 wxUSE_GTKPRINT="no"
45132
45133
45134elif test $pkg_failed = untried; then
45135
45136 { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
45137echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
45138 wxUSE_GTKPRINT="no"
45139
45140
45141else
45142 GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
45143 GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
47964710
VS
45144 { echo "$as_me:$LINENO: result: yes" >&5
45145echo "${ECHO_T}yes" >&6; }
bd8a7646
RR
45146
45147 CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
45148 CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
45149 cat >>confdefs.h <<\_ACEOF
45150#define wxUSE_GTKPRINT 1
45151_ACEOF
45152
45153
45154fi
45155 fi
45156
d1c38808
VZ
45157 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
45158
45159
3ecd9f92 45160pkg_failed=no
47964710
VS
45161{ echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
45162echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
d1c38808 45163
3ecd9f92
MW
45164if test -n "$PKG_CONFIG"; then
45165 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
45166 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
45167 else
45168 if test -n "$PKG_CONFIG" && \
45169 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45170 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45171 ac_status=$?
45172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45173 (exit $ac_status); }; then
45174 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 45175else
3ecd9f92
MW
45176 pkg_failed=yes
45177fi
45178 fi
45179else
45180 pkg_failed=untried
d1c38808 45181fi
d1c38808 45182if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
45183 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
45184 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
45185 else
45186 if test -n "$PKG_CONFIG" && \
45187 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45188 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45189 ac_status=$?
45190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45191 (exit $ac_status); }; then
45192 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 45193else
3ecd9f92
MW
45194 pkg_failed=yes
45195fi
45196 fi
45197else
45198 pkg_failed=untried
d1c38808
VZ
45199fi
45200
d1c38808 45201
d1c38808 45202
3ecd9f92 45203if test $pkg_failed = yes; then
d1c38808 45204
3ecd9f92
MW
45205if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45206 _pkg_short_errors_supported=yes
45207else
45208 _pkg_short_errors_supported=no
45209fi
45210 if test $_pkg_short_errors_supported = yes; then
45211 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45212 else
45213 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 45214 fi
3ecd9f92
MW
45215 # Put the nasty error message in config.log where it belongs
45216 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
45217
45218
3ecd9f92
MW
45219 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45220echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45221 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
45222
45223
3ecd9f92 45224elif test $pkg_failed = untried; then
d1c38808
VZ
45225
45226 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45227echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45228 wxUSE_LIBGNOMEPRINT="no"
45229
45230
3ecd9f92
MW
45231else
45232 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
45233 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
47964710
VS
45234 { echo "$as_me:$LINENO: result: yes" >&5
45235echo "${ECHO_T}yes" >&6; }
d1c38808 45236
9b8888f9 45237 CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
3ecd9f92
MW
45238 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
45239 cat >>confdefs.h <<\_ACEOF
45240#define wxUSE_LIBGNOMEPRINT 1
45241_ACEOF
45242
45243
45244fi
d1c38808
VZ
45245 fi
45246 fi
d1c38808 45247
2b850ae1
RR
45248 if test "$wxUSE_MIMETYPE" = "yes" ; then
45249 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45250
45251
3ecd9f92 45252pkg_failed=no
47964710
VS
45253{ echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
45254echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
2b850ae1 45255
3ecd9f92
MW
45256if test -n "$PKG_CONFIG"; then
45257 if test -n "$GNOMEVFS_CFLAGS"; then
45258 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
45259 else
45260 if test -n "$PKG_CONFIG" && \
45261 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45262 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45263 ac_status=$?
45264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45265 (exit $ac_status); }; then
45266 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 45267else
3ecd9f92
MW
45268 pkg_failed=yes
45269fi
45270 fi
45271else
45272 pkg_failed=untried
2b850ae1 45273fi
2b850ae1 45274if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
45275 if test -n "$GNOMEVFS_LIBS"; then
45276 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
45277 else
45278 if test -n "$PKG_CONFIG" && \
45279 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45280 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45281 ac_status=$?
45282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45283 (exit $ac_status); }; then
45284 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 45285else
3ecd9f92
MW
45286 pkg_failed=yes
45287fi
45288 fi
45289else
45290 pkg_failed=untried
2b850ae1
RR
45291fi
45292
2b850ae1 45293
2b850ae1 45294
3ecd9f92 45295if test $pkg_failed = yes; then
2b850ae1 45296
3ecd9f92
MW
45297if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45298 _pkg_short_errors_supported=yes
45299else
45300 _pkg_short_errors_supported=no
45301fi
45302 if test $_pkg_short_errors_supported = yes; then
45303 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45304 else
45305 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 45306 fi
3ecd9f92
MW
45307 # Put the nasty error message in config.log where it belongs
45308 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
45309
45310
3ecd9f92
MW
45311 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45312echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45313 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
45314
45315
3ecd9f92 45316elif test $pkg_failed = untried; then
2b850ae1
RR
45317
45318 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45319echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45320 wxUSE_LIBGNOMEVFS="no"
45321
45322
3ecd9f92
MW
45323else
45324 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
45325 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
47964710
VS
45326 { echo "$as_me:$LINENO: result: yes" >&5
45327echo "${ECHO_T}yes" >&6; }
2b850ae1 45328
9b8888f9 45329 CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
3ecd9f92
MW
45330 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
45331 cat >>confdefs.h <<\_ACEOF
45332#define wxUSE_LIBGNOMEVFS 1
45333_ACEOF
45334
45335
45336fi
2b850ae1
RR
45337 fi
45338 fi
2b850ae1 45339
3565d135
RR
45340 if test "$wxUSE_LIBHILDON" = "yes" ; then
45341
3ecd9f92 45342pkg_failed=no
47964710
VS
45343{ echo "$as_me:$LINENO: checking for HILDON" >&5
45344echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
3565d135 45345
3ecd9f92
MW
45346if test -n "$PKG_CONFIG"; then
45347 if test -n "$HILDON_CFLAGS"; then
45348 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
45349 else
45350 if test -n "$PKG_CONFIG" && \
45351 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45352 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45353 ac_status=$?
45354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45355 (exit $ac_status); }; then
45356 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 45357else
3ecd9f92
MW
45358 pkg_failed=yes
45359fi
45360 fi
45361else
45362 pkg_failed=untried
3565d135 45363fi
3565d135 45364if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
45365 if test -n "$HILDON_LIBS"; then
45366 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
45367 else
45368 if test -n "$PKG_CONFIG" && \
45369 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45370 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45371 ac_status=$?
45372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45373 (exit $ac_status); }; then
45374 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 45375else
3ecd9f92
MW
45376 pkg_failed=yes
45377fi
45378 fi
45379else
45380 pkg_failed=untried
3565d135
RR
45381fi
45382
3565d135 45383
3565d135 45384
3ecd9f92 45385if test $pkg_failed = yes; then
3565d135 45386
3ecd9f92
MW
45387if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45388 _pkg_short_errors_supported=yes
45389else
45390 _pkg_short_errors_supported=no
45391fi
45392 if test $_pkg_short_errors_supported = yes; then
45393 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45394 else
45395 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 45396 fi
3ecd9f92
MW
45397 # Put the nasty error message in config.log where it belongs
45398 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
45399
45400
3ecd9f92
MW
45401 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45402echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45403 wxUSE_LIBHILDON="no"
3565d135 45404
3565d135 45405
3ecd9f92
MW
45406elif test $pkg_failed = untried; then
45407
45408 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45409echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45410 wxUSE_LIBHILDON="no"
45411
45412
45413else
45414 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
45415 HILDON_LIBS=$pkg_cv_HILDON_LIBS
47964710
VS
45416 { echo "$as_me:$LINENO: result: yes" >&5
45417echo "${ECHO_T}yes" >&6; }
3565d135
RR
45418
45419 EXTRALIBS_HILDON="$HILDON_LIBS"
9b8888f9 45420 CFLAGS="$CFLAGS $HILDON_CFLAGS"
3565d135
RR
45421 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
45422 cat >>confdefs.h <<\_ACEOF
45423#define wxUSE_LIBHILDON 1
45424_ACEOF
45425
45426
3ecd9f92 45427fi
3565d135
RR
45428 fi
45429fi
d1c38808 45430
a848cd7e
SC
45431if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45432 cat >>confdefs.h <<\_ACEOF
45433#define wxUSE_CMDLINE_PARSER 1
45434_ACEOF
45435
45436fi
45437
45438if test "$wxUSE_STOPWATCH" = "yes"; then
45439 cat >>confdefs.h <<\_ACEOF
45440#define wxUSE_STOPWATCH 1
45441_ACEOF
45442
45443fi
45444
45445if test "$wxUSE_DATETIME" = "yes"; then
45446 cat >>confdefs.h <<\_ACEOF
45447#define wxUSE_DATETIME 1
45448_ACEOF
45449
45450fi
45451
45452if test "$wxUSE_FILE" = "yes"; then
45453 cat >>confdefs.h <<\_ACEOF
45454#define wxUSE_FILE 1
45455_ACEOF
45456
45457fi
45458
45459if test "$wxUSE_FFILE" = "yes"; then
45460 cat >>confdefs.h <<\_ACEOF
45461#define wxUSE_FFILE 1
45462_ACEOF
45463
45464fi
45465
9e8e867f 45466if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
26e422a9
MW
45467 if test "$wxUSE_STREAMS" != yes; then
45468 { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45469echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
916af76f 45470 wxUSE_ARCHIVE_STREAMS=no
26e422a9
MW
45471 else
45472 cat >>confdefs.h <<\_ACEOF
9e8e867f 45473#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
45474_ACEOF
45475
26e422a9 45476 fi
81f90336
MW
45477fi
45478
45479if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 45480 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
45481 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45482echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45483 elif test "$wxUSE_ZLIB" = "no"; then
45484 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45485echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45486 else
45487 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45488#define wxUSE_ZIPSTREAM 1
45489_ACEOF
45490
81f90336 45491 fi
a848cd7e
SC
45492fi
45493
26e422a9
MW
45494if test "$wxUSE_TARSTREAM" = "yes"; then
45495 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45496 { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45497echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45498 else
45499 cat >>confdefs.h <<\_ACEOF
45500#define wxUSE_TARSTREAM 1
45501_ACEOF
45502
45503 fi
45504fi
45505
916af76f 45506if test "$wxUSE_FILESYSTEM" = "yes"; then
f8f6c91a 45507 if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
916af76f
MW
45508 { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45509echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45510 wxUSE_FILESYSTEM=no
f8f6c91a
MW
45511 else
45512 cat >>confdefs.h <<\_ACEOF
916af76f 45513#define wxUSE_FILESYSTEM 1
f8f6c91a
MW
45514_ACEOF
45515
45516 fi
45517fi
45518
26e422a9 45519if test "$wxUSE_FS_ARCHIVE" = "yes"; then
916af76f
MW
45520 if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45521 { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45522echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
26e422a9
MW
45523 else
45524 cat >>confdefs.h <<\_ACEOF
45525#define wxUSE_FS_ARCHIVE 1
45526_ACEOF
45527
45528 fi
45529fi
45530
916af76f
MW
45531if test "$wxUSE_FS_ZIP" = "yes"; then
45532 if test "$wxUSE_FS_ARCHIVE" != yes; then
45533 { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45534echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45535 else
45536 cat >>confdefs.h <<\_ACEOF
45537#define wxUSE_FS_ZIP 1
45538_ACEOF
45539
45540 fi
45541fi
45542
a848cd7e 45543if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
45544 if test "$USE_UNIX" != 1; then
45545 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45546echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45547 wxUSE_ON_FATAL_EXCEPTION=no
45548 else
45549 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45550#define wxUSE_ON_FATAL_EXCEPTION 1
45551_ACEOF
45552
18228ab4 45553 fi
a848cd7e
SC
45554fi
45555
eaff0f0d
VZ
45556if test "$wxUSE_STACKWALKER" = "yes"; then
45557 cat >>confdefs.h <<\_ACEOF
45558#define wxUSE_STACKWALKER 1
45559_ACEOF
45560
45561fi
45562
36b6448c 45563if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
45564 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
45565 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45566echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
45567 wxUSE_DEBUGREPORT=no
45568 else
45569 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
45570#define wxUSE_DEBUGREPORT 1
45571_ACEOF
45572
21dfc162
MW
45573 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45574 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45575 fi
dfe0c803 45576 fi
36b6448c
VZ
45577fi
45578
a848cd7e
SC
45579if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45580 cat >>confdefs.h <<\_ACEOF
45581#define wxUSE_SNGLINST_CHECKER 1
45582_ACEOF
45583
45584fi
45585
45586if test "$wxUSE_BUSYINFO" = "yes"; then
45587 cat >>confdefs.h <<\_ACEOF
45588#define wxUSE_BUSYINFO 1
45589_ACEOF
45590
45591fi
45592
45593if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45594 cat >>confdefs.h <<\_ACEOF
45595#define wxUSE_STD_IOSTREAM 1
45596_ACEOF
45597
45598fi
45599
59746b65
MW
45600if test "$wxUSE_STD_STRING" = "yes"; then
45601 cat >>confdefs.h <<\_ACEOF
45602#define wxUSE_STD_STRING 1
45603_ACEOF
45604
45605fi
45606
07158944
VZ
45607if test "$wxUSE_STDPATHS" = "yes"; then
45608 cat >>confdefs.h <<\_ACEOF
45609#define wxUSE_STDPATHS 1
45610_ACEOF
45611
45612fi
45613
a848cd7e
SC
45614if test "$wxUSE_TEXTBUFFER" = "yes"; then
45615 cat >>confdefs.h <<\_ACEOF
45616#define wxUSE_TEXTBUFFER 1
45617_ACEOF
45618
45619fi
45620
45621if test "$wxUSE_TEXTFILE" = "yes"; then
45622 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45623 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45624echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45625 else
45626 cat >>confdefs.h <<\_ACEOF
45627#define wxUSE_TEXTFILE 1
45628_ACEOF
45629
45630 fi
45631fi
45632
45633if test "$wxUSE_CONFIG" = "yes" ; then
45634 if test "$wxUSE_TEXTFILE" != "yes"; then
45635 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45636echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45637 else
45638 cat >>confdefs.h <<\_ACEOF
45639#define wxUSE_CONFIG 1
89be85c2
VS
45640_ACEOF
45641
45642 cat >>confdefs.h <<\_ACEOF
45643#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
45644_ACEOF
45645
45646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45647 fi
45648fi
45649
45650if test "$wxUSE_INTL" = "yes" ; then
45651 if test "$wxUSE_FILE" != "yes"; then
45652 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45653echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45654 else
45655 cat >>confdefs.h <<\_ACEOF
45656#define wxUSE_INTL 1
45657_ACEOF
45658
45659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45660 GUIDIST="$GUIDIST INTL_DIST"
45661 fi
45662fi
45663
45664if test "$wxUSE_LOG" = "yes"; then
45665 cat >>confdefs.h <<\_ACEOF
45666#define wxUSE_LOG 1
45667_ACEOF
45668
45669
45670 if test "$wxUSE_LOGGUI" = "yes"; then
45671 cat >>confdefs.h <<\_ACEOF
45672#define wxUSE_LOGGUI 1
45673_ACEOF
45674
45675 fi
45676
45677 if test "$wxUSE_LOGWINDOW" = "yes"; then
45678 cat >>confdefs.h <<\_ACEOF
45679#define wxUSE_LOGWINDOW 1
45680_ACEOF
45681
45682 fi
45683
45684 if test "$wxUSE_LOGDIALOG" = "yes"; then
45685 cat >>confdefs.h <<\_ACEOF
45686#define wxUSE_LOG_DIALOG 1
45687_ACEOF
45688
45689 fi
0b78747f
MW
45690
45691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
45692fi
45693
45694if test "$wxUSE_LONGLONG" = "yes"; then
45695 cat >>confdefs.h <<\_ACEOF
45696#define wxUSE_LONGLONG 1
45697_ACEOF
45698
45699fi
45700
45701if test "$wxUSE_GEOMETRY" = "yes"; then
45702 cat >>confdefs.h <<\_ACEOF
45703#define wxUSE_GEOMETRY 1
45704_ACEOF
45705
45706fi
45707
4db03d26
VZ
45708if test "$wxUSE_BASE64" = "yes"; then
45709 cat >>confdefs.h <<\_ACEOF
45710#define wxUSE_BASE64 1
45711_ACEOF
45712
45713fi
45714
a848cd7e
SC
45715if test "$wxUSE_STREAMS" = "yes" ; then
45716 cat >>confdefs.h <<\_ACEOF
45717#define wxUSE_STREAMS 1
45718_ACEOF
45719
45720fi
45721
8b6682b9
JS
45722if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45723 cat >>confdefs.h <<\_ACEOF
45724#define wxUSE_PRINTF_POS_PARAMS 1
45725_ACEOF
45726
45727fi
45728
931d7698
DE
45729if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45730 cat >>confdefs.h <<\_ACEOF
45731#define wxUSE_OBJC_UNIQUIFYING 1
45732_ACEOF
45733
45734fi
8b6682b9 45735
a848cd7e 45736
39931206
VZ
45737if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45738 cat >>confdefs.h <<\_ACEOF
45739#define wxUSE_CONSOLE_EVENTLOOP 1
45740_ACEOF
45741
45742
45743 if test "$wxUSE_UNIX" = "yes"; then
45744 if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45745 cat >>confdefs.h <<\_ACEOF
45746#define wxUSE_SELECT_DISPATCHER 1
45747_ACEOF
45748
45749 fi
45750
45751 if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45752
45753for ac_header in sys/epoll.h
45754do
45755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47964710
VS
45756{ echo "$as_me:$LINENO: checking for $ac_header" >&5
45757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39931206 45759 echo $ECHO_N "(cached) $ECHO_C" >&6
39931206 45760else
b55e1842 45761 cat >conftest.$ac_ext <<_ACEOF
39931206
VZ
45762/* confdefs.h. */
45763_ACEOF
45764cat confdefs.h >>conftest.$ac_ext
45765cat >>conftest.$ac_ext <<_ACEOF
45766/* end confdefs.h. */
45767$ac_includes_default
b55e1842 45768
39931206
VZ
45769#include <$ac_header>
45770_ACEOF
45771rm -f conftest.$ac_objext
47964710
VS
45772if { (ac_try="$ac_compile"
45773case "(($ac_try" in
45774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45775 *) ac_try_echo=$ac_try;;
45776esac
45777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45778 (eval "$ac_compile") 2>conftest.er1
39931206
VZ
45779 ac_status=$?
45780 grep -v '^ *+' conftest.er1 >conftest.err
45781 rm -f conftest.er1
45782 cat conftest.err >&5
45783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45784 (exit $ac_status); } && {
45785 test -z "$ac_c_werror_flag" ||
45786 test ! -s conftest.err
45787 } && test -s conftest.$ac_objext; then
b55e1842 45788 eval "$as_ac_Header=yes"
39931206
VZ
45789else
45790 echo "$as_me: failed program was:" >&5
45791sed 's/^/| /' conftest.$ac_ext >&5
45792
47964710 45793 eval "$as_ac_Header=no"
39931206 45794fi
47964710
VS
45795
45796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39931206 45797fi
47964710
VS
45798ac_res=`eval echo '${'$as_ac_Header'}'`
45799 { echo "$as_me:$LINENO: result: $ac_res" >&5
45800echo "${ECHO_T}$ac_res" >&6; }
39931206
VZ
45801if test `eval echo '${'$as_ac_Header'}'` = yes; then
45802 cat >>confdefs.h <<_ACEOF
45803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45804_ACEOF
45805
45806fi
45807
45808done
45809
45810 if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45811 cat >>confdefs.h <<\_ACEOF
45812#define wxUSE_EPOLL_DISPATCHER 1
45813_ACEOF
45814
45815 else
45816 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45817echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45818 fi
45819 fi
45820 fi
45821fi
45822
45823
5f6cafd1
VZ
45824
45825
45826for ac_func in gettimeofday ftime
45827do
45828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
45829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
45830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5f6cafd1
VZ
45832 echo $ECHO_N "(cached) $ECHO_C" >&6
45833else
45834 cat >conftest.$ac_ext <<_ACEOF
45835/* confdefs.h. */
45836_ACEOF
45837cat confdefs.h >>conftest.$ac_ext
45838cat >>conftest.$ac_ext <<_ACEOF
45839/* end confdefs.h. */
45840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45842#define $ac_func innocuous_$ac_func
45843
45844/* System header to define __stub macros and hopefully few prototypes,
45845 which can conflict with char $ac_func (); below.
45846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45847 <limits.h> exists even on freestanding compilers. */
45848
45849#ifdef __STDC__
45850# include <limits.h>
45851#else
45852# include <assert.h>
45853#endif
45854
45855#undef $ac_func
45856
47964710
VS
45857/* Override any GCC internal prototype to avoid an error.
45858 Use char because int might match the return type of a GCC
45859 builtin and then its argument prototype would still apply. */
5f6cafd1
VZ
45860#ifdef __cplusplus
45861extern "C"
45862#endif
45863char $ac_func ();
45864/* The GNU C library defines this for functions which it implements
45865 to always fail with ENOSYS. Some functions are actually named
45866 something starting with __ and the normal name is an alias. */
47964710 45867#if defined __stub_$ac_func || defined __stub___$ac_func
5f6cafd1
VZ
45868choke me
45869#endif
45870
45871int
45872main ()
45873{
47964710 45874return $ac_func ();
5f6cafd1
VZ
45875 ;
45876 return 0;
45877}
45878_ACEOF
45879rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
45880if { (ac_try="$ac_link"
45881case "(($ac_try" in
45882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45883 *) ac_try_echo=$ac_try;;
45884esac
45885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45886 (eval "$ac_link") 2>conftest.er1
5f6cafd1
VZ
45887 ac_status=$?
45888 grep -v '^ *+' conftest.er1 >conftest.err
45889 rm -f conftest.er1
45890 cat conftest.err >&5
45891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45892 (exit $ac_status); } && {
45893 test -z "$ac_c_werror_flag" ||
45894 test ! -s conftest.err
45895 } && test -s conftest$ac_exeext &&
45896 $as_test_x conftest$ac_exeext; then
5f6cafd1
VZ
45897 eval "$as_ac_var=yes"
45898else
45899 echo "$as_me: failed program was:" >&5
45900sed 's/^/| /' conftest.$ac_ext >&5
45901
47964710 45902 eval "$as_ac_var=no"
5f6cafd1 45903fi
47964710
VS
45904
45905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5f6cafd1
VZ
45906 conftest$ac_exeext conftest.$ac_ext
45907fi
47964710
VS
45908ac_res=`eval echo '${'$as_ac_var'}'`
45909 { echo "$as_me:$LINENO: result: $ac_res" >&5
45910echo "${ECHO_T}$ac_res" >&6; }
5f6cafd1
VZ
45911if test `eval echo '${'$as_ac_var'}'` = yes; then
45912 cat >>confdefs.h <<_ACEOF
45913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45914_ACEOF
45915 break
45916fi
45917done
45918
45919
45920if test "$ac_cv_func_gettimeofday" = "yes"; then
47964710
VS
45921 { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45922echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
5f6cafd1
VZ
45923if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45924 echo $ECHO_N "(cached) $ECHO_C" >&6
45925else
45926
45927 cat >conftest.$ac_ext <<_ACEOF
45928/* confdefs.h. */
45929_ACEOF
45930cat confdefs.h >>conftest.$ac_ext
45931cat >>conftest.$ac_ext <<_ACEOF
45932/* end confdefs.h. */
45933
45934 #include <sys/time.h>
45935 #include <unistd.h>
45936
45937int
45938main ()
45939{
45940
45941 struct timeval tv;
45942 gettimeofday(&tv, NULL);
45943
45944 ;
45945 return 0;
45946}
45947_ACEOF
45948rm -f conftest.$ac_objext
47964710
VS
45949if { (ac_try="$ac_compile"
45950case "(($ac_try" in
45951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45952 *) ac_try_echo=$ac_try;;
45953esac
45954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45955 (eval "$ac_compile") 2>conftest.er1
5f6cafd1
VZ
45956 ac_status=$?
45957 grep -v '^ *+' conftest.er1 >conftest.err
45958 rm -f conftest.er1
45959 cat conftest.err >&5
45960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45961 (exit $ac_status); } && {
45962 test -z "$ac_c_werror_flag" ||
45963 test ! -s conftest.err
45964 } && test -s conftest.$ac_objext; then
5f6cafd1
VZ
45965 wx_cv_func_gettimeofday_has_2_args=yes
45966else
45967 echo "$as_me: failed program was:" >&5
45968sed 's/^/| /' conftest.$ac_ext >&5
45969
47964710 45970 cat >conftest.$ac_ext <<_ACEOF
5f6cafd1
VZ
45971/* confdefs.h. */
45972_ACEOF
45973cat confdefs.h >>conftest.$ac_ext
45974cat >>conftest.$ac_ext <<_ACEOF
45975/* end confdefs.h. */
45976
45977 #include <sys/time.h>
45978 #include <unistd.h>
45979
45980int
45981main ()
45982{
45983
45984 struct timeval tv;
45985 gettimeofday(&tv);
45986
45987 ;
45988 return 0;
45989}
45990_ACEOF
45991rm -f conftest.$ac_objext
47964710
VS
45992if { (ac_try="$ac_compile"
45993case "(($ac_try" in
45994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45995 *) ac_try_echo=$ac_try;;
45996esac
45997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45998 (eval "$ac_compile") 2>conftest.er1
5f6cafd1
VZ
45999 ac_status=$?
46000 grep -v '^ *+' conftest.er1 >conftest.err
46001 rm -f conftest.er1
46002 cat conftest.err >&5
46003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46004 (exit $ac_status); } && {
46005 test -z "$ac_c_werror_flag" ||
46006 test ! -s conftest.err
46007 } && test -s conftest.$ac_objext; then
5f6cafd1
VZ
46008 wx_cv_func_gettimeofday_has_2_args=no
46009else
46010 echo "$as_me: failed program was:" >&5
46011sed 's/^/| /' conftest.$ac_ext >&5
46012
46013
46014 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
46015echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
46016 wx_cv_func_gettimeofday_has_2_args=unknown
46017
46018
46019fi
47964710
VS
46020
46021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5f6cafd1
VZ
46022
46023fi
47964710
VS
46024
46025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5f6cafd1
VZ
46026
46027fi
47964710
VS
46028{ echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
46029echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
5f6cafd1
VZ
46030
46031 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
46032 cat >>confdefs.h <<\_ACEOF
46033#define WX_GETTIMEOFDAY_NO_TZ 1
46034_ACEOF
46035
46036 fi
46037fi
46038
a848cd7e 46039if test "$wxUSE_DATETIME" = "yes"; then
47964710
VS
46040 { echo "$as_me:$LINENO: checking for strptime" >&5
46041echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
63a09523 46042if test "${ac_cv_func_strptime+set}" = set; then
a848cd7e
SC
46043 echo $ECHO_N "(cached) $ECHO_C" >&6
46044else
46045 cat >conftest.$ac_ext <<_ACEOF
46046/* confdefs.h. */
46047_ACEOF
46048cat confdefs.h >>conftest.$ac_ext
46049cat >>conftest.$ac_ext <<_ACEOF
46050/* end confdefs.h. */
63a09523 46051/* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
ac1cb8d3 46052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63a09523 46053#define strptime innocuous_strptime
ac1cb8d3 46054
a848cd7e 46055/* System header to define __stub macros and hopefully few prototypes,
63a09523 46056 which can conflict with char strptime (); below.
a848cd7e
SC
46057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46058 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 46059
a848cd7e
SC
46060#ifdef __STDC__
46061# include <limits.h>
46062#else
46063# include <assert.h>
46064#endif
ac1cb8d3 46065
63a09523 46066#undef strptime
ac1cb8d3 46067
47964710
VS
46068/* Override any GCC internal prototype to avoid an error.
46069 Use char because int might match the return type of a GCC
46070 builtin and then its argument prototype would still apply. */
a848cd7e
SC
46071#ifdef __cplusplus
46072extern "C"
a848cd7e 46073#endif
63a09523 46074char strptime ();
a848cd7e
SC
46075/* The GNU C library defines this for functions which it implements
46076 to always fail with ENOSYS. Some functions are actually named
46077 something starting with __ and the normal name is an alias. */
47964710 46078#if defined __stub_strptime || defined __stub___strptime
a848cd7e 46079choke me
a848cd7e
SC
46080#endif
46081
46082int
46083main ()
46084{
47964710 46085return strptime ();
a848cd7e
SC
46086 ;
46087 return 0;
46088}
46089_ACEOF
46090rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
46091if { (ac_try="$ac_link"
46092case "(($ac_try" in
46093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46094 *) ac_try_echo=$ac_try;;
46095esac
46096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46097 (eval "$ac_link") 2>conftest.er1
a848cd7e 46098 ac_status=$?
ac1cb8d3
VS
46099 grep -v '^ *+' conftest.er1 >conftest.err
46100 rm -f conftest.er1
46101 cat conftest.err >&5
a848cd7e 46102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46103 (exit $ac_status); } && {
46104 test -z "$ac_c_werror_flag" ||
46105 test ! -s conftest.err
46106 } && test -s conftest$ac_exeext &&
46107 $as_test_x conftest$ac_exeext; then
63a09523 46108 ac_cv_func_strptime=yes
a848cd7e
SC
46109else
46110 echo "$as_me: failed program was:" >&5
46111sed 's/^/| /' conftest.$ac_ext >&5
46112
47964710 46113 ac_cv_func_strptime=no
a848cd7e 46114fi
47964710
VS
46115
46116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 46117 conftest$ac_exeext conftest.$ac_ext
a848cd7e 46118fi
47964710
VS
46119{ echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
46120echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
a848cd7e 46121
f536f005 46122 if test "$ac_cv_func_strptime" = "yes"; then
47964710
VS
46123 { echo "$as_me:$LINENO: checking for strptime declaration" >&5
46124echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
f536f005
VZ
46125if test "${wx_cv_func_strptime_decl+set}" = set; then
46126 echo $ECHO_N "(cached) $ECHO_C" >&6
46127else
46128
47964710 46129 ac_ext=cpp
9b8888f9
VZ
46130ac_cpp='$CXXCPP $CPPFLAGS'
46131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46134
f536f005
VZ
46135 cat >conftest.$ac_ext <<_ACEOF
46136/* confdefs.h. */
46137_ACEOF
46138cat confdefs.h >>conftest.$ac_ext
46139cat >>conftest.$ac_ext <<_ACEOF
46140/* end confdefs.h. */
46141
46142 #include <time.h>
46143
46144int
46145main ()
46146{
46147
46148 struct tm t;
46149 strptime("foo", "bar", &t);
46150
46151 ;
46152 return 0;
46153}
46154_ACEOF
46155rm -f conftest.$ac_objext
47964710
VS
46156if { (ac_try="$ac_compile"
46157case "(($ac_try" in
46158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46159 *) ac_try_echo=$ac_try;;
46160esac
46161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46162 (eval "$ac_compile") 2>conftest.er1
f536f005
VZ
46163 ac_status=$?
46164 grep -v '^ *+' conftest.er1 >conftest.err
46165 rm -f conftest.er1
46166 cat conftest.err >&5
46167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46168 (exit $ac_status); } && {
46169 test -z "$ac_cxx_werror_flag" ||
46170 test ! -s conftest.err
46171 } && test -s conftest.$ac_objext; then
f536f005
VZ
46172 wx_cv_func_strptime_decl=yes
46173else
46174 echo "$as_me: failed program was:" >&5
46175sed 's/^/| /' conftest.$ac_ext >&5
46176
47964710 46177 wx_cv_func_strptime_decl=no
f536f005
VZ
46178
46179fi
47964710
VS
46180
46181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
46182 ac_ext=c
46183ac_cpp='$CPP $CPPFLAGS'
46184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46186ac_compiler_gnu=$ac_cv_c_compiler_gnu
46187
f536f005
VZ
46188
46189
46190fi
47964710
VS
46191{ echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
46192echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
f536f005
VZ
46193 fi
46194 if test "$wx_cv_func_strptime_decl" = "yes"; then
46195 cat >>confdefs.h <<\_ACEOF
46196#define HAVE_STRPTIME_DECL 1
46197_ACEOF
46198
63a09523
VZ
46199 else
46200 wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
46201 fi
46202 if test "$ac_cv_func_strptime" = "yes"; then
47964710
VS
46203 { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
46204echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
63a09523
VZ
46205if test "${wx_cv_func_strptime_ok+set}" = set; then
46206 echo $ECHO_N "(cached) $ECHO_C" >&6
46207else
46208 if test "$cross_compiling" = yes; then
46209 wx_cv_func_strptime_ok=no
46210
46211else
46212 cat >conftest.$ac_ext <<_ACEOF
46213
46214 #include <stdlib.h>
46215 #include <time.h>
46216 #include "confdefs.h"
46217
46218 $wx_strptime_decl
46219
46220 int main()
46221 {
8f0b4082
VZ
46222 struct tm t;
46223 return !!strptime("", "%x", &t);
63a09523
VZ
46224 }
46225
46226_ACEOF
46227rm -f conftest$ac_exeext
47964710
VS
46228if { (ac_try="$ac_link"
46229case "(($ac_try" in
46230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46231 *) ac_try_echo=$ac_try;;
46232esac
46233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46234 (eval "$ac_link") 2>&5
63a09523
VZ
46235 ac_status=$?
46236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
46238 { (case "(($ac_try" in
46239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46240 *) ac_try_echo=$ac_try;;
46241esac
46242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46243 (eval "$ac_try") 2>&5
63a09523
VZ
46244 ac_status=$?
46245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46246 (exit $ac_status); }; }; then
46247 wx_cv_func_strptime_ok=yes
46248else
46249 echo "$as_me: program exited with status $ac_status" >&5
46250echo "$as_me: failed program was:" >&5
46251sed 's/^/| /' conftest.$ac_ext >&5
46252
46253( exit $ac_status )
46254wx_cv_func_strptime_ok=no
46255fi
47964710 46256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63a09523
VZ
46257fi
46258
47964710
VS
46259
46260
63a09523 46261fi
47964710
VS
46262{ echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
46263echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
63a09523
VZ
46264
46265 if test "$wx_cv_func_strptime_ok" = "yes"; then
46266 cat >>confdefs.h <<\_ACEOF
46267#define HAVE_STRPTIME 1
46268_ACEOF
46269
46270 fi
f536f005 46271 fi
a848cd7e 46272
47964710
VS
46273 { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
46274echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
a848cd7e
SC
46275if test "${wx_cv_var_timezone+set}" = set; then
46276 echo $ECHO_N "(cached) $ECHO_C" >&6
46277else
46278
47964710 46279 ac_ext=cpp
715d53e4
VZ
46280ac_cpp='$CXXCPP $CPPFLAGS'
46281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46284
a848cd7e
SC
46285 cat >conftest.$ac_ext <<_ACEOF
46286/* confdefs.h. */
46287_ACEOF
46288cat confdefs.h >>conftest.$ac_ext
46289cat >>conftest.$ac_ext <<_ACEOF
46290/* end confdefs.h. */
46291
46292 #include <time.h>
46293
46294int
46295main ()
46296{
46297
46298 int tz;
46299 tz = timezone;
46300
46301 ;
46302 return 0;
46303}
46304_ACEOF
46305rm -f conftest.$ac_objext
47964710
VS
46306if { (ac_try="$ac_compile"
46307case "(($ac_try" in
46308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46309 *) ac_try_echo=$ac_try;;
46310esac
46311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46312 (eval "$ac_compile") 2>conftest.er1
a848cd7e 46313 ac_status=$?
ac1cb8d3
VS
46314 grep -v '^ *+' conftest.er1 >conftest.err
46315 rm -f conftest.er1
46316 cat conftest.err >&5
a848cd7e 46317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46318 (exit $ac_status); } && {
46319 test -z "$ac_cxx_werror_flag" ||
46320 test ! -s conftest.err
46321 } && test -s conftest.$ac_objext; then
a848cd7e
SC
46322
46323 wx_cv_var_timezone=timezone
46324
46325else
46326 echo "$as_me: failed program was:" >&5
46327sed 's/^/| /' conftest.$ac_ext >&5
46328
46329
46330 cat >conftest.$ac_ext <<_ACEOF
46331/* confdefs.h. */
46332_ACEOF
46333cat confdefs.h >>conftest.$ac_ext
46334cat >>conftest.$ac_ext <<_ACEOF
46335/* end confdefs.h. */
46336
46337 #include <time.h>
46338
46339int
46340main ()
46341{
46342
46343 int tz;
46344 tz = _timezone;
46345
46346 ;
46347 return 0;
46348}
46349_ACEOF
46350rm -f conftest.$ac_objext
47964710
VS
46351if { (ac_try="$ac_compile"
46352case "(($ac_try" in
46353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46354 *) ac_try_echo=$ac_try;;
46355esac
46356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46357 (eval "$ac_compile") 2>conftest.er1
a848cd7e 46358 ac_status=$?
ac1cb8d3
VS
46359 grep -v '^ *+' conftest.er1 >conftest.err
46360 rm -f conftest.er1
46361 cat conftest.err >&5
a848cd7e 46362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46363 (exit $ac_status); } && {
46364 test -z "$ac_cxx_werror_flag" ||
46365 test ! -s conftest.err
46366 } && test -s conftest.$ac_objext; then
a848cd7e
SC
46367
46368 wx_cv_var_timezone=_timezone
46369
46370else
46371 echo "$as_me: failed program was:" >&5
46372sed 's/^/| /' conftest.$ac_ext >&5
46373
46374
46375 cat >conftest.$ac_ext <<_ACEOF
46376/* confdefs.h. */
46377_ACEOF
46378cat confdefs.h >>conftest.$ac_ext
46379cat >>conftest.$ac_ext <<_ACEOF
46380/* end confdefs.h. */
46381
46382 #include <time.h>
46383
46384int
46385main ()
46386{
46387
46388 int tz;
46389 tz = __timezone;
46390
46391 ;
46392 return 0;
46393}
46394_ACEOF
46395rm -f conftest.$ac_objext
47964710
VS
46396if { (ac_try="$ac_compile"
46397case "(($ac_try" in
46398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46399 *) ac_try_echo=$ac_try;;
46400esac
46401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46402 (eval "$ac_compile") 2>conftest.er1
a848cd7e 46403 ac_status=$?
ac1cb8d3
VS
46404 grep -v '^ *+' conftest.er1 >conftest.err
46405 rm -f conftest.er1
46406 cat conftest.err >&5
a848cd7e 46407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46408 (exit $ac_status); } && {
46409 test -z "$ac_cxx_werror_flag" ||
46410 test ! -s conftest.err
46411 } && test -s conftest.$ac_objext; then
a848cd7e
SC
46412
46413 wx_cv_var_timezone=__timezone
46414
46415else
46416 echo "$as_me: failed program was:" >&5
46417sed 's/^/| /' conftest.$ac_ext >&5
46418
46419
46420 if test "$USE_DOS" = 0 ; then
46421 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
46422echo "$as_me: WARNING: no timezone variable" >&2;}
46423 fi
46424
46425
46426fi
47964710
VS
46427
46428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46429
46430
46431fi
47964710
VS
46432
46433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46434
46435
46436fi
47964710
VS
46437
46438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
715d53e4
VZ
46439 ac_ext=c
46440ac_cpp='$CPP $CPPFLAGS'
46441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46443ac_compiler_gnu=$ac_cv_c_compiler_gnu
46444
a848cd7e
SC
46445
46446
46447fi
47964710
VS
46448{ echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
46449echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
a848cd7e
SC
46450
46451 if test "x$wx_cv_var_timezone" != x ; then
46452 cat >>confdefs.h <<_ACEOF
46453#define WX_TIMEZONE $wx_cv_var_timezone
46454_ACEOF
46455
46456 fi
46457
46458
46459for ac_func in localtime
46460do
46461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47964710
VS
46462{ echo "$as_me:$LINENO: checking for $ac_func" >&5
46463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46464if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
46465 echo $ECHO_N "(cached) $ECHO_C" >&6
46466else
46467 cat >conftest.$ac_ext <<_ACEOF
46468/* confdefs.h. */
46469_ACEOF
46470cat confdefs.h >>conftest.$ac_ext
46471cat >>conftest.$ac_ext <<_ACEOF
46472/* end confdefs.h. */
ac1cb8d3
VS
46473/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46475#define $ac_func innocuous_$ac_func
46476
a848cd7e
SC
46477/* System header to define __stub macros and hopefully few prototypes,
46478 which can conflict with char $ac_func (); below.
46479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46480 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 46481
a848cd7e
SC
46482#ifdef __STDC__
46483# include <limits.h>
46484#else
46485# include <assert.h>
46486#endif
ac1cb8d3
VS
46487
46488#undef $ac_func
46489
47964710
VS
46490/* Override any GCC internal prototype to avoid an error.
46491 Use char because int might match the return type of a GCC
46492 builtin and then its argument prototype would still apply. */
a848cd7e
SC
46493#ifdef __cplusplus
46494extern "C"
a848cd7e 46495#endif
a848cd7e
SC
46496char $ac_func ();
46497/* The GNU C library defines this for functions which it implements
46498 to always fail with ENOSYS. Some functions are actually named
46499 something starting with __ and the normal name is an alias. */
47964710 46500#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 46501choke me
a848cd7e
SC
46502#endif
46503
46504int
46505main ()
46506{
47964710 46507return $ac_func ();
a848cd7e
SC
46508 ;
46509 return 0;
46510}
46511_ACEOF
46512rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
46513if { (ac_try="$ac_link"
46514case "(($ac_try" in
46515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46516 *) ac_try_echo=$ac_try;;
46517esac
46518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46519 (eval "$ac_link") 2>conftest.er1
a848cd7e 46520 ac_status=$?
ac1cb8d3
VS
46521 grep -v '^ *+' conftest.er1 >conftest.err
46522 rm -f conftest.er1
46523 cat conftest.err >&5
a848cd7e 46524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46525 (exit $ac_status); } && {
46526 test -z "$ac_c_werror_flag" ||
46527 test ! -s conftest.err
46528 } && test -s conftest$ac_exeext &&
46529 $as_test_x conftest$ac_exeext; then
39b61aa3
VZ
46530 eval "$as_ac_var=yes"
46531else
46532 echo "$as_me: failed program was:" >&5
46533sed 's/^/| /' conftest.$ac_ext >&5
46534
47964710 46535 eval "$as_ac_var=no"
39b61aa3 46536fi
47964710
VS
46537
46538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39b61aa3
VZ
46539 conftest$ac_exeext conftest.$ac_ext
46540fi
47964710
VS
46541ac_res=`eval echo '${'$as_ac_var'}'`
46542 { echo "$as_me:$LINENO: result: $ac_res" >&5
46543echo "${ECHO_T}$ac_res" >&6; }
39b61aa3
VZ
46544if test `eval echo '${'$as_ac_var'}'` = yes; then
46545 cat >>confdefs.h <<_ACEOF
46546#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46547_ACEOF
46548
46549fi
46550done
46551
46552
46553 if test "$ac_cv_func_localtime" = "yes"; then
47964710
VS
46554 { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
46555echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
39b61aa3
VZ
46556if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
46557 echo $ECHO_N "(cached) $ECHO_C" >&6
46558else
46559
46560 cat >conftest.$ac_ext <<_ACEOF
46561/* confdefs.h. */
46562_ACEOF
46563cat confdefs.h >>conftest.$ac_ext
46564cat >>conftest.$ac_ext <<_ACEOF
46565/* end confdefs.h. */
46566
46567 #include <time.h>
46568
46569int
46570main ()
46571{
46572
46573 struct tm tm;
46574 tm.tm_gmtoff++;
46575
46576 ;
46577 return 0;
46578}
46579_ACEOF
46580rm -f conftest.$ac_objext
47964710
VS
46581if { (ac_try="$ac_compile"
46582case "(($ac_try" in
46583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46584 *) ac_try_echo=$ac_try;;
46585esac
46586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46587 (eval "$ac_compile") 2>conftest.er1
ac1cb8d3 46588 ac_status=$?
39b61aa3
VZ
46589 grep -v '^ *+' conftest.er1 >conftest.err
46590 rm -f conftest.er1
46591 cat conftest.err >&5
ac1cb8d3 46592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46593 (exit $ac_status); } && {
46594 test -z "$ac_c_werror_flag" ||
46595 test ! -s conftest.err
46596 } && test -s conftest.$ac_objext; then
39b61aa3
VZ
46597
46598 wx_cv_struct_tm_has_gmtoff=yes
46599
46600else
46601 echo "$as_me: failed program was:" >&5
46602sed 's/^/| /' conftest.$ac_ext >&5
46603
47964710 46604 wx_cv_struct_tm_has_gmtoff=no
39b61aa3
VZ
46605
46606fi
47964710
VS
46607
46608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39b61aa3
VZ
46609
46610fi
47964710
VS
46611{ echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
46612echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
39b61aa3
VZ
46613 fi
46614
46615 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
46616 cat >>confdefs.h <<\_ACEOF
46617#define WX_GMTOFF_IN_TM 1
46618_ACEOF
46619
46620 fi
46621
a848cd7e
SC
46622 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
46623fi
46624
46625
46626if test "$wxUSE_SOCKETS" = "yes"; then
46627 if test "$wxUSE_MGL" = "1"; then
46628 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
46629echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
46630 wxUSE_SOCKETS="no"
46631 fi
46632fi
46633
46634if test "$wxUSE_SOCKETS" = "yes"; then
46635 if test "$TOOLKIT" != "MSW"; then
47964710
VS
46636 { echo "$as_me:$LINENO: checking for socket" >&5
46637echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
a848cd7e
SC
46638if test "${ac_cv_func_socket+set}" = set; then
46639 echo $ECHO_N "(cached) $ECHO_C" >&6
46640else
46641 cat >conftest.$ac_ext <<_ACEOF
46642/* confdefs.h. */
46643_ACEOF
46644cat confdefs.h >>conftest.$ac_ext
46645cat >>conftest.$ac_ext <<_ACEOF
46646/* end confdefs.h. */
ac1cb8d3
VS
46647/* Define socket to an innocuous variant, in case <limits.h> declares socket.
46648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46649#define socket innocuous_socket
46650
a848cd7e
SC
46651/* System header to define __stub macros and hopefully few prototypes,
46652 which can conflict with char socket (); below.
46653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46654 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 46655
a848cd7e
SC
46656#ifdef __STDC__
46657# include <limits.h>
46658#else
46659# include <assert.h>
46660#endif
ac1cb8d3
VS
46661
46662#undef socket
46663
47964710
VS
46664/* Override any GCC internal prototype to avoid an error.
46665 Use char because int might match the return type of a GCC
46666 builtin and then its argument prototype would still apply. */
a848cd7e
SC
46667#ifdef __cplusplus
46668extern "C"
a848cd7e 46669#endif
a848cd7e
SC
46670char socket ();
46671/* The GNU C library defines this for functions which it implements
46672 to always fail with ENOSYS. Some functions are actually named
46673 something starting with __ and the normal name is an alias. */
47964710 46674#if defined __stub_socket || defined __stub___socket
a848cd7e 46675choke me
a848cd7e
SC
46676#endif
46677
46678int
46679main ()
46680{
47964710 46681return socket ();
a848cd7e
SC
46682 ;
46683 return 0;
46684}
46685_ACEOF
46686rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
46687if { (ac_try="$ac_link"
46688case "(($ac_try" in
46689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46690 *) ac_try_echo=$ac_try;;
46691esac
46692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46693 (eval "$ac_link") 2>conftest.er1
a848cd7e 46694 ac_status=$?
ac1cb8d3
VS
46695 grep -v '^ *+' conftest.er1 >conftest.err
46696 rm -f conftest.er1
46697 cat conftest.err >&5
a848cd7e 46698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46699 (exit $ac_status); } && {
46700 test -z "$ac_c_werror_flag" ||
46701 test ! -s conftest.err
46702 } && test -s conftest$ac_exeext &&
46703 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
46704 ac_cv_func_socket=yes
46705else
46706 echo "$as_me: failed program was:" >&5
46707sed 's/^/| /' conftest.$ac_ext >&5
46708
47964710 46709 ac_cv_func_socket=no
a848cd7e 46710fi
47964710
VS
46711
46712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 46713 conftest$ac_exeext conftest.$ac_ext
a848cd7e 46714fi
47964710
VS
46715{ echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46716echo "${ECHO_T}$ac_cv_func_socket" >&6; }
a848cd7e
SC
46717if test $ac_cv_func_socket = yes; then
46718 :
46719else
46720
47964710
VS
46721 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46722echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
a848cd7e
SC
46723if test "${ac_cv_lib_socket_socket+set}" = set; then
46724 echo $ECHO_N "(cached) $ECHO_C" >&6
46725else
46726 ac_check_lib_save_LIBS=$LIBS
46727LIBS="-lsocket $LIBS"
46728cat >conftest.$ac_ext <<_ACEOF
46729/* confdefs.h. */
46730_ACEOF
46731cat confdefs.h >>conftest.$ac_ext
46732cat >>conftest.$ac_ext <<_ACEOF
46733/* end confdefs.h. */
46734
47964710
VS
46735/* Override any GCC internal prototype to avoid an error.
46736 Use char because int might match the return type of a GCC
46737 builtin and then its argument prototype would still apply. */
a848cd7e
SC
46738#ifdef __cplusplus
46739extern "C"
46740#endif
a848cd7e
SC
46741char socket ();
46742int
46743main ()
46744{
47964710 46745return socket ();
a848cd7e
SC
46746 ;
46747 return 0;
46748}
46749_ACEOF
46750rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
46751if { (ac_try="$ac_link"
46752case "(($ac_try" in
46753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46754 *) ac_try_echo=$ac_try;;
46755esac
46756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46757 (eval "$ac_link") 2>conftest.er1
a848cd7e 46758 ac_status=$?
ac1cb8d3
VS
46759 grep -v '^ *+' conftest.er1 >conftest.err
46760 rm -f conftest.er1
46761 cat conftest.err >&5
a848cd7e 46762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46763 (exit $ac_status); } && {
46764 test -z "$ac_c_werror_flag" ||
46765 test ! -s conftest.err
46766 } && test -s conftest$ac_exeext &&
46767 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
46768 ac_cv_lib_socket_socket=yes
46769else
46770 echo "$as_me: failed program was:" >&5
46771sed 's/^/| /' conftest.$ac_ext >&5
46772
47964710 46773 ac_cv_lib_socket_socket=no
a848cd7e 46774fi
47964710
VS
46775
46776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 46777 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
46778LIBS=$ac_check_lib_save_LIBS
46779fi
47964710
VS
46780{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46781echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
a848cd7e
SC
46782if test $ac_cv_lib_socket_socket = yes; then
46783 if test "$INET_LINK" != " -lsocket"; then
46784 INET_LINK="$INET_LINK -lsocket"
46785 fi
46786else
46787
46788 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46789echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46790 wxUSE_SOCKETS=no
46791
46792
46793fi
46794
46795
46796
46797fi
46798
46799 fi
46800fi
46801
46802if test "$wxUSE_SOCKETS" = "yes" ; then
46803 if test "$TOOLKIT" != "MSW"; then
47964710
VS
46804 { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46805echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
a848cd7e
SC
46806if test "${wx_cv_type_getsockname3+set}" = set; then
46807 echo $ECHO_N "(cached) $ECHO_C" >&6
46808else
46809
47964710 46810 ac_ext=cpp
9b8888f9
VZ
46811ac_cpp='$CXXCPP $CPPFLAGS'
46812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46815
a848cd7e
SC
46816 cat >conftest.$ac_ext <<_ACEOF
46817/* confdefs.h. */
46818_ACEOF
46819cat confdefs.h >>conftest.$ac_ext
46820cat >>conftest.$ac_ext <<_ACEOF
46821/* end confdefs.h. */
46822
46823 #include <sys/types.h>
46824 #include <sys/socket.h>
46825
46826int
46827main ()
46828{
46829
46830 socklen_t len;
46831 getsockname(0, 0, &len);
46832
46833 ;
46834 return 0;
46835}
46836_ACEOF
46837rm -f conftest.$ac_objext
47964710
VS
46838if { (ac_try="$ac_compile"
46839case "(($ac_try" in
46840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46841 *) ac_try_echo=$ac_try;;
46842esac
46843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46844 (eval "$ac_compile") 2>conftest.er1
a848cd7e 46845 ac_status=$?
ac1cb8d3
VS
46846 grep -v '^ *+' conftest.er1 >conftest.err
46847 rm -f conftest.er1
46848 cat conftest.err >&5
a848cd7e 46849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46850 (exit $ac_status); } && {
46851 test -z "$ac_cxx_werror_flag" ||
46852 test ! -s conftest.err
46853 } && test -s conftest.$ac_objext; then
a848cd7e
SC
46854 wx_cv_type_getsockname3=socklen_t
46855else
46856 echo "$as_me: failed program was:" >&5
46857sed 's/^/| /' conftest.$ac_ext >&5
46858
46859
9b8888f9 46860 CFLAGS_OLD="$CFLAGS"
a848cd7e 46861 if test "$GCC" = yes ; then
9b8888f9 46862 CFLAGS="-Werror $CFLAGS"
a848cd7e
SC
46863 fi
46864
46865 cat >conftest.$ac_ext <<_ACEOF
46866/* confdefs.h. */
46867_ACEOF
46868cat confdefs.h >>conftest.$ac_ext
46869cat >>conftest.$ac_ext <<_ACEOF
46870/* end confdefs.h. */
46871
46872 #include <sys/types.h>
46873 #include <sys/socket.h>
46874
46875int
46876main ()
46877{
46878
46879 size_t len;
46880 getsockname(0, 0, &len);
46881
46882 ;
46883 return 0;
46884}
46885_ACEOF
46886rm -f conftest.$ac_objext
47964710
VS
46887if { (ac_try="$ac_compile"
46888case "(($ac_try" in
46889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46890 *) ac_try_echo=$ac_try;;
46891esac
46892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46893 (eval "$ac_compile") 2>conftest.er1
a848cd7e 46894 ac_status=$?
ac1cb8d3
VS
46895 grep -v '^ *+' conftest.er1 >conftest.err
46896 rm -f conftest.er1
46897 cat conftest.err >&5
a848cd7e 46898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46899 (exit $ac_status); } && {
46900 test -z "$ac_cxx_werror_flag" ||
46901 test ! -s conftest.err
46902 } && test -s conftest.$ac_objext; then
a848cd7e
SC
46903 wx_cv_type_getsockname3=size_t
46904else
46905 echo "$as_me: failed program was:" >&5
46906sed 's/^/| /' conftest.$ac_ext >&5
46907
47964710 46908 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
46909/* confdefs.h. */
46910_ACEOF
46911cat confdefs.h >>conftest.$ac_ext
46912cat >>conftest.$ac_ext <<_ACEOF
46913/* end confdefs.h. */
46914
46915 #include <sys/types.h>
46916 #include <sys/socket.h>
46917
46918int
46919main ()
46920{
46921
46922 int len;
46923 getsockname(0, 0, &len);
46924
46925 ;
46926 return 0;
46927}
46928_ACEOF
46929rm -f conftest.$ac_objext
47964710
VS
46930if { (ac_try="$ac_compile"
46931case "(($ac_try" in
46932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46933 *) ac_try_echo=$ac_try;;
46934esac
46935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46936 (eval "$ac_compile") 2>conftest.er1
a848cd7e 46937 ac_status=$?
ac1cb8d3
VS
46938 grep -v '^ *+' conftest.er1 >conftest.err
46939 rm -f conftest.er1
46940 cat conftest.err >&5
a848cd7e 46941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46942 (exit $ac_status); } && {
46943 test -z "$ac_cxx_werror_flag" ||
46944 test ! -s conftest.err
46945 } && test -s conftest.$ac_objext; then
a848cd7e
SC
46946 wx_cv_type_getsockname3=int
46947else
46948 echo "$as_me: failed program was:" >&5
46949sed 's/^/| /' conftest.$ac_ext >&5
46950
47964710 46951 wx_cv_type_getsockname3=unknown
a848cd7e
SC
46952
46953fi
47964710
VS
46954
46955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46956
46957fi
47964710
VS
46958
46959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 46960
9b8888f9 46961 CFLAGS="$CFLAGS_OLD"
a848cd7e
SC
46962
46963
46964fi
47964710
VS
46965
46966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
46967 ac_ext=c
46968ac_cpp='$CPP $CPPFLAGS'
46969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46971ac_compiler_gnu=$ac_cv_c_compiler_gnu
46972
a848cd7e
SC
46973
46974fi
47964710
VS
46975{ echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46976echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
a848cd7e
SC
46977
46978 if test "$wx_cv_type_getsockname3" = "unknown"; then
46979 wxUSE_SOCKETS=no
46980 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46981echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46982 else
46983 cat >>confdefs.h <<_ACEOF
9e03e02d 46984#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
46985_ACEOF
46986
46987 fi
47964710
VS
46988 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46989echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
5b674b9d
DE
46990if test "${wx_cv_type_getsockopt5+set}" = set; then
46991 echo $ECHO_N "(cached) $ECHO_C" >&6
46992else
46993
47964710 46994 ac_ext=cpp
ebe1d157
VZ
46995ac_cpp='$CXXCPP $CPPFLAGS'
46996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46999
5b674b9d
DE
47000 cat >conftest.$ac_ext <<_ACEOF
47001/* confdefs.h. */
47002_ACEOF
47003cat confdefs.h >>conftest.$ac_ext
47004cat >>conftest.$ac_ext <<_ACEOF
47005/* end confdefs.h. */
47006
47007 #include <sys/types.h>
47008 #include <sys/socket.h>
47009
47010int
47011main ()
47012{
47013
47014 socklen_t len;
47015 getsockopt(0, 0, 0, 0, &len);
47016
47017 ;
47018 return 0;
47019}
47020_ACEOF
47021rm -f conftest.$ac_objext
47964710
VS
47022if { (ac_try="$ac_compile"
47023case "(($ac_try" in
47024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47025 *) ac_try_echo=$ac_try;;
47026esac
47027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47028 (eval "$ac_compile") 2>conftest.er1
5b674b9d
DE
47029 ac_status=$?
47030 grep -v '^ *+' conftest.er1 >conftest.err
47031 rm -f conftest.er1
47032 cat conftest.err >&5
47033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
47034 (exit $ac_status); } && {
47035 test -z "$ac_cxx_werror_flag" ||
47036 test ! -s conftest.err
47037 } && test -s conftest.$ac_objext; then
5b674b9d
DE
47038 wx_cv_type_getsockopt5=socklen_t
47039else
47040 echo "$as_me: failed program was:" >&5
47041sed 's/^/| /' conftest.$ac_ext >&5
47042
47043
5b674b9d
DE
47044 cat >conftest.$ac_ext <<_ACEOF
47045/* confdefs.h. */
47046_ACEOF
47047cat confdefs.h >>conftest.$ac_ext
47048cat >>conftest.$ac_ext <<_ACEOF
47049/* end confdefs.h. */
47050
47051 #include <sys/types.h>
47052 #include <sys/socket.h>
47053
47054int
47055main ()
47056{
47057
47058 size_t len;
47059 getsockopt(0, 0, 0, 0, &len);
47060
47061 ;
47062 return 0;
47063}
47064_ACEOF
47065rm -f conftest.$ac_objext
47964710
VS
47066if { (ac_try="$ac_compile"
47067case "(($ac_try" in
47068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47069 *) ac_try_echo=$ac_try;;
47070esac
47071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47072 (eval "$ac_compile") 2>conftest.er1
5b674b9d
DE
47073 ac_status=$?
47074 grep -v '^ *+' conftest.er1 >conftest.err
47075 rm -f conftest.er1
47076 cat conftest.err >&5
47077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
47078 (exit $ac_status); } && {
47079 test -z "$ac_cxx_werror_flag" ||
47080 test ! -s conftest.err
47081 } && test -s conftest.$ac_objext; then
5b674b9d
DE
47082 wx_cv_type_getsockopt5=size_t
47083else
47084 echo "$as_me: failed program was:" >&5
47085sed 's/^/| /' conftest.$ac_ext >&5
47086
47964710 47087 cat >conftest.$ac_ext <<_ACEOF
5b674b9d
DE
47088/* confdefs.h. */
47089_ACEOF
47090cat confdefs.h >>conftest.$ac_ext
47091cat >>conftest.$ac_ext <<_ACEOF
47092/* end confdefs.h. */
47093
47094 #include <sys/types.h>
47095 #include <sys/socket.h>
47096
47097int
47098main ()
47099{
47100
47101 int len;
47102 getsockopt(0, 0, 0, 0, &len);
47103
47104 ;
47105 return 0;
47106}
47107_ACEOF
47108rm -f conftest.$ac_objext
47964710
VS
47109if { (ac_try="$ac_compile"
47110case "(($ac_try" in
47111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47112 *) ac_try_echo=$ac_try;;
47113esac
47114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47115 (eval "$ac_compile") 2>conftest.er1
5b674b9d
DE
47116 ac_status=$?
47117 grep -v '^ *+' conftest.er1 >conftest.err
47118 rm -f conftest.er1
47119 cat conftest.err >&5
47120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
47121 (exit $ac_status); } && {
47122 test -z "$ac_cxx_werror_flag" ||
47123 test ! -s conftest.err
47124 } && test -s conftest.$ac_objext; then
5b674b9d
DE
47125 wx_cv_type_getsockopt5=int
47126else
47127 echo "$as_me: failed program was:" >&5
47128sed 's/^/| /' conftest.$ac_ext >&5
47129
47964710 47130 wx_cv_type_getsockopt5=unknown
5b674b9d
DE
47131
47132fi
47964710
VS
47133
47134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5b674b9d
DE
47135
47136fi
47964710
VS
47137
47138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5b674b9d
DE
47139
47140
47141fi
47964710
VS
47142
47143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ebe1d157
VZ
47144 ac_ext=c
47145ac_cpp='$CPP $CPPFLAGS'
47146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47148ac_compiler_gnu=$ac_cv_c_compiler_gnu
47149
5b674b9d
DE
47150
47151fi
47964710
VS
47152{ echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
47153echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
5b674b9d
DE
47154
47155 if test "$wx_cv_type_getsockopt5" = "unknown"; then
47156 wxUSE_SOCKETS=no
47157 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47158echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47159 else
47160 cat >>confdefs.h <<_ACEOF
47161#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
47162_ACEOF
47163
47164 fi
47165 fi
47166fi
47167
47168if test "$wxUSE_SOCKETS" = "yes" ; then
47169 cat >>confdefs.h <<\_ACEOF
47170#define wxUSE_SOCKETS 1
47171_ACEOF
47172
47173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47174fi
47175
47176if test "$wxUSE_PROTOCOL" = "yes"; then
47177 if test "$wxUSE_SOCKETS" != "yes"; then
47178 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
47179echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
47180 wxUSE_PROTOCOL=no
47181 fi
47182fi
47183
47184if test "$wxUSE_PROTOCOL" = "yes"; then
47185 cat >>confdefs.h <<\_ACEOF
47186#define wxUSE_PROTOCOL 1
47187_ACEOF
47188
47189
47190 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
47191 cat >>confdefs.h <<\_ACEOF
47192#define wxUSE_PROTOCOL_HTTP 1
47193_ACEOF
47194
47195 fi
47196 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
47197 cat >>confdefs.h <<\_ACEOF
47198#define wxUSE_PROTOCOL_FTP 1
47199_ACEOF
47200
47201 fi
47202 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
47203 cat >>confdefs.h <<\_ACEOF
47204#define wxUSE_PROTOCOL_FILE 1
47205_ACEOF
47206
47207 fi
47208else
47209 if test "$wxUSE_FS_INET" = "yes"; then
47210 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
47211echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
47212 wxUSE_FS_INET="no"
47213 fi
47214fi
47215
47216if test "$wxUSE_URL" = "yes"; then
47217 if test "$wxUSE_PROTOCOL" != "yes"; then
47218 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
47219echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
47220 wxUSE_URL=no
47221 fi
47222 if test "$wxUSE_URL" = "yes"; then
47223 cat >>confdefs.h <<\_ACEOF
47224#define wxUSE_URL 1
47225_ACEOF
47226
47227 fi
47228fi
47229
ca5c6ac3
VZ
47230if test "$wxUSE_VARIANT" = "yes"; then
47231 cat >>confdefs.h <<\_ACEOF
47232#define wxUSE_VARIANT 1
47233_ACEOF
47234
47235fi
47236
a848cd7e
SC
47237if test "$wxUSE_FS_INET" = "yes"; then
47238 cat >>confdefs.h <<\_ACEOF
47239#define wxUSE_FS_INET 1
47240_ACEOF
47241
47242fi
47243
47244
ee45c548
MW
47245if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
47246 wxUSE_JOYSTICK=no
47247
47248 if test "$TOOLKIT" = "MSW"; then
47249 wxUSE_JOYSTICK=yes
47250
47251 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
47252 if test "$USE_DARWIN" = 1; then
47964710
VS
47253 { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
47254echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
47255 ac_ext=cpp
9b8888f9
VZ
47256ac_cpp='$CXXCPP $CPPFLAGS'
47257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47260
ee45c548
MW
47261 cat >conftest.$ac_ext <<_ACEOF
47262/* confdefs.h. */
47263_ACEOF
47264cat confdefs.h >>conftest.$ac_ext
47265cat >>conftest.$ac_ext <<_ACEOF
47266/* end confdefs.h. */
47267 #include <IOKit/hid/IOHIDLib.h>
47268int
47269main ()
47270{
47271 IOHIDQueueInterface *qi = NULL;
47272 IOHIDCallbackFunction cb = NULL;
47273 qi->setEventCallout(NULL, cb, NULL, NULL);
47274 ;
47275 return 0;
47276}
47277_ACEOF
47278rm -f conftest.$ac_objext
47964710
VS
47279if { (ac_try="$ac_compile"
47280case "(($ac_try" in
47281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47282 *) ac_try_echo=$ac_try;;
47283esac
47284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47285 (eval "$ac_compile") 2>conftest.er1
ee45c548
MW
47286 ac_status=$?
47287 grep -v '^ *+' conftest.er1 >conftest.err
47288 rm -f conftest.er1
47289 cat conftest.err >&5
47290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
47291 (exit $ac_status); } && {
47292 test -z "$ac_cxx_werror_flag" ||
47293 test ! -s conftest.err
47294 } && test -s conftest.$ac_objext; then
ee45c548 47295 wxUSE_JOYSTICK=yes
a848cd7e 47296
ee45c548
MW
47297else
47298 echo "$as_me: failed program was:" >&5
47299sed 's/^/| /' conftest.$ac_ext >&5
47300
47964710 47301
ee45c548 47302fi
47964710
VS
47303
47304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
47305 ac_ext=c
47306ac_cpp='$CPP $CPPFLAGS'
47307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47309ac_compiler_gnu=$ac_cv_c_compiler_gnu
47310
47964710
VS
47311 { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
47312echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
ee45c548
MW
47313 fi
47314
47315 else
b6814e24 47316 if test "$wxUSE_MGL" != "1"; then
1f7e12cc
DE
47317
47318for ac_header in linux/joystick.h
47319do
47320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47964710
VS
47321{ echo "$as_me:$LINENO: checking for $ac_header" >&5
47322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e 47324 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 47325else
ddbd3cd5 47326 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
47327/* confdefs.h. */
47328_ACEOF
47329cat confdefs.h >>conftest.$ac_ext
47330cat >>conftest.$ac_ext <<_ACEOF
47331/* end confdefs.h. */
6e7b8bcb 47332$ac_includes_default
ddbd3cd5 47333
1f7e12cc 47334#include <$ac_header>
a848cd7e
SC
47335_ACEOF
47336rm -f conftest.$ac_objext
47964710
VS
47337if { (ac_try="$ac_compile"
47338case "(($ac_try" in
47339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47340 *) ac_try_echo=$ac_try;;
47341esac
47342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47343 (eval "$ac_compile") 2>conftest.er1
a848cd7e 47344 ac_status=$?
ac1cb8d3
VS
47345 grep -v '^ *+' conftest.er1 >conftest.err
47346 rm -f conftest.er1
47347 cat conftest.err >&5
a848cd7e 47348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
47349 (exit $ac_status); } && {
47350 test -z "$ac_c_werror_flag" ||
47351 test ! -s conftest.err
47352 } && test -s conftest.$ac_objext; then
1f7e12cc 47353 eval "$as_ac_Header=yes"
a848cd7e
SC
47354else
47355 echo "$as_me: failed program was:" >&5
47356sed 's/^/| /' conftest.$ac_ext >&5
47357
47964710 47358 eval "$as_ac_Header=no"
a848cd7e 47359fi
47964710
VS
47360
47361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 47362fi
47964710
VS
47363ac_res=`eval echo '${'$as_ac_Header'}'`
47364 { echo "$as_me:$LINENO: result: $ac_res" >&5
47365echo "${ECHO_T}$ac_res" >&6; }
1f7e12cc
DE
47366if test `eval echo '${'$as_ac_Header'}'` = yes; then
47367 cat >>confdefs.h <<_ACEOF
47368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47369_ACEOF
47370 wxUSE_JOYSTICK=yes
a848cd7e 47371fi
a848cd7e 47372
1f7e12cc 47373done
a848cd7e 47374
b6814e24 47375 fi
ee45c548 47376 fi
4cb1d3da 47377
ee45c548
MW
47378 if test "$wxUSE_JOYSTICK" = "yes"; then
47379 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
47380#define wxUSE_JOYSTICK 1
47381_ACEOF
47382
ee45c548
MW
47383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
47384 else
47385 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
47386echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
47387 fi
47388fi
47389
47390
47391
9795e0db
VZ
47392if test "$wxUSE_FONTENUM" = "yes" ; then
47393 cat >>confdefs.h <<\_ACEOF
47394#define wxUSE_FONTENUM 1
47395_ACEOF
47396
47397fi
47398
a848cd7e
SC
47399if test "$wxUSE_FONTMAP" = "yes" ; then
47400 cat >>confdefs.h <<\_ACEOF
47401#define wxUSE_FONTMAP 1
47402_ACEOF
47403
47404fi
47405
47406if test "$wxUSE_UNICODE" = "yes" ; then
47407 cat >>confdefs.h <<\_ACEOF
47408#define wxUSE_UNICODE 1
47409_ACEOF
47410
47411
47412 if test "$USE_WIN32" != 1; then
47413 wxUSE_UNICODE_MSLU=no
47414 fi
47415
47416 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47964710
VS
47417 { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47418echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
a848cd7e
SC
47419if test "${ac_cv_lib_unicows_main+set}" = set; then
47420 echo $ECHO_N "(cached) $ECHO_C" >&6
47421else
47422 ac_check_lib_save_LIBS=$LIBS
47423LIBS="-lunicows $LIBS"
47424cat >conftest.$ac_ext <<_ACEOF
47425/* confdefs.h. */
47426_ACEOF
47427cat confdefs.h >>conftest.$ac_ext
47428cat >>conftest.$ac_ext <<_ACEOF
47429/* end confdefs.h. */
47430
47431
47432int
47433main ()
47434{
47964710 47435return main ();
a848cd7e
SC
47436 ;
47437 return 0;
47438}
47439_ACEOF
47440rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
47441if { (ac_try="$ac_link"
47442case "(($ac_try" in
47443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47444 *) ac_try_echo=$ac_try;;
47445esac
47446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47447 (eval "$ac_link") 2>conftest.er1
a848cd7e 47448 ac_status=$?
ac1cb8d3
VS
47449 grep -v '^ *+' conftest.er1 >conftest.err
47450 rm -f conftest.er1
47451 cat conftest.err >&5
a848cd7e 47452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
47453 (exit $ac_status); } && {
47454 test -z "$ac_c_werror_flag" ||
47455 test ! -s conftest.err
47456 } && test -s conftest$ac_exeext &&
47457 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
47458 ac_cv_lib_unicows_main=yes
47459else
47460 echo "$as_me: failed program was:" >&5
47461sed 's/^/| /' conftest.$ac_ext >&5
47462
47964710 47463 ac_cv_lib_unicows_main=no
a848cd7e 47464fi
47964710
VS
47465
47466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 47467 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
47468LIBS=$ac_check_lib_save_LIBS
47469fi
47964710
VS
47470{ echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
47471echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
a848cd7e
SC
47472if test $ac_cv_lib_unicows_main = yes; then
47473
47474 cat >>confdefs.h <<\_ACEOF
47475#define wxUSE_UNICODE_MSLU 1
47476_ACEOF
47477
47478
47479else
47480
47481 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47482 Applications will only run on Windows NT/2000/XP!" >&5
47483echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47484 Applications will only run on Windows NT/2000/XP!" >&2;}
47485 wxUSE_UNICODE_MSLU=no
47486
47487fi
47488
47489 fi
47490fi
47491
81727065
VS
47492if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
47493 cat >>confdefs.h <<\_ACEOF
47494#define wxUSE_UNICODE_UTF8 1
47495_ACEOF
47496
111d9948
VS
47497
47498 if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
47499 cat >>confdefs.h <<\_ACEOF
47500#define wxUSE_UTF8_LOCALE_ONLY 1
47501_ACEOF
47502
47503 fi
81727065
VS
47504fi
47505
a848cd7e 47506
a848cd7e
SC
47507if test "$wxUSE_CONSTRAINTS" = "yes"; then
47508 cat >>confdefs.h <<\_ACEOF
47509#define wxUSE_CONSTRAINTS 1
47510_ACEOF
47511
47512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
47513fi
47514
8a7b1113
VZ
47515if test "$wxUSE_MDI" = "yes"; then
47516 cat >>confdefs.h <<\_ACEOF
47517#define wxUSE_MDI 1
47518_ACEOF
47519
47520
47521 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47522 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
47523#define wxUSE_MDI_ARCHITECTURE 1
47524_ACEOF
47525
8a7b1113
VZ
47526 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
47527 fi
a848cd7e
SC
47528fi
47529
47530if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
47531 cat >>confdefs.h <<\_ACEOF
47532#define wxUSE_DOC_VIEW_ARCHITECTURE 1
47533_ACEOF
47534
47535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
47536 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
47538 fi
47539fi
47540
47541if test "$wxUSE_HELP" = "yes"; then
47542 cat >>confdefs.h <<\_ACEOF
47543#define wxUSE_HELP 1
47544_ACEOF
47545
47546 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47547
47548 if test "$wxUSE_MSW" = 1; then
47549 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47550 cat >>confdefs.h <<\_ACEOF
47551#define wxUSE_MS_HTML_HELP 1
47552_ACEOF
47553
47554 fi
47555 fi
47556
47557 if test "$wxUSE_WXHTML_HELP" = "yes"; then
47558 if test "$wxUSE_HTML" = "yes"; then
47559 cat >>confdefs.h <<\_ACEOF
47560#define wxUSE_WXHTML_HELP 1
47561_ACEOF
47562
47563 else
47564 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47565echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47566 wxUSE_WXHTML_HELP=no
47567 fi
47568 fi
47569fi
47570
47571if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47572 if test "$wxUSE_CONSTRAINTS" != "yes"; then
47573 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
47574echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
47575 else
47576 cat >>confdefs.h <<\_ACEOF
47577#define wxUSE_PRINTING_ARCHITECTURE 1
47578_ACEOF
47579
47580 fi
47581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47582fi
47583
b0fc907f
VZ
47584if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47585 cat >>confdefs.h <<\_ACEOF
47586#define wxUSE_POSTSCRIPT 1
47587_ACEOF
47588
47589fi
47590
47591cat >>confdefs.h <<\_ACEOF
47592#define wxUSE_AFM_FOR_POSTSCRIPT 1
47593_ACEOF
47594
47595
b0fc907f
VZ
47596if test "$wxUSE_SVG" = "yes"; then
47597 cat >>confdefs.h <<\_ACEOF
47598#define wxUSE_SVG 1
47599_ACEOF
47600
47601fi
a848cd7e
SC
47602
47603
efdf6afe
VZ
47604if test "$wxUSE_METAFILE" = "yes"; then
47605 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47606 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47607echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47608 wxUSE_METAFILE=no
47609 fi
47610fi
47611
47612
a848cd7e
SC
47613if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
47614 -o "$wxUSE_CLIPBOARD" = "yes" \
47615 -o "$wxUSE_OLE" = "yes" \
47616 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
47964710
VS
47617 { echo "$as_me:$LINENO: checking for ole2.h" >&5
47618echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
6e7b8bcb 47619if test "${ac_cv_header_ole2_h+set}" = set; then
a848cd7e 47620 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 47621else
6e7b8bcb 47622 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
47623/* confdefs.h. */
47624_ACEOF
47625cat confdefs.h >>conftest.$ac_ext
47626cat >>conftest.$ac_ext <<_ACEOF
47627/* end confdefs.h. */
6e7b8bcb
PC
47628
47629
47630#include <ole2.h>
a848cd7e
SC
47631_ACEOF
47632rm -f conftest.$ac_objext
47964710
VS
47633if { (ac_try="$ac_compile"
47634case "(($ac_try" in
47635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47636 *) ac_try_echo=$ac_try;;
47637esac
47638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47639 (eval "$ac_compile") 2>conftest.er1
a848cd7e 47640 ac_status=$?
ac1cb8d3
VS
47641 grep -v '^ *+' conftest.er1 >conftest.err
47642 rm -f conftest.er1
47643 cat conftest.err >&5
a848cd7e 47644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
47645 (exit $ac_status); } && {
47646 test -z "$ac_c_werror_flag" ||
47647 test ! -s conftest.err
47648 } && test -s conftest.$ac_objext; then
6e7b8bcb 47649 ac_cv_header_ole2_h=yes
a848cd7e
SC
47650else
47651 echo "$as_me: failed program was:" >&5
47652sed 's/^/| /' conftest.$ac_ext >&5
47653
47964710 47654 ac_cv_header_ole2_h=no
a848cd7e 47655fi
47964710
VS
47656
47657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 47658fi
47964710
VS
47659{ echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47660echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
a848cd7e 47661
a848cd7e
SC
47662
47663
47664 if test "$ac_cv_header_ole2_h" = "yes" ; then
47665 if test "$GCC" = yes ; then
47964710
VS
47666 { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47667echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
a848cd7e
SC
47668 cat >conftest.$ac_ext <<_ACEOF
47669/* confdefs.h. */
47670_ACEOF
47671cat confdefs.h >>conftest.$ac_ext
47672cat >>conftest.$ac_ext <<_ACEOF
47673/* end confdefs.h. */
47674#include <windows.h>
47675 #include <ole2.h>
47676int
47677main ()
47678{
47679
47680 ;
47681 return 0;
47682}
47683_ACEOF
47684rm -f conftest.$ac_objext
47964710
VS
47685if { (ac_try="$ac_compile"
47686case "(($ac_try" in
47687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47688 *) ac_try_echo=$ac_try;;
47689esac
47690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47691 (eval "$ac_compile") 2>conftest.er1
a848cd7e 47692 ac_status=$?
ac1cb8d3
VS
47693 grep -v '^ *+' conftest.er1 >conftest.err
47694 rm -f conftest.er1
47695 cat conftest.err >&5
a848cd7e 47696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
47697 (exit $ac_status); } && {
47698 test -z "$ac_c_werror_flag" ||
47699 test ! -s conftest.err
47700 } && test -s conftest.$ac_objext; then
47701 { echo "$as_me:$LINENO: result: no" >&5
47702echo "${ECHO_T}no" >&6; }
a848cd7e
SC
47703else
47704 echo "$as_me: failed program was:" >&5
47705sed 's/^/| /' conftest.$ac_ext >&5
47706
47964710
VS
47707 { echo "$as_me:$LINENO: result: yes" >&5
47708echo "${ECHO_T}yes" >&6; }
5ff751d6 47709 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 47710fi
47964710
VS
47711
47712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
47713 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47714 if test "$wxUSE_OLE" = "yes" ; then
47715 cat >>confdefs.h <<\_ACEOF
47716#define wxUSE_OLE 1
f43426c1
RD
47717_ACEOF
47718
47719 cat >>confdefs.h <<\_ACEOF
47720#define wxUSE_OLE_AUTOMATION 1
47721_ACEOF
47722
47723 cat >>confdefs.h <<\_ACEOF
9c49977b 47724#define wxUSE_ACTIVEX 1
a848cd7e
SC
47725_ACEOF
47726
0b78747f 47727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
47728 fi
47729 fi
47730
47731 if test "$wxUSE_DATAOBJ" = "yes" ; then
47732 cat >>confdefs.h <<\_ACEOF
47733#define wxUSE_DATAOBJ 1
47734_ACEOF
47735
47736 fi
47737 else
47738 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47739echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47740
47741 wxUSE_CLIPBOARD=no
47742 wxUSE_DRAG_AND_DROP=no
47743 wxUSE_DATAOBJ=no
47744 wxUSE_OLE=no
47745 fi
47746
47747 if test "$wxUSE_METAFILE" = "yes"; then
47748 cat >>confdefs.h <<\_ACEOF
47749#define wxUSE_METAFILE 1
47750_ACEOF
47751
47752
47753 cat >>confdefs.h <<\_ACEOF
47754#define wxUSE_ENH_METAFILE 1
47755_ACEOF
47756
47757 fi
47758fi
47759
47760if test "$wxUSE_IPC" = "yes"; then
0b78747f 47761 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
47762 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47763echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 47764 wxUSE_IPC=no
a848cd7e
SC
47765 fi
47766
0b78747f
MW
47767 if test "$wxUSE_IPC" = "yes"; then
47768 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
47769#define wxUSE_IPC 1
47770_ACEOF
47771
0b78747f
MW
47772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47773 fi
a848cd7e
SC
47774fi
47775
eb730a0c 47776if test "$wxUSE_DATAOBJ" = "yes"; then
f321ab7f
VS
47777 if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47778 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47779echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
2113bc77
MW
47780 wxUSE_DATAOBJ=no
47781 else
47782 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
47783#define wxUSE_DATAOBJ 1
47784_ACEOF
47785
2113bc77 47786 fi
eb730a0c
JS
47787else
47788 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47789echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47790 wxUSE_CLIPBOARD=no
47791 wxUSE_DRAG_AND_DROP=no
47792fi
47793
a848cd7e 47794if test "$wxUSE_CLIPBOARD" = "yes"; then
f321ab7f
VS
47795 if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47796 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47797echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
a848cd7e
SC
47798 wxUSE_CLIPBOARD=no
47799 fi
47800
47801 if test "$wxUSE_CLIPBOARD" = "yes"; then
47802 cat >>confdefs.h <<\_ACEOF
47803#define wxUSE_CLIPBOARD 1
47804_ACEOF
47805
a848cd7e
SC
47806 fi
47807fi
47808
47809if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47810 if test "$wxUSE_GTK" = 1; then
47811 if test "$WXGTK12" != 1; then
47812 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
47813echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
47814 wxUSE_DRAG_AND_DROP=no
47815 fi
47816 fi
47817
f321ab7f
VS
47818 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47819 "$wxUSE_DFB" = 1; then
47820 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47821echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
a848cd7e
SC
47822 wxUSE_DRAG_AND_DROP=no
47823 fi
47824
47825 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47826 cat >>confdefs.h <<\_ACEOF
47827#define wxUSE_DRAG_AND_DROP 1
47828_ACEOF
47829
47830 fi
47831
47832fi
47833
47834if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47835 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47836fi
47837
47838if test "$wxUSE_SPLINES" = "yes" ; then
47839 cat >>confdefs.h <<\_ACEOF
47840#define wxUSE_SPLINES 1
47841_ACEOF
47842
47843fi
47844
fbe2ca43
SN
47845if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47846 cat >>confdefs.h <<\_ACEOF
47847#define wxUSE_MOUSEWHEEL 1
47848_ACEOF
47849
47850fi
47851
a848cd7e
SC
47852
47853USES_CONTROLS=0
47854if test "$wxUSE_CONTROLS" = "yes"; then
47855 USES_CONTROLS=1
47856fi
47857
47858if test "$wxUSE_ACCEL" = "yes"; then
47859 cat >>confdefs.h <<\_ACEOF
47860#define wxUSE_ACCEL 1
47861_ACEOF
47862
47863 USES_CONTROLS=1
47864fi
47865
7067783d 47866if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
3ea50042
VZ
47867 cat >>confdefs.h <<\_ACEOF
47868#define wxUSE_ANIMATIONCTRL 1
47869_ACEOF
47870
47871 USES_CONTROLS=1
47872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47873fi
47874
a848cd7e
SC
47875if test "$wxUSE_BUTTON" = "yes"; then
47876 cat >>confdefs.h <<\_ACEOF
47877#define wxUSE_BUTTON 1
47878_ACEOF
47879
47880 USES_CONTROLS=1
47881fi
47882
47883if test "$wxUSE_BMPBUTTON" = "yes"; then
47884 cat >>confdefs.h <<\_ACEOF
47885#define wxUSE_BMPBUTTON 1
47886_ACEOF
47887
47888 USES_CONTROLS=1
47889fi
47890
47891if test "$wxUSE_CALCTRL" = "yes"; then
47892 cat >>confdefs.h <<\_ACEOF
47893#define wxUSE_CALENDARCTRL 1
47894_ACEOF
47895
47896 USES_CONTROLS=1
47897 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47898fi
47899
47900if test "$wxUSE_CARET" = "yes"; then
47901 cat >>confdefs.h <<\_ACEOF
47902#define wxUSE_CARET 1
47903_ACEOF
47904
47905 USES_CONTROLS=1
47906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47907fi
47908
bd915ace
RR
47909if test "$wxUSE_COLLPANE" = "yes"; then
47910 cat >>confdefs.h <<\_ACEOF
47911#define wxUSE_COLLPANE 1
47912_ACEOF
47913
47914 USES_CONTROLS=1
47915 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47916fi
47917
a848cd7e
SC
47918if test "$wxUSE_COMBOBOX" = "yes"; then
47919 cat >>confdefs.h <<\_ACEOF
47920#define wxUSE_COMBOBOX 1
47921_ACEOF
47922
47923 USES_CONTROLS=1
47924fi
47925
a57d600f 47926if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 47927 cat >>confdefs.h <<\_ACEOF
a57d600f 47928#define wxUSE_COMBOCTRL 1
642bcba9
VZ
47929_ACEOF
47930
47931 USES_CONTROLS=1
47932fi
47933
a848cd7e
SC
47934if test "$wxUSE_CHOICE" = "yes"; then
47935 cat >>confdefs.h <<\_ACEOF
47936#define wxUSE_CHOICE 1
47937_ACEOF
47938
47939 USES_CONTROLS=1
47940fi
47941
92bbdbcd
WS
47942if test "$wxUSE_CHOICEBOOK" = "yes"; then
47943 cat >>confdefs.h <<\_ACEOF
47944#define wxUSE_CHOICEBOOK 1
47945_ACEOF
47946
47947 USES_CONTROLS=1
47948fi
47949
a848cd7e
SC
47950if test "$wxUSE_CHECKBOX" = "yes"; then
47951 cat >>confdefs.h <<\_ACEOF
47952#define wxUSE_CHECKBOX 1
47953_ACEOF
47954
47955 USES_CONTROLS=1
47956fi
47957
47958if test "$wxUSE_CHECKLST" = "yes"; then
47959 cat >>confdefs.h <<\_ACEOF
47960#define wxUSE_CHECKLISTBOX 1
47961_ACEOF
47962
47963 USES_CONTROLS=1
a848cd7e
SC
47964fi
47965
e9263684
VZ
47966if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47967 cat >>confdefs.h <<\_ACEOF
47968#define wxUSE_COLOURPICKERCTRL 1
47969_ACEOF
47970
47971 USES_CONTROLS=1
47972fi
47973
da98e9be
VZ
47974if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47975 cat >>confdefs.h <<\_ACEOF
47976#define wxUSE_DATEPICKCTRL 1
47977_ACEOF
47978
47979 USES_CONTROLS=1
47980fi
47981
e9263684
VZ
47982if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47983 cat >>confdefs.h <<\_ACEOF
47984#define wxUSE_DIRPICKERCTRL 1
47985_ACEOF
47986
47987 USES_CONTROLS=1
47988fi
47989
0cf3e587
VZ
47990if test "$wxUSE_FILECTRL" = "yes"; then
47991 cat >>confdefs.h <<\_ACEOF
47992#define wxUSE_FILECTRL 1
47993_ACEOF
47994
47995 USES_CONTROLS=1
47996fi
47997
e9263684
VZ
47998if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47999 cat >>confdefs.h <<\_ACEOF
48000#define wxUSE_FILEPICKERCTRL 1
48001_ACEOF
48002
48003 USES_CONTROLS=1
48004fi
48005
48006if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
48007 cat >>confdefs.h <<\_ACEOF
48008#define wxUSE_FONTPICKERCTRL 1
48009_ACEOF
48010
48011 USES_CONTROLS=1
48012fi
48013
a848cd7e 48014if test "$wxUSE_DISPLAY" = "yes"; then
f321ab7f
VS
48015 if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
48016 { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
48017echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
48018 wxUSE_DISPLAY=no
48019 else
48020 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
48021#define wxUSE_DISPLAY 1
48022_ACEOF
48023
39d66339 48024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
f321ab7f 48025 fi
a848cd7e
SC
48026fi
48027
88bbc332
RR
48028if test "$wxUSE_DETECT_SM" = "yes"; then
48029 cat >>confdefs.h <<\_ACEOF
48030#define wxUSE_DETECT_SM 1
48031_ACEOF
48032
48033fi
48034
a848cd7e
SC
48035if test "$wxUSE_GAUGE" = "yes"; then
48036 cat >>confdefs.h <<\_ACEOF
48037#define wxUSE_GAUGE 1
48038_ACEOF
48039
48040 USES_CONTROLS=1
48041fi
48042
48043if test "$wxUSE_GRID" = "yes"; then
48044 cat >>confdefs.h <<\_ACEOF
48045#define wxUSE_GRID 1
48046_ACEOF
48047
48048 USES_CONTROLS=1
48049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
48050fi
48051
6954625c
VZ
48052if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
48053 cat >>confdefs.h <<\_ACEOF
48054#define wxUSE_HYPERLINKCTRL 1
48055_ACEOF
48056
48057 USES_CONTROLS=1
48058fi
48059
95a46303
RR
48060if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
48061 cat >>confdefs.h <<\_ACEOF
48062#define wxUSE_BITMAPCOMBOBOX 1
48063_ACEOF
48064
48065 USES_CONTROLS=1
48066fi
48067
20e34ecc
RR
48068if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
48069 cat >>confdefs.h <<\_ACEOF
48070#define wxUSE_DATAVIEWCTRL 1
48071_ACEOF
48072
48073 USES_CONTROLS=1
48074 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
48075fi
48076
a848cd7e
SC
48077if test "$wxUSE_IMAGLIST" = "yes"; then
48078 cat >>confdefs.h <<\_ACEOF
48079#define wxUSE_IMAGLIST 1
48080_ACEOF
48081
48082fi
48083
48084if test "$wxUSE_LISTBOOK" = "yes"; then
48085 cat >>confdefs.h <<\_ACEOF
48086#define wxUSE_LISTBOOK 1
48087_ACEOF
48088
48089 USES_CONTROLS=1
48090fi
48091
48092if test "$wxUSE_LISTBOX" = "yes"; then
48093 cat >>confdefs.h <<\_ACEOF
48094#define wxUSE_LISTBOX 1
48095_ACEOF
48096
48097 USES_CONTROLS=1
48098fi
48099
48100if test "$wxUSE_LISTCTRL" = "yes"; then
48101 if test "$wxUSE_IMAGLIST" = "yes"; then
48102 cat >>confdefs.h <<\_ACEOF
48103#define wxUSE_LISTCTRL 1
48104_ACEOF
48105
48106 USES_CONTROLS=1
48107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
48108 else
48109 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
48110echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
48111 fi
48112fi
48113
23575150
RR
48114if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
48115 cat >>confdefs.h <<\_ACEOF
48116#define wxUSE_EDITABLELISTBOX 1
48117_ACEOF
48118
48119 USES_CONTROLS=1
48120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
48121fi
48122
a848cd7e
SC
48123if test "$wxUSE_NOTEBOOK" = "yes"; then
48124 cat >>confdefs.h <<\_ACEOF
48125#define wxUSE_NOTEBOOK 1
48126_ACEOF
48127
48128 USES_CONTROLS=1
48129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
48130fi
48131
a57d600f 48132if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 48133 cat >>confdefs.h <<\_ACEOF
a57d600f 48134#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
48135_ACEOF
48136
48137 USES_CONTROLS=1
48138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
48139fi
48140
a848cd7e
SC
48141if test "$wxUSE_RADIOBOX" = "yes"; then
48142 cat >>confdefs.h <<\_ACEOF
48143#define wxUSE_RADIOBOX 1
48144_ACEOF
48145
48146 USES_CONTROLS=1
48147fi
48148
48149if test "$wxUSE_RADIOBTN" = "yes"; then
48150 cat >>confdefs.h <<\_ACEOF
48151#define wxUSE_RADIOBTN 1
48152_ACEOF
48153
48154 USES_CONTROLS=1
48155fi
48156
48157if test "$wxUSE_SASH" = "yes"; then
48158 cat >>confdefs.h <<\_ACEOF
48159#define wxUSE_SASH 1
48160_ACEOF
48161
48162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
48163fi
48164
48165if test "$wxUSE_SCROLLBAR" = "yes"; then
48166 cat >>confdefs.h <<\_ACEOF
48167#define wxUSE_SCROLLBAR 1
48168_ACEOF
48169
48170 USES_CONTROLS=1
48171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
48172fi
48173
3f7f284d
RD
48174if test "$wxUSE_SEARCHCTRL" = "yes"; then
48175 cat >>confdefs.h <<\_ACEOF
48176#define wxUSE_SEARCHCTRL 1
48177_ACEOF
48178
48179 USES_CONTROLS=1
48180fi
48181
a848cd7e
SC
48182if test "$wxUSE_SLIDER" = "yes"; then
48183 cat >>confdefs.h <<\_ACEOF
48184#define wxUSE_SLIDER 1
48185_ACEOF
48186
48187 USES_CONTROLS=1
48188fi
48189
48190if test "$wxUSE_SPINBTN" = "yes"; then
48191 cat >>confdefs.h <<\_ACEOF
48192#define wxUSE_SPINBTN 1
48193_ACEOF
48194
48195 USES_CONTROLS=1
48196fi
48197
48198if test "$wxUSE_SPINCTRL" = "yes"; then
48199 cat >>confdefs.h <<\_ACEOF
48200#define wxUSE_SPINCTRL 1
48201_ACEOF
48202
48203 USES_CONTROLS=1
48204fi
48205
48206if test "$wxUSE_SPLITTER" = "yes"; then
48207 cat >>confdefs.h <<\_ACEOF
48208#define wxUSE_SPLITTER 1
48209_ACEOF
48210
48211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
48212fi
48213
48214if test "$wxUSE_STATBMP" = "yes"; then
48215 cat >>confdefs.h <<\_ACEOF
48216#define wxUSE_STATBMP 1
48217_ACEOF
48218
48219 USES_CONTROLS=1
48220fi
48221
48222if test "$wxUSE_STATBOX" = "yes"; then
48223 cat >>confdefs.h <<\_ACEOF
48224#define wxUSE_STATBOX 1
48225_ACEOF
48226
48227 USES_CONTROLS=1
48228fi
48229
48230if test "$wxUSE_STATTEXT" = "yes"; then
48231 cat >>confdefs.h <<\_ACEOF
48232#define wxUSE_STATTEXT 1
48233_ACEOF
48234
48235 USES_CONTROLS=1
48236fi
48237
48238if test "$wxUSE_STATLINE" = "yes"; then
48239 cat >>confdefs.h <<\_ACEOF
48240#define wxUSE_STATLINE 1
48241_ACEOF
48242
48243 USES_CONTROLS=1
48244fi
48245
48246if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
48247 cat >>confdefs.h <<\_ACEOF
48248#define wxUSE_NATIVE_STATUSBAR 1
48249_ACEOF
48250
a848cd7e
SC
48251 cat >>confdefs.h <<\_ACEOF
48252#define wxUSE_STATUSBAR 1
48253_ACEOF
48254
48255 USES_CONTROLS=1
48256
48257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
48258fi
48259
f10e38c4 48260if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
48261 cat >>confdefs.h <<\_ACEOF
48262#define wxUSE_TAB_DIALOG 1
48263_ACEOF
48264
a848cd7e
SC
48265fi
48266
48267if test "$wxUSE_TEXTCTRL" = "yes"; then
48268 cat >>confdefs.h <<\_ACEOF
48269#define wxUSE_TEXTCTRL 1
48270_ACEOF
48271
48272 USES_CONTROLS=1
48273 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
48274fi
48275
48276if test "$wxUSE_TOGGLEBTN" = "yes"; then
48277 if test "$wxUSE_COCOA" = 1 ; then
48278 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
48279echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
48280 wxUSE_TOGGLEBTN=no
48281 fi
a848cd7e
SC
48282
48283 if test "$wxUSE_TOGGLEBTN" = "yes"; then
48284 cat >>confdefs.h <<\_ACEOF
48285#define wxUSE_TOGGLEBTN 1
48286_ACEOF
48287
48288 USES_CONTROLS=1
48289 fi
48290fi
48291
a848cd7e
SC
48292if test "$wxUSE_TOOLBAR" = "yes"; then
48293 cat >>confdefs.h <<\_ACEOF
48294#define wxUSE_TOOLBAR 1
48295_ACEOF
48296
48297 USES_CONTROLS=1
48298
452b6243
VS
48299 if test "$wxUSE_UNIVERSAL" = "yes"; then
48300 wxUSE_TOOLBAR_NATIVE="no"
48301 else
48302 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
48303 cat >>confdefs.h <<\_ACEOF
48304#define wxUSE_TOOLBAR_NATIVE 1
48305_ACEOF
48306
a848cd7e
SC
48307 fi
48308
48309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
48310fi
48311
48312if test "$wxUSE_TOOLTIPS" = "yes"; then
48313 if test "$wxUSE_MOTIF" = 1; then
48314 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
48315echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
48316 else
48317 if test "$wxUSE_UNIVERSAL" = "yes"; then
48318 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
48319echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
48320 else
48321 cat >>confdefs.h <<\_ACEOF
48322#define wxUSE_TOOLTIPS 1
48323_ACEOF
48324
48325 fi
48326 fi
48327fi
48328
0093c2fc
VZ
48329if test "$wxUSE_TREEBOOK" = "yes"; then
48330 cat >>confdefs.h <<\_ACEOF
48331#define wxUSE_TREEBOOK 1
48332_ACEOF
48333
48334 USES_CONTROLS=1
48335fi
48336
5ec3bc43
JS
48337if test "$wxUSE_TOOLBOOK" = "yes"; then
48338 cat >>confdefs.h <<\_ACEOF
48339#define wxUSE_TOOLBOOK 1
48340_ACEOF
48341
48342 USES_CONTROLS=1
48343fi
48344
a848cd7e
SC
48345if test "$wxUSE_TREECTRL" = "yes"; then
48346 if test "$wxUSE_IMAGLIST" = "yes"; then
48347 cat >>confdefs.h <<\_ACEOF
48348#define wxUSE_TREECTRL 1
48349_ACEOF
48350
48351 USES_CONTROLS=1
48352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48353 else
48354 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48355echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48356 fi
48357fi
48358
48359if test "$wxUSE_POPUPWIN" = "yes"; then
48360 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
48361 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48362echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48363 else
48364 if test "$wxUSE_PM" = 1; then
48365 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48366echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48367 else
48368 cat >>confdefs.h <<\_ACEOF
48369#define wxUSE_POPUPWIN 1
48370_ACEOF
48371
0b78747f 48372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
48373
48374 USES_CONTROLS=1
48375 fi
48376 fi
48377fi
48378
0dcd06dd 48379if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
56c6aab7 48380 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
480b9f18 48381 { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
56c6aab7 48382echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
b843b628
MB
48383 else
48384 cat >>confdefs.h <<\_ACEOF
48385#define wxUSE_DIALUP_MANAGER 1
48386_ACEOF
48387
48388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48389 fi
48390fi
48391
a848cd7e
SC
48392if test "$wxUSE_TIPWINDOW" = "yes"; then
48393 if test "$wxUSE_PM" = 1; then
48394 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48395echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48396 else
48397 cat >>confdefs.h <<\_ACEOF
48398#define wxUSE_TIPWINDOW 1
48399_ACEOF
48400
48401 fi
48402fi
48403
48404if test "$USES_CONTROLS" = 1; then
48405 cat >>confdefs.h <<\_ACEOF
48406#define wxUSE_CONTROLS 1
48407_ACEOF
48408
48409fi
48410
48411
48412if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48413 cat >>confdefs.h <<\_ACEOF
48414#define wxUSE_ACCESSIBILITY 1
48415_ACEOF
48416
48417 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48418fi
48419
48420if test "$wxUSE_DRAGIMAGE" = "yes"; then
48421 cat >>confdefs.h <<\_ACEOF
48422#define wxUSE_DRAGIMAGE 1
48423_ACEOF
48424
48425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48426fi
48427
48428if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
48429 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48430 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48431echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48432 else
48433 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
48434#define wxUSE_EXCEPTIONS 1
48435_ACEOF
48436
07bea8f0
VS
48437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48438 fi
a848cd7e
SC
48439fi
48440
48441USE_HTML=0
48442if test "$wxUSE_HTML" = "yes"; then
48443 cat >>confdefs.h <<\_ACEOF
48444#define wxUSE_HTML 1
48445_ACEOF
48446
48447 USE_HTML=1
48448 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
48449 if test "$wxUSE_MAC" = 1; then
48450 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48451 fi
a848cd7e 48452fi
646b6ec1 48453if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 48454 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 48455 old_CPPFLAGS="$CPPFLAGS"
c92ad099 48456 CPPFLAGS="-x objective-c++ $CPPFLAGS"
47964710
VS
48457 { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48458echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
07bea8f0
VS
48459if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48460 echo $ECHO_N "(cached) $ECHO_C" >&6
48461else
48462 cat >conftest.$ac_ext <<_ACEOF
48463/* confdefs.h. */
48464_ACEOF
48465cat confdefs.h >>conftest.$ac_ext
48466cat >>conftest.$ac_ext <<_ACEOF
48467/* end confdefs.h. */
4fd169bd
VZ
48468
48469 #include <Carbon/Carbon.h>
48470 #include <WebKit/WebKit.h>
48471
07bea8f0
VS
48472
48473#include <WebKit/HIWebView.h>
48474_ACEOF
48475rm -f conftest.$ac_objext
47964710
VS
48476if { (ac_try="$ac_compile"
48477case "(($ac_try" in
48478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48479 *) ac_try_echo=$ac_try;;
48480esac
48481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48482 (eval "$ac_compile") 2>conftest.er1
07bea8f0
VS
48483 ac_status=$?
48484 grep -v '^ *+' conftest.er1 >conftest.err
48485 rm -f conftest.er1
48486 cat conftest.err >&5
48487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
48488 (exit $ac_status); } && {
48489 test -z "$ac_c_werror_flag" ||
48490 test ! -s conftest.err
48491 } && test -s conftest.$ac_objext; then
07bea8f0
VS
48492 ac_cv_header_WebKit_HIWebView_h=yes
48493else
48494 echo "$as_me: failed program was:" >&5
48495sed 's/^/| /' conftest.$ac_ext >&5
48496
47964710 48497 ac_cv_header_WebKit_HIWebView_h=no
07bea8f0 48498fi
47964710
VS
48499
48500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
07bea8f0 48501fi
47964710
VS
48502{ echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48503echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
07bea8f0
VS
48504if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48505
48506 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
48507#define wxUSE_WEBKIT 1
48508_ACEOF
48509
07bea8f0
VS
48510 WEBKIT_LINK="-framework WebKit"
48511
48512else
48513
48514 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48515echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48516 wxUSE_WEBKIT=no
48517
646b6ec1
VS
48518fi
48519
07bea8f0
VS
48520
48521 CPPFLAGS="$old_CPPFLAGS"
48522 elif test "$wxUSE_COCOA" = 1; then
48523 cat >>confdefs.h <<\_ACEOF
48524#define wxUSE_WEBKIT 1
48525_ACEOF
48526
48527 else
48528 wxUSE_WEBKIT=no
48529 fi
48530fi
48531
9a8f0513
VS
48532USE_XRC=0
48533if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
48534 if test "$wxUSE_XML" != "yes"; then
48535 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48536echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48537 wxUSE_XRC=no
48538 else
48539 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
48540#define wxUSE_XRC 1
48541_ACEOF
48542
d2ebf0b7
VS
48543 USE_XRC=1
48544 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48545 fi
9a8f0513 48546fi
07bea8f0 48547
3f60522a
JS
48548USE_AUI=0
48549if test "$wxUSE_AUI" = "yes"; then
48550 cat >>confdefs.h <<\_ACEOF
48551#define wxUSE_AUI 1
48552_ACEOF
48553
48554 USE_AUI=1
48555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48556fi
48557
54429bb3
RD
48558USE_STC=0
48559if test "$wxUSE_STC" = "yes"; then
48560 cat >>confdefs.h <<\_ACEOF
48561#define wxUSE_STC 1
48562_ACEOF
48563
48564 USE_STC=1
48565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48566fi
48567
a848cd7e
SC
48568if test "$wxUSE_MENUS" = "yes"; then
48569 cat >>confdefs.h <<\_ACEOF
48570#define wxUSE_MENUS 1
48571_ACEOF
48572
48573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48574fi
48575
48576if test "$wxUSE_METAFILE" = "yes"; then
48577 cat >>confdefs.h <<\_ACEOF
48578#define wxUSE_METAFILE 1
48579_ACEOF
48580
48581fi
48582
48583if test "$wxUSE_MIMETYPE" = "yes"; then
48584 cat >>confdefs.h <<\_ACEOF
48585#define wxUSE_MIMETYPE 1
48586_ACEOF
48587
48588fi
48589
48590if test "$wxUSE_MINIFRAME" = "yes"; then
48591 cat >>confdefs.h <<\_ACEOF
48592#define wxUSE_MINIFRAME 1
48593_ACEOF
48594
a848cd7e
SC
48595fi
48596
48597if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48598 cat >>confdefs.h <<\_ACEOF
48599#define wxUSE_SYSTEM_OPTIONS 1
48600_ACEOF
48601
4f167b46
VZ
48602fi
48603
48604if test "$wxUSE_TASKBARICON" = "yes"; then
48605 cat >>confdefs.h <<\_ACEOF
48606#define wxUSE_TASKBARICON 1
48607_ACEOF
48608
48609 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
a848cd7e
SC
48610fi
48611
48612
48613if test "$wxUSE_VALIDATORS" = "yes"; then
48614 cat >>confdefs.h <<\_ACEOF
48615#define wxUSE_VALIDATORS 1
48616_ACEOF
48617
48618 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48619fi
48620
48621if test "$wxUSE_PALETTE" = "yes" ; then
f321ab7f
VS
48622 if test "$wxUSE_DFB" = 1; then
48623 { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48624echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48625 wxUSE_PALETTE=no
48626 else
48627 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
48628#define wxUSE_PALETTE 1
48629_ACEOF
48630
f321ab7f 48631 fi
a848cd7e
SC
48632fi
48633
48634if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48635 LIBS=" -lunicows $LIBS"
48636fi
48637
91dea314
MW
48638USE_RICHTEXT=0
48639if test "$wxUSE_RICHTEXT" = "yes"; then
48640 cat >>confdefs.h <<\_ACEOF
48641#define wxUSE_RICHTEXT 1
48642_ACEOF
48643
48644 USE_RICHTEXT=1
48645 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48646fi
48647
a848cd7e
SC
48648
48649if test "$wxUSE_IMAGE" = "yes" ; then
48650 cat >>confdefs.h <<\_ACEOF
48651#define wxUSE_IMAGE 1
48652_ACEOF
48653
48654
48655 if test "$wxUSE_GIF" = "yes" ; then
48656 cat >>confdefs.h <<\_ACEOF
48657#define wxUSE_GIF 1
48658_ACEOF
48659
48660 fi
48661
48662 if test "$wxUSE_PCX" = "yes" ; then
48663 cat >>confdefs.h <<\_ACEOF
48664#define wxUSE_PCX 1
48665_ACEOF
48666
48667 fi
48668
bb9e79c0
VZ
48669 if test "$wxUSE_TGA" = "yes" ; then
48670 cat >>confdefs.h <<\_ACEOF
48671#define wxUSE_TGA 1
48672_ACEOF
48673
48674 fi
48675
a848cd7e
SC
48676 if test "$wxUSE_IFF" = "yes" ; then
48677 cat >>confdefs.h <<\_ACEOF
48678#define wxUSE_IFF 1
48679_ACEOF
48680
48681 fi
48682
48683 if test "$wxUSE_PNM" = "yes" ; then
48684 cat >>confdefs.h <<\_ACEOF
48685#define wxUSE_PNM 1
48686_ACEOF
48687
48688 fi
48689
48690 if test "$wxUSE_XPM" = "yes" ; then
48691 cat >>confdefs.h <<\_ACEOF
48692#define wxUSE_XPM 1
48693_ACEOF
48694
48695 fi
48696
48697 if test "$wxUSE_ICO_CUR" = "yes" ; then
48698 cat >>confdefs.h <<\_ACEOF
48699#define wxUSE_ICO_CUR 1
48700_ACEOF
48701
48702 fi
48703fi
48704
48705
319c5ed4
VZ
48706if test "$wxUSE_ABOUTDLG" = "yes"; then
48707 cat >>confdefs.h <<\_ACEOF
48708#define wxUSE_ABOUTDLG 1
48709_ACEOF
48710
48711fi
48712
a848cd7e
SC
48713if test "$wxUSE_CHOICEDLG" = "yes"; then
48714 cat >>confdefs.h <<\_ACEOF
48715#define wxUSE_CHOICEDLG 1
48716_ACEOF
48717
48718fi
48719
48720if test "$wxUSE_COLOURDLG" = "yes"; then
48721 cat >>confdefs.h <<\_ACEOF
48722#define wxUSE_COLOURDLG 1
48723_ACEOF
48724
48725fi
48726
48727if test "$wxUSE_FILEDLG" = "yes"; then
48728 cat >>confdefs.h <<\_ACEOF
48729#define wxUSE_FILEDLG 1
48730_ACEOF
48731
48732fi
48733
48734if test "$wxUSE_FINDREPLDLG" = "yes"; then
48735 cat >>confdefs.h <<\_ACEOF
48736#define wxUSE_FINDREPLDLG 1
48737_ACEOF
48738
48739fi
48740
48741if test "$wxUSE_FONTDLG" = "yes"; then
48742 cat >>confdefs.h <<\_ACEOF
48743#define wxUSE_FONTDLG 1
48744_ACEOF
48745
48746fi
48747
48748if test "$wxUSE_DIRDLG" = "yes"; then
48749 if test "$wxUSE_TREECTRL" != "yes"; then
48750 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48751echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48752 else
48753 cat >>confdefs.h <<\_ACEOF
48754#define wxUSE_DIRDLG 1
48755_ACEOF
48756
48757 fi
48758fi
48759
48760if test "$wxUSE_MSGDLG" = "yes"; then
48761 cat >>confdefs.h <<\_ACEOF
48762#define wxUSE_MSGDLG 1
48763_ACEOF
48764
48765fi
48766
48767if test "$wxUSE_NUMBERDLG" = "yes"; then
48768 cat >>confdefs.h <<\_ACEOF
48769#define wxUSE_NUMBERDLG 1
48770_ACEOF
48771
48772fi
48773
48774if test "$wxUSE_PROGRESSDLG" = "yes"; then
48775 if test "$wxUSE_CONSTRAINTS" != "yes"; then
48776 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
48777echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
48778 else
48779 cat >>confdefs.h <<\_ACEOF
48780#define wxUSE_PROGRESSDLG 1
48781_ACEOF
48782
48783 fi
48784fi
48785
48786if test "$wxUSE_SPLASH" = "yes"; then
48787 cat >>confdefs.h <<\_ACEOF
48788#define wxUSE_SPLASH 1
48789_ACEOF
48790
2057db16 48791 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
48792fi
48793
48794if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48795 if test "$wxUSE_CONSTRAINTS" != "yes"; then
48796 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
48797echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
48798 else
48799 cat >>confdefs.h <<\_ACEOF
48800#define wxUSE_STARTUP_TIPS 1
48801_ACEOF
48802
48803 fi
48804fi
48805
48806if test "$wxUSE_TEXTDLG" = "yes"; then
48807 cat >>confdefs.h <<\_ACEOF
48808#define wxUSE_TEXTDLG 1
48809_ACEOF
48810
48811fi
48812
48813if test "$wxUSE_WIZARDDLG" = "yes"; then
48814 cat >>confdefs.h <<\_ACEOF
48815#define wxUSE_WIZARDDLG 1
48816_ACEOF
48817
48818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48819fi
48820
48821
5d18e029
VZ
48822if test "$wxUSE_MSW" = 1 ; then
48823
91a5e00c
VS
48824 if test "$wxUSE_DC_CACHEING" = "yes"; then
48825 cat >>confdefs.h <<\_ACEOF
5d18e029
VZ
48826#define wxUSE_DC_CACHEING 1
48827_ACEOF
48828
91a5e00c 48829 fi
61873536 48830
91a5e00c
VS
48831 if test "$wxUSE_DIB" = "yes"; then
48832 cat >>confdefs.h <<\_ACEOF
f77c0fe3 48833#define wxUSE_WXDIB 1
5d18e029
VZ
48834_ACEOF
48835
91a5e00c 48836 fi
5d18e029 48837
91a5e00c
VS
48838 if test "$wxUSE_OWNER_DRAWN" = "yes"; then
48839 cat >>confdefs.h <<\_ACEOF
6fdf2acc
VZ
48840#define wxUSE_OWNER_DRAWN 1
48841_ACEOF
48842
91a5e00c 48843 fi
6fdf2acc 48844
91a5e00c
VS
48845 if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
48846 cat >>confdefs.h <<\_ACEOF
48847#define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
f77c0fe3
VZ
48848_ACEOF
48849
91a5e00c 48850 fi
f77c0fe3 48851
91a5e00c
VS
48852 if test "$wxUSE_UXTHEME" = "yes"; then
48853 cat >>confdefs.h <<\_ACEOF
48854#define wxUSE_UXTHEME 1
0295153c
VZ
48855_ACEOF
48856
91a5e00c
VS
48857 fi
48858
0295153c
VZ
48859fi
48860
91a5e00c
VS
48861
48862if test "$USE_WIN32" = 1 ; then
48863 if test "$wxUSE_INICONF" = "yes"; then
48864 cat >>confdefs.h <<\_ACEOF
48865#define wxUSE_INICONF 1
508d12b2
VZ
48866_ACEOF
48867
91a5e00c
VS
48868 fi
48869
48870 if test "$wxUSE_REGKEY" = "yes"; then
48871 cat >>confdefs.h <<\_ACEOF
48872#define wxUSE_REGKEY 1
48873_ACEOF
508d12b2 48874
91a5e00c 48875 fi
5d18e029
VZ
48876fi
48877
48878
64b75e64
RD
48879if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48880 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
48881 cat >>confdefs.h <<\_ACEOF
48882#define wxUSE_GRAPHICS_CONTEXT 1
48883_ACEOF
48884
48885 elif test "$wxUSE_GTK" != 1; then
48886 cat >>confdefs.h <<\_ACEOF
48887#define wxUSE_GRAPHICS_CONTEXT 1
48888_ACEOF
48889
48890 else
48891
48892pkg_failed=no
47964710
VS
48893{ echo "$as_me:$LINENO: checking for CAIRO" >&5
48894echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
64b75e64
RD
48895
48896if test -n "$PKG_CONFIG"; then
48897 if test -n "$CAIRO_CFLAGS"; then
48898 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
48899 else
48900 if test -n "$PKG_CONFIG" && \
48901 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48902 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48903 ac_status=$?
48904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48905 (exit $ac_status); }; then
48906 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
48907else
48908 pkg_failed=yes
48909fi
48910 fi
48911else
48912 pkg_failed=untried
48913fi
48914if test -n "$PKG_CONFIG"; then
48915 if test -n "$CAIRO_LIBS"; then
48916 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
48917 else
48918 if test -n "$PKG_CONFIG" && \
48919 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48920 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48921 ac_status=$?
48922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48923 (exit $ac_status); }; then
48924 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
48925else
48926 pkg_failed=yes
48927fi
48928 fi
48929else
48930 pkg_failed=untried
48931fi
48932
48933
48934
48935if test $pkg_failed = yes; then
48936
48937if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48938 _pkg_short_errors_supported=yes
48939else
48940 _pkg_short_errors_supported=no
48941fi
48942 if test $_pkg_short_errors_supported = yes; then
48943 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
48944 else
48945 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
48946 fi
48947 # Put the nasty error message in config.log where it belongs
48948 echo "$CAIRO_PKG_ERRORS" >&5
48949
ec3edcc9 48950 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
48951echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
48952
64b75e64 48953elif test $pkg_failed = untried; then
ec3edcc9 48954 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
48955echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
48956
64b75e64
RD
48957else
48958 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
48959 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
47964710
VS
48960 { echo "$as_me:$LINENO: result: yes" >&5
48961echo "${ECHO_T}yes" >&6; }
ec3edcc9 48962 cat >>confdefs.h <<\_ACEOF
64b75e64
RD
48963#define wxUSE_GRAPHICS_CONTEXT 1
48964_ACEOF
48965
64b75e64
RD
48966fi
48967 fi
48968fi
48969
48970
f10e38c4
VZ
48971USE_MEDIA=0
48972
ce756cb0 48973if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
48974 USE_MEDIA=1
48975
ce756cb0 48976 if test "$wxUSE_GTK" = 1; then
c9a66001 48977 wxUSE_GSTREAMER="no"
ce756cb0 48978
f10e38c4
VZ
48979 GST_VERSION_MAJOR=0
48980 GST_VERSION_MINOR=10
2f6c5bb5 48981 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
48982
48983 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 48984
3ecd9f92 48985pkg_failed=no
47964710
VS
48986{ echo "$as_me:$LINENO: checking for GST" >&5
48987echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
ce756cb0 48988
3ecd9f92
MW
48989if test -n "$PKG_CONFIG"; then
48990 if test -n "$GST_CFLAGS"; then
48991 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48992 else
48993 if test -n "$PKG_CONFIG" && \
48994 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48995 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48996 ac_status=$?
48997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48998 (exit $ac_status); }; then
48999 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 49000else
3ecd9f92
MW
49001 pkg_failed=yes
49002fi
49003 fi
49004else
49005 pkg_failed=untried
dae87f93 49006fi
dae87f93 49007if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
49008 if test -n "$GST_LIBS"; then
49009 pkg_cv_GST_LIBS="$GST_LIBS"
49010 else
49011 if test -n "$PKG_CONFIG" && \
49012 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49013 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49014 ac_status=$?
49015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49016 (exit $ac_status); }; then
49017 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 49018else
3ecd9f92
MW
49019 pkg_failed=yes
49020fi
49021 fi
49022else
49023 pkg_failed=untried
dae87f93
RN
49024fi
49025
dae87f93 49026
2f6c5bb5 49027
3ecd9f92 49028if test $pkg_failed = yes; then
ce756cb0 49029
3ecd9f92
MW
49030if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49031 _pkg_short_errors_supported=yes
49032else
49033 _pkg_short_errors_supported=no
49034fi
49035 if test $_pkg_short_errors_supported = yes; then
49036 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49037 else
49038 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 49039 fi
3ecd9f92
MW
49040 # Put the nasty error message in config.log where it belongs
49041 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
49042
49043
3ecd9f92
MW
49044 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49045echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49046 GST_VERSION_MINOR=8
dae87f93 49047
ce756cb0 49048
3ecd9f92 49049elif test $pkg_failed = untried; then
dae87f93 49050
2f6c5bb5
VZ
49051 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49052echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 49053 GST_VERSION_MINOR=8
dae87f93 49054
2f6c5bb5 49055
3ecd9f92
MW
49056else
49057 GST_CFLAGS=$pkg_cv_GST_CFLAGS
49058 GST_LIBS=$pkg_cv_GST_LIBS
47964710
VS
49059 { echo "$as_me:$LINENO: result: yes" >&5
49060echo "${ECHO_T}yes" >&6; }
3ecd9f92
MW
49061
49062 wxUSE_GSTREAMER="yes"
49063 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 49064
3ecd9f92 49065fi
2f6c5bb5
VZ
49066 else
49067 GST_VERSION_MINOR=8
f10e38c4 49068 fi
dae87f93 49069
2f6c5bb5
VZ
49070 if test $GST_VERSION_MINOR = "8"; then
49071 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 49072
3ecd9f92 49073pkg_failed=no
47964710
VS
49074{ echo "$as_me:$LINENO: checking for GST" >&5
49075echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
dae87f93 49076
3ecd9f92
MW
49077if test -n "$PKG_CONFIG"; then
49078 if test -n "$GST_CFLAGS"; then
49079 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49080 else
49081 if test -n "$PKG_CONFIG" && \
49082 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49083 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49084 ac_status=$?
49085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49086 (exit $ac_status); }; then
49087 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 49088else
3ecd9f92
MW
49089 pkg_failed=yes
49090fi
49091 fi
49092else
49093 pkg_failed=untried
dae87f93 49094fi
f10e38c4 49095if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
49096 if test -n "$GST_LIBS"; then
49097 pkg_cv_GST_LIBS="$GST_LIBS"
49098 else
49099 if test -n "$PKG_CONFIG" && \
49100 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49101 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49102 ac_status=$?
49103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49104 (exit $ac_status); }; then
49105 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 49106else
3ecd9f92
MW
49107 pkg_failed=yes
49108fi
49109 fi
49110else
49111 pkg_failed=untried
dae87f93
RN
49112fi
49113
ce756cb0 49114
2f6c5bb5 49115
3ecd9f92 49116if test $pkg_failed = yes; then
dae87f93 49117
3ecd9f92
MW
49118if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49119 _pkg_short_errors_supported=yes
49120else
49121 _pkg_short_errors_supported=no
49122fi
49123 if test $_pkg_short_errors_supported = yes; then
49124 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49125 else
49126 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 49127 fi
3ecd9f92
MW
49128 # Put the nasty error message in config.log where it belongs
49129 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
49130
49131
3ecd9f92
MW
49132 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49133echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 49134
3ecd9f92 49135elif test $pkg_failed = untried; then
ce756cb0 49136
2f6c5bb5
VZ
49137 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49138echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 49139
3ecd9f92
MW
49140else
49141 GST_CFLAGS=$pkg_cv_GST_CFLAGS
49142 GST_LIBS=$pkg_cv_GST_LIBS
47964710
VS
49143 { echo "$as_me:$LINENO: result: yes" >&5
49144echo "${ECHO_T}yes" >&6; }
3ecd9f92
MW
49145 wxUSE_GSTREAMER="yes"
49146fi
dae87f93 49147 fi
ce756cb0 49148
f10e38c4 49149
dae87f93 49150 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
49151 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
49152 LIBS="$GST_LIBS $LIBS"
49153
dae87f93 49154 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
49155#define wxUSE_GSTREAMER 1
49156_ACEOF
49157
2f6c5bb5
VZ
49158 else
49159 USE_MEDIA=0
ce756cb0
RN
49160 fi
49161 fi
2f6c5bb5
VZ
49162
49163 if test $USE_MEDIA = 1; then
49164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
49165 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
49166#define wxUSE_MEDIACTRL 1
49167_ACEOF
49168
2f6c5bb5 49169 fi
ce756cb0
RN
49170fi
49171
49172
a848cd7e
SC
49173if test "$cross_compiling" = "yes"; then
49174 OSINFO="\"$host\""
49175else
49176 OSINFO=`uname -s -r -m`
49177 OSINFO="\"$OSINFO\""
49178fi
49179
49180cat >>confdefs.h <<_ACEOF
49181#define WXWIN_OS_DESCRIPTION $OSINFO
49182_ACEOF
49183
49184
49185
49186if test "x$prefix" != "xNONE"; then
49187 wxPREFIX=$prefix
49188else
49189 wxPREFIX=$ac_default_prefix
49190fi
49191
49192cat >>confdefs.h <<_ACEOF
49193#define wxINSTALL_PREFIX "$wxPREFIX"
49194_ACEOF
49195
49196
a848cd7e
SC
49197
49198
bd630206
VZ
49199STD_BASE_LIBS="base"
49200STD_GUI_LIBS=""
49201BUILT_WX_LIBS="base"
49202ALL_WX_LIBS="xrc stc gl media dbgrid qa html adv core odbc xml net base"
a848cd7e 49203
bd630206
VZ
49204if test "$wxUSE_SOCKETS" = "yes" ; then
49205 STD_BASE_LIBS="net $STD_BASE_LIBS"
49206 BUILT_WX_LIBS="net $BUILT_WX_LIBS"
a848cd7e
SC
49207fi
49208if test "$wxUSE_ODBC" != "no" ; then
bd630206 49209 BUILT_WX_LIBS="odbc $BUILT_WX_LIBS"
61639efb 49210fi
bd630206
VZ
49211if test "$wxUSE_XML" = "yes" ; then
49212 STD_BASE_LIBS="xml $STD_BASE_LIBS"
49213 BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
54429bb3 49214fi
a848cd7e 49215
bd630206
VZ
49216if test "$wxUSE_GUI" = "yes"; then
49217 STD_GUI_LIBS="adv core"
6534efcf 49218 BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
bd630206
VZ
49219
49220 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49221 STD_GUI_LIBS="qa $STD_GUI_LIBS"
49222 BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49223 fi
49224 if test "$wxUSE_ODBC" != "no" ; then
49225 BUILT_WX_LIBS="dbgrid $BUILT_WX_LIBS"
49226 fi
49227 if test "$wxUSE_HTML" = "yes" ; then
49228 STD_GUI_LIBS="html $STD_GUI_LIBS"
49229 BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49230 fi
49231 if test "$wxUSE_MEDIACTRL" = "yes" ; then
49232 BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49233 fi
49234 if test "$wxUSE_OPENGL" = "yes" ; then
49235 BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49236 fi
49237 if test "$wxUSE_AUI" = "yes" ; then
49238 BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49239 fi
49240 if test "$wxUSE_STC" = "yes" ; then
49241 BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49242 fi
49243 if test "$wxUSE_XRC" = "yes" ; then
49244 STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49245 BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49246 fi
a848cd7e
SC
49247fi
49248
49249
49250
49251
49252
a848cd7e 49253
bd630206
VZ
49254
49255
a848cd7e 49256if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 49257 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
49258 if test "$USE_DARWIN" = 1; then
49259 LDFLAGS="$LDFLAGS -framework QuickTime"
49260 else
49261 LDFLAGS="$LDFLAGS -lQuickTimeLib"
49262 fi
07bea8f0 49263 fi
5dcf30a0 49264 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
49265 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
49266 else
49267 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 49268 fi
a848cd7e
SC
49269fi
49270if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 49271 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
49272 if test "$wxUSE_MEDIACTRL" = "yes"; then
49273 LDFLAGS="$LDFLAGS -framework QuickTime"
49274 fi
a848cd7e 49275fi
19b27e78
MW
49276if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
49277 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49278fi
a848cd7e 49279
a848cd7e
SC
49280LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49281
a848cd7e
SC
49282if test "$wxUSE_GUI" = "yes"; then
49283
49284
8bce5cda 49285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
39d66339 49286 erase event exec font image minimal mobile \
57c2270c 49287 mobile/wxedit mobile/styles render \
39d66339 49288 shaped svg taborder vscroll widgets"
a848cd7e
SC
49289
49290 if test "$wxUSE_MONOLITHIC" != "yes"; then
49291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49292 fi
0b78747f 49293 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
49294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49295 if test "$wxUSE_UNIVERSAL" != "yes"; then
49296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
49297 fi
49298 fi
49299 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 49301 fi
a848cd7e
SC
49302else
49303 SAMPLES_SUBDIRS="console"
c9bd045b
VZ
49304 if test "$wxUSE_SOCKETS" = "yes" ; then
49305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
49306 fi
a848cd7e
SC
49307fi
49308
49309
48f625bc 49310if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
49311 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
49312elif test "$GCC" = yes ; then
49313 CWARNINGS="-Wall -Wundef"
49314fi
49315
48f625bc 49316if test "x$INTELCXX" = "xyes" ; then
7f47faf4 49317 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
49318elif test "$GXX" = yes ; then
49319 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 49320fi
a848cd7e 49321
a848cd7e 49322
5ff751d6
VZ
49323WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49324WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49325
49326
c92ad099 49327CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
02b05020 49328 -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
49329 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49330 $CPPFLAGS `
5ff751d6 49331
8aeeb05c 49332C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 49333CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
b1b592ad 49334CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
49335
49336WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49337
a848cd7e 49338
95986553
DE
49339if test "x$MWCC" = "xyes"; then
49340
49341 CC="$CC -cwd source -I-"
49342 CXX="$CXX -cwd source -I-"
49343fi
49344
a848cd7e 49345
0c3c69fc 49346LIBS=`echo $LIBS`
a848cd7e
SC
49347EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49348EXTRALIBS_XML="$EXPAT_LINK"
49349EXTRALIBS_HTML="$MSPACK_LINK"
49350EXTRALIBS_ODBC="$ODBC_LINK"
cf63f3d3 49351EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e 49352if test "$wxUSE_GUI" = "yes"; then
fd220f13 49353 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
49354fi
49355if test "$wxUSE_OPENGL" = "yes"; then
49356 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49357fi
49358
8aeeb05c 49359LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 49360
5ff751d6 49361WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
49362
49363if test "$wxUSE_REGEX" = "builtin" ; then
74802184 49364 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
49365fi
49366if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 49367 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
49368fi
49369if test "$wxUSE_ODBC" = "builtin" ; then
74802184 49370 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
49371fi
49372if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 49373 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
49374fi
49375if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 49376 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
49377fi
49378if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 49379 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
49380fi
49381if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 49382 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
49383fi
49384
49385for i in $wxconfig_3rdparty ; do
5ff751d6 49386 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
49387done
49388
49389
49390if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49391 WXUNIV=1
4353a8df
VZ
49392
49393 case "$wxUNIV_THEMES" in
49394 ''|all)
49395 cat >>confdefs.h <<\_ACEOF
49396#define wxUSE_ALL_THEMES 1
49397_ACEOF
49398
49399 ;;
49400
49401 *)
49402 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
49403 cat >>confdefs.h <<_ACEOF
49404#define wxUSE_THEME_$t 1
49405_ACEOF
49406
49407 done
49408 esac
a848cd7e
SC
49409else
49410 WXUNIV=0
49411fi
49412
49413
49414
49415
49416
49417
49418
49419
49420
49421if test $wxUSE_MONOLITHIC = "yes" ; then
49422 MONOLITHIC=1
49423else
49424 MONOLITHIC=0
49425fi
49426
49427if test $wxUSE_PLUGINS = "yes" ; then
49428 USE_PLUGINS=1
49429else
49430 USE_PLUGINS=0
49431fi
49432
49433if test $wxUSE_ODBC != "no" ; then
49434 USE_ODBC=1
49435else
49436 USE_ODBC=0
49437fi
49438
16358932
VZ
49439if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49440 USE_QA=1
49441else
49442 USE_QA=0
49443fi
49444
a848cd7e
SC
49445if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49446 OFFICIAL_BUILD=1
49447else
49448 OFFICIAL_BUILD=0
49449fi
49450
49451
49452
49453
49454
49455
49456
49457
49458
49459
49460
49461
49462
49463
49464
49465
49466
49467
49468
ceec2216 49469
d1c38808 49470
3565d135 49471
2b850ae1 49472
b1b592ad 49473
bd8a7646 49474
a848cd7e
SC
49475
49476
49477TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
49478
49479
49480
49481
49482
49483
49484
49485
4d4ff94c
VZ
49486case "$TOOLKIT" in
49487 GTK)
c2e9ada4 49488 TOOLKIT_DESC="GTK+"
4d4ff94c 49489 if test "$WXGTK20" = 1; then
c2e9ada4 49490 TOOLKIT_DESC="$TOOLKIT_DESC 2"
bd8a7646
RR
49491 if test "$wxUSE_GTKPRINT" = "yes" ; then
49492 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
49493 fi
c2e9ada4
VZ
49494 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49495 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49496 fi
49497 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49498 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49499 fi
49500 if test "$wxUSE_LIBHILDON" = "yes"; then
49501 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49502 fi
49503
49504 if test "$TOOLKIT_EXTRA" != ""; then
49505 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49506 fi
4d4ff94c 49507 fi
9a8f0513 49508 ;;
4d4ff94c 49509
c2e9ada4
VZ
49510 ?*)
49511 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49512 ;;
49513
4d4ff94c 49514 *)
c2e9ada4 49515 TOOLKIT_DESC="base only"
9a8f0513 49516 ;;
4d4ff94c 49517esac
a848cd7e 49518
fb00f58d
JS
49519if test "$wxUSE_WINE" = "yes"; then
49520 BAKEFILE_FORCE_PLATFORM=win32
49521fi
49522
a81d5bb6
MW
49523if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49524then
47964710
VS
49525 { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49526echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
a81d5bb6
MW
49527if test "${wx_cv_gcc_pch_bug+set}" = set; then
49528 echo $ECHO_N "(cached) $ECHO_C" >&6
49529else
49530
6d952fd7
MW
49531 echo '#include <stdio.h>
49532 const wchar_t test_var[] = L"awidetest";' > conftest.h
49533
49534 echo '#include "conftest.h"
49535 int main()
49536 {
be49c6ec 49537 printf("%ls", test_var);
6d952fd7
MW
49538 return 0;
49539 }' > conftest.cpp
49540
49541 wx_cv_gcc_pch_bug="pch not supported"
a81d5bb6 49542
b2983f42 49543 if $CXX conftest.h >/dev/null 2>&1
a81d5bb6 49544 then
6d952fd7 49545 wx_cv_gcc_pch_bug=
a81d5bb6 49546
6c7f5e56 49547 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
a81d5bb6 49548 then
6c7f5e56
MW
49549 if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49550 grep awidetest >/dev/null
6d952fd7
MW
49551 then
49552 wx_cv_gcc_pch_bug=no
49553 else
a81d5bb6 49554 wx_cv_gcc_pch_bug=yes
6d952fd7 49555 fi
a81d5bb6
MW
49556 fi
49557 fi
49558
6c7f5e56 49559 rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
a81d5bb6
MW
49560
49561fi
47964710
VS
49562{ echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49563echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
a81d5bb6
MW
49564
49565 if test "$wx_cv_gcc_pch_bug" = yes; then
49566 bk_use_pch=no
49567 fi
49568fi
49569
9a8f0513 49570
1e9e8aba
DE
49571
49572
a848cd7e 49573 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
49574 if test "x${host}" = "x" ; then
49575 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49576echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49577 { (exit 1); exit 1; }; }
49578 fi
49579
a848cd7e
SC
49580 BAKEFILE_HOST="${host}"
49581 fi
49582
49583 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49584
49585 if test -n "$ac_tool_prefix"; then
49586 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49587set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47964710
VS
49588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
49589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
49590if test "${ac_cv_prog_RANLIB+set}" = set; then
49591 echo $ECHO_N "(cached) $ECHO_C" >&6
49592else
49593 if test -n "$RANLIB"; then
49594 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49595else
49596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49597for as_dir in $PATH
49598do
49599 IFS=$as_save_IFS
49600 test -z "$as_dir" && as_dir=.
49601 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 49602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
49603 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49605 break 2
49606 fi
49607done
49608done
47964710 49609IFS=$as_save_IFS
a848cd7e
SC
49610
49611fi
49612fi
49613RANLIB=$ac_cv_prog_RANLIB
49614if test -n "$RANLIB"; then
47964710
VS
49615 { echo "$as_me:$LINENO: result: $RANLIB" >&5
49616echo "${ECHO_T}$RANLIB" >&6; }
a848cd7e 49617else
47964710
VS
49618 { echo "$as_me:$LINENO: result: no" >&5
49619echo "${ECHO_T}no" >&6; }
a848cd7e
SC
49620fi
49621
47964710 49622
a848cd7e
SC
49623fi
49624if test -z "$ac_cv_prog_RANLIB"; then
49625 ac_ct_RANLIB=$RANLIB
49626 # Extract the first word of "ranlib", so it can be a program name with args.
49627set dummy ranlib; ac_word=$2
47964710
VS
49628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
49629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
49630if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49631 echo $ECHO_N "(cached) $ECHO_C" >&6
49632else
49633 if test -n "$ac_ct_RANLIB"; then
49634 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49635else
49636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49637for as_dir in $PATH
49638do
49639 IFS=$as_save_IFS
49640 test -z "$as_dir" && as_dir=.
49641 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 49642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
49643 ac_cv_prog_ac_ct_RANLIB="ranlib"
49644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49645 break 2
49646 fi
49647done
49648done
47964710 49649IFS=$as_save_IFS
a848cd7e 49650
a848cd7e
SC
49651fi
49652fi
49653ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49654if test -n "$ac_ct_RANLIB"; then
47964710
VS
49655 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49656echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
a848cd7e 49657else
47964710
VS
49658 { echo "$as_me:$LINENO: result: no" >&5
49659echo "${ECHO_T}no" >&6; }
a848cd7e
SC
49660fi
49661
47964710
VS
49662 if test "x$ac_ct_RANLIB" = x; then
49663 RANLIB=":"
49664 else
49665 case $cross_compiling:$ac_tool_warned in
49666yes:)
49667{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49668whose name does not start with the host triplet. If you think this
49669configuration is useful to you, please write to autoconf@gnu.org." >&5
49670echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49671whose name does not start with the host triplet. If you think this
49672configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49673ac_tool_warned=yes ;;
49674esac
49675 RANLIB=$ac_ct_RANLIB
49676 fi
a848cd7e
SC
49677else
49678 RANLIB="$ac_cv_prog_RANLIB"
49679fi
49680
49681 # Find a good install program. We prefer a C program (faster),
49682# so one script is as good as another. But avoid the broken or
49683# incompatible versions:
49684# SysV /etc/install, /usr/sbin/install
49685# SunOS /usr/etc/install
49686# IRIX /sbin/install
49687# AIX /bin/install
49688# AmigaOS /C/install, which installs bootblocks on floppy discs
49689# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49690# AFS /usr/afsws/bin/install, which mishandles nonexistent args
49691# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 49692# OS/2's system install, which has a completely different semantic
a848cd7e 49693# ./install, which can be erroneously created by make from ./install.sh.
47964710
VS
49694{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
49695echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
a848cd7e
SC
49696if test -z "$INSTALL"; then
49697if test "${ac_cv_path_install+set}" = set; then
49698 echo $ECHO_N "(cached) $ECHO_C" >&6
49699else
49700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49701for as_dir in $PATH
49702do
49703 IFS=$as_save_IFS
49704 test -z "$as_dir" && as_dir=.
49705 # Account for people who put trailing slashes in PATH elements.
49706case $as_dir/ in
49707 ./ | .// | /cC/* | \
49708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 49709 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
49710 /usr/ucb/* ) ;;
49711 *)
49712 # OSF1 and SCO ODT 3.0 have their own names for install.
49713 # Don't use installbsd from OSF since it installs stuff as root
49714 # by default.
49715 for ac_prog in ginstall scoinst install; do
49716 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 49717 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ac1cb8d3
VS
49718 if test $ac_prog = install &&
49719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49720 # AIX install. It has an incompatible calling convention.
49721 :
49722 elif test $ac_prog = install &&
49723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49724 # program-specific install script used by HP pwplus--don't use.
49725 :
49726 else
49727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
49728 break 3
49729 fi
49730 fi
a848cd7e
SC
49731 done
49732 done
49733 ;;
49734esac
49735done
47964710 49736IFS=$as_save_IFS
a848cd7e
SC
49737
49738
49739fi
49740 if test "${ac_cv_path_install+set}" = set; then
49741 INSTALL=$ac_cv_path_install
49742 else
47964710
VS
49743 # As a last resort, use the slow shell script. Don't cache a
49744 # value for INSTALL within a source directory, because that will
a848cd7e 49745 # break other packages using the cache if that directory is
47964710 49746 # removed, or if the value is a relative name.
a848cd7e
SC
49747 INSTALL=$ac_install_sh
49748 fi
49749fi
47964710
VS
49750{ echo "$as_me:$LINENO: result: $INSTALL" >&5
49751echo "${ECHO_T}$INSTALL" >&6; }
a848cd7e
SC
49752
49753# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
49754# It thinks the first close brace ends the variable substitution.
49755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
49756
49757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
49758
49759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
49760
47964710
VS
49761 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
49762echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
a848cd7e
SC
49763LN_S=$as_ln_s
49764if test "$LN_S" = "ln -s"; then
47964710
VS
49765 { echo "$as_me:$LINENO: result: yes" >&5
49766echo "${ECHO_T}yes" >&6; }
a848cd7e 49767else
47964710
VS
49768 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
49769echo "${ECHO_T}no, using $LN_S" >&6; }
a848cd7e
SC
49770fi
49771
49772
47964710
VS
49773 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49774echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49775set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49776if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
49777 echo $ECHO_N "(cached) $ECHO_C" >&6
49778else
49779 cat >conftest.make <<\_ACEOF
47964710 49780SHELL = /bin/sh
a848cd7e 49781all:
47964710 49782 @echo '@@@%%%=$(MAKE)=@@@%%%'
a848cd7e
SC
49783_ACEOF
49784# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47964710
VS
49785case `${MAKE-make} -f conftest.make 2>/dev/null` in
49786 *@@@%%%=?*=@@@%%%*)
49787 eval ac_cv_prog_make_${ac_make}_set=yes;;
49788 *)
49789 eval ac_cv_prog_make_${ac_make}_set=no;;
49790esac
a848cd7e
SC
49791rm -f conftest.make
49792fi
47964710
VS
49793if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49794 { echo "$as_me:$LINENO: result: yes" >&5
49795echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
49796 SET_MAKE=
49797else
47964710
VS
49798 { echo "$as_me:$LINENO: result: no" >&5
49799echo "${ECHO_T}no" >&6; }
a848cd7e
SC
49800 SET_MAKE="MAKE=${MAKE-make}"
49801fi
49802
49803
49804
a485900c 49805 if test "x$SUNCXX" = "xyes"; then
a48b6595
VZ
49806 AR=$CXX
49807 AROPTIONS="-xar -o"
49808
49809 elif test "x$SGICC" = "xyes"; then
49810 AR=$CXX
49811 AROPTIONS="-ar -o"
a485900c 49812
a485900c
VZ
49813 else
49814 if test -n "$ac_tool_prefix"; then
a848cd7e
SC
49815 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
49816set dummy ${ac_tool_prefix}ar; ac_word=$2
47964710
VS
49817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
49818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
49819if test "${ac_cv_prog_AR+set}" = set; then
49820 echo $ECHO_N "(cached) $ECHO_C" >&6
49821else
49822 if test -n "$AR"; then
49823 ac_cv_prog_AR="$AR" # Let the user override the test.
49824else
49825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49826for as_dir in $PATH
49827do
49828 IFS=$as_save_IFS
49829 test -z "$as_dir" && as_dir=.
49830 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 49831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
49832 ac_cv_prog_AR="${ac_tool_prefix}ar"
49833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49834 break 2
49835 fi
49836done
49837done
47964710 49838IFS=$as_save_IFS
a848cd7e
SC
49839
49840fi
49841fi
49842AR=$ac_cv_prog_AR
49843if test -n "$AR"; then
47964710
VS
49844 { echo "$as_me:$LINENO: result: $AR" >&5
49845echo "${ECHO_T}$AR" >&6; }
a848cd7e 49846else
47964710
VS
49847 { echo "$as_me:$LINENO: result: no" >&5
49848echo "${ECHO_T}no" >&6; }
a848cd7e
SC
49849fi
49850
47964710 49851
a848cd7e
SC
49852fi
49853if test -z "$ac_cv_prog_AR"; then
49854 ac_ct_AR=$AR
49855 # Extract the first word of "ar", so it can be a program name with args.
49856set dummy ar; ac_word=$2
47964710
VS
49857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
49858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
49859if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
49860 echo $ECHO_N "(cached) $ECHO_C" >&6
49861else
49862 if test -n "$ac_ct_AR"; then
49863 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
49864else
49865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49866for as_dir in $PATH
49867do
49868 IFS=$as_save_IFS
49869 test -z "$as_dir" && as_dir=.
49870 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 49871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
49872 ac_cv_prog_ac_ct_AR="ar"
49873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49874 break 2
49875 fi
49876done
49877done
47964710 49878IFS=$as_save_IFS
a848cd7e 49879
a848cd7e
SC
49880fi
49881fi
49882ac_ct_AR=$ac_cv_prog_ac_ct_AR
49883if test -n "$ac_ct_AR"; then
47964710
VS
49884 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
49885echo "${ECHO_T}$ac_ct_AR" >&6; }
a848cd7e 49886else
47964710
VS
49887 { echo "$as_me:$LINENO: result: no" >&5
49888echo "${ECHO_T}no" >&6; }
a848cd7e
SC
49889fi
49890
47964710
VS
49891 if test "x$ac_ct_AR" = x; then
49892 AR="ar"
49893 else
49894 case $cross_compiling:$ac_tool_warned in
49895yes:)
49896{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49897whose name does not start with the host triplet. If you think this
49898configuration is useful to you, please write to autoconf@gnu.org." >&5
49899echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49900whose name does not start with the host triplet. If you think this
49901configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49902ac_tool_warned=yes ;;
49903esac
49904 AR=$ac_ct_AR
49905 fi
a848cd7e
SC
49906else
49907 AR="$ac_cv_prog_AR"
49908fi
49909
a485900c
VZ
49910 AROPTIONS=rcu
49911 fi
49912
49913
a848cd7e
SC
49914 if test -n "$ac_tool_prefix"; then
49915 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
49916set dummy ${ac_tool_prefix}strip; ac_word=$2
47964710
VS
49917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
49918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
49919if test "${ac_cv_prog_STRIP+set}" = set; then
49920 echo $ECHO_N "(cached) $ECHO_C" >&6
49921else
49922 if test -n "$STRIP"; then
49923 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
49924else
49925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49926for as_dir in $PATH
49927do
49928 IFS=$as_save_IFS
49929 test -z "$as_dir" && as_dir=.
49930 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 49931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
49932 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
49933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49934 break 2
49935 fi
49936done
49937done
47964710 49938IFS=$as_save_IFS
a848cd7e
SC
49939
49940fi
49941fi
49942STRIP=$ac_cv_prog_STRIP
49943if test -n "$STRIP"; then
47964710
VS
49944 { echo "$as_me:$LINENO: result: $STRIP" >&5
49945echo "${ECHO_T}$STRIP" >&6; }
a848cd7e 49946else
47964710
VS
49947 { echo "$as_me:$LINENO: result: no" >&5
49948echo "${ECHO_T}no" >&6; }
a848cd7e
SC
49949fi
49950
47964710 49951
a848cd7e
SC
49952fi
49953if test -z "$ac_cv_prog_STRIP"; then
49954 ac_ct_STRIP=$STRIP
49955 # Extract the first word of "strip", so it can be a program name with args.
49956set dummy strip; ac_word=$2
47964710
VS
49957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
49958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
49959if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
49960 echo $ECHO_N "(cached) $ECHO_C" >&6
49961else
49962 if test -n "$ac_ct_STRIP"; then
49963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
49964else
49965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49966for as_dir in $PATH
49967do
49968 IFS=$as_save_IFS
49969 test -z "$as_dir" && as_dir=.
49970 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 49971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
49972 ac_cv_prog_ac_ct_STRIP="strip"
49973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49974 break 2
49975 fi
49976done
49977done
47964710 49978IFS=$as_save_IFS
a848cd7e 49979
a848cd7e
SC
49980fi
49981fi
49982ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
49983if test -n "$ac_ct_STRIP"; then
47964710
VS
49984 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
49985echo "${ECHO_T}$ac_ct_STRIP" >&6; }
a848cd7e 49986else
47964710
VS
49987 { echo "$as_me:$LINENO: result: no" >&5
49988echo "${ECHO_T}no" >&6; }
a848cd7e
SC
49989fi
49990
47964710
VS
49991 if test "x$ac_ct_STRIP" = x; then
49992 STRIP=":"
49993 else
49994 case $cross_compiling:$ac_tool_warned in
49995yes:)
49996{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49997whose name does not start with the host triplet. If you think this
49998configuration is useful to you, please write to autoconf@gnu.org." >&5
49999echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50000whose name does not start with the host triplet. If you think this
50001configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50002ac_tool_warned=yes ;;
50003esac
50004 STRIP=$ac_ct_STRIP
50005 fi
a848cd7e
SC
50006else
50007 STRIP="$ac_cv_prog_STRIP"
50008fi
50009
50010 if test -n "$ac_tool_prefix"; then
50011 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
50012set dummy ${ac_tool_prefix}nm; ac_word=$2
47964710
VS
50013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
50014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
50015if test "${ac_cv_prog_NM+set}" = set; then
50016 echo $ECHO_N "(cached) $ECHO_C" >&6
50017else
50018 if test -n "$NM"; then
50019 ac_cv_prog_NM="$NM" # Let the user override the test.
50020else
50021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50022for as_dir in $PATH
50023do
50024 IFS=$as_save_IFS
50025 test -z "$as_dir" && as_dir=.
50026 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 50027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
50028 ac_cv_prog_NM="${ac_tool_prefix}nm"
50029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50030 break 2
50031 fi
50032done
50033done
47964710 50034IFS=$as_save_IFS
a848cd7e
SC
50035
50036fi
50037fi
50038NM=$ac_cv_prog_NM
50039if test -n "$NM"; then
47964710
VS
50040 { echo "$as_me:$LINENO: result: $NM" >&5
50041echo "${ECHO_T}$NM" >&6; }
a848cd7e 50042else
47964710
VS
50043 { echo "$as_me:$LINENO: result: no" >&5
50044echo "${ECHO_T}no" >&6; }
a848cd7e
SC
50045fi
50046
47964710 50047
a848cd7e
SC
50048fi
50049if test -z "$ac_cv_prog_NM"; then
50050 ac_ct_NM=$NM
50051 # Extract the first word of "nm", so it can be a program name with args.
50052set dummy nm; ac_word=$2
47964710
VS
50053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
50054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
50055if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
50056 echo $ECHO_N "(cached) $ECHO_C" >&6
50057else
50058 if test -n "$ac_ct_NM"; then
50059 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
50060else
50061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50062for as_dir in $PATH
50063do
50064 IFS=$as_save_IFS
50065 test -z "$as_dir" && as_dir=.
50066 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 50067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
50068 ac_cv_prog_ac_ct_NM="nm"
50069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50070 break 2
50071 fi
50072done
50073done
47964710 50074IFS=$as_save_IFS
a848cd7e 50075
a848cd7e
SC
50076fi
50077fi
50078ac_ct_NM=$ac_cv_prog_ac_ct_NM
50079if test -n "$ac_ct_NM"; then
47964710
VS
50080 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
50081echo "${ECHO_T}$ac_ct_NM" >&6; }
a848cd7e 50082else
47964710
VS
50083 { echo "$as_me:$LINENO: result: no" >&5
50084echo "${ECHO_T}no" >&6; }
a848cd7e
SC
50085fi
50086
47964710
VS
50087 if test "x$ac_ct_NM" = x; then
50088 NM=":"
50089 else
50090 case $cross_compiling:$ac_tool_warned in
50091yes:)
50092{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50093whose name does not start with the host triplet. If you think this
50094configuration is useful to you, please write to autoconf@gnu.org." >&5
50095echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50096whose name does not start with the host triplet. If you think this
50097configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50098ac_tool_warned=yes ;;
50099esac
50100 NM=$ac_ct_NM
50101 fi
a848cd7e
SC
50102else
50103 NM="$ac_cv_prog_NM"
50104fi
50105
50106
50107 case ${BAKEFILE_HOST} in
50108 *-hp-hpux* )
1e9e8aba 50109 INSTALL_DIR="mkdir -p"
a848cd7e 50110 ;;
a485900c
VZ
50111 * )
50112 INSTALL_DIR='$(INSTALL) -d'
a848cd7e
SC
50113 ;;
50114 esac
50115
50116
50117 LDFLAGS_GUI=
50118 case ${BAKEFILE_HOST} in
50119 *-*-cygwin* | *-*-mingw32* )
50120 LDFLAGS_GUI="-mwindows"
50121 esac
50122
50123
50124 fi
50125
47964710
VS
50126 { echo "$as_me:$LINENO: checking if make is GNU make" >&5
50127echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
a848cd7e
SC
50128if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
50129 echo $ECHO_N "(cached) $ECHO_C" >&6
50130else
50131
50132 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
50133 egrep -s GNU > /dev/null); then
50134 bakefile_cv_prog_makeisgnu="yes"
50135 else
50136 bakefile_cv_prog_makeisgnu="no"
50137 fi
50138
50139fi
47964710
VS
50140{ echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50141echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
a848cd7e
SC
50142
50143 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50144 IF_GNU_MAKE=""
50145 else
50146 IF_GNU_MAKE="#"
50147 fi
50148
50149
50150
50151 PLATFORM_UNIX=0
50152 PLATFORM_WIN32=0
50153 PLATFORM_MSDOS=0
50154 PLATFORM_MAC=0
1e9e8aba 50155 PLATFORM_MACOS=0
a848cd7e
SC
50156 PLATFORM_MACOSX=0
50157 PLATFORM_OS2=0
1e9e8aba 50158 PLATFORM_BEOS=0
a848cd7e
SC
50159
50160 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50161 case "${BAKEFILE_HOST}" in
810b94f0 50162 *-*-mingw32* )
a848cd7e
SC
50163 PLATFORM_WIN32=1
50164 ;;
50165 *-pc-msdosdjgpp )
50166 PLATFORM_MSDOS=1
50167 ;;
50168 *-pc-os2_emx | *-pc-os2-emx )
50169 PLATFORM_OS2=1
50170 ;;
47bd5406 50171 *-*-darwin* )
a848cd7e
SC
50172 PLATFORM_MAC=1
50173 PLATFORM_MACOSX=1
50174 ;;
1e9e8aba
DE
50175 *-*-beos* )
50176 PLATFORM_BEOS=1
50177 ;;
50178 powerpc-apple-macos* )
50179 PLATFORM_MAC=1
50180 PLATFORM_MACOS=1
50181 ;;
a848cd7e
SC
50182 * )
50183 PLATFORM_UNIX=1
50184 ;;
50185 esac
50186 else
50187 case "$BAKEFILE_FORCE_PLATFORM" in
50188 win32 )
50189 PLATFORM_WIN32=1
50190 ;;
50191 msdos )
50192 PLATFORM_MSDOS=1
50193 ;;
50194 os2 )
50195 PLATFORM_OS2=1
50196 ;;
50197 darwin )
50198 PLATFORM_MAC=1
50199 PLATFORM_MACOSX=1
50200 ;;
50201 unix )
50202 PLATFORM_UNIX=1
50203 ;;
1e9e8aba
DE
50204 beos )
50205 PLATFORM_BEOS=1
50206 ;;
a848cd7e 50207 * )
43a7c679 50208 ;;
a848cd7e
SC
50209 esac
50210 fi
50211
50212
50213
50214
50215
50216
50217
50218
50219
1e9e8aba
DE
50220
50221
47964710 50222 # Check whether --enable-omf was given.
a848cd7e 50223if test "${enable_omf+set}" = set; then
47964710
VS
50224 enableval=$enable_omf; bk_os2_use_omf="$enableval"
50225fi
50226
a848cd7e
SC
50227
50228 case "${BAKEFILE_HOST}" in
50229 *-*-darwin* )
47bd5406
VZ
50230 if test "x$GCC" = "xyes"; then
50231 CFLAGS="$CFLAGS -fno-common"
50232 CXXFLAGS="$CXXFLAGS -fno-common"
50233 fi
50234 if test "x$XLCC" = "xyes"; then
50235 CFLAGS="$CFLAGS -qnocommon"
50236 CXXFLAGS="$CXXFLAGS -qnocommon"
50237 fi
a848cd7e
SC
50238 ;;
50239
50240 *-pc-os2_emx | *-pc-os2-emx )
50241 if test "x$bk_os2_use_omf" = "xyes" ; then
50242 AR=emxomfar
50243 RANLIB=:
50244 LDFLAGS="-Zomf $LDFLAGS"
50245 CFLAGS="-Zomf $CFLAGS"
50246 CXXFLAGS="-Zomf $CXXFLAGS"
50247 OS2_LIBEXT="lib"
50248 else
50249 OS2_LIBEXT="a"
50250 fi
50251 ;;
1e9e8aba
DE
50252
50253 i*86-*-beos* )
50254 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50255 ;;
a848cd7e
SC
50256 esac
50257
50258
50259 SO_SUFFIX="so"
50260 SO_SUFFIX_MODULE="so"
50261 EXEEXT=""
50262 LIBPREFIX="lib"
50263 LIBEXT=".a"
50264 DLLPREFIX="lib"
50265 DLLPREFIX_MODULE=""
50266 DLLIMP_SUFFIX=""
810b94f0 50267 dlldir="$libdir"
a848cd7e
SC
50268
50269 case "${BAKEFILE_HOST}" in
50270 *-hp-hpux* )
50271 SO_SUFFIX="sl"
50272 SO_SUFFIX_MODULE="sl"
50273 ;;
50274 *-*-aix* )
50275 SO_SUFFIX="a"
50276 SO_SUFFIX_MODULE="a"
50277 ;;
810b94f0
MW
50278 *-*-cygwin* )
50279 SO_SUFFIX="dll"
50280 SO_SUFFIX_MODULE="dll"
50281 DLLIMP_SUFFIX="dll.a"
50282 EXEEXT=".exe"
50283 DLLPREFIX="cyg"
50284 dlldir="$bindir"
50285 ;;
50286 *-*-mingw32* )
a848cd7e
SC
50287 SO_SUFFIX="dll"
50288 SO_SUFFIX_MODULE="dll"
50289 DLLIMP_SUFFIX="dll.a"
50290 EXEEXT=".exe"
50291 DLLPREFIX=""
810b94f0 50292 dlldir="$bindir"
a848cd7e
SC
50293 ;;
50294 *-pc-msdosdjgpp )
50295 EXEEXT=".exe"
50296 DLLPREFIX=""
810b94f0 50297 dlldir="$bindir"
a848cd7e
SC
50298 ;;
50299 *-pc-os2_emx | *-pc-os2-emx )
50300 SO_SUFFIX="dll"
50301 SO_SUFFIX_MODULE="dll"
50302 DLLIMP_SUFFIX=$OS2_LIBEXT
50303 EXEEXT=".exe"
50304 DLLPREFIX=""
50305 LIBPREFIX=""
50306 LIBEXT=".$OS2_LIBEXT"
810b94f0 50307 dlldir="$bindir"
a848cd7e 50308 ;;
47bd5406 50309 *-*-darwin* )
a848cd7e
SC
50310 SO_SUFFIX="dylib"
50311 SO_SUFFIX_MODULE="bundle"
50312 ;;
50313 esac
50314
50315 if test "x$DLLIMP_SUFFIX" = "x" ; then
50316 DLLIMP_SUFFIX="$SO_SUFFIX"
50317 fi
50318
50319
50320
50321
50322
50323
50324
50325
50326
50327
50328
810b94f0 50329
1e9e8aba
DE
50330 PIC_FLAG=""
50331 if test "x$GCC" = "xyes"; then
a848cd7e
SC
50332 PIC_FLAG="-fPIC"
50333 fi
50334
1e9e8aba
DE
50335 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50336 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 50337 WINDOWS_IMPLIB=0
1e9e8aba 50338
a848cd7e
SC
50339 case "${BAKEFILE_HOST}" in
50340 *-hp-hpux* )
1e9e8aba 50341 if test "x$GCC" != "xyes"; then
a848cd7e
SC
50342 LDFLAGS="$LDFLAGS -L/usr/lib"
50343
50344 SHARED_LD_CC="${CC} -b -o"
50345 SHARED_LD_CXX="${CXX} -b -o"
50346 PIC_FLAG="+Z"
50347 fi
50348 ;;
50349
50350 *-*-linux* )
43a7c679
VZ
50351 if test "$INTELCC" = "yes"; then
50352 PIC_FLAG="-KPIC"
50353 elif test "x$SUNCXX" = "xyes"; then
50354 SHARED_LD_CC="${CC} -G -o"
50355 SHARED_LD_CXX="${CXX} -G -o"
50356 PIC_FLAG="-KPIC"
a848cd7e
SC
50357 fi
50358 ;;
50359
50360 *-*-solaris2* )
43a7c679 50361 if test "x$SUNCXX" = xyes ; then
a848cd7e
SC
50362 SHARED_LD_CC="${CC} -G -o"
50363 SHARED_LD_CXX="${CXX} -G -o"
50364 PIC_FLAG="-KPIC"
50365 fi
50366 ;;
50367
50368 *-*-darwin* )
50369
473276a9
VS
50370D='$'
50371cat <<EOF >shared-ld-sh
a848cd7e
SC
50372#!/bin/sh
50373#-----------------------------------------------------------------------------
50374#-- Name: distrib/mac/shared-ld-sh
50375#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
50376#-- Author: Gilles Depeyrot
50377#-- Copyright: (c) 2002 Gilles Depeyrot
50378#-- Licence: any use permitted
50379#-----------------------------------------------------------------------------
50380
50381verbose=0
50382args=""
50383objects=""
50384linking_flag="-dynamiclib"
810b94f0 50385ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 50386
473276a9
VS
50387while test ${D}# -gt 0; do
50388 case ${D}1 in
a848cd7e
SC
50389
50390 -v)
50391 verbose=1
50392 ;;
50393
50394 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50395 # collect these options and values
473276a9 50396 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
50397 shift
50398 ;;
50399
810b94f0
MW
50400 -s|-Wl,*)
50401 # collect these load args
50402 ldargs="${D}{ldargs} ${D}1"
2113bc77 50403 ;;
810b94f0
MW
50404
50405 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 50406 # collect these options
473276a9 50407 args="${D}{args} ${D}1"
a848cd7e
SC
50408 ;;
50409
50410 -dynamiclib|-bundle)
473276a9 50411 linking_flag="${D}1"
a848cd7e
SC
50412 ;;
50413
50414 -*)
473276a9 50415 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
50416 exit 1
50417 ;;
50418
50419 *.o | *.a | *.dylib)
50420 # collect object files
473276a9 50421 objects="${D}{objects} ${D}1"
a848cd7e
SC
50422 ;;
50423
50424 *)
473276a9 50425 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
50426 exit 1
50427 ;;
50428
50429 esac
50430 shift
50431done
50432
810b94f0
MW
50433status=0
50434
a848cd7e
SC
50435#
50436# Link one module containing all the others
50437#
473276a9 50438if test ${D}{verbose} = 1; then
810b94f0 50439 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 50440fi
810b94f0 50441c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 50442status=${D}?
a848cd7e
SC
50443
50444#
810b94f0
MW
50445# Link the shared library from the single module created, but only if the
50446# previous command didn't fail:
a848cd7e 50447#
810b94f0
MW
50448if test ${D}{status} = 0; then
50449 if test ${D}{verbose} = 1; then
50450 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50451 fi
50452 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50453 status=${D}?
a848cd7e
SC
50454fi
50455
50456#
50457# Remove intermediate module
50458#
473276a9 50459rm -f master.${D}${D}.o
a848cd7e 50460
810b94f0 50461exit ${D}status
a848cd7e 50462EOF
473276a9 50463
583d6b4b
VZ
50464 chmod +x shared-ld-sh
50465
50466 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50467 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
50468
50469
47964710
VS
50470 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50471echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
583d6b4b
VZ
50472if test "${bakefile_cv_gcc31+set}" = set; then
50473 echo $ECHO_N "(cached) $ECHO_C" >&6
50474else
50475
50476 cat >conftest.$ac_ext <<_ACEOF
50477/* confdefs.h. */
50478_ACEOF
50479cat confdefs.h >>conftest.$ac_ext
50480cat >>conftest.$ac_ext <<_ACEOF
50481/* end confdefs.h. */
50482
50483int
50484main ()
50485{
50486
50487 #if (__GNUC__ < 3) || \
50488 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 50489 This is old gcc
583d6b4b 50490 #endif
a848cd7e 50491
583d6b4b
VZ
50492 ;
50493 return 0;
50494}
50495_ACEOF
50496rm -f conftest.$ac_objext
47964710
VS
50497if { (ac_try="$ac_compile"
50498case "(($ac_try" in
50499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50500 *) ac_try_echo=$ac_try;;
50501esac
50502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50503 (eval "$ac_compile") 2>conftest.er1
583d6b4b
VZ
50504 ac_status=$?
50505 grep -v '^ *+' conftest.er1 >conftest.err
50506 rm -f conftest.er1
50507 cat conftest.err >&5
50508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
50509 (exit $ac_status); } && {
50510 test -z "$ac_c_werror_flag" ||
50511 test ! -s conftest.err
50512 } && test -s conftest.$ac_objext; then
583d6b4b
VZ
50513
50514 bakefile_cv_gcc31=yes
50515
50516else
50517 echo "$as_me: failed program was:" >&5
50518sed 's/^/| /' conftest.$ac_ext >&5
50519
50520
50521 bakefile_cv_gcc31=no
50522
50523
50524fi
47964710
VS
50525
50526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
583d6b4b
VZ
50527
50528fi
47964710
VS
50529{ echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50530echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
583d6b4b 50531 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 50532 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 50533 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
50534 else
50535 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 50536 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
50537 fi
50538
47bd5406
VZ
50539 if test "x$GCC" == "xyes"; then
50540 PIC_FLAG="-dynamic -fPIC"
50541 fi
50542 if test "x$XLCC" = "xyes"; then
50543 PIC_FLAG="-dynamic -DPIC"
50544 fi
a848cd7e
SC
50545 ;;
50546
50547 *-*-aix* )
f6b50c59 50548 if test "x$GCC" = "xyes"; then
583d6b4b 50549 PIC_FLAG=""
f6b50c59 50550
583d6b4b
VZ
50551 case "${BAKEFILE_HOST}" in
50552 *-*-aix5* )
50553 LD_EXPFULL="-Wl,-bexpfull"
50554 ;;
50555 esac
f6b50c59 50556
583d6b4b
VZ
50557 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50558 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50559 else
50560 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e 50561set dummy makeC++SharedLib; ac_word=$2
47964710
VS
50562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
50563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
50564if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50565 echo $ECHO_N "(cached) $ECHO_C" >&6
50566else
50567 if test -n "$AIX_CXX_LD"; then
50568 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50569else
50570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50571for as_dir in $PATH
50572do
50573 IFS=$as_save_IFS
50574 test -z "$as_dir" && as_dir=.
50575 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 50576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
50577 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50579 break 2
50580 fi
50581done
50582done
47964710 50583IFS=$as_save_IFS
a848cd7e
SC
50584
50585 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50586fi
50587fi
50588AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50589if test -n "$AIX_CXX_LD"; then
47964710
VS
50590 { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50591echo "${ECHO_T}$AIX_CXX_LD" >&6; }
a848cd7e 50592else
47964710
VS
50593 { echo "$as_me:$LINENO: result: no" >&5
50594echo "${ECHO_T}no" >&6; }
a848cd7e
SC
50595fi
50596
47964710 50597
f6b50c59 50598 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
50599 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50600 fi
50601 ;;
50602
50603 *-*-beos* )
1e9e8aba
DE
50604 SHARED_LD_CC="${LD} -nostart -o"
50605 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
50606 ;;
50607
50608 *-*-irix* )
50609 if test "x$GCC" != "xyes"; then
50610 PIC_FLAG="-KPIC"
50611 fi
50612 ;;
50613
50614 *-*-cygwin* | *-*-mingw32* )
50615 PIC_FLAG=""
1e9e8aba
DE
50616 SHARED_LD_CC="\$(CC) -shared -o"
50617 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 50618 WINDOWS_IMPLIB=1
a848cd7e
SC
50619 ;;
50620
50621 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
50622 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50623 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 50624 PIC_FLAG=""
473276a9
VS
50625
50626D='$'
50627cat <<EOF >dllar.sh
50628#!/bin/sh
50629#
50630# dllar - a tool to build both a .dll and an .a file
50631# from a set of object (.o) files for EMX/OS2.
50632#
50633# Written by Andrew Zabolotny, bit@freya.etu.ru
50634# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50635#
50636# This script will accept a set of files on the command line.
50637# All the public symbols from the .o files will be exported into
50638# a .DEF file, then linker will be run (through gcc) against them to
50639# build a shared library consisting of all given .o files. All libraries
50640# (.a) will be first decompressed into component .o files then act as
50641# described above. You can optionally give a description (-d "description")
50642# which will be put into .DLL. To see the list of accepted options (as well
50643# as command-line format) simply run this program without options. The .DLL
50644# is built to be imported by name (there is no guarantee that new versions
50645# of the library you build will have same ordinals for same symbols).
50646#
50647# dllar is free software; you can redistribute it and/or modify
50648# it under the terms of the GNU General Public License as published by
50649# the Free Software Foundation; either version 2, or (at your option)
50650# any later version.
50651#
50652# dllar is distributed in the hope that it will be useful,
50653# but WITHOUT ANY WARRANTY; without even the implied warranty of
50654# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
50655# GNU General Public License for more details.
50656#
50657# You should have received a copy of the GNU General Public License
50658# along with dllar; see the file COPYING. If not, write to the Free
50659# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
50660# 02111-1307, USA.
50661
50662# To successfuly run this program you will need:
50663# - Current drive should have LFN support (HPFS, ext2, network, etc)
50664# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
50665# - gcc
50666# (used to build the .dll)
50667# - emxexp
50668# (used to create .def file from .o files)
50669# - emximp
50670# (used to create .a file from .def file)
50671# - GNU text utilites (cat, sort, uniq)
50672# used to process emxexp output
50673# - GNU file utilities (mv, rm)
50674# - GNU sed
50675# - lxlite (optional, see flag below)
50676# (used for general .dll cleanup)
50677#
50678
50679flag_USE_LXLITE=1;
50680
50681#
50682# helper functions
50683# basnam, variant of basename, which does _not_ remove the path, _iff_
50684# second argument (suffix to remove) is given
50685basnam(){
50686 case ${D}# in
50687 1)
1e9e8aba 50688 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
50689 ;;
50690 2)
50691 echo ${D}1 | sed 's/'${D}2'${D}//'
50692 ;;
50693 *)
50694 echo "error in basnam ${D}*"
50695 exit 8
50696 ;;
50697 esac
50698}
50699
50700# Cleanup temporary files and output
50701CleanUp() {
50702 cd ${D}curDir
50703 for i in ${D}inputFiles ; do
50704 case ${D}i in
50705 *!)
50706 rm -rf \`basnam ${D}i !\`
50707 ;;
50708 *)
50709 ;;
50710 esac
50711 done
50712
50713 # Kill result in case of failure as there is just to many stupid make/nmake
50714 # things out there which doesn't do this.
1e9e8aba 50715 if [ ${D}# -eq 0 ]; then
473276a9
VS
50716 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
50717 fi
50718}
50719
50720# Print usage and exit script with rc=1.
50721PrintHelp() {
b1d22ded
DE
50722 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
50723 echo ' [-name-mangler-script script.sh]'
50724 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
50725 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
50726 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 50727 echo ' [*.o] [*.a]'
473276a9
VS
50728 echo '*> "output_file" should have no extension.'
50729 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
50730 echo ' The import library name is derived from this and is set to "name".a,'
50731 echo ' unless overridden by -import'
50732 echo '*> "importlib_name" should have no extension.'
50733 echo ' If it has the .o, or .a extension, it is automatically removed.'
50734 echo ' This name is used as the import library name and may be longer and'
50735 echo ' more descriptive than the DLL name which has to follow the old '
50736 echo ' 8.3 convention of FAT.'
b1d22ded
DE
50737 echo '*> "script.sh may be given to override the output_file name by a'
50738 echo ' different name. It is mainly useful if the regular make process'
50739 echo ' of some package does not take into account OS/2 restriction of'
50740 echo ' DLL name lengths. It takes the importlib name as input and is'
50741 echo ' supposed to procude a shorter name as output. The script should'
50742 echo ' expect to get importlib_name without extension and should produce'
50743 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
50744 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
50745 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
50746 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
50747 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
50748 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
50749 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
50750 echo ' If the last character of a symbol is "*", all symbols beginning'
50751 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 50752 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 50753 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 50754 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 50755 echo ' C runtime DLLs.'
b1d22ded 50756 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
50757 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
50758 echo ' unchanged to GCC at the end of command line.'
50759 echo '*> If you create a DLL from a library and you do not specify -o,'
50760 echo ' the basename for DLL and import library will be set to library name,'
50761 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
50762 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
50763 echo ' library will be renamed into gcc_s.a.'
50764 echo '--------'
50765 echo 'Example:'
50766 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
50767 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
50768 CleanUp
50769 exit 1
50770}
50771
50772# Execute a command.
50773# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
50774# @Uses Whatever CleanUp() uses.
50775doCommand() {
50776 echo "${D}*"
50777 eval ${D}*
50778 rcCmd=${D}?
50779
1e9e8aba 50780 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
50781 echo "command failed, exit code="${D}rcCmd
50782 CleanUp
50783 exit ${D}rcCmd
50784 fi
50785}
50786
50787# main routine
50788# setup globals
50789cmdLine=${D}*
50790outFile=""
50791outimpFile=""
50792inputFiles=""
b1d22ded 50793renameScript=""
473276a9
VS
50794description=""
50795CC=gcc.exe
50796CFLAGS="-s -Zcrtdll"
50797EXTRA_CFLAGS=""
50798EXPORT_BY_ORDINALS=0
50799exclude_symbols=""
50800library_flags=""
50801curDir=\`pwd\`
50802curDirS=curDir
50803case ${D}curDirS in
50804*/)
50805 ;;
50806*)
50807 curDirS=${D}{curDirS}"/"
50808 ;;
50809esac
50810# Parse commandline
50811libsToLink=0
b1d22ded 50812omfLinking=0
1e9e8aba 50813while [ ${D}1 ]; do
473276a9
VS
50814 case ${D}1 in
50815 -ord*)
50816 EXPORT_BY_ORDINALS=1;
50817 ;;
50818 -o*)
50819 shift
50820 outFile=${D}1
50821 ;;
50822 -i*)
50823 shift
50824 outimpFile=${D}1
50825 ;;
b1d22ded
DE
50826 -name-mangler-script)
50827 shift
50828 renameScript=${D}1
50829 ;;
473276a9
VS
50830 -d*)
50831 shift
50832 description=${D}1
50833 ;;
50834 -f*)
50835 shift
50836 CFLAGS=${D}1
50837 ;;
50838 -c*)
50839 shift
50840 CC=${D}1
50841 ;;
50842 -h*)
50843 PrintHelp
50844 ;;
50845 -ex*)
50846 shift
50847 exclude_symbols=${D}{exclude_symbols}${D}1" "
50848 ;;
50849 -libf*)
50850 shift
50851 library_flags=${D}{library_flags}${D}1" "
50852 ;;
50853 -nocrt*)
50854 CFLAGS="-s"
50855 ;;
50856 -nolxl*)
50857 flag_USE_LXLITE=0
50858 ;;
50859 -* | /*)
50860 case ${D}1 in
50861 -L* | -l*)
50862 libsToLink=1
50863 ;;
b1d22ded
DE
50864 -Zomf)
50865 omfLinking=1
50866 ;;
473276a9
VS
50867 *)
50868 ;;
50869 esac
50870 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50871 ;;
b1d22ded
DE
50872 *.dll)
50873 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
50874 if [ ${D}omfLinking -eq 1 ]; then
50875 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
50876 else
50877 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
50878 fi
50879 ;;
473276a9
VS
50880 *)
50881 found=0;
1e9e8aba 50882 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
50883 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50884 else
50885 for file in ${D}1 ; do
1e9e8aba 50886 if [ -f ${D}file ]; then
473276a9
VS
50887 inputFiles="${D}{inputFiles} ${D}file"
50888 found=1
50889 fi
50890 done
1e9e8aba 50891 if [ ${D}found -eq 0 ]; then
473276a9
VS
50892 echo "ERROR: No file(s) found: "${D}1
50893 exit 8
50894 fi
50895 fi
50896 ;;
50897 esac
50898 shift
50899done # iterate cmdline words
50900
50901#
1e9e8aba 50902if [ -z "${D}inputFiles" ]; then
473276a9
VS
50903 echo "dllar: no input files"
50904 PrintHelp
50905fi
50906
50907# Now extract all .o files from .a files
50908newInputFiles=""
50909for file in ${D}inputFiles ; do
50910 case ${D}file in
50911 *.a | *.lib)
50912 case ${D}file in
50913 *.a)
50914 suffix=".a"
50915 AR="ar"
50916 ;;
50917 *.lib)
50918 suffix=".lib"
50919 AR="emxomfar"
50920 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
50921 ;;
50922 *)
50923 ;;
50924 esac
50925 dirname=\`basnam ${D}file ${D}suffix\`"_%"
50926 mkdir ${D}dirname
1e9e8aba 50927 if [ ${D}? -ne 0 ]; then
473276a9
VS
50928 echo "Failed to create subdirectory ./${D}dirname"
50929 CleanUp
50930 exit 8;
50931 fi
50932 # Append '!' to indicate archive
50933 newInputFiles="${D}newInputFiles ${D}{dirname}!"
50934 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
50935 cd ${D}curDir
50936 found=0;
50937 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 50938 if [ -f ${D}subfile ]; then
473276a9 50939 found=1
1e9e8aba 50940 if [ -s ${D}subfile ]; then
473276a9
VS
50941 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
50942 newInputFiles="${D}newInputFiles ${D}subfile"
50943 fi
50944 fi
50945 done
1e9e8aba
DE
50946 if [ ${D}found -eq 0 ]; then
50947 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
50948 fi
50949 ;;
50950 *)
50951 newInputFiles="${D}{newInputFiles} ${D}file"
50952 ;;
50953 esac
50954done
50955inputFiles="${D}newInputFiles"
50956
50957# Output filename(s).
50958do_backup=0;
1e9e8aba 50959if [ -z ${D}outFile ]; then
473276a9
VS
50960 do_backup=1;
50961 set outFile ${D}inputFiles; outFile=${D}2
50962fi
50963
50964# If it is an archive, remove the '!' and the '_%' suffixes
50965case ${D}outFile in
50966*_%!)
50967 outFile=\`basnam ${D}outFile _%!\`
50968 ;;
50969*)
50970 ;;
50971esac
50972case ${D}outFile in
50973*.dll)
50974 outFile=\`basnam ${D}outFile .dll\`
50975 ;;
50976*.DLL)
50977 outFile=\`basnam ${D}outFile .DLL\`
50978 ;;
50979*.o)
50980 outFile=\`basnam ${D}outFile .o\`
50981 ;;
50982*.obj)
50983 outFile=\`basnam ${D}outFile .obj\`
50984 ;;
50985*.a)
50986 outFile=\`basnam ${D}outFile .a\`
50987 ;;
50988*.lib)
50989 outFile=\`basnam ${D}outFile .lib\`
50990 ;;
50991*)
50992 ;;
50993esac
50994case ${D}outimpFile in
50995*.a)
50996 outimpFile=\`basnam ${D}outimpFile .a\`
50997 ;;
50998*.lib)
50999 outimpFile=\`basnam ${D}outimpFile .lib\`
51000 ;;
51001*)
51002 ;;
51003esac
1e9e8aba 51004if [ -z ${D}outimpFile ]; then
473276a9
VS
51005 outimpFile=${D}outFile
51006fi
51007defFile="${D}{outFile}.def"
51008arcFile="${D}{outimpFile}.a"
51009arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
51010
51011#create ${D}dllFile as something matching 8.3 restrictions,
51012if [ -z ${D}renameScript ] ; then
51013 dllFile="${D}outFile"
51014else
51015 dllFile=\`${D}renameScript ${D}outimpFile\`
51016fi
473276a9 51017
1e9e8aba
DE
51018if [ ${D}do_backup -ne 0 ] ; then
51019 if [ -f ${D}arcFile ] ; then
473276a9
VS
51020 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
51021 fi
1e9e8aba 51022 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
51023 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
51024 fi
51025fi
51026
51027# Extract public symbols from all the object files.
51028tmpdefFile=${D}{defFile}_%
51029rm -f ${D}tmpdefFile
51030for file in ${D}inputFiles ; do
51031 case ${D}file in
51032 *!)
51033 ;;
51034 *)
51035 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
51036 ;;
51037 esac
51038done
51039
51040# Create the def file.
51041rm -f ${D}defFile
51042echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
51043dllFile="${D}{dllFile}.dll"
51044if [ ! -z ${D}description ]; then
1e9e8aba 51045 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
51046fi
51047echo "EXPORTS" >> ${D}defFile
51048
51049doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
51050grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
51051
51052# Checks if the export is ok or not.
51053for word in ${D}exclude_symbols; do
51054 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
51055 mv ${D}{tmpdefFile}% ${D}tmpdefFile
51056done
51057
51058
1e9e8aba
DE
51059if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51060 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
51061 sed '
51062 N
51063 : loop
1e9e8aba 51064 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
51065 t loop
51066 ' > ${D}{tmpdefFile}%
51067 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
51068else
51069 rm -f ${D}{tmpdefFile}%
51070fi
51071cat ${D}tmpdefFile >> ${D}defFile
51072rm -f ${D}tmpdefFile
51073
51074# Do linking, create implib, and apply lxlite.
51075gccCmdl="";
51076for file in ${D}inputFiles ; do
51077 case ${D}file in
51078 *!)
51079 ;;
51080 *)
51081 gccCmdl="${D}gccCmdl ${D}file"
51082 ;;
51083 esac
51084done
51085doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
51086touch "${D}{outFile}.dll"
51087
51088doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 51089if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 51090 add_flags="";
1e9e8aba 51091 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
51092 add_flags="-ynd"
51093 fi
51094 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
51095fi
51096doCommand "emxomf -s -l ${D}arcFile"
51097
51098# Successful exit.
51099CleanUp 1
51100exit 0
51101EOF
51102
51103 chmod +x dllar.sh
a848cd7e
SC
51104 ;;
51105
1e9e8aba 51106 powerpc-apple-macos* | \
0ad5d837 51107 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a485900c 51108 *-*-mirbsd* | \
a848cd7e
SC
51109 *-*-sunos4* | \
51110 *-*-osf* | \
51111 *-*-dgux5* | \
47a7e797
MW
51112 *-*-sysv5* | \
51113 *-pc-msdosdjgpp )
a848cd7e
SC
51114 ;;
51115
51116 *)
a48b6595
VZ
51117 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
51118echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
51119 { (exit 1); exit 1; }; }
51120 esac
a848cd7e 51121
2057db16
VS
51122 if test "x$PIC_FLAG" != "x" ; then
51123 PIC_FLAG="$PIC_FLAG -DPIC"
51124 fi
51125
a848cd7e
SC
51126 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
51127 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
51128 fi
51129 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
51130 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
51131 fi
51132
51133
51134
51135
51136
51137
51138
51139
810b94f0 51140
a848cd7e
SC
51141 USE_SOVERSION=0
51142 USE_SOVERLINUX=0
51143 USE_SOVERSOLARIS=0
810b94f0 51144 USE_SOVERCYGWIN=0
a848cd7e
SC
51145 USE_SOSYMLINKS=0
51146 USE_MACVERSION=0
51147 SONAME_FLAG=
51148
51149 case "${BAKEFILE_HOST}" in
0ad5d837 51150 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
43a7c679
VZ
51151 if test "x$SUNCXX" = "xyes"; then
51152 SONAME_FLAG="-h "
51153 else
51154 SONAME_FLAG="-Wl,-soname,"
51155 fi
5f652d0d
VS
51156 USE_SOVERSION=1
51157 USE_SOVERLINUX=1
51158 USE_SOSYMLINKS=1
51159 ;;
51160
a848cd7e
SC
51161 *-*-solaris2* )
51162 SONAME_FLAG="-h "
51163 USE_SOVERSION=1
51164 USE_SOVERSOLARIS=1
51165 USE_SOSYMLINKS=1
51166 ;;
51167
51168 *-*-darwin* )
51169 USE_MACVERSION=1
51170 USE_SOVERSION=1
51171 USE_SOSYMLINKS=1
51172 ;;
810b94f0
MW
51173
51174 *-*-cygwin* )
51175 USE_SOVERSION=1
51176 USE_SOVERCYGWIN=1
51177 ;;
a848cd7e
SC
51178 esac
51179
51180
51181
51182
51183
51184
51185
51186
51187
810b94f0 51188
47964710 51189 # Check whether --enable-dependency-tracking was given.
f10e38c4 51190if test "${enable_dependency_tracking+set}" = set; then
47964710
VS
51191 enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51192fi
f10e38c4 51193
47964710
VS
51194
51195 { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51196echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
a848cd7e 51197
a485900c 51198 BK_DEPS=""
f10e38c4
VZ
51199 if test "x$bk_use_trackdeps" = "xno" ; then
51200 DEPS_TRACKING=0
47964710
VS
51201 { echo "$as_me:$LINENO: result: disabled" >&5
51202echo "${ECHO_T}disabled" >&6; }
f10e38c4
VZ
51203 else
51204 DEPS_TRACKING=1
51205
51206 if test "x$GCC" = "xyes"; then
51207 DEPSMODE=gcc
51208 case "${BAKEFILE_HOST}" in
51209 *-*-darwin* )
51210 DEPSFLAG="-no-cpp-precomp -MMD"
51211 ;;
51212 * )
51213 DEPSFLAG="-MMD"
51214 ;;
51215 esac
47964710
VS
51216 { echo "$as_me:$LINENO: result: gcc" >&5
51217echo "${ECHO_T}gcc" >&6; }
f10e38c4
VZ
51218 elif test "x$MWCC" = "xyes"; then
51219 DEPSMODE=mwcc
51220 DEPSFLAG="-MM"
47964710
VS
51221 { echo "$as_me:$LINENO: result: mwcc" >&5
51222echo "${ECHO_T}mwcc" >&6; }
f10e38c4
VZ
51223 elif test "x$SUNCC" = "xyes"; then
51224 DEPSMODE=unixcc
51225 DEPSFLAG="-xM1"
47964710
VS
51226 { echo "$as_me:$LINENO: result: Sun cc" >&5
51227echo "${ECHO_T}Sun cc" >&6; }
f10e38c4
VZ
51228 elif test "x$SGICC" = "xyes"; then
51229 DEPSMODE=unixcc
51230 DEPSFLAG="-M"
47964710
VS
51231 { echo "$as_me:$LINENO: result: SGI cc" >&5
51232echo "${ECHO_T}SGI cc" >&6; }
f10e38c4
VZ
51233 elif test "x$HPCC" = "xyes"; then
51234 DEPSMODE=unixcc
51235 DEPSFLAG="+make"
47964710
VS
51236 { echo "$as_me:$LINENO: result: HP cc" >&5
51237echo "${ECHO_T}HP cc" >&6; }
f10e38c4
VZ
51238 elif test "x$COMPAQCC" = "xyes"; then
51239 DEPSMODE=gcc
51240 DEPSFLAG="-MD"
47964710
VS
51241 { echo "$as_me:$LINENO: result: Compaq cc" >&5
51242echo "${ECHO_T}Compaq cc" >&6; }
f10e38c4
VZ
51243 else
51244 DEPS_TRACKING=0
47964710
VS
51245 { echo "$as_me:$LINENO: result: none" >&5
51246echo "${ECHO_T}none" >&6; }
f10e38c4 51247 fi
a848cd7e 51248
f10e38c4 51249 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
51250
51251D='$'
51252cat <<EOF >bk-deps
a848cd7e
SC
51253#!/bin/sh
51254
51255# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51256# script. It is used to track C/C++ files dependencies in portable way.
51257#
51258# Permission is given to use this file in any way.
51259
473276a9 51260DEPSMODE=${DEPSMODE}
a848cd7e 51261DEPSDIR=.deps
0ad5d837 51262DEPSFLAG="${DEPSFLAG}"
a848cd7e 51263
473276a9 51264mkdir -p ${D}DEPSDIR
a848cd7e 51265
473276a9 51266if test ${D}DEPSMODE = gcc ; then
0ad5d837 51267 ${D}* ${D}{DEPSFLAG}
473276a9
VS
51268 status=${D}?
51269 if test ${D}{status} != 0 ; then
51270 exit ${D}{status}
a848cd7e
SC
51271 fi
51272 # move created file to the location we want it in:
473276a9
VS
51273 while test ${D}# -gt 0; do
51274 case "${D}1" in
a848cd7e
SC
51275 -o )
51276 shift
473276a9 51277 objfile=${D}1
a848cd7e
SC
51278 ;;
51279 -* )
51280 ;;
51281 * )
473276a9 51282 srcfile=${D}1
a848cd7e
SC
51283 ;;
51284 esac
51285 shift
51286 done
1e9e8aba
DE
51287 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51288 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
51289 if test -f ${D}depfile ; then
51290 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51291 rm -f ${D}depfile
a848cd7e 51292 else
a1aa0349 51293 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 51294 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
51295 if test ! -f ${D}depfile ; then
51296 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51297 depfile="${D}objfile.d"
51298 fi
473276a9
VS
51299 if test -f ${D}depfile ; then
51300 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51301 rm -f ${D}depfile
a848cd7e
SC
51302 fi
51303 fi
51304 exit 0
81f90336 51305elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 51306 ${D}* || exit ${D}?
81f90336
MW
51307 # Run mwcc again with -MM and redirect into the dep file we want
51308 # NOTE: We can't use shift here because we need ${D}* to be valid
51309 prevarg=
51310 for arg in ${D}* ; do
51311 if test "${D}prevarg" = "-o"; then
51312 objfile=${D}arg
51313 else
51314 case "${D}arg" in
51315 -* )
51316 ;;
51317 * )
51318 srcfile=${D}arg
51319 ;;
51320 esac
51321 fi
51322 prevarg="${D}arg"
51323 done
0ad5d837 51324 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 51325 exit 0
0ad5d837 51326elif test ${D}DEPSMODE = unixcc; then
f6b50c59 51327 ${D}* || exit ${D}?
a9e5b1f0
MW
51328 # Run compiler again with deps flag and redirect into the dep file.
51329 # It doesn't work if the '-o FILE' option is used, but without it the
51330 # dependency file will contain the wrong name for the object. So it is
51331 # removed from the command line, and the dep file is fixed with sed.
51332 cmd=""
51333 while test ${D}# -gt 0; do
51334 case "${D}1" in
51335 -o )
51336 shift
51337 objfile=${D}1
51338 ;;
51339 * )
51340 eval arg${D}#=\\${D}1
51341 cmd="${D}cmd \\${D}arg${D}#"
51342 ;;
51343 esac
51344 shift
51345 done
0ad5d837 51346 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 51347 exit 0
a848cd7e 51348else
473276a9
VS
51349 ${D}*
51350 exit ${D}?
a848cd7e
SC
51351fi
51352EOF
473276a9 51353
f10e38c4 51354 chmod +x bk-deps
a485900c 51355 BK_DEPS="`pwd`/bk-deps"
f10e38c4 51356 fi
a848cd7e
SC
51357 fi
51358
51359
51360
51361
a485900c 51362
a848cd7e
SC
51363 case ${BAKEFILE_HOST} in
51364 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
51365 if test -n "$ac_tool_prefix"; then
51366 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51367set dummy ${ac_tool_prefix}windres; ac_word=$2
47964710
VS
51368{ echo "$as_me:$LINENO: checking for $ac_word" >&5
51369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8ced02f6
DE
51370if test "${ac_cv_prog_WINDRES+set}" = set; then
51371 echo $ECHO_N "(cached) $ECHO_C" >&6
51372else
51373 if test -n "$WINDRES"; then
51374 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51375else
51376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51377for as_dir in $PATH
51378do
51379 IFS=$as_save_IFS
51380 test -z "$as_dir" && as_dir=.
51381 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 51382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8ced02f6
DE
51383 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51385 break 2
51386 fi
51387done
51388done
47964710 51389IFS=$as_save_IFS
8ced02f6
DE
51390
51391fi
51392fi
51393WINDRES=$ac_cv_prog_WINDRES
51394if test -n "$WINDRES"; then
47964710
VS
51395 { echo "$as_me:$LINENO: result: $WINDRES" >&5
51396echo "${ECHO_T}$WINDRES" >&6; }
8ced02f6 51397else
47964710
VS
51398 { echo "$as_me:$LINENO: result: no" >&5
51399echo "${ECHO_T}no" >&6; }
8ced02f6
DE
51400fi
51401
47964710 51402
8ced02f6
DE
51403fi
51404if test -z "$ac_cv_prog_WINDRES"; then
51405 ac_ct_WINDRES=$WINDRES
51406 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e 51407set dummy windres; ac_word=$2
47964710
VS
51408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
51409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8ced02f6 51410if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
51411 echo $ECHO_N "(cached) $ECHO_C" >&6
51412else
8ced02f6
DE
51413 if test -n "$ac_ct_WINDRES"; then
51414 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
51415else
51416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51417for as_dir in $PATH
51418do
51419 IFS=$as_save_IFS
51420 test -z "$as_dir" && as_dir=.
51421 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 51422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8ced02f6 51423 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
51424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51425 break 2
51426 fi
51427done
51428done
47964710 51429IFS=$as_save_IFS
a848cd7e 51430
a848cd7e
SC
51431fi
51432fi
8ced02f6
DE
51433ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51434if test -n "$ac_ct_WINDRES"; then
47964710
VS
51435 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51436echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
a848cd7e 51437else
47964710
VS
51438 { echo "$as_me:$LINENO: result: no" >&5
51439echo "${ECHO_T}no" >&6; }
a848cd7e
SC
51440fi
51441
47964710
VS
51442 if test "x$ac_ct_WINDRES" = x; then
51443 WINDRES=""
51444 else
51445 case $cross_compiling:$ac_tool_warned in
51446yes:)
51447{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51448whose name does not start with the host triplet. If you think this
51449configuration is useful to you, please write to autoconf@gnu.org." >&5
51450echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51451whose name does not start with the host triplet. If you think this
51452configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51453ac_tool_warned=yes ;;
51454esac
51455 WINDRES=$ac_ct_WINDRES
51456 fi
8ced02f6
DE
51457else
51458 WINDRES="$ac_cv_prog_WINDRES"
51459fi
51460
a848cd7e
SC
51461 ;;
51462
1e9e8aba 51463 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
51464 # Extract the first word of "Rez", so it can be a program name with args.
51465set dummy Rez; ac_word=$2
47964710
VS
51466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
51467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8ced02f6 51468if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
51469 echo $ECHO_N "(cached) $ECHO_C" >&6
51470else
8ced02f6
DE
51471 if test -n "$REZ"; then
51472 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
51473else
51474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51475for as_dir in $PATH
51476do
51477 IFS=$as_save_IFS
51478 test -z "$as_dir" && as_dir=.
51479 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 51480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8ced02f6 51481 ac_cv_prog_REZ="Rez"
a848cd7e
SC
51482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51483 break 2
51484 fi
51485done
51486done
47964710 51487IFS=$as_save_IFS
a848cd7e 51488
8ced02f6 51489 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
51490fi
51491fi
8ced02f6
DE
51492REZ=$ac_cv_prog_REZ
51493if test -n "$REZ"; then
47964710
VS
51494 { echo "$as_me:$LINENO: result: $REZ" >&5
51495echo "${ECHO_T}$REZ" >&6; }
a848cd7e 51496else
47964710
VS
51497 { echo "$as_me:$LINENO: result: no" >&5
51498echo "${ECHO_T}no" >&6; }
a848cd7e
SC
51499fi
51500
47964710 51501
a848cd7e
SC
51502 # Extract the first word of "SetFile", so it can be a program name with args.
51503set dummy SetFile; ac_word=$2
47964710
VS
51504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
51505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
51506if test "${ac_cv_prog_SETFILE+set}" = set; then
51507 echo $ECHO_N "(cached) $ECHO_C" >&6
51508else
51509 if test -n "$SETFILE"; then
51510 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51511else
51512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51513for as_dir in $PATH
51514do
51515 IFS=$as_save_IFS
51516 test -z "$as_dir" && as_dir=.
51517 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 51518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
51519 ac_cv_prog_SETFILE="SetFile"
51520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51521 break 2
51522 fi
51523done
51524done
47964710 51525IFS=$as_save_IFS
a848cd7e
SC
51526
51527 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51528fi
51529fi
51530SETFILE=$ac_cv_prog_SETFILE
51531if test -n "$SETFILE"; then
47964710
VS
51532 { echo "$as_me:$LINENO: result: $SETFILE" >&5
51533echo "${ECHO_T}$SETFILE" >&6; }
a848cd7e 51534else
47964710
VS
51535 { echo "$as_me:$LINENO: result: no" >&5
51536echo "${ECHO_T}no" >&6; }
a848cd7e
SC
51537fi
51538
47964710 51539
a848cd7e
SC
51540 ;;
51541 esac
51542
51543
51544
51545
51546
8ced02f6 51547
a48b6595 51548 BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
a848cd7e 51549
dcc1b6ad 51550
a48b6595 51551BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
a848cd7e 51552
646b6ec1 51553
74b84332 51554
47964710 51555 # Check whether --enable-precomp-headers was given.
a848cd7e 51556if test "${enable_precomp_headers+set}" = set; then
47964710
VS
51557 enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51558fi
51559
a848cd7e
SC
51560
51561 GCC_PCH=0
f10e38c4
VZ
51562 ICC_PCH=0
51563 USE_PCH=0
a485900c 51564 BK_MAKE_PCH=""
a848cd7e 51565
5c60e845
MW
51566 case ${BAKEFILE_HOST} in
51567 *-*-cygwin* )
51568 bk_use_pch="no"
51569 ;;
51570 esac
51571
a848cd7e
SC
51572 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51573 if test "x$GCC" = "xyes"; then
47964710
VS
51574 { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51575echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
a848cd7e
SC
51576 cat >conftest.$ac_ext <<_ACEOF
51577/* confdefs.h. */
51578_ACEOF
51579cat confdefs.h >>conftest.$ac_ext
51580cat >>conftest.$ac_ext <<_ACEOF
51581/* end confdefs.h. */
51582
51583int
51584main ()
51585{
51586
51587 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 51588 There is no PCH support
a848cd7e
SC
51589 #endif
51590 #if (__GNUC__ < 3)
e5efa97e 51591 There is no PCH support
a848cd7e
SC
51592 #endif
51593 #if (__GNUC__ == 3) && \
51594 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
51595 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51596 ( defined(__INTEL_COMPILER) )
e5efa97e 51597 There is no PCH support
a848cd7e
SC
51598 #endif
51599
51600 ;
51601 return 0;
51602}
51603_ACEOF
51604rm -f conftest.$ac_objext
47964710
VS
51605if { (ac_try="$ac_compile"
51606case "(($ac_try" in
51607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51608 *) ac_try_echo=$ac_try;;
51609esac
51610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51611 (eval "$ac_compile") 2>conftest.er1
a848cd7e 51612 ac_status=$?
ac1cb8d3
VS
51613 grep -v '^ *+' conftest.er1 >conftest.err
51614 rm -f conftest.er1
51615 cat conftest.err >&5
a848cd7e 51616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
51617 (exit $ac_status); } && {
51618 test -z "$ac_c_werror_flag" ||
51619 test ! -s conftest.err
51620 } && test -s conftest.$ac_objext; then
a848cd7e 51621
47964710
VS
51622 { echo "$as_me:$LINENO: result: yes" >&5
51623echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
51624 GCC_PCH=1
51625
51626else
51627 echo "$as_me: failed program was:" >&5
51628sed 's/^/| /' conftest.$ac_ext >&5
51629
51630
f10e38c4
VZ
51631 cat >conftest.$ac_ext <<_ACEOF
51632/* confdefs.h. */
51633_ACEOF
51634cat confdefs.h >>conftest.$ac_ext
51635cat >>conftest.$ac_ext <<_ACEOF
51636/* end confdefs.h. */
51637
51638int
51639main ()
51640{
51641
51642 #if !defined(__INTEL_COMPILER) || \
51643 (__INTEL_COMPILER < 800)
e5efa97e 51644 There is no PCH support
f10e38c4
VZ
51645 #endif
51646
51647 ;
51648 return 0;
51649}
51650_ACEOF
51651rm -f conftest.$ac_objext
47964710
VS
51652if { (ac_try="$ac_compile"
51653case "(($ac_try" in
51654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51655 *) ac_try_echo=$ac_try;;
51656esac
51657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51658 (eval "$ac_compile") 2>conftest.er1
f10e38c4
VZ
51659 ac_status=$?
51660 grep -v '^ *+' conftest.er1 >conftest.err
51661 rm -f conftest.er1
51662 cat conftest.err >&5
51663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
51664 (exit $ac_status); } && {
51665 test -z "$ac_c_werror_flag" ||
51666 test ! -s conftest.err
51667 } && test -s conftest.$ac_objext; then
f10e38c4 51668
47964710
VS
51669 { echo "$as_me:$LINENO: result: yes" >&5
51670echo "${ECHO_T}yes" >&6; }
f10e38c4
VZ
51671 ICC_PCH=1
51672
51673else
51674 echo "$as_me: failed program was:" >&5
51675sed 's/^/| /' conftest.$ac_ext >&5
51676
51677
47964710
VS
51678 { echo "$as_me:$LINENO: result: no" >&5
51679echo "${ECHO_T}no" >&6; }
a848cd7e
SC
51680
51681fi
47964710
VS
51682
51683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
51684
51685fi
47964710
VS
51686
51687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
51688 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
51689 USE_PCH=1
1e9e8aba
DE
51690
51691D='$'
51692cat <<EOF >bk-make-pch
a848cd7e
SC
51693#!/bin/sh
51694
51695# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51696# script. It is used to generated precompiled headers.
51697#
51698# Permission is given to use this file in any way.
51699
1e9e8aba
DE
51700outfile="${D}{1}"
51701header="${D}{2}"
a848cd7e
SC
51702shift
51703shift
51704
f10e38c4
VZ
51705compiler=""
51706headerfile=""
51707
1e9e8aba 51708while test ${D}{#} -gt 0; do
f10e38c4 51709 add_to_cmdline=1
1e9e8aba 51710 case "${D}{1}" in
a848cd7e 51711 -I* )
1e9e8aba
DE
51712 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
51713 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
51714 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
51715 fi
51716 ;;
f10e38c4
VZ
51717 -use-pch|-use_pch )
51718 shift
51719 add_to_cmdline=0
51720 ;;
a848cd7e 51721 esac
f10e38c4
VZ
51722 if test ${D}add_to_cmdline = 1 ; then
51723 compiler="${D}{compiler} ${D}{1}"
51724 fi
a848cd7e
SC
51725 shift
51726done
51727
1e9e8aba 51728if test "x${D}{headerfile}" = "x" ; then
f10e38c4 51729 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 51730else
1e9e8aba
DE
51731 if test -f ${D}{outfile} ; then
51732 rm -f ${D}{outfile}
a848cd7e 51733 else
1e9e8aba 51734 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 51735 fi
1e9e8aba 51736 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 51737 mkdir -p .deps
f10e38c4
VZ
51738 if test "x${GCC_PCH}" = "x1" ; then
51739 # can do this because gcc is >= 3.4:
51740 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
51741 elif test "x${ICC_PCH}" = "x1" ; then
51742 filename=pch_gen-${D}${D}
51743 file=${D}{filename}.c
51744 dfile=${D}{filename}.d
51745 cat > ${D}file <<EOT
51746#include "${D}header"
51747EOT
51748 # using -MF icc complains about differing command lines in creation/use
51749 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
51750 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
51751 rm -f ${D}file ${D}dfile ${D}{filename}.o
51752 fi
1e9e8aba 51753 exit ${D}{?}
a848cd7e
SC
51754fi
51755EOF
1e9e8aba 51756
a848cd7e 51757 chmod +x bk-make-pch
a485900c 51758 BK_MAKE_PCH="`pwd`/bk-make-pch"
a848cd7e
SC
51759 fi
51760 fi
51761 fi
51762
51763
51764
f10e38c4 51765
a485900c 51766
a848cd7e
SC
51767 COND_BUILD_DEBUG="#"
51768 if test "x$BUILD" = "xdebug" ; then
51769 COND_BUILD_DEBUG=""
51770 fi
51771
51772 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
51773 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51774 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
51775 fi
51776
51777 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
51778 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51779 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
51780 fi
51781
51782 COND_BUILD_DEBUG_UNICODE_0="#"
51783 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51784 COND_BUILD_DEBUG_UNICODE_0=""
51785 fi
51786
51787 COND_BUILD_DEBUG_UNICODE_1="#"
51788 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51789 COND_BUILD_DEBUG_UNICODE_1=""
51790 fi
51791
51792 COND_BUILD_RELEASE="#"
51793 if test "x$BUILD" = "xrelease" ; then
51794 COND_BUILD_RELEASE=""
51795 fi
51796
51797 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
51798 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51799 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
51800 fi
51801
51802 COND_BUILD_RELEASE_UNICODE_0="#"
51803 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51804 COND_BUILD_RELEASE_UNICODE_0=""
51805 fi
51806
51807 COND_BUILD_RELEASE_UNICODE_1="#"
51808 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51809 COND_BUILD_RELEASE_UNICODE_1=""
51810 fi
51811
51812 COND_DEBUG_FLAG_1="#"
51813 if test "x$DEBUG_FLAG" = "x1" ; then
51814 COND_DEBUG_FLAG_1=""
51815 fi
51816
51817 COND_DEBUG_INFO_0="#"
51818 if test "x$DEBUG_INFO" = "x0" ; then
51819 COND_DEBUG_INFO_0=""
51820 fi
51821
51822 COND_DEBUG_INFO_1="#"
51823 if test "x$DEBUG_INFO" = "x1" ; then
51824 COND_DEBUG_INFO_1=""
51825 fi
51826
51827 COND_DEPS_TRACKING_0="#"
51828 if test "x$DEPS_TRACKING" = "x0" ; then
51829 COND_DEPS_TRACKING_0=""
51830 fi
51831
51832 COND_DEPS_TRACKING_1="#"
51833 if test "x$DEPS_TRACKING" = "x1" ; then
51834 COND_DEPS_TRACKING_1=""
51835 fi
51836
51837 COND_GCC_PCH_1="#"
51838 if test "x$GCC_PCH" = "x1" ; then
51839 COND_GCC_PCH_1=""
51840 fi
51841
f10e38c4
VZ
51842 COND_ICC_PCH_1="#"
51843 if test "x$ICC_PCH" = "x1" ; then
51844 COND_ICC_PCH_1=""
51845 fi
51846
a848cd7e
SC
51847 COND_MONOLITHIC_0="#"
51848 if test "x$MONOLITHIC" = "x0" ; then
51849 COND_MONOLITHIC_0=""
51850 fi
51851
51852 COND_MONOLITHIC_0_SHARED_0="#"
51853 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
51854 COND_MONOLITHIC_0_SHARED_0=""
51855 fi
51856
3f60522a
JS
51857 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
51858 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
51859 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
51860 fi
51861
a848cd7e
SC
51862 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
51863 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
51864 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
51865 fi
51866
90970d69
DE
51867 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
51868 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51869 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
51870 fi
51871
f10e38c4
VZ
51872 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
51873 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51874 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
51875 fi
51876
a848cd7e
SC
51877 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
51878 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51879 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
51880 fi
51881
6671c68b
VZ
51882 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
51883 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51884 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
51885 fi
51886
a848cd7e
SC
51887 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
51888 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
51889 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
51890 fi
51891
8b6682b9
JS
51892 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
51893 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51894 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
51895 fi
51896
54429bb3
RD
51897 COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
51898 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51899 COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
51900 fi
51901
ceec2216
RL
51902 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
51903 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
51904 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
51905 fi
51906
a848cd7e
SC
51907 COND_MONOLITHIC_0_SHARED_1="#"
51908 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
51909 COND_MONOLITHIC_0_SHARED_1=""
51910 fi
51911
3f60522a
JS
51912 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
51913 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
51914 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
51915 fi
51916
a848cd7e
SC
51917 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
51918 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
51919 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
51920 fi
51921
90970d69
DE
51922 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
51923 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51924 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
51925 fi
51926
f10e38c4
VZ
51927 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
51928 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51929 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
51930 fi
51931
a848cd7e
SC
51932 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
51933 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51934 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
51935 fi
51936
6671c68b
VZ
51937 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
51938 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51939 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
51940 fi
51941
a848cd7e
SC
51942 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
51943 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
51944 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
51945 fi
51946
8b6682b9
JS
51947 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
51948 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
51949 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
51950 fi
51951
54429bb3
RD
51952 COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
51953 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
51954 COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
51955 fi
51956
ceec2216
RL
51957 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
51958 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
51959 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
51960 fi
51961
d63f7562
VZ
51962 COND_MONOLITHIC_0_USE_AUI_1="#"
51963 if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
51964 COND_MONOLITHIC_0_USE_AUI_1=""
51965 fi
51966
51967 COND_MONOLITHIC_0_USE_GUI_1="#"
51968 if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
51969 COND_MONOLITHIC_0_USE_GUI_1=""
51970 fi
51971
51972 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
51973 if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51974 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
51975 fi
51976
51977 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1="#"
51978 if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51979 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1=""
51980 fi
51981
51982 COND_MONOLITHIC_0_USE_HTML_1="#"
51983 if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
51984 COND_MONOLITHIC_0_USE_HTML_1=""
51985 fi
51986
e5efa97e
VZ
51987 COND_MONOLITHIC_0_USE_MEDIA_1="#"
51988 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
51989 COND_MONOLITHIC_0_USE_MEDIA_1=""
51990 fi
51991
a848cd7e
SC
51992 COND_MONOLITHIC_0_USE_ODBC_1="#"
51993 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
51994 COND_MONOLITHIC_0_USE_ODBC_1=""
51995 fi
51996
d63f7562
VZ
51997 COND_MONOLITHIC_0_USE_QA_1="#"
51998 if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
51999 COND_MONOLITHIC_0_USE_QA_1=""
52000 fi
52001
52002 COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
52003 if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52004 COND_MONOLITHIC_0_USE_RICHTEXT_1=""
52005 fi
52006
54429bb3
RD
52007 COND_MONOLITHIC_0_USE_STC_1="#"
52008 if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
52009 COND_MONOLITHIC_0_USE_STC_1=""
52010 fi
52011
d63f7562
VZ
52012 COND_MONOLITHIC_0_USE_XRC_1="#"
52013 if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
52014 COND_MONOLITHIC_0_USE_XRC_1=""
52015 fi
52016
a848cd7e
SC
52017 COND_MONOLITHIC_1="#"
52018 if test "x$MONOLITHIC" = "x1" ; then
52019 COND_MONOLITHIC_1=""
52020 fi
52021
52022 COND_MONOLITHIC_1_SHARED_0="#"
52023 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
52024 COND_MONOLITHIC_1_SHARED_0=""
52025 fi
52026
52027 COND_MONOLITHIC_1_SHARED_1="#"
52028 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
52029 COND_MONOLITHIC_1_SHARED_1=""
52030 fi
52031
52032 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
52033 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
52034 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
52035 fi
52036
52037 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
52038 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
52039 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
52040 fi
52041
eb730a0c
JS
52042 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
52043 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52044 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
52045 fi
52046
a848cd7e
SC
52047 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
52048 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52049 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
52050 fi
52051
52052 COND_PLATFORM_MACOSX_1="#"
52053 if test "x$PLATFORM_MACOSX" = "x1" ; then
52054 COND_PLATFORM_MACOSX_1=""
52055 fi
52056
a30f955f
VS
52057 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
52058 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
52059 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
52060 fi
52061
a848cd7e
SC
52062 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
52063 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
52064 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
52065 fi
52066
52067 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
52068 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
52069 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
52070 fi
52071
52072 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
52073 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
52074 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
52075 fi
52076
fc480dc1
DE
52077 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
52078 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52079 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
52080 fi
52081
ebee3cd0
VS
52082 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
52083 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
52084 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
52085 fi
52086
52087 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
52088 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
52089 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
52090 fi
52091
a848cd7e
SC
52092 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
52093 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
52094 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
52095 fi
52096
52097 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
52098 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52099 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
52100 fi
52101
b48a2016
DE
52102 COND_PLATFORM_MACOS_1="#"
52103 if test "x$PLATFORM_MACOS" = "x1" ; then
52104 COND_PLATFORM_MACOS_1=""
52105 fi
52106
083508af
MW
52107 COND_PLATFORM_MAC_1="#"
52108 if test "x$PLATFORM_MAC" = "x1" ; then
52109 COND_PLATFORM_MAC_1=""
52110 fi
52111
e5efa97e
VZ
52112 COND_PLATFORM_MSDOS_0="#"
52113 if test "x$PLATFORM_MSDOS" = "x0" ; then
52114 COND_PLATFORM_MSDOS_0=""
52115 fi
52116
83d8eb47
MW
52117 COND_PLATFORM_MSDOS_1="#"
52118 if test "x$PLATFORM_MSDOS" = "x1" ; then
52119 COND_PLATFORM_MSDOS_1=""
52120 fi
52121
a848cd7e
SC
52122 COND_PLATFORM_OS2_1="#"
52123 if test "x$PLATFORM_OS2" = "x1" ; then
52124 COND_PLATFORM_OS2_1=""
52125 fi
52126
52127 COND_PLATFORM_UNIX_0="#"
52128 if test "x$PLATFORM_UNIX" = "x0" ; then
52129 COND_PLATFORM_UNIX_0=""
52130 fi
52131
52132 COND_PLATFORM_UNIX_1="#"
52133 if test "x$PLATFORM_UNIX" = "x1" ; then
52134 COND_PLATFORM_UNIX_1=""
52135 fi
52136
3ad202f9
VZ
52137 COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52138 if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52139 COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52140 fi
52141
52142 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52143 if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52144 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52145 fi
52146
a848cd7e
SC
52147 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52148 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52149 COND_PLATFORM_UNIX_1_USE_GUI_1=""
52150 fi
52151
52152 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52153 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52154 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52155 fi
52156
52157 COND_PLATFORM_WIN32_0="#"
52158 if test "x$PLATFORM_WIN32" = "x0" ; then
52159 COND_PLATFORM_WIN32_0=""
52160 fi
52161
52162 COND_PLATFORM_WIN32_1="#"
52163 if test "x$PLATFORM_WIN32" = "x1" ; then
52164 COND_PLATFORM_WIN32_1=""
52165 fi
52166
52167 COND_SHARED_0="#"
52168 if test "x$SHARED" = "x0" ; then
52169 COND_SHARED_0=""
52170 fi
52171
083508af
MW
52172 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52173 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52174 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52175 fi
52176
52177 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52178 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52179 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52180 fi
52181
52182 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52183 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52184 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52185 fi
52186
a848cd7e
SC
52187 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52188 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52189 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52190 fi
52191
52192 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52193 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52194 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52195 fi
52196
52197 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52198 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52199 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52200 fi
52201
52202 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52203 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52204 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52205 fi
52206
7708a267
VS
52207 COND_SHARED_0_USE_STC_1="#"
52208 if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52209 COND_SHARED_0_USE_STC_1=""
52210 fi
52211
083508af
MW
52212 COND_SHARED_0_USE_XRC_1="#"
52213 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52214 COND_SHARED_0_USE_XRC_1=""
52215 fi
52216
a848cd7e
SC
52217 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
52218 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52219 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
52220 fi
52221
52222 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
52223 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
52224 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
52225 fi
52226
52227 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
52228 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52229 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
52230 fi
52231
52232 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
52233 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52234 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
52235 fi
52236
52237 COND_SHARED_1="#"
52238 if test "x$SHARED" = "x1" ; then
52239 COND_SHARED_1=""
52240 fi
52241
52242 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52243 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52244 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52245 fi
52246
083508af
MW
52247 COND_SHARED_1_USE_XRC_1="#"
52248 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52249 COND_SHARED_1_USE_XRC_1=""
52250 fi
52251
a30f955f
VS
52252 COND_TOOLKIT_="#"
52253 if test "x$TOOLKIT" = "x" ; then
52254 COND_TOOLKIT_=""
52255 fi
52256
a848cd7e
SC
52257 COND_TOOLKIT_COCOA="#"
52258 if test "x$TOOLKIT" = "xCOCOA" ; then
52259 COND_TOOLKIT_COCOA=""
52260 fi
52261
a49baeab
DE
52262 COND_TOOLKIT_COCOA_USE_GUI_1="#"
52263 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52264 COND_TOOLKIT_COCOA_USE_GUI_1=""
52265 fi
52266
a848cd7e
SC
52267 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52268 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52269 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52270 fi
52271
b3c86150
VS
52272 COND_TOOLKIT_DFB="#"
52273 if test "x$TOOLKIT" = "xDFB" ; then
52274 COND_TOOLKIT_DFB=""
52275 fi
52276
52277 COND_TOOLKIT_DFB_USE_GUI_1="#"
52278 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52279 COND_TOOLKIT_DFB_USE_GUI_1=""
52280 fi
52281
a848cd7e
SC
52282 COND_TOOLKIT_GTK="#"
52283 if test "x$TOOLKIT" = "xGTK" ; then
52284 COND_TOOLKIT_GTK=""
52285 fi
52286
d044deea
MW
52287 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52288 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52289 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52290 fi
52291
52292 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52293 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52294 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52295 fi
52296
52297 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52298 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52299 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52300 fi
52301
52302 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52303 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52304 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52305 fi
52306
52307 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52308 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52309 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52310 fi
52311
52312 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52313 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52314 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52315 fi
52316
a848cd7e
SC
52317 COND_TOOLKIT_GTK_USE_GUI_1="#"
52318 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52319 COND_TOOLKIT_GTK_USE_GUI_1=""
52320 fi
52321
a848cd7e
SC
52322 COND_TOOLKIT_MAC="#"
52323 if test "x$TOOLKIT" = "xMAC" ; then
52324 COND_TOOLKIT_MAC=""
52325 fi
52326
52327 COND_TOOLKIT_MAC_USE_GUI_1="#"
52328 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52329 COND_TOOLKIT_MAC_USE_GUI_1=""
52330 fi
52331
52332 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
52333 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52334 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
52335 fi
52336
52337 COND_TOOLKIT_MGL="#"
52338 if test "x$TOOLKIT" = "xMGL" ; then
52339 COND_TOOLKIT_MGL=""
52340 fi
52341
52342 COND_TOOLKIT_MGL_USE_GUI_1="#"
52343 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52344 COND_TOOLKIT_MGL_USE_GUI_1=""
52345 fi
52346
52347 COND_TOOLKIT_MOTIF="#"
52348 if test "x$TOOLKIT" = "xMOTIF" ; then
52349 COND_TOOLKIT_MOTIF=""
52350 fi
52351
52352 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52353 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52354 COND_TOOLKIT_MOTIF_USE_GUI_1=""
52355 fi
52356
52357 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52358 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52359 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52360 fi
52361
52362 COND_TOOLKIT_MSW="#"
52363 if test "x$TOOLKIT" = "xMSW" ; then
52364 COND_TOOLKIT_MSW=""
52365 fi
52366
52367 COND_TOOLKIT_MSW_USE_GUI_1="#"
52368 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52369 COND_TOOLKIT_MSW_USE_GUI_1=""
52370 fi
52371
52372 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52373 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52374 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52375 fi
52376
0ee4059d
DE
52377 COND_TOOLKIT_MSW_WXUNIV_0="#"
52378 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52379 COND_TOOLKIT_MSW_WXUNIV_0=""
52380 fi
52381
a848cd7e
SC
52382 COND_TOOLKIT_PM="#"
52383 if test "x$TOOLKIT" = "xPM" ; then
52384 COND_TOOLKIT_PM=""
52385 fi
52386
52387 COND_TOOLKIT_PM_USE_GUI_1="#"
52388 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52389 COND_TOOLKIT_PM_USE_GUI_1=""
52390 fi
52391
52392 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52393 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52394 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52395 fi
52396
3fd9c298
DE
52397 COND_TOOLKIT_WINCE="#"
52398 if test "x$TOOLKIT" = "xWINCE" ; then
52399 COND_TOOLKIT_WINCE=""
52400 fi
52401
52402 COND_TOOLKIT_WINCE_USE_GUI_1="#"
52403 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52404 COND_TOOLKIT_WINCE_USE_GUI_1=""
52405 fi
52406
52407 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52408 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52409 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52410 fi
52411
0ee4059d
DE
52412 COND_TOOLKIT_WINCE_WXUNIV_0="#"
52413 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52414 COND_TOOLKIT_WINCE_WXUNIV_0=""
52415 fi
52416
a848cd7e
SC
52417 COND_TOOLKIT_X11="#"
52418 if test "x$TOOLKIT" = "xX11" ; then
52419 COND_TOOLKIT_X11=""
52420 fi
52421
52422 COND_TOOLKIT_X11_USE_GUI_1="#"
52423 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52424 COND_TOOLKIT_X11_USE_GUI_1=""
52425 fi
52426
52427 COND_UNICODE_1="#"
52428 if test "x$UNICODE" = "x1" ; then
52429 COND_UNICODE_1=""
52430 fi
52431
52432 COND_USE_EXCEPTIONS_0="#"
52433 if test "x$USE_EXCEPTIONS" = "x0" ; then
52434 COND_USE_EXCEPTIONS_0=""
52435 fi
52436
52437 COND_USE_EXCEPTIONS_1="#"
52438 if test "x$USE_EXCEPTIONS" = "x1" ; then
52439 COND_USE_EXCEPTIONS_1=""
52440 fi
52441
52442 COND_USE_GUI_0="#"
52443 if test "x$USE_GUI" = "x0" ; then
52444 COND_USE_GUI_0=""
52445 fi
52446
52447 COND_USE_GUI_1="#"
52448 if test "x$USE_GUI" = "x1" ; then
52449 COND_USE_GUI_1=""
52450 fi
52451
7dd1ae11
VS
52452 COND_USE_GUI_1_USE_OPENGL_1="#"
52453 if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52454 COND_USE_GUI_1_USE_OPENGL_1=""
52455 fi
52456
a848cd7e
SC
52457 COND_USE_GUI_1_WXUNIV_0="#"
52458 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52459 COND_USE_GUI_1_WXUNIV_0=""
52460 fi
52461
52462 COND_USE_GUI_1_WXUNIV_1="#"
52463 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52464 COND_USE_GUI_1_WXUNIV_1=""
52465 fi
52466
52467 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52468 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52469 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52470 fi
52471
52472 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52473 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52474 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52475 fi
52476
52477 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52478 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52479 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52480 fi
52481
083508af
MW
52482 COND_USE_ODBC_1="#"
52483 if test "x$USE_ODBC" = "x1" ; then
52484 COND_USE_ODBC_1=""
52485 fi
52486
52487 COND_USE_OPENGL_1="#"
52488 if test "x$USE_OPENGL" = "x1" ; then
52489 COND_USE_OPENGL_1=""
52490 fi
52491
f10e38c4
VZ
52492 COND_USE_PCH_1="#"
52493 if test "x$USE_PCH" = "x1" ; then
52494 COND_USE_PCH_1=""
52495 fi
52496
a848cd7e
SC
52497 COND_USE_PLUGINS_0="#"
52498 if test "x$USE_PLUGINS" = "x0" ; then
52499 COND_USE_PLUGINS_0=""
52500 fi
52501
0b78747f
MW
52502 COND_USE_RTTI_0="#"
52503 if test "x$USE_RTTI" = "x0" ; then
52504 COND_USE_RTTI_0=""
52505 fi
52506
52507 COND_USE_RTTI_1="#"
52508 if test "x$USE_RTTI" = "x1" ; then
52509 COND_USE_RTTI_1=""
52510 fi
52511
a848cd7e
SC
52512 COND_USE_SOSYMLINKS_1="#"
52513 if test "x$USE_SOSYMLINKS" = "x1" ; then
52514 COND_USE_SOSYMLINKS_1=""
52515 fi
52516
eb730a0c
JS
52517 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52518 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52519 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52520 fi
52521
a848cd7e
SC
52522 COND_USE_SOVERLINUX_1="#"
52523 if test "x$USE_SOVERLINUX" = "x1" ; then
52524 COND_USE_SOVERLINUX_1=""
52525 fi
52526
52527 COND_USE_SOVERSION_0="#"
52528 if test "x$USE_SOVERSION" = "x0" ; then
52529 COND_USE_SOVERSION_0=""
52530 fi
52531
52532 COND_USE_SOVERSOLARIS_1="#"
52533 if test "x$USE_SOVERSOLARIS" = "x1" ; then
52534 COND_USE_SOVERSOLARIS_1=""
52535 fi
52536
7708a267
VS
52537 COND_USE_STC_1="#"
52538 if test "x$USE_STC" = "x1" ; then
52539 COND_USE_STC_1=""
52540 fi
52541
0b78747f
MW
52542 COND_USE_THREADS_0="#"
52543 if test "x$USE_THREADS" = "x0" ; then
52544 COND_USE_THREADS_0=""
52545 fi
52546
52547 COND_USE_THREADS_1="#"
52548 if test "x$USE_THREADS" = "x1" ; then
52549 COND_USE_THREADS_1=""
52550 fi
52551
a13a7f89
RL
52552 COND_USE_XRC_1="#"
52553 if test "x$USE_XRC" = "x1" ; then
52554 COND_USE_XRC_1=""
52555 fi
52556
eb730a0c
JS
52557 COND_WINDOWS_IMPLIB_1="#"
52558 if test "x$WINDOWS_IMPLIB" = "x1" ; then
52559 COND_WINDOWS_IMPLIB_1=""
52560 fi
52561
a848cd7e
SC
52562 COND_WITH_PLUGIN_SDL_1="#"
52563 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52564 COND_WITH_PLUGIN_SDL_1=""
52565 fi
52566
1e6eb025
VZ
52567 COND_WXUNIV_0="#"
52568 if test "x$WXUNIV" = "x0" ; then
52569 COND_WXUNIV_0=""
52570 fi
52571
a848cd7e
SC
52572 COND_WXUNIV_1="#"
52573 if test "x$WXUNIV" = "x1" ; then
52574 COND_WXUNIV_1=""
52575 fi
52576
52577 COND_WXUSE_EXPAT_BUILTIN="#"
52578 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52579 COND_WXUSE_EXPAT_BUILTIN=""
52580 fi
52581
52582 COND_WXUSE_LIBJPEG_BUILTIN="#"
52583 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52584 COND_WXUSE_LIBJPEG_BUILTIN=""
52585 fi
52586
52587 COND_WXUSE_LIBPNG_BUILTIN="#"
52588 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52589 COND_WXUSE_LIBPNG_BUILTIN=""
52590 fi
52591
52592 COND_WXUSE_LIBTIFF_BUILTIN="#"
52593 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52594 COND_WXUSE_LIBTIFF_BUILTIN=""
52595 fi
52596
52597 COND_WXUSE_ODBC_BUILTIN="#"
52598 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
52599 COND_WXUSE_ODBC_BUILTIN=""
52600 fi
52601
52602 COND_WXUSE_REGEX_BUILTIN="#"
52603 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52604 COND_WXUSE_REGEX_BUILTIN=""
52605 fi
52606
52607 COND_WXUSE_ZLIB_BUILTIN="#"
52608 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52609 COND_WXUSE_ZLIB_BUILTIN=""
52610 fi
52611
52612
52613
810b94f0
MW
52614 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
52615 { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5
52616echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;}
52617 { (exit 1); exit 1; }; }
52618 fi
52619
2057db16
VS
52620 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
52621 { { echo "$as_me:$LINENO: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&5
52622echo "$as_me: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&2;}
52623 { (exit 1); exit 1; }; }
52624 fi
52625
a848cd7e 52626
ebda9490
VZ
52627case ${INSTALL} in
52628 /* ) # Absolute
52629 ;;
52630 ?:* ) # Drive letter, considered as absolute.
52631 ;;
52632 *)
52633 INSTALL=`pwd`/${INSTALL} ;;
52634esac
52635
ecac5b81
VZ
52636if test "$wxUSE_GUI" = "yes"; then
52637
52638if test "$wxUSE_MSW" = 1 ; then
52639 if test "x$WINDRES" = "x"; then
52640 { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
52641echo "$as_me: error: Required windres program not found" >&2;}
52642 { (exit 1); exit 1; }; }
52643 fi
52644
52645 RESCOMP="$WINDRES"
52646fi
52647
52648if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
52649 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
52650 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
52651
52652 LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
52653
52654 # Extract the first word of "DeRez", so it can be a program name with args.
52655set dummy DeRez; ac_word=$2
47964710
VS
52656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
52657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ecac5b81
VZ
52658if test "${ac_cv_prog_DEREZ+set}" = set; then
52659 echo $ECHO_N "(cached) $ECHO_C" >&6
52660else
52661 if test -n "$DEREZ"; then
52662 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
52663else
52664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52665for as_dir in $PATH
52666do
52667 IFS=$as_save_IFS
52668 test -z "$as_dir" && as_dir=.
52669 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 52670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ecac5b81
VZ
52671 ac_cv_prog_DEREZ="DeRez"
52672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52673 break 2
52674 fi
52675done
52676done
47964710 52677IFS=$as_save_IFS
ecac5b81
VZ
52678
52679 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
52680fi
52681fi
52682DEREZ=$ac_cv_prog_DEREZ
52683if test -n "$DEREZ"; then
47964710
VS
52684 { echo "$as_me:$LINENO: result: $DEREZ" >&5
52685echo "${ECHO_T}$DEREZ" >&6; }
ecac5b81 52686else
47964710
VS
52687 { echo "$as_me:$LINENO: result: no" >&5
52688echo "${ECHO_T}no" >&6; }
ecac5b81
VZ
52689fi
52690
52691
47964710 52692
ecac5b81
VZ
52693 MACSETFILE="\$(SETFILE)"
52694
52695 if test "$wxUSE_MAC" = 1; then
52696 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
52697 RESCOMP="$REZ"
52698 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
52699 else
52700 POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
52701 RESCOMP="cat /dev/null \| $REZ"
52702 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
52703 fi
52704
52705else
52706 MACSETFILE="@true"
52707
52708 if test "$wxUSE_PM" = 1; then
52709 RESCOMP="emxbind"
52710 WXCONFIG_RESFLAGS="-ep"
52711
52712 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
52713 else
52714 POSTLINK_COMMAND="@true"
52715 fi
52716fi
52717
52718fi
52719
52720
a81d5bb6
MW
52721if test $GCC_PCH = 1
52722then
52723 if test "$wx_cv_gcc_pch_bug" = yes; then
52724 { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
52725echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
52726 { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
52727echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
52728 { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
52729echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
52730 fi
52731
52732 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
52733fi
52734
7afc46ab
KO
52735
52736if test "$wxUSE_MAC" = 1 ; then
95768535 52737 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
52738 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
52739 mv temp bk-deps
52740 chmod +x bk-deps
52741 fi
52742fi
52743
ceec2216
RL
52744if test "$wxUSE_SHARED" = "yes"; then
52745
52746 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
52747 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
52748
5b674b9d
DE
52749 case "${host}" in
52750 *-pc-os2_emx | *-pc-os2-emx )
52751 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52752 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
ec3edcc9
VZ
52753 cp -p ${srcdir}/src/os2/dllnames.sh .
52754 cp -p ${srcdir}/src/os2/dllar.sh .
5b674b9d
DE
52755 ;;
52756 esac
ceec2216
RL
52757else
52758
52759 EXE_LINKER="$CXX -o"
52760
52761fi
69120ee4
VZ
52762if test "$wxUSE_OMF" = "yes"; then
52763 case "${host}" in
52764 *-pc-os2_emx | *-pc-os2-emx )
52765 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
52766 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52767 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52768 ;;
52769 esac
52770fi
a848cd7e 52771
5ff751d6 52772WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e 52773
43a7c679
VZ
52774
52775case "${host}" in
52776 *-*-solaris2* )
52777 if "$GCC" = yes; then
52778 CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
52779 LIBS=`echo $LIBS | sed 's/-mt//'`
52780 EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
52781 fi
52782 ;;
52783
52784 *-*-linux* )
52785 if test "x$SUNCXX" = xyes; then
52786 CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
52787 LIBS=`echo $LIBS | sed 's/-pthread//'`
52788 EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
52789 fi
52790 ;;
52791esac
52792
0ff20b9f
VS
52793CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
52794CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
52795
a848cd7e
SC
52796SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
52797
52798
52799
52800
52801
52802
52803
52804
52805
52806
52807
52808
52809
52810
52811
52812
52813
52814
52815
52816
52817
52818
52819
52820
52821
52822
52823
52824
52825
52826
52827
52828
52829
52830
52831
52832
52833
52834
52835
52836
52837
52838
a848cd7e
SC
52839
52840
52841
52842
52843
52844
52845
52846
52847
52848
52849
52850
a848cd7e
SC
52851
52852
ddd14b14 52853
370d2fd7 52854
8ced02f6 52855
a848cd7e
SC
52856
52857
47964710
VS
52858{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52859echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52860set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52861if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
a848cd7e
SC
52862 echo $ECHO_N "(cached) $ECHO_C" >&6
52863else
52864 cat >conftest.make <<\_ACEOF
47964710 52865SHELL = /bin/sh
a848cd7e 52866all:
47964710 52867 @echo '@@@%%%=$(MAKE)=@@@%%%'
a848cd7e
SC
52868_ACEOF
52869# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47964710
VS
52870case `${MAKE-make} -f conftest.make 2>/dev/null` in
52871 *@@@%%%=?*=@@@%%%*)
52872 eval ac_cv_prog_make_${ac_make}_set=yes;;
52873 *)
52874 eval ac_cv_prog_make_${ac_make}_set=no;;
52875esac
a848cd7e
SC
52876rm -f conftest.make
52877fi
47964710
VS
52878if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52879 { echo "$as_me:$LINENO: result: yes" >&5
52880echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
52881 SET_MAKE=
52882else
47964710
VS
52883 { echo "$as_me:$LINENO: result: no" >&5
52884echo "${ECHO_T}no" >&6; }
a848cd7e
SC
52885 SET_MAKE="MAKE=${MAKE-make}"
52886fi
52887
52888
a848cd7e 52889
47964710 52890ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
ceec2216 52891
a848cd7e 52892
5c60e845 52893if test "$USE_WIN32" = 1; then
47964710 52894 ac_config_commands="$ac_config_commands
5c60e845
MW
52895 rcdefs.h
52896 "
52897
52898fi
52899
47964710 52900ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 52901
a848cd7e 52902
47964710 52903ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 52904
ceec2216 52905
2dbd07cb 52906if test "$wx_cv_version_script" = "yes"; then
47964710 52907 ac_config_files="$ac_config_files version-script"
2dbd07cb
VZ
52908
52909fi
47964710 52910ac_config_files="$ac_config_files Makefile"
ceec2216
RL
52911
52912
47964710 52913ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
52914
52915
9103d280 52916
1c14217d 52917if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e 52918if test "$wxUSE_GUI" = "yes"; then
cf63f3d3 52919 SUBDIRS="samples demos utils"
a848cd7e
SC
52920else SUBDIRS="samples utils"
52921fi
52922
52923
52924
47964710 52925# Check whether --with-cppunit-prefix was given.
a848cd7e 52926if test "${with_cppunit_prefix+set}" = set; then
47964710 52927 withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
a848cd7e
SC
52928else
52929 cppunit_config_prefix=""
47964710
VS
52930fi
52931
84ebfcbd 52932
47964710 52933# Check whether --with-cppunit-exec-prefix was given.
a848cd7e 52934if test "${with_cppunit_exec_prefix+set}" = set; then
47964710 52935 withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
a848cd7e
SC
52936else
52937 cppunit_config_exec_prefix=""
47964710
VS
52938fi
52939
a848cd7e
SC
52940
52941 if test x$cppunit_config_exec_prefix != x ; then
52942 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
52943 if test x${CPPUNIT_CONFIG+set} != xset ; then
52944 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
52945 fi
52946 fi
52947 if test x$cppunit_config_prefix != x ; then
52948 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
52949 if test x${CPPUNIT_CONFIG+set} != xset ; then
52950 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
52951 fi
52952 fi
52953
52954 # Extract the first word of "cppunit-config", so it can be a program name with args.
52955set dummy cppunit-config; ac_word=$2
47964710
VS
52956{ echo "$as_me:$LINENO: checking for $ac_word" >&5
52957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e
SC
52958if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
52959 echo $ECHO_N "(cached) $ECHO_C" >&6
52960else
52961 case $CPPUNIT_CONFIG in
52962 [\\/]* | ?:[\\/]*)
52963 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
52964 ;;
52965 *)
52966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52967for as_dir in $PATH
52968do
52969 IFS=$as_save_IFS
52970 test -z "$as_dir" && as_dir=.
52971 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 52972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
52973 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
52974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52975 break 2
52976 fi
52977done
52978done
47964710 52979IFS=$as_save_IFS
a848cd7e
SC
52980
52981 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
52982 ;;
52983esac
52984fi
52985CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
a848cd7e 52986if test -n "$CPPUNIT_CONFIG"; then
47964710
VS
52987 { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
52988echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
a848cd7e 52989else
47964710
VS
52990 { echo "$as_me:$LINENO: result: no" >&5
52991echo "${ECHO_T}no" >&6; }
a848cd7e
SC
52992fi
52993
47964710 52994
a848cd7e
SC
52995 cppunit_version_min=1.8.0
52996
47964710
VS
52997 { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
52998echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
a848cd7e
SC
52999 no_cppunit=""
53000 if test "$CPPUNIT_CONFIG" = "no" ; then
47964710
VS
53001 { echo "$as_me:$LINENO: result: no" >&5
53002echo "${ECHO_T}no" >&6; }
a848cd7e
SC
53003 no_cppunit=yes
53004 else
53005 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
53006 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
53007 cppunit_version=`$CPPUNIT_CONFIG --version`
53008
53009 cppunit_major_version=`echo $cppunit_version | \
53010 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53011 cppunit_minor_version=`echo $cppunit_version | \
53012 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53013 cppunit_micro_version=`echo $cppunit_version | \
53014 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53015
53016 cppunit_major_min=`echo $cppunit_version_min | \
53017 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53018 cppunit_minor_min=`echo $cppunit_version_min | \
53019 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53020 cppunit_micro_min=`echo $cppunit_version_min | \
53021 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53022
53023 cppunit_version_proper=`expr \
53024 $cppunit_major_version \> $cppunit_major_min \| \
53025 $cppunit_major_version \= $cppunit_major_min \& \
53026 $cppunit_minor_version \> $cppunit_minor_min \| \
53027 $cppunit_major_version \= $cppunit_major_min \& \
53028 $cppunit_minor_version \= $cppunit_minor_min \& \
53029 $cppunit_micro_version \>= $cppunit_micro_min `
53030
53031 if test "$cppunit_version_proper" = "1" ; then
47964710
VS
53032 { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
53033echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
a848cd7e 53034 else
47964710
VS
53035 { echo "$as_me:$LINENO: result: no" >&5
53036echo "${ECHO_T}no" >&6; }
a848cd7e
SC
53037 no_cppunit=yes
53038 fi
53039 fi
53040
53041 if test "x$no_cppunit" = x ; then
c2218763 53042 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
53043 else
53044 CPPUNIT_CFLAGS=""
53045 CPPUNIT_LIBS=""
c2218763 53046 :
a848cd7e
SC
53047 fi
53048
53049
53050
53051
53052
53053for subdir in `echo $SUBDIRS`; do
53054 if test -d ${srcdir}/${subdir} ; then
53055 if test "$wxUSE_GUI" = "yes"; then
53056 if test ${subdir} = "samples"; then
53057 makefiles="samples/Makefile.in $makefiles"
53058 for sample in `echo $SAMPLES_SUBDIRS`; do
53059 if test -d $srcdir/samples/$sample; then
53060 makefiles="samples/$sample/Makefile.in $makefiles"
53061 fi
53062 done
9c112555
MW
53063 else
53064 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
53065 eval "disabled=\$$disabled_var"
53066 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
252a5022 53067 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
a848cd7e
SC
53068 fi
53069 else if test ${subdir} = "samples"; then
c9bd045b
VZ
53070 makefiles="samples/Makefile.in $makefiles"
53071 for sample in `echo $SAMPLES_SUBDIRS`; do
53072 if test -d $srcdir/samples/$sample; then
53073 makefiles="samples/$sample/Makefile.in $makefiles"
53074 fi
53075 done
a848cd7e 53076 elif test ${subdir} = "utils"; then
6537ccf8
VS
53077 makefiles=""
53078 for util in HelpGen tex2rtf ; do
53079 if test -d $srcdir/utils/$util ; then
53080 makefiles="utils/$util/Makefile.in \
53081 utils/$util/src/Makefile.in \
53082 $makefiles"
53083 fi
53084 done
a848cd7e
SC
53085 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
53086 fi
53087 fi
53088
53089 for mkin in $makefiles ; do
53090 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
47964710 53091 ac_config_files="$ac_config_files $mk"
a848cd7e
SC
53092
53093 done
53094 fi
53095done
1c14217d 53096fi
a848cd7e
SC
53097cat >confcache <<\_ACEOF
53098# This file is a shell script that caches the results of configure
53099# tests run on this system so they can be shared between configure
53100# scripts and configure runs, see configure's option --config-cache.
53101# It is not useful on other systems. If it contains results you don't
53102# want to keep, you may remove or edit it.
53103#
53104# config.status only pays attention to the cache file if you give it
53105# the --recheck option to rerun configure.
53106#
53107# `ac_cv_env_foo' variables (set or unset) will be overridden when
53108# loading this file, other *unset* `ac_cv_foo' will be assigned the
53109# following values.
53110
53111_ACEOF
53112
53113# The following way of writing the cache mishandles newlines in values,
53114# but we know of no workaround that is simple, portable, and efficient.
47964710 53115# So, we kill variables containing newlines.
a848cd7e
SC
53116# Ultrix sh set writes to stderr and can't be redirected directly,
53117# and sets the high bit in the cache file unless we assign to the vars.
47964710
VS
53118(
53119 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53120 eval ac_val=\$$ac_var
53121 case $ac_val in #(
53122 *${as_nl}*)
53123 case $ac_var in #(
53124 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53125echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53126 esac
53127 case $ac_var in #(
53128 _ | IFS | as_nl) ;; #(
53129 *) $as_unset $ac_var ;;
53130 esac ;;
53131 esac
53132 done
53133
a848cd7e 53134 (set) 2>&1 |
47964710
VS
53135 case $as_nl`(ac_space=' '; set) 2>&1` in #(
53136 *${as_nl}ac_space=\ *)
a848cd7e
SC
53137 # `set' does not quote correctly, so add quotes (double-quote
53138 # substitution turns \\\\ into \\, and sed turns \\ into \).
53139 sed -n \
ac1cb8d3
VS
53140 "s/'/'\\\\''/g;
53141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47964710 53142 ;; #(
a848cd7e
SC
53143 *)
53144 # `set' quotes correctly as required by POSIX, so do not add quotes.
47964710 53145 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
a848cd7e 53146 ;;
47964710
VS
53147 esac |
53148 sort
53149) |
a848cd7e 53150 sed '
47964710 53151 /^ac_cv_env_/b end
a848cd7e 53152 t clear
47964710 53153 :clear
a848cd7e
SC
53154 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53155 t end
47964710
VS
53156 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53157 :end' >>confcache
53158if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53159 if test -w "$cache_file"; then
53160 test "x$cache_file" != "x/dev/null" &&
53161 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53162echo "$as_me: updating cache $cache_file" >&6;}
a848cd7e
SC
53163 cat confcache >$cache_file
53164 else
47964710
VS
53165 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53166echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a848cd7e
SC
53167 fi
53168fi
53169rm -f confcache
53170
53171test "x$prefix" = xNONE && prefix=$ac_default_prefix
53172# Let make expand exec_prefix.
53173test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53174
a848cd7e
SC
53175DEFS=-DHAVE_CONFIG_H
53176
53177ac_libobjs=
53178ac_ltlibobjs=
53179for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53180 # 1. Remove the extension, and $U if already installed.
47964710
VS
53181 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53182 ac_i=`echo "$ac_i" | sed "$ac_script"`
53183 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
53184 # will be set to the directory where LIBOBJS objects are built.
53185 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53186 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a848cd7e
SC
53187done
53188LIBOBJS=$ac_libobjs
53189
53190LTLIBOBJS=$ac_ltlibobjs
53191
53192
53193
53194: ${CONFIG_STATUS=./config.status}
53195ac_clean_files_save=$ac_clean_files
53196ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53197{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53198echo "$as_me: creating $CONFIG_STATUS" >&6;}
53199cat >$CONFIG_STATUS <<_ACEOF
53200#! $SHELL
53201# Generated by $as_me.
53202# Run this file to recreate the current configuration.
53203# Compiler output produced by configure, useful for debugging
53204# configure, is in config.log if it exists.
53205
53206debug=false
53207ac_cs_recheck=false
53208ac_cs_silent=false
53209SHELL=\${CONFIG_SHELL-$SHELL}
53210_ACEOF
53211
53212cat >>$CONFIG_STATUS <<\_ACEOF
53213## --------------------- ##
53214## M4sh Initialization. ##
53215## --------------------- ##
53216
47964710
VS
53217# Be more Bourne compatible
53218DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
53219if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53220 emulate sh
53221 NULLCMD=:
53222 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53223 # is contrary to our usage. Disable this feature.
53224 alias -g '${1+"$@"}'='"$@"'
47964710
VS
53225 setopt NO_GLOB_SUBST
53226else
53227 case `(set -o) 2>/dev/null` in
53228 *posix*) set -o posix ;;
53229esac
53230
53231fi
53232
53233
53234
53235
53236# PATH needs CR
53237# Avoid depending upon Character Ranges.
53238as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53239as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53240as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53241as_cr_digits='0123456789'
53242as_cr_alnum=$as_cr_Letters$as_cr_digits
53243
53244# The user is always right.
53245if test "${PATH_SEPARATOR+set}" != set; then
53246 echo "#! /bin/sh" >conf$$.sh
53247 echo "exit 0" >>conf$$.sh
53248 chmod +x conf$$.sh
53249 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53250 PATH_SEPARATOR=';'
53251 else
53252 PATH_SEPARATOR=:
53253 fi
53254 rm -f conf$$.sh
7fd3acaf
RD
53255fi
53256
a848cd7e 53257# Support unset when possible.
ac1cb8d3 53258if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
53259 as_unset=unset
53260else
53261 as_unset=false
53262fi
53263
53264
47964710
VS
53265# IFS
53266# We need space, tab and new line, in precisely that order. Quoting is
53267# there to prevent editors from complaining about space-tab.
53268# (If _AS_PATH_WALK were called with IFS unset, it would disable word
53269# splitting by setting IFS to empty value.)
53270as_nl='
53271'
53272IFS=" "" $as_nl"
53273
53274# Find who we are. Look in the path if we contain no directory separator.
53275case $0 in
53276 *[\\/]* ) as_myself=$0 ;;
53277 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53278for as_dir in $PATH
53279do
53280 IFS=$as_save_IFS
53281 test -z "$as_dir" && as_dir=.
53282 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53283done
53284IFS=$as_save_IFS
53285
53286 ;;
53287esac
53288# We did not find ourselves, most probably we were run as `sh COMMAND'
53289# in which case we are not to be found in the path.
53290if test "x$as_myself" = x; then
53291 as_myself=$0
53292fi
53293if test ! -f "$as_myself"; then
53294 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53295 { (exit 1); exit 1; }
53296fi
53297
a848cd7e 53298# Work around bugs in pre-3.0 UWIN ksh.
47964710
VS
53299for as_var in ENV MAIL MAILPATH
53300do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53301done
a848cd7e
SC
53302PS1='$ '
53303PS2='> '
53304PS4='+ '
53305
53306# NLS nuisances.
53307for as_var in \
53308 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53309 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53310 LC_TELEPHONE LC_TIME
53311do
ac1cb8d3 53312 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
53313 eval $as_var=C; export $as_var
53314 else
47964710 53315 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
a848cd7e
SC
53316 fi
53317done
53318
53319# Required to use basename.
47964710
VS
53320if expr a : '\(a\)' >/dev/null 2>&1 &&
53321 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a848cd7e
SC
53322 as_expr=expr
53323else
53324 as_expr=false
53325fi
53326
47964710 53327if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
a848cd7e
SC
53328 as_basename=basename
53329else
53330 as_basename=false
53331fi
53332
53333
53334# Name of the executable.
47964710 53335as_me=`$as_basename -- "$0" ||
a848cd7e
SC
53336$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53337 X"$0" : 'X\(//\)$' \| \
47964710 53338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
a848cd7e 53339echo X/"$0" |
47964710
VS
53340 sed '/^.*\/\([^/][^/]*\)\/*$/{
53341 s//\1/
53342 q
53343 }
53344 /^X\/\(\/\/\)$/{
53345 s//\1/
53346 q
53347 }
53348 /^X\/\(\/\).*/{
53349 s//\1/
53350 q
53351 }
53352 s/.*/./; q'`
bd8a7646 53353
47964710
VS
53354# CDPATH.
53355$as_unset CDPATH
23575150 53356
4db03d26 53357
bd8a7646 53358
bd8a7646
RR
53359 as_lineno_1=$LINENO
53360 as_lineno_2=$LINENO
bd8a7646 53361 test "x$as_lineno_1" != "x$as_lineno_2" &&
47964710 53362 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a848cd7e
SC
53363
53364 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53365 # uniformly replaced by the line number. The first 'sed' inserts a
47964710
VS
53366 # line-number line after each line using $LINENO; the second 'sed'
53367 # does the real work. The second script uses 'N' to pair each
53368 # line-number line with the line containing $LINENO, and appends
53369 # trailing '-' during substitution so that $LINENO is not a special
53370 # case at line end.
a848cd7e 53371 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
47964710
VS
53372 # scripts with optimization help from Paolo Bonzini. Blame Lee
53373 # E. McMahon (1931-1989) for sed's syntax. :-)
53374 sed -n '
53375 p
53376 /[$]LINENO/=
53377 ' <$as_myself |
a848cd7e 53378 sed '
47964710
VS
53379 s/[$]LINENO.*/&-/
53380 t lineno
53381 b
53382 :lineno
a848cd7e 53383 N
47964710
VS
53384 :loop
53385 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a848cd7e 53386 t loop
47964710 53387 s/-\n.*//
a848cd7e 53388 ' >$as_me.lineno &&
47964710
VS
53389 chmod +x "$as_me.lineno" ||
53390 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a848cd7e
SC
53391 { (exit 1); exit 1; }; }
53392
53393 # Don't try to exec as it changes $[0], causing all sort of problems
53394 # (the dirname of $[0] is not the place where we might find the
47964710
VS
53395 # original and so on. Autoconf is especially sensitive to this).
53396 . "./$as_me.lineno"
a848cd7e
SC
53397 # Exit status is that of the last command.
53398 exit
53399}
53400
53401
47964710
VS
53402if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53403 as_dirname=dirname
53404else
53405 as_dirname=false
53406fi
53407
53408ECHO_C= ECHO_N= ECHO_T=
53409case `echo -n x` in
53410-n*)
53411 case `echo 'x\c'` in
53412 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
53413 *) ECHO_C='\c';;
53414 esac;;
53415*)
53416 ECHO_N='-n';;
a848cd7e
SC
53417esac
53418
47964710
VS
53419if expr a : '\(a\)' >/dev/null 2>&1 &&
53420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a848cd7e
SC
53421 as_expr=expr
53422else
53423 as_expr=false
53424fi
53425
53426rm -f conf$$ conf$$.exe conf$$.file
47964710
VS
53427if test -d conf$$.dir; then
53428 rm -f conf$$.dir/conf$$.file
53429else
53430 rm -f conf$$.dir
53431 mkdir conf$$.dir
53432fi
a848cd7e
SC
53433echo >conf$$.file
53434if ln -s conf$$.file conf$$ 2>/dev/null; then
47964710
VS
53435 as_ln_s='ln -s'
53436 # ... but there are two gotchas:
53437 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53438 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53439 # In both cases, we have to default to `cp -p'.
53440 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
a848cd7e 53441 as_ln_s='cp -p'
a848cd7e
SC
53442elif ln conf$$.file conf$$ 2>/dev/null; then
53443 as_ln_s=ln
53444else
53445 as_ln_s='cp -p'
53446fi
47964710
VS
53447rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53448rmdir conf$$.dir 2>/dev/null
a848cd7e
SC
53449
53450if mkdir -p . 2>/dev/null; then
53451 as_mkdir_p=:
53452else
ac1cb8d3 53453 test -d ./-p && rmdir ./-p
a848cd7e
SC
53454 as_mkdir_p=false
53455fi
53456
47964710
VS
53457if test -x / >/dev/null 2>&1; then
53458 as_test_x='test -x'
53459else
53460 if ls -dL / >/dev/null 2>&1; then
53461 as_ls_L_option=L
53462 else
53463 as_ls_L_option=
53464 fi
53465 as_test_x='
53466 eval sh -c '\''
53467 if test -d "$1"; then
53468 test -d "$1/.";
53469 else
53470 case $1 in
53471 -*)set "./$1";;
53472 esac;
53473 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53474 ???[sx]*):;;*)false;;esac;fi
53475 '\'' sh
53476 '
53477fi
53478as_executable_p=$as_test_x
a848cd7e
SC
53479
53480# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 53481as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
53482
53483# Sed expression to map a string onto a valid variable name.
ac1cb8d3 53484as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
53485
53486
a848cd7e
SC
53487exec 6>&1
53488
47964710 53489# Save the log message, to keep $[0] and so on meaningful, and to
a848cd7e 53490# report actual input values of CONFIG_FILES etc. instead of their
47964710
VS
53491# values after options handling.
53492ac_log="
7fd3acaf 53493This file was extended by wxWidgets $as_me 2.9.0, which was
47964710 53494generated by GNU Autoconf 2.61. Invocation command line was
a848cd7e
SC
53495
53496 CONFIG_FILES = $CONFIG_FILES
53497 CONFIG_HEADERS = $CONFIG_HEADERS
53498 CONFIG_LINKS = $CONFIG_LINKS
53499 CONFIG_COMMANDS = $CONFIG_COMMANDS
53500 $ $0 $@
53501
47964710
VS
53502on `(hostname || uname -n) 2>/dev/null | sed 1q`
53503"
53504
a848cd7e
SC
53505_ACEOF
53506
47964710 53507cat >>$CONFIG_STATUS <<_ACEOF
a848cd7e 53508# Files that config.status was made for.
47964710
VS
53509config_files="$ac_config_files"
53510config_headers="$ac_config_headers"
53511config_commands="$ac_config_commands"
bd8a7646 53512
47964710 53513_ACEOF
a848cd7e
SC
53514
53515cat >>$CONFIG_STATUS <<\_ACEOF
a848cd7e
SC
53516ac_cs_usage="\
53517\`$as_me' instantiates files from templates according to the
53518current configuration.
53519
53520Usage: $0 [OPTIONS] [FILE]...
53521
53522 -h, --help print this help, then exit
47964710 53523 -V, --version print version number and configuration settings, then exit
a848cd7e
SC
53524 -q, --quiet do not print progress messages
53525 -d, --debug don't remove temporary files
53526 --recheck update $as_me by reconfiguring in the same conditions
53527 --file=FILE[:TEMPLATE]
ac1cb8d3 53528 instantiate the configuration file FILE
a848cd7e 53529 --header=FILE[:TEMPLATE]
ac1cb8d3 53530 instantiate the configuration header FILE
a848cd7e
SC
53531
53532Configuration files:
53533$config_files
53534
53535Configuration headers:
53536$config_headers
53537
53538Configuration commands:
53539$config_commands
53540
53541Report bugs to <bug-autoconf@gnu.org>."
bd8a7646 53542
47964710 53543_ACEOF
a848cd7e
SC
53544cat >>$CONFIG_STATUS <<_ACEOF
53545ac_cs_version="\\
7fd3acaf 53546wxWidgets config.status 2.9.0
47964710
VS
53547configured by $0, generated by GNU Autoconf 2.61,
53548 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
a848cd7e 53549
47964710 53550Copyright (C) 2006 Free Software Foundation, Inc.
a848cd7e
SC
53551This config.status script is free software; the Free Software Foundation
53552gives unlimited permission to copy, distribute and modify it."
47964710
VS
53553
53554ac_pwd='$ac_pwd'
53555srcdir='$srcdir'
53556INSTALL='$INSTALL'
a848cd7e
SC
53557_ACEOF
53558
53559cat >>$CONFIG_STATUS <<\_ACEOF
53560# If no file are specified by the user, then we need to provide default
53561# value. By we need to know if files were specified by the user.
53562ac_need_defaults=:
53563while test $# != 0
53564do
53565 case $1 in
53566 --*=*)
47964710
VS
53567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
53568 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a848cd7e
SC
53569 ac_shift=:
53570 ;;
47964710 53571 *)
a848cd7e
SC
53572 ac_option=$1
53573 ac_optarg=$2
53574 ac_shift=shift
53575 ;;
a848cd7e
SC
53576 esac
53577
53578 case $ac_option in
53579 # Handling of the options.
a848cd7e
SC
53580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53581 ac_cs_recheck=: ;;
47964710
VS
53582 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53583 echo "$ac_cs_version"; exit ;;
53584 --debug | --debu | --deb | --de | --d | -d )
a848cd7e
SC
53585 debug=: ;;
53586 --file | --fil | --fi | --f )
53587 $ac_shift
53588 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53589 ac_need_defaults=false;;
53590 --header | --heade | --head | --hea )
53591 $ac_shift
53592 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53593 ac_need_defaults=false;;
47964710
VS
53594 --he | --h)
53595 # Conflict between --help and --header
53596 { echo "$as_me: error: ambiguous option: $1
53597Try \`$0 --help' for more information." >&2
53598 { (exit 1); exit 1; }; };;
53599 --help | --hel | -h )
53600 echo "$ac_cs_usage"; exit ;;
a848cd7e
SC
53601 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53602 | -silent | --silent | --silen | --sile | --sil | --si | --s)
53603 ac_cs_silent=: ;;
53604
53605 # This is an error.
47964710
VS
53606 -*) { echo "$as_me: error: unrecognized option: $1
53607Try \`$0 --help' for more information." >&2
a848cd7e
SC
53608 { (exit 1); exit 1; }; } ;;
53609
47964710
VS
53610 *) ac_config_targets="$ac_config_targets $1"
53611 ac_need_defaults=false ;;
a848cd7e
SC
53612
53613 esac
53614 shift
53615done
53616
53617ac_configure_extra_args=
53618
53619if $ac_cs_silent; then
53620 exec 6>/dev/null
53621 ac_configure_extra_args="$ac_configure_extra_args --silent"
53622fi
53623
53624_ACEOF
53625cat >>$CONFIG_STATUS <<_ACEOF
53626if \$ac_cs_recheck; then
47964710
VS
53627 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53628 CONFIG_SHELL=$SHELL
53629 export CONFIG_SHELL
53630 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a848cd7e
SC
53631fi
53632
53633_ACEOF
47964710
VS
53634cat >>$CONFIG_STATUS <<\_ACEOF
53635exec 5>>config.log
53636{
53637 echo
53638 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53639## Running $as_me. ##
53640_ASBOX
53641 echo "$ac_log"
53642} >&5
a848cd7e 53643
47964710 53644_ACEOF
a848cd7e
SC
53645cat >>$CONFIG_STATUS <<_ACEOF
53646#
47964710 53647# INIT-COMMANDS
a848cd7e
SC
53648#
53649
5c60e845
MW
53650 CPP="$CPP"
53651 infile="$srcdir/include/wx/msw/genrcdefs.h"
53652 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
53653
53654
ceec2216
RL
53655 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53656 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53657 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53658 LN_S="${LN_S}"
a848cd7e
SC
53659
53660
53661_ACEOF
53662
bd8a7646 53663cat >>$CONFIG_STATUS <<\_ACEOF
47964710
VS
53664
53665# Handling of arguments.
a848cd7e
SC
53666for ac_config_target in $ac_config_targets
53667do
47964710
VS
53668 case $ac_config_target in
53669 "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
53670 "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
53671 "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
53672 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
53673 "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
53674 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53675 "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
53676 "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
53677
a848cd7e
SC
53678 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53679echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53680 { (exit 1); exit 1; }; };;
53681 esac
53682done
53683
47964710 53684
a848cd7e
SC
53685# If the user did not use the arguments to specify the items to instantiate,
53686# then the envvar interface is used. Set only those that are not.
53687# We use the long form for the default assignment because of an extremely
53688# bizarre bug on SunOS 4.1.3.
53689if $ac_need_defaults; then
53690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53691 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53692 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53693fi
53694
53695# Have a temporary directory for convenience. Make it in the build tree
47964710 53696# simply because there is no reason against having it here, and in addition,
a848cd7e 53697# creating and moving files from /tmp can sometimes cause problems.
47964710
VS
53698# Hook for its removal unless debugging.
53699# Note that there is a small window in which the directory will not be cleaned:
53700# after its creation but before its name has been assigned to `$tmp'.
a848cd7e
SC
53701$debug ||
53702{
47964710
VS
53703 tmp=
53704 trap 'exit_status=$?
53705 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53706' 0
a848cd7e
SC
53707 trap '{ (exit 1); exit 1; }' 1 2 13 15
53708}
a848cd7e
SC
53709# Create a (secure) tmp directory for tmp files.
53710
53711{
47964710 53712 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
a848cd7e
SC
53713 test -n "$tmp" && test -d "$tmp"
53714} ||
53715{
47964710
VS
53716 tmp=./conf$$-$RANDOM
53717 (umask 077 && mkdir "$tmp")
a848cd7e
SC
53718} ||
53719{
53720 echo "$me: cannot create a temporary directory in ." >&2
53721 { (exit 1); exit 1; }
53722}
53723
bd8a7646 53724#
47964710 53725# Set up the sed scripts for CONFIG_FILES section.
bd8a7646 53726#
84ebfcbd 53727
bd8a7646
RR
53728# No need to generate the scripts if there are no CONFIG_FILES.
53729# This happens for instance when ./config.status config.h
47964710
VS
53730if test -n "$CONFIG_FILES"; then
53731
53732_ACEOF
53733
53734
53735
53736ac_delim='%!_!# '
53737for ac_last_try in false false false false false :; do
53738 cat >conf$$subs.sed <<_ACEOF
53739SHELL!$SHELL$ac_delim
53740PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
53741PACKAGE_NAME!$PACKAGE_NAME$ac_delim
53742PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
53743PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
53744PACKAGE_STRING!$PACKAGE_STRING$ac_delim
53745PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
53746exec_prefix!$exec_prefix$ac_delim
53747prefix!$prefix$ac_delim
53748program_transform_name!$program_transform_name$ac_delim
53749bindir!$bindir$ac_delim
53750sbindir!$sbindir$ac_delim
53751libexecdir!$libexecdir$ac_delim
53752datarootdir!$datarootdir$ac_delim
53753datadir!$datadir$ac_delim
53754sysconfdir!$sysconfdir$ac_delim
53755sharedstatedir!$sharedstatedir$ac_delim
53756localstatedir!$localstatedir$ac_delim
53757includedir!$includedir$ac_delim
53758oldincludedir!$oldincludedir$ac_delim
53759docdir!$docdir$ac_delim
53760infodir!$infodir$ac_delim
53761htmldir!$htmldir$ac_delim
53762dvidir!$dvidir$ac_delim
53763pdfdir!$pdfdir$ac_delim
53764psdir!$psdir$ac_delim
53765libdir!$libdir$ac_delim
53766localedir!$localedir$ac_delim
53767mandir!$mandir$ac_delim
53768DEFS!$DEFS$ac_delim
53769ECHO_C!$ECHO_C$ac_delim
53770ECHO_N!$ECHO_N$ac_delim
53771ECHO_T!$ECHO_T$ac_delim
53772LIBS!$LIBS$ac_delim
53773build_alias!$build_alias$ac_delim
53774host_alias!$host_alias$ac_delim
53775target_alias!$target_alias$ac_delim
53776build!$build$ac_delim
53777build_cpu!$build_cpu$ac_delim
53778build_vendor!$build_vendor$ac_delim
53779build_os!$build_os$ac_delim
53780host!$host$ac_delim
53781host_cpu!$host_cpu$ac_delim
53782host_vendor!$host_vendor$ac_delim
53783host_os!$host_os$ac_delim
53784target!$target$ac_delim
53785target_cpu!$target_cpu$ac_delim
53786target_vendor!$target_vendor$ac_delim
53787target_os!$target_os$ac_delim
53788wx_top_builddir!$wx_top_builddir$ac_delim
53789CC!$CC$ac_delim
53790CFLAGS!$CFLAGS$ac_delim
53791LDFLAGS!$LDFLAGS$ac_delim
53792CPPFLAGS!$CPPFLAGS$ac_delim
53793ac_ct_CC!$ac_ct_CC$ac_delim
53794EXEEXT!$EXEEXT$ac_delim
53795OBJEXT!$OBJEXT$ac_delim
53796CPP!$CPP$ac_delim
53797GREP!$GREP$ac_delim
53798EGREP!$EGREP$ac_delim
53799CXX!$CXX$ac_delim
53800CXXFLAGS!$CXXFLAGS$ac_delim
53801ac_ct_CXX!$ac_ct_CXX$ac_delim
53802AR!$AR$ac_delim
53803subdirs!$subdirs$ac_delim
53804PKG_CONFIG!$PKG_CONFIG$ac_delim
53805GTK_CFLAGS!$GTK_CFLAGS$ac_delim
53806GTK_LIBS!$GTK_LIBS$ac_delim
53807GTK_CONFIG!$GTK_CONFIG$ac_delim
53808DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
53809DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
53810XMKMF!$XMKMF$ac_delim
53811X_CFLAGS!$X_CFLAGS$ac_delim
53812X_PRE_LIBS!$X_PRE_LIBS$ac_delim
53813X_LIBS!$X_LIBS$ac_delim
53814X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
53815PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
53816PANGOX_LIBS!$PANGOX_LIBS$ac_delim
53817PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
53818PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
53819PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
53820PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
53821CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
53822CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
53823LIBICONV!$LIBICONV$ac_delim
53824SDL_CONFIG!$SDL_CONFIG$ac_delim
53825SDL_CFLAGS!$SDL_CFLAGS$ac_delim
53826SDL_LIBS!$SDL_LIBS$ac_delim
53827GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
53828GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
53829LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
53830LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
53831GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
53832GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
53833HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
53834HILDON_LIBS!$HILDON_LIBS$ac_delim
53835CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
53836_ACEOF
53837
53838 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53839 break
53840 elif $ac_last_try; then
53841 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53842echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53843 { (exit 1); exit 1; }; }
53844 else
53845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
84ebfcbd 53846 fi
47964710
VS
53847done
53848
53849ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53850if test -n "$ac_eof"; then
53851 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53852 ac_eof=`expr $ac_eof + 1`
53853fi
53854
53855cat >>$CONFIG_STATUS <<_ACEOF
53856cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
53857/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53858_ACEOF
53859sed '
53860s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53861s/^/s,@/; s/!/@,|#_!!_#|/
53862:n
53863t n
53864s/'"$ac_delim"'$/,g/; t
53865s/$/\\/; p
53866N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53867' >>$CONFIG_STATUS <conf$$subs.sed
53868rm -f conf$$subs.sed
53869cat >>$CONFIG_STATUS <<_ACEOF
53870CEOF$ac_eof
53871_ACEOF
53872
53873
53874ac_delim='%!_!# '
53875for ac_last_try in false false false false false :; do
53876 cat >conf$$subs.sed <<_ACEOF
53877CAIRO_LIBS!$CAIRO_LIBS$ac_delim
53878GST_CFLAGS!$GST_CFLAGS$ac_delim
53879GST_LIBS!$GST_LIBS$ac_delim
53880ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
53881BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
53882STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
53883STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
53884wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
53885wxUSE_REGEX!$wxUSE_REGEX$ac_delim
53886wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
53887wxUSE_ODBC!$wxUSE_ODBC$ac_delim
53888wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
53889wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
53890wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
53891VENDOR!$VENDOR$ac_delim
53892OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
53893WX_FLAVOUR!$WX_FLAVOUR$ac_delim
53894WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
53895WXUNIV!$WXUNIV$ac_delim
53896MONOLITHIC!$MONOLITHIC$ac_delim
53897USE_PLUGINS!$USE_PLUGINS$ac_delim
53898CXXWARNINGS!$CXXWARNINGS$ac_delim
53899EXTRALIBS!$EXTRALIBS$ac_delim
53900EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
53901EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
53902EXTRALIBS_ODBC!$EXTRALIBS_ODBC$ac_delim
53903EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
53904EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
53905EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
53906WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
53907EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
53908EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
53909EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
53910EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
53911UNICODE!$UNICODE$ac_delim
53912BUILD!$BUILD$ac_delim
53913DEBUG_INFO!$DEBUG_INFO$ac_delim
53914DEBUG_FLAG!$DEBUG_FLAG$ac_delim
53915TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
53916TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
53917SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
53918SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
53919HOST_SUFFIX!$HOST_SUFFIX$ac_delim
53920CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
53921CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
53922RANLIB!$RANLIB$ac_delim
53923INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
53924INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
53925INSTALL_DATA!$INSTALL_DATA$ac_delim
53926LN_S!$LN_S$ac_delim
53927SET_MAKE!$SET_MAKE$ac_delim
53928MAKE_SET!$MAKE_SET$ac_delim
53929AROPTIONS!$AROPTIONS$ac_delim
53930STRIP!$STRIP$ac_delim
53931NM!$NM$ac_delim
53932INSTALL_DIR!$INSTALL_DIR$ac_delim
53933LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
53934IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
53935PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
53936PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
53937PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
53938PLATFORM_MAC!$PLATFORM_MAC$ac_delim
53939PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
53940PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
53941PLATFORM_OS2!$PLATFORM_OS2$ac_delim
53942PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
53943SO_SUFFIX!$SO_SUFFIX$ac_delim
53944SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
53945DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
53946LIBPREFIX!$LIBPREFIX$ac_delim
53947LIBEXT!$LIBEXT$ac_delim
53948DLLPREFIX!$DLLPREFIX$ac_delim
53949DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
53950dlldir!$dlldir$ac_delim
53951AIX_CXX_LD!$AIX_CXX_LD$ac_delim
53952SHARED_LD_CC!$SHARED_LD_CC$ac_delim
53953SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
53954SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
53955SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
53956PIC_FLAG!$PIC_FLAG$ac_delim
53957WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
53958USE_SOVERSION!$USE_SOVERSION$ac_delim
53959USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
53960USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
53961USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
53962USE_MACVERSION!$USE_MACVERSION$ac_delim
53963USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
53964SONAME_FLAG!$SONAME_FLAG$ac_delim
53965DEPS_TRACKING!$DEPS_TRACKING$ac_delim
53966BK_DEPS!$BK_DEPS$ac_delim
53967WINDRES!$WINDRES$ac_delim
53968REZ!$REZ$ac_delim
53969SETFILE!$SETFILE$ac_delim
53970GCC_PCH!$GCC_PCH$ac_delim
53971ICC_PCH!$ICC_PCH$ac_delim
53972BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
53973COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
53974_ACEOF
53975
53976 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53977 break
53978 elif $ac_last_try; then
53979 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53980echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53981 { (exit 1); exit 1; }; }
53982 else
53983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53984 fi
53985done
53986
53987ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53988if test -n "$ac_eof"; then
53989 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53990 ac_eof=`expr $ac_eof + 1`
53991fi
53992
53993cat >>$CONFIG_STATUS <<_ACEOF
53994cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
53995/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53996_ACEOF
53997sed '
53998s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53999s/^/s,@/; s/!/@,|#_!!_#|/
54000:n
54001t n
54002s/'"$ac_delim"'$/,g/; t
54003s/$/\\/; p
54004N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54005' >>$CONFIG_STATUS <conf$$subs.sed
54006rm -f conf$$subs.sed
54007cat >>$CONFIG_STATUS <<_ACEOF
54008CEOF$ac_eof
54009_ACEOF
54010
54011
54012ac_delim='%!_!# '
54013for ac_last_try in false false false false false :; do
54014 cat >conf$$subs.sed <<_ACEOF
54015COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
54016COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
54017COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
54018COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
54019COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
54020COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
54021COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
54022COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
54023COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
54024COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
54025COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
54026COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
54027COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
54028COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
54029COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
54030COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
54031COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
54032COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
54033COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
54034COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
54035COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54036COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1$ac_delim
54037COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
54038COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1$ac_delim
54039COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
54040COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
54041COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
54042COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
54043COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
54044COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
54045COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
54046COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
54047COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1$ac_delim
54048COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
54049COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1$ac_delim
54050COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
54051COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
54052COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
54053COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
54054COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
54055COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54056COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1$ac_delim
54057COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
54058COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
54059COND_MONOLITHIC_0_USE_ODBC_1!$COND_MONOLITHIC_0_USE_ODBC_1$ac_delim
54060COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
54061COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
54062COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
54063COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
54064COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
54065COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
54066COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
54067COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
54068COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
54069COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
54070COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
54071COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
54072COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
54073COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
54074COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
54075COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
54076COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
54077COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
54078COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
54079COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
54080COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
54081COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
54082COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
54083COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
54084COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
54085COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
54086COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
54087COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
54088COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
54089COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
54090COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
54091COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
54092COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
54093COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
54094COND_SHARED_0!$COND_SHARED_0$ac_delim
54095COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
54096COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
54097COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
54098COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
54099COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54100COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54101COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54102COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54103COND_SHARED_0_USE_XRC_1!$COND_SHARED_0_USE_XRC_1$ac_delim
54104COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
54105COND_SHARED_0_WXUSE_ODBC_BUILTIN!$COND_SHARED_0_WXUSE_ODBC_BUILTIN$ac_delim
54106COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
54107COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
54108COND_SHARED_1!$COND_SHARED_1$ac_delim
54109COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54110COND_SHARED_1_USE_XRC_1!$COND_SHARED_1_USE_XRC_1$ac_delim
54111COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54112_ACEOF
54113
54114 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54115 break
54116 elif $ac_last_try; then
54117 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54118echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54119 { (exit 1); exit 1; }; }
54120 else
54121 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54122 fi
54123done
54124
54125ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54126if test -n "$ac_eof"; then
54127 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54128 ac_eof=`expr $ac_eof + 1`
54129fi
84ebfcbd 54130
47964710
VS
54131cat >>$CONFIG_STATUS <<_ACEOF
54132cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54133/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
84ebfcbd 54134_ACEOF
47964710
VS
54135sed '
54136s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54137s/^/s,@/; s/!/@,|#_!!_#|/
54138:n
54139t n
54140s/'"$ac_delim"'$/,g/; t
54141s/$/\\/; p
54142N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54143' >>$CONFIG_STATUS <conf$$subs.sed
54144rm -f conf$$subs.sed
54145cat >>$CONFIG_STATUS <<_ACEOF
54146CEOF$ac_eof
54147_ACEOF
54148
54149
54150ac_delim='%!_!# '
54151for ac_last_try in false false false false false :; do
54152 cat >conf$$subs.sed <<_ACEOF
54153COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54154COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54155COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54156COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54157COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54158COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54159COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54160COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54161COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54162COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54163COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54164COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54165COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54166COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54167COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
54168COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
54169COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54170COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54171COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54172COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54173COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54174COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54175COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54176COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54177COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54178COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54179COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54180COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54181COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54182COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54183COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54184COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54185COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54186COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54187COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54188COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54189COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54190COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54191COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54192COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54193COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54194COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54195COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54196COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54197COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54198COND_USE_ODBC_1!$COND_USE_ODBC_1$ac_delim
54199COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54200COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54201COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54202COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54203COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54204COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
54205COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54206COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54207COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54208COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54209COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54210COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54211COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54212COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54213COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54214COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54215COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54216COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54217COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54218COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54219COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54220COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54221COND_WXUSE_ODBC_BUILTIN!$COND_WXUSE_ODBC_BUILTIN$ac_delim
54222COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54223COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54224DEREZ!$DEREZ$ac_delim
54225SHARED!$SHARED$ac_delim
54226WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54227WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54228USE_GUI!$USE_GUI$ac_delim
54229AFMINSTALL!$AFMINSTALL$ac_delim
54230WIN32INSTALL!$WIN32INSTALL$ac_delim
54231TOOLKIT!$TOOLKIT$ac_delim
54232TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54233TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54234TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54235cross_compiling!$cross_compiling$ac_delim
54236WIDGET_SET!$WIDGET_SET$ac_delim
54237WX_RELEASE!$WX_RELEASE$ac_delim
54238WX_VERSION!$WX_VERSION$ac_delim
54239WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54240WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54241WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
54242WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54243WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54244WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54245WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54246WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54247WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54248WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54249EXE_LINKER!$EXE_LINKER$ac_delim
54250_ACEOF
54251
54252 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54253 break
54254 elif $ac_last_try; then
54255 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54256echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54257 { (exit 1); exit 1; }; }
54258 else
54259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54260 fi
54261done
54262
54263ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54264if test -n "$ac_eof"; then
54265 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54266 ac_eof=`expr $ac_eof + 1`
54267fi
54268
54269cat >>$CONFIG_STATUS <<_ACEOF
54270cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54271/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54272_ACEOF
54273sed '
54274s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54275s/^/s,@/; s/!/@,|#_!!_#|/
54276:n
54277t n
54278s/'"$ac_delim"'$/,g/; t
54279s/$/\\/; p
54280N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54281' >>$CONFIG_STATUS <conf$$subs.sed
54282rm -f conf$$subs.sed
54283cat >>$CONFIG_STATUS <<_ACEOF
54284CEOF$ac_eof
54285_ACEOF
54286
54287
54288ac_delim='%!_!# '
54289for ac_last_try in false false false false false :; do
54290 cat >conf$$subs.sed <<_ACEOF
54291GUIDIST!$GUIDIST$ac_delim
54292DISTDIR!$DISTDIR$ac_delim
54293SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54294LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54295OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54296DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54297WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54298RESCOMP!$RESCOMP$ac_delim
54299RESFLAGS!$RESFLAGS$ac_delim
54300RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54301WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54302WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54303LIBWXMACRES!$LIBWXMACRES$ac_delim
54304POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54305MACSETFILE!$MACSETFILE$ac_delim
54306GCC!$GCC$ac_delim
54307DLLTOOL!$DLLTOOL$ac_delim
54308CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54309LIBOBJS!$LIBOBJS$ac_delim
54310LTLIBOBJS!$LTLIBOBJS$ac_delim
54311_ACEOF
54312
54313 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
54314 break
54315 elif $ac_last_try; then
54316 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54317echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54318 { (exit 1); exit 1; }; }
54319 else
54320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54321 fi
54322done
54323
54324ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54325if test -n "$ac_eof"; then
54326 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54327 ac_eof=`expr $ac_eof + 1`
54328fi
54329
54330cat >>$CONFIG_STATUS <<_ACEOF
54331cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54332/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54333_ACEOF
54334sed '
54335s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54336s/^/s,@/; s/!/@,|#_!!_#|/
54337:n
54338t n
54339s/'"$ac_delim"'$/,g/; t
54340s/$/\\/; p
54341N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54342' >>$CONFIG_STATUS <conf$$subs.sed
54343rm -f conf$$subs.sed
54344cat >>$CONFIG_STATUS <<_ACEOF
54345:end
54346s/|#_!!_#|//g
54347CEOF$ac_eof
54348_ACEOF
54349
54350
54351# VPATH may cause trouble with some makes, so we remove $(srcdir),
54352# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54353# trailing colons and then remove the whole line if VPATH becomes empty
54354# (actually we leave an empty line to preserve line numbers).
54355if test "x$srcdir" = x.; then
54356 ac_vpsub='/^[ ]*VPATH[ ]*=/{
54357s/:*\$(srcdir):*/:/
54358s/:*\${srcdir}:*/:/
54359s/:*@srcdir@:*/:/
54360s/^\([^=]*=[ ]*\):*/\1/
54361s/:*$//
54362s/^[^=]*=[ ]*$//
54363}'
54364fi
54365
a848cd7e 54366cat >>$CONFIG_STATUS <<\_ACEOF
47964710
VS
54367fi # test -n "$CONFIG_FILES"
54368
54369
54370for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
54371do
54372 case $ac_tag in
54373 :[FHLC]) ac_mode=$ac_tag; continue;;
a848cd7e 54374 esac
47964710
VS
54375 case $ac_mode$ac_tag in
54376 :[FHL]*:*);;
54377 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54378echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54379 { (exit 1); exit 1; }; };;
54380 :[FH]-) ac_tag=-:-;;
54381 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54382 esac
54383 ac_save_IFS=$IFS
54384 IFS=:
54385 set x $ac_tag
54386 IFS=$ac_save_IFS
54387 shift
54388 ac_file=$1
54389 shift
a848cd7e 54390
47964710
VS
54391 case $ac_mode in
54392 :L) ac_source=$1;;
54393 :[FH])
54394 ac_file_inputs=
54395 for ac_f
54396 do
54397 case $ac_f in
54398 -) ac_f="$tmp/stdin";;
54399 *) # Look for the file first in the build tree, then in the source tree
54400 # (if the path is not absolute). The absolute path cannot be DOS-style,
54401 # because $ac_f cannot contain `:'.
54402 test -f "$ac_f" ||
54403 case $ac_f in
54404 [\\/$]*) false;;
54405 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54406 esac ||
54407 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54408echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54409 { (exit 1); exit 1; }; };;
54410 esac
54411 ac_file_inputs="$ac_file_inputs $ac_f"
54412 done
54413
54414 # Let's still pretend it is `configure' which instantiates (i.e., don't
54415 # use $as_me), people would be surprised to read:
54416 # /* config.h. Generated by config.status. */
54417 configure_input="Generated from "`IFS=:
54418 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54419 if test x"$ac_file" != x-; then
54420 configure_input="$ac_file. $configure_input"
54421 { echo "$as_me:$LINENO: creating $ac_file" >&5
54422echo "$as_me: creating $ac_file" >&6;}
54423 fi
54424
54425 case $ac_tag in
54426 *:-:* | *:-) cat >"$tmp/stdin";;
54427 esac
54428 ;;
54429 esac
54430
54431 ac_dir=`$as_dirname -- "$ac_file" ||
a848cd7e 54432$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
54433 X"$ac_file" : 'X\(//\)[^/]' \| \
54434 X"$ac_file" : 'X\(//\)$' \| \
47964710 54435 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
a848cd7e 54436echo X"$ac_file" |
47964710
VS
54437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54438 s//\1/
54439 q
54440 }
54441 /^X\(\/\/\)[^/].*/{
54442 s//\1/
54443 q
54444 }
54445 /^X\(\/\/\)$/{
54446 s//\1/
54447 q
54448 }
54449 /^X\(\/\).*/{
54450 s//\1/
54451 q
54452 }
54453 s/.*/./; q'`
54454 { as_dir="$ac_dir"
54455 case $as_dir in #(
54456 -*) as_dir=./$as_dir;;
54457 esac
54458 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
a848cd7e 54459 as_dirs=
47964710
VS
54460 while :; do
54461 case $as_dir in #(
54462 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54463 *) as_qdir=$as_dir;;
54464 esac
54465 as_dirs="'$as_qdir' $as_dirs"
54466 as_dir=`$as_dirname -- "$as_dir" ||
a848cd7e 54467$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
54468 X"$as_dir" : 'X\(//\)[^/]' \| \
54469 X"$as_dir" : 'X\(//\)$' \| \
47964710 54470 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
a848cd7e 54471echo X"$as_dir" |
47964710
VS
54472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54473 s//\1/
54474 q
54475 }
54476 /^X\(\/\/\)[^/].*/{
54477 s//\1/
54478 q
54479 }
54480 /^X\(\/\/\)$/{
54481 s//\1/
54482 q
54483 }
54484 /^X\(\/\).*/{
54485 s//\1/
54486 q
54487 }
54488 s/.*/./; q'`
54489 test -d "$as_dir" && break
a848cd7e 54490 done
47964710
VS
54491 test -z "$as_dirs" || eval "mkdir $as_dirs"
54492 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54493echo "$as_me: error: cannot create directory $as_dir" >&2;}
a848cd7e 54494 { (exit 1); exit 1; }; }; }
a848cd7e
SC
54495 ac_builddir=.
54496
47964710
VS
54497case "$ac_dir" in
54498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54499*)
a848cd7e 54500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47964710
VS
54501 # A ".." for each directory in $ac_dir_suffix.
54502 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54503 case $ac_top_builddir_sub in
54504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54506 esac ;;
54507esac
54508ac_abs_top_builddir=$ac_pwd
54509ac_abs_builddir=$ac_pwd$ac_dir_suffix
54510# for backward compatibility:
54511ac_top_builddir=$ac_top_build_prefix
a848cd7e
SC
54512
54513case $srcdir in
47964710 54514 .) # We are building in place.
a848cd7e 54515 ac_srcdir=.
47964710
VS
54516 ac_top_srcdir=$ac_top_builddir_sub
54517 ac_abs_top_srcdir=$ac_pwd ;;
54518 [\\/]* | ?:[\\/]* ) # Absolute name.
a848cd7e 54519 ac_srcdir=$srcdir$ac_dir_suffix;
47964710
VS
54520 ac_top_srcdir=$srcdir
54521 ac_abs_top_srcdir=$srcdir ;;
54522 *) # Relative name.
54523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54524 ac_top_srcdir=$ac_top_build_prefix$srcdir
54525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a848cd7e 54526esac
47964710 54527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ac1cb8d3 54528
a848cd7e 54529
47964710
VS
54530 case $ac_mode in
54531 :F)
54532 #
54533 # CONFIG_FILE
54534 #
a848cd7e
SC
54535
54536 case $INSTALL in
54537 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47964710 54538 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a848cd7e 54539 esac
47964710 54540_ACEOF
a848cd7e 54541
47964710
VS
54542cat >>$CONFIG_STATUS <<\_ACEOF
54543# If the template does not know about datarootdir, expand it.
54544# FIXME: This hack should be removed a few years after 2.60.
54545ac_datarootdir_hack=; ac_datarootdir_seen=
54546
54547case `sed -n '/datarootdir/ {
54548 p
54549 q
54550}
54551/@datadir@/p
54552/@docdir@/p
54553/@infodir@/p
54554/@localedir@/p
54555/@mandir@/p
54556' $ac_file_inputs` in
54557*datarootdir*) ac_datarootdir_seen=yes;;
54558*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54559 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54560echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54561_ACEOF
54562cat >>$CONFIG_STATUS <<_ACEOF
54563 ac_datarootdir_hack='
54564 s&@datadir@&$datadir&g
54565 s&@docdir@&$docdir&g
54566 s&@infodir@&$infodir&g
54567 s&@localedir@&$localedir&g
54568 s&@mandir@&$mandir&g
54569 s&\\\${datarootdir}&$datarootdir&g' ;;
54570esac
4db03d26 54571_ACEOF
47964710
VS
54572
54573# Neutralize VPATH when `$srcdir' = `.'.
54574# Shell code in configure.ac might set extrasub.
54575# FIXME: do we really want to maintain this feature?
a848cd7e
SC
54576cat >>$CONFIG_STATUS <<_ACEOF
54577 sed "$ac_vpsub
54578$extrasub
54579_ACEOF
54580cat >>$CONFIG_STATUS <<\_ACEOF
54581:t
54582/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47964710
VS
54583s&@configure_input@&$configure_input&;t t
54584s&@top_builddir@&$ac_top_builddir_sub&;t t
54585s&@srcdir@&$ac_srcdir&;t t
54586s&@abs_srcdir@&$ac_abs_srcdir&;t t
54587s&@top_srcdir@&$ac_top_srcdir&;t t
54588s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54589s&@builddir@&$ac_builddir&;t t
54590s&@abs_builddir@&$ac_abs_builddir&;t t
54591s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54592s&@INSTALL@&$ac_INSTALL&;t t
54593$ac_datarootdir_hack
54594" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" >$tmp/out
54595
54596test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54597 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54598 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54599 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54600which seems to be undefined. Please make sure it is defined." >&5
54601echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54602which seems to be undefined. Please make sure it is defined." >&2;}
54603
54604 rm -f "$tmp/stdin"
ceec2216 54605 case $ac_file in
47964710
VS
54606 -) cat "$tmp/out"; rm -f "$tmp/out";;
54607 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
ceec2216 54608 esac
47964710
VS
54609 ;;
54610 :H)
54611 #
54612 # CONFIG_HEADER
54613 #
54614_ACEOF
54615
54616# Transform confdefs.h into a sed script `conftest.defines', that
54617# substitutes the proper values into config.h.in to produce config.h.
54618rm -f conftest.defines conftest.tail
54619# First, append a space to every undef/define line, to ease matching.
54620echo 's/$/ /' >conftest.defines
54621# Then, protect against being on the right side of a sed subst, or in
54622# an unquoted here document, in config.status. If some macros were
54623# called several times there might be several #defines for the same
54624# symbol, which is useless. But do not sort them, since the last
54625# AC_DEFINE must be honored.
54626ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54627# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54628# NAME is the cpp macro being defined, VALUE is the value it is being given.
54629# PARAMS is the parameter list in the macro definition--in most cases, it's
54630# just an empty string.
54631ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
54632ac_dB='\\)[ (].*,\\1define\\2'
a848cd7e 54633ac_dC=' '
47964710
VS
54634ac_dD=' ,'
54635
54636uniq confdefs.h |
54637 sed -n '
54638 t rset
54639 :rset
54640 s/^[ ]*#[ ]*define[ ][ ]*//
54641 t ok
54642 d
54643 :ok
54644 s/[\\&,]/\\&/g
54645 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54646 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54647 ' >>conftest.defines
54648
54649# Remove the space that was appended to ease matching.
54650# Then replace #undef with comments. This is necessary, for
a848cd7e
SC
54651# example, in the case of _POSIX_SOURCE, which is predefined and required
54652# on some systems where configure will not decide to define it.
47964710
VS
54653# (The regexp can be short, since the line contains either #define or #undef.)
54654echo 's/ $//
54655s,^[ #]*u.*,/* & */,' >>conftest.defines
54656
54657# Break up conftest.defines:
54658ac_max_sed_lines=50
54659
54660# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54661# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54662# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54663# et cetera.
54664ac_in='$ac_file_inputs'
54665ac_out='"$tmp/out1"'
54666ac_nxt='"$tmp/out2"'
54667
54668while :
a848cd7e 54669do
47964710
VS
54670 # Write a here document:
54671 cat >>$CONFIG_STATUS <<_ACEOF
54672 # First, check the format of the line:
54673 cat >"\$tmp/defines.sed" <<\\CEOF
54674/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
54675/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
54676b
54677:def
54678_ACEOF
54679 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
a848cd7e 54680 echo 'CEOF
47964710
VS
54681 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54682 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54683 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54684 grep . conftest.tail >/dev/null || break
a848cd7e
SC
54685 rm -f conftest.defines
54686 mv conftest.tail conftest.defines
54687done
47964710 54688rm -f conftest.defines conftest.tail
a848cd7e 54689
47964710 54690echo "ac_result=$ac_in" >>$CONFIG_STATUS
a848cd7e 54691cat >>$CONFIG_STATUS <<\_ACEOF
a848cd7e 54692 if test x"$ac_file" != x-; then
47964710
VS
54693 echo "/* $configure_input */" >"$tmp/config.h"
54694 cat "$ac_result" >>"$tmp/config.h"
54695 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
a848cd7e
SC
54696 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54697echo "$as_me: $ac_file is unchanged" >&6;}
54698 else
a848cd7e 54699 rm -f $ac_file
47964710 54700 mv "$tmp/config.h" $ac_file
a848cd7e
SC
54701 fi
54702 else
47964710
VS
54703 echo "/* $configure_input */"
54704 cat "$ac_result"
a848cd7e 54705 fi
47964710
VS
54706 rm -f "$tmp/out12"
54707 ;;
4db03d26 54708
47964710
VS
54709 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
54710echo "$as_me: executing $ac_file commands" >&6;}
54711 ;;
54712 esac
4db03d26
VZ
54713
54714
47964710
VS
54715 case $ac_file$ac_mode in
54716 "rcdefs.h":C)
5c60e845
MW
54717 mkdir -p $outdir &&
54718 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
54719 ;;
47964710
VS
54720 "lib/wx/config/${TOOLCHAIN_FULLNAME}":F) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
54721 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
54722 "wx-config":C) rm -f wx-config
ceec2216
RL
54723 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
54724 ;;
47964710 54725
a848cd7e 54726 esac
47964710 54727done # for ac_tag
a848cd7e 54728
a848cd7e
SC
54729
54730{ (exit 0); exit 0; }
54731_ACEOF
54732chmod +x $CONFIG_STATUS
54733ac_clean_files=$ac_clean_files_save
54734
54735
54736# configure is writing to config.log, and then calls config.status.
54737# config.status does its own redirection, appending to config.log.
54738# Unfortunately, on DOS this fails, as config.log is still kept open
54739# by configure, so config.status won't be able to write to it; its
54740# output is simply discarded. So we exec the FD to /dev/null,
54741# effectively closing config.log, so it can be properly (re)opened and
54742# appended to by config.status. When coming back to configure, we
54743# need to make the FD available again.
54744if test "$no_create" != yes; then
54745 ac_cs_success=:
54746 ac_config_status_args=
54747 test "$silent" = yes &&
54748 ac_config_status_args="$ac_config_status_args --quiet"
54749 exec 5>/dev/null
54750 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54751 exec 5>>config.log
54752 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54753 # would make configure fail if this is the last instruction.
54754 $ac_cs_success || { (exit 1); exit 1; }
54755fi
54756
54757#
54758# CONFIG_SUBDIRS section.
54759#
54760if test "$no_recursion" != yes; then
54761
54762 # Remove --cache-file and --srcdir arguments so they do not pile up.
54763 ac_sub_configure_args=
54764 ac_prev=
47964710
VS
54765 eval "set x $ac_configure_args"
54766 shift
54767 for ac_arg
54768 do
a848cd7e
SC
54769 if test -n "$ac_prev"; then
54770 ac_prev=
54771 continue
54772 fi
54773 case $ac_arg in
54774 -cache-file | --cache-file | --cache-fil | --cache-fi \
54775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
54776 ac_prev=cache_file ;;
54777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
54778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
54779 | --c=*)
54780 ;;
54781 --config-cache | -C)
54782 ;;
54783 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
54784 ac_prev=srcdir ;;
54785 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
54786 ;;
54787 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
54788 ac_prev=prefix ;;
54789 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
54790 ;;
47964710
VS
54791 *)
54792 case $ac_arg in
54793 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54794 esac
54795 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
a848cd7e
SC
54796 esac
54797 done
54798
54799 # Always prepend --prefix to ensure using the same prefix
54800 # in subdir configurations.
47964710
VS
54801 ac_arg="--prefix=$prefix"
54802 case $ac_arg in
54803 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54804 esac
54805 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
54806
54807 # Pass --silent
54808 if test "$silent" = yes; then
54809 ac_sub_configure_args="--silent $ac_sub_configure_args"
54810 fi
a848cd7e
SC
54811
54812 ac_popdir=`pwd`
54813 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
54814
54815 # Do not complain, so a configure script can configure whichever
54816 # parts of a large source tree are present.
47964710
VS
54817 test -d "$srcdir/$ac_dir" || continue
54818
54819 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
54820 echo "$as_me:$LINENO: $ac_msg" >&5
54821 echo "$ac_msg" >&6
54822 { as_dir="$ac_dir"
54823 case $as_dir in #(
54824 -*) as_dir=./$as_dir;;
54825 esac
54826 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
a848cd7e 54827 as_dirs=
47964710
VS
54828 while :; do
54829 case $as_dir in #(
54830 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54831 *) as_qdir=$as_dir;;
54832 esac
54833 as_dirs="'$as_qdir' $as_dirs"
54834 as_dir=`$as_dirname -- "$as_dir" ||
a848cd7e 54835$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
54836 X"$as_dir" : 'X\(//\)[^/]' \| \
54837 X"$as_dir" : 'X\(//\)$' \| \
47964710 54838 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
a848cd7e 54839echo X"$as_dir" |
47964710
VS
54840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54841 s//\1/
54842 q
54843 }
54844 /^X\(\/\/\)[^/].*/{
54845 s//\1/
54846 q
54847 }
54848 /^X\(\/\/\)$/{
54849 s//\1/
54850 q
54851 }
54852 /^X\(\/\).*/{
54853 s//\1/
54854 q
54855 }
54856 s/.*/./; q'`
54857 test -d "$as_dir" && break
a848cd7e 54858 done
47964710
VS
54859 test -z "$as_dirs" || eval "mkdir $as_dirs"
54860 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54861echo "$as_me: error: cannot create directory $as_dir" >&2;}
a848cd7e 54862 { (exit 1); exit 1; }; }; }
a848cd7e
SC
54863 ac_builddir=.
54864
47964710
VS
54865case "$ac_dir" in
54866.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54867*)
a848cd7e 54868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47964710
VS
54869 # A ".." for each directory in $ac_dir_suffix.
54870 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54871 case $ac_top_builddir_sub in
54872 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54873 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54874 esac ;;
54875esac
54876ac_abs_top_builddir=$ac_pwd
54877ac_abs_builddir=$ac_pwd$ac_dir_suffix
54878# for backward compatibility:
54879ac_top_builddir=$ac_top_build_prefix
a848cd7e
SC
54880
54881case $srcdir in
47964710 54882 .) # We are building in place.
a848cd7e 54883 ac_srcdir=.
47964710
VS
54884 ac_top_srcdir=$ac_top_builddir_sub
54885 ac_abs_top_srcdir=$ac_pwd ;;
54886 [\\/]* | ?:[\\/]* ) # Absolute name.
a848cd7e 54887 ac_srcdir=$srcdir$ac_dir_suffix;
47964710
VS
54888 ac_top_srcdir=$srcdir
54889 ac_abs_top_srcdir=$srcdir ;;
54890 *) # Relative name.
54891 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54892 ac_top_srcdir=$ac_top_build_prefix$srcdir
54893 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ac1cb8d3 54894esac
47964710 54895ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a848cd7e
SC
54896
54897
47964710 54898 cd "$ac_dir"
a848cd7e
SC
54899
54900 # Check for guested configure; otherwise get Cygnus style configure.
47964710
VS
54901 if test -f "$ac_srcdir/configure.gnu"; then
54902 ac_sub_configure=$ac_srcdir/configure.gnu
54903 elif test -f "$ac_srcdir/configure"; then
54904 ac_sub_configure=$ac_srcdir/configure
54905 elif test -f "$ac_srcdir/configure.in"; then
54906 # This should be Cygnus configure.
54907 ac_sub_configure=$ac_aux_dir/configure
a848cd7e
SC
54908 else
54909 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
54910echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
54911 ac_sub_configure=
54912 fi
54913
54914 # The recursion is here.
54915 if test -n "$ac_sub_configure"; then
54916 # Make the cache file name correct relative to the subdirectory.
54917 case $cache_file in
54918 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
47964710
VS
54919 *) # Relative name.
54920 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
a848cd7e
SC
54921 esac
54922
47964710
VS
54923 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
54924echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
a848cd7e 54925 # The eval makes quoting arguments work.
47964710
VS
54926 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
54927 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
ac1cb8d3 54928 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
54929echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
54930 { (exit 1); exit 1; }; }
54931 fi
54932
47964710 54933 cd "$ac_popdir"
a848cd7e
SC
54934 done
54935fi
54936
54937
54938echo
77ffb593 54939echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 54940echo ""
c2e9ada4 54941echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 54942echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 54943
77ffb593
JS
54944echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
54945echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
141fad63 54946echo $ECHO_N " Should wxWidgets support Unicode? ${wxUSE_UNICODE:-no}$ECHO_C"
ca4c9b7e 54947if test "$wxUSE_UNICODE" = "yes"; then
faa5c14f
VZ
54948 if test "$wxUSE_UNICODE_UTF8" = "yes"; then
54949 echo " (using UTF-8)"
54950 else
54951 echo " (using wchar_t)"
54952 fi
54953else
54954 echo
ca4c9b7e 54955fi
a848cd7e 54956
77ffb593 54957echo " What level of wxWidgets compatibility should be enabled?"
56b1244c 54958echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-no}"
abb6edd1 54959echo " wxWidgets 2.8 ${WXWIN_COMPATIBILITY_2_8:-yes}"
a848cd7e 54960
77ffb593 54961echo " Which libraries should wxWidgets use?"
8630a814 54962echo " STL ${wxUSE_STL}"
a848cd7e
SC
54963echo " jpeg ${wxUSE_LIBJPEG-none}"
54964echo " png ${wxUSE_LIBPNG-none}"
54965echo " regex ${wxUSE_REGEX}"
54966echo " tiff ${wxUSE_LIBTIFF-none}"
54967if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
54968echo " xpm ${wxUSE_LIBXPM-none}"
54969fi
54970echo " zlib ${wxUSE_ZLIB}"
54971echo " odbc ${wxUSE_ODBC}"
54972echo " expat ${wxUSE_EXPAT}"
54973echo " libmspack ${wxUSE_LIBMSPACK}"
54974echo " sdl ${wxUSE_LIBSDL}"
54975
54976echo ""
54977