]> git.saurik.com Git - wxWidgets.git/blame - configure
Update OpenVMS compile support
[wxWidgets.git] / configure
CommitLineData
a848cd7e 1#! /bin/sh
a12bd55b 2# From configure.in Id.
a848cd7e 3# Guess values for system-dependent variables and create Makefiles.
f3239c21 4# Generated by GNU Autoconf 2.61 for wxWidgets 2.9.1.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
47964710 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
d589327a 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=:
d589327a 21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
a848cd7e
SC
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
aa113d87
FM
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
d589327a
VZ
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.)
d589327a
VZ
69as_nl='
70'
47964710
VS
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
d589327a 93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
47964710
VS
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.
d589327a
VZ
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
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 fi
116done
a848cd7e
SC
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 ||
d589327a 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
d589327a 164 if test $as_have_required = yes && (eval ":
47964710
VS
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=:
d589327a 246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
47964710
VS
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=:
d589327a 267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
47964710
VS
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
d589327a
VZ
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+"$@"}
47964710
VS
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.
d589327a
VZ
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
47964710
VS
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" ||
d589327a 457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a848cd7e
SC
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 484esac
d589327a 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
d589327a
VZ
498 mkdir conf$$.dir
499fi
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
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'
d589327a
VZ
509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
a848cd7e
SC
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
d589327a 535 test -d "$1/.";
47964710
VS
536 else
537 case $1 in
d589327a 538 -*)set "./$1";;
47964710
VS
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'
f3239c21
VZ
578PACKAGE_VERSION='2.9.1'
579PACKAGE_STRING='wxWidgets 2.9.1'
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
d589327a 619ac_subst_vars='SHELL
aa113d87 620PATH_SEPARATOR
d589327a
VZ
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
664wx_top_builddir
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675CXX
676CXXFLAGS
677ac_ct_CXX
678AR
06a08679 679OSX_SW_VERS
d589327a
VZ
680subdirs
681PKG_CONFIG
682GTK_CFLAGS
683GTK_LIBS
684GTK_CONFIG
685DIRECTFB_CFLAGS
686DIRECTFB_LIBS
687XMKMF
688X_CFLAGS
689X_PRE_LIBS
690X_LIBS
691X_EXTRA_LIBS
692PANGOX_CFLAGS
693PANGOX_LIBS
694PANGOFT2_CFLAGS
695PANGOFT2_LIBS
696PANGOXFT_CFLAGS
697PANGOXFT_LIBS
698CFLAGS_VISIBILITY
699CXXFLAGS_VISIBILITY
700LIBICONV
701GXX_VERSION
702SDL_CONFIG
703SDL_CFLAGS
704SDL_LIBS
705GTKPRINT_CFLAGS
706GTKPRINT_LIBS
707LIBGNOMEPRINTUI_CFLAGS
708LIBGNOMEPRINTUI_LIBS
709GNOMEVFS_CFLAGS
710GNOMEVFS_LIBS
711HILDON_CFLAGS
712HILDON_LIBS
426d19f1
JS
713HILDON2_CFLAGS
714HILDON2_LIBS
d84e6f50
VZ
715PYTHON
716COND_PYTHON
d589327a
VZ
717CAIRO_CFLAGS
718CAIRO_LIBS
719GST_CFLAGS
720GST_LIBS
721ALL_WX_LIBS
722BUILT_WX_LIBS
723STD_BASE_LIBS
724STD_GUI_LIBS
725wxUSE_ZLIB
726wxUSE_REGEX
727wxUSE_EXPAT
728wxUSE_LIBJPEG
729wxUSE_LIBPNG
730wxUSE_LIBTIFF
731VENDOR
732OFFICIAL_BUILD
733WX_FLAVOUR
734WX_LIB_FLAVOUR
735WXUNIV
736MONOLITHIC
737USE_PLUGINS
738CXXWARNINGS
739EXTRALIBS
740EXTRALIBS_XML
741EXTRALIBS_HTML
742EXTRALIBS_MEDIA
743EXTRALIBS_GUI
744EXTRALIBS_OPENGL
745EXTRALIBS_SDL
746EXTRALIBS_STC
747WITH_PLUGIN_SDL
748EXTRALIBS_GTKPRINT
749EXTRALIBS_GNOMEPRINT
750EXTRALIBS_GNOMEVFS
751EXTRALIBS_HILDON
752UNICODE
d589327a
VZ
753DEBUG_INFO
754DEBUG_FLAG
755TOOLKIT_LOWERCASE
756TOOLKIT_VERSION
757DYLIB_RPATH_INSTALL
758DYLIB_RPATH_POSTLINK
759SAMPLES_RPATH_FLAG
760HEADER_PAD_OPTION
761HOST_SUFFIX
762CPPUNIT_CFLAGS
763CPPUNIT_LIBS
764RANLIB
765INSTALL_PROGRAM
766INSTALL_SCRIPT
767INSTALL_DATA
768LN_S
769SET_MAKE
770MAKE_SET
771AROPTIONS
772STRIP
773NM
774INSTALL_DIR
775LDFLAGS_GUI
776IF_GNU_MAKE
777PLATFORM_UNIX
778PLATFORM_WIN32
779PLATFORM_MSDOS
780PLATFORM_MAC
781PLATFORM_MACOS
782PLATFORM_MACOSX
783PLATFORM_OS2
784PLATFORM_BEOS
785SO_SUFFIX
786SO_SUFFIX_MODULE
787DLLIMP_SUFFIX
788LIBPREFIX
789LIBEXT
790DLLPREFIX
791DLLPREFIX_MODULE
792dlldir
793AIX_CXX_LD
794SHARED_LD_CC
795SHARED_LD_CXX
796SHARED_LD_MODULE_CC
797SHARED_LD_MODULE_CXX
798PIC_FLAG
799WINDOWS_IMPLIB
800USE_SOVERSION
801USE_SOVERLINUX
802USE_SOVERSOLARIS
803USE_SOVERCYGWIN
804USE_MACVERSION
2c459beb 805USE_SOTWOSYMLINKS
d589327a
VZ
806SONAME_FLAG
807DEPS_TRACKING
808BK_DEPS
809WINDRES
810REZ
811SETFILE
812OBJCXXFLAGS
813GCC_PCH
814ICC_PCH
815ICC_PCH_CREATE_SWITCH
816ICC_PCH_USE_SWITCH
817BK_MAKE_PCH
818COND_BUILD_DEBUG
819COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
820COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
821COND_BUILD_DEBUG_UNICODE_0
822COND_BUILD_DEBUG_UNICODE_1
823COND_BUILD_RELEASE
824COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
825COND_BUILD_RELEASE_UNICODE_0
826COND_BUILD_RELEASE_UNICODE_1
827COND_BUILD_debug
828COND_BUILD_debug_DEBUG_FLAG_default
829COND_BUILD_debug_DEBUG_INFO_default
830COND_BUILD_debug_UNICODE_0
831COND_BUILD_debug_UNICODE_1
832COND_BUILD_release
833COND_BUILD_release_DEBUG_INFO_default
834COND_BUILD_release_UNICODE_0
835COND_BUILD_release_UNICODE_1
89b1afb4 836COND_DEBUG_FLAG_0
d589327a
VZ
837COND_DEBUG_FLAG_1
838COND_DEBUG_INFO_0
839COND_DEBUG_INFO_1
840COND_DEPS_TRACKING_0
841COND_DEPS_TRACKING_1
842COND_GCC_PCH_1
843COND_ICC_PCH_1
844COND_MONOLITHIC_0
845COND_MONOLITHIC_0_SHARED_0
846COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
847COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
848COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
849COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
850COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
851COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
d33ccbe1 852COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1
d589327a
VZ
853COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
854COND_MONOLITHIC_0_SHARED_0_USE_STC_1
855COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
856COND_MONOLITHIC_0_SHARED_1
857COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
858COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
859COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
860COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
861COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
862COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
d33ccbe1 863COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1
d589327a
VZ
864COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
865COND_MONOLITHIC_0_SHARED_1_USE_STC_1
866COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
867COND_MONOLITHIC_0_USE_AUI_1
868COND_MONOLITHIC_0_USE_GUI_1
869COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
870COND_MONOLITHIC_0_USE_HTML_1
871COND_MONOLITHIC_0_USE_MEDIA_1
872COND_MONOLITHIC_0_USE_PROPGRID_1
873COND_MONOLITHIC_0_USE_QA_1
d33ccbe1 874COND_MONOLITHIC_0_USE_RIBBON_1
d589327a
VZ
875COND_MONOLITHIC_0_USE_RICHTEXT_1
876COND_MONOLITHIC_0_USE_STC_1
877COND_MONOLITHIC_0_USE_XRC_1
878COND_MONOLITHIC_1
879COND_MONOLITHIC_1_SHARED_0
880COND_MONOLITHIC_1_SHARED_1
881COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
882COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
883COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
884COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
885COND_PLATFORM_MACOSX_1
886COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
61aba460 887COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0
d589327a
VZ
888COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
889COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
890COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
891COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
c9554803
VZ
892COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1
893COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
d589327a
VZ
894COND_PLATFORM_MACOSX_1_USE_GUI_1
895COND_PLATFORM_MACOSX_1_USE_OPENGL_1
896COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
897COND_PLATFORM_MACOS_1
898COND_PLATFORM_MAC_0
899COND_PLATFORM_MAC_1
900COND_PLATFORM_MSDOS_0
901COND_PLATFORM_MSDOS_1
902COND_PLATFORM_OS2_1
903COND_PLATFORM_UNIX_0
904COND_PLATFORM_UNIX_1
905COND_PLATFORM_UNIX_1_TOOLKIT_MGL
906COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
907COND_PLATFORM_UNIX_1_USE_GUI_1
908COND_PLATFORM_UNIX_1_USE_PLUGINS_0
909COND_PLATFORM_WIN32_0
910COND_PLATFORM_WIN32_1
61aba460 911COND_PLATFORM_WIN32_1_SHARED_0
d589327a
VZ
912COND_SHARED_0
913COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
914COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
915COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
916COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
917COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
918COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
919COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
920COND_SHARED_0_USE_STC_1
921COND_SHARED_0_wxUSE_EXPAT_builtin
922COND_SHARED_0_wxUSE_REGEX_builtin
923COND_SHARED_0_wxUSE_ZLIB_builtin
924COND_SHARED_1
925COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
926COND_TOOLKIT_
927COND_TOOLKIT_COCOA
928COND_TOOLKIT_COCOA_USE_GUI_1
929COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
930COND_TOOLKIT_DFB
931COND_TOOLKIT_DFB_USE_GUI_1
932COND_TOOLKIT_GTK
933COND_TOOLKIT_GTK_TOOLKIT_VERSION_
934COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
935COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
936COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
937COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
938COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
939COND_TOOLKIT_GTK_USE_GUI_1
940COND_TOOLKIT_MAC
941COND_TOOLKIT_MGL
942COND_TOOLKIT_MGL_USE_GUI_1
943COND_TOOLKIT_MOTIF
944COND_TOOLKIT_MOTIF_USE_GUI_1
945COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
946COND_TOOLKIT_MSW
947COND_TOOLKIT_MSW_USE_GUI_1
948COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
949COND_TOOLKIT_MSW_WXUNIV_0
950COND_TOOLKIT_OSX_CARBON
951COND_TOOLKIT_OSX_CARBON_USE_GUI_1
d589327a
VZ
952COND_TOOLKIT_OSX_COCOA
953COND_TOOLKIT_OSX_COCOA_USE_GUI_1
d589327a 954COND_TOOLKIT_OSX_IPHONE
c9554803
VZ
955COND_TOOLKIT_OSX_IPHONE_USE_GUI_1
956COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
d589327a
VZ
957COND_TOOLKIT_PM
958COND_TOOLKIT_PM_USE_GUI_1
959COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
960COND_TOOLKIT_WINCE
961COND_TOOLKIT_WINCE_USE_GUI_1
962COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
963COND_TOOLKIT_WINCE_WXUNIV_0
964COND_TOOLKIT_X11
965COND_TOOLKIT_X11_USE_GUI_1
966COND_UNICODE_1
a12bd55b 967COND_USE_CAIRO_1
d589327a
VZ
968COND_USE_EXCEPTIONS_0
969COND_USE_EXCEPTIONS_1
970COND_USE_GUI_0
971COND_USE_GUI_1
972COND_USE_GUI_1_USE_OPENGL_1
973COND_USE_GUI_1_WXUNIV_0
974COND_USE_GUI_1_WXUNIV_1
975COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
976COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
977COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
978COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
979COND_USE_GUI_1_wxUSE_LIBPNG_builtin
980COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
981COND_USE_OPENGL_1
982COND_USE_PCH_1
983COND_USE_PLUGINS_0
984COND_USE_RTTI_0
985COND_USE_RTTI_1
2c459beb 986COND_USE_SOTWOSYMLINKS_1
d589327a
VZ
987COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
988COND_USE_SOVERLINUX_1
989COND_USE_SOVERSION_0
2c459beb 990COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
d589327a
VZ
991COND_USE_SOVERSOLARIS_1
992COND_USE_STC_1
993COND_USE_THREADS_0
994COND_USE_THREADS_1
995COND_USE_XRC_1
996COND_WINDOWS_IMPLIB_1
997COND_WITH_PLUGIN_SDL_1
998COND_WXUNIV_0
999COND_WXUNIV_1
1000COND_WXUSE_EXPAT_BUILTIN
1001COND_WXUSE_LIBJPEG_BUILTIN
1002COND_WXUSE_LIBPNG_BUILTIN
1003COND_WXUSE_LIBTIFF_BUILTIN
1004COND_WXUSE_REGEX_BUILTIN
1005COND_WXUSE_ZLIB_BUILTIN
1006COND_wxUSE_EXPAT_builtin
1007COND_wxUSE_LIBJPEG_builtin
1008COND_wxUSE_LIBPNG_builtin
1009COND_wxUSE_LIBTIFF_builtin
1010COND_wxUSE_REGEX_builtin
1011COND_wxUSE_ZLIB_builtin
1012DEREZ
1013SHARED
1014WX_LIBRARY_BASENAME_NOGUI
1015WX_LIBRARY_BASENAME_GUI
1016USE_GUI
1017AFMINSTALL
1018WIN32INSTALL
1019TOOLKIT
1020TOOLKIT_DIR
1021TOOLCHAIN_NAME
1022TOOLCHAIN_FULLNAME
1023cross_compiling
1024WIDGET_SET
1025WX_RELEASE
1026WX_VERSION
1027WX_SUBVERSION
1028WX_CHARTYPE
d589327a
VZ
1029WXCONFIG_CPPFLAGS
1030WXCONFIG_CFLAGS
1031WXCONFIG_CXXFLAGS
1032WXCONFIG_LIBS
1033WXCONFIG_RPATH
d4fbe1d8 1034WXCONFIG_LDFLAGS
d589327a
VZ
1035WXCONFIG_LDFLAGS_GUI
1036WXCONFIG_RESFLAGS
1037GUIDIST
1038DISTDIR
1039SAMPLES_SUBDIRS
1040LDFLAGS_GL
1041OPENGL_LIBS
1042DMALLOC_LIBS
1043WX_VERSION_TAG
1044RESCOMP
1045RESFLAGS
1046RESPROGRAMOBJ
1047WX_RESOURCES_MACOSX_ASCII
1048WX_RESOURCES_MACOSX_DATA
1049LIBWXMACRES
1050POSTLINK_COMMAND
1051MACSETFILE
1052GCC
1053DLLTOOL
1054CPPUNIT_CONFIG
1055LIBOBJS
1056LTLIBOBJS'
a848cd7e 1057ac_subst_files=''
47964710
VS
1058 ac_precious_vars='build_alias
1059host_alias
1060target_alias
1061CC
1062CFLAGS
1063LDFLAGS
1064LIBS
1065CPPFLAGS
1066CPP
1067CXX
1068CXXFLAGS
1069CCC
1070PKG_CONFIG
1071DIRECTFB_CFLAGS
1072DIRECTFB_LIBS
1073XMKMF
1074PANGOX_CFLAGS
1075PANGOX_LIBS
1076PANGOFT2_CFLAGS
1077PANGOFT2_LIBS
1078PANGOXFT_CFLAGS
1079PANGOXFT_LIBS
1080GTKPRINT_CFLAGS
1081GTKPRINT_LIBS
1082LIBGNOMEPRINTUI_CFLAGS
1083LIBGNOMEPRINTUI_LIBS
1084GNOMEVFS_CFLAGS
1085GNOMEVFS_LIBS
1086HILDON_CFLAGS
1087HILDON_LIBS
426d19f1
JS
1088HILDON2_CFLAGS
1089HILDON2_LIBS
47964710
VS
1090CAIRO_CFLAGS
1091CAIRO_LIBS
1092GST_CFLAGS
1093GST_LIBS'
3442c078
VZ
1094ac_subdirs_all='src/tiff
1095src/expat'
a848cd7e
SC
1096
1097# Initialize some variables set by options.
1098ac_init_help=
1099ac_init_version=false
1100# The variables have the same names as the options, with
1101# dashes changed to underlines.
1102cache_file=/dev/null
1103exec_prefix=NONE
1104no_create=
1105no_recursion=
1106prefix=NONE
1107program_prefix=NONE
1108program_suffix=NONE
1109program_transform_name=s,x,x,
1110silent=
1111site=
1112srcdir=
1113verbose=
1114x_includes=NONE
1115x_libraries=NONE
1116
1117# Installation directory options.
1118# These are left unexpanded so users can "make install exec_prefix=/foo"
1119# and all the variables that are supposed to be based on exec_prefix
1120# by default will actually change.
1121# Use braces instead of parens because sh, perl, etc. also accept them.
47964710 1122# (The list follows the same order as the GNU Coding Standards.)
a848cd7e
SC
1123bindir='${exec_prefix}/bin'
1124sbindir='${exec_prefix}/sbin'
1125libexecdir='${exec_prefix}/libexec'
47964710
VS
1126datarootdir='${prefix}/share'
1127datadir='${datarootdir}'
a848cd7e
SC
1128sysconfdir='${prefix}/etc'
1129sharedstatedir='${prefix}/com'
1130localstatedir='${prefix}/var'
a848cd7e
SC
1131includedir='${prefix}/include'
1132oldincludedir='/usr/include'
47964710
VS
1133docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1134infodir='${datarootdir}/info'
1135htmldir='${docdir}'
1136dvidir='${docdir}'
1137pdfdir='${docdir}'
1138psdir='${docdir}'
1139libdir='${exec_prefix}/lib'
1140localedir='${datarootdir}/locale'
1141mandir='${datarootdir}/man'
a848cd7e
SC
1142
1143ac_prev=
47964710 1144ac_dashdash=
a848cd7e
SC
1145for ac_option
1146do
1147 # If the previous option needs an argument, assign it.
1148 if test -n "$ac_prev"; then
47964710 1149 eval $ac_prev=\$ac_option
a848cd7e
SC
1150 ac_prev=
1151 continue
1152 fi
1153
47964710
VS
1154 case $ac_option in
1155 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1156 *) ac_optarg=yes ;;
1157 esac
a848cd7e
SC
1158
1159 # Accept the important Cygnus configure options, so we can diagnose typos.
1160
47964710
VS
1161 case $ac_dashdash$ac_option in
1162 --)
1163 ac_dashdash=yes ;;
a848cd7e
SC
1164
1165 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1166 ac_prev=bindir ;;
1167 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1168 bindir=$ac_optarg ;;
1169
1170 -build | --build | --buil | --bui | --bu)
1171 ac_prev=build_alias ;;
1172 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1173 build_alias=$ac_optarg ;;
1174
1175 -cache-file | --cache-file | --cache-fil | --cache-fi \
1176 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1177 ac_prev=cache_file ;;
1178 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1179 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1180 cache_file=$ac_optarg ;;
1181
1182 --config-cache | -C)
1183 cache_file=config.cache ;;
1184
47964710 1185 -datadir | --datadir | --datadi | --datad)
a848cd7e 1186 ac_prev=datadir ;;
47964710 1187 -datadir=* | --datadir=* | --datadi=* | --datad=*)
a848cd7e
SC
1188 datadir=$ac_optarg ;;
1189
47964710
VS
1190 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1191 | --dataroo | --dataro | --datar)
1192 ac_prev=datarootdir ;;
1193 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1194 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1195 datarootdir=$ac_optarg ;;
1196
a848cd7e 1197 -disable-* | --disable-*)
d589327a 1198 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a848cd7e 1199 # Reject names that are not valid shell variable names.
d589327a
VZ
1200 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
a848cd7e 1202 { (exit 1); exit 1; }; }
d589327a
VZ
1203 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1204 eval enable_$ac_feature=no ;;
47964710
VS
1205
1206 -docdir | --docdir | --docdi | --doc | --do)
1207 ac_prev=docdir ;;
1208 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1209 docdir=$ac_optarg ;;
1210
1211 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1212 ac_prev=dvidir ;;
1213 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1214 dvidir=$ac_optarg ;;
a848cd7e
SC
1215
1216 -enable-* | --enable-*)
d589327a 1217 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a848cd7e 1218 # Reject names that are not valid shell variable names.
d589327a
VZ
1219 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
a848cd7e 1221 { (exit 1); exit 1; }; }
d589327a
VZ
1222 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1223 eval enable_$ac_feature=\$ac_optarg ;;
a848cd7e
SC
1224
1225 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1226 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1227 | --exec | --exe | --ex)
1228 ac_prev=exec_prefix ;;
1229 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1230 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1231 | --exec=* | --exe=* | --ex=*)
1232 exec_prefix=$ac_optarg ;;
1233
1234 -gas | --gas | --ga | --g)
1235 # Obsolete; use --with-gas.
1236 with_gas=yes ;;
1237
1238 -help | --help | --hel | --he | -h)
1239 ac_init_help=long ;;
1240 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1241 ac_init_help=recursive ;;
1242 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1243 ac_init_help=short ;;
1244
1245 -host | --host | --hos | --ho)
1246 ac_prev=host_alias ;;
1247 -host=* | --host=* | --hos=* | --ho=*)
1248 host_alias=$ac_optarg ;;
1249
47964710
VS
1250 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1251 ac_prev=htmldir ;;
1252 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1253 | --ht=*)
1254 htmldir=$ac_optarg ;;
1255
a848cd7e
SC
1256 -includedir | --includedir | --includedi | --included | --include \
1257 | --includ | --inclu | --incl | --inc)
1258 ac_prev=includedir ;;
1259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1260 | --includ=* | --inclu=* | --incl=* | --inc=*)
1261 includedir=$ac_optarg ;;
1262
1263 -infodir | --infodir | --infodi | --infod | --info | --inf)
1264 ac_prev=infodir ;;
1265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1266 infodir=$ac_optarg ;;
1267
1268 -libdir | --libdir | --libdi | --libd)
1269 ac_prev=libdir ;;
1270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1271 libdir=$ac_optarg ;;
1272
1273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1274 | --libexe | --libex | --libe)
1275 ac_prev=libexecdir ;;
1276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1277 | --libexe=* | --libex=* | --libe=*)
1278 libexecdir=$ac_optarg ;;
1279
47964710
VS
1280 -localedir | --localedir | --localedi | --localed | --locale)
1281 ac_prev=localedir ;;
1282 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1283 localedir=$ac_optarg ;;
1284
a848cd7e 1285 -localstatedir | --localstatedir | --localstatedi | --localstated \
47964710 1286 | --localstate | --localstat | --localsta | --localst | --locals)
a848cd7e
SC
1287 ac_prev=localstatedir ;;
1288 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
47964710 1289 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
a848cd7e
SC
1290 localstatedir=$ac_optarg ;;
1291
1292 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1293 ac_prev=mandir ;;
1294 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1295 mandir=$ac_optarg ;;
1296
1297 -nfp | --nfp | --nf)
1298 # Obsolete; use --without-fp.
1299 with_fp=no ;;
1300
1301 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1302 | --no-cr | --no-c | -n)
1303 no_create=yes ;;
1304
1305 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1306 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1307 no_recursion=yes ;;
1308
1309 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1310 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1311 | --oldin | --oldi | --old | --ol | --o)
1312 ac_prev=oldincludedir ;;
1313 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1314 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1315 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1316 oldincludedir=$ac_optarg ;;
1317
1318 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1319 ac_prev=prefix ;;
1320 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1321 prefix=$ac_optarg ;;
1322
1323 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1324 | --program-pre | --program-pr | --program-p)
1325 ac_prev=program_prefix ;;
1326 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1327 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1328 program_prefix=$ac_optarg ;;
1329
1330 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1331 | --program-suf | --program-su | --program-s)
1332 ac_prev=program_suffix ;;
1333 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1334 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1335 program_suffix=$ac_optarg ;;
1336
1337 -program-transform-name | --program-transform-name \
1338 | --program-transform-nam | --program-transform-na \
1339 | --program-transform-n | --program-transform- \
1340 | --program-transform | --program-transfor \
1341 | --program-transfo | --program-transf \
1342 | --program-trans | --program-tran \
1343 | --progr-tra | --program-tr | --program-t)
1344 ac_prev=program_transform_name ;;
1345 -program-transform-name=* | --program-transform-name=* \
1346 | --program-transform-nam=* | --program-transform-na=* \
1347 | --program-transform-n=* | --program-transform-=* \
1348 | --program-transform=* | --program-transfor=* \
1349 | --program-transfo=* | --program-transf=* \
1350 | --program-trans=* | --program-tran=* \
1351 | --progr-tra=* | --program-tr=* | --program-t=*)
1352 program_transform_name=$ac_optarg ;;
1353
47964710
VS
1354 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1355 ac_prev=pdfdir ;;
1356 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1357 pdfdir=$ac_optarg ;;
1358
1359 -psdir | --psdir | --psdi | --psd | --ps)
1360 ac_prev=psdir ;;
1361 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1362 psdir=$ac_optarg ;;
1363
a848cd7e
SC
1364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1365 | -silent | --silent | --silen | --sile | --sil)
1366 silent=yes ;;
1367
1368 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1369 ac_prev=sbindir ;;
1370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1371 | --sbi=* | --sb=*)
1372 sbindir=$ac_optarg ;;
1373
1374 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1375 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1376 | --sharedst | --shareds | --shared | --share | --shar \
1377 | --sha | --sh)
1378 ac_prev=sharedstatedir ;;
1379 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1380 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1382 | --sha=* | --sh=*)
1383 sharedstatedir=$ac_optarg ;;
1384
1385 -site | --site | --sit)
1386 ac_prev=site ;;
1387 -site=* | --site=* | --sit=*)
1388 site=$ac_optarg ;;
1389
1390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1391 ac_prev=srcdir ;;
1392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1393 srcdir=$ac_optarg ;;
1394
1395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1396 | --syscon | --sysco | --sysc | --sys | --sy)
1397 ac_prev=sysconfdir ;;
1398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1400 sysconfdir=$ac_optarg ;;
1401
1402 -target | --target | --targe | --targ | --tar | --ta | --t)
1403 ac_prev=target_alias ;;
1404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1405 target_alias=$ac_optarg ;;
1406
1407 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1408 verbose=yes ;;
1409
1410 -version | --version | --versio | --versi | --vers | -V)
1411 ac_init_version=: ;;
1412
1413 -with-* | --with-*)
d589327a 1414 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a848cd7e 1415 # Reject names that are not valid shell variable names.
d589327a
VZ
1416 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1417 { echo "$as_me: error: invalid package name: $ac_package" >&2
a848cd7e 1418 { (exit 1); exit 1; }; }
d589327a
VZ
1419 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1420 eval with_$ac_package=\$ac_optarg ;;
a848cd7e
SC
1421
1422 -without-* | --without-*)
d589327a 1423 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a848cd7e 1424 # Reject names that are not valid shell variable names.
d589327a
VZ
1425 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1426 { echo "$as_me: error: invalid package name: $ac_package" >&2
a848cd7e 1427 { (exit 1); exit 1; }; }
d589327a
VZ
1428 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1429 eval with_$ac_package=no ;;
a848cd7e
SC
1430
1431 --x)
1432 # Obsolete; use --with-x.
1433 with_x=yes ;;
1434
1435 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1436 | --x-incl | --x-inc | --x-in | --x-i)
1437 ac_prev=x_includes ;;
1438 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1439 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1440 x_includes=$ac_optarg ;;
1441
1442 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1443 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1444 ac_prev=x_libraries ;;
1445 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1446 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1447 x_libraries=$ac_optarg ;;
1448
d589327a 1449 -*) { echo "$as_me: error: unrecognized option: $ac_option
a848cd7e
SC
1450Try \`$0 --help' for more information." >&2
1451 { (exit 1); exit 1; }; }
1452 ;;
1453
1454 *=*)
1455 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1456 # Reject names that are not valid shell variable names.
1457 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
d589327a 1458 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
a848cd7e 1459 { (exit 1); exit 1; }; }
47964710 1460 eval $ac_envvar=\$ac_optarg
a848cd7e
SC
1461 export $ac_envvar ;;
1462
1463 *)
1464 # FIXME: should be removed in autoconf 3.0.
d589327a 1465 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
a848cd7e 1466 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d589327a 1467 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
a848cd7e
SC
1468 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1469 ;;
1470
1471 esac
1472done
1473
1474if test -n "$ac_prev"; then
1475 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d589327a 1476 { echo "$as_me: error: missing argument to $ac_option" >&2
a848cd7e
SC
1477 { (exit 1); exit 1; }; }
1478fi
1479
d589327a 1480# Be sure to have absolute directory names.
47964710
VS
1481for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1482 datadir sysconfdir sharedstatedir localstatedir includedir \
1483 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1484 libdir localedir mandir
f321ab7f 1485do
47964710 1486 eval ac_val=\$$ac_var
f321ab7f 1487 case $ac_val in
47964710
VS
1488 [\\/$]* | ?:[\\/]* ) continue;;
1489 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a848cd7e 1490 esac
d589327a 1491 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
47964710 1492 { (exit 1); exit 1; }; }
a848cd7e
SC
1493done
1494
1495# There might be people who depend on the old broken behavior: `$host'
1496# used to hold the argument of --host etc.
1497# FIXME: To remove some day.
1498build=$build_alias
1499host=$host_alias
1500target=$target_alias
1501
1502# FIXME: To remove some day.
1503if test "x$host_alias" != x; then
1504 if test "x$build_alias" = x; then
1505 cross_compiling=maybe
d589327a 1506 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
a848cd7e
SC
1507 If a cross compiler is detected then cross compile mode will be used." >&2
1508 elif test "x$build_alias" != "x$host_alias"; then
1509 cross_compiling=yes
1510 fi
1511fi
1512
1513ac_tool_prefix=
1514test -n "$host_alias" && ac_tool_prefix=$host_alias-
1515
1516test "$silent" = yes && exec 6>/dev/null
1517
1518
47964710
VS
1519ac_pwd=`pwd` && test -n "$ac_pwd" &&
1520ac_ls_di=`ls -di .` &&
1521ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d589327a 1522 { echo "$as_me: error: Working directory cannot be determined" >&2
47964710
VS
1523 { (exit 1); exit 1; }; }
1524test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d589327a 1525 { echo "$as_me: error: pwd does not report name of working directory" >&2
47964710
VS
1526 { (exit 1); exit 1; }; }
1527
1528
a848cd7e
SC
1529# Find the source files, if location was not specified.
1530if test -z "$srcdir"; then
1531 ac_srcdir_defaulted=yes
47964710 1532 # Try the directory containing this script, then the parent directory.
d589327a
VZ
1533 ac_confdir=`$as_dirname -- "$0" ||
1534$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1535 X"$0" : 'X\(//\)[^/]' \| \
1536 X"$0" : 'X\(//\)$' \| \
1537 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1538echo X"$0" |
47964710
VS
1539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1540 s//\1/
1541 q
1542 }
1543 /^X\(\/\/\)[^/].*/{
1544 s//\1/
1545 q
1546 }
1547 /^X\(\/\/\)$/{
1548 s//\1/
1549 q
1550 }
1551 /^X\(\/\).*/{
1552 s//\1/
1553 q
1554 }
1555 s/.*/./; q'`
a848cd7e 1556 srcdir=$ac_confdir
47964710 1557 if test ! -r "$srcdir/$ac_unique_file"; then
a848cd7e
SC
1558 srcdir=..
1559 fi
1560else
1561 ac_srcdir_defaulted=no
1562fi
47964710
VS
1563if test ! -r "$srcdir/$ac_unique_file"; then
1564 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d589327a 1565 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
a848cd7e 1566 { (exit 1); exit 1; }; }
a848cd7e 1567fi
47964710
VS
1568ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1569ac_abs_confdir=`(
d589327a 1570 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
a848cd7e 1571 { (exit 1); exit 1; }; }
47964710
VS
1572 pwd)`
1573# When building in place, set srcdir=.
1574if test "$ac_abs_confdir" = "$ac_pwd"; then
1575 srcdir=.
1576fi
1577# Remove unnecessary trailing slashes from srcdir.
1578# Double slashes in file names in object file debugging info
1579# mess up M-x gdb in Emacs.
1580case $srcdir in
1581*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1582esac
1583for ac_var in $ac_precious_vars; do
1584 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1585 eval ac_env_${ac_var}_value=\$${ac_var}
1586 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1587 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1588done
a848cd7e
SC
1589
1590#
1591# Report the --help message.
1592#
1593if test "$ac_init_help" = "long"; then
1594 # Omit some internal or obsolete options to make the list less imposing.
1595 # This message is too long to be a string in the A/UX 3.1 sh.
1596 cat <<_ACEOF
f3239c21 1597\`configure' configures wxWidgets 2.9.1 to adapt to many kinds of systems.
a848cd7e
SC
1598
1599Usage: $0 [OPTION]... [VAR=VALUE]...
1600
1601To assign environment variables (e.g., CC, CFLAGS...), specify them as
1602VAR=VALUE. See below for descriptions of some of the useful variables.
1603
1604Defaults for the options are specified in brackets.
1605
1606Configuration:
1607 -h, --help display this help and exit
1608 --help=short display options specific to this package
1609 --help=recursive display the short help of all the included packages
1610 -V, --version display version information and exit
1611 -q, --quiet, --silent do not print \`checking...' messages
1612 --cache-file=FILE cache test results in FILE [disabled]
1613 -C, --config-cache alias for \`--cache-file=config.cache'
1614 -n, --no-create do not create output files
1615 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1616
a848cd7e
SC
1617Installation directories:
1618 --prefix=PREFIX install architecture-independent files in PREFIX
d589327a 1619 [$ac_default_prefix]
a848cd7e 1620 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
d589327a 1621 [PREFIX]
a848cd7e
SC
1622
1623By default, \`make install' will install all the files in
1624\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1625an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1626for instance \`--prefix=\$HOME'.
1627
1628For better control, use the options below.
1629
1630Fine tuning of the installation directories:
d589327a
VZ
1631 --bindir=DIR user executables [EPREFIX/bin]
1632 --sbindir=DIR system admin executables [EPREFIX/sbin]
1633 --libexecdir=DIR program executables [EPREFIX/libexec]
1634 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1635 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1636 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1637 --libdir=DIR object code libraries [EPREFIX/lib]
1638 --includedir=DIR C header files [PREFIX/include]
1639 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1640 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1641 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1642 --infodir=DIR info documentation [DATAROOTDIR/info]
1643 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1644 --mandir=DIR man documentation [DATAROOTDIR/man]
1645 --docdir=DIR documentation root [DATAROOTDIR/doc/wxwidgets]
1646 --htmldir=DIR html documentation [DOCDIR]
1647 --dvidir=DIR dvi documentation [DOCDIR]
1648 --pdfdir=DIR pdf documentation [DOCDIR]
1649 --psdir=DIR ps documentation [DOCDIR]
a848cd7e
SC
1650_ACEOF
1651
1652 cat <<\_ACEOF
1653
1654X features:
1655 --x-includes=DIR X include files are in DIR
1656 --x-libraries=DIR X library files are in DIR
1657
1658System types:
1659 --build=BUILD configure for building on BUILD [guessed]
1660 --host=HOST cross-compile to build programs to run on HOST [BUILD]
a848cd7e
SC
1661_ACEOF
1662fi
1663
1664if test -n "$ac_init_help"; then
1665 case $ac_init_help in
f3239c21 1666 short | recursive ) echo "Configuration of wxWidgets 2.9.1:";;
a848cd7e
SC
1667 esac
1668 cat <<\_ACEOF
1669
1670Optional Features:
1671 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1672 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6e198e97 1673 --disable-gui don't build GUI parts of the library
77ffb593
JS
1674 --enable-monolithic build wxWidgets as single library
1675 --enable-plugins build parts of wxWidgets as loadable components
6e198e97
VZ
1676 --enable-official_build official build of wxWidgets (win32 DLL only)
1677 --enable-vendor=VENDOR vendor name (win32 DLL only)
d970f7d5 1678 --disable-all-features disable all optional features to build minimal library
77ffb593 1679 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 1680 --enable-nanox use NanoX
f34ca037 1681 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e 1682 --enable-gpe use GNOME PDA Environment features if possible
89b1afb4
VZ
1683 --enable-debug build library for debugging
1684 --disable-debug_flag disable all debugging support
1685 --enable-debug_info generate debug information
1686 --enable-debug_gdb create code with extra GDB debugging information
1687 --enable-debug_cntxt obsolete, don't use: use wxDebugContext
1688 --enable-mem_tracing obsolete, don't use: create code with memory tracing
6e198e97 1689 --disable-shared create static library instead of shared
a848cd7e 1690 --enable-stl use STL for containers
6e198e97
VZ
1691 --enable-std_iostreams use standard C++ stream classes
1692 --enable-std_string use standard C++ string classes
1693 --disable-unicode compile without Unicode support
1694 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
1695 --enable-utf8 use UTF-8 representation for strings (Unix only)
24b67be4 1696 --enable-utf8only only support UTF-8 locales in UTF-8 build (Unix only)
81727065 1697 --enable-extended_rtti use extended RTTI (XTI)
a848cd7e 1698 --enable-omf use OMF object format
44710405 1699 --disable-optimise compile without optimisations
a848cd7e
SC
1700 --enable-profile create code with profiling information
1701 --enable-no_rtti create code without RTTI information
1702 --enable-no_exceptions create code without C++ exceptions handling
1703 --enable-permissive compile code disregarding strict ANSI
1704 --enable-no_deps create code without dependency information
70c536f3 1705 --disable-vararg_macros don't use vararg macros, even if they are supported
3442c078 1706 --enable-universal_binary create Mac PowerPC and Intel Universal binary
abb6edd1
VS
1707 --enable-compat26 enable wxWidgets 2.6 compatibility
1708 --disable-compat28 disable wxWidgets 2.8 compatibility
ffa0583f 1709 --disable-rpath disable use of rpath for uninstalled builds
931d7698 1710 --enable-objc_uniquifying enable Objective-C class name uniquifying
a2bd84a5 1711 --disable-visibility disable use of ELF symbols visibility even if supported
7beff712 1712 --disable-tls disable use of compiler TLS support
a848cd7e 1713 --enable-intl use internationalization system
6e4ae332 1714 --enable-xlocale use x-locale support (requires wxLocale)
a848cd7e
SC
1715 --enable-config use wxConfig (and derived) classes
1716 --enable-protocols use wxProtocol and derived classes
1717 --enable-ftp use wxFTP (requires wxProtocol
1718 --enable-http use wxHTTP (requires wxProtocol
1719 --enable-fileproto use wxFileProto class (requires wxProtocol
1720 --enable-sockets use socket/network classes
8575ff50 1721 --enable-ipv6 enable IPv6 support in wxSocket
a848cd7e
SC
1722 --enable-ole use OLE classes (Win32 only)
1723 --enable-dataobj use data object classes
1724 --enable-ipc use interprocess communication (wxSocket etc.)
e7ff34ed 1725 --enable-baseevtloop use event loop in console programs too
05787cec 1726 --enable-epollloop use wxEpollDispatcher class (Linux only)
e7ff34ed 1727 --enable-selectloop use wxSelectDispatcher class
178c7760 1728 --enable-any use wxAny class
a848cd7e 1729 --enable-apple_ieee use the Apple IEEE codec
81f90336 1730 --enable-arcstream use wxArchive streams
4db03d26 1731 --enable-base64 use base64 encoding/decoding functions
eaff0f0d 1732 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 1733 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
1734 --enable-cmdline use wxCmdLineParser class
1735 --enable-datetime use wxDateTime class
36b6448c 1736 --enable-debugreport use wxDebugReport class
a848cd7e
SC
1737 --enable-dialupman use dialup network classes
1738 --enable-dynlib use wxLibrary class for DLL loading
1739 --enable-dynamicloader use (new) wxDynamicLibrary class
1740 --enable-exceptions build exception-safe library
1741 --enable-ffile use wxFFile class
1742 --enable-file use wxFile class
a0219e45 1743 --enable-filehistory use wxFileHistory class
a848cd7e 1744 --enable-filesystem use virtual file systems classes
ff427585 1745 --enable-fontenum use wxFontEnumerator class
a848cd7e 1746 --enable-fontmap use font encodings conversion classes
26e422a9 1747 --enable-fs_archive use virtual archive filesystems
a848cd7e 1748 --enable-fs_inet use virtual HTTP/FTP filesystems
916af76f 1749 --enable-fs_zip now replaced by fs_archive
6b8ef0b3 1750 --enable-fswatcher use wxFileSystemWatcher class
a848cd7e
SC
1751 --enable-geometry use geometry class
1752 --enable-log use logging system
1753 --enable-longlong use wxLongLong class
1754 --enable-mimetype use wxMimeTypesManager
4732e2dc 1755 --enable-printfposparam use wxVsnprintf() which supports positional parameters
a848cd7e 1756 --enable-snglinst use wxSingleInstanceChecker class
4732e2dc 1757 --enable-sound use wxSound class
07158944 1758 --enable-stdpaths use wxStandardPaths class
a848cd7e 1759 --enable-stopwatch use wxStopWatch class
07158944 1760 --enable-streams use wxStream etc classes
a848cd7e 1761 --enable-sysoptions use wxSystemOptions
26e422a9 1762 --enable-tarstream use wxTar streams
a848cd7e
SC
1763 --enable-textbuf use wxTextBuffer class
1764 --enable-textfile use wxTextFile class
1765 --enable-timer use wxTimer class
4732e2dc 1766 --enable-variant use wxVariant class
81f90336 1767 --enable-zipstream use wxZip streams
a848cd7e
SC
1768 --enable-url use wxURL class
1769 --enable-protocol use wxProtocol class
1770 --enable-protocol-http HTTP support in wxProtocol
1771 --enable-protocol-ftp FTP support in wxProtocol
1772 --enable-protocol-file FILE support in wxProtocol
1773 --enable-threads use threads
91a5e00c
VS
1774 --enable-iniconf use wxIniConfig (Win32 only)
1775 --enable-regkey use wxRegKey class (Win32 only)
a848cd7e
SC
1776 --enable-docview use document view architecture
1777 --enable-help use help subsystem
1778 --enable-mshtmlhelp use MS HTML Help (win32)
1779 --enable-html use wxHTML sub-library
1780 --enable-htmlhelp use wxHTML-based help
9a8f0513 1781 --enable-xrc use XRC resources sub-library
3f60522a 1782 --enable-aui use AUI docking library
1c4293cb 1783 --enable-propgrid use wxPropertyGrid library
d33ccbe1 1784 --enable-ribbon use wxRibbon library
54429bb3 1785 --enable-stc use wxStyledTextCtrl library
a848cd7e 1786 --enable-constraints use layout-constraints system
a848cd7e
SC
1787 --enable-loggui use standard GUI logger
1788 --enable-logwin use wxLogWindow
1789 --enable-logdialog use wxLogDialog
4732e2dc
VZ
1790 --enable-mdi use multiple document interface architecture
1791 --enable-mdidoc use docview architecture with MDI
1792 --enable-mediactrl use wxMediaCtrl class
1793 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
646b6ec1 1794 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1795 --enable-richtext use wxRichTextCtrl
a848cd7e 1796 --enable-postscript use wxPostscriptDC device context (default for gtk+)
4732e2dc 1797 --enable-printarch use printing architecture
b0fc907f 1798 --enable-svg use wxSVGFileDC device context
a12bd55b 1799 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e
SC
1800 --enable-clipboard use wxClipboard class
1801 --enable-dnd use Drag'n'Drop classes
1802 --enable-metafile use win32 metafiles
3c7410a5 1803 --disable-controls disable compilation of all standard controls
a848cd7e 1804 --enable-accel use accelerators
3ea50042 1805 --enable-animatectrl use wxAnimationCtrl class
a848cd7e 1806 --enable-bmpbutton use wxBitmapButton class
95a46303 1807 --enable-bmpcombobox use wxBitmapComboBox class
e6d984e2 1808 --enable-button use wxButton class
a848cd7e
SC
1809 --enable-calendar use wxCalendarCtrl class
1810 --enable-caret use wxCaret class
1811 --enable-checkbox use wxCheckBox class
1812 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1813 --enable-choice use wxChoice class
92bbdbcd 1814 --enable-choicebook use wxChoicebook class
bd915ace 1815 --enable-collpane use wxCollapsiblePane class
e9263684 1816 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1817 --enable-combobox use wxComboBox class
a57d600f 1818 --enable-comboctrl use wxComboCtrl class
e6d984e2 1819 --enable-dataviewctrl use wxDataViewCtrl class
da98e9be 1820 --enable-datepick use wxDatePickerCtrl class
e6d984e2 1821 --enable-detect_sm use code to detect X11 session manager
e9263684 1822 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1823 --enable-display use wxDisplay class
23575150 1824 --enable-editablebox use wxEditableListBox class
0cf3e587 1825 --enable-filectrl use wxFileCtrl class
e6d984e2 1826 --enable-filepicker use wxFilePickerCtrl class
e9263684 1827 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1828 --enable-gauge use wxGauge class
1829 --enable-grid use wxGrid class
e721a2a2 1830 --enable-headerctrl use wxHeaderCtrl class
6954625c 1831 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e 1832 --enable-imaglist use wxImageList class
a92b5dfe 1833 --enable-infobar use wxInfoBar class
a848cd7e
SC
1834 --enable-listbook use wxListbook class
1835 --enable-listbox use wxListBox class
1836 --enable-listctrl use wxListCtrl class
1837 --enable-notebook use wxNotebook class
e36a1739 1838 --enable-notifmsg use wxNotificationMessage class
a57d600f 1839 --enable-odcombobox use wxOwnerDrawnComboBox class
e6d984e2 1840 --enable-popupwin use wxPopUpWindow class
a848cd7e
SC
1841 --enable-radiobox use wxRadioBox class
1842 --enable-radiobtn use wxRadioButton class
f0bb342f 1843 --enable-rearrangectrl use wxRearrangeList/Ctrl/Dialog
a848cd7e
SC
1844 --enable-sash use wxSashWindow class
1845 --enable-scrollbar use wxScrollBar class and scrollable windows
3f7f284d 1846 --enable-searchctrl use wxSearchCtrl class
a848cd7e
SC
1847 --enable-slider use wxSlider class
1848 --enable-spinbtn use wxSpinButton class
1849 --enable-spinctrl use wxSpinCtrl class
1850 --enable-splitter use wxSplitterWindow class
1851 --enable-statbmp use wxStaticBitmap class
1852 --enable-statbox use wxStaticBox class
1853 --enable-statline use wxStaticLine class
1854 --enable-stattext use wxStaticText class
1855 --enable-statusbar use wxStatusBar class
4f167b46 1856 --enable-taskbaricon use wxTaskBarIcon class
e6d984e2 1857 --enable-tbarnative use native wxToolBar class
a848cd7e 1858 --enable-textctrl use wxTextCtrl class
e6d984e2 1859 --enable-tipwindow use wxTipWindow class
a848cd7e
SC
1860 --enable-togglebtn use wxToggleButton class
1861 --enable-toolbar use wxToolBar class
5ec3bc43 1862 --enable-toolbook use wxToolbook class
e6d984e2 1863 --enable-treebook use wxTreebook class
a848cd7e 1864 --enable-treectrl use wxTreeCtrl class
a848cd7e 1865 --enable-commondlg use all common dialogs
319c5ed4 1866 --enable-aboutdlg use wxAboutBox
a848cd7e
SC
1867 --enable-choicedlg use wxChoiceDialog
1868 --enable-coldlg use wxColourDialog
1869 --enable-filedlg use wxFileDialog
1870 --enable-finddlg use wxFindReplaceDialog
1871 --enable-fontdlg use wxFontDialog
1872 --enable-dirdlg use wxDirDialog
1873 --enable-msgdlg use wxMessageDialog
1874 --enable-numberdlg use wxNumberEntryDialog
1875 --enable-splash use wxSplashScreen
1876 --enable-textdlg use wxTextDialog
1877 --enable-tipdlg use startup tips
1878 --enable-progressdlg use wxProgressDialog
1879 --enable-wizarddlg use wxWizard
1880 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1881 --enable-miniframe use wxMiniFrame class
1882 --enable-tooltips use wxToolTip class
1883 --enable-splines use spline drawing code
fbe2ca43 1884 --enable-mousewheel use mousewheel
a848cd7e
SC
1885 --enable-validators use wxValidator and derived classes
1886 --enable-busyinfo use wxBusyInfo
4cb1d3da 1887 --enable-joystick use wxJoystick
38b4a946 1888 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1889 --enable-dragimage use wxDragImage
1890 --enable-accessibility enable accessibility support
9b7e0226 1891 --enable-uiactionsim use wxUIActionSimulator (experimental)
a848cd7e
SC
1892 --enable-palette use wxPalette class
1893 --enable-image use wxImage class
1894 --enable-gif use gif images (GIF file format)
1895 --enable-pcx use pcx images (PCX file format)
bb9e79c0 1896 --enable-tga use tga images (TGA file format)
a848cd7e
SC
1897 --enable-iff use iff images (IFF file format)
1898 --enable-pnm use pnm images (PNM file format)
1899 --enable-xpm use xpm images (XPM file format)
1e9a3d4b 1900 --enable-ico_cur use Windows ICO and CUR formats
5d18e029 1901 --enable-dccache cache temporary wxDC objects (Win32 only)
0295153c 1902 --enable-ps-in-msw use PS printing in wxMSW (Win32 only)
6517fa86 1903 --enable-ownerdrawn use owner drawn controls (Win32 and OS/2 only)
5d18e029 1904 --enable-uxtheme enable support for Windows XP themed look (Win32 only)
f77c0fe3 1905 --enable-wxdib use wxDIB class (Win32 only)
75a29ef1 1906 --enable-autoidman use automatic ids management
a848cd7e
SC
1907 --disable-largefile omit support for large files
1908 --disable-gtktest do not try to compile and run a test GTK+ program
1909 --disable-gtktest Do not try to compile and run a test GTK program
1910 --disable-sdltest Do not try to compile and run a test SDL program
1911 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1912 --disable-dependency-tracking
1913 don't use dependency tracking even if the compiler
1914 can
ebee3cd0
VS
1915 --disable-precomp-headers
1916 don't use precompiled headers even if compiler can
a848cd7e
SC
1917
1918Optional Packages:
1919 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1920 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1921 --without-subdirs don't generate makefiles for samples/demos/...
6e198e97
VZ
1922 --with-flavour=NAME specify a name to identify this build
1923 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
f34ca037 1924 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e 1925 --with-motif use Motif/Lesstif
2ea057f9
SC
1926 --with-osx_carbon use Mac OS X (Carbon)
1927 --with-osx_cocoa use Mac OS X (Cocoa)
80aa2a2f 1928 --with-osx_iphone use iPhone OS X port
f10f4c87
VZ
1929 --with-osx use Mac OS X (default port, currently Carbon)
1930 --with-carbon same as --with-osx_carbon
1931 --with-cocoa same as --with-osx_cocoa
80aa2a2f 1932 --with-iphone same as --with-osx_iphone
f10f4c87
VZ
1933 --with-mac same as --with-osx
1934 --with-old_cocoa use old, deprecated, Cocoa port
a848cd7e
SC
1935 --with-wine use Wine
1936 --with-msw use MS-Windows
1937 --with-pm use OS/2 Presentation Manager
1938 --with-mgl use SciTech MGL
b3c86150 1939 --with-directfb use DirectFB
a848cd7e
SC
1940 --with-microwin use MicroWindows
1941 --with-x11 use X11
1942 --with-libpng use libpng (PNG image format)
1943 --with-libjpeg use libjpeg (JPEG file format)
1944 --with-libtiff use libtiff (TIFF file format)
1945 --with-libxpm use libxpm (XPM file format)
e9efd9f1 1946 --with-libiconv use libiconv (character conversion)
a848cd7e 1947 --with-libmspack use libmspack (CHM help files loading)
bd8a7646 1948 --without-gtkprint don't use GTK printing support
6e198e97 1949 --without-gnomeprint don't use GNOME printing libraries
2b850ae1 1950 --with-gnomevfs use GNOME VFS for associating MIME types
426d19f1 1951 --with-hildon use Hildon framework for Nokia 770/800/810
a848cd7e
SC
1952 --with-opengl use OpenGL (or Mesa)
1953 --with-dmalloc use dmalloc library (http://dmalloc.com/)
84ebfcbd 1954 --with-sdl use SDL for audio on Unix
a848cd7e
SC
1955 --with-regex enable support for wxRegEx class
1956 --with-zlib use zlib for LZW compression
a848cd7e 1957 --with-expat enable XML support using expat parser
b4e05bdd
DE
1958 --with-macosx-sdk=PATH use an OS X SDK at PATH
1959 --with-macosx-version-min=VER build binaries which require at least this OS X version
a848cd7e
SC
1960 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1961 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1962 --with-x use the X Window System
1963 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1964 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1965 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1966 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1967 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1968
1969Some influential environment variables:
dcc1b6ad
VS
1970 CC C compiler command
1971 CFLAGS C compiler flags
1972 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1973 nonstandard directory <lib dir>
47964710
VS
1974 LIBS libraries to pass to the linker, e.g. -l<library>
1975 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1976 you have headers in a nonstandard directory <include dir>
dcc1b6ad
VS
1977 CPP C preprocessor
1978 CXX C++ compiler command
1979 CXXFLAGS C++ compiler flags
3ecd9f92 1980 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1981 DIRECTFB_CFLAGS
1982 C compiler flags for DIRECTFB, overriding pkg-config
1983 DIRECTFB_LIBS
1984 linker flags for DIRECTFB, overriding pkg-config
47964710 1985 XMKMF Path to xmkmf, Makefile generator for X Window System
3ecd9f92
MW
1986 PANGOX_CFLAGS
1987 C compiler flags for PANGOX, overriding pkg-config
1988 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1989 PANGOFT2_CFLAGS
1990 C compiler flags for PANGOFT2, overriding pkg-config
1991 PANGOFT2_LIBS
1992 linker flags for PANGOFT2, overriding pkg-config
1993 PANGOXFT_CFLAGS
1994 C compiler flags for PANGOXFT, overriding pkg-config
1995 PANGOXFT_LIBS
1996 linker flags for PANGOXFT, overriding pkg-config
bd8a7646
RR
1997 GTKPRINT_CFLAGS
1998 C compiler flags for GTKPRINT, overriding pkg-config
1999 GTKPRINT_LIBS
2000 linker flags for GTKPRINT, overriding pkg-config
3ecd9f92
MW
2001 LIBGNOMEPRINTUI_CFLAGS
2002 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2003 LIBGNOMEPRINTUI_LIBS
2004 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2005 GNOMEVFS_CFLAGS
2006 C compiler flags for GNOMEVFS, overriding pkg-config
2007 GNOMEVFS_LIBS
2008 linker flags for GNOMEVFS, overriding pkg-config
2009 HILDON_CFLAGS
2010 C compiler flags for HILDON, overriding pkg-config
2011 HILDON_LIBS linker flags for HILDON, overriding pkg-config
426d19f1
JS
2012 HILDON2_CFLAGS
2013 C compiler flags for HILDON2, overriding pkg-config
2014 HILDON2_LIBS
2015 linker flags for HILDON2, overriding pkg-config
64b75e64
RD
2016 CAIRO_CFLAGS
2017 C compiler flags for CAIRO, overriding pkg-config
2018 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
3ecd9f92
MW
2019 GST_CFLAGS C compiler flags for GST, overriding pkg-config
2020 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
2021
2022Use these variables to override the choices made by `configure' or to help
2023it to find libraries and programs with nonstandard names/locations.
2024
77ffb593 2025Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 2026_ACEOF
47964710 2027ac_status=$?
a848cd7e
SC
2028fi
2029
2030if test "$ac_init_help" = "recursive"; then
2031 # If there are subdirs, report their specific --help.
a848cd7e 2032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
d589327a 2033 test -d "$ac_dir" || continue
a848cd7e
SC
2034 ac_builddir=.
2035
47964710
VS
2036case "$ac_dir" in
2037.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2038*)
d589327a 2039 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47964710 2040 # A ".." for each directory in $ac_dir_suffix.
d589327a 2041 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
47964710
VS
2042 case $ac_top_builddir_sub in
2043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2045 esac ;;
2046esac
2047ac_abs_top_builddir=$ac_pwd
2048ac_abs_builddir=$ac_pwd$ac_dir_suffix
2049# for backward compatibility:
2050ac_top_builddir=$ac_top_build_prefix
a848cd7e
SC
2051
2052case $srcdir in
47964710 2053 .) # We are building in place.
a848cd7e 2054 ac_srcdir=.
47964710
VS
2055 ac_top_srcdir=$ac_top_builddir_sub
2056 ac_abs_top_srcdir=$ac_pwd ;;
2057 [\\/]* | ?:[\\/]* ) # Absolute name.
a848cd7e 2058 ac_srcdir=$srcdir$ac_dir_suffix;
47964710
VS
2059 ac_top_srcdir=$srcdir
2060 ac_abs_top_srcdir=$srcdir ;;
2061 *) # Relative name.
2062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2063 ac_top_srcdir=$ac_top_build_prefix$srcdir
2064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4db03d26 2065esac
47964710
VS
2066ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2067
2068 cd "$ac_dir" || { ac_status=$?; continue; }
2069 # Check for guested configure.
2070 if test -f "$ac_srcdir/configure.gnu"; then
2071 echo &&
2072 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2073 elif test -f "$ac_srcdir/configure"; then
2074 echo &&
2075 $SHELL "$ac_srcdir/configure" --help=recursive
a848cd7e 2076 else
d589327a 2077 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
47964710
VS
2078 fi || ac_status=$?
2079 cd "$ac_pwd" || { ac_status=$?; break; }
a848cd7e
SC
2080 done
2081fi
2082
47964710 2083test -n "$ac_init_help" && exit $ac_status
a848cd7e
SC
2084if $ac_init_version; then
2085 cat <<\_ACEOF
f3239c21 2086wxWidgets configure 2.9.1
d589327a 2087generated by GNU Autoconf 2.61
a848cd7e 2088
47964710 2089Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
d589327a 20902002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
a848cd7e
SC
2091This configure script is free software; the Free Software Foundation
2092gives unlimited permission to copy, distribute and modify it.
2093_ACEOF
47964710 2094 exit
a848cd7e 2095fi
47964710 2096cat >config.log <<_ACEOF
a848cd7e
SC
2097This file contains any messages produced by compilers while
2098running configure, to aid debugging if configure makes a mistake.
2099
f3239c21 2100It was created by wxWidgets $as_me 2.9.1, which was
d589327a 2101generated by GNU Autoconf 2.61. Invocation command line was
a848cd7e
SC
2102
2103 $ $0 $@
2104
2105_ACEOF
47964710 2106exec 5>>config.log
a848cd7e
SC
2107{
2108cat <<_ASUNAME
2109## --------- ##
2110## Platform. ##
2111## --------- ##
2112
2113hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2114uname -m = `(uname -m) 2>/dev/null || echo unknown`
2115uname -r = `(uname -r) 2>/dev/null || echo unknown`
2116uname -s = `(uname -s) 2>/dev/null || echo unknown`
2117uname -v = `(uname -v) 2>/dev/null || echo unknown`
2118
2119/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2120/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2121
2122/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2123/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2124/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
47964710 2125/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
a848cd7e
SC
2126/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2127/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2128/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2129
2130_ASUNAME
2131
2132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
d589327a 2137 echo "PATH: $as_dir"
a848cd7e 2138done
47964710 2139IFS=$as_save_IFS
a848cd7e
SC
2140
2141} >&5
2142
2143cat >&5 <<_ACEOF
2144
2145
2146## ----------- ##
2147## Core tests. ##
2148## ----------- ##
2149
2150_ACEOF
2151
2152
2153# Keep a trace of the command line.
2154# Strip out --no-create and --no-recursion so they do not pile up.
2155# Strip out --silent because we don't want to record it for future runs.
2156# Also quote any args containing shell meta-characters.
2157# Make two passes to allow for proper duplicate-argument suppression.
2158ac_configure_args=
2159ac_configure_args0=
2160ac_configure_args1=
a848cd7e
SC
2161ac_must_keep_next=false
2162for ac_pass in 1 2
2163do
2164 for ac_arg
2165 do
2166 case $ac_arg in
2167 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2169 | -silent | --silent | --silen | --sile | --sil)
2170 continue ;;
47964710 2171 *\'*)
d589327a 2172 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a848cd7e
SC
2173 esac
2174 case $ac_pass in
2175 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2176 2)
2177 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2178 if test $ac_must_keep_next = true; then
ac1cb8d3 2179 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 2180 else
ac1cb8d3
VS
2181 case $ac_arg in
2182 *=* | --config-cache | -C | -disable-* | --disable-* \
2183 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2184 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2185 | -with-* | --with-* | -without-* | --without-* | --x)
2186 case "$ac_configure_args0 " in
2187 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2188 esac
2189 ;;
2190 -* ) ac_must_keep_next=true ;;
2191 esac
a848cd7e 2192 fi
47964710 2193 ac_configure_args="$ac_configure_args '$ac_arg'"
a848cd7e
SC
2194 ;;
2195 esac
2196 done
2197done
2198$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2199$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2200
2201# When interrupted or exit'd, cleanup temporary files, and complete
2202# config.log. We remove comments because anyway the quotes in there
2203# would cause problems or look ugly.
47964710
VS
2204# WARNING: Use '\'' to represent an apostrophe within the trap.
2205# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
a848cd7e
SC
2206trap 'exit_status=$?
2207 # Save into config.log some information that might help in debugging.
2208 {
2209 echo
2210
2211 cat <<\_ASBOX
2212## ---------------- ##
2213## Cache variables. ##
2214## ---------------- ##
2215_ASBOX
2216 echo
2217 # The following way of writing the cache mishandles newlines in values,
47964710
VS
2218(
2219 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2220 eval ac_val=\$$ac_var
2221 case $ac_val in #(
2222 *${as_nl}*)
2223 case $ac_var in #(
d589327a
VZ
2224 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2225echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
47964710
VS
2226 esac
2227 case $ac_var in #(
2228 _ | IFS | as_nl) ;; #(
2229 *) $as_unset $ac_var ;;
2230 esac ;;
2231 esac
2232 done
a848cd7e 2233 (set) 2>&1 |
47964710
VS
2234 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2235 *${as_nl}ac_space=\ *)
a848cd7e 2236 sed -n \
47964710
VS
2237 "s/'\''/'\''\\\\'\'''\''/g;
2238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2239 ;; #(
a848cd7e 2240 *)
47964710 2241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
a848cd7e 2242 ;;
47964710
VS
2243 esac |
2244 sort
2245)
a848cd7e
SC
2246 echo
2247
2248 cat <<\_ASBOX
2249## ----------------- ##
2250## Output variables. ##
2251## ----------------- ##
2252_ASBOX
2253 echo
2254 for ac_var in $ac_subst_vars
2255 do
47964710
VS
2256 eval ac_val=\$$ac_var
2257 case $ac_val in
d589327a 2258 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
47964710 2259 esac
d589327a 2260 echo "$ac_var='\''$ac_val'\''"
a848cd7e
SC
2261 done | sort
2262 echo
2263
2264 if test -n "$ac_subst_files"; then
2265 cat <<\_ASBOX
47964710
VS
2266## ------------------- ##
2267## File substitutions. ##
2268## ------------------- ##
a848cd7e
SC
2269_ASBOX
2270 echo
2271 for ac_var in $ac_subst_files
2272 do
47964710
VS
2273 eval ac_val=\$$ac_var
2274 case $ac_val in
d589327a 2275 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
47964710 2276 esac
d589327a 2277 echo "$ac_var='\''$ac_val'\''"
a848cd7e
SC
2278 done | sort
2279 echo
2280 fi
2281
2282 if test -s confdefs.h; then
2283 cat <<\_ASBOX
2284## ----------- ##
2285## confdefs.h. ##
2286## ----------- ##
2287_ASBOX
2288 echo
47964710 2289 cat confdefs.h
a848cd7e
SC
2290 echo
2291 fi
2292 test "$ac_signal" != 0 &&
d589327a
VZ
2293 echo "$as_me: caught signal $ac_signal"
2294 echo "$as_me: exit $exit_status"
a848cd7e 2295 } >&5
47964710
VS
2296 rm -f core *.core core.conftest.* &&
2297 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
a848cd7e 2298 exit $exit_status
47964710 2299' 0
a848cd7e
SC
2300for ac_signal in 1 2 13 15; do
2301 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2302done
2303ac_signal=0
2304
2305# confdefs.h avoids OS command line length limits that DEFS can exceed.
47964710 2306rm -f -r conftest* confdefs.h
a848cd7e
SC
2307
2308# Predefined preprocessor variables.
2309
2310cat >>confdefs.h <<_ACEOF
2311#define PACKAGE_NAME "$PACKAGE_NAME"
2312_ACEOF
2313
2314
2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2317_ACEOF
2318
2319
2320cat >>confdefs.h <<_ACEOF
2321#define PACKAGE_VERSION "$PACKAGE_VERSION"
2322_ACEOF
2323
2324
2325cat >>confdefs.h <<_ACEOF
2326#define PACKAGE_STRING "$PACKAGE_STRING"
2327_ACEOF
2328
2329
2330cat >>confdefs.h <<_ACEOF
2331#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332_ACEOF
2333
2334
2335# Let the site file select an alternate cache file if it wants to.
d589327a 2336# Prefer explicitly selected file to automatically selected ones.
47964710 2337if test -n "$CONFIG_SITE"; then
d589327a 2338 set x "$CONFIG_SITE"
47964710 2339elif test "x$prefix" != xNONE; then
d589327a 2340 set x "$prefix/share/config.site" "$prefix/etc/config.site"
47964710 2341else
d589327a
VZ
2342 set x "$ac_default_prefix/share/config.site" \
2343 "$ac_default_prefix/etc/config.site"
a848cd7e 2344fi
d589327a
VZ
2345shift
2346for ac_site_file
47964710 2347do
a848cd7e 2348 if test -r "$ac_site_file"; then
d589327a
VZ
2349 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2350echo "$as_me: loading site script $ac_site_file" >&6;}
a848cd7e
SC
2351 sed 's/^/| /' "$ac_site_file" >&5
2352 . "$ac_site_file"
2353 fi
2354done
2355
2356if test -r "$cache_file"; then
2357 # Some versions of bash will fail to source /dev/null (special
2358 # files actually), so we avoid doing that.
2359 if test -f "$cache_file"; then
d589327a
VZ
2360 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2361echo "$as_me: loading cache $cache_file" >&6;}
a848cd7e 2362 case $cache_file in
47964710
VS
2363 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2364 *) . "./$cache_file";;
a848cd7e
SC
2365 esac
2366 fi
2367else
d589327a
VZ
2368 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2369echo "$as_me: creating cache $cache_file" >&6;}
a848cd7e
SC
2370 >$cache_file
2371fi
2372
2373# Check that the precious variables saved in the cache have kept the same
2374# value.
2375ac_cache_corrupted=false
47964710 2376for ac_var in $ac_precious_vars; do
a848cd7e
SC
2377 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2378 eval ac_new_set=\$ac_env_${ac_var}_set
47964710
VS
2379 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2380 eval ac_new_val=\$ac_env_${ac_var}_value
a848cd7e
SC
2381 case $ac_old_set,$ac_new_set in
2382 set,)
d589327a
VZ
2383 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2384echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
a848cd7e
SC
2385 ac_cache_corrupted=: ;;
2386 ,set)
d589327a
VZ
2387 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2388echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
a848cd7e
SC
2389 ac_cache_corrupted=: ;;
2390 ,);;
2391 *)
2392 if test "x$ac_old_val" != "x$ac_new_val"; then
d589327a
VZ
2393 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2394echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2395 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2396echo "$as_me: former value: $ac_old_val" >&2;}
2397 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2398echo "$as_me: current value: $ac_new_val" >&2;}
2399 ac_cache_corrupted=:
a848cd7e
SC
2400 fi;;
2401 esac
2402 # Pass precious variables to config.status.
2403 if test "$ac_new_set" = set; then
2404 case $ac_new_val in
d589327a 2405 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a848cd7e
SC
2406 *) ac_arg=$ac_var=$ac_new_val ;;
2407 esac
2408 case " $ac_configure_args " in
2409 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2410 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2411 esac
2412 fi
2413done
2414if $ac_cache_corrupted; then
d589327a
VZ
2415 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2416echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2417 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2418echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
a848cd7e
SC
2419 { (exit 1); exit 1; }; }
2420fi
2421
a848cd7e
SC
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
47964710
VS
2446ac_ext=c
2447ac_cpp='$CPP $CPPFLAGS'
2448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
2451
2452
2453
2454
2455
2456ac_aux_dir=
47964710
VS
2457for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2458 if test -f "$ac_dir/install-sh"; then
a848cd7e
SC
2459 ac_aux_dir=$ac_dir
2460 ac_install_sh="$ac_aux_dir/install-sh -c"
2461 break
47964710 2462 elif test -f "$ac_dir/install.sh"; then
a848cd7e
SC
2463 ac_aux_dir=$ac_dir
2464 ac_install_sh="$ac_aux_dir/install.sh -c"
2465 break
47964710 2466 elif test -f "$ac_dir/shtool"; then
a848cd7e
SC
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/shtool install -c"
2469 break
2470 fi
2471done
2472if test -z "$ac_aux_dir"; then
d589327a
VZ
2473 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2474echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
a848cd7e
SC
2475 { (exit 1); exit 1; }; }
2476fi
47964710
VS
2477
2478# These three variables are undocumented and unsupported,
2479# and are intended to be withdrawn in a future Autoconf release.
2480# They can cause serious problems if a builder's source tree is in a directory
2481# whose full name contains unusual characters.
2482ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2483ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2484ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2485
a848cd7e
SC
2486
2487# Make sure we can run config.sub.
47964710 2488$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d589327a
VZ
2489 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2490echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
a848cd7e
SC
2491 { (exit 1); exit 1; }; }
2492
d589327a
VZ
2493{ echo "$as_me:$LINENO: checking build system type" >&5
2494echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
a848cd7e 2495if test "${ac_cv_build+set}" = set; then
d589327a 2496 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 2497else
47964710
VS
2498 ac_build_alias=$build_alias
2499test "x$ac_build_alias" = x &&
2500 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2501test "x$ac_build_alias" = x &&
d589327a
VZ
2502 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2503echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
a848cd7e 2504 { (exit 1); exit 1; }; }
47964710 2505ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d589327a
VZ
2506 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2507echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
a848cd7e
SC
2508 { (exit 1); exit 1; }; }
2509
2510fi
d589327a
VZ
2511{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2512echo "${ECHO_T}$ac_cv_build" >&6; }
47964710
VS
2513case $ac_cv_build in
2514*-*-*) ;;
d589327a
VZ
2515*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2516echo "$as_me: error: invalid value of canonical build" >&2;}
47964710
VS
2517 { (exit 1); exit 1; }; };;
2518esac
a848cd7e 2519build=$ac_cv_build
47964710
VS
2520ac_save_IFS=$IFS; IFS='-'
2521set x $ac_cv_build
2522shift
2523build_cpu=$1
2524build_vendor=$2
2525shift; shift
2526# Remember, the first character of IFS is used to create $*,
2527# except with old shells:
2528build_os=$*
2529IFS=$ac_save_IFS
2530case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2531
2532
d589327a
VZ
2533{ echo "$as_me:$LINENO: checking host system type" >&5
2534echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
a848cd7e 2535if test "${ac_cv_host+set}" = set; then
d589327a 2536 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 2537else
47964710
VS
2538 if test "x$host_alias" = x; then
2539 ac_cv_host=$ac_cv_build
2540else
2541 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d589327a
VZ
2542 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2543echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
a848cd7e 2544 { (exit 1); exit 1; }; }
47964710 2545fi
a848cd7e
SC
2546
2547fi
d589327a
VZ
2548{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2549echo "${ECHO_T}$ac_cv_host" >&6; }
47964710
VS
2550case $ac_cv_host in
2551*-*-*) ;;
d589327a
VZ
2552*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2553echo "$as_me: error: invalid value of canonical host" >&2;}
47964710
VS
2554 { (exit 1); exit 1; }; };;
2555esac
a848cd7e 2556host=$ac_cv_host
47964710
VS
2557ac_save_IFS=$IFS; IFS='-'
2558set x $ac_cv_host
2559shift
2560host_cpu=$1
2561host_vendor=$2
2562shift; shift
2563# Remember, the first character of IFS is used to create $*,
2564# except with old shells:
2565host_os=$*
2566IFS=$ac_save_IFS
2567case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2568
2569
a848cd7e 2570
6ab6fc6e 2571if test "$cross_compiling" != "no"; then
28c59491
VZ
2572 HOST_PREFIX="${host_alias}-"
2573 HOST_SUFFIX="-$host_alias"
2574else
2575 HOST_PREFIX=
2576 HOST_SUFFIX=
2577fi
a848cd7e
SC
2578
2579
ceec2216 2580wx_major_version_number=2
7fd3acaf 2581wx_minor_version_number=9
f3239c21 2582wx_release_number=1
7fd3acaf 2583wx_subrelease_number=0
a848cd7e 2584
ceec2216
RL
2585WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2586WX_VERSION=$WX_RELEASE.$wx_release_number
2587WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 2588
ceec2216 2589WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 2590
a848cd7e 2591
02b05020
VZ
2592wx_top_builddir="`pwd`"
2593
2594
a848cd7e
SC
2595
2596
2597USE_UNIX=1
2598USE_OS2=0
2599USE_WIN32=0
2600USE_DOS=0
2601USE_BEOS=0
2602USE_MAC=0
2603
2604USE_AIX=
2605USE_BSD= USE_DARWIN= USE_FREEBSD=
2606USE_GNU= USE_HPUX=
2607USE_LINUX=
2608USE_NETBSD=
2609USE_OPENBSD=
2610USE_OSF= USE_SGI=
2611USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
2612USE_ULTRIX=
2613USE_UNIXWARE=
2614
2615USE_ALPHA=
2616
2617NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2618
80aa2a2f 2619ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e 2620
f10f4c87 2621DEFAULT_wxUSE_OLD_COCOA=0
a848cd7e 2622DEFAULT_wxUSE_GTK=0
2ea057f9
SC
2623DEFAULT_wxUSE_OSX_CARBON=0
2624DEFAULT_wxUSE_OSX_COCOA=0
80aa2a2f 2625DEFAULT_wxUSE_OSX_IPHONE=0
a848cd7e
SC
2626DEFAULT_wxUSE_MGL=0
2627DEFAULT_wxUSE_MICROWIN=0
2628DEFAULT_wxUSE_MOTIF=0
2629DEFAULT_wxUSE_MSW=0
2630DEFAULT_wxUSE_PM=0
2631DEFAULT_wxUSE_X11=0
b3c86150 2632DEFAULT_wxUSE_DFB=0
a848cd7e 2633
f10f4c87 2634DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
a848cd7e 2635DEFAULT_DEFAULT_wxUSE_GTK=0
2ea057f9
SC
2636DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2637DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
80aa2a2f 2638DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
a848cd7e
SC
2639DEFAULT_DEFAULT_wxUSE_MGL=0
2640DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2641DEFAULT_DEFAULT_wxUSE_MOTIF=0
2642DEFAULT_DEFAULT_wxUSE_MSW=0
2643DEFAULT_DEFAULT_wxUSE_PM=0
2644DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 2645DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
2646
2647PROGRAM_EXT=
a848cd7e 2648SAMPLES_RPATH_FLAG=
2fd71613
KO
2649DYLIB_RPATH_INSTALL=
2650DYLIB_RPATH_POSTLINK=
a848cd7e 2651
a03b8b04
RD
2652DEFAULT_STD_FLAG=yes
2653
a848cd7e
SC
2654case "${host}" in
2655 *-hp-hpux* )
2656 USE_HPUX=1
2657 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2658 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
a848cd7e
SC
2659 cat >>confdefs.h <<\_ACEOF
2660#define __HPUX__ 1
2661_ACEOF
2662
2eef8513 2663
c92ad099 2664 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
2665 ;;
2666 *-*-linux* )
2667 USE_LINUX=1
2668 cat >>confdefs.h <<\_ACEOF
2669#define __LINUX__ 1
2670_ACEOF
2671
2672 TMP=`uname -m`
2673 if test "x$TMP" = "xalpha"; then
2674 USE_ALPHA=1
2675 cat >>confdefs.h <<\_ACEOF
2676#define __ALPHA__ 1
2677_ACEOF
2678
2679 fi
2680 DEFAULT_DEFAULT_wxUSE_GTK=1
2681 ;;
2682 *-*-gnu* | *-*-k*bsd*-gnu )
2683 USE_GNU=1
2684 TMP=`uname -m`
2685 if test "x$TMP" = "xalpha"; then
2686 USE_ALPHA=1
2687 cat >>confdefs.h <<\_ACEOF
2688#define __ALPHA__ 1
2689_ACEOF
2690
2691 fi
2692 DEFAULT_DEFAULT_wxUSE_GTK=1
2693 ;;
2694 *-*-irix5* | *-*-irix6* )
2695 USE_SGI=1
2696 USE_SVR4=1
2697 cat >>confdefs.h <<\_ACEOF
2698#define __SGI__ 1
2699_ACEOF
2700
2701 cat >>confdefs.h <<\_ACEOF
2702#define __SVR4__ 1
2703_ACEOF
2704
2705 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2706 ;;
229251af
VZ
2707 *-*-qnx*)
2708 USE_QNX=1
2709 cat >>confdefs.h <<\_ACEOF
2710#define __QNX__ 1
2711_ACEOF
2712
2713 DEFAULT_DEFAULT_wxUSE_X11=1
2714 ;;
a848cd7e
SC
2715 *-*-solaris2* )
2716 USE_SUN=1
2717 USE_SOLARIS=1
2718 USE_SVR4=1
2719 cat >>confdefs.h <<\_ACEOF
2720#define __SUN__ 1
2721_ACEOF
2722
2723 cat >>confdefs.h <<\_ACEOF
2724#define __SOLARIS__ 1
2725_ACEOF
2726
2727 cat >>confdefs.h <<\_ACEOF
2728#define __SVR4__ 1
2729_ACEOF
2730
2731 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2732 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2733 ;;
2734 *-*-sunos4* )
2735 USE_SUN=1
2736 USE_SUNOS=1
2737 USE_BSD=1
2738 cat >>confdefs.h <<\_ACEOF
2739#define __SUN__ 1
2740_ACEOF
2741
2742 cat >>confdefs.h <<\_ACEOF
2743#define __SUNOS__ 1
2744_ACEOF
2745
2746 cat >>confdefs.h <<\_ACEOF
2747#define __BSD__ 1
2748_ACEOF
2749
2750 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2751 ;;
2752 *-*-freebsd*)
2753 USE_BSD=1
2754 USE_FREEBSD=1
2755 cat >>confdefs.h <<\_ACEOF
2756#define __FREEBSD__ 1
2757_ACEOF
2758
2759 cat >>confdefs.h <<\_ACEOF
2760#define __BSD__ 1
2761_ACEOF
2762
2763 DEFAULT_DEFAULT_wxUSE_GTK=1
2764 ;;
c9a66001 2765 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
2766 USE_BSD=1
2767 USE_OPENBSD=1
2768 cat >>confdefs.h <<\_ACEOF
2769#define __OPENBSD__ 1
2770_ACEOF
2771
2772 cat >>confdefs.h <<\_ACEOF
2773#define __BSD__ 1
2774_ACEOF
2775
2776 DEFAULT_DEFAULT_wxUSE_GTK=1
2777 ;;
2778 *-*-netbsd*)
2779 USE_BSD=1
2780 USE_NETBSD=1
2781 cat >>confdefs.h <<\_ACEOF
2782#define __NETBSD__ 1
2783_ACEOF
2784
2785 cat >>confdefs.h <<\_ACEOF
2786#define __BSD__ 1
2787_ACEOF
2788
2789 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 2790 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 2791
def7c04a 2792 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
2793 ;;
2794 *-*-osf* )
2795 USE_ALPHA=1
2796 USE_OSF=1
2797 cat >>confdefs.h <<\_ACEOF
2798#define __ALPHA__ 1
2799_ACEOF
2800
2801 cat >>confdefs.h <<\_ACEOF
2802#define __OSF__ 1
2803_ACEOF
2804
2805 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2806 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2807 ;;
2808 *-*-dgux5* )
2809 USE_ALPHA=1
2810 USE_SVR4=1
2811 cat >>confdefs.h <<\_ACEOF
2812#define __ALPHA__ 1
2813_ACEOF
2814
2815 cat >>confdefs.h <<\_ACEOF
2816#define __SVR4__ 1
2817_ACEOF
2818
2819 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2820 ;;
2821 *-*-sysv5* )
2822 USE_SYSV=1
2823 USE_SVR4=1
2824 cat >>confdefs.h <<\_ACEOF
2825#define __SYSV__ 1
2826_ACEOF
2827
2828 cat >>confdefs.h <<\_ACEOF
2829#define __SVR4__ 1
2830_ACEOF
2831
2832 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2833 ;;
2834 *-*-aix* )
2835 USE_AIX=1
2836 USE_SYSV=1
2837 USE_SVR4=1
a848cd7e
SC
2838 cat >>confdefs.h <<\_ACEOF
2839#define __AIX__ 1
2840_ACEOF
2841
2842 cat >>confdefs.h <<\_ACEOF
2843#define __SYSV__ 1
2844_ACEOF
2845
2846 cat >>confdefs.h <<\_ACEOF
2847#define __SVR4__ 1
2848_ACEOF
2849
2850 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2851 ;;
2852
2853 *-*-*UnixWare*)
2854 USE_SYSV=1
2855 USE_SVR4=1
2856 USE_UNIXWARE=1
2857 cat >>confdefs.h <<\_ACEOF
2858#define __UNIXWARE__ 1
2859_ACEOF
2860
2861 ;;
2862
2863 *-*-cygwin* | *-*-mingw32* )
41148443 2864 PROGRAM_EXT=".exe"
a848cd7e
SC
2865 DEFAULT_DEFAULT_wxUSE_MSW=1
2866 ;;
2867
2868 *-pc-msdosdjgpp )
2869 USE_UNIX=0
2870 USE_DOS=1
2871 cat >>confdefs.h <<\_ACEOF
2872#define __DOS__ 1
2873_ACEOF
2874
2875 PROGRAM_EXT=".exe"
2876 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2877 ;;
2878
2879 *-pc-os2_emx | *-pc-os2-emx )
2880 cat >>confdefs.h <<\_ACEOF
2881#define __EMX__ 1
2882_ACEOF
2883
2884 USE_OS2=1
2885 cat >>confdefs.h <<\_ACEOF
2886#define __OS2__ 1
2887_ACEOF
2888
2889 PROGRAM_EXT=".exe"
2890 DEFAULT_DEFAULT_wxUSE_PM=1
2891 CXX=gcc
2892 LDFLAGS="$LDFLAGS -Zcrtdll"
2893 ac_executable_extensions=".exe"
2894 export ac_executable_extensions
2895 ac_save_IFS="$IFS"
2896 IFS='\\'
2897 ac_TEMP_PATH=
2898 for ac_dir in $PATH; do
2899 IFS=$ac_save_IFS
2900 if test -z "$ac_TEMP_PATH"; then
2901 ac_TEMP_PATH="$ac_dir"
2902 else
2903 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2904 fi
2905 done
2906 export PATH="$ac_TEMP_PATH"
2907 unset ac_TEMP_PATH
a03b8b04 2908 DEFAULT_STD_FLAG=no
a848cd7e
SC
2909 ;;
2910
80aa2a2f
VZ
2911 arm-apple-darwin*)
2912 USE_BSD=1
2913 USE_DARWIN=1
2914 cat >>confdefs.h <<\_ACEOF
2915#define __BSD__ 1
2916_ACEOF
2917
2918 cat >>confdefs.h <<\_ACEOF
2919#define __DARWIN__ 1
2920_ACEOF
2921
2922 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2923 ;;
2924
cfda0ea8 2925 *-*-darwin* )
a848cd7e
SC
2926 USE_BSD=1
2927 USE_DARWIN=1
a848cd7e
SC
2928 cat >>confdefs.h <<\_ACEOF
2929#define __BSD__ 1
2930_ACEOF
2931
2932 cat >>confdefs.h <<\_ACEOF
2933#define __DARWIN__ 1
a848cd7e
SC
2934_ACEOF
2935
2936 cat >>confdefs.h <<\_ACEOF
2937#define TARGET_CARBON 1
2938_ACEOF
2939
2ea057f9 2940 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
a848cd7e
SC
2941 ;;
2942
2943 *-*-beos* )
2944 USE_BEOS=1
2945 cat >>confdefs.h <<\_ACEOF
2946#define __BEOS__ 1
2947_ACEOF
2948
2949 ;;
2950
2951 *)
d589327a
VZ
2952 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2953echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2954 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2955echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2956
2957 DEFAULT_DEFAULT_wxUSE_X11=1
2958 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2959esac
2960
2961
2962
6e198e97 2963DEFAULT_wxUSE_ALL_FEATURES=yes
a848cd7e 2964
6e198e97
VZ
2965DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2966DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e 2967
238663c1
VZ
2968DEFAULT_wxUSE_DMALLOC=no
2969DEFAULT_wxUSE_LIBGNOMEVFS=no
2970DEFAULT_wxUSE_LIBHILDON=no
426d19f1 2971DEFAULT_wxUSE_LIBHILDON2=no
238663c1
VZ
2972DEFAULT_wxUSE_LIBMSPACK=no
2973DEFAULT_wxUSE_LIBSDL=no
a848cd7e 2974
6e198e97 2975DEFAULT_wxUSE_ACCESSIBILITY=no
8575ff50 2976DEFAULT_wxUSE_IPV6=no
3746e527 2977DEFAULT_wxUSE_GSTREAMER8=no
9b7e0226 2978DEFAULT_wxUSE_UIACTIONSIMULATOR=no
238663c1
VZ
2979
2980DEFAULT_wxUSE_UNICODE_UTF8=auto
f03637a2
FM
2981DEFAULT_wxUSE_OPENGL=auto
2982DEFAULT_wxUSE_MEDIACTRL=auto
7beff712 2983DEFAULT_wxUSE_COMPILER_TLS=auto
f03637a2 2984
238663c1 2985DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
a848cd7e 2986
57309d14
VZ
2987DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2988
6e198e97 2989DEFAULT_wxUSE_OFFICIAL_BUILD=no
a848cd7e 2990
6e198e97 2991DEFAULT_wxUSE_GTK2=yes
a848cd7e 2992
931d7698
DE
2993DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2994
a848cd7e 2995
a848cd7e 2996
6e198e97
VZ
2997
2998
2999 enablestring=disable
3000 defaultval=
238663c1 3001 if test -z "$defaultval"; then
6e198e97
VZ
3002 if test x"$enablestring" = xdisable; then
3003 defaultval=yes
3004 else
3005 defaultval=no
3006 fi
3007 fi
3008
d589327a
VZ
3009 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3010echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
47964710 3011 # Check whether --enable-gui was given.
a848cd7e 3012if test "${enable_gui+set}" = set; then
47964710 3013 enableval=$enable_gui;
a848cd7e 3014 if test "$enableval" = yes; then
d970f7d5 3015 wx_cv_use_gui='wxUSE_GUI=yes'
a848cd7e 3016 else
d970f7d5 3017 wx_cv_use_gui='wxUSE_GUI=no'
a848cd7e
SC
3018 fi
3019
3020else
3021
d970f7d5 3022 wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
a848cd7e 3023
47964710
VS
3024fi
3025
a848cd7e 3026
d970f7d5 3027 eval "$wx_cv_use_gui"
a848cd7e 3028
6e198e97 3029 if test x"$enablestring" = xdisable; then
7ac0e38e 3030 if test $wxUSE_GUI = no; then
6e198e97 3031 result=yes
7ac0e38e
VZ
3032 else
3033 result=no
6e198e97 3034 fi
a848cd7e 3035 else
6e198e97 3036 result=$wxUSE_GUI
a848cd7e
SC
3037 fi
3038
d589327a
VZ
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
d589327a
VZ
3053 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3054echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
47964710 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
SC
3062 fi
3063
3064else
3065
d970f7d5 3066 wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
a848cd7e 3067
47964710
VS
3068fi
3069
a848cd7e 3070
d970f7d5 3071 eval "$wx_cv_use_monolithic"
a848cd7e 3072
6e198e97 3073 if test x"$enablestring" = xdisable; then
7ac0e38e 3074 if test $wxUSE_MONOLITHIC = no; then
6e198e97 3075 result=yes
7ac0e38e
VZ
3076 else
3077 result=no
6e198e97 3078 fi
a848cd7e 3079 else
6e198e97 3080 result=$wxUSE_MONOLITHIC
a848cd7e
SC
3081 fi
3082
d589327a
VZ
3083 { echo "$as_me:$LINENO: result: $result" >&5
3084echo "${ECHO_T}$result" >&6; }
6e198e97 3085
a848cd7e 3086
077c7880 3087 enablestring=
6e198e97 3088 defaultval=
238663c1 3089 if test -z "$defaultval"; then
6e198e97
VZ
3090 if test x"$enablestring" = xdisable; then
3091 defaultval=yes
3092 else
3093 defaultval=no
3094 fi
3095 fi
3096
d589327a
VZ
3097 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3098echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
47964710 3099 # Check whether --enable-plugins was given.
a848cd7e 3100if test "${enable_plugins+set}" = set; then
47964710 3101 enableval=$enable_plugins;
a848cd7e 3102 if test "$enableval" = yes; then
d970f7d5 3103 wx_cv_use_plugins='wxUSE_PLUGINS=yes'
a848cd7e 3104 else
d970f7d5 3105 wx_cv_use_plugins='wxUSE_PLUGINS=no'
a848cd7e
SC
3106 fi
3107
3108else
3109
d970f7d5 3110 wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
a848cd7e 3111
47964710
VS
3112fi
3113
a848cd7e 3114
d970f7d5 3115 eval "$wx_cv_use_plugins"
a848cd7e 3116
6e198e97 3117 if test x"$enablestring" = xdisable; then
7ac0e38e 3118 if test $wxUSE_PLUGINS = no; then
6e198e97 3119 result=yes
7ac0e38e
VZ
3120 else
3121 result=no
6e198e97 3122 fi
a848cd7e 3123 else
6e198e97 3124 result=$wxUSE_PLUGINS
a848cd7e
SC
3125 fi
3126
d589327a
VZ
3127 { echo "$as_me:$LINENO: result: $result" >&5
3128echo "${ECHO_T}$result" >&6; }
6e198e97 3129
a848cd7e 3130
077c7880 3131 withstring=without
47124ca6
VZ
3132 defaultval=$wxUSE_ALL_FEATURES
3133 if test -z "$defaultval"; then
3134 if test x"$withstring" = xwithout; then
3135 defaultval=yes
3136 else
3137 defaultval=no
3138 fi
3139 fi
d589327a
VZ
3140 { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3141echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
1c14217d 3142
47964710 3143# Check whether --with-subdirs was given.
1c14217d 3144if test "${with_subdirs+set}" = set; then
47964710 3145 withval=$with_subdirs;
1c14217d 3146 if test "$withval" = yes; then
d970f7d5 3147 wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
1c14217d 3148 else
d970f7d5 3149 wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
1c14217d
VZ
3150 fi
3151
3152else
3153
47124ca6 3154 wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
1c14217d 3155
47964710
VS
3156fi
3157
1c14217d 3158
d970f7d5 3159 eval "$wx_cv_use_subdirs"
1c14217d 3160
6e198e97
VZ
3161 if test x"$withstring" = xwithout; then
3162 if test $wxWITH_SUBDIRS = yes; then
3163 result=no
3164 else
3165 result=yes
3166 fi
1c14217d 3167 else
6e198e97
VZ
3168 result=$wxWITH_SUBDIRS
3169 fi
3170
d589327a
VZ
3171 { echo "$as_me:$LINENO: result: $result" >&5
3172echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
3173
3174
47964710 3175# Check whether --with-flavour was given.
6e198e97 3176if test "${with_flavour+set}" = set; then
47964710
VS
3177 withval=$with_flavour; WX_FLAVOUR="$withval"
3178fi
3179
6e198e97
VZ
3180
3181 enablestring=
3182 defaultval=
238663c1 3183 if test -z "$defaultval"; then
6e198e97
VZ
3184 if test x"$enablestring" = xdisable; then
3185 defaultval=yes
3186 else
3187 defaultval=no
3188 fi
3189 fi
3190
d589327a
VZ
3191 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3192echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
47964710 3193 # Check whether --enable-official_build was given.
6e198e97 3194if test "${enable_official_build+set}" = set; then
47964710 3195 enableval=$enable_official_build;
6e198e97 3196 if test "$enableval" = yes; then
d970f7d5 3197 wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
6e198e97 3198 else
d970f7d5 3199 wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
6e198e97
VZ
3200 fi
3201
3202else
3203
d970f7d5 3204 wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
6e198e97 3205
47964710
VS
3206fi
3207
6e198e97 3208
d970f7d5 3209 eval "$wx_cv_use_official_build"
6e198e97
VZ
3210
3211 if test x"$enablestring" = xdisable; then
7ac0e38e 3212 if test $wxUSE_OFFICIAL_BUILD = no; then
6e198e97 3213 result=yes
7ac0e38e
VZ
3214 else
3215 result=no
6e198e97
VZ
3216 fi
3217 else
3218 result=$wxUSE_OFFICIAL_BUILD
3219 fi
3220
d589327a
VZ
3221 { echo "$as_me:$LINENO: result: $result" >&5
3222echo "${ECHO_T}$result" >&6; }
6e198e97 3223
47964710 3224# Check whether --enable-vendor was given.
6e198e97 3225if test "${enable_vendor+set}" = set; then
47964710
VS
3226 enableval=$enable_vendor; VENDOR="$enableval"
3227fi
3228
6e198e97
VZ
3229if test "x$VENDOR" = "x"; then
3230 VENDOR="custom"
3231fi
3232
3233
3234 enablestring=disable
3235 defaultval=
238663c1 3236 if test -z "$defaultval"; then
6e198e97
VZ
3237 if test x"$enablestring" = xdisable; then
3238 defaultval=yes
3239 else
3240 defaultval=no
3241 fi
3242 fi
3243
d589327a
VZ
3244 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3245echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
47964710 3246 # Check whether --enable-all-features was given.
6e198e97 3247if test "${enable_all_features+set}" = set; then
47964710 3248 enableval=$enable_all_features;
6e198e97 3249 if test "$enableval" = yes; then
d970f7d5 3250 wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
6e198e97 3251 else
d970f7d5 3252 wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
6e198e97
VZ
3253 fi
3254
3255else
3256
d970f7d5 3257 wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
6e198e97 3258
47964710
VS
3259fi
3260
6e198e97 3261
d970f7d5 3262 eval "$wx_cv_use_all_features"
6e198e97
VZ
3263
3264 if test x"$enablestring" = xdisable; then
7ac0e38e 3265 if test $wxUSE_ALL_FEATURES = no; then
6e198e97 3266 result=yes
7ac0e38e
VZ
3267 else
3268 result=no
6e198e97
VZ
3269 fi
3270 else
3271 result=$wxUSE_ALL_FEATURES
1c14217d
VZ
3272 fi
3273
d589327a
VZ
3274 { echo "$as_me:$LINENO: result: $result" >&5
3275echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
3276
3277
055400c9
VZ
3278if test "$wxUSE_ALL_FEATURES" = "no"; then
3279 DEFAULT_wxUSE_MEDIACTRL=no
3280fi
3281
1c14217d 3282
a848cd7e
SC
3283if test "$wxUSE_GUI" = "yes"; then
3284
3285
077c7880 3286 enablestring=
6e198e97 3287 defaultval=
238663c1 3288 if test -z "$defaultval"; then
6e198e97
VZ
3289 if test x"$enablestring" = xdisable; then
3290 defaultval=yes
3291 else
3292 defaultval=no
3293 fi
3294 fi
3295
d589327a
VZ
3296 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3297echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
47964710 3298 # Check whether --enable-universal was given.
a848cd7e 3299if test "${enable_universal+set}" = set; then
47964710 3300 enableval=$enable_universal;
a848cd7e 3301 if test "$enableval" = yes; then
d970f7d5 3302 wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
a848cd7e 3303 else
d970f7d5 3304 wx_cv_use_universal='wxUSE_UNIVERSAL=no'
a848cd7e
SC
3305 fi
3306
3307else
3308
d970f7d5 3309 wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
a848cd7e 3310
47964710
VS
3311fi
3312
a848cd7e 3313
d970f7d5 3314 eval "$wx_cv_use_universal"
a848cd7e 3315
6e198e97 3316 if test x"$enablestring" = xdisable; then
7ac0e38e 3317 if test $wxUSE_UNIVERSAL = no; then
6e198e97 3318 result=yes
7ac0e38e
VZ
3319 else
3320 result=no
6e198e97 3321 fi
a848cd7e 3322 else
6e198e97 3323 result=$wxUSE_UNIVERSAL
a848cd7e
SC
3324 fi
3325
d589327a
VZ
3326 { echo "$as_me:$LINENO: result: $result" >&5
3327echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
3328
3329if test "$wxUSE_UNIVERSAL" = "yes"; then
3330
47964710 3331# Check whether --with-themes was given.
6e198e97 3332if test "${with_themes+set}" = set; then
47964710
VS
3333 withval=$with_themes; wxUNIV_THEMES="$withval"
3334fi
3335
6e198e97
VZ
3336fi
3337
a848cd7e 3338
47964710 3339# Check whether --with-gtk was given.
a848cd7e 3340if test "${with_gtk+set}" = set; then
47964710
VS
3341 withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3342fi
3343
faa5c14f 3344
47964710 3345# Check whether --with-motif was given.
a848cd7e 3346if test "${with_motif+set}" = set; then
47964710
VS
3347 withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3348fi
3349
faa5c14f 3350
2ea057f9
SC
3351# Check whether --with-osx_carbon was given.
3352if test "${with_osx_carbon+set}" = set; then
3353 withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3354fi
3355
3356
3357# Check whether --with-osx_cocoa was given.
3358if test "${with_osx_cocoa+set}" = set; then
3359 withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3360fi
3361
3362
80aa2a2f
VZ
3363# Check whether --with-osx_iphone was given.
3364if test "${with_osx_iphone+set}" = set; then
3365 withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3366fi
3367
3368
f10f4c87
VZ
3369# Check whether --with-osx was given.
3370if test "${with_osx+set}" = set; then
3371 withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3372fi
3373
3374
3375# Check whether --with-carbon was given.
3376if test "${with_carbon+set}" = set; then
3377 withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3378fi
3379
3380
3381# Check whether --with-cocoa was given.
3382if test "${with_cocoa+set}" = set; then
3383 withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3384fi
3385
3386
80aa2a2f
VZ
3387# Check whether --with-iphone was given.
3388if test "${with_iphone+set}" = set; then
3389 withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3390fi
3391
3392
47964710 3393# Check whether --with-mac was given.
a848cd7e 3394if test "${with_mac+set}" = set; then
2ea057f9 3395 withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
47964710
VS
3396fi
3397
faa5c14f 3398
f10f4c87
VZ
3399# Check whether --with-old_cocoa was given.
3400if test "${with_old_cocoa+set}" = set; then
3401 withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
47964710
VS
3402fi
3403
faa5c14f 3404
47964710 3405# Check whether --with-wine was given.
a848cd7e 3406if test "${with_wine+set}" = set; then
47964710
VS
3407 withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3408fi
3409
faa5c14f 3410
47964710 3411# Check whether --with-msw was given.
a848cd7e 3412if test "${with_msw+set}" = set; then
47964710
VS
3413 withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3414fi
3415
faa5c14f 3416
47964710 3417# Check whether --with-pm was given.
a848cd7e 3418if test "${with_pm+set}" = set; then
47964710
VS
3419 withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3420fi
3421
a848cd7e 3422
47964710 3423# Check whether --with-mgl was given.
a848cd7e 3424if test "${with_mgl+set}" = set; then
47964710
VS
3425 withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3426fi
3427
7fd3acaf 3428
47964710 3429# Check whether --with-directfb was given.
b3c86150 3430if test "${with_directfb+set}" = set; then
47964710
VS
3431 withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3432fi
3433
7fd3acaf 3434
47964710 3435# Check whether --with-microwin was given.
a848cd7e 3436if test "${with_microwin+set}" = set; then
47964710
VS
3437 withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3438fi
3439
7fd3acaf 3440
47964710 3441# Check whether --with-x11 was given.
a848cd7e 3442if test "${with_x11+set}" = set; then
47964710
VS
3443 withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3444fi
3445
a848cd7e 3446
077c7880 3447 enablestring=
6e198e97 3448 defaultval=
238663c1 3449 if test -z "$defaultval"; then
6e198e97
VZ
3450 if test x"$enablestring" = xdisable; then
3451 defaultval=yes
3452 else
3453 defaultval=no
3454 fi
3455 fi
3456
d589327a
VZ
3457 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3458echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
47964710 3459 # Check whether --enable-nanox was given.
a848cd7e 3460if test "${enable_nanox+set}" = set; then
47964710 3461 enableval=$enable_nanox;
a848cd7e 3462 if test "$enableval" = yes; then
d970f7d5 3463 wx_cv_use_nanox='wxUSE_NANOX=yes'
a848cd7e 3464 else
d970f7d5 3465 wx_cv_use_nanox='wxUSE_NANOX=no'
a848cd7e
SC
3466 fi
3467
3468else
3469
d970f7d5 3470 wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
a848cd7e 3471
47964710
VS
3472fi
3473
a848cd7e 3474
d970f7d5 3475 eval "$wx_cv_use_nanox"
a848cd7e 3476
6e198e97 3477 if test x"$enablestring" = xdisable; then
7ac0e38e 3478 if test $wxUSE_NANOX = no; then
6e198e97 3479 result=yes
7ac0e38e
VZ
3480 else
3481 result=no
6e198e97 3482 fi
a848cd7e 3483 else
6e198e97 3484 result=$wxUSE_NANOX
a848cd7e
SC
3485 fi
3486
d589327a
VZ
3487 { echo "$as_me:$LINENO: result: $result" >&5
3488echo "${ECHO_T}$result" >&6; }
6e198e97 3489
a848cd7e 3490
47964710 3491# Check whether --enable-gtk2 was given.
f34ca037 3492if test "${enable_gtk2+set}" = set; then
47964710
VS
3493 enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3494fi
3495
a848cd7e 3496
077c7880 3497 enablestring=
6e198e97 3498 defaultval=
238663c1 3499 if test -z "$defaultval"; then
6e198e97
VZ
3500 if test x"$enablestring" = xdisable; then
3501 defaultval=yes
3502 else
3503 defaultval=no
3504 fi
3505 fi
3506
d589327a
VZ
3507 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3508echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
47964710 3509 # Check whether --enable-gpe was given.
a848cd7e 3510if test "${enable_gpe+set}" = set; then
47964710 3511 enableval=$enable_gpe;
a848cd7e 3512 if test "$enableval" = yes; then
d970f7d5 3513 wx_cv_use_gpe='wxUSE_GPE=yes'
a848cd7e 3514 else
d970f7d5 3515 wx_cv_use_gpe='wxUSE_GPE=no'
a848cd7e
SC
3516 fi
3517
3518else
3519
d970f7d5 3520 wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
a848cd7e 3521
47964710
VS
3522fi
3523
a848cd7e 3524
d970f7d5 3525 eval "$wx_cv_use_gpe"
a848cd7e 3526
6e198e97 3527 if test x"$enablestring" = xdisable; then
7ac0e38e 3528 if test $wxUSE_GPE = no; then
6e198e97 3529 result=yes
7ac0e38e
VZ
3530 else
3531 result=no
6e198e97 3532 fi
a848cd7e 3533 else
6e198e97 3534 result=$wxUSE_GPE
a848cd7e
SC
3535 fi
3536
d589327a
VZ
3537 { echo "$as_me:$LINENO: result: $result" >&5
3538echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
3539
3540
a848cd7e 3541
d589327a
VZ
3542{ echo "$as_me:$LINENO: checking for toolkit" >&5
3543echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
91a2809d 3544
2ea057f9
SC
3545
3546
91a2809d
VZ
3547# In Wine, we need to default to MSW, not GTK or MOTIF
3548if test "$wxUSE_WINE" = "yes"; then
3549 DEFAULT_DEFAULT_wxUSE_GTK=0
3550 DEFAULT_DEFAULT_wxUSE_MOTIF=0
3551 DEFAULT_DEFAULT_wxUSE_MSW=1
3552 wxUSE_SHARED=no
3553 CC=${CC:-winegcc}
3554 CXX=${CXX:-wineg++}
3555fi
3556
3557
3558if test "$wxUSE_GUI" = "yes"; then
3559
3560 if test "$USE_BEOS" = 1; then
d589327a
VZ
3561 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3562echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
91a2809d
VZ
3563 { (exit 1); exit 1; }; }
3564 fi
3565
3566 if test "$TOOLKIT_GIVEN" = 1; then
3567 for toolkit in $ALL_TOOLKITS; do
3568 var=wxUSE_$toolkit
3569 eval "value=\$${var}"
3570 if test "x$value" = "xno"; then
3571 eval "$var=0"
3572 elif test "x$value" != "x"; then
3573 eval "$var=1"
3574 fi
3575
3576 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3577 eval "wx${toolkit}_VERSION=$value"
3578 fi
3579 done
3580 else
3581 for toolkit in $ALL_TOOLKITS; do
3582 var=DEFAULT_DEFAULT_wxUSE_$toolkit
3583 eval "wxUSE_$toolkit=\$${var}"
3584 done
3585 fi
3586
f10f4c87 3587 NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
80aa2a2f 3588 + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
2ea057f9 3589 + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
91a2809d
VZ
3590
3591 case "${host}" in
3592 *-pc-os2_emx | *-pc-os2-emx )
3593 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3594 esac
3595
3596 case "$NUM_TOOLKITS" in
3597 1)
3598 ;;
3599 0)
d589327a
VZ
3600 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3601echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
91a2809d
VZ
3602 { (exit 1); exit 1; }; }
3603 ;;
3604 *)
d589327a
VZ
3605 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3606echo "$as_me: error: Please specify at most one toolkit" >&2;}
91a2809d
VZ
3607 { (exit 1); exit 1; }; }
3608 esac
3609
3610 # to be removed when --disable-gtk2 isn't needed
3611 if test "x$wxUSE_GTK2" = "xyes"; then
3612 wxGTK_VERSION=2
bfd62c8c 3613 wxUSE_GTK1=0
91a2809d
VZ
3614 elif test "x$wxUSE_GTK2" = "xno"; then
3615 wxGTK_VERSION=1
bfd62c8c 3616 wxUSE_GTK1=1
91a2809d
VZ
3617 fi
3618
3619 for toolkit in $ALL_TOOLKITS; do
3620 var=wxUSE_$toolkit
3621 eval "value=\$${var}"
3622 if test "$value" = 1; then
3623 toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
d589327a
VZ
3624 { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3625echo "${ECHO_T}$toolkit_echo" >&6; }
91a2809d
VZ
3626 fi
3627 done
3628else
3629 if test "x$host_alias" != "x"; then
d589327a
VZ
3630 { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3631echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
91a2809d 3632 else
d589327a
VZ
3633 { echo "$as_me:$LINENO: result: base only" >&5
3634echo "${ECHO_T}base only" >&6; }
91a2809d
VZ
3635 fi
3636fi
3637
2ea057f9 3638wxUSE_MAC=0
80aa2a2f
VZ
3639if test "$wxUSE_OSX_CARBON" = 1 \
3640 -o "$wxUSE_OSX_COCOA" = 1 \
3641 -o "$wxUSE_OSX_IPHONE" = 1; then
2ea057f9
SC
3642 wxUSE_MAC=1
3643fi
3644
91a2809d 3645
a848cd7e 3646
d589327a
VZ
3647 { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3648echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
a848cd7e 3649
47964710 3650# Check whether --with-libpng was given.
a848cd7e 3651if test "${with_libpng+set}" = set; then
47964710 3652 withval=$with_libpng;
a848cd7e 3653 if test "$withval" = yes; then
d970f7d5 3654 wx_cv_use_libpng='wxUSE_LIBPNG=yes'
a848cd7e 3655 elif test "$withval" = no; then
d970f7d5 3656 wx_cv_use_libpng='wxUSE_LIBPNG=no'
a848cd7e 3657 elif test "$withval" = sys; then
d970f7d5 3658 wx_cv_use_libpng='wxUSE_LIBPNG=sys'
a848cd7e 3659 elif test "$withval" = builtin; then
d970f7d5 3660 wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
a848cd7e 3661 else
d589327a
VZ
3662 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3663echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
a848cd7e
SC
3664 { (exit 1); exit 1; }; }
3665 fi
3666
3667else
3668
d970f7d5 3669 wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
a848cd7e 3670
47964710
VS
3671fi
3672
a848cd7e 3673
d970f7d5 3674 eval "$wx_cv_use_libpng"
a848cd7e
SC
3675
3676 if test "$wxUSE_LIBPNG" = yes; then
d589327a
VZ
3677 { echo "$as_me:$LINENO: result: yes" >&5
3678echo "${ECHO_T}yes" >&6; }
a848cd7e 3679 elif test "$wxUSE_LIBPNG" = no; then
d589327a
VZ
3680 { echo "$as_me:$LINENO: result: no" >&5
3681echo "${ECHO_T}no" >&6; }
a848cd7e 3682 elif test "$wxUSE_LIBPNG" = sys; then
d589327a
VZ
3683 { echo "$as_me:$LINENO: result: system version" >&5
3684echo "${ECHO_T}system version" >&6; }
a848cd7e 3685 elif test "$wxUSE_LIBPNG" = builtin; then
d589327a
VZ
3686 { echo "$as_me:$LINENO: result: builtin version" >&5
3687echo "${ECHO_T}builtin version" >&6; }
a848cd7e 3688 else
d589327a
VZ
3689 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3690echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
a848cd7e
SC
3691 { (exit 1); exit 1; }; }
3692 fi
3693
3694
d589327a
VZ
3695 { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3696echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
a848cd7e 3697
47964710 3698# Check whether --with-libjpeg was given.
a848cd7e 3699if test "${with_libjpeg+set}" = set; then
47964710 3700 withval=$with_libjpeg;
a848cd7e 3701 if test "$withval" = yes; then
d970f7d5 3702 wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
a848cd7e 3703 elif test "$withval" = no; then
d970f7d5 3704 wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
a848cd7e 3705 elif test "$withval" = sys; then
d970f7d5 3706 wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
a848cd7e 3707 elif test "$withval" = builtin; then
d970f7d5 3708 wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
a848cd7e 3709 else
d589327a
VZ
3710 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3711echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
a848cd7e
SC
3712 { (exit 1); exit 1; }; }
3713 fi
3714
3715else
3716
d970f7d5 3717 wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
a848cd7e 3718
47964710
VS
3719fi
3720
a848cd7e 3721
d970f7d5 3722 eval "$wx_cv_use_libjpeg"
a848cd7e
SC
3723
3724 if test "$wxUSE_LIBJPEG" = yes; then
d589327a
VZ
3725 { echo "$as_me:$LINENO: result: yes" >&5
3726echo "${ECHO_T}yes" >&6; }
a848cd7e 3727 elif test "$wxUSE_LIBJPEG" = no; then
d589327a
VZ
3728 { echo "$as_me:$LINENO: result: no" >&5
3729echo "${ECHO_T}no" >&6; }
a848cd7e 3730 elif test "$wxUSE_LIBJPEG" = sys; then
d589327a
VZ
3731 { echo "$as_me:$LINENO: result: system version" >&5
3732echo "${ECHO_T}system version" >&6; }
a848cd7e 3733 elif test "$wxUSE_LIBJPEG" = builtin; then
d589327a
VZ
3734 { echo "$as_me:$LINENO: result: builtin version" >&5
3735echo "${ECHO_T}builtin version" >&6; }
a848cd7e 3736 else
d589327a
VZ
3737 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3738echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
a848cd7e
SC
3739 { (exit 1); exit 1; }; }
3740 fi
3741
3742
d589327a
VZ
3743 { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3744echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
a848cd7e 3745
47964710 3746# Check whether --with-libtiff was given.
a848cd7e 3747if test "${with_libtiff+set}" = set; then
47964710 3748 withval=$with_libtiff;
a848cd7e 3749 if test "$withval" = yes; then
d970f7d5 3750 wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
a848cd7e 3751 elif test "$withval" = no; then
d970f7d5 3752 wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
a848cd7e 3753 elif test "$withval" = sys; then
d970f7d5 3754 wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
a848cd7e 3755 elif test "$withval" = builtin; then
d970f7d5 3756 wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
a848cd7e 3757 else
d589327a
VZ
3758 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3759echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
a848cd7e
SC
3760 { (exit 1); exit 1; }; }
3761 fi
3762
3763else
3764
d970f7d5 3765 wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
a848cd7e 3766
47964710
VS
3767fi
3768
a848cd7e 3769
d970f7d5 3770 eval "$wx_cv_use_libtiff"
a848cd7e
SC
3771
3772 if test "$wxUSE_LIBTIFF" = yes; then
d589327a
VZ
3773 { echo "$as_me:$LINENO: result: yes" >&5
3774echo "${ECHO_T}yes" >&6; }
a848cd7e 3775 elif test "$wxUSE_LIBTIFF" = no; then
d589327a
VZ
3776 { echo "$as_me:$LINENO: result: no" >&5
3777echo "${ECHO_T}no" >&6; }
a848cd7e 3778 elif test "$wxUSE_LIBTIFF" = sys; then
d589327a
VZ
3779 { echo "$as_me:$LINENO: result: system version" >&5
3780echo "${ECHO_T}system version" >&6; }
a848cd7e 3781 elif test "$wxUSE_LIBTIFF" = builtin; then
d589327a
VZ
3782 { echo "$as_me:$LINENO: result: builtin version" >&5
3783echo "${ECHO_T}builtin version" >&6; }
a848cd7e 3784 else
d589327a
VZ
3785 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3786echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
a848cd7e
SC
3787 { (exit 1); exit 1; }; }
3788 fi
3789
3790
d589327a
VZ
3791 { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3792echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
a848cd7e 3793
47964710 3794# Check whether --with-libxpm was given.
a848cd7e 3795if test "${with_libxpm+set}" = set; then
47964710 3796 withval=$with_libxpm;
a848cd7e 3797 if test "$withval" = yes; then
d970f7d5 3798 wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
a848cd7e 3799 elif test "$withval" = no; then
d970f7d5 3800 wx_cv_use_libxpm='wxUSE_LIBXPM=no'
a848cd7e 3801 elif test "$withval" = sys; then
d970f7d5 3802 wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
a848cd7e 3803 elif test "$withval" = builtin; then
d970f7d5 3804 wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
a848cd7e 3805 else
d589327a
VZ
3806 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3807echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
a848cd7e
SC
3808 { (exit 1); exit 1; }; }
3809 fi
3810
3811else
3812
d970f7d5 3813 wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
a848cd7e 3814
47964710
VS
3815fi
3816
a848cd7e 3817
d970f7d5 3818 eval "$wx_cv_use_libxpm"
a848cd7e
SC
3819
3820 if test "$wxUSE_LIBXPM" = yes; then
d589327a
VZ
3821 { echo "$as_me:$LINENO: result: yes" >&5
3822echo "${ECHO_T}yes" >&6; }
a848cd7e 3823 elif test "$wxUSE_LIBXPM" = no; then
d589327a
VZ
3824 { echo "$as_me:$LINENO: result: no" >&5
3825echo "${ECHO_T}no" >&6; }
a848cd7e 3826 elif test "$wxUSE_LIBXPM" = sys; then
d589327a
VZ
3827 { echo "$as_me:$LINENO: result: system version" >&5
3828echo "${ECHO_T}system version" >&6; }
a848cd7e 3829 elif test "$wxUSE_LIBXPM" = builtin; then
d589327a
VZ
3830 { echo "$as_me:$LINENO: result: builtin version" >&5
3831echo "${ECHO_T}builtin version" >&6; }
a848cd7e 3832 else
d589327a
VZ
3833 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3834echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
a848cd7e
SC
3835 { (exit 1); exit 1; }; }
3836 fi
3837
3838
e9efd9f1
VZ
3839 withstring=
3840 defaultval=$wxUSE_ALL_FEATURES
3841 if test -z "$defaultval"; then
3842 if test x"$withstring" = xwithout; then
3843 defaultval=yes
3844 else
3845 defaultval=no
3846 fi
3847 fi
d589327a
VZ
3848 { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3849echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
e9efd9f1
VZ
3850
3851# Check whether --with-libiconv was given.
3852if test "${with_libiconv+set}" = set; then
3853 withval=$with_libiconv;
3854 if test "$withval" = yes; then
3855 wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3856 else
3857 wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3858 fi
3859
3860else
3861
3862 wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3863
3864fi
3865
3866
3867 eval "$wx_cv_use_libiconv"
3868
3869 if test x"$withstring" = xwithout; then
3870 if test $wxUSE_LIBICONV = yes; then
3871 result=no
3872 else
3873 result=yes
3874 fi
3875 else
3876 result=$wxUSE_LIBICONV
3877 fi
3878
d589327a
VZ
3879 { echo "$as_me:$LINENO: result: $result" >&5
3880echo "${ECHO_T}$result" >&6; }
e9efd9f1
VZ
3881
3882
077c7880 3883 withstring=
47124ca6
VZ
3884 defaultval=$wxUSE_ALL_FEATURES
3885 if test -z "$defaultval"; then
3886 if test x"$withstring" = xwithout; then
3887 defaultval=yes
3888 else
3889 defaultval=no
3890 fi
3891 fi
d589327a
VZ
3892 { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3893echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
a848cd7e 3894
47964710 3895# Check whether --with-libmspack was given.
a848cd7e 3896if test "${with_libmspack+set}" = set; then
47964710 3897 withval=$with_libmspack;
a848cd7e 3898 if test "$withval" = yes; then
d970f7d5 3899 wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
a848cd7e 3900 else
d970f7d5 3901 wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
a848cd7e
SC
3902 fi
3903
3904else
3905
47124ca6 3906 wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
a848cd7e 3907
47964710
VS
3908fi
3909
a848cd7e 3910
d970f7d5 3911 eval "$wx_cv_use_libmspack"
a848cd7e 3912
6e198e97
VZ
3913 if test x"$withstring" = xwithout; then
3914 if test $wxUSE_LIBMSPACK = yes; then
3915 result=no
3916 else
3917 result=yes
3918 fi
a848cd7e 3919 else
6e198e97 3920 result=$wxUSE_LIBMSPACK
a848cd7e
SC
3921 fi
3922
d589327a
VZ
3923 { echo "$as_me:$LINENO: result: $result" >&5
3924echo "${ECHO_T}$result" >&6; }
bd8a7646
RR
3925
3926
3927 withstring=without
3928 defaultval=$wxUSE_ALL_FEATURES
3929 if test -z "$defaultval"; then
3930 if test x"$withstring" = xwithout; then
3931 defaultval=yes
3932 else
3933 defaultval=no
3934 fi
3935 fi
d589327a
VZ
3936 { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3937echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
bd8a7646 3938
47964710 3939# Check whether --with-gtkprint was given.
bd8a7646 3940if test "${with_gtkprint+set}" = set; then
47964710 3941 withval=$with_gtkprint;
bd8a7646
RR
3942 if test "$withval" = yes; then
3943 wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3944 else
3945 wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3946 fi
bd8a7646
RR
3947
3948else
3949
bd8a7646
RR
3950 wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3951
47964710
VS
3952fi
3953
bd8a7646
RR
3954
3955 eval "$wx_cv_use_gtkprint"
bd8a7646
RR
3956
3957 if test x"$withstring" = xwithout; then
3958 if test $wxUSE_GTKPRINT = yes; then
3959 result=no
3960 else
3961 result=yes
3962 fi
3963 else
3964 result=$wxUSE_GTKPRINT
3965 fi
3966
d589327a
VZ
3967 { echo "$as_me:$LINENO: result: $result" >&5
3968echo "${ECHO_T}$result" >&6; }
a848cd7e 3969
6e198e97
VZ
3970
3971 withstring=without
47124ca6
VZ
3972 defaultval=$wxUSE_ALL_FEATURES
3973 if test -z "$defaultval"; then
3974 if test x"$withstring" = xwithout; then
3975 defaultval=yes
3976 else
3977 defaultval=no
3978 fi
3979 fi
d589327a
VZ
3980 { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3981echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
d1c38808 3982
47964710 3983# Check whether --with-gnomeprint was given.
d1c38808 3984if test "${with_gnomeprint+set}" = set; then
47964710 3985 withval=$with_gnomeprint;
d1c38808 3986 if test "$withval" = yes; then
d970f7d5 3987 wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
d1c38808 3988 else
d970f7d5 3989 wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
d1c38808
VZ
3990 fi
3991
3992else
3993
47124ca6 3994 wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
d1c38808 3995
47964710
VS
3996fi
3997
d1c38808 3998
d970f7d5 3999 eval "$wx_cv_use_gnomeprint"
d1c38808 4000
6e198e97
VZ
4001 if test x"$withstring" = xwithout; then
4002 if test $wxUSE_LIBGNOMEPRINT = yes; then
4003 result=no
4004 else
4005 result=yes
4006 fi
d1c38808 4007 else
6e198e97 4008 result=$wxUSE_LIBGNOMEPRINT
d1c38808
VZ
4009 fi
4010
d589327a
VZ
4011 { echo "$as_me:$LINENO: result: $result" >&5
4012echo "${ECHO_T}$result" >&6; }
6e198e97 4013
d1c38808 4014
077c7880 4015 withstring=
47124ca6
VZ
4016 defaultval=$wxUSE_ALL_FEATURES
4017 if test -z "$defaultval"; then
4018 if test x"$withstring" = xwithout; then
4019 defaultval=yes
4020 else
4021 defaultval=no
4022 fi
4023 fi
d589327a
VZ
4024 { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4025echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
2b850ae1 4026
47964710 4027# Check whether --with-gnomevfs was given.
2b850ae1 4028if test "${with_gnomevfs+set}" = set; then
47964710 4029 withval=$with_gnomevfs;
2b850ae1 4030 if test "$withval" = yes; then
d970f7d5 4031 wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
2b850ae1 4032 else
d970f7d5 4033 wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
2b850ae1
RR
4034 fi
4035
4036else
4037
47124ca6 4038 wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
2b850ae1 4039
47964710
VS
4040fi
4041
2b850ae1 4042
d970f7d5 4043 eval "$wx_cv_use_gnomevfs"
2b850ae1 4044
6e198e97
VZ
4045 if test x"$withstring" = xwithout; then
4046 if test $wxUSE_LIBGNOMEVFS = yes; then
4047 result=no
4048 else
4049 result=yes
4050 fi
2b850ae1 4051 else
6e198e97 4052 result=$wxUSE_LIBGNOMEVFS
2b850ae1
RR
4053 fi
4054
d589327a
VZ
4055 { echo "$as_me:$LINENO: result: $result" >&5
4056echo "${ECHO_T}$result" >&6; }
6e198e97 4057
2b850ae1 4058
077c7880 4059 withstring=
47124ca6
VZ
4060 defaultval=$wxUSE_ALL_FEATURES
4061 if test -z "$defaultval"; then
4062 if test x"$withstring" = xwithout; then
4063 defaultval=yes
4064 else
4065 defaultval=no
4066 fi
4067 fi
d589327a
VZ
4068 { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4069echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3565d135 4070
47964710 4071# Check whether --with-hildon was given.
3565d135 4072if test "${with_hildon+set}" = set; then
47964710 4073 withval=$with_hildon;
3565d135 4074 if test "$withval" = yes; then
d970f7d5 4075 wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3565d135 4076 else
d970f7d5 4077 wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3565d135
RR
4078 fi
4079
4080else
4081
47124ca6 4082 wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3565d135 4083
47964710
VS
4084fi
4085
3565d135 4086
d970f7d5 4087 eval "$wx_cv_use_hildon"
3565d135 4088
6e198e97
VZ
4089 if test x"$withstring" = xwithout; then
4090 if test $wxUSE_LIBHILDON = yes; then
4091 result=no
4092 else
4093 result=yes
4094 fi
3565d135 4095 else
6e198e97 4096 result=$wxUSE_LIBHILDON
3565d135
RR
4097 fi
4098
d589327a
VZ
4099 { echo "$as_me:$LINENO: result: $result" >&5
4100echo "${ECHO_T}$result" >&6; }
6e198e97 4101
3565d135 4102
077c7880 4103 withstring=
47124ca6
VZ
4104 defaultval=$wxUSE_ALL_FEATURES
4105 if test -z "$defaultval"; then
4106 if test x"$withstring" = xwithout; then
4107 defaultval=yes
4108 else
4109 defaultval=no
4110 fi
4111 fi
d589327a
VZ
4112 { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4113echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
a848cd7e 4114
47964710 4115# Check whether --with-opengl was given.
a848cd7e 4116if test "${with_opengl+set}" = set; then
47964710 4117 withval=$with_opengl;
a848cd7e 4118 if test "$withval" = yes; then
d970f7d5 4119 wx_cv_use_opengl='wxUSE_OPENGL=yes'
a848cd7e 4120 else
d970f7d5 4121 wx_cv_use_opengl='wxUSE_OPENGL=no'
a848cd7e
SC
4122 fi
4123
4124else
4125
47124ca6 4126 wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
a848cd7e 4127
47964710
VS
4128fi
4129
a848cd7e 4130
d970f7d5 4131 eval "$wx_cv_use_opengl"
a848cd7e 4132
6e198e97
VZ
4133 if test x"$withstring" = xwithout; then
4134 if test $wxUSE_OPENGL = yes; then
4135 result=no
4136 else
4137 result=yes
4138 fi
a848cd7e 4139 else
6e198e97 4140 result=$wxUSE_OPENGL
a848cd7e
SC
4141 fi
4142
d589327a
VZ
4143 { echo "$as_me:$LINENO: result: $result" >&5
4144echo "${ECHO_T}$result" >&6; }
a848cd7e 4145
4353a8df 4146
a848cd7e
SC
4147fi
4148
4149
077c7880 4150 withstring=
47124ca6
VZ
4151 defaultval=$wxUSE_ALL_FEATURES
4152 if test -z "$defaultval"; then
4153 if test x"$withstring" = xwithout; then
4154 defaultval=yes
4155 else
4156 defaultval=no
4157 fi
4158 fi
d589327a
VZ
4159 { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4160echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
a848cd7e 4161
47964710 4162# Check whether --with-dmalloc was given.
a848cd7e 4163if test "${with_dmalloc+set}" = set; then
47964710 4164 withval=$with_dmalloc;
a848cd7e 4165 if test "$withval" = yes; then
d970f7d5 4166 wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
a848cd7e 4167 else
d970f7d5 4168 wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
a848cd7e
SC
4169 fi
4170
4171else
4172
47124ca6 4173 wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
a848cd7e 4174
47964710
VS
4175fi
4176
a848cd7e 4177
d970f7d5 4178 eval "$wx_cv_use_dmalloc"
a848cd7e 4179
6e198e97
VZ
4180 if test x"$withstring" = xwithout; then
4181 if test $wxUSE_DMALLOC = yes; then
4182 result=no
4183 else
4184 result=yes
4185 fi
a848cd7e 4186 else
6e198e97 4187 result=$wxUSE_DMALLOC
a848cd7e
SC
4188 fi
4189
d589327a
VZ
4190 { echo "$as_me:$LINENO: result: $result" >&5
4191echo "${ECHO_T}$result" >&6; }
6e198e97 4192
a848cd7e 4193
84ebfcbd 4194 withstring=
47124ca6
VZ
4195 defaultval=$wxUSE_ALL_FEATURES
4196 if test -z "$defaultval"; then
4197 if test x"$withstring" = xwithout; then
4198 defaultval=yes
4199 else
4200 defaultval=no
4201 fi
4202 fi
d589327a
VZ
4203 { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4204echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
a848cd7e 4205
47964710 4206# Check whether --with-sdl was given.
84ebfcbd 4207if test "${with_sdl+set}" = set; then
47964710 4208 withval=$with_sdl;
84ebfcbd 4209 if test "$withval" = yes; then
d970f7d5 4210 wx_cv_use_sdl='wxUSE_LIBSDL=yes'
84ebfcbd 4211 else
d970f7d5 4212 wx_cv_use_sdl='wxUSE_LIBSDL=no'
84ebfcbd
VZ
4213 fi
4214
4215else
4216
47124ca6 4217 wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
84ebfcbd 4218
47964710
VS
4219fi
4220
84ebfcbd 4221
d970f7d5 4222 eval "$wx_cv_use_sdl"
84ebfcbd
VZ
4223
4224 if test x"$withstring" = xwithout; then
4225 if test $wxUSE_LIBSDL = yes; then
4226 result=no
4227 else
4228 result=yes
4229 fi
4230 else
4231 result=$wxUSE_LIBSDL
4232 fi
4233
d589327a
VZ
4234 { echo "$as_me:$LINENO: result: $result" >&5
4235echo "${ECHO_T}$result" >&6; }
84ebfcbd
VZ
4236
4237
d589327a
VZ
4238 { echo "$as_me:$LINENO: checking for --with-regex" >&5
4239echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
84ebfcbd 4240
47964710 4241# Check whether --with-regex was given.
84ebfcbd 4242if test "${with_regex+set}" = set; then
47964710 4243 withval=$with_regex;
a848cd7e 4244 if test "$withval" = yes; then
d970f7d5 4245 wx_cv_use_regex='wxUSE_REGEX=yes'
a848cd7e 4246 elif test "$withval" = no; then
d970f7d5 4247 wx_cv_use_regex='wxUSE_REGEX=no'
a848cd7e 4248 elif test "$withval" = sys; then
d970f7d5 4249 wx_cv_use_regex='wxUSE_REGEX=sys'
a848cd7e 4250 elif test "$withval" = builtin; then
d970f7d5 4251 wx_cv_use_regex='wxUSE_REGEX=builtin'
a848cd7e 4252 else
d589327a
VZ
4253 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4254echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
a848cd7e
SC
4255 { (exit 1); exit 1; }; }
4256 fi
4257
4258else
4259
d970f7d5 4260 wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
a848cd7e 4261
47964710
VS
4262fi
4263
a848cd7e 4264
d970f7d5 4265 eval "$wx_cv_use_regex"
a848cd7e
SC
4266
4267 if test "$wxUSE_REGEX" = yes; then
d589327a
VZ
4268 { echo "$as_me:$LINENO: result: yes" >&5
4269echo "${ECHO_T}yes" >&6; }
a848cd7e 4270 elif test "$wxUSE_REGEX" = no; then
d589327a
VZ
4271 { echo "$as_me:$LINENO: result: no" >&5
4272echo "${ECHO_T}no" >&6; }
a848cd7e 4273 elif test "$wxUSE_REGEX" = sys; then
d589327a
VZ
4274 { echo "$as_me:$LINENO: result: system version" >&5
4275echo "${ECHO_T}system version" >&6; }
a848cd7e 4276 elif test "$wxUSE_REGEX" = builtin; then
d589327a
VZ
4277 { echo "$as_me:$LINENO: result: builtin version" >&5
4278echo "${ECHO_T}builtin version" >&6; }
a848cd7e 4279 else
d589327a
VZ
4280 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4281echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
a848cd7e
SC
4282 { (exit 1); exit 1; }; }
4283 fi
4284
4285
d589327a
VZ
4286 { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4287echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
a848cd7e 4288
47964710 4289# Check whether --with-zlib was given.
a848cd7e 4290if test "${with_zlib+set}" = set; then
47964710 4291 withval=$with_zlib;
a848cd7e 4292 if test "$withval" = yes; then
d970f7d5 4293 wx_cv_use_zlib='wxUSE_ZLIB=yes'
a848cd7e 4294 elif test "$withval" = no; then
d970f7d5 4295 wx_cv_use_zlib='wxUSE_ZLIB=no'
a848cd7e 4296 elif test "$withval" = sys; then
d970f7d5 4297 wx_cv_use_zlib='wxUSE_ZLIB=sys'
a848cd7e 4298 elif test "$withval" = builtin; then
d970f7d5 4299 wx_cv_use_zlib='wxUSE_ZLIB=builtin'
a848cd7e 4300 else
d589327a
VZ
4301 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4302echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
a848cd7e
SC
4303 { (exit 1); exit 1; }; }
4304 fi
4305
4306else
4307
d970f7d5 4308 wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
a848cd7e 4309
47964710
VS
4310fi
4311
a848cd7e 4312
d970f7d5 4313 eval "$wx_cv_use_zlib"
a848cd7e
SC
4314
4315 if test "$wxUSE_ZLIB" = yes; then
d589327a
VZ
4316 { echo "$as_me:$LINENO: result: yes" >&5
4317echo "${ECHO_T}yes" >&6; }
a848cd7e 4318 elif test "$wxUSE_ZLIB" = no; then
d589327a
VZ
4319 { echo "$as_me:$LINENO: result: no" >&5
4320echo "${ECHO_T}no" >&6; }
a848cd7e 4321 elif test "$wxUSE_ZLIB" = sys; then
d589327a
VZ
4322 { echo "$as_me:$LINENO: result: system version" >&5
4323echo "${ECHO_T}system version" >&6; }
a848cd7e 4324 elif test "$wxUSE_ZLIB" = builtin; then
d589327a
VZ
4325 { echo "$as_me:$LINENO: result: builtin version" >&5
4326echo "${ECHO_T}builtin version" >&6; }
a848cd7e 4327 else
d589327a
VZ
4328 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4329echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
a848cd7e
SC
4330 { (exit 1); exit 1; }; }
4331 fi
4332
4333
d589327a
VZ
4334 { echo "$as_me:$LINENO: checking for --with-expat" >&5
4335echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
a848cd7e 4336
47964710 4337# Check whether --with-expat was given.
a848cd7e 4338if test "${with_expat+set}" = set; then
47964710 4339 withval=$with_expat;
a848cd7e 4340 if test "$withval" = yes; then
d970f7d5 4341 wx_cv_use_expat='wxUSE_EXPAT=yes'
a848cd7e 4342 elif test "$withval" = no; then
d970f7d5 4343 wx_cv_use_expat='wxUSE_EXPAT=no'
a848cd7e 4344 elif test "$withval" = sys; then
d970f7d5 4345 wx_cv_use_expat='wxUSE_EXPAT=sys'
a848cd7e 4346 elif test "$withval" = builtin; then
d970f7d5 4347 wx_cv_use_expat='wxUSE_EXPAT=builtin'
a848cd7e 4348 else
d589327a
VZ
4349 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4350echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
a848cd7e
SC
4351 { (exit 1); exit 1; }; }
4352 fi
4353
4354else
4355
d970f7d5 4356 wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
a848cd7e 4357
47964710
VS
4358fi
4359
a848cd7e 4360
d970f7d5 4361 eval "$wx_cv_use_expat"
a848cd7e
SC
4362
4363 if test "$wxUSE_EXPAT" = yes; then
d589327a
VZ
4364 { echo "$as_me:$LINENO: result: yes" >&5
4365echo "${ECHO_T}yes" >&6; }
a848cd7e 4366 elif test "$wxUSE_EXPAT" = no; then
d589327a
VZ
4367 { echo "$as_me:$LINENO: result: no" >&5
4368echo "${ECHO_T}no" >&6; }
a848cd7e 4369 elif test "$wxUSE_EXPAT" = sys; then
d589327a
VZ
4370 { echo "$as_me:$LINENO: result: system version" >&5
4371echo "${ECHO_T}system version" >&6; }
a848cd7e 4372 elif test "$wxUSE_EXPAT" = builtin; then
d589327a
VZ
4373 { echo "$as_me:$LINENO: result: builtin version" >&5
4374echo "${ECHO_T}builtin version" >&6; }
a848cd7e 4375 else
d589327a
VZ
4376 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4377echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
a848cd7e
SC
4378 { (exit 1); exit 1; }; }
4379 fi
4380
4381
d589327a
VZ
4382{ echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4383echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
b4e05bdd 4384
47964710 4385# Check whether --with-macosx-sdk was given.
b4e05bdd 4386if test "${with_macosx_sdk+set}" = set; then
47964710 4387 withval=$with_macosx_sdk;
b4e05bdd
DE
4388 wxUSE_MACOSX_SDK=$withval
4389 wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
b4e05bdd 4390
47964710
VS
4391fi
4392
d589327a
VZ
4393{ echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4394echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
b4e05bdd 4395
d589327a
VZ
4396{ echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4397echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
b4e05bdd 4398
47964710 4399# Check whether --with-macosx-version-min was given.
b4e05bdd 4400if test "${with_macosx_version_min+set}" = set; then
47964710 4401 withval=$with_macosx_version_min;
b4e05bdd
DE
4402 wxUSE_MACOSX_VERSION_MIN=$withval
4403 wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
b4e05bdd 4404
47964710
VS
4405fi
4406
d589327a
VZ
4407{ echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4408echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
b4e05bdd 4409
a848cd7e 4410
89b1afb4
VZ
4411{ echo "$as_me:$LINENO: checking for --enable-debug" >&5
4412echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4413# Check whether --enable-debug was given.
4414if test "${enable_debug+set}" = set; then
4415 enableval=$enable_debug;
4416 if test "$enableval" = yes; then
4417 wxUSE_DEBUG=yes
4418 elif test "$enableval" = no; then
4419 wxUSE_DEBUG=no
4420 elif test "$enableval" = max; then
4421 wxUSE_DEBUG=yes
4422 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4423 else
4424 { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4425echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4426 { (exit 1); exit 1; }; }
4427 fi
a848cd7e 4428
a848cd7e 4429else
89b1afb4 4430 wxUSE_DEBUG=default
a848cd7e 4431
47964710
VS
4432fi
4433
a848cd7e 4434
89b1afb4
VZ
4435case "$wxUSE_DEBUG" in
4436 yes)
4437 DEFAULT_wxUSE_DEBUG_FLAG=yes
4438 DEFAULT_wxUSE_DEBUG_INFO=yes
a848cd7e 4439
89b1afb4
VZ
4440 DEFAULT_wxUSE_OPTIMISE=no
4441 ;;
a848cd7e 4442
89b1afb4
VZ
4443 no)
4444 DEFAULT_wxUSE_DEBUG_FLAG=no
4445 DEFAULT_wxUSE_DEBUG_INFO=no
4446 ;;
6e198e97 4447
89b1afb4
VZ
4448 default)
4449 DEFAULT_wxUSE_DEBUG_FLAG=yes
4450 DEFAULT_wxUSE_DEBUG_INFO=no
4451 ;;
4452esac
a848cd7e 4453
89b1afb4
VZ
4454
4455 enablestring=disable
6e198e97 4456 defaultval=
238663c1 4457 if test -z "$defaultval"; then
6e198e97
VZ
4458 if test x"$enablestring" = xdisable; then
4459 defaultval=yes
4460 else
4461 defaultval=no
4462 fi
4463 fi
4464
89b1afb4
VZ
4465 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4466echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4467 # Check whether --enable-debug_flag was given.
4468if test "${enable_debug_flag+set}" = set; then
4469 enableval=$enable_debug_flag;
a848cd7e 4470 if test "$enableval" = yes; then
89b1afb4 4471 wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
a848cd7e 4472 else
89b1afb4 4473 wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
a848cd7e
SC
4474 fi
4475
4476else
4477
89b1afb4 4478 wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
a848cd7e 4479
47964710
VS
4480fi
4481
a848cd7e 4482
89b1afb4 4483 eval "$wx_cv_use_debug_flag"
a848cd7e 4484
6e198e97 4485 if test x"$enablestring" = xdisable; then
89b1afb4 4486 if test $wxUSE_DEBUG_FLAG = no; then
6e198e97 4487 result=yes
7ac0e38e
VZ
4488 else
4489 result=no
6e198e97 4490 fi
a848cd7e 4491 else
89b1afb4 4492 result=$wxUSE_DEBUG_FLAG
a848cd7e
SC
4493 fi
4494
d589327a
VZ
4495 { echo "$as_me:$LINENO: result: $result" >&5
4496echo "${ECHO_T}$result" >&6; }
6e198e97 4497
a848cd7e 4498
077c7880 4499 enablestring=
6e198e97 4500 defaultval=
238663c1 4501 if test -z "$defaultval"; then
6e198e97
VZ
4502 if test x"$enablestring" = xdisable; then
4503 defaultval=yes
4504 else
4505 defaultval=no
4506 fi
4507 fi
4508
89b1afb4
VZ
4509 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4510echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4511 # Check whether --enable-debug_info was given.
4512if test "${enable_debug_info+set}" = set; then
4513 enableval=$enable_debug_info;
a848cd7e 4514 if test "$enableval" = yes; then
89b1afb4 4515 wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
a848cd7e 4516 else
89b1afb4 4517 wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
a848cd7e
SC
4518 fi
4519
4520else
4521
89b1afb4 4522 wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
a848cd7e 4523
47964710
VS
4524fi
4525
a848cd7e 4526
89b1afb4 4527 eval "$wx_cv_use_debug_info"
a848cd7e 4528
6e198e97 4529 if test x"$enablestring" = xdisable; then
89b1afb4 4530 if test $wxUSE_DEBUG_INFO = no; then
6e198e97 4531 result=yes
7ac0e38e
VZ
4532 else
4533 result=no
6e198e97 4534 fi
a848cd7e 4535 else
89b1afb4 4536 result=$wxUSE_DEBUG_INFO
a848cd7e
SC
4537 fi
4538
d589327a
VZ
4539 { echo "$as_me:$LINENO: result: $result" >&5
4540echo "${ECHO_T}$result" >&6; }
6e198e97 4541
81727065 4542
89b1afb4
VZ
4543
4544
81727065 4545 enablestring=
6e198e97 4546 defaultval=
238663c1 4547 if test -z "$defaultval"; then
6e198e97
VZ
4548 if test x"$enablestring" = xdisable; then
4549 defaultval=yes
4550 else
4551 defaultval=no
4552 fi
4553 fi
4554
89b1afb4
VZ
4555 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4556echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4557 # Check whether --enable-debug_gdb was given.
4558if test "${enable_debug_gdb+set}" = set; then
4559 enableval=$enable_debug_gdb;
81727065 4560 if test "$enableval" = yes; then
89b1afb4 4561 wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
81727065 4562 else
89b1afb4 4563 wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
81727065
VS
4564 fi
4565
4566else
4567
89b1afb4 4568 wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
81727065 4569
47964710
VS
4570fi
4571
81727065 4572
89b1afb4 4573 eval "$wx_cv_use_debug_gdb"
81727065 4574
6e198e97 4575 if test x"$enablestring" = xdisable; then
89b1afb4 4576 if test $wxUSE_DEBUG_GDB = no; then
6e198e97 4577 result=yes
7ac0e38e
VZ
4578 else
4579 result=no
6e198e97 4580 fi
81727065 4581 else
89b1afb4 4582 result=$wxUSE_DEBUG_GDB
81727065
VS
4583 fi
4584
d589327a
VZ
4585 { echo "$as_me:$LINENO: result: $result" >&5
4586echo "${ECHO_T}$result" >&6; }
6e198e97 4587
a848cd7e 4588
077c7880 4589 enablestring=
6e198e97 4590 defaultval=
238663c1 4591 if test -z "$defaultval"; then
6e198e97
VZ
4592 if test x"$enablestring" = xdisable; then
4593 defaultval=yes
4594 else
4595 defaultval=no
4596 fi
4597 fi
4598
89b1afb4
VZ
4599 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4600echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4601 # Check whether --enable-debug_cntxt was given.
4602if test "${enable_debug_cntxt+set}" = set; then
4603 enableval=$enable_debug_cntxt;
a848cd7e 4604 if test "$enableval" = yes; then
89b1afb4 4605 wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
a848cd7e 4606 else
89b1afb4 4607 wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
a848cd7e
SC
4608 fi
4609
4610else
4611
89b1afb4 4612 wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
a848cd7e 4613
47964710
VS
4614fi
4615
a848cd7e 4616
89b1afb4 4617 eval "$wx_cv_use_debug_cntxt"
a848cd7e 4618
6e198e97 4619 if test x"$enablestring" = xdisable; then
89b1afb4 4620 if test $wxUSE_DEBUG_CONTEXT = no; then
6e198e97 4621 result=yes
7ac0e38e
VZ
4622 else
4623 result=no
6e198e97 4624 fi
a848cd7e 4625 else
89b1afb4 4626 result=$wxUSE_DEBUG_CONTEXT
a848cd7e
SC
4627 fi
4628
d589327a
VZ
4629 { echo "$as_me:$LINENO: result: $result" >&5
4630echo "${ECHO_T}$result" >&6; }
a848cd7e 4631
a848cd7e 4632
89b1afb4 4633 enablestring=
6e198e97 4634 defaultval=
238663c1 4635 if test -z "$defaultval"; then
6e198e97
VZ
4636 if test x"$enablestring" = xdisable; then
4637 defaultval=yes
4638 else
4639 defaultval=no
4640 fi
4641 fi
a848cd7e 4642
89b1afb4
VZ
4643 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4644echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4645 # Check whether --enable-mem_tracing was given.
4646if test "${enable_mem_tracing+set}" = set; then
4647 enableval=$enable_mem_tracing;
a848cd7e 4648 if test "$enableval" = yes; then
89b1afb4 4649 wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
a848cd7e 4650 else
89b1afb4 4651 wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
a848cd7e
SC
4652 fi
4653
4654else
4655
89b1afb4 4656 wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
a848cd7e 4657
47964710
VS
4658fi
4659
a848cd7e 4660
89b1afb4 4661 eval "$wx_cv_use_mem_tracing"
a848cd7e 4662
6e198e97 4663 if test x"$enablestring" = xdisable; then
89b1afb4 4664 if test $wxUSE_MEM_TRACING = no; then
6e198e97 4665 result=yes
7ac0e38e
VZ
4666 else
4667 result=no
6e198e97 4668 fi
a848cd7e 4669 else
89b1afb4 4670 result=$wxUSE_MEM_TRACING
a848cd7e
SC
4671 fi
4672
d589327a
VZ
4673 { echo "$as_me:$LINENO: result: $result" >&5
4674echo "${ECHO_T}$result" >&6; }
6e198e97 4675
a848cd7e 4676
89b1afb4
VZ
4677
4678
4679 enablestring=disable
6e198e97 4680 defaultval=
238663c1 4681 if test -z "$defaultval"; then
6e198e97
VZ
4682 if test x"$enablestring" = xdisable; then
4683 defaultval=yes
4684 else
4685 defaultval=no
4686 fi
4687 fi
4688
89b1afb4
VZ
4689 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4690echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4691 # Check whether --enable-shared was given.
4692if test "${enable_shared+set}" = set; then
4693 enableval=$enable_shared;
a848cd7e 4694 if test "$enableval" = yes; then
89b1afb4 4695 wx_cv_use_shared='wxUSE_SHARED=yes'
a848cd7e 4696 else
89b1afb4 4697 wx_cv_use_shared='wxUSE_SHARED=no'
a848cd7e
SC
4698 fi
4699
4700else
4701
89b1afb4 4702 wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
a848cd7e 4703
47964710
VS
4704fi
4705
a848cd7e 4706
89b1afb4 4707 eval "$wx_cv_use_shared"
a848cd7e 4708
6e198e97 4709 if test x"$enablestring" = xdisable; then
89b1afb4 4710 if test $wxUSE_SHARED = no; then
6e198e97 4711 result=yes
7ac0e38e
VZ
4712 else
4713 result=no
6e198e97 4714 fi
a848cd7e 4715 else
89b1afb4 4716 result=$wxUSE_SHARED
a848cd7e
SC
4717 fi
4718
d589327a
VZ
4719 { echo "$as_me:$LINENO: result: $result" >&5
4720echo "${ECHO_T}$result" >&6; }
6e198e97 4721
a848cd7e 4722
077c7880 4723 enablestring=
6e198e97 4724 defaultval=
238663c1 4725 if test -z "$defaultval"; then
6e198e97
VZ
4726 if test x"$enablestring" = xdisable; then
4727 defaultval=yes
4728 else
4729 defaultval=no
4730 fi
4731 fi
4732
89b1afb4
VZ
4733 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4734echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4735 # Check whether --enable-stl was given.
4736if test "${enable_stl+set}" = set; then
4737 enableval=$enable_stl;
a848cd7e 4738 if test "$enableval" = yes; then
89b1afb4 4739 wx_cv_use_stl='wxUSE_STL=yes'
a848cd7e 4740 else
89b1afb4 4741 wx_cv_use_stl='wxUSE_STL=no'
6e198e97
VZ
4742 fi
4743
4744else
4745
89b1afb4 4746 wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
6e198e97 4747
47964710
VS
4748fi
4749
6e198e97 4750
89b1afb4 4751 eval "$wx_cv_use_stl"
6e198e97
VZ
4752
4753 if test x"$enablestring" = xdisable; then
89b1afb4 4754 if test $wxUSE_STL = no; then
6e198e97 4755 result=yes
7ac0e38e
VZ
4756 else
4757 result=no
6e198e97
VZ
4758 fi
4759 else
89b1afb4 4760 result=$wxUSE_STL
6e198e97
VZ
4761 fi
4762
d589327a
VZ
4763 { echo "$as_me:$LINENO: result: $result" >&5
4764echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
4765
4766
4767 enablestring=
4768 defaultval=
238663c1 4769 if test -z "$defaultval"; then
6e198e97
VZ
4770 if test x"$enablestring" = xdisable; then
4771 defaultval=yes
4772 else
4773 defaultval=no
4774 fi
4775 fi
4776
89b1afb4
VZ
4777 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4778echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4779 # Check whether --enable-std_iostreams was given.
4780if test "${enable_std_iostreams+set}" = set; then
4781 enableval=$enable_std_iostreams;
6e198e97 4782 if test "$enableval" = yes; then
89b1afb4 4783 wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
6e198e97 4784 else
89b1afb4 4785 wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
6e198e97
VZ
4786 fi
4787
4788else
4789
89b1afb4 4790 wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
6e198e97 4791
47964710
VS
4792fi
4793
6e198e97 4794
89b1afb4 4795 eval "$wx_cv_use_std_iostreams"
6e198e97
VZ
4796
4797 if test x"$enablestring" = xdisable; then
89b1afb4 4798 if test $wxUSE_STD_IOSTREAM = no; then
6e198e97 4799 result=yes
7ac0e38e
VZ
4800 else
4801 result=no
6e198e97
VZ
4802 fi
4803 else
89b1afb4 4804 result=$wxUSE_STD_IOSTREAM
6e198e97
VZ
4805 fi
4806
d589327a
VZ
4807 { echo "$as_me:$LINENO: result: $result" >&5
4808echo "${ECHO_T}$result" >&6; }
6e198e97 4809
6e198e97
VZ
4810
4811 enablestring=
4812 defaultval=
238663c1 4813 if test -z "$defaultval"; then
6e198e97
VZ
4814 if test x"$enablestring" = xdisable; then
4815 defaultval=yes
4816 else
4817 defaultval=no
4818 fi
4819 fi
4820
89b1afb4
VZ
4821 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4822echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4823 # Check whether --enable-std_string was given.
4824if test "${enable_std_string+set}" = set; then
4825 enableval=$enable_std_string;
6e198e97 4826 if test "$enableval" = yes; then
89b1afb4 4827 wx_cv_use_std_string='wxUSE_STD_STRING=yes'
6e198e97 4828 else
89b1afb4 4829 wx_cv_use_std_string='wxUSE_STD_STRING=no'
6e198e97
VZ
4830 fi
4831
4832else
4833
89b1afb4 4834 wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
6e198e97 4835
47964710
VS
4836fi
4837
6e198e97 4838
89b1afb4 4839 eval "$wx_cv_use_std_string"
6e198e97
VZ
4840
4841 if test x"$enablestring" = xdisable; then
89b1afb4 4842 if test $wxUSE_STD_STRING = no; then
6e198e97 4843 result=yes
7ac0e38e
VZ
4844 else
4845 result=no
6e198e97
VZ
4846 fi
4847 else
89b1afb4 4848 result=$wxUSE_STD_STRING
6e198e97
VZ
4849 fi
4850
d589327a
VZ
4851 { echo "$as_me:$LINENO: result: $result" >&5
4852echo "${ECHO_T}$result" >&6; }
6e198e97 4853
6e198e97 4854
89b1afb4 4855 enablestring=disable
6e198e97 4856 defaultval=
238663c1 4857 if test -z "$defaultval"; then
6e198e97
VZ
4858 if test x"$enablestring" = xdisable; then
4859 defaultval=yes
4860 else
4861 defaultval=no
4862 fi
4863 fi
4864
89b1afb4
VZ
4865 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4866echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4867 # Check whether --enable-unicode was given.
4868if test "${enable_unicode+set}" = set; then
4869 enableval=$enable_unicode;
6e198e97 4870 if test "$enableval" = yes; then
89b1afb4 4871 wx_cv_use_unicode='wxUSE_UNICODE=yes'
6e198e97 4872 else
89b1afb4 4873 wx_cv_use_unicode='wxUSE_UNICODE=no'
6e198e97
VZ
4874 fi
4875
4876else
4877
89b1afb4 4878 wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
6e198e97 4879
47964710
VS
4880fi
4881
6e198e97 4882
89b1afb4 4883 eval "$wx_cv_use_unicode"
6e198e97
VZ
4884
4885 if test x"$enablestring" = xdisable; then
89b1afb4 4886 if test $wxUSE_UNICODE = no; then
6e198e97 4887 result=yes
7ac0e38e
VZ
4888 else
4889 result=no
6e198e97
VZ
4890 fi
4891 else
89b1afb4 4892 result=$wxUSE_UNICODE
6e198e97
VZ
4893 fi
4894
d589327a
VZ
4895 { echo "$as_me:$LINENO: result: $result" >&5
4896echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
4897
4898
4899 enablestring=
4900 defaultval=
238663c1 4901 if test -z "$defaultval"; then
6e198e97
VZ
4902 if test x"$enablestring" = xdisable; then
4903 defaultval=yes
4904 else
4905 defaultval=no
4906 fi
4907 fi
4908
89b1afb4
VZ
4909 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4910echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4911 # Check whether --enable-mslu was given.
4912if test "${enable_mslu+set}" = set; then
4913 enableval=$enable_mslu;
6e198e97 4914 if test "$enableval" = yes; then
89b1afb4 4915 wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
6e198e97 4916 else
89b1afb4 4917 wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
6e198e97
VZ
4918 fi
4919
4920else
4921
89b1afb4 4922 wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
6e198e97 4923
47964710
VS
4924fi
4925
6e198e97 4926
89b1afb4 4927 eval "$wx_cv_use_mslu"
6e198e97
VZ
4928
4929 if test x"$enablestring" = xdisable; then
89b1afb4 4930 if test $wxUSE_UNICODE_MSLU = no; then
6e198e97 4931 result=yes
7ac0e38e
VZ
4932 else
4933 result=no
6e198e97
VZ
4934 fi
4935 else
89b1afb4 4936 result=$wxUSE_UNICODE_MSLU
6e198e97
VZ
4937 fi
4938
d589327a
VZ
4939 { echo "$as_me:$LINENO: result: $result" >&5
4940echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
4941
4942
89b1afb4
VZ
4943 enablestring=
4944 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4945echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4946 # Check whether --enable-utf8 was given.
4947if test "${enable_utf8+set}" = set; then
4948 enableval=$enable_utf8;
4949 wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4950
4951else
4952
4953 wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
8e33c2e4 4954
44710405
VZ
4955fi
4956
4957
89b1afb4
VZ
4958 eval "$wx_cv_use_utf8"
4959
4960 { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4961echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4962
4963
4964 enablestring=
44710405
VZ
4965 defaultval=
4966 if test -z "$defaultval"; then
4967 if test x"$enablestring" = xdisable; then
4968 defaultval=yes
4969 else
4970 defaultval=no
4971 fi
4972 fi
4973
89b1afb4
VZ
4974 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4975echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4976 # Check whether --enable-utf8only was given.
4977if test "${enable_utf8only+set}" = set; then
4978 enableval=$enable_utf8only;
44710405 4979 if test "$enableval" = yes; then
89b1afb4 4980 wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
44710405 4981 else
89b1afb4 4982 wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
44710405
VZ
4983 fi
4984
4985else
4986
89b1afb4 4987 wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
44710405
VZ
4988
4989fi
4990
4991
89b1afb4 4992 eval "$wx_cv_use_utf8only"
44710405
VZ
4993
4994 if test x"$enablestring" = xdisable; then
89b1afb4 4995 if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
44710405 4996 result=yes
7ac0e38e
VZ
4997 else
4998 result=no
44710405
VZ
4999 fi
5000 else
89b1afb4 5001 result=$wxUSE_UNICODE_UTF8_LOCALE
44710405
VZ
5002 fi
5003
d589327a
VZ
5004 { echo "$as_me:$LINENO: result: $result" >&5
5005echo "${ECHO_T}$result" >&6; }
44710405
VZ
5006
5007
6e198e97
VZ
5008 enablestring=
5009 defaultval=
238663c1 5010 if test -z "$defaultval"; then
6e198e97
VZ
5011 if test x"$enablestring" = xdisable; then
5012 defaultval=yes
5013 else
5014 defaultval=no
5015 fi
5016 fi
5017
89b1afb4
VZ
5018 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5019echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5020 # Check whether --enable-extended_rtti was given.
5021if test "${enable_extended_rtti+set}" = set; then
5022 enableval=$enable_extended_rtti;
6e198e97 5023 if test "$enableval" = yes; then
89b1afb4 5024 wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
6e198e97 5025 else
89b1afb4 5026 wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
6e198e97
VZ
5027 fi
5028
5029else
5030
89b1afb4 5031 wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
6e198e97 5032
47964710
VS
5033fi
5034
6e198e97 5035
89b1afb4 5036 eval "$wx_cv_use_extended_rtti"
6e198e97
VZ
5037
5038 if test x"$enablestring" = xdisable; then
89b1afb4 5039 if test $wxUSE_EXTENDED_RTTI = no; then
6e198e97 5040 result=yes
7ac0e38e
VZ
5041 else
5042 result=no
6e198e97
VZ
5043 fi
5044 else
89b1afb4 5045 result=$wxUSE_EXTENDED_RTTI
6e198e97
VZ
5046 fi
5047
d589327a
VZ
5048 { echo "$as_me:$LINENO: result: $result" >&5
5049echo "${ECHO_T}$result" >&6; }
6e198e97 5050
89b1afb4
VZ
5051if test "$USE_OS2" = 1; then
5052 DEFAULT_wxUSE_OMF=no
6e198e97
VZ
5053
5054 enablestring=
5055 defaultval=
238663c1 5056 if test -z "$defaultval"; then
6e198e97
VZ
5057 if test x"$enablestring" = xdisable; then
5058 defaultval=yes
5059 else
5060 defaultval=no
5061 fi
5062 fi
5063
89b1afb4
VZ
5064 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5065echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5066 # Check whether --enable-omf was given.
5067if test "${enable_omf+set}" = set; then
5068 enableval=$enable_omf;
6e198e97 5069 if test "$enableval" = yes; then
89b1afb4 5070 wx_cv_use_omf='wxUSE_OMF=yes'
6e198e97 5071 else
89b1afb4 5072 wx_cv_use_omf='wxUSE_OMF=no'
a848cd7e
SC
5073 fi
5074
5075else
5076
89b1afb4 5077 wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
a848cd7e 5078
47964710
VS
5079fi
5080
a848cd7e 5081
89b1afb4 5082 eval "$wx_cv_use_omf"
a848cd7e 5083
6e198e97 5084 if test x"$enablestring" = xdisable; then
89b1afb4 5085 if test $wxUSE_OMF = no; then
6e198e97 5086 result=yes
7ac0e38e
VZ
5087 else
5088 result=no
6e198e97 5089 fi
a848cd7e 5090 else
89b1afb4 5091 result=$wxUSE_OMF
a848cd7e
SC
5092 fi
5093
d589327a
VZ
5094 { echo "$as_me:$LINENO: result: $result" >&5
5095echo "${ECHO_T}$result" >&6; }
6e198e97 5096
89b1afb4 5097fi
a848cd7e 5098
89b1afb4
VZ
5099
5100 enablestring=disable
6e198e97 5101 defaultval=
238663c1 5102 if test -z "$defaultval"; then
6e198e97
VZ
5103 if test x"$enablestring" = xdisable; then
5104 defaultval=yes
5105 else
5106 defaultval=no
5107 fi
5108 fi
5109
89b1afb4
VZ
5110 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5111echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5112 # Check whether --enable-optimise was given.
5113if test "${enable_optimise+set}" = set; then
5114 enableval=$enable_optimise;
a848cd7e 5115 if test "$enableval" = yes; then
89b1afb4 5116 wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
a848cd7e 5117 else
89b1afb4 5118 wx_cv_use_optimise='wxUSE_OPTIMISE=no'
a848cd7e
SC
5119 fi
5120
5121else
5122
89b1afb4 5123 wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
a848cd7e 5124
47964710
VS
5125fi
5126
a848cd7e 5127
89b1afb4 5128 eval "$wx_cv_use_optimise"
a848cd7e 5129
6e198e97 5130 if test x"$enablestring" = xdisable; then
89b1afb4 5131 if test $wxUSE_OPTIMISE = no; then
6e198e97 5132 result=yes
7ac0e38e
VZ
5133 else
5134 result=no
6e198e97 5135 fi
a848cd7e 5136 else
89b1afb4 5137 result=$wxUSE_OPTIMISE
a848cd7e
SC
5138 fi
5139
d589327a
VZ
5140 { echo "$as_me:$LINENO: result: $result" >&5
5141echo "${ECHO_T}$result" >&6; }
6e198e97 5142
a848cd7e 5143
89b1afb4 5144
077c7880 5145 enablestring=
6e198e97 5146 defaultval=
238663c1 5147 if test -z "$defaultval"; then
6e198e97
VZ
5148 if test x"$enablestring" = xdisable; then
5149 defaultval=yes
5150 else
5151 defaultval=no
5152 fi
5153 fi
5154
d589327a
VZ
5155 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5156echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
47964710 5157 # Check whether --enable-profile was given.
a848cd7e 5158if test "${enable_profile+set}" = set; then
47964710 5159 enableval=$enable_profile;
a848cd7e 5160 if test "$enableval" = yes; then
d970f7d5 5161 wx_cv_use_profile='wxUSE_PROFILE=yes'
a848cd7e 5162 else
d970f7d5 5163 wx_cv_use_profile='wxUSE_PROFILE=no'
a848cd7e
SC
5164 fi
5165
5166else
5167
d970f7d5 5168 wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
a848cd7e 5169
47964710
VS
5170fi
5171
a848cd7e 5172
d970f7d5 5173 eval "$wx_cv_use_profile"
a848cd7e 5174
6e198e97 5175 if test x"$enablestring" = xdisable; then
7ac0e38e 5176 if test $wxUSE_PROFILE = no; then
6e198e97 5177 result=yes
7ac0e38e
VZ
5178 else
5179 result=no
6e198e97 5180 fi
a848cd7e 5181 else
6e198e97 5182 result=$wxUSE_PROFILE
a848cd7e
SC
5183 fi
5184
d589327a
VZ
5185 { echo "$as_me:$LINENO: result: $result" >&5
5186echo "${ECHO_T}$result" >&6; }
6e198e97 5187
a848cd7e 5188
077c7880 5189 enablestring=
6e198e97 5190 defaultval=
238663c1 5191 if test -z "$defaultval"; then
6e198e97
VZ
5192 if test x"$enablestring" = xdisable; then
5193 defaultval=yes
5194 else
5195 defaultval=no
5196 fi
5197 fi
5198
d589327a
VZ
5199 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5200echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
47964710 5201 # Check whether --enable-no_rtti was given.
a848cd7e 5202if test "${enable_no_rtti+set}" = set; then
47964710 5203 enableval=$enable_no_rtti;
a848cd7e 5204 if test "$enableval" = yes; then
d970f7d5 5205 wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
a848cd7e 5206 else
d970f7d5 5207 wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
a848cd7e
SC
5208 fi
5209
5210else
5211
d970f7d5 5212 wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
a848cd7e 5213
47964710
VS
5214fi
5215
a848cd7e 5216
d970f7d5 5217 eval "$wx_cv_use_no_rtti"
a848cd7e 5218
6e198e97 5219 if test x"$enablestring" = xdisable; then
7ac0e38e 5220 if test $wxUSE_NO_RTTI = no; then
6e198e97 5221 result=yes
7ac0e38e
VZ
5222 else
5223 result=no
6e198e97 5224 fi
a848cd7e 5225 else
6e198e97 5226 result=$wxUSE_NO_RTTI
a848cd7e
SC
5227 fi
5228
d589327a
VZ
5229 { echo "$as_me:$LINENO: result: $result" >&5
5230echo "${ECHO_T}$result" >&6; }
6e198e97 5231
a848cd7e 5232
077c7880 5233 enablestring=
6e198e97 5234 defaultval=
238663c1 5235 if test -z "$defaultval"; then
6e198e97
VZ
5236 if test x"$enablestring" = xdisable; then
5237 defaultval=yes
5238 else
5239 defaultval=no
5240 fi
5241 fi
5242
d589327a
VZ
5243 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5244echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
47964710 5245 # Check whether --enable-no_exceptions was given.
a848cd7e 5246if test "${enable_no_exceptions+set}" = set; then
47964710 5247 enableval=$enable_no_exceptions;
a848cd7e 5248 if test "$enableval" = yes; then
d970f7d5 5249 wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
a848cd7e 5250 else
d970f7d5 5251 wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
a848cd7e
SC
5252 fi
5253
5254else
5255
d970f7d5 5256 wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
a848cd7e 5257
47964710
VS
5258fi
5259
a848cd7e 5260
d970f7d5 5261 eval "$wx_cv_use_no_exceptions"
a848cd7e 5262
6e198e97 5263 if test x"$enablestring" = xdisable; then
7ac0e38e 5264 if test $wxUSE_NO_EXCEPTIONS = no; then
6e198e97 5265 result=yes
7ac0e38e
VZ
5266 else
5267 result=no
6e198e97 5268 fi
a848cd7e 5269 else
6e198e97 5270 result=$wxUSE_NO_EXCEPTIONS
a848cd7e
SC
5271 fi
5272
d589327a
VZ
5273 { echo "$as_me:$LINENO: result: $result" >&5
5274echo "${ECHO_T}$result" >&6; }
6e198e97 5275
a848cd7e 5276
077c7880 5277 enablestring=
6e198e97 5278 defaultval=
238663c1 5279 if test -z "$defaultval"; then
6e198e97
VZ
5280 if test x"$enablestring" = xdisable; then
5281 defaultval=yes
5282 else
5283 defaultval=no
5284 fi
5285 fi
5286
d589327a
VZ
5287 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5288echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
47964710 5289 # Check whether --enable-permissive was given.
a848cd7e 5290if test "${enable_permissive+set}" = set; then
47964710 5291 enableval=$enable_permissive;
a848cd7e 5292 if test "$enableval" = yes; then
d970f7d5 5293 wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
a848cd7e 5294 else
d970f7d5 5295 wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
a848cd7e
SC
5296 fi
5297
5298else
5299
d970f7d5 5300 wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
a848cd7e 5301
47964710
VS
5302fi
5303
a848cd7e 5304
d970f7d5 5305 eval "$wx_cv_use_permissive"
a848cd7e 5306
6e198e97 5307 if test x"$enablestring" = xdisable; then
7ac0e38e 5308 if test $wxUSE_PERMISSIVE = no; then
6e198e97 5309 result=yes
7ac0e38e
VZ
5310 else
5311 result=no
6e198e97 5312 fi
a848cd7e 5313 else
6e198e97 5314 result=$wxUSE_PERMISSIVE
a848cd7e
SC
5315 fi
5316
d589327a
VZ
5317 { echo "$as_me:$LINENO: result: $result" >&5
5318echo "${ECHO_T}$result" >&6; }
6e198e97 5319
a848cd7e 5320
077c7880 5321 enablestring=
6e198e97 5322 defaultval=
238663c1 5323 if test -z "$defaultval"; then
6e198e97
VZ
5324 if test x"$enablestring" = xdisable; then
5325 defaultval=yes
5326 else
5327 defaultval=no
5328 fi
5329 fi
5330
d589327a
VZ
5331 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5332echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
47964710 5333 # Check whether --enable-no_deps was given.
a848cd7e 5334if test "${enable_no_deps+set}" = set; then
47964710 5335 enableval=$enable_no_deps;
a848cd7e 5336 if test "$enableval" = yes; then
d970f7d5 5337 wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
a848cd7e 5338 else
d970f7d5 5339 wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
a848cd7e
SC
5340 fi
5341
5342else
5343
d970f7d5 5344 wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
a848cd7e 5345
47964710
VS
5346fi
5347
a848cd7e 5348
d970f7d5 5349 eval "$wx_cv_use_no_deps"
a848cd7e 5350
6e198e97 5351 if test x"$enablestring" = xdisable; then
7ac0e38e 5352 if test $wxUSE_NO_DEPS = no; then
6e198e97 5353 result=yes
7ac0e38e
VZ
5354 else
5355 result=no
6e198e97 5356 fi
a848cd7e 5357 else
6e198e97 5358 result=$wxUSE_NO_DEPS
a848cd7e
SC
5359 fi
5360
d589327a
VZ
5361 { echo "$as_me:$LINENO: result: $result" >&5
5362echo "${ECHO_T}$result" >&6; }
6e198e97
VZ
5363
5364
5365 enablestring=disable
5366 defaultval=
238663c1 5367 if test -z "$defaultval"; then
6e198e97
VZ
5368 if test x"$enablestring" = xdisable; then
5369 defaultval=yes
5370 else
5371 defaultval=no
5372 fi
5373 fi
a848cd7e 5374
d589327a
VZ
5375 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5376echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
47964710 5377 # Check whether --enable-vararg_macros was given.
70c536f3 5378if test "${enable_vararg_macros+set}" = set; then
47964710 5379 enableval=$enable_vararg_macros;
70c536f3 5380 if test "$enableval" = yes; then
d970f7d5 5381 wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
70c536f3 5382 else
d970f7d5 5383 wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
70c536f3
VZ
5384 fi
5385
5386else
5387
d970f7d5 5388 wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
70c536f3 5389
47964710
VS
5390fi
5391
70c536f3 5392
d970f7d5 5393 eval "$wx_cv_use_vararg_macros"
70c536f3 5394
6e198e97 5395 if test x"$enablestring" = xdisable; then
7ac0e38e 5396 if test $wxUSE_VARARG_MACROS = no; then
6e198e97 5397 result=yes
7ac0e38e
VZ
5398 else
5399 result=no
6e198e97 5400 fi
70c536f3 5401 else
6e198e97 5402 result=$wxUSE_VARARG_MACROS
70c536f3
VZ
5403 fi
5404
d589327a
VZ
5405 { echo "$as_me:$LINENO: result: $result" >&5
5406echo "${ECHO_T}$result" >&6; }
6e198e97 5407
70c536f3 5408
95768535 5409 enablestring=
d589327a
VZ
5410 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5411echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
47964710 5412 # Check whether --enable-universal_binary was given.
7afc46ab 5413if test "${enable_universal_binary+set}" = set; then
47964710 5414 enableval=$enable_universal_binary;
95768535 5415 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
5416
5417else
5418
ca4c9b7e
VS
5419 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5420
47964710
VS
5421fi
5422
7afc46ab 5423
95768535 5424 eval "$wx_cv_use_universal_binary"
7afc46ab 5425
d589327a
VZ
5426 { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5427echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
7afc46ab
KO
5428
5429
a848cd7e 5430
6e198e97
VZ
5431 enablestring=
5432 defaultval=
238663c1 5433 if test -z "$defaultval"; then
6e198e97
VZ
5434 if test x"$enablestring" = xdisable; then
5435 defaultval=yes
5436 else
5437 defaultval=no
5438 fi
5439 fi
5440
d589327a
VZ
5441 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5442echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
47964710 5443 # Check whether --enable-compat26 was given.
dee1a63f 5444if test "${enable_compat26+set}" = set; then
47964710 5445 enableval=$enable_compat26;
a848cd7e 5446 if test "$enableval" = yes; then
d970f7d5 5447 wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 5448 else
d970f7d5 5449 wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
5450 fi
5451
5452else
5453
d970f7d5 5454 wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
a848cd7e 5455
47964710
VS
5456fi
5457
a848cd7e 5458
d970f7d5 5459 eval "$wx_cv_use_compat26"
a848cd7e 5460
6e198e97 5461 if test x"$enablestring" = xdisable; then
7ac0e38e 5462 if test $WXWIN_COMPATIBILITY_2_6 = no; then
6e198e97 5463 result=yes
7ac0e38e
VZ
5464 else
5465 result=no
6e198e97 5466 fi
a848cd7e 5467 else
6e198e97 5468 result=$WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
5469 fi
5470
d589327a
VZ
5471 { echo "$as_me:$LINENO: result: $result" >&5
5472echo "${ECHO_T}$result" >&6; }
6e198e97 5473
a848cd7e 5474
abb6edd1 5475 enablestring=disable
6e198e97 5476 defaultval=
238663c1 5477 if test -z "$defaultval"; then
6e198e97
VZ
5478 if test x"$enablestring" = xdisable; then
5479 defaultval=yes
5480 else
5481 defaultval=no
5482 fi
5483 fi
5484
d589327a
VZ
5485 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5486echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
47964710 5487 # Check whether --enable-compat28 was given.
abb6edd1 5488if test "${enable_compat28+set}" = set; then
47964710 5489 enableval=$enable_compat28;
abb6edd1 5490 if test "$enableval" = yes; then
d970f7d5 5491 wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
abb6edd1 5492 else
d970f7d5 5493 wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
abb6edd1
VS
5494 fi
5495
5496else
5497
d970f7d5 5498 wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
abb6edd1 5499
47964710
VS
5500fi
5501
abb6edd1 5502
d970f7d5 5503 eval "$wx_cv_use_compat28"
abb6edd1 5504
6e198e97 5505 if test x"$enablestring" = xdisable; then
7ac0e38e 5506 if test $WXWIN_COMPATIBILITY_2_8 = no; then
6e198e97 5507 result=yes
7ac0e38e
VZ
5508 else
5509 result=no
6e198e97 5510 fi
abb6edd1 5511 else
6e198e97 5512 result=$WXWIN_COMPATIBILITY_2_8
abb6edd1
VS
5513 fi
5514
d589327a
VZ
5515 { echo "$as_me:$LINENO: result: $result" >&5
5516echo "${ECHO_T}$result" >&6; }
abb6edd1 5517
ffa0583f 5518
6e198e97
VZ
5519
5520 enablestring=disable
5521 defaultval=
238663c1 5522 if test -z "$defaultval"; then
6e198e97
VZ
5523 if test x"$enablestring" = xdisable; then
5524 defaultval=yes
5525 else
5526 defaultval=no
5527 fi
5528 fi
5529
d589327a
VZ
5530 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5531echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
47964710 5532 # Check whether --enable-rpath was given.
a848cd7e 5533if test "${enable_rpath+set}" = set; then
47964710 5534 enableval=$enable_rpath;
ffa0583f 5535 if test "$enableval" = yes; then
d970f7d5 5536 wx_cv_use_rpath='wxUSE_RPATH=yes'
ffa0583f 5537 else
d970f7d5 5538 wx_cv_use_rpath='wxUSE_RPATH=no'
ffa0583f
RL
5539 fi
5540
5541else
5542
d970f7d5 5543 wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
ffa0583f 5544
47964710
VS
5545fi
5546
a848cd7e 5547
d970f7d5 5548 eval "$wx_cv_use_rpath"
ffa0583f 5549
6e198e97 5550 if test x"$enablestring" = xdisable; then
7ac0e38e 5551 if test $wxUSE_RPATH = no; then
6e198e97 5552 result=yes
7ac0e38e
VZ
5553 else
5554 result=no
6e198e97 5555 fi
ffa0583f 5556 else
6e198e97 5557 result=$wxUSE_RPATH
ffa0583f
RL
5558 fi
5559
d589327a
VZ
5560 { echo "$as_me:$LINENO: result: $result" >&5
5561echo "${ECHO_T}$result" >&6; }
6e198e97 5562
a848cd7e
SC
5563
5564
931d7698 5565 enablestring=
6e198e97 5566 defaultval=
238663c1 5567 if test -z "$defaultval"; then
6e198e97
VZ
5568 if test x"$enablestring" = xdisable; then
5569 defaultval=yes
5570 else
5571 defaultval=no
5572 fi
5573 fi
5574
d589327a
VZ
5575 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5576echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
47964710 5577 # Check whether --enable-objc_uniquifying was given.
931d7698 5578if test "${enable_objc_uniquifying+set}" = set; then
47964710 5579 enableval=$enable_objc_uniquifying;
931d7698 5580 if test "$enableval" = yes; then
d970f7d5 5581 wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
931d7698 5582 else
d970f7d5 5583 wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
931d7698
DE
5584 fi
5585
5586else
5587
d970f7d5 5588 wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
931d7698 5589
47964710
VS
5590fi
5591
931d7698 5592
d970f7d5 5593 eval "$wx_cv_use_objc_uniquifying"
931d7698 5594
6e198e97 5595 if test x"$enablestring" = xdisable; then
7ac0e38e 5596 if test $wxUSE_OBJC_UNIQUIFYING = no; then
6e198e97 5597 result=yes
7ac0e38e
VZ
5598 else
5599 result=no
6e198e97 5600 fi
931d7698 5601 else
6e198e97 5602 result=$wxUSE_OBJC_UNIQUIFYING
931d7698
DE
5603 fi
5604
d589327a
VZ
5605 { echo "$as_me:$LINENO: result: $result" >&5
5606echo "${ECHO_T}$result" >&6; }
6e198e97 5607
931d7698 5608
a848cd7e 5609
a2bd84a5
VS
5610 enablestring=disable
5611 defaultval=
5612 if test -z "$defaultval"; then
5613 if test x"$enablestring" = xdisable; then
5614 defaultval=yes
5615 else
5616 defaultval=no
5617 fi
5618 fi
5619
d589327a
VZ
5620 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5621echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
47964710 5622 # Check whether --enable-visibility was given.
a2bd84a5 5623if test "${enable_visibility+set}" = set; then
47964710 5624 enableval=$enable_visibility;
a2bd84a5 5625 if test "$enableval" = yes; then
d970f7d5 5626 wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
a2bd84a5 5627 else
d970f7d5 5628 wx_cv_use_visibility='wxUSE_VISIBILITY=no'
a2bd84a5
VS
5629 fi
5630
5631else
5632
d970f7d5 5633 wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
a2bd84a5 5634
47964710
VS
5635fi
5636
a2bd84a5 5637
d970f7d5 5638 eval "$wx_cv_use_visibility"
a2bd84a5
VS
5639
5640 if test x"$enablestring" = xdisable; then
7ac0e38e 5641 if test $wxUSE_VISIBILITY = no; then
a2bd84a5 5642 result=yes
7ac0e38e
VZ
5643 else
5644 result=no
a2bd84a5
VS
5645 fi
5646 else
5647 result=$wxUSE_VISIBILITY
5648 fi
5649
d589327a
VZ
5650 { echo "$as_me:$LINENO: result: $result" >&5
5651echo "${ECHO_T}$result" >&6; }
a2bd84a5
VS
5652
5653
7beff712
VZ
5654 enablestring=disable
5655 defaultval=
5656 if test -z "$defaultval"; then
5657 if test x"$enablestring" = xdisable; then
5658 defaultval=yes
5659 else
5660 defaultval=no
5661 fi
5662 fi
5663
5664 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5665echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5666 # Check whether --enable-tls was given.
5667if test "${enable_tls+set}" = set; then
5668 enableval=$enable_tls;
5669 if test "$enableval" = yes; then
5670 wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5671 else
5672 wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5673 fi
5674
5675else
5676
5677 wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5678
5679fi
5680
5681
5682 eval "$wx_cv_use_tls"
5683
5684 if test x"$enablestring" = xdisable; then
7ac0e38e 5685 if test $wxUSE_COMPILER_TLS = no; then
7beff712 5686 result=yes
7ac0e38e
VZ
5687 else
5688 result=no
7beff712
VZ
5689 fi
5690 else
5691 result=$wxUSE_COMPILER_TLS
5692 fi
5693
5694 { echo "$as_me:$LINENO: result: $result" >&5
5695echo "${ECHO_T}$result" >&6; }
5696
5697
a2bd84a5 5698
a848cd7e 5699
077c7880 5700 enablestring=
6e198e97 5701 defaultval=$wxUSE_ALL_FEATURES
238663c1 5702 if test -z "$defaultval"; then
6e198e97
VZ
5703 if test x"$enablestring" = xdisable; then
5704 defaultval=yes
5705 else
5706 defaultval=no
5707 fi
5708 fi
5709
d589327a
VZ
5710 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5711echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
47964710 5712 # Check whether --enable-intl was given.
a848cd7e 5713if test "${enable_intl+set}" = set; then
47964710 5714 enableval=$enable_intl;
a848cd7e 5715 if test "$enableval" = yes; then
d970f7d5 5716 wx_cv_use_intl='wxUSE_INTL=yes'
a848cd7e 5717 else
d970f7d5 5718 wx_cv_use_intl='wxUSE_INTL=no'
a848cd7e
SC
5719 fi
5720
5721else
5722
d970f7d5 5723 wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
a848cd7e 5724
47964710
VS
5725fi
5726
a848cd7e 5727
d970f7d5 5728 eval "$wx_cv_use_intl"
a848cd7e 5729
6e198e97 5730 if test x"$enablestring" = xdisable; then
7ac0e38e 5731 if test $wxUSE_INTL = no; then
6e198e97 5732 result=yes
7ac0e38e
VZ
5733 else
5734 result=no
6e198e97 5735 fi
a848cd7e 5736 else
6e198e97 5737 result=$wxUSE_INTL
a848cd7e
SC
5738 fi
5739
d589327a
VZ
5740 { echo "$as_me:$LINENO: result: $result" >&5
5741echo "${ECHO_T}$result" >&6; }
6e198e97 5742
a848cd7e 5743
6e4ae332
VZ
5744 enablestring=
5745 defaultval=$wxUSE_ALL_FEATURES
5746 if test -z "$defaultval"; then
5747 if test x"$enablestring" = xdisable; then
5748 defaultval=yes
5749 else
5750 defaultval=no
5751 fi
5752 fi
5753
d589327a
VZ
5754 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5755echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
6e4ae332
VZ
5756 # Check whether --enable-xlocale was given.
5757if test "${enable_xlocale+set}" = set; then
5758 enableval=$enable_xlocale;
5759 if test "$enableval" = yes; then
5760 wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5761 else
5762 wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5763 fi
5764
5765else
5766
5767 wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5768
5769fi
5770
5771
5772 eval "$wx_cv_use_xlocale"
5773
5774 if test x"$enablestring" = xdisable; then
7ac0e38e 5775 if test $wxUSE_XLOCALE = no; then
6e4ae332 5776 result=yes
7ac0e38e
VZ
5777 else
5778 result=no
6e4ae332
VZ
5779 fi
5780 else
5781 result=$wxUSE_XLOCALE
5782 fi
5783
d589327a
VZ
5784 { echo "$as_me:$LINENO: result: $result" >&5
5785echo "${ECHO_T}$result" >&6; }
6e4ae332
VZ
5786
5787
077c7880 5788 enablestring=
6e198e97 5789 defaultval=$wxUSE_ALL_FEATURES
238663c1 5790 if test -z "$defaultval"; then
6e198e97
VZ
5791 if test x"$enablestring" = xdisable; then
5792 defaultval=yes
5793 else
5794 defaultval=no
5795 fi
5796 fi
5797
d589327a
VZ
5798 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5799echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
47964710 5800 # Check whether --enable-config was given.
a848cd7e 5801if test "${enable_config+set}" = set; then
47964710 5802 enableval=$enable_config;
a848cd7e 5803 if test "$enableval" = yes; then
d970f7d5 5804 wx_cv_use_config='wxUSE_CONFIG=yes'
a848cd7e 5805 else
d970f7d5 5806 wx_cv_use_config='wxUSE_CONFIG=no'
a848cd7e
SC
5807 fi
5808
5809else
5810
d970f7d5 5811 wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
a848cd7e 5812
47964710
VS
5813fi
5814
a848cd7e 5815
d970f7d5 5816 eval "$wx_cv_use_config"
a848cd7e 5817
6e198e97 5818 if test x"$enablestring" = xdisable; then
7ac0e38e 5819 if test $wxUSE_CONFIG = no; then
6e198e97 5820 result=yes
7ac0e38e
VZ
5821 else
5822 result=no
6e198e97 5823 fi
a848cd7e 5824 else
6e198e97 5825 result=$wxUSE_CONFIG
a848cd7e
SC
5826 fi
5827
d589327a
VZ
5828 { echo "$as_me:$LINENO: result: $result" >&5
5829echo "${ECHO_T}$result" >&6; }
6e198e97 5830
a848cd7e
SC
5831
5832
077c7880 5833 enablestring=
6e198e97 5834 defaultval=$wxUSE_ALL_FEATURES
238663c1 5835 if test -z "$defaultval"; then
6e198e97
VZ
5836 if test x"$enablestring" = xdisable; then
5837 defaultval=yes
5838 else
5839 defaultval=no
5840 fi
5841 fi
5842
d589327a
VZ
5843 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5844echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
47964710 5845 # Check whether --enable-protocols was given.
a848cd7e 5846if test "${enable_protocols+set}" = set; then
47964710 5847 enableval=$enable_protocols;
a848cd7e 5848 if test "$enableval" = yes; then
d970f7d5 5849 wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
a848cd7e 5850 else
d970f7d5 5851 wx_cv_use_protocols='wxUSE_PROTOCOL=no'
a848cd7e
SC
5852 fi
5853
5854else
5855
d970f7d5 5856 wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
a848cd7e 5857
47964710
VS
5858fi
5859
a848cd7e 5860
d970f7d5 5861 eval "$wx_cv_use_protocols"
a848cd7e 5862
6e198e97 5863 if test x"$enablestring" = xdisable; then
7ac0e38e 5864 if test $wxUSE_PROTOCOL = no; then
6e198e97 5865 result=yes
7ac0e38e
VZ
5866 else
5867 result=no
6e198e97 5868 fi
a848cd7e 5869 else
6e198e97 5870 result=$wxUSE_PROTOCOL
a848cd7e
SC
5871 fi
5872
d589327a
VZ
5873 { echo "$as_me:$LINENO: result: $result" >&5
5874echo "${ECHO_T}$result" >&6; }
6e198e97 5875
a848cd7e 5876
077c7880 5877 enablestring=
6e198e97 5878 defaultval=$wxUSE_ALL_FEATURES
238663c1 5879 if test -z "$defaultval"; then
6e198e97
VZ
5880 if test x"$enablestring" = xdisable; then
5881 defaultval=yes
5882 else
5883 defaultval=no
5884 fi
5885 fi
5886
d589327a
VZ
5887 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5888echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
47964710 5889 # Check whether --enable-ftp was given.
a848cd7e 5890if test "${enable_ftp+set}" = set; then
47964710 5891 enableval=$enable_ftp;
a848cd7e 5892 if test "$enableval" = yes; then
d970f7d5 5893 wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
a848cd7e 5894 else
d970f7d5 5895 wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
a848cd7e
SC
5896 fi
5897
5898else
5899
d970f7d5 5900 wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
a848cd7e 5901
47964710
VS
5902fi
5903
a848cd7e 5904
d970f7d5 5905 eval "$wx_cv_use_ftp"
a848cd7e 5906
6e198e97 5907 if test x"$enablestring" = xdisable; then
7ac0e38e 5908 if test $wxUSE_PROTOCOL_FTP = no; then
6e198e97 5909 result=yes
7ac0e38e
VZ
5910 else
5911 result=no
6e198e97 5912 fi
a848cd7e 5913 else
6e198e97 5914 result=$wxUSE_PROTOCOL_FTP
a848cd7e
SC
5915 fi
5916
d589327a
VZ
5917 { echo "$as_me:$LINENO: result: $result" >&5
5918echo "${ECHO_T}$result" >&6; }
6e198e97 5919
a848cd7e 5920
077c7880 5921 enablestring=
6e198e97 5922 defaultval=$wxUSE_ALL_FEATURES
238663c1 5923 if test -z "$defaultval"; then
6e198e97
VZ
5924 if test x"$enablestring" = xdisable; then
5925 defaultval=yes
5926 else
5927 defaultval=no
5928 fi
5929 fi
5930
d589327a
VZ
5931 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5932echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
47964710 5933 # Check whether --enable-http was given.
a848cd7e 5934if test "${enable_http+set}" = set; then
47964710 5935 enableval=$enable_http;
a848cd7e 5936 if test "$enableval" = yes; then
d970f7d5 5937 wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
a848cd7e 5938 else
d970f7d5 5939 wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
a848cd7e
SC
5940 fi
5941
5942else
5943
d970f7d5 5944 wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
a848cd7e 5945
47964710
VS
5946fi
5947
a848cd7e 5948
d970f7d5 5949 eval "$wx_cv_use_http"
a848cd7e 5950
6e198e97 5951 if test x"$enablestring" = xdisable; then
7ac0e38e 5952 if test $wxUSE_PROTOCOL_HTTP = no; then
6e198e97 5953 result=yes
7ac0e38e
VZ
5954 else
5955 result=no
6e198e97 5956 fi
a848cd7e 5957 else
6e198e97 5958 result=$wxUSE_PROTOCOL_HTTP
a848cd7e
SC
5959 fi
5960
d589327a
VZ
5961 { echo "$as_me:$LINENO: result: $result" >&5
5962echo "${ECHO_T}$result" >&6; }
6e198e97 5963
a848cd7e 5964
077c7880 5965 enablestring=
6e198e97 5966 defaultval=$wxUSE_ALL_FEATURES
238663c1 5967 if test -z "$defaultval"; then
6e198e97
VZ
5968 if test x"$enablestring" = xdisable; then
5969 defaultval=yes
5970 else
5971 defaultval=no
5972 fi
5973 fi
5974
d589327a
VZ
5975 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5976echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
47964710 5977 # Check whether --enable-fileproto was given.
a848cd7e 5978if test "${enable_fileproto+set}" = set; then
47964710 5979 enableval=$enable_fileproto;
a848cd7e 5980 if test "$enableval" = yes; then
d970f7d5 5981 wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
a848cd7e 5982 else
d970f7d5 5983 wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
a848cd7e
SC
5984 fi
5985
5986else
5987
d970f7d5 5988 wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
a848cd7e 5989
47964710
VS
5990fi
5991
a848cd7e 5992
d970f7d5 5993 eval "$wx_cv_use_fileproto"
a848cd7e 5994
6e198e97 5995 if test x"$enablestring" = xdisable; then
7ac0e38e 5996 if test $wxUSE_PROTOCOL_FILE = no; then
6e198e97 5997 result=yes
7ac0e38e
VZ
5998 else
5999 result=no
6e198e97 6000 fi
a848cd7e 6001 else
6e198e97 6002 result=$wxUSE_PROTOCOL_FILE
a848cd7e
SC
6003 fi
6004
d589327a
VZ
6005 { echo "$as_me:$LINENO: result: $result" >&5
6006echo "${ECHO_T}$result" >&6; }
6e198e97 6007
a848cd7e 6008
077c7880 6009 enablestring=
6e198e97 6010 defaultval=$wxUSE_ALL_FEATURES
238663c1 6011 if test -z "$defaultval"; then
6e198e97
VZ
6012 if test x"$enablestring" = xdisable; then
6013 defaultval=yes
6014 else
6015 defaultval=no
6016 fi
6017 fi
6018
d589327a
VZ
6019 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6020echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
47964710 6021 # Check whether --enable-sockets was given.
a848cd7e 6022if test "${enable_sockets+set}" = set; then
47964710 6023 enableval=$enable_sockets;
a848cd7e 6024 if test "$enableval" = yes; then
d970f7d5 6025 wx_cv_use_sockets='wxUSE_SOCKETS=yes'
a848cd7e 6026 else
d970f7d5 6027 wx_cv_use_sockets='wxUSE_SOCKETS=no'
a848cd7e
SC
6028 fi
6029
6030else
6031
d970f7d5 6032 wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
a848cd7e 6033
47964710
VS
6034fi
6035
a848cd7e 6036
d970f7d5 6037 eval "$wx_cv_use_sockets"
a848cd7e 6038
6e198e97 6039 if test x"$enablestring" = xdisable; then
7ac0e38e 6040 if test $wxUSE_SOCKETS = no; then
6e198e97 6041 result=yes
7ac0e38e
VZ
6042 else
6043 result=no
6e198e97 6044 fi
a848cd7e 6045 else
6e198e97 6046 result=$wxUSE_SOCKETS
a848cd7e
SC
6047 fi
6048
d589327a
VZ
6049 { echo "$as_me:$LINENO: result: $result" >&5
6050echo "${ECHO_T}$result" >&6; }
6e198e97 6051
a848cd7e 6052
8575ff50
VZ
6053 enablestring=
6054 defaultval=$wxUSE_ALL_FEATURES
6055 if test -z "$defaultval"; then
6056 if test x"$enablestring" = xdisable; then
6057 defaultval=yes
6058 else
6059 defaultval=no
6060 fi
6061 fi
6062
d589327a
VZ
6063 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6064echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
8575ff50
VZ
6065 # Check whether --enable-ipv6 was given.
6066if test "${enable_ipv6+set}" = set; then
6067 enableval=$enable_ipv6;
6068 if test "$enableval" = yes; then
6069 wx_cv_use_ipv6='wxUSE_IPV6=yes'
6070 else
6071 wx_cv_use_ipv6='wxUSE_IPV6=no'
6072 fi
8575ff50
VZ
6073
6074else
6075
8575ff50
VZ
6076 wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6077
6078fi
6079
6080
6081 eval "$wx_cv_use_ipv6"
8575ff50
VZ
6082
6083 if test x"$enablestring" = xdisable; then
7ac0e38e 6084 if test $wxUSE_IPV6 = no; then
8575ff50 6085 result=yes
7ac0e38e
VZ
6086 else
6087 result=no
8575ff50
VZ
6088 fi
6089 else
6090 result=$wxUSE_IPV6
6091 fi
6092
d589327a
VZ
6093 { echo "$as_me:$LINENO: result: $result" >&5
6094echo "${ECHO_T}$result" >&6; }
8575ff50
VZ
6095
6096
077c7880 6097 enablestring=
6e198e97 6098 defaultval=$wxUSE_ALL_FEATURES
238663c1 6099 if test -z "$defaultval"; then
6e198e97
VZ
6100 if test x"$enablestring" = xdisable; then
6101 defaultval=yes
6102 else
6103 defaultval=no
6104 fi
6105 fi
6106
d589327a
VZ
6107 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6108echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
47964710 6109 # Check whether --enable-ole was given.
a848cd7e 6110if test "${enable_ole+set}" = set; then
47964710 6111 enableval=$enable_ole;
a848cd7e 6112 if test "$enableval" = yes; then
d970f7d5 6113 wx_cv_use_ole='wxUSE_OLE=yes'
a848cd7e 6114 else
d970f7d5 6115 wx_cv_use_ole='wxUSE_OLE=no'
a848cd7e
SC
6116 fi
6117
6118else
6119
d970f7d5 6120 wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
a848cd7e 6121
47964710
VS
6122fi
6123
a848cd7e 6124
d970f7d5 6125 eval "$wx_cv_use_ole"
a848cd7e 6126
6e198e97 6127 if test x"$enablestring" = xdisable; then
7ac0e38e 6128 if test $wxUSE_OLE = no; then
6e198e97 6129 result=yes
7ac0e38e
VZ
6130 else
6131 result=no
6e198e97 6132 fi
a848cd7e 6133 else
6e198e97 6134 result=$wxUSE_OLE
a848cd7e
SC
6135 fi
6136
d589327a
VZ
6137 { echo "$as_me:$LINENO: result: $result" >&5
6138echo "${ECHO_T}$result" >&6; }
6e198e97 6139
a848cd7e 6140
077c7880 6141 enablestring=
6e198e97 6142 defaultval=$wxUSE_ALL_FEATURES
238663c1 6143 if test -z "$defaultval"; then
6e198e97
VZ
6144 if test x"$enablestring" = xdisable; then
6145 defaultval=yes
6146 else
6147 defaultval=no
6148 fi
6149 fi
6150
d589327a
VZ
6151 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6152echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
47964710 6153 # Check whether --enable-dataobj was given.
a848cd7e 6154if test "${enable_dataobj+set}" = set; then
47964710 6155 enableval=$enable_dataobj;
a848cd7e 6156 if test "$enableval" = yes; then
d970f7d5 6157 wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
a848cd7e 6158 else
d970f7d5 6159 wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
a848cd7e
SC
6160 fi
6161
6162else
6163
d970f7d5 6164 wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
a848cd7e 6165
47964710
VS
6166fi
6167
a848cd7e 6168
d970f7d5 6169 eval "$wx_cv_use_dataobj"
a848cd7e 6170
6e198e97 6171 if test x"$enablestring" = xdisable; then
7ac0e38e 6172 if test $wxUSE_DATAOBJ = no; then
6e198e97 6173 result=yes
7ac0e38e
VZ
6174 else
6175 result=no
6e198e97 6176 fi
a848cd7e 6177 else
6e198e97 6178 result=$wxUSE_DATAOBJ
a848cd7e
SC
6179 fi
6180
d589327a
VZ
6181 { echo "$as_me:$LINENO: result: $result" >&5
6182echo "${ECHO_T}$result" >&6; }
6e198e97 6183
a848cd7e
SC
6184
6185
077c7880 6186 enablestring=
6e198e97 6187 defaultval=$wxUSE_ALL_FEATURES
238663c1 6188 if test -z "$defaultval"; then
6e198e97
VZ
6189 if test x"$enablestring" = xdisable; then
6190 defaultval=yes
6191 else
6192 defaultval=no
6193 fi
6194 fi
6195
d589327a
VZ
6196 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6197echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
47964710 6198 # Check whether --enable-ipc was given.
a848cd7e 6199if test "${enable_ipc+set}" = set; then
47964710 6200 enableval=$enable_ipc;
a848cd7e 6201 if test "$enableval" = yes; then
d970f7d5 6202 wx_cv_use_ipc='wxUSE_IPC=yes'
a848cd7e 6203 else
d970f7d5 6204 wx_cv_use_ipc='wxUSE_IPC=no'
a848cd7e
SC
6205 fi
6206
6207else
6208
d970f7d5 6209 wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
a848cd7e 6210
47964710
VS
6211fi
6212
a848cd7e 6213
d970f7d5 6214 eval "$wx_cv_use_ipc"
a848cd7e 6215
6e198e97 6216 if test x"$enablestring" = xdisable; then
7ac0e38e 6217 if test $wxUSE_IPC = no; then
6e198e97 6218 result=yes
7ac0e38e
VZ
6219 else
6220 result=no
6e198e97 6221 fi
a848cd7e 6222 else
6e198e97 6223 result=$wxUSE_IPC
a848cd7e
SC
6224 fi
6225
d589327a
VZ
6226 { echo "$as_me:$LINENO: result: $result" >&5
6227echo "${ECHO_T}$result" >&6; }
6e198e97 6228
a848cd7e
SC
6229
6230
39931206
VZ
6231 enablestring=
6232 defaultval=$wxUSE_ALL_FEATURES
6233 if test -z "$defaultval"; then
6234 if test x"$enablestring" = xdisable; then
6235 defaultval=yes
6236 else
6237 defaultval=no
6238 fi
6239 fi
6240
d589327a
VZ
6241 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6242echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
47964710 6243 # Check whether --enable-baseevtloop was given.
39931206 6244if test "${enable_baseevtloop+set}" = set; then
47964710 6245 enableval=$enable_baseevtloop;
39931206
VZ
6246 if test "$enableval" = yes; then
6247 wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6248 else
6249 wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6250 fi
6251
6252else
6253
39931206
VZ
6254 wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6255
47964710
VS
6256fi
6257
39931206
VZ
6258
6259 eval "$wx_cv_use_baseevtloop"
39931206
VZ
6260
6261 if test x"$enablestring" = xdisable; then
7ac0e38e 6262 if test $wxUSE_CONSOLE_EVENTLOOP = no; then
39931206 6263 result=yes
7ac0e38e
VZ
6264 else
6265 result=no
39931206
VZ
6266 fi
6267 else
6268 result=$wxUSE_CONSOLE_EVENTLOOP
6269 fi
6270
d589327a
VZ
6271 { echo "$as_me:$LINENO: result: $result" >&5
6272echo "${ECHO_T}$result" >&6; }
39931206
VZ
6273
6274
6275 enablestring=
6276 defaultval=$wxUSE_ALL_FEATURES
6277 if test -z "$defaultval"; then
6278 if test x"$enablestring" = xdisable; then
6279 defaultval=yes
6280 else
6281 defaultval=no
6282 fi
6283 fi
6284
d589327a
VZ
6285 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6286echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
05787cec
PC
6287 # Check whether --enable-epollloop was given.
6288if test "${enable_epollloop+set}" = set; then
6289 enableval=$enable_epollloop;
39931206 6290 if test "$enableval" = yes; then
05787cec 6291 wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
39931206 6292 else
05787cec 6293 wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
39931206
VZ
6294 fi
6295
6296else
6297
05787cec 6298 wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
39931206 6299
47964710
VS
6300fi
6301
39931206 6302
05787cec 6303 eval "$wx_cv_use_epollloop"
39931206
VZ
6304
6305 if test x"$enablestring" = xdisable; then
7ac0e38e 6306 if test $wxUSE_EPOLL_DISPATCHER = no; then
39931206 6307 result=yes
7ac0e38e
VZ
6308 else
6309 result=no
39931206
VZ
6310 fi
6311 else
6312 result=$wxUSE_EPOLL_DISPATCHER
6313 fi
6314
d589327a
VZ
6315 { echo "$as_me:$LINENO: result: $result" >&5
6316echo "${ECHO_T}$result" >&6; }
39931206
VZ
6317
6318
6319 enablestring=
6320 defaultval=$wxUSE_ALL_FEATURES
6321 if test -z "$defaultval"; then
6322 if test x"$enablestring" = xdisable; then
6323 defaultval=yes
6324 else
6325 defaultval=no
6326 fi
6327 fi
6328
d589327a
VZ
6329 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6330echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
47964710 6331 # Check whether --enable-selectloop was given.
39931206 6332if test "${enable_selectloop+set}" = set; then
47964710 6333 enableval=$enable_selectloop;
39931206
VZ
6334 if test "$enableval" = yes; then
6335 wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6336 else
6337 wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6338 fi
6339
6340else
6341
39931206
VZ
6342 wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6343
47964710
VS
6344fi
6345
39931206
VZ
6346
6347 eval "$wx_cv_use_selectloop"
39931206
VZ
6348
6349 if test x"$enablestring" = xdisable; then
7ac0e38e 6350 if test $wxUSE_SELECT_DISPATCHER = no; then
39931206 6351 result=yes
7ac0e38e
VZ
6352 else
6353 result=no
39931206
VZ
6354 fi
6355 else
6356 result=$wxUSE_SELECT_DISPATCHER
6357 fi
6358
d589327a
VZ
6359 { echo "$as_me:$LINENO: result: $result" >&5
6360echo "${ECHO_T}$result" >&6; }
39931206
VZ
6361
6362
6363
178c7760
JS
6364 enablestring=
6365 defaultval=$wxUSE_ALL_FEATURES
6366 if test -z "$defaultval"; then
6367 if test x"$enablestring" = xdisable; then
6368 defaultval=yes
6369 else
6370 defaultval=no
6371 fi
6372 fi
6373
6374 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6375echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6376 # Check whether --enable-any was given.
6377if test "${enable_any+set}" = set; then
6378 enableval=$enable_any;
6379 if test "$enableval" = yes; then
6380 wx_cv_use_any='wxUSE_ANY=yes'
6381 else
6382 wx_cv_use_any='wxUSE_ANY=no'
6383 fi
6384
6385else
6386
6387 wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6388
6389fi
6390
6391
6392 eval "$wx_cv_use_any"
6393
6394 if test x"$enablestring" = xdisable; then
6395 if test $wxUSE_ANY = no; then
6396 result=yes
6397 else
6398 result=no
6399 fi
6400 else
6401 result=$wxUSE_ANY
6402 fi
6403
6404 { echo "$as_me:$LINENO: result: $result" >&5
6405echo "${ECHO_T}$result" >&6; }
6406
6407
077c7880 6408 enablestring=
6e198e97 6409 defaultval=$wxUSE_ALL_FEATURES
238663c1 6410 if test -z "$defaultval"; then
6e198e97
VZ
6411 if test x"$enablestring" = xdisable; then
6412 defaultval=yes
6413 else
6414 defaultval=no
6415 fi
6416 fi
6417
d589327a
VZ
6418 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6419echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
47964710 6420 # Check whether --enable-apple_ieee was given.
a848cd7e 6421if test "${enable_apple_ieee+set}" = set; then
47964710 6422 enableval=$enable_apple_ieee;
a848cd7e 6423 if test "$enableval" = yes; then
d970f7d5 6424 wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
a848cd7e 6425 else
d970f7d5 6426 wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
a848cd7e
SC
6427 fi
6428
6429else
6430
d970f7d5 6431 wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
a848cd7e 6432
47964710
VS
6433fi
6434
a848cd7e 6435
d970f7d5 6436 eval "$wx_cv_use_apple_ieee"
a848cd7e 6437
6e198e97 6438 if test x"$enablestring" = xdisable; then
7ac0e38e 6439 if test $wxUSE_APPLE_IEEE = no; then
6e198e97 6440 result=yes
7ac0e38e
VZ
6441 else
6442 result=no
6e198e97 6443 fi
a848cd7e 6444 else
6e198e97 6445 result=$wxUSE_APPLE_IEEE
a848cd7e
SC
6446 fi
6447
d589327a
VZ
6448 { echo "$as_me:$LINENO: result: $result" >&5
6449echo "${ECHO_T}$result" >&6; }
6e198e97 6450
a848cd7e 6451
077c7880 6452 enablestring=
6e198e97 6453 defaultval=$wxUSE_ALL_FEATURES
238663c1 6454 if test -z "$defaultval"; then
6e198e97
VZ
6455 if test x"$enablestring" = xdisable; then
6456 defaultval=yes
6457 else
6458 defaultval=no
6459 fi
6460 fi
6461
d589327a
VZ
6462 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6463echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
47964710 6464 # Check whether --enable-arcstream was given.
81f90336 6465if test "${enable_arcstream+set}" = set; then
47964710 6466 enableval=$enable_arcstream;
81f90336 6467 if test "$enableval" = yes; then
d970f7d5 6468 wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 6469 else
d970f7d5 6470 wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
6471 fi
6472
6473else
6474
d970f7d5 6475 wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
81f90336 6476
47964710
VS
6477fi
6478
81f90336 6479
d970f7d5 6480 eval "$wx_cv_use_arcstream"
81f90336 6481
6e198e97 6482 if test x"$enablestring" = xdisable; then
7ac0e38e 6483 if test $wxUSE_ARCHIVE_STREAMS = no; then
6e198e97 6484 result=yes
7ac0e38e
VZ
6485 else
6486 result=no
6e198e97 6487 fi
81f90336 6488 else
6e198e97 6489 result=$wxUSE_ARCHIVE_STREAMS
81f90336
MW
6490 fi
6491
d589327a
VZ
6492 { echo "$as_me:$LINENO: result: $result" >&5
6493echo "${ECHO_T}$result" >&6; }
6e198e97 6494
81f90336 6495
077c7880 6496 enablestring=
6e198e97 6497 defaultval=$wxUSE_ALL_FEATURES
238663c1 6498 if test -z "$defaultval"; then
6e198e97
VZ
6499 if test x"$enablestring" = xdisable; then
6500 defaultval=yes
6501 else
6502 defaultval=no
6503 fi
6504 fi
6505
d589327a
VZ
6506 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6507echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
47964710 6508 # Check whether --enable-base64 was given.
4db03d26 6509if test "${enable_base64+set}" = set; then
47964710 6510 enableval=$enable_base64;
4db03d26 6511 if test "$enableval" = yes; then
d970f7d5 6512 wx_cv_use_base64='wxUSE_BASE64=yes'
4db03d26 6513 else
d970f7d5 6514 wx_cv_use_base64='wxUSE_BASE64=no'
4db03d26
VZ
6515 fi
6516
6517else
6518
d970f7d5 6519 wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
4db03d26 6520
47964710
VS
6521fi
6522
4db03d26 6523
d970f7d5 6524 eval "$wx_cv_use_base64"
4db03d26 6525
6e198e97 6526 if test x"$enablestring" = xdisable; then
7ac0e38e 6527 if test $wxUSE_BASE64 = no; then
6e198e97 6528 result=yes
7ac0e38e
VZ
6529 else
6530 result=no
6e198e97 6531 fi
4db03d26 6532 else
6e198e97 6533 result=$wxUSE_BASE64
4db03d26
VZ
6534 fi
6535
d589327a
VZ
6536 { echo "$as_me:$LINENO: result: $result" >&5
6537echo "${ECHO_T}$result" >&6; }
6e198e97 6538
4db03d26
VZ
6539
6540 enablestring=
6e198e97 6541 defaultval=$wxUSE_ALL_FEATURES
238663c1 6542 if test -z "$defaultval"; then
6e198e97
VZ
6543 if test x"$enablestring" = xdisable; then
6544 defaultval=yes
6545 else
6546 defaultval=no
6547 fi
6548 fi
6549
d589327a
VZ
6550 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6551echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
47964710 6552 # Check whether --enable-backtrace was given.
36b6448c 6553if test "${enable_backtrace+set}" = set; then
47964710 6554 enableval=$enable_backtrace;
a848cd7e 6555 if test "$enableval" = yes; then
d970f7d5 6556 wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 6557 else
d970f7d5 6558 wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
6559 fi
6560
6561else
6562
d970f7d5 6563 wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
a848cd7e 6564
47964710
VS
6565fi
6566
a848cd7e 6567
d970f7d5 6568 eval "$wx_cv_use_backtrace"
a848cd7e 6569
6e198e97 6570 if test x"$enablestring" = xdisable; then
7ac0e38e 6571 if test $wxUSE_STACKWALKER = no; then
6e198e97 6572 result=yes
7ac0e38e
VZ
6573 else
6574 result=no
6e198e97 6575 fi
a848cd7e 6576 else
6e198e97 6577 result=$wxUSE_STACKWALKER
a848cd7e
SC
6578 fi
6579
d589327a
VZ
6580 { echo "$as_me:$LINENO: result: $result" >&5
6581echo "${ECHO_T}$result" >&6; }
6e198e97 6582
a848cd7e 6583
077c7880 6584 enablestring=
6e198e97 6585 defaultval=$wxUSE_ALL_FEATURES
238663c1 6586 if test -z "$defaultval"; then
6e198e97
VZ
6587 if test x"$enablestring" = xdisable; then
6588 defaultval=yes
6589 else
6590 defaultval=no
6591 fi
6592 fi
6593
d589327a
VZ
6594 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6595echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
47964710 6596 # Check whether --enable-catch_segvs was given.
36b6448c 6597if test "${enable_catch_segvs+set}" = set; then
47964710 6598 enableval=$enable_catch_segvs;
eaff0f0d 6599 if test "$enableval" = yes; then
d970f7d5 6600 wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 6601 else
d970f7d5 6602 wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
6603 fi
6604
6605else
6606
d970f7d5 6607 wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
eaff0f0d 6608
47964710
VS
6609fi
6610
eaff0f0d 6611
d970f7d5 6612 eval "$wx_cv_use_catch_segvs"
eaff0f0d 6613
6e198e97 6614 if test x"$enablestring" = xdisable; then
7ac0e38e 6615 if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6e198e97 6616 result=yes
7ac0e38e
VZ
6617 else
6618 result=no
6e198e97 6619 fi
eaff0f0d 6620 else
6e198e97 6621 result=$wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
6622 fi
6623
d589327a
VZ
6624 { echo "$as_me:$LINENO: result: $result" >&5
6625echo "${ECHO_T}$result" >&6; }
6e198e97 6626
eaff0f0d 6627
077c7880 6628 enablestring=
6e198e97 6629 defaultval=$wxUSE_ALL_FEATURES
238663c1 6630 if test -z "$defaultval"; then
6e198e97
VZ
6631 if test x"$enablestring" = xdisable; then
6632 defaultval=yes
6633 else
6634 defaultval=no
6635 fi
6636 fi
6637
d589327a
VZ
6638 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6639echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
47964710 6640 # Check whether --enable-cmdline was given.
a848cd7e 6641if test "${enable_cmdline+set}" = set; then
47964710 6642 enableval=$enable_cmdline;
a848cd7e 6643 if test "$enableval" = yes; then
d970f7d5 6644 wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
a848cd7e 6645 else
d970f7d5 6646 wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
a848cd7e
SC
6647 fi
6648
6649else
6650
d970f7d5 6651 wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
a848cd7e 6652
47964710
VS
6653fi
6654
a848cd7e 6655
d970f7d5 6656 eval "$wx_cv_use_cmdline"
a848cd7e 6657
6e198e97 6658 if test x"$enablestring" = xdisable; then
7ac0e38e 6659 if test $wxUSE_CMDLINE_PARSER = no; then
6e198e97 6660 result=yes
7ac0e38e
VZ
6661 else
6662 result=no
6e198e97 6663 fi
a848cd7e 6664 else
6e198e97 6665 result=$wxUSE_CMDLINE_PARSER
a848cd7e
SC
6666 fi
6667
d589327a
VZ
6668 { echo "$as_me:$LINENO: result: $result" >&5
6669echo "${ECHO_T}$result" >&6; }
6e198e97 6670
a848cd7e 6671
077c7880 6672 enablestring=
6e198e97 6673 defaultval=$wxUSE_ALL_FEATURES
238663c1 6674 if test -z "$defaultval"; then
6e198e97
VZ
6675 if test x"$enablestring" = xdisable; then
6676 defaultval=yes
6677 else
6678 defaultval=no
6679 fi
6680 fi
6681
d589327a
VZ
6682 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6683echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
47964710 6684 # Check whether --enable-datetime was given.
a848cd7e 6685if test "${enable_datetime+set}" = set; then
47964710 6686 enableval=$enable_datetime;
a848cd7e 6687 if test "$enableval" = yes; then
d970f7d5 6688 wx_cv_use_datetime='wxUSE_DATETIME=yes'
a848cd7e 6689 else
d970f7d5 6690 wx_cv_use_datetime='wxUSE_DATETIME=no'
a848cd7e
SC
6691 fi
6692
6693else
6694
d970f7d5 6695 wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
a848cd7e 6696
47964710
VS
6697fi
6698
a848cd7e 6699
d970f7d5 6700 eval "$wx_cv_use_datetime"
a848cd7e 6701
6e198e97 6702 if test x"$enablestring" = xdisable; then
7ac0e38e 6703 if test $wxUSE_DATETIME = no; then
6e198e97 6704 result=yes
7ac0e38e
VZ
6705 else
6706 result=no
6e198e97 6707 fi
a848cd7e 6708 else
6e198e97 6709 result=$wxUSE_DATETIME
a848cd7e
SC
6710 fi
6711
d589327a
VZ
6712 { echo "$as_me:$LINENO: result: $result" >&5
6713echo "${ECHO_T}$result" >&6; }
6e198e97 6714
a848cd7e 6715
077c7880 6716 enablestring=
6e198e97 6717 defaultval=$wxUSE_ALL_FEATURES
238663c1 6718 if test -z "$defaultval"; then
6e198e97
VZ
6719 if test x"$enablestring" = xdisable; then
6720 defaultval=yes
6721 else
6722 defaultval=no
6723 fi
6724 fi
6725
d589327a
VZ
6726 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6727echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
47964710 6728 # Check whether --enable-debugreport was given.
36b6448c 6729if test "${enable_debugreport+set}" = set; then
47964710 6730 enableval=$enable_debugreport;
36b6448c 6731 if test "$enableval" = yes; then
d970f7d5 6732 wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
36b6448c 6733 else
d970f7d5 6734 wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
36b6448c
VZ
6735 fi
6736
6737else
6738
d970f7d5 6739 wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
36b6448c 6740
47964710
VS
6741fi
6742
36b6448c 6743
d970f7d5 6744 eval "$wx_cv_use_debugreport"
36b6448c 6745
6e198e97 6746 if test x"$enablestring" = xdisable; then
7ac0e38e 6747 if test $wxUSE_DEBUGREPORT = no; then
6e198e97 6748 result=yes
7ac0e38e
VZ
6749 else
6750 result=no
6e198e97 6751 fi
36b6448c 6752 else
6e198e97 6753 result=$wxUSE_DEBUGREPORT
36b6448c
VZ
6754 fi
6755
d589327a
VZ
6756 { echo "$as_me:$LINENO: result: $result" >&5
6757echo "${ECHO_T}$result" >&6; }
6e198e97 6758
36b6448c 6759
077c7880 6760 enablestring=
6e198e97 6761 defaultval=$wxUSE_ALL_FEATURES
238663c1 6762 if test -z "$defaultval"; then
6e198e97
VZ
6763 if test x"$enablestring" = xdisable; then
6764 defaultval=yes
6765 else
6766 defaultval=no
6767 fi
6768 fi
6769
d589327a
VZ
6770 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6771echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
47964710 6772 # Check whether --enable-dialupman was given.
a848cd7e 6773if test "${enable_dialupman+set}" = set; then
47964710 6774 enableval=$enable_dialupman;
a848cd7e 6775 if test "$enableval" = yes; then
d970f7d5 6776 wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
a848cd7e 6777 else
d970f7d5 6778 wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
a848cd7e
SC
6779 fi
6780
6781else
6782
d970f7d5 6783 wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
a848cd7e 6784
47964710
VS
6785fi
6786
a848cd7e 6787
d970f7d5 6788 eval "$wx_cv_use_dialupman"
a848cd7e 6789
6e198e97 6790 if test x"$enablestring" = xdisable; then
7ac0e38e 6791 if test $wxUSE_DIALUP_MANAGER = no; then
6e198e97 6792 result=yes
7ac0e38e
VZ
6793 else
6794 result=no
6e198e97 6795 fi
a848cd7e 6796 else
6e198e97 6797 result=$wxUSE_DIALUP_MANAGER
a848cd7e
SC
6798 fi
6799
d589327a
VZ
6800 { echo "$as_me:$LINENO: result: $result" >&5
6801echo "${ECHO_T}$result" >&6; }
6e198e97 6802
a848cd7e 6803
077c7880 6804 enablestring=
6e198e97 6805 defaultval=$wxUSE_ALL_FEATURES
238663c1 6806 if test -z "$defaultval"; then
6e198e97
VZ
6807 if test x"$enablestring" = xdisable; then
6808 defaultval=yes
6809 else
6810 defaultval=no
6811 fi
6812 fi
6813
d589327a
VZ
6814 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6815echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
47964710 6816 # Check whether --enable-dynlib was given.
a848cd7e 6817if test "${enable_dynlib+set}" = set; then
47964710 6818 enableval=$enable_dynlib;
a848cd7e 6819 if test "$enableval" = yes; then
d970f7d5 6820 wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
a848cd7e 6821 else
d970f7d5 6822 wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
a848cd7e
SC
6823 fi
6824
6825else
6826
d970f7d5 6827 wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
a848cd7e 6828
47964710
VS
6829fi
6830
a848cd7e 6831
d970f7d5 6832 eval "$wx_cv_use_dynlib"
a848cd7e 6833
6e198e97 6834 if test x"$enablestring" = xdisable; then
7ac0e38e 6835 if test $wxUSE_DYNLIB_CLASS = no; then
6e198e97 6836 result=yes
7ac0e38e
VZ
6837 else
6838 result=no
6e198e97 6839 fi
a848cd7e 6840 else
6e198e97 6841 result=$wxUSE_DYNLIB_CLASS
a848cd7e
SC
6842 fi
6843
d589327a
VZ
6844 { echo "$as_me:$LINENO: result: $result" >&5
6845echo "${ECHO_T}$result" >&6; }
6e198e97 6846
a848cd7e 6847
077c7880 6848 enablestring=
6e198e97 6849 defaultval=$wxUSE_ALL_FEATURES
238663c1 6850 if test -z "$defaultval"; then
6e198e97
VZ
6851 if test x"$enablestring" = xdisable; then
6852 defaultval=yes
6853 else
6854 defaultval=no
6855 fi
6856 fi
6857
d589327a
VZ
6858 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6859echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
47964710 6860 # Check whether --enable-dynamicloader was given.
a848cd7e 6861if test "${enable_dynamicloader+set}" = set; then
47964710 6862 enableval=$enable_dynamicloader;
a848cd7e 6863 if test "$enableval" = yes; then
d970f7d5 6864 wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
a848cd7e 6865 else
d970f7d5 6866 wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
a848cd7e
SC
6867 fi
6868
6869else
6870
d970f7d5 6871 wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
a848cd7e 6872
47964710
VS
6873fi
6874
a848cd7e 6875
d970f7d5 6876 eval "$wx_cv_use_dynamicloader"
a848cd7e 6877
6e198e97 6878 if test x"$enablestring" = xdisable; then
7ac0e38e 6879 if test $wxUSE_DYNAMIC_LOADER = no; then
6e198e97 6880 result=yes
7ac0e38e
VZ
6881 else
6882 result=no
6e198e97 6883 fi
a848cd7e 6884 else
6e198e97 6885 result=$wxUSE_DYNAMIC_LOADER
a848cd7e
SC
6886 fi
6887
d589327a
VZ
6888 { echo "$as_me:$LINENO: result: $result" >&5
6889echo "${ECHO_T}$result" >&6; }
6e198e97 6890
a848cd7e 6891
077c7880 6892 enablestring=
6e198e97 6893 defaultval=$wxUSE_ALL_FEATURES
238663c1 6894 if test -z "$defaultval"; then
6e198e97
VZ
6895 if test x"$enablestring" = xdisable; then
6896 defaultval=yes
6897 else
6898 defaultval=no
6899 fi
6900 fi
6901
d589327a
VZ
6902 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6903echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
47964710 6904 # Check whether --enable-exceptions was given.
a848cd7e 6905if test "${enable_exceptions+set}" = set; then
47964710 6906 enableval=$enable_exceptions;
a848cd7e 6907 if test "$enableval" = yes; then
d970f7d5 6908 wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
a848cd7e 6909 else
d970f7d5 6910 wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
a848cd7e
SC
6911 fi
6912
6913else
6914
d970f7d5 6915 wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
a848cd7e 6916
47964710
VS
6917fi
6918
a848cd7e 6919
d970f7d5 6920 eval "$wx_cv_use_exceptions"
a848cd7e 6921
6e198e97 6922 if test x"$enablestring" = xdisable; then
7ac0e38e 6923 if test $wxUSE_EXCEPTIONS = no; then
6e198e97 6924 result=yes
7ac0e38e
VZ
6925 else
6926 result=no
6e198e97 6927 fi
a848cd7e 6928 else
6e198e97 6929 result=$wxUSE_EXCEPTIONS
a848cd7e
SC
6930 fi
6931
d589327a
VZ
6932 { echo "$as_me:$LINENO: result: $result" >&5
6933echo "${ECHO_T}$result" >&6; }
6e198e97 6934
a848cd7e 6935
077c7880 6936 enablestring=
6e198e97 6937 defaultval=$wxUSE_ALL_FEATURES
238663c1 6938 if test -z "$defaultval"; then
6e198e97
VZ
6939 if test x"$enablestring" = xdisable; then
6940 defaultval=yes
6941 else
6942 defaultval=no
6943 fi
6944 fi
6945
d589327a
VZ
6946 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6947echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
47964710 6948 # Check whether --enable-ffile was given.
a848cd7e 6949if test "${enable_ffile+set}" = set; then
47964710 6950 enableval=$enable_ffile;
a848cd7e 6951 if test "$enableval" = yes; then
d970f7d5 6952 wx_cv_use_ffile='wxUSE_FFILE=yes'
a848cd7e 6953 else
d970f7d5 6954 wx_cv_use_ffile='wxUSE_FFILE=no'
a848cd7e
SC
6955 fi
6956
6957else
6958
d970f7d5 6959 wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
a848cd7e 6960
47964710
VS
6961fi
6962
a848cd7e 6963
d970f7d5 6964 eval "$wx_cv_use_ffile"
a848cd7e 6965
6e198e97 6966 if test x"$enablestring" = xdisable; then
7ac0e38e 6967 if test $wxUSE_FFILE = no; then
6e198e97 6968 result=yes
7ac0e38e
VZ
6969 else
6970 result=no
6e198e97 6971 fi
a848cd7e 6972 else
6e198e97 6973 result=$wxUSE_FFILE
a848cd7e
SC
6974 fi
6975
d589327a
VZ
6976 { echo "$as_me:$LINENO: result: $result" >&5
6977echo "${ECHO_T}$result" >&6; }
6e198e97 6978
a848cd7e 6979
077c7880 6980 enablestring=
6e198e97 6981 defaultval=$wxUSE_ALL_FEATURES
238663c1 6982 if test -z "$defaultval"; then
6e198e97
VZ
6983 if test x"$enablestring" = xdisable; then
6984 defaultval=yes
6985 else
6986 defaultval=no
6987 fi
6988 fi
6989
d589327a
VZ
6990 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6991echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
47964710 6992 # Check whether --enable-file was given.
a848cd7e 6993if test "${enable_file+set}" = set; then
47964710 6994 enableval=$enable_file;
a848cd7e 6995 if test "$enableval" = yes; then
d970f7d5 6996 wx_cv_use_file='wxUSE_FILE=yes'
a848cd7e 6997 else
d970f7d5 6998 wx_cv_use_file='wxUSE_FILE=no'
a848cd7e
SC
6999 fi
7000
7001else
7002
d970f7d5 7003 wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
a848cd7e 7004
47964710
VS
7005fi
7006
a848cd7e 7007
d970f7d5 7008 eval "$wx_cv_use_file"
a848cd7e 7009
6e198e97 7010 if test x"$enablestring" = xdisable; then
7ac0e38e 7011 if test $wxUSE_FILE = no; then
6e198e97 7012 result=yes
7ac0e38e
VZ
7013 else
7014 result=no
6e198e97 7015 fi
a848cd7e 7016 else
6e198e97 7017 result=$wxUSE_FILE
a848cd7e
SC
7018 fi
7019
d589327a
VZ
7020 { echo "$as_me:$LINENO: result: $result" >&5
7021echo "${ECHO_T}$result" >&6; }
6e198e97 7022
a848cd7e 7023
a0219e45
VS
7024 enablestring=
7025 defaultval=$wxUSE_ALL_FEATURES
7026 if test -z "$defaultval"; then
7027 if test x"$enablestring" = xdisable; then
7028 defaultval=yes
7029 else
7030 defaultval=no
7031 fi
7032 fi
7033
7034 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5
7035echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
7036 # Check whether --enable-filehistory was given.
7037if test "${enable_filehistory+set}" = set; then
7038 enableval=$enable_filehistory;
7039 if test "$enableval" = yes; then
7040 wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
7041 else
7042 wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
7043 fi
7044
7045else
7046
7047 wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
7048
7049fi
7050
7051
7052 eval "$wx_cv_use_filehistory"
7053
7054 if test x"$enablestring" = xdisable; then
7055 if test $wxUSE_FILE_HISTORY = no; then
7056 result=yes
7057 else
7058 result=no
7059 fi
7060 else
7061 result=$wxUSE_FILE_HISTORY
7062 fi
7063
7064 { echo "$as_me:$LINENO: result: $result" >&5
7065echo "${ECHO_T}$result" >&6; }
7066
7067
077c7880 7068 enablestring=
6e198e97 7069 defaultval=$wxUSE_ALL_FEATURES
238663c1 7070 if test -z "$defaultval"; then
6e198e97
VZ
7071 if test x"$enablestring" = xdisable; then
7072 defaultval=yes
7073 else
7074 defaultval=no
7075 fi
7076 fi
7077
d589327a
VZ
7078 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7079echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
47964710 7080 # Check whether --enable-filesystem was given.
a848cd7e 7081if test "${enable_filesystem+set}" = set; then
47964710 7082 enableval=$enable_filesystem;
a848cd7e 7083 if test "$enableval" = yes; then
d970f7d5 7084 wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
a848cd7e 7085 else
d970f7d5 7086 wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
a848cd7e
SC
7087 fi
7088
7089else
7090
d970f7d5 7091 wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
a848cd7e 7092
47964710
VS
7093fi
7094
a848cd7e 7095
d970f7d5 7096 eval "$wx_cv_use_filesystem"
a848cd7e 7097
6e198e97 7098 if test x"$enablestring" = xdisable; then
7ac0e38e 7099 if test $wxUSE_FILESYSTEM = no; then
6e198e97 7100 result=yes
7ac0e38e
VZ
7101 else
7102 result=no
6e198e97 7103 fi
a848cd7e 7104 else
6e198e97 7105 result=$wxUSE_FILESYSTEM
a848cd7e
SC
7106 fi
7107
d589327a
VZ
7108 { echo "$as_me:$LINENO: result: $result" >&5
7109echo "${ECHO_T}$result" >&6; }
6e198e97 7110
a848cd7e 7111
ff427585
VZ
7112 enablestring=
7113 defaultval=$wxUSE_ALL_FEATURES
7114 if test -z "$defaultval"; then
7115 if test x"$enablestring" = xdisable; then
7116 defaultval=yes
7117 else
7118 defaultval=no
7119 fi
7120 fi
7121
d589327a
VZ
7122 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7123echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
47964710 7124 # Check whether --enable-fontenum was given.
ff427585 7125if test "${enable_fontenum+set}" = set; then
47964710 7126 enableval=$enable_fontenum;
ff427585
VZ
7127 if test "$enableval" = yes; then
7128 wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7129 else
7130 wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7131 fi
7132
7133else
7134
ff427585
VZ
7135 wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7136
47964710
VS
7137fi
7138
ff427585
VZ
7139
7140 eval "$wx_cv_use_fontenum"
ff427585
VZ
7141
7142 if test x"$enablestring" = xdisable; then
7ac0e38e 7143 if test $wxUSE_FONTENUM = no; then
ff427585 7144 result=yes
7ac0e38e
VZ
7145 else
7146 result=no
ff427585
VZ
7147 fi
7148 else
7149 result=$wxUSE_FONTENUM
7150 fi
7151
d589327a
VZ
7152 { echo "$as_me:$LINENO: result: $result" >&5
7153echo "${ECHO_T}$result" >&6; }
ff427585
VZ
7154
7155
077c7880 7156 enablestring=
6e198e97 7157 defaultval=$wxUSE_ALL_FEATURES
238663c1 7158 if test -z "$defaultval"; then
6e198e97
VZ
7159 if test x"$enablestring" = xdisable; then
7160 defaultval=yes
7161 else
7162 defaultval=no
7163 fi
7164 fi
7165
d589327a
VZ
7166 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7167echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
47964710 7168 # Check whether --enable-fontmap was given.
a848cd7e 7169if test "${enable_fontmap+set}" = set; then
47964710 7170 enableval=$enable_fontmap;
a848cd7e 7171 if test "$enableval" = yes; then
d970f7d5 7172 wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
a848cd7e 7173 else
d970f7d5 7174 wx_cv_use_fontmap='wxUSE_FONTMAP=no'
a848cd7e
SC
7175 fi
7176
7177else
7178
d970f7d5 7179 wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
a848cd7e 7180
47964710
VS
7181fi
7182
a848cd7e 7183
d970f7d5 7184 eval "$wx_cv_use_fontmap"
a848cd7e 7185
6e198e97 7186 if test x"$enablestring" = xdisable; then
7ac0e38e 7187 if test $wxUSE_FONTMAP = no; then
6e198e97 7188 result=yes
7ac0e38e
VZ
7189 else
7190 result=no
6e198e97 7191 fi
a848cd7e 7192 else
6e198e97 7193 result=$wxUSE_FONTMAP
a848cd7e
SC
7194 fi
7195
d589327a
VZ
7196 { echo "$as_me:$LINENO: result: $result" >&5
7197echo "${ECHO_T}$result" >&6; }
6e198e97 7198
a848cd7e 7199
077c7880 7200 enablestring=
6e198e97 7201 defaultval=$wxUSE_ALL_FEATURES
238663c1 7202 if test -z "$defaultval"; then
6e198e97
VZ
7203 if test x"$enablestring" = xdisable; then
7204 defaultval=yes
7205 else
7206 defaultval=no
7207 fi
7208 fi
7209
d589327a
VZ
7210 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7211echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
47964710 7212 # Check whether --enable-fs_archive was given.
26e422a9 7213if test "${enable_fs_archive+set}" = set; then
47964710 7214 enableval=$enable_fs_archive;
26e422a9 7215 if test "$enableval" = yes; then
d970f7d5 7216 wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
26e422a9 7217 else
d970f7d5 7218 wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
26e422a9
MW
7219 fi
7220
7221else
7222
d970f7d5 7223 wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
26e422a9 7224
47964710
VS
7225fi
7226
26e422a9 7227
d970f7d5 7228 eval "$wx_cv_use_fs_archive"
26e422a9 7229
6e198e97 7230 if test x"$enablestring" = xdisable; then
7ac0e38e 7231 if test $wxUSE_FS_ARCHIVE = no; then
6e198e97 7232 result=yes
7ac0e38e
VZ
7233 else
7234 result=no
6e198e97 7235 fi
26e422a9 7236 else
6e198e97 7237 result=$wxUSE_FS_ARCHIVE
26e422a9
MW
7238 fi
7239
d589327a
VZ
7240 { echo "$as_me:$LINENO: result: $result" >&5
7241echo "${ECHO_T}$result" >&6; }
6e198e97 7242
26e422a9 7243
077c7880 7244 enablestring=
6e198e97 7245 defaultval=$wxUSE_ALL_FEATURES
238663c1 7246 if test -z "$defaultval"; then
6e198e97
VZ
7247 if test x"$enablestring" = xdisable; then
7248 defaultval=yes
7249 else
7250 defaultval=no
7251 fi
7252 fi
7253
d589327a
VZ
7254 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7255echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
47964710 7256 # Check whether --enable-fs_inet was given.
a848cd7e 7257if test "${enable_fs_inet+set}" = set; then
47964710 7258 enableval=$enable_fs_inet;
a848cd7e 7259 if test "$enableval" = yes; then
d970f7d5 7260 wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
a848cd7e 7261 else
d970f7d5 7262 wx_cv_use_fs_inet='wxUSE_FS_INET=no'
a848cd7e
SC
7263 fi
7264
7265else
7266
d970f7d5 7267 wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
a848cd7e 7268
47964710
VS
7269fi
7270
a848cd7e 7271
d970f7d5 7272 eval "$wx_cv_use_fs_inet"
a848cd7e 7273
6e198e97 7274 if test x"$enablestring" = xdisable; then
7ac0e38e 7275 if test $wxUSE_FS_INET = no; then
6e198e97 7276 result=yes
7ac0e38e
VZ
7277 else
7278 result=no
6e198e97 7279 fi
a848cd7e 7280 else
6e198e97 7281 result=$wxUSE_FS_INET
a848cd7e
SC
7282 fi
7283
d589327a
VZ
7284 { echo "$as_me:$LINENO: result: $result" >&5
7285echo "${ECHO_T}$result" >&6; }
6e198e97 7286
a848cd7e 7287
077c7880 7288 enablestring=
6e198e97 7289 defaultval=$wxUSE_ALL_FEATURES
238663c1 7290 if test -z "$defaultval"; then
6e198e97
VZ
7291 if test x"$enablestring" = xdisable; then
7292 defaultval=yes
7293 else
7294 defaultval=no
7295 fi
7296 fi
7297
d589327a
VZ
7298 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7299echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
47964710 7300 # Check whether --enable-fs_zip was given.
a848cd7e 7301if test "${enable_fs_zip+set}" = set; then
47964710 7302 enableval=$enable_fs_zip;
a848cd7e 7303 if test "$enableval" = yes; then
d970f7d5 7304 wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a848cd7e 7305 else
d970f7d5 7306 wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a848cd7e
SC
7307 fi
7308
7309else
7310
d970f7d5 7311 wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
a848cd7e 7312
47964710
VS
7313fi
7314
a848cd7e 7315
d970f7d5 7316 eval "$wx_cv_use_fs_zip"
a848cd7e 7317
6e198e97 7318 if test x"$enablestring" = xdisable; then
7ac0e38e 7319 if test $wxUSE_FS_ZIP = no; then
6e198e97 7320 result=yes
7ac0e38e
VZ
7321 else
7322 result=no
6e198e97 7323 fi
a848cd7e 7324 else
6e198e97 7325 result=$wxUSE_FS_ZIP
a848cd7e
SC
7326 fi
7327
d589327a
VZ
7328 { echo "$as_me:$LINENO: result: $result" >&5
7329echo "${ECHO_T}$result" >&6; }
6e198e97 7330
a848cd7e 7331
6b8ef0b3
VZ
7332 enablestring=
7333 defaultval=$wxUSE_ALL_FEATURES
7334 if test -z "$defaultval"; then
7335 if test x"$enablestring" = xdisable; then
7336 defaultval=yes
7337 else
7338 defaultval=no
7339 fi
7340 fi
7341
7342 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5
7343echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7344 # Check whether --enable-fswatcher was given.
7345if test "${enable_fswatcher+set}" = set; then
7346 enableval=$enable_fswatcher;
7347 if test "$enableval" = yes; then
7348 wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7349 else
7350 wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7351 fi
7352
7353else
7354
7355 wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7356
7357fi
7358
7359
7360 eval "$wx_cv_use_fswatcher"
7361
7362 if test x"$enablestring" = xdisable; then
7363 if test $wxUSE_FSWATCHER = no; then
7364 result=yes
7365 else
7366 result=no
7367 fi
7368 else
7369 result=$wxUSE_FSWATCHER
7370 fi
7371
7372 { echo "$as_me:$LINENO: result: $result" >&5
7373echo "${ECHO_T}$result" >&6; }
7374
7375
077c7880 7376 enablestring=
6e198e97 7377 defaultval=$wxUSE_ALL_FEATURES
238663c1 7378 if test -z "$defaultval"; then
6e198e97
VZ
7379 if test x"$enablestring" = xdisable; then
7380 defaultval=yes
7381 else
7382 defaultval=no
7383 fi
7384 fi
7385
d589327a
VZ
7386 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7387echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
47964710 7388 # Check whether --enable-geometry was given.
a848cd7e 7389if test "${enable_geometry+set}" = set; then
47964710 7390 enableval=$enable_geometry;
a848cd7e 7391 if test "$enableval" = yes; then
d970f7d5 7392 wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
a848cd7e 7393 else
d970f7d5 7394 wx_cv_use_geometry='wxUSE_GEOMETRY=no'
a848cd7e
SC
7395 fi
7396
7397else
7398
d970f7d5 7399 wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
a848cd7e 7400
47964710
VS
7401fi
7402
a848cd7e 7403
d970f7d5 7404 eval "$wx_cv_use_geometry"
a848cd7e 7405
6e198e97 7406 if test x"$enablestring" = xdisable; then
7ac0e38e 7407 if test $wxUSE_GEOMETRY = no; then
6e198e97 7408 result=yes
7ac0e38e
VZ
7409 else
7410 result=no
6e198e97 7411 fi
a848cd7e 7412 else
6e198e97 7413 result=$wxUSE_GEOMETRY
a848cd7e
SC
7414 fi
7415
d589327a
VZ
7416 { echo "$as_me:$LINENO: result: $result" >&5
7417echo "${ECHO_T}$result" >&6; }
6e198e97 7418
a848cd7e 7419
077c7880 7420 enablestring=
6e198e97 7421 defaultval=$wxUSE_ALL_FEATURES
238663c1 7422 if test -z "$defaultval"; then
6e198e97
VZ
7423 if test x"$enablestring" = xdisable; then
7424 defaultval=yes
7425 else
7426 defaultval=no
7427 fi
7428 fi
7429
d589327a
VZ
7430 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7431echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
47964710 7432 # Check whether --enable-log was given.
a848cd7e 7433if test "${enable_log+set}" = set; then
47964710 7434 enableval=$enable_log;
a848cd7e 7435 if test "$enableval" = yes; then
d970f7d5 7436 wx_cv_use_log='wxUSE_LOG=yes'
a848cd7e 7437 else
d970f7d5 7438 wx_cv_use_log='wxUSE_LOG=no'
a848cd7e
SC
7439 fi
7440
7441else
7442
d970f7d5 7443 wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
a848cd7e 7444
47964710
VS
7445fi
7446
a848cd7e 7447
d970f7d5 7448 eval "$wx_cv_use_log"
a848cd7e 7449
6e198e97 7450 if test x"$enablestring" = xdisable; then
7ac0e38e 7451 if test $wxUSE_LOG = no; then
6e198e97 7452 result=yes
7ac0e38e
VZ
7453 else
7454 result=no
6e198e97 7455 fi
a848cd7e 7456 else
6e198e97 7457 result=$wxUSE_LOG
a848cd7e
SC
7458 fi
7459
d589327a
VZ
7460 { echo "$as_me:$LINENO: result: $result" >&5
7461echo "${ECHO_T}$result" >&6; }
6e198e97 7462
a848cd7e 7463
077c7880 7464 enablestring=
6e198e97 7465 defaultval=$wxUSE_ALL_FEATURES
238663c1 7466 if test -z "$defaultval"; then
6e198e97
VZ
7467 if test x"$enablestring" = xdisable; then
7468 defaultval=yes
7469 else
7470 defaultval=no
7471 fi
7472 fi
7473
d589327a
VZ
7474 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7475echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
47964710 7476 # Check whether --enable-longlong was given.
a848cd7e 7477if test "${enable_longlong+set}" = set; then
47964710 7478 enableval=$enable_longlong;
a848cd7e 7479 if test "$enableval" = yes; then
d970f7d5 7480 wx_cv_use_longlong='wxUSE_LONGLONG=yes'
a848cd7e 7481 else
d970f7d5 7482 wx_cv_use_longlong='wxUSE_LONGLONG=no'
a848cd7e
SC
7483 fi
7484
7485else
7486
d970f7d5 7487 wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
a848cd7e 7488
47964710
VS
7489fi
7490
a848cd7e 7491
d970f7d5 7492 eval "$wx_cv_use_longlong"
a848cd7e 7493
6e198e97 7494 if test x"$enablestring" = xdisable; then
7ac0e38e 7495 if test $wxUSE_LONGLONG = no; then
6e198e97 7496 result=yes
7ac0e38e
VZ
7497 else
7498 result=no
6e198e97 7499 fi
a848cd7e 7500 else
6e198e97 7501 result=$wxUSE_LONGLONG
a848cd7e
SC
7502 fi
7503
d589327a
VZ
7504 { echo "$as_me:$LINENO: result: $result" >&5
7505echo "${ECHO_T}$result" >&6; }
6e198e97 7506
a848cd7e 7507
077c7880 7508 enablestring=
6e198e97 7509 defaultval=$wxUSE_ALL_FEATURES
238663c1 7510 if test -z "$defaultval"; then
6e198e97
VZ
7511 if test x"$enablestring" = xdisable; then
7512 defaultval=yes
7513 else
7514 defaultval=no
7515 fi
7516 fi
7517
d589327a
VZ
7518 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7519echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
47964710 7520 # Check whether --enable-mimetype was given.
a848cd7e 7521if test "${enable_mimetype+set}" = set; then
47964710 7522 enableval=$enable_mimetype;
a848cd7e 7523 if test "$enableval" = yes; then
d970f7d5 7524 wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
a848cd7e 7525 else
d970f7d5 7526 wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
a848cd7e
SC
7527 fi
7528
7529else
7530
d970f7d5 7531 wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
a848cd7e 7532
47964710
VS
7533fi
7534
a848cd7e 7535
d970f7d5 7536 eval "$wx_cv_use_mimetype"
a848cd7e 7537
6e198e97 7538 if test x"$enablestring" = xdisable; then
7ac0e38e 7539 if test $wxUSE_MIMETYPE = no; then
6e198e97 7540 result=yes
7ac0e38e
VZ
7541 else
7542 result=no
6e198e97 7543 fi
a848cd7e 7544 else
6e198e97 7545 result=$wxUSE_MIMETYPE
81727065
VS
7546 fi
7547
d589327a
VZ
7548 { echo "$as_me:$LINENO: result: $result" >&5
7549echo "${ECHO_T}$result" >&6; }
81727065
VS
7550
7551
4732e2dc
VZ
7552 enablestring=
7553 defaultval=$wxUSE_ALL_FEATURES
7554 if test -z "$defaultval"; then
7555 if test x"$enablestring" = xdisable; then
7556 defaultval=yes
7557 else
7558 defaultval=no
7559 fi
7560 fi
7561
d589327a
VZ
7562 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7563echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
4732e2dc
VZ
7564 # Check whether --enable-printfposparam was given.
7565if test "${enable_printfposparam+set}" = set; then
7566 enableval=$enable_printfposparam;
7567 if test "$enableval" = yes; then
7568 wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7569 else
7570 wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7571 fi
7572
7573else
7574
7575 wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7576
7577fi
7578
7579
7580 eval "$wx_cv_use_printfposparam"
7581
7582 if test x"$enablestring" = xdisable; then
7ac0e38e 7583 if test $wxUSE_PRINTF_POS_PARAMS = no; then
4732e2dc 7584 result=yes
7ac0e38e
VZ
7585 else
7586 result=no
4732e2dc
VZ
7587 fi
7588 else
7589 result=$wxUSE_PRINTF_POS_PARAMS
7590 fi
7591
d589327a
VZ
7592 { echo "$as_me:$LINENO: result: $result" >&5
7593echo "${ECHO_T}$result" >&6; }
4732e2dc
VZ
7594
7595
111d9948 7596 enablestring=
6e198e97 7597 defaultval=$wxUSE_ALL_FEATURES
238663c1 7598 if test -z "$defaultval"; then
6e198e97
VZ
7599 if test x"$enablestring" = xdisable; then
7600 defaultval=yes
7601 else
7602 defaultval=no
7603 fi
111d9948
VS
7604 fi
7605
d589327a
VZ
7606 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7607echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
47964710 7608 # Check whether --enable-snglinst was given.
a848cd7e 7609if test "${enable_snglinst+set}" = set; then
47964710 7610 enableval=$enable_snglinst;
a848cd7e 7611 if test "$enableval" = yes; then
d970f7d5 7612 wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
a848cd7e 7613 else
d970f7d5 7614 wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
a848cd7e
SC
7615 fi
7616
7617else
7618
d970f7d5 7619 wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
a848cd7e 7620
47964710
VS
7621fi
7622
a848cd7e 7623
d970f7d5 7624 eval "$wx_cv_use_snglinst"
a848cd7e 7625
6e198e97 7626 if test x"$enablestring" = xdisable; then
7ac0e38e 7627 if test $wxUSE_SNGLINST_CHECKER = no; then
6e198e97 7628 result=yes
7ac0e38e
VZ
7629 else
7630 result=no
6e198e97 7631 fi
a848cd7e 7632 else
6e198e97 7633 result=$wxUSE_SNGLINST_CHECKER
a848cd7e
SC
7634 fi
7635
d589327a
VZ
7636 { echo "$as_me:$LINENO: result: $result" >&5
7637echo "${ECHO_T}$result" >&6; }
a848cd7e
SC
7638
7639
4732e2dc
VZ
7640 enablestring=
7641 defaultval=$wxUSE_ALL_FEATURES
7642 if test -z "$defaultval"; then
7643 if test x"$enablestring" = xdisable; then
7644 defaultval=yes
7645 else
7646 defaultval=no
7647 fi
7648 fi
7649
d589327a
VZ
7650 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7651echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
4732e2dc
VZ
7652 # Check whether --enable-sound was given.
7653if test "${enable_sound+set}" = set; then
7654 enableval=$enable_sound;
7655 if test "$enableval" = yes; then
7656 wx_cv_use_sound='wxUSE_SOUND=yes'
7657 else
7658 wx_cv_use_sound='wxUSE_SOUND=no'
7659 fi
7660
7661else
7662
7663 wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7664
7665fi
7666
7667
7668 eval "$wx_cv_use_sound"
7669
7670 if test x"$enablestring" = xdisable; then
7ac0e38e 7671 if test $wxUSE_SOUND = no; then
4732e2dc 7672 result=yes
7ac0e38e
VZ
7673 else
7674 result=no
4732e2dc
VZ
7675 fi
7676 else
7677 result=$wxUSE_SOUND
7678 fi
7679
d589327a
VZ
7680 { echo "$as_me:$LINENO: result: $result" >&5
7681echo "${ECHO_T}$result" >&6; }
4732e2dc
VZ
7682
7683
077c7880 7684 enablestring=
6e198e97 7685 defaultval=$wxUSE_ALL_FEATURES
238663c1 7686 if test -z "$defaultval"; then
6e198e97
VZ
7687 if test x"$enablestring" = xdisable; then
7688 defaultval=yes
7689 else
7690 defaultval=no
7691 fi
59746b65
MW
7692 fi
7693
d589327a
VZ
7694 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7695echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
47964710 7696 # Check whether --enable-stdpaths was given.
07158944 7697if test "${enable_stdpaths+set}" = set; then
47964710 7698 enableval=$enable_stdpaths;
a848cd7e 7699 if test "$enableval" = yes; then
d970f7d5 7700 wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 7701 else
d970f7d5 7702 wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
7703 fi
7704
7705else
7706
d970f7d5 7707 wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
a848cd7e 7708
47964710
VS
7709fi
7710
a848cd7e 7711
d970f7d5 7712 eval "$wx_cv_use_stdpaths"
a848cd7e 7713
6e198e97 7714 if test x"$enablestring" = xdisable; then
7ac0e38e 7715 if test $wxUSE_STDPATHS = no; then
6e198e97 7716 result=yes
7ac0e38e
VZ
7717 else
7718 result=no
6e198e97 7719 fi
a848cd7e 7720 else
6e198e97 7721 result=$wxUSE_STDPATHS
a848cd7e
SC
7722 fi
7723
d589327a
VZ
7724 { echo "$as_me:$LINENO: result: $result" >&5
7725echo "${ECHO_T}$result" >&6; }
6e198e97 7726
a848cd7e 7727
077c7880 7728 enablestring=
6e198e97 7729 defaultval=$wxUSE_ALL_FEATURES
238663c1 7730 if test -z "$defaultval"; then
6e198e97
VZ
7731 if test x"$enablestring" = xdisable; then
7732 defaultval=yes
7733 else
7734 defaultval=no
7735 fi
7736 fi
7737
d589327a
VZ
7738 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7739echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
47964710 7740 # Check whether --enable-stopwatch was given.
a848cd7e 7741if test "${enable_stopwatch+set}" = set; then
47964710 7742 enableval=$enable_stopwatch;
a848cd7e 7743 if test "$enableval" = yes; then
d970f7d5 7744 wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
a848cd7e 7745 else
d970f7d5 7746 wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
a848cd7e
SC
7747 fi
7748
7749else
7750
d970f7d5 7751 wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
a848cd7e 7752
47964710
VS
7753fi
7754
a848cd7e 7755
d970f7d5 7756 eval "$wx_cv_use_stopwatch"
6e198e97
VZ
7757
7758 if test x"$enablestring" = xdisable; then
7ac0e38e 7759 if test $wxUSE_STOPWATCH = no; then
6e198e97 7760 result=yes
7ac0e38e
VZ
7761 else
7762 result=no
6e198e97 7763 fi
a848cd7e 7764 else
6e198e97 7765 result=$wxUSE_STOPWATCH
a848cd7e
SC
7766 fi
7767
d589327a
VZ
7768 { echo "$as_me:$LINENO: result: $result" >&5
7769echo "${ECHO_T}$result" >&6; }
6e198e97 7770
a848cd7e 7771
077c7880 7772 enablestring=
6e198e97 7773 defaultval=$wxUSE_ALL_FEATURES
238663c1 7774 if test -z "$defaultval"; then
6e198e97
VZ
7775 if test x"$enablestring" = xdisable; then
7776 defaultval=yes
7777 else
7778 defaultval=no
7779 fi
7780 fi
7781
d589327a
VZ
7782 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7783echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
47964710 7784 # Check whether --enable-streams was given.
07158944 7785if test "${enable_streams+set}" = set; then
47964710 7786 enableval=$enable_streams;
07158944 7787 if test "$enableval" = yes; then
d970f7d5 7788 wx_cv_use_streams='wxUSE_STREAMS=yes'
07158944 7789 else
d970f7d5 7790 wx_cv_use_streams='wxUSE_STREAMS=no'
07158944
VZ
7791 fi
7792
7793else
7794
d970f7d5 7795 wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
07158944 7796
47964710
VS
7797fi
7798
07158944 7799
d970f7d5 7800 eval "$wx_cv_use_streams"
07158944 7801
6e198e97 7802 if test x"$enablestring" = xdisable; then
7ac0e38e 7803 if test $wxUSE_STREAMS = no; then
6e198e97 7804 result=yes
7ac0e38e
VZ
7805 else
7806 result=no
6e198e97 7807 fi
07158944 7808 else
6e198e97 7809 result=$wxUSE_STREAMS
07158944
VZ
7810 fi
7811
d589327a
VZ
7812 { echo "$as_me:$LINENO: result: $result" >&5
7813echo "${ECHO_T}$result" >&6; }
6e198e97 7814
07158944 7815
077c7880 7816 enablestring=
6e198e97 7817 defaultval=$wxUSE_ALL_FEATURES
238663c1 7818 if test -z "$defaultval"; then
6e198e97
VZ
7819 if test x"$enablestring" = xdisable; then
7820 defaultval=yes
7821 else
7822 defaultval=no
7823 fi
7824 fi
7825
16d4f440
PC
7826 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
7827echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
7828 # Check whether --enable-sysoptions was given.
7829if test "${enable_sysoptions+set}" = set; then
7830 enableval=$enable_sysoptions;
a848cd7e 7831 if test "$enableval" = yes; then
16d4f440 7832 wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
a848cd7e 7833 else
16d4f440 7834 wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
a848cd7e
SC
7835 fi
7836
7837else
7838
16d4f440 7839 wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
a848cd7e 7840
47964710
VS
7841fi
7842
a848cd7e 7843
16d4f440 7844 eval "$wx_cv_use_sysoptions"
a848cd7e 7845
6e198e97 7846 if test x"$enablestring" = xdisable; then
7ac0e38e 7847 if test $wxUSE_SYSTEM_OPTIONS = no; then
6e198e97 7848 result=yes
7ac0e38e
VZ
7849 else
7850 result=no
6e198e97 7851 fi
a848cd7e 7852 else
6e198e97 7853 result=$wxUSE_SYSTEM_OPTIONS
a848cd7e
SC
7854 fi
7855
d589327a
VZ
7856 { echo "$as_me:$LINENO: result: $result" >&5
7857echo "${ECHO_T}$result" >&6; }
6e198e97 7858
a848cd7e 7859
077c7880 7860 enablestring=
6e198e97 7861 defaultval=$wxUSE_ALL_FEATURES
238663c1 7862 if test -z "$defaultval"; then
6e198e97
VZ
7863 if test x"$enablestring" = xdisable; then
7864 defaultval=yes
7865 else
7866 defaultval=no
7867 fi
7868 fi
7869
d589327a
VZ
7870 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7871echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
47964710 7872 # Check whether --enable-tarstream was given.
26e422a9 7873if test "${enable_tarstream+set}" = set; then
47964710 7874 enableval=$enable_tarstream;
26e422a9 7875 if test "$enableval" = yes; then
d970f7d5 7876 wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
26e422a9 7877 else
d970f7d5 7878 wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
26e422a9
MW
7879 fi
7880
7881else
7882
d970f7d5 7883 wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
26e422a9 7884
47964710
VS
7885fi
7886
26e422a9 7887
d970f7d5 7888 eval "$wx_cv_use_tarstream"
26e422a9 7889
6e198e97 7890 if test x"$enablestring" = xdisable; then
7ac0e38e 7891 if test $wxUSE_TARSTREAM = no; then
6e198e97 7892 result=yes
7ac0e38e
VZ
7893 else
7894 result=no
6e198e97 7895 fi
26e422a9 7896 else
6e198e97 7897 result=$wxUSE_TARSTREAM
26e422a9
MW
7898 fi
7899
d589327a
VZ
7900 { echo "$as_me:$LINENO: result: $result" >&5
7901echo "${ECHO_T}$result" >&6; }
6e198e97 7902
26e422a9 7903
077c7880 7904 enablestring=
6e198e97 7905 defaultval=$wxUSE_ALL_FEATURES
238663c1 7906 if test -z "$defaultval"; then
6e198e97
VZ
7907 if test x"$enablestring" = xdisable; then
7908 defaultval=yes
7909 else
7910 defaultval=no
7911 fi
7912 fi
7913
d589327a
VZ
7914 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7915echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
47964710 7916 # Check whether --enable-textbuf was given.
a848cd7e 7917if test "${enable_textbuf+set}" = set; then
47964710 7918 enableval=$enable_textbuf;
a848cd7e 7919 if test "$enableval" = yes; then
d970f7d5 7920 wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
a848cd7e 7921 else
d970f7d5 7922 wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
a848cd7e
SC
7923 fi
7924
7925else
7926
d970f7d5 7927 wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
a848cd7e 7928
47964710
VS
7929fi
7930
a848cd7e 7931
d970f7d5 7932 eval "$wx_cv_use_textbuf"
a848cd7e 7933
6e198e97 7934 if test x"$enablestring" = xdisable; then
7ac0e38e 7935 if test $wxUSE_TEXTBUFFER = no; then
6e198e97 7936 result=yes
7ac0e38e
VZ
7937 else
7938 result=no
6e198e97 7939 fi
a848cd7e 7940 else
6e198e97 7941 result=$wxUSE_TEXTBUFFER
a848cd7e
SC
7942 fi
7943
d589327a
VZ
7944 { echo "$as_me:$LINENO: result: $result" >&5
7945echo "${ECHO_T}$result" >&6; }
6e198e97 7946
a848cd7e 7947
077c7880 7948 enablestring=
6e198e97 7949 defaultval=$wxUSE_ALL_FEATURES
238663c1 7950 if test -z "$defaultval"; then
6e198e97
VZ
7951 if test x"$enablestring" = xdisable; then
7952 defaultval=yes
7953 else
7954 defaultval=no
7955 fi
7956 fi
7957
d589327a
VZ
7958 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7959echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
47964710 7960 # Check whether --enable-textfile was given.
a848cd7e 7961if test "${enable_textfile+set}" = set; then
47964710 7962 enableval=$enable_textfile;
a848cd7e 7963 if test "$enableval" = yes; then
d970f7d5 7964 wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
a848cd7e 7965 else
d970f7d5 7966 wx_cv_use_textfile='wxUSE_TEXTFILE=no'
a848cd7e
SC
7967 fi
7968
7969else
7970
d970f7d5 7971 wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
a848cd7e 7972
47964710
VS
7973fi
7974
a848cd7e 7975
d970f7d5 7976 eval "$wx_cv_use_textfile"
a848cd7e 7977
6e198e97 7978 if test x"$enablestring" = xdisable; then
7ac0e38e 7979 if test $wxUSE_TEXTFILE = no; then
6e198e97 7980 result=yes
7ac0e38e
VZ
7981 else
7982 result=no
6e198e97 7983 fi
a848cd7e 7984 else
6e198e97 7985 result=$wxUSE_TEXTFILE
a848cd7e
SC
7986 fi
7987
d589327a
VZ
7988 { echo "$as_me:$LINENO: result: $result" >&5
7989echo "${ECHO_T}$result" >&6; }
6e198e97 7990
a848cd7e 7991
077c7880 7992 enablestring=
6e198e97 7993 defaultval=$wxUSE_ALL_FEATURES
238663c1 7994 if test -z "$defaultval"; then
6e198e97
VZ
7995 if test x"$enablestring" = xdisable; then
7996 defaultval=yes
7997 else
7998 defaultval=no
7999 fi
8000 fi
8001
d589327a
VZ
8002 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8003echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
47964710 8004 # Check whether --enable-timer was given.
a848cd7e 8005if test "${enable_timer+set}" = set; then
47964710 8006 enableval=$enable_timer;
a848cd7e 8007 if test "$enableval" = yes; then
d970f7d5 8008 wx_cv_use_timer='wxUSE_TIMER=yes'
a848cd7e 8009 else
d970f7d5 8010 wx_cv_use_timer='wxUSE_TIMER=no'
a848cd7e
SC
8011 fi
8012
8013else
8014
d970f7d5 8015 wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
a848cd7e 8016
47964710
VS
8017fi
8018
a848cd7e 8019
d970f7d5 8020 eval "$wx_cv_use_timer"
a848cd7e 8021
6e198e97 8022 if test x"$enablestring" = xdisable; then
7ac0e38e 8023 if test $wxUSE_TIMER = no; then
6e198e97 8024 result=yes
7ac0e38e
VZ
8025 else
8026 result=no
6e198e97 8027 fi
a848cd7e 8028 else
6e198e97 8029 result=$wxUSE_TIMER
a848cd7e
SC
8030 fi
8031
d589327a
VZ
8032 { echo "$as_me:$LINENO: result: $result" >&5
8033echo "${ECHO_T}$result" >&6; }
a848cd7e 8034
a848cd7e 8035
6e198e97
VZ
8036 enablestring=
8037 defaultval=$wxUSE_ALL_FEATURES
238663c1 8038 if test -z "$defaultval"; then
6e198e97
VZ
8039 if test x"$enablestring" = xdisable; then
8040 defaultval=yes
8041 else
8042 defaultval=no
8043 fi
a848cd7e
SC
8044 fi
8045
d589327a
VZ
8046 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8047echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
4732e2dc
VZ
8048 # Check whether --enable-variant was given.
8049if test "${enable_variant+set}" = set; then
8050 enableval=$enable_variant;
f10e38c4 8051 if test "$enableval" = yes; then
4732e2dc 8052 wx_cv_use_variant='wxUSE_VARIANT=yes'
f10e38c4 8053 else
4732e2dc 8054 wx_cv_use_variant='wxUSE_VARIANT=no'
f10e38c4
VZ
8055 fi
8056
8057else
8058
4732e2dc 8059 wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
f10e38c4 8060
47964710
VS
8061fi
8062
f10e38c4 8063
4732e2dc 8064 eval "$wx_cv_use_variant"
f10e38c4 8065
6e198e97 8066 if test x"$enablestring" = xdisable; then
7ac0e38e 8067 if test $wxUSE_VARIANT = no; then
6e198e97 8068 result=yes
7ac0e38e
VZ
8069 else
8070 result=no
6e198e97 8071 fi
f10e38c4 8072 else
4732e2dc 8073 result=$wxUSE_VARIANT
f10e38c4
VZ
8074 fi
8075
d589327a
VZ
8076 { echo "$as_me:$LINENO: result: $result" >&5
8077echo "${ECHO_T}$result" >&6; }
6e198e97 8078
f10e38c4 8079
077c7880 8080 enablestring=
6e198e97 8081 defaultval=$wxUSE_ALL_FEATURES
238663c1 8082 if test -z "$defaultval"; then
6e198e97
VZ
8083 if test x"$enablestring" = xdisable; then
8084 defaultval=yes
8085 else
8086 defaultval=no
8087 fi
8088 fi
8089
d589327a
VZ
8090 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8091echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
47964710 8092 # Check whether --enable-zipstream was given.
a848cd7e 8093if test "${enable_zipstream+set}" = set; then
47964710 8094 enableval=$enable_zipstream;
a848cd7e 8095 if test "$enableval" = yes; then
d970f7d5 8096 wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
a848cd7e 8097 else
d970f7d5 8098 wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
a848cd7e
SC
8099 fi
8100
8101else
8102
d970f7d5 8103 wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
a848cd7e 8104
47964710
VS
8105fi
8106
a848cd7e 8107
d970f7d5 8108 eval "$wx_cv_use_zipstream"
a848cd7e 8109
6e198e97 8110 if test x"$enablestring" = xdisable; then
7ac0e38e 8111 if test $wxUSE_ZIPSTREAM = no; then
6e198e97 8112 result=yes
7ac0e38e
VZ
8113 else
8114 result=no
6e198e97 8115 fi
a848cd7e 8116 else
6e198e97 8117 result=$wxUSE_ZIPSTREAM
a848cd7e
SC
8118 fi
8119
d589327a
VZ
8120 { echo "$as_me:$LINENO: result: $result" >&5
8121echo "${ECHO_T}$result" >&6; }
6e198e97 8122
a848cd7e 8123
a848cd7e 8124
077c7880 8125 enablestring=
6e198e97 8126 defaultval=$wxUSE_ALL_FEATURES
238663c1 8127 if test -z "$defaultval"; then
6e198e97
VZ
8128 if test x"$enablestring" = xdisable; then
8129 defaultval=yes
8130 else
8131 defaultval=no
8132 fi
8133 fi
8134
d589327a
VZ
8135 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8136echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
47964710 8137 # Check whether --enable-url was given.
a848cd7e 8138if test "${enable_url+set}" = set; then
47964710 8139 enableval=$enable_url;
a848cd7e 8140 if test "$enableval" = yes; then
d970f7d5 8141 wx_cv_use_url='wxUSE_URL=yes'
a848cd7e 8142 else
d970f7d5 8143 wx_cv_use_url='wxUSE_URL=no'
a848cd7e
SC
8144 fi
8145
8146else
8147
d970f7d5 8148 wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
a848cd7e 8149
47964710
VS
8150fi
8151
a848cd7e 8152
d970f7d5 8153 eval "$wx_cv_use_url"
a848cd7e 8154
6e198e97 8155 if test x"$enablestring" = xdisable; then
7ac0e38e 8156 if test $wxUSE_URL = no; then
6e198e97 8157 result=yes
7ac0e38e
VZ
8158 else
8159 result=no
6e198e97 8160 fi
a848cd7e 8161 else
6e198e97 8162 result=$wxUSE_URL
a848cd7e
SC
8163 fi
8164
d589327a
VZ
8165 { echo "$as_me:$LINENO: result: $result" >&5
8166echo "${ECHO_T}$result" >&6; }
6e198e97 8167
a848cd7e 8168
077c7880 8169 enablestring=
6e198e97 8170 defaultval=$wxUSE_ALL_FEATURES
238663c1 8171 if test -z "$defaultval"; then
6e198e97
VZ
8172 if test x"$enablestring" = xdisable; then
8173 defaultval=yes
8174 else
8175 defaultval=no
8176 fi
8177 fi
8178
d589327a
VZ
8179 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8180echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
47964710 8181 # Check whether --enable-protocol was given.
a848cd7e 8182if test "${enable_protocol+set}" = set; then
47964710 8183 enableval=$enable_protocol;
a848cd7e 8184 if test "$enableval" = yes; then
d970f7d5 8185 wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
a848cd7e 8186 else
d970f7d5 8187 wx_cv_use_protocol='wxUSE_PROTOCOL=no'
a848cd7e
SC
8188 fi
8189
8190else
8191
d970f7d5 8192 wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
a848cd7e 8193
47964710
VS
8194fi
8195
a848cd7e 8196
d970f7d5 8197 eval "$wx_cv_use_protocol"
a848cd7e 8198
6e198e97 8199 if test x"$enablestring" = xdisable; then
7ac0e38e 8200 if test $wxUSE_PROTOCOL = no; then
6e198e97 8201 result=yes
7ac0e38e
VZ
8202 else
8203 result=no
6e198e97 8204 fi
a848cd7e 8205 else
6e198e97 8206 result=$wxUSE_PROTOCOL
a848cd7e
SC
8207 fi
8208
d589327a
VZ
8209 { echo "$as_me:$LINENO: result: $result" >&5
8210echo "${ECHO_T}$result" >&6; }
6e198e97 8211
a848cd7e 8212
077c7880 8213 enablestring=
6e198e97 8214 defaultval=$wxUSE_ALL_FEATURES
238663c1 8215 if test -z "$defaultval"; then
6e198e97
VZ
8216 if test x"$enablestring" = xdisable; then
8217 defaultval=yes
8218 else
8219 defaultval=no
8220 fi
8221 fi
8222
d589327a
VZ
8223 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8224echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
47964710 8225 # Check whether --enable-protocol_http was given.
a848cd7e 8226if test "${enable_protocol_http+set}" = set; then
47964710 8227 enableval=$enable_protocol_http;
a848cd7e 8228 if test "$enableval" = yes; then
d970f7d5 8229 wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
a848cd7e 8230 else
d970f7d5 8231 wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
a848cd7e
SC
8232 fi
8233
8234else
8235
d970f7d5 8236 wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
a848cd7e 8237
47964710
VS
8238fi
8239
a848cd7e 8240
d970f7d5 8241 eval "$wx_cv_use_protocol_http"
a848cd7e 8242
6e198e97 8243 if test x"$enablestring" = xdisable; then
7ac0e38e 8244 if test $wxUSE_PROTOCOL_HTTP = no; then
6e198e97 8245 result=yes
7ac0e38e
VZ
8246 else
8247 result=no
6e198e97 8248 fi
a848cd7e 8249 else
6e198e97 8250 result=$wxUSE_PROTOCOL_HTTP
a848cd7e
SC
8251 fi
8252
d589327a
VZ
8253 { echo "$as_me:$LINENO: result: $result" >&5
8254echo "${ECHO_T}$result" >&6; }
6e198e97 8255
a848cd7e 8256
077c7880 8257 enablestring=
6e198e97 8258 defaultval=$wxUSE_ALL_FEATURES
238663c1 8259 if test -z "$defaultval"; then
6e198e97
VZ
8260 if test x"$enablestring" = xdisable; then
8261 defaultval=yes
8262 else
8263 defaultval=no
8264 fi
8265 fi
8266
d589327a
VZ
8267 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8268echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
47964710 8269 # Check whether --enable-protocol_ftp was given.
a848cd7e 8270if test "${enable_protocol_ftp+set}" = set; then
47964710 8271 enableval=$enable_protocol_ftp;
a848cd7e 8272 if test "$enableval" = yes; then
d970f7d5 8273 wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
a848cd7e 8274 else
d970f7d5 8275 wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
a848cd7e
SC
8276 fi
8277
8278else
8279
d970f7d5 8280 wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
a848cd7e 8281
47964710
VS
8282fi
8283
a848cd7e 8284
d970f7d5 8285 eval "$wx_cv_use_protocol_ftp"
a848cd7e 8286
6e198e97 8287 if test x"$enablestring" = xdisable; then
7ac0e38e 8288 if test $wxUSE_PROTOCOL_FTP = no; then
6e198e97 8289 result=yes
7ac0e38e
VZ
8290 else
8291 result=no
6e198e97 8292 fi
a848cd7e 8293 else
6e198e97 8294 result=$wxUSE_PROTOCOL_FTP
a848cd7e
SC
8295 fi
8296
d589327a
VZ
8297 { echo "$as_me:$LINENO: result: $result" >&5
8298echo "${ECHO_T}$result" >&6; }
6e198e97 8299
a848cd7e 8300
077c7880 8301 enablestring=
6e198e97 8302 defaultval=$wxUSE_ALL_FEATURES
238663c1 8303 if test -z "$defaultval"; then
6e198e97
VZ
8304 if test x"$enablestring" = xdisable; then
8305 defaultval=yes
8306 else
8307 defaultval=no
8308 fi
8309 fi
8310
d589327a
VZ
8311 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8312echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
47964710 8313 # Check whether --enable-protocol_file was given.
a848cd7e 8314if test "${enable_protocol_file+set}" = set; then
47964710 8315 enableval=$enable_protocol_file;
a848cd7e 8316 if test "$enableval" = yes; then
d970f7d5 8317 wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
a848cd7e 8318 else
d970f7d5 8319 wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
a848cd7e
SC
8320 fi
8321
8322else
8323
d970f7d5 8324 wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
a848cd7e 8325
47964710
VS
8326fi
8327
a848cd7e 8328
d970f7d5 8329 eval "$wx_cv_use_protocol_file"
a848cd7e 8330
6e198e97 8331 if test x"$enablestring" = xdisable; then
7ac0e38e 8332 if test $wxUSE_PROTOCOL_FILE = no; then
6e198e97 8333 result=yes
7ac0e38e
VZ
8334 else
8335 result=no
6e198e97 8336 fi
a848cd7e 8337 else
6e198e97 8338 result=$wxUSE_PROTOCOL_FILE
a848cd7e
SC
8339 fi
8340
d589327a
VZ
8341 { echo "$as_me:$LINENO: result: $result" >&5
8342echo "${ECHO_T}$result" >&6; }
a848cd7e
SC
8343
8344
8345
077c7880 8346 enablestring=
6e198e97 8347 defaultval=$wxUSE_ALL_FEATURES
238663c1 8348 if test -z "$defaultval"; then
6e198e97
VZ
8349 if test x"$enablestring" = xdisable; then
8350 defaultval=yes
8351 else
8352 defaultval=no
8353 fi
8354 fi
8355
d589327a
VZ
8356 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8357echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
47964710 8358 # Check whether --enable-threads was given.
a848cd7e 8359if test "${enable_threads+set}" = set; then
47964710 8360 enableval=$enable_threads;
a848cd7e 8361 if test "$enableval" = yes; then
d970f7d5 8362 wx_cv_use_threads='wxUSE_THREADS=yes'
a848cd7e 8363 else
d970f7d5 8364 wx_cv_use_threads='wxUSE_THREADS=no'
a848cd7e
SC
8365 fi
8366
8367else
8368
d970f7d5 8369 wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
a848cd7e 8370
47964710
VS
8371fi
8372
a848cd7e 8373
d970f7d5 8374 eval "$wx_cv_use_threads"
a848cd7e 8375
6e198e97 8376 if test x"$enablestring" = xdisable; then
7ac0e38e 8377 if test $wxUSE_THREADS = no; then
6e198e97 8378 result=yes
7ac0e38e
VZ
8379 else
8380 result=no
6e198e97 8381 fi
a848cd7e 8382 else
6e198e97 8383 result=$wxUSE_THREADS
a848cd7e
SC
8384 fi
8385
d589327a
VZ
8386 { echo "$as_me:$LINENO: result: $result" >&5
8387echo "${ECHO_T}$result" >&6; }
6e198e97 8388
a848cd7e 8389
91a5e00c
VS
8390
8391 enablestring=
8392 defaultval=
8393 if test -z "$defaultval"; then
8394 if test x"$enablestring" = xdisable; then
8395 defaultval=yes
8396 else
8397 defaultval=no
8398 fi
8399 fi
8400
d589327a
VZ
8401 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8402echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
47964710 8403 # Check whether --enable-iniconf was given.
91a5e00c 8404if test "${enable_iniconf+set}" = set; then
47964710 8405 enableval=$enable_iniconf;
91a5e00c
VS
8406 if test "$enableval" = yes; then
8407 wx_cv_use_iniconf='wxUSE_INICONF=yes'
8408 else
8409 wx_cv_use_iniconf='wxUSE_INICONF=no'
8410 fi
91a5e00c
VS
8411
8412else
8413
91a5e00c
VS
8414 wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8415
47964710
VS
8416fi
8417
91a5e00c
VS
8418
8419 eval "$wx_cv_use_iniconf"
91a5e00c
VS
8420
8421 if test x"$enablestring" = xdisable; then
7ac0e38e 8422 if test $wxUSE_INICONF = no; then
91a5e00c 8423 result=yes
7ac0e38e
VZ
8424 else
8425 result=no
91a5e00c
VS
8426 fi
8427 else
8428 result=$wxUSE_INICONF
8429 fi
8430
d589327a
VZ
8431 { echo "$as_me:$LINENO: result: $result" >&5
8432echo "${ECHO_T}$result" >&6; }
91a5e00c
VS
8433
8434
8435 enablestring=
8436 defaultval=$wxUSE_ALL_FEATURES
8437 if test -z "$defaultval"; then
8438 if test x"$enablestring" = xdisable; then
8439 defaultval=yes
8440 else
8441 defaultval=no
8442 fi
8443 fi
8444
d589327a
VZ
8445 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8446echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
47964710 8447 # Check whether --enable-regkey was given.
91a5e00c 8448if test "${enable_regkey+set}" = set; then
47964710 8449 enableval=$enable_regkey;
91a5e00c
VS
8450 if test "$enableval" = yes; then
8451 wx_cv_use_regkey='wxUSE_REGKEY=yes'
8452 else
8453 wx_cv_use_regkey='wxUSE_REGKEY=no'
8454 fi
91a5e00c
VS
8455
8456else
8457
91a5e00c
VS
8458 wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8459
47964710
VS
8460fi
8461
91a5e00c
VS
8462
8463 eval "$wx_cv_use_regkey"
91a5e00c
VS
8464
8465 if test x"$enablestring" = xdisable; then
7ac0e38e 8466 if test $wxUSE_REGKEY = no; then
91a5e00c 8467 result=yes
7ac0e38e
VZ
8468 else
8469 result=no
91a5e00c
VS
8470 fi
8471 else
8472 result=$wxUSE_REGKEY
8473 fi
8474
d589327a
VZ
8475 { echo "$as_me:$LINENO: result: $result" >&5
8476echo "${ECHO_T}$result" >&6; }
91a5e00c
VS
8477
8478
a848cd7e
SC
8479if test "$wxUSE_GUI" = "yes"; then
8480
8481
8482
077c7880 8483 enablestring=
6e198e97 8484 defaultval=$wxUSE_ALL_FEATURES
238663c1 8485 if test -z "$defaultval"; then
6e198e97
VZ
8486 if test x"$enablestring" = xdisable; then
8487 defaultval=yes
8488 else
8489 defaultval=no
8490 fi
8491 fi
8492
d589327a
VZ
8493 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8494echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
47964710 8495 # Check whether --enable-docview was given.
a848cd7e 8496if test "${enable_docview+set}" = set; then
47964710 8497 enableval=$enable_docview;
a848cd7e 8498 if test "$enableval" = yes; then
d970f7d5 8499 wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
a848cd7e 8500 else
d970f7d5 8501 wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
a848cd7e
SC
8502 fi
8503
8504else
8505
d970f7d5 8506 wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
a848cd7e 8507
47964710
VS
8508fi
8509
a848cd7e 8510
d970f7d5 8511 eval "$wx_cv_use_docview"
a848cd7e 8512
6e198e97 8513 if test x"$enablestring" = xdisable; then
7ac0e38e 8514 if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
6e198e97 8515 result=yes
7ac0e38e
VZ
8516 else
8517 result=no
6e198e97 8518 fi
a848cd7e 8519 else
6e198e97 8520 result=$wxUSE_DOC_VIEW_ARCHITECTURE
a848cd7e
SC
8521 fi
8522
d589327a
VZ
8523 { echo "$as_me:$LINENO: result: $result" >&5
8524echo "${ECHO_T}$result" >&6; }
6e198e97 8525
a848cd7e 8526
077c7880 8527 enablestring=
6e198e97 8528 defaultval=$wxUSE_ALL_FEATURES
238663c1 8529 if test -z "$defaultval"; then
6e198e97
VZ
8530 if test x"$enablestring" = xdisable; then
8531 defaultval=yes
8532 else
8533 defaultval=no
8534 fi
8535 fi
8536
d589327a
VZ
8537 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8538echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
47964710 8539 # Check whether --enable-help was given.
a848cd7e 8540if test "${enable_help+set}" = set; then
47964710 8541 enableval=$enable_help;
a848cd7e 8542 if test "$enableval" = yes; then
d970f7d5 8543 wx_cv_use_help='wxUSE_HELP=yes'
a848cd7e 8544 else
d970f7d5 8545 wx_cv_use_help='wxUSE_HELP=no'
a848cd7e
SC
8546 fi
8547
8548else
8549
d970f7d5 8550 wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
a848cd7e 8551
47964710
VS
8552fi
8553
a848cd7e 8554
d970f7d5 8555 eval "$wx_cv_use_help"
a848cd7e 8556
6e198e97 8557 if test x"$enablestring" = xdisable; then
7ac0e38e 8558 if test $wxUSE_HELP = no; then
6e198e97 8559 result=yes
7ac0e38e
VZ
8560 else
8561 result=no
6e198e97 8562 fi
a848cd7e 8563 else
6e198e97 8564 result=$wxUSE_HELP
a848cd7e
SC
8565 fi
8566
d589327a
VZ
8567 { echo "$as_me:$LINENO: result: $result" >&5
8568echo "${ECHO_T}$result" >&6; }
6e198e97 8569
a848cd7e 8570
077c7880 8571 enablestring=
6e198e97 8572 defaultval=$wxUSE_ALL_FEATURES
238663c1 8573 if test -z "$defaultval"; then
6e198e97
VZ
8574 if test x"$enablestring" = xdisable; then
8575 defaultval=yes
8576 else
8577 defaultval=no
8578 fi
8579 fi
8580
d589327a
VZ
8581 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8582echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
47964710 8583 # Check whether --enable-mshtmlhelp was given.
a848cd7e 8584if test "${enable_mshtmlhelp+set}" = set; then
47964710 8585 enableval=$enable_mshtmlhelp;
a848cd7e 8586 if test "$enableval" = yes; then
d970f7d5 8587 wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
a848cd7e 8588 else
d970f7d5 8589 wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
a848cd7e
SC
8590 fi
8591
8592else
8593
d970f7d5 8594 wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
a848cd7e 8595
47964710
VS
8596fi
8597
a848cd7e 8598
d970f7d5 8599 eval "$wx_cv_use_mshtmlhelp"
a848cd7e 8600
6e198e97 8601 if test x"$enablestring" = xdisable; then
7ac0e38e 8602 if test $wxUSE_MS_HTML_HELP = no; then
6e198e97 8603 result=yes
7ac0e38e
VZ
8604 else
8605 result=no
6e198e97 8606 fi
a848cd7e 8607 else
6e198e97 8608 result=$wxUSE_MS_HTML_HELP
a848cd7e
SC
8609 fi
8610
d589327a
VZ
8611 { echo "$as_me:$LINENO: result: $result" >&5
8612echo "${ECHO_T}$result" >&6; }
6e198e97 8613
a848cd7e 8614
077c7880 8615 enablestring=
6e198e97 8616 defaultval=$wxUSE_ALL_FEATURES
238663c1 8617 if test -z "$defaultval"; then
6e198e97
VZ
8618 if test x"$enablestring" = xdisable; then
8619 defaultval=yes
8620 else
8621 defaultval=no
8622 fi
8623 fi
8624
d589327a
VZ
8625 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8626echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
47964710 8627 # Check whether --enable-html was given.
a848cd7e 8628if test "${enable_html+set}" = set; then
47964710 8629 enableval=$enable_html;
a848cd7e 8630 if test "$enableval" = yes; then
d970f7d5 8631 wx_cv_use_html='wxUSE_HTML=yes'
a848cd7e 8632 else
d970f7d5 8633 wx_cv_use_html='wxUSE_HTML=no'
a848cd7e
SC
8634 fi
8635
8636else
8637
d970f7d5 8638 wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
a848cd7e 8639
47964710
VS
8640fi
8641
a848cd7e 8642
d970f7d5 8643 eval "$wx_cv_use_html"
a848cd7e 8644
6e198e97 8645 if test x"$enablestring" = xdisable; then
7ac0e38e 8646 if test $wxUSE_HTML = no; then
6e198e97 8647 result=yes
7ac0e38e
VZ
8648 else
8649 result=no
6e198e97 8650 fi
a848cd7e 8651 else
6e198e97 8652 result=$wxUSE_HTML
a848cd7e
SC
8653 fi
8654
d589327a
VZ
8655 { echo "$as_me:$LINENO: result: $result" >&5
8656echo "${ECHO_T}$result" >&6; }
6e198e97 8657
a848cd7e 8658
077c7880 8659 enablestring=
6e198e97 8660 defaultval=$wxUSE_ALL_FEATURES
238663c1 8661 if test -z "$defaultval"; then
6e198e97
VZ
8662 if test x"$enablestring" = xdisable; then
8663 defaultval=yes
8664 else
8665 defaultval=no
8666 fi
8667 fi
8668
d589327a
VZ
8669 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8670echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
47964710 8671 # Check whether --enable-htmlhelp was given.
a848cd7e 8672if test "${enable_htmlhelp+set}" = set; then
47964710 8673 enableval=$enable_htmlhelp;
a848cd7e 8674 if test "$enableval" = yes; then
d970f7d5 8675 wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
a848cd7e 8676 else
d970f7d5 8677 wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
a848cd7e
SC
8678 fi
8679
8680else
8681
d970f7d5 8682 wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
a848cd7e 8683
47964710
VS
8684fi
8685
a848cd7e 8686
d970f7d5 8687 eval "$wx_cv_use_htmlhelp"
a848cd7e 8688
6e198e97 8689 if test x"$enablestring" = xdisable; then
7ac0e38e 8690 if test $wxUSE_WXHTML_HELP = no; then
6e198e97 8691 result=yes
7ac0e38e
VZ
8692 else
8693 result=no
6e198e97 8694 fi
a848cd7e 8695 else
6e198e97 8696 result=$wxUSE_WXHTML_HELP
a848cd7e
SC
8697 fi
8698
d589327a
VZ
8699 { echo "$as_me:$LINENO: result: $result" >&5
8700echo "${ECHO_T}$result" >&6; }
6e198e97 8701
a848cd7e 8702
077c7880 8703 enablestring=
6e198e97 8704 defaultval=$wxUSE_ALL_FEATURES
238663c1 8705 if test -z "$defaultval"; then
6e198e97
VZ
8706 if test x"$enablestring" = xdisable; then
8707 defaultval=yes
8708 else
8709 defaultval=no
8710 fi
8711 fi
8712
d589327a
VZ
8713 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8714echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
47964710 8715 # Check whether --enable-xrc was given.
9a8f0513 8716if test "${enable_xrc+set}" = set; then
47964710 8717 enableval=$enable_xrc;
9a8f0513 8718 if test "$enableval" = yes; then
d970f7d5 8719 wx_cv_use_xrc='wxUSE_XRC=yes'
9a8f0513 8720 else
d970f7d5 8721 wx_cv_use_xrc='wxUSE_XRC=no'
9a8f0513
VS
8722 fi
8723
8724else
8725
d970f7d5 8726 wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
9a8f0513 8727
47964710
VS
8728fi
8729
9a8f0513 8730
d970f7d5 8731 eval "$wx_cv_use_xrc"
9a8f0513 8732
6e198e97 8733 if test x"$enablestring" = xdisable; then
7ac0e38e 8734 if test $wxUSE_XRC = no; then
6e198e97 8735 result=yes
7ac0e38e
VZ
8736 else
8737 result=no
6e198e97 8738 fi
9a8f0513 8739 else
6e198e97 8740 result=$wxUSE_XRC
9a8f0513
VS
8741 fi
8742
d589327a
VZ
8743 { echo "$as_me:$LINENO: result: $result" >&5
8744echo "${ECHO_T}$result" >&6; }
6e198e97 8745
9a8f0513 8746
077c7880 8747 enablestring=
6e198e97 8748 defaultval=$wxUSE_ALL_FEATURES
238663c1 8749 if test -z "$defaultval"; then
6e198e97
VZ
8750 if test x"$enablestring" = xdisable; then
8751 defaultval=yes
8752 else
8753 defaultval=no
8754 fi
8755 fi
8756
d589327a
VZ
8757 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8758echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
47964710 8759 # Check whether --enable-aui was given.
3f60522a 8760if test "${enable_aui+set}" = set; then
47964710 8761 enableval=$enable_aui;
3f60522a 8762 if test "$enableval" = yes; then
d970f7d5 8763 wx_cv_use_aui='wxUSE_AUI=yes'
3f60522a 8764 else
d970f7d5 8765 wx_cv_use_aui='wxUSE_AUI=no'
3f60522a
JS
8766 fi
8767
8768else
8769
d970f7d5 8770 wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
3f60522a 8771
47964710
VS
8772fi
8773
3f60522a 8774
d970f7d5 8775 eval "$wx_cv_use_aui"
3f60522a 8776
6e198e97 8777 if test x"$enablestring" = xdisable; then
7ac0e38e 8778 if test $wxUSE_AUI = no; then
6e198e97 8779 result=yes
7ac0e38e
VZ
8780 else
8781 result=no
6e198e97 8782 fi
3f60522a 8783 else
6e198e97 8784 result=$wxUSE_AUI
3f60522a
JS
8785 fi
8786
d589327a
VZ
8787 { echo "$as_me:$LINENO: result: $result" >&5
8788echo "${ECHO_T}$result" >&6; }
6e198e97 8789
3f60522a 8790
1c4293cb
VZ
8791 enablestring=
8792 defaultval=$wxUSE_ALL_FEATURES
8793 if test -z "$defaultval"; then
8794 if test x"$enablestring" = xdisable; then
8795 defaultval=yes
8796 else
8797 defaultval=no
8798 fi
8799 fi
8800
d589327a
VZ
8801 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8802echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
1c4293cb
VZ
8803 # Check whether --enable-propgrid was given.
8804if test "${enable_propgrid+set}" = set; then
8805 enableval=$enable_propgrid;
8806 if test "$enableval" = yes; then
8807 wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8808 else
8809 wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8810 fi
8811
8812else
8813
8814 wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8815
8816fi
8817
8818
8819 eval "$wx_cv_use_propgrid"
8820
8821 if test x"$enablestring" = xdisable; then
7ac0e38e 8822 if test $wxUSE_PROPGRID = no; then
1c4293cb 8823 result=yes
7ac0e38e
VZ
8824 else
8825 result=no
1c4293cb
VZ
8826 fi
8827 else
8828 result=$wxUSE_PROPGRID
8829 fi
8830
d589327a
VZ
8831 { echo "$as_me:$LINENO: result: $result" >&5
8832echo "${ECHO_T}$result" >&6; }
1c4293cb
VZ
8833
8834
d33ccbe1
VZ
8835 enablestring=
8836 defaultval=$wxUSE_ALL_FEATURES
8837 if test -z "$defaultval"; then
8838 if test x"$enablestring" = xdisable; then
8839 defaultval=yes
8840 else
8841 defaultval=no
8842 fi
8843 fi
8844
8845 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
8846echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
8847 # Check whether --enable-ribbon was given.
8848if test "${enable_ribbon+set}" = set; then
8849 enableval=$enable_ribbon;
8850 if test "$enableval" = yes; then
8851 wx_cv_use_ribbon='wxUSE_RIBBON=yes'
8852 else
8853 wx_cv_use_ribbon='wxUSE_RIBBON=no'
8854 fi
8855
8856else
8857
8858 wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
8859
8860fi
8861
8862
8863 eval "$wx_cv_use_ribbon"
8864
8865 if test x"$enablestring" = xdisable; then
8866 if test $wxUSE_RIBBON = no; then
8867 result=yes
8868 else
8869 result=no
8870 fi
8871 else
8872 result=$wxUSE_RIBBON
8873 fi
8874
8875 { echo "$as_me:$LINENO: result: $result" >&5
8876echo "${ECHO_T}$result" >&6; }
8877
8878
54429bb3 8879 enablestring=
6e198e97 8880 defaultval=$wxUSE_ALL_FEATURES
238663c1 8881 if test -z "$defaultval"; then
6e198e97
VZ
8882 if test x"$enablestring" = xdisable; then
8883 defaultval=yes
8884 else
8885 defaultval=no
8886 fi
8887 fi
8888
d589327a
VZ
8889 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8890echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
47964710 8891 # Check whether --enable-stc was given.
54429bb3 8892if test "${enable_stc+set}" = set; then
47964710 8893 enableval=$enable_stc;
54429bb3 8894 if test "$enableval" = yes; then
d970f7d5 8895 wx_cv_use_stc='wxUSE_STC=yes'
54429bb3 8896 else
d970f7d5 8897 wx_cv_use_stc='wxUSE_STC=no'
54429bb3
RD
8898 fi
8899
8900else
8901
d970f7d5 8902 wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
54429bb3 8903
47964710
VS
8904fi
8905
54429bb3 8906
d970f7d5 8907 eval "$wx_cv_use_stc"
54429bb3 8908
6e198e97 8909 if test x"$enablestring" = xdisable; then
7ac0e38e 8910 if test $wxUSE_STC = no; then
6e198e97 8911 result=yes
7ac0e38e
VZ
8912 else
8913 result=no
6e198e97 8914 fi
54429bb3 8915 else
6e198e97 8916 result=$wxUSE_STC
54429bb3
RD
8917 fi
8918
d589327a
VZ
8919 { echo "$as_me:$LINENO: result: $result" >&5
8920echo "${ECHO_T}$result" >&6; }
6e198e97 8921
54429bb3 8922
077c7880 8923 enablestring=
6e198e97 8924 defaultval=$wxUSE_ALL_FEATURES
238663c1 8925 if test -z "$defaultval"; then
6e198e97
VZ
8926 if test x"$enablestring" = xdisable; then
8927 defaultval=yes
8928 else
8929 defaultval=no
8930 fi
8931 fi
8932
d589327a
VZ
8933 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8934echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
47964710 8935 # Check whether --enable-constraints was given.
a848cd7e 8936if test "${enable_constraints+set}" = set; then
47964710 8937 enableval=$enable_constraints;
a848cd7e 8938 if test "$enableval" = yes; then
d970f7d5 8939 wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
a848cd7e 8940 else
d970f7d5 8941 wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
a848cd7e
SC
8942 fi
8943
8944else
8945
d970f7d5 8946 wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
a848cd7e 8947
47964710
VS
8948fi
8949
a848cd7e 8950
d970f7d5 8951 eval "$wx_cv_use_constraints"
a848cd7e 8952
6e198e97 8953 if test x"$enablestring" = xdisable; then
7ac0e38e 8954 if test $wxUSE_CONSTRAINTS = no; then
6e198e97 8955 result=yes
7ac0e38e
VZ
8956 else
8957 result=no
6e198e97 8958 fi
a848cd7e 8959 else
6e198e97 8960 result=$wxUSE_CONSTRAINTS
a848cd7e
SC
8961 fi
8962
d589327a
VZ
8963 { echo "$as_me:$LINENO: result: $result" >&5
8964echo "${ECHO_T}$result" >&6; }
6e198e97 8965
a848cd7e 8966
077c7880 8967 enablestring=
6e198e97 8968 defaultval=$wxUSE_ALL_FEATURES
238663c1 8969 if test -z "$defaultval"; then
6e198e97
VZ
8970 if test x"$enablestring" = xdisable; then
8971 defaultval=yes
8972 else
8973 defaultval=no
8974 fi
8975 fi
8976
d589327a
VZ
8977 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8978echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
4732e2dc
VZ
8979 # Check whether --enable-loggui was given.
8980if test "${enable_loggui+set}" = set; then
8981 enableval=$enable_loggui;
a848cd7e 8982 if test "$enableval" = yes; then
4732e2dc 8983 wx_cv_use_loggui='wxUSE_LOGGUI=yes'
a848cd7e 8984 else
4732e2dc 8985 wx_cv_use_loggui='wxUSE_LOGGUI=no'
a848cd7e
SC
8986 fi
8987
8988else
8989
4732e2dc 8990 wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
a848cd7e 8991
47964710
VS
8992fi
8993
a848cd7e 8994
4732e2dc 8995 eval "$wx_cv_use_loggui"
a848cd7e 8996
6e198e97 8997 if test x"$enablestring" = xdisable; then
7ac0e38e 8998 if test $wxUSE_LOGGUI = no; then
6e198e97 8999 result=yes
7ac0e38e
VZ
9000 else
9001 result=no
6e198e97 9002 fi
a848cd7e 9003 else
4732e2dc 9004 result=$wxUSE_LOGGUI
a848cd7e
SC
9005 fi
9006
d589327a
VZ
9007 { echo "$as_me:$LINENO: result: $result" >&5
9008echo "${ECHO_T}$result" >&6; }
6e198e97 9009
a848cd7e 9010
077c7880 9011 enablestring=
6e198e97 9012 defaultval=$wxUSE_ALL_FEATURES
238663c1 9013 if test -z "$defaultval"; then
6e198e97
VZ
9014 if test x"$enablestring" = xdisable; then
9015 defaultval=yes
9016 else
9017 defaultval=no
9018 fi
9019 fi
9020
d589327a
VZ
9021 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9022echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
4732e2dc
VZ
9023 # Check whether --enable-logwin was given.
9024if test "${enable_logwin+set}" = set; then
9025 enableval=$enable_logwin;
a848cd7e 9026 if test "$enableval" = yes; then
4732e2dc 9027 wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
a848cd7e 9028 else
4732e2dc 9029 wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
a848cd7e
SC
9030 fi
9031
9032else
9033
4732e2dc 9034 wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
a848cd7e 9035
47964710
VS
9036fi
9037
a848cd7e 9038
4732e2dc 9039 eval "$wx_cv_use_logwin"
a848cd7e 9040
6e198e97 9041 if test x"$enablestring" = xdisable; then
7ac0e38e 9042 if test $wxUSE_LOGWINDOW = no; then
6e198e97 9043 result=yes
7ac0e38e
VZ
9044 else
9045 result=no
6e198e97 9046 fi
8a7b1113 9047 else
4732e2dc 9048 result=$wxUSE_LOGWINDOW
8a7b1113
VZ
9049 fi
9050
d589327a
VZ
9051 { echo "$as_me:$LINENO: result: $result" >&5
9052echo "${ECHO_T}$result" >&6; }
6e198e97 9053
8a7b1113 9054
077c7880 9055 enablestring=
6e198e97 9056 defaultval=$wxUSE_ALL_FEATURES
238663c1 9057 if test -z "$defaultval"; then
6e198e97
VZ
9058 if test x"$enablestring" = xdisable; then
9059 defaultval=yes
9060 else
9061 defaultval=no
9062 fi
9063 fi
9064
d589327a
VZ
9065 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9066echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
4732e2dc
VZ
9067 # Check whether --enable-logdialog was given.
9068if test "${enable_logdialog+set}" = set; then
9069 enableval=$enable_logdialog;
8a7b1113 9070 if test "$enableval" = yes; then
4732e2dc 9071 wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8a7b1113 9072 else
4732e2dc 9073 wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8a7b1113
VZ
9074 fi
9075
9076else
9077
4732e2dc 9078 wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8a7b1113 9079
47964710
VS
9080fi
9081
8a7b1113 9082
4732e2dc 9083 eval "$wx_cv_use_logdialog"
8a7b1113 9084
6e198e97 9085 if test x"$enablestring" = xdisable; then
7ac0e38e 9086 if test $wxUSE_LOGDIALOG = no; then
6e198e97 9087 result=yes
7ac0e38e
VZ
9088 else
9089 result=no
6e198e97 9090 fi
a848cd7e 9091 else
4732e2dc 9092 result=$wxUSE_LOGDIALOG
a848cd7e
SC
9093 fi
9094
d589327a
VZ
9095 { echo "$as_me:$LINENO: result: $result" >&5
9096echo "${ECHO_T}$result" >&6; }
6e198e97 9097
a848cd7e 9098
077c7880 9099 enablestring=
6e198e97 9100 defaultval=$wxUSE_ALL_FEATURES
238663c1 9101 if test -z "$defaultval"; then
6e198e97
VZ
9102 if test x"$enablestring" = xdisable; then
9103 defaultval=yes
9104 else
9105 defaultval=no
9106 fi
9107 fi
9108
d589327a
VZ
9109 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9110echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
4732e2dc
VZ
9111 # Check whether --enable-mdi was given.
9112if test "${enable_mdi+set}" = set; then
9113 enableval=$enable_mdi;
a848cd7e 9114 if test "$enableval" = yes; then
4732e2dc 9115 wx_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 9116 else
4732e2dc 9117 wx_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
9118 fi
9119
9120else
9121
4732e2dc 9122 wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
a848cd7e 9123
47964710
VS
9124fi
9125
a848cd7e 9126
4732e2dc 9127 eval "$wx_cv_use_mdi"
a848cd7e 9128
6e198e97 9129 if test x"$enablestring" = xdisable; then
7ac0e38e 9130 if test $wxUSE_MDI = no; then
6e198e97 9131 result=yes
7ac0e38e
VZ
9132 else
9133 result=no
6e198e97 9134 fi
a848cd7e 9135 else
4732e2dc 9136 result=$wxUSE_MDI
a848cd7e
SC
9137 fi
9138
d589327a
VZ
9139 { echo "$as_me:$LINENO: result: $result" >&5
9140echo "${ECHO_T}$result" >&6; }
6e198e97 9141
a848cd7e 9142
077c7880 9143 enablestring=
6e198e97 9144 defaultval=$wxUSE_ALL_FEATURES
238663c1 9145 if test -z "$defaultval"; then
6e198e97
VZ
9146 if test x"$enablestring" = xdisable; then
9147 defaultval=yes
9148 else
9149 defaultval=no
9150 fi
9151 fi
9152
d589327a
VZ
9153 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9154echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
4732e2dc
VZ
9155 # Check whether --enable-mdidoc was given.
9156if test "${enable_mdidoc+set}" = set; then
9157 enableval=$enable_mdidoc;
a848cd7e 9158 if test "$enableval" = yes; then
4732e2dc 9159 wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
a848cd7e 9160 else
4732e2dc 9161 wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
a848cd7e
SC
9162 fi
9163
9164else
9165
4732e2dc 9166 wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
a848cd7e 9167
47964710
VS
9168fi
9169
a848cd7e 9170
4732e2dc 9171 eval "$wx_cv_use_mdidoc"
a848cd7e 9172
6e198e97 9173 if test x"$enablestring" = xdisable; then
7ac0e38e 9174 if test $wxUSE_MDI_ARCHITECTURE = no; then
6e198e97 9175 result=yes
7ac0e38e
VZ
9176 else
9177 result=no
6e198e97 9178 fi
a848cd7e 9179 else
4732e2dc 9180 result=$wxUSE_MDI_ARCHITECTURE
a848cd7e
SC
9181 fi
9182
d589327a
VZ
9183 { echo "$as_me:$LINENO: result: $result" >&5
9184echo "${ECHO_T}$result" >&6; }
6e198e97 9185
a848cd7e 9186
077c7880 9187 enablestring=
6e198e97 9188 defaultval=$wxUSE_ALL_FEATURES
238663c1 9189 if test -z "$defaultval"; then
6e198e97
VZ
9190 if test x"$enablestring" = xdisable; then
9191 defaultval=yes
9192 else
9193 defaultval=no
9194 fi
9195 fi
9196
d589327a
VZ
9197 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9198echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
4732e2dc
VZ
9199 # Check whether --enable-mediactrl was given.
9200if test "${enable_mediactrl+set}" = set; then
9201 enableval=$enable_mediactrl;
a848cd7e 9202 if test "$enableval" = yes; then
4732e2dc 9203 wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
a848cd7e 9204 else
4732e2dc 9205 wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
a848cd7e
SC
9206 fi
9207
9208else
9209
4732e2dc 9210 wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
a848cd7e 9211
47964710
VS
9212fi
9213
a848cd7e 9214
4732e2dc 9215 eval "$wx_cv_use_mediactrl"
a848cd7e 9216
6e198e97 9217 if test x"$enablestring" = xdisable; then
7ac0e38e 9218 if test $wxUSE_MEDIACTRL = no; then
6e198e97 9219 result=yes
7ac0e38e
VZ
9220 else
9221 result=no
6e198e97 9222 fi
a848cd7e 9223 else
4732e2dc
VZ
9224 result=$wxUSE_MEDIACTRL
9225 fi
9226
d589327a
VZ
9227 { echo "$as_me:$LINENO: result: $result" >&5
9228echo "${ECHO_T}$result" >&6; }
4732e2dc
VZ
9229
9230
9231 enablestring=
9232 defaultval=$wxUSE_ALL_FEATURES
9233 if test -z "$defaultval"; then
9234 if test x"$enablestring" = xdisable; then
9235 defaultval=yes
9236 else
9237 defaultval=no
9238 fi
9239 fi
9240
d589327a
VZ
9241 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9242echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
4732e2dc
VZ
9243 # Check whether --enable-gstreamer8 was given.
9244if test "${enable_gstreamer8+set}" = set; then
9245 enableval=$enable_gstreamer8;
9246 if test "$enableval" = yes; then
9247 wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9248 else
9249 wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9250 fi
9251
9252else
9253
9254 wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9255
9256fi
9257
9258
9259 eval "$wx_cv_use_gstreamer8"
9260
9261 if test x"$enablestring" = xdisable; then
7ac0e38e 9262 if test $wxUSE_GSTREAMER8 = no; then
4732e2dc 9263 result=yes
7ac0e38e
VZ
9264 else
9265 result=no
4732e2dc
VZ
9266 fi
9267 else
9268 result=$wxUSE_GSTREAMER8
a848cd7e
SC
9269 fi
9270
d589327a
VZ
9271 { echo "$as_me:$LINENO: result: $result" >&5
9272echo "${ECHO_T}$result" >&6; }
6e198e97 9273
a848cd7e 9274
077c7880 9275 enablestring=
6e198e97 9276 defaultval=$wxUSE_ALL_FEATURES
238663c1 9277 if test -z "$defaultval"; then
6e198e97
VZ
9278 if test x"$enablestring" = xdisable; then
9279 defaultval=yes
9280 else
9281 defaultval=no
9282 fi
9283 fi
9284
d589327a
VZ
9285 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9286echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
47964710 9287 # Check whether --enable-webkit was given.
646b6ec1 9288if test "${enable_webkit+set}" = set; then
47964710 9289 enableval=$enable_webkit;
646b6ec1 9290 if test "$enableval" = yes; then
d970f7d5 9291 wx_cv_use_webkit='wxUSE_WEBKIT=yes'
646b6ec1 9292 else
d970f7d5 9293 wx_cv_use_webkit='wxUSE_WEBKIT=no'
646b6ec1
VS
9294 fi
9295
9296else
9297
d970f7d5 9298 wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
646b6ec1 9299
47964710
VS
9300fi
9301
646b6ec1 9302
d970f7d5 9303 eval "$wx_cv_use_webkit"
646b6ec1 9304
6e198e97 9305 if test x"$enablestring" = xdisable; then
7ac0e38e 9306 if test $wxUSE_WEBKIT = no; then
6e198e97 9307 result=yes
7ac0e38e
VZ
9308 else
9309 result=no
6e198e97 9310 fi
646b6ec1 9311 else
6e198e97 9312 result=$wxUSE_WEBKIT
646b6ec1
VS
9313 fi
9314
d589327a
VZ
9315 { echo "$as_me:$LINENO: result: $result" >&5
9316echo "${ECHO_T}$result" >&6; }
6e198e97 9317
646b6ec1 9318
077c7880 9319 enablestring=
6e198e97 9320 defaultval=$wxUSE_ALL_FEATURES
238663c1 9321 if test -z "$defaultval"; then
6e198e97
VZ
9322 if test x"$enablestring" = xdisable; then
9323 defaultval=yes
9324 else
9325 defaultval=no
9326 fi
9327 fi
9328
d589327a
VZ
9329 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9330echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
47964710 9331 # Check whether --enable-richtext was given.
6da4ac91 9332if test "${enable_richtext+set}" = set; then
47964710 9333 enableval=$enable_richtext;
91dea314 9334 if test "$enableval" = yes; then
d970f7d5 9335 wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
91dea314 9336 else
d970f7d5 9337 wx_cv_use_richtext='wxUSE_RICHTEXT=no'
91dea314
MW
9338 fi
9339
9340else
9341
d970f7d5 9342 wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
91dea314 9343
47964710
VS
9344fi
9345
91dea314 9346
d970f7d5 9347 eval "$wx_cv_use_richtext"
91dea314 9348
6e198e97 9349 if test x"$enablestring" = xdisable; then
7ac0e38e 9350 if test $wxUSE_RICHTEXT = no; then
6e198e97 9351 result=yes
7ac0e38e
VZ
9352 else
9353 result=no
6e198e97 9354 fi
91dea314 9355 else
6e198e97 9356 result=$wxUSE_RICHTEXT
91dea314
MW
9357 fi
9358
d589327a
VZ
9359 { echo "$as_me:$LINENO: result: $result" >&5
9360echo "${ECHO_T}$result" >&6; }
6e198e97 9361
91dea314 9362
077c7880 9363 enablestring=
6e198e97 9364 defaultval=$wxUSE_ALL_FEATURES
238663c1 9365 if test -z "$defaultval"; then
6e198e97
VZ
9366 if test x"$enablestring" = xdisable; then
9367 defaultval=yes
9368 else
9369 defaultval=no
9370 fi
9371 fi
9372
d589327a
VZ
9373 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9374echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
47964710 9375 # Check whether --enable-postscript was given.
a848cd7e 9376if test "${enable_postscript+set}" = set; then
47964710 9377 enableval=$enable_postscript;
a848cd7e 9378 if test "$enableval" = yes; then
d970f7d5 9379 wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
a848cd7e 9380 else
d970f7d5 9381 wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
a848cd7e
SC
9382 fi
9383
9384else
9385
d970f7d5 9386 wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
a848cd7e 9387
47964710
VS
9388fi
9389
a848cd7e 9390
d970f7d5 9391 eval "$wx_cv_use_postscript"
a848cd7e 9392
6e198e97 9393 if test x"$enablestring" = xdisable; then
7ac0e38e 9394 if test $wxUSE_POSTSCRIPT = no; then
6e198e97 9395 result=yes
7ac0e38e
VZ
9396 else
9397 result=no
6e198e97 9398 fi
a848cd7e 9399 else
6e198e97 9400 result=$wxUSE_POSTSCRIPT
a848cd7e
SC
9401 fi
9402
d589327a
VZ
9403 { echo "$as_me:$LINENO: result: $result" >&5
9404echo "${ECHO_T}$result" >&6; }
a848cd7e
SC
9405
9406
4732e2dc
VZ
9407 enablestring=
9408 defaultval=$wxUSE_ALL_FEATURES
9409 if test -z "$defaultval"; then
9410 if test x"$enablestring" = xdisable; then
9411 defaultval=yes
9412 else
9413 defaultval=no
9414 fi
9415 fi
9416
d589327a
VZ
9417 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9418echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
4732e2dc
VZ
9419 # Check whether --enable-printarch was given.
9420if test "${enable_printarch+set}" = set; then
9421 enableval=$enable_printarch;
9422 if test "$enableval" = yes; then
9423 wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9424 else
9425 wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9426 fi
9427
9428else
9429
9430 wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9431
9432fi
9433
9434
9435 eval "$wx_cv_use_printarch"
9436
9437 if test x"$enablestring" = xdisable; then
7ac0e38e 9438 if test $wxUSE_PRINTING_ARCHITECTURE = no; then
4732e2dc 9439 result=yes
7ac0e38e
VZ
9440 else
9441 result=no
4732e2dc
VZ
9442 fi
9443 else
9444 result=$wxUSE_PRINTING_ARCHITECTURE
9445 fi
9446
d589327a
VZ
9447 { echo "$as_me:$LINENO: result: $result" >&5
9448echo "${ECHO_T}$result" >&6; }
4732e2dc
VZ
9449
9450
b0fc907f
VZ
9451 enablestring=
9452 defaultval=$wxUSE_ALL_FEATURES
238663c1 9453 if test -z "$defaultval"; then
b0fc907f
VZ
9454 if test x"$enablestring" = xdisable; then
9455 defaultval=yes
9456 else
9457 defaultval=no
9458 fi
9459 fi
9460
d589327a
VZ
9461 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9462echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
47964710 9463 # Check whether --enable-svg was given.
b0fc907f 9464if test "${enable_svg+set}" = set; then
47964710 9465 enableval=$enable_svg;
b0fc907f 9466 if test "$enableval" = yes; then
d970f7d5 9467 wx_cv_use_svg='wxUSE_SVG=yes'
b0fc907f 9468 else
d970f7d5 9469 wx_cv_use_svg='wxUSE_SVG=no'
b0fc907f
VZ
9470 fi
9471
9472else
9473
d970f7d5 9474 wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
b0fc907f 9475
47964710
VS
9476fi
9477
b0fc907f 9478
d970f7d5 9479 eval "$wx_cv_use_svg"
b0fc907f
VZ
9480
9481 if test x"$enablestring" = xdisable; then
7ac0e38e 9482 if test $wxUSE_SVG = no; then
b0fc907f 9483 result=yes
7ac0e38e
VZ
9484 else
9485 result=no
b0fc907f
VZ
9486 fi
9487 else
9488 result=$wxUSE_SVG
9489 fi
9490
d589327a
VZ
9491 { echo "$as_me:$LINENO: result: $result" >&5
9492echo "${ECHO_T}$result" >&6; }
b0fc907f
VZ
9493
9494
a12bd55b
VZ
9495if test "$wxUSE_MAC" != 1; then
9496
9497 enablestring=
9498 defaultval=$wxUSE_ALL_FEATURES
9499 if test -z "$defaultval"; then
9500 if test x"$enablestring" = xdisable; then
9501 defaultval=yes
9502 else
9503 defaultval=no
9504 fi
9505 fi
9506
9507 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9508echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9509 # Check whether --enable-graphics_ctx was given.
9510if test "${enable_graphics_ctx+set}" = set; then
9511 enableval=$enable_graphics_ctx;
9512 if test "$enableval" = yes; then
9513 wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9514 else
9515 wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9516 fi
9517
9518else
9519
9520 wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9521
9522fi
9523
9524
9525 eval "$wx_cv_use_graphics_ctx"
9526
9527 if test x"$enablestring" = xdisable; then
9528 if test $wxUSE_GRAPHICS_CONTEXT = no; then
9529 result=yes
9530 else
9531 result=no
9532 fi
9533 else
9534 result=$wxUSE_GRAPHICS_CONTEXT
9535 fi
9536
9537 { echo "$as_me:$LINENO: result: $result" >&5
9538echo "${ECHO_T}$result" >&6; }
9539
9540fi
9541
a848cd7e
SC
9542
9543
077c7880 9544 enablestring=
6e198e97 9545 defaultval=$wxUSE_ALL_FEATURES
238663c1 9546 if test -z "$defaultval"; then
6e198e97
VZ
9547 if test x"$enablestring" = xdisable; then
9548 defaultval=yes
9549 else
9550 defaultval=no
9551 fi
9552 fi
9553
d589327a
VZ
9554 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9555echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
47964710 9556 # Check whether --enable-clipboard was given.
a848cd7e 9557if test "${enable_clipboard+set}" = set; then
47964710 9558 enableval=$enable_clipboard;
a848cd7e 9559 if test "$enableval" = yes; then
d970f7d5 9560 wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
a848cd7e 9561 else
d970f7d5 9562 wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
a848cd7e
SC
9563 fi
9564
9565else
9566
d970f7d5 9567 wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
a848cd7e 9568
47964710
VS
9569fi
9570
a848cd7e 9571
d970f7d5 9572 eval "$wx_cv_use_clipboard"
a848cd7e 9573
6e198e97 9574 if test x"$enablestring" = xdisable; then
7ac0e38e 9575 if test $wxUSE_CLIPBOARD = no; then
6e198e97 9576 result=yes
7ac0e38e
VZ
9577 else
9578 result=no
6e198e97 9579 fi
a848cd7e 9580 else
6e198e97 9581 result=$wxUSE_CLIPBOARD
a848cd7e
SC
9582 fi
9583
d589327a
VZ
9584 { echo "$as_me:$LINENO: result: $result" >&5
9585echo "${ECHO_T}$result" >&6; }
6e198e97 9586
a848cd7e 9587
077c7880 9588 enablestring=
6e198e97 9589 defaultval=$wxUSE_ALL_FEATURES
238663c1 9590 if test -z "$defaultval"; then
6e198e97
VZ
9591 if test x"$enablestring" = xdisable; then
9592 defaultval=yes
9593 else
9594 defaultval=no
9595 fi
9596 fi
9597
d589327a
VZ
9598 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9599echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
47964710 9600 # Check whether --enable-dnd was given.
a848cd7e 9601if test "${enable_dnd+set}" = set; then
47964710 9602 enableval=$enable_dnd;
a848cd7e 9603 if test "$enableval" = yes; then
d970f7d5 9604 wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
a848cd7e 9605 else
d970f7d5 9606 wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
a848cd7e
SC
9607 fi
9608
9609else
9610
d970f7d5 9611 wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
a848cd7e 9612
47964710
VS
9613fi
9614
a848cd7e 9615
d970f7d5 9616 eval "$wx_cv_use_dnd"
a848cd7e 9617
6e198e97 9618 if test x"$enablestring" = xdisable; then
7ac0e38e 9619 if test $wxUSE_DRAG_AND_DROP = no; then
6e198e97 9620 result=yes
7ac0e38e
VZ
9621 else
9622 result=no
6e198e97 9623 fi
a848cd7e 9624 else
6e198e97 9625 result=$wxUSE_DRAG_AND_DROP
a848cd7e
SC
9626 fi
9627
d589327a
VZ
9628 { echo "$as_me:$LINENO: result: $result" >&5
9629echo "${ECHO_T}$result" >&6; }
6e198e97 9630
a848cd7e 9631
077c7880 9632 enablestring=
6e198e97 9633 defaultval=$wxUSE_ALL_FEATURES
238663c1 9634 if test -z "$defaultval"; then
6e198e97
VZ
9635 if test x"$enablestring" = xdisable; then
9636 defaultval=yes
9637 else
9638 defaultval=no
9639 fi
9640 fi
9641
d589327a
VZ
9642 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9643echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
47964710 9644 # Check whether --enable-metafile was given.
a848cd7e 9645if test "${enable_metafile+set}" = set; then
47964710 9646 enableval=$enable_metafile;
a848cd7e 9647 if test "$enableval" = yes; then
d970f7d5 9648 wx_cv_use_metafile='wxUSE_METAFILE=yes'
a848cd7e 9649 else
d970f7d5 9650 wx_cv_use_metafile='wxUSE_METAFILE=no'
a848cd7e
SC
9651 fi
9652
9653else
9654
d970f7d5 9655 wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
a848cd7e 9656
47964710
VS
9657fi
9658
a848cd7e 9659
d970f7d5 9660 eval "$wx_cv_use_metafile"
a848cd7e 9661
6e198e97 9662 if test x"$enablestring" = xdisable; then
7ac0e38e 9663 if test $wxUSE_METAFILE = no; then
6e198e97 9664 result=yes
7ac0e38e
VZ
9665 else
9666 result=no
6e198e97 9667 fi
a848cd7e 9668 else
6e198e97 9669 result=$wxUSE_METAFILE
a848cd7e
SC
9670 fi
9671
d589327a
VZ
9672 { echo "$as_me:$LINENO: result: $result" >&5
9673echo "${ECHO_T}$result" >&6; }
a848cd7e
SC
9674
9675
9676
3c7410a5 9677DEFAULT_wxUSE_CONTROLS=none
a848cd7e 9678
3c7410a5
VZ
9679 enablestring=disable
9680 defaultval=
238663c1 9681 if test -z "$defaultval"; then
6e198e97
VZ
9682 if test x"$enablestring" = xdisable; then
9683 defaultval=yes
9684 else
9685 defaultval=no
9686 fi
9687 fi
9688
d589327a
VZ
9689 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9690echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
47964710 9691 # Check whether --enable-controls was given.
a848cd7e 9692if test "${enable_controls+set}" = set; then
47964710 9693 enableval=$enable_controls;
a848cd7e 9694 if test "$enableval" = yes; then
d970f7d5 9695 wx_cv_use_controls='wxUSE_CONTROLS=yes'
a848cd7e 9696 else
d970f7d5 9697 wx_cv_use_controls='wxUSE_CONTROLS=no'
a848cd7e
SC
9698 fi
9699
9700else
9701
d970f7d5 9702 wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
a848cd7e 9703
47964710
VS
9704fi
9705
a848cd7e 9706
d970f7d5 9707 eval "$wx_cv_use_controls"
a848cd7e 9708
6e198e97 9709 if test x"$enablestring" = xdisable; then
7ac0e38e 9710 if test $wxUSE_CONTROLS = no; then
6e198e97 9711 result=yes
7ac0e38e
VZ
9712 else
9713 result=no
6e198e97 9714 fi
a848cd7e 9715 else
6e198e97 9716 result=$wxUSE_CONTROLS
a848cd7e
SC
9717 fi
9718
d589327a
VZ
9719 { echo "$as_me:$LINENO: result: $result" >&5
9720echo "${ECHO_T}$result" >&6; }
6e198e97 9721
a848cd7e 9722
e6d984e2
VZ
9723if test "$wxUSE_CONTROLS" = "no"; then
9724 DEFAULT_wxUSE_ACCEL=no
9725 DEFAULT_wxUSE_ANIMATIONCTRL=no
9726 DEFAULT_wxUSE_BMPBUTTON=no
9727 DEFAULT_wxUSE_BUTTON=no
9728 DEFAULT_wxUSE_CALCTRL=no
9729 DEFAULT_wxUSE_CARET=no
9730 DEFAULT_wxUSE_CHECKBOX=no
9731 DEFAULT_wxUSE_CHECKLISTBOX=no
9732 DEFAULT_wxUSE_CHOICE=no
9733 DEFAULT_wxUSE_CHOICEBOOK=no
9734 DEFAULT_wxUSE_COLLPANE=no
9735 DEFAULT_wxUSE_COLOURPICKERCTRL=no
9736 DEFAULT_wxUSE_COMBOBOX=no
9737 DEFAULT_wxUSE_COMBOBOX=no
9738 DEFAULT_wxUSE_DATAVIEWCTRL=no
9739 DEFAULT_wxUSE_DATEPICKCTRL=no
9740 DEFAULT_wxUSE_DETECT_SM=no
9741 DEFAULT_wxUSE_DIRPICKERCTRL=no
9742 DEFAULT_wxUSE_DISPLAY=no
9743 DEFAULT_wxUSE_FILECTRL=no
9744 DEFAULT_wxUSE_FILEPICKERCTRL=no
9745 DEFAULT_wxUSE_FONTPICKERCTRL=no
9746 DEFAULT_wxUSE_GAUGE=no
9747 DEFAULT_wxUSE_GRID=no
e721a2a2 9748 DEFAULT_wxUSE_HEADERCTRL=no
e6d984e2
VZ
9749 DEFAULT_wxUSE_HYPERLINKCTRL=no
9750 DEFAULT_wxUSE_IMAGLIST=no
9751 DEFAULT_wxUSE_LISTBOOK=no
9752 DEFAULT_wxUSE_LISTBOX=no
9753 DEFAULT_wxUSE_LISTCTRL=no
9754 DEFAULT_wxUSE_NOTEBOOK=no
9755 DEFAULT_wxUSE_POPUPWIN=no
9756 DEFAULT_wxUSE_RADIOBOX=no
9757 DEFAULT_wxUSE_RADIOBTN=no
9758 DEFAULT_wxUSE_REARRANGECTRL=no
9759 DEFAULT_wxUSE_SASH=no
9760 DEFAULT_wxUSE_SCROLLBAR=no
9761 DEFAULT_wxUSE_SEARCHCTRL=no
9762 DEFAULT_wxUSE_SLIDER=no
9763 DEFAULT_wxUSE_SPINBTN=no
9764 DEFAULT_wxUSE_SPINCTRL=no
9765 DEFAULT_wxUSE_SPLITTER=no
9766 DEFAULT_wxUSE_STATBMP=no
9767 DEFAULT_wxUSE_STATBOX=no
9768 DEFAULT_wxUSE_STATLINE=no
9769 DEFAULT_wxUSE_STATUSBAR=no
9770 DEFAULT_wxUSE_TIPWINDOW=no
9771 DEFAULT_wxUSE_TOGGLEBTN=no
9772 DEFAULT_wxUSE_TOOLBAR=no
9773 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9774 DEFAULT_wxUSE_TOOLBOOK=no
9775 DEFAULT_wxUSE_TOOLTIPS=no
9776 DEFAULT_wxUSE_TREEBOOK=no
9777 DEFAULT_wxUSE_TREECTRL=no
a848cd7e
SC
9778fi
9779
a848cd7e 9780
077c7880 9781 enablestring=
6e198e97 9782 defaultval=$wxUSE_ALL_FEATURES
238663c1 9783 if test -z "$defaultval"; then
6e198e97
VZ
9784 if test x"$enablestring" = xdisable; then
9785 defaultval=yes
9786 else
9787 defaultval=no
9788 fi
9789 fi
9790
d589327a
VZ
9791 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9792echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
47964710 9793 # Check whether --enable-accel was given.
a848cd7e 9794if test "${enable_accel+set}" = set; then
47964710 9795 enableval=$enable_accel;
a848cd7e 9796 if test "$enableval" = yes; then
d970f7d5 9797 wx_cv_use_accel='wxUSE_ACCEL=yes'
a848cd7e 9798 else
d970f7d5 9799 wx_cv_use_accel='wxUSE_ACCEL=no'
a848cd7e
SC
9800 fi
9801
9802else
9803
d970f7d5 9804 wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
a848cd7e 9805
47964710
VS
9806fi
9807
a848cd7e 9808
d970f7d5 9809 eval "$wx_cv_use_accel"
a848cd7e 9810
6e198e97 9811 if test x"$enablestring" = xdisable; then
7ac0e38e 9812 if test $wxUSE_ACCEL = no; then
6e198e97 9813 result=yes
7ac0e38e
VZ
9814 else
9815 result=no
6e198e97 9816 fi
a848cd7e 9817 else
6e198e97 9818 result=$wxUSE_ACCEL
a848cd7e
SC
9819 fi
9820
d589327a
VZ
9821 { echo "$as_me:$LINENO: result: $result" >&5
9822echo "${ECHO_T}$result" >&6; }
6e198e97 9823
a848cd7e 9824
077c7880 9825 enablestring=
6e198e97 9826 defaultval=$wxUSE_ALL_FEATURES
238663c1 9827 if test -z "$defaultval"; then
6e198e97
VZ
9828 if test x"$enablestring" = xdisable; then
9829 defaultval=yes
9830 else
9831 defaultval=no
9832 fi
9833 fi
9834
d589327a
VZ
9835 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9836echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
47964710 9837 # Check whether --enable-animatectrl was given.
3ea50042 9838if test "${enable_animatectrl+set}" = set; then
47964710 9839 enableval=$enable_animatectrl;
3ea50042 9840 if test "$enableval" = yes; then
d970f7d5 9841 wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
3ea50042 9842 else
d970f7d5 9843 wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
3ea50042
VZ
9844 fi
9845
9846else
9847
d970f7d5 9848 wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
3ea50042 9849
47964710
VS
9850fi
9851
3ea50042 9852
d970f7d5 9853 eval "$wx_cv_use_animatectrl"
3ea50042 9854
6e198e97 9855 if test x"$enablestring" = xdisable; then
7ac0e38e 9856 if test $wxUSE_ANIMATIONCTRL = no; then
6e198e97 9857 result=yes
7ac0e38e
VZ
9858 else
9859 result=no
6e198e97 9860 fi
3ea50042 9861 else
6e198e97 9862 result=$wxUSE_ANIMATIONCTRL
3ea50042
VZ
9863 fi
9864
d589327a
VZ
9865 { echo "$as_me:$LINENO: result: $result" >&5
9866echo "${ECHO_T}$result" >&6; }
6e198e97 9867
3ea50042 9868
077c7880 9869 enablestring=
6e198e97 9870 defaultval=$wxUSE_ALL_FEATURES
238663c1 9871 if test -z "$defaultval"; then
6e198e97
VZ
9872 if test x"$enablestring" = xdisable; then
9873 defaultval=yes
9874 else
9875 defaultval=no
9876 fi
9877 fi
9878
d589327a
VZ
9879 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9880echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
e6d984e2
VZ
9881 # Check whether --enable-bmpbutton was given.
9882if test "${enable_bmpbutton+set}" = set; then
9883 enableval=$enable_bmpbutton;
a848cd7e 9884 if test "$enableval" = yes; then
e6d984e2 9885 wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
a848cd7e 9886 else
e6d984e2 9887 wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
a848cd7e
SC
9888 fi
9889
9890else
9891
e6d984e2 9892 wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
a848cd7e 9893
47964710
VS
9894fi
9895
a848cd7e 9896
e6d984e2 9897 eval "$wx_cv_use_bmpbutton"
a848cd7e 9898
6e198e97 9899 if test x"$enablestring" = xdisable; then
7ac0e38e 9900 if test $wxUSE_BMPBUTTON = no; then
6e198e97 9901 result=yes
7ac0e38e
VZ
9902 else
9903 result=no
6e198e97 9904 fi
a848cd7e 9905 else
e6d984e2 9906 result=$wxUSE_BMPBUTTON
a848cd7e
SC
9907 fi
9908
d589327a
VZ
9909 { echo "$as_me:$LINENO: result: $result" >&5
9910echo "${ECHO_T}$result" >&6; }
6e198e97 9911
a848cd7e 9912
077c7880 9913 enablestring=
6e198e97 9914 defaultval=$wxUSE_ALL_FEATURES
238663c1 9915 if test -z "$defaultval"; then
6e198e97
VZ
9916 if test x"$enablestring" = xdisable; then
9917 defaultval=yes
9918 else
9919 defaultval=no
9920 fi
9921 fi
9922
d589327a
VZ
9923 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9924echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
e6d984e2
VZ
9925 # Check whether --enable-bmpcombobox was given.
9926if test "${enable_bmpcombobox+set}" = set; then
9927 enableval=$enable_bmpcombobox;
a848cd7e 9928 if test "$enableval" = yes; then
e6d984e2 9929 wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
a848cd7e 9930 else
e6d984e2 9931 wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
a848cd7e
SC
9932 fi
9933
9934else
9935
e6d984e2 9936 wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
a848cd7e 9937
47964710
VS
9938fi
9939
a848cd7e 9940
e6d984e2 9941 eval "$wx_cv_use_bmpcombobox"
a848cd7e 9942
6e198e97 9943 if test x"$enablestring" = xdisable; then
7ac0e38e 9944 if test $wxUSE_BITMAPCOMBOBOX = no; then
6e198e97 9945 result=yes
7ac0e38e
VZ
9946 else
9947 result=no
6e198e97 9948 fi
a848cd7e 9949 else
e6d984e2 9950 result=$wxUSE_BITMAPCOMBOBOX
a848cd7e
SC
9951 fi
9952
d589327a
VZ
9953 { echo "$as_me:$LINENO: result: $result" >&5
9954echo "${ECHO_T}$result" >&6; }
6e198e97 9955
a848cd7e 9956
077c7880 9957 enablestring=
6e198e97 9958 defaultval=$wxUSE_ALL_FEATURES
238663c1 9959 if test -z "$defaultval"; then
6e198e97
VZ
9960 if test x"$enablestring" = xdisable; then
9961 defaultval=yes
9962 else
9963 defaultval=no
9964 fi
9965 fi
9966
d589327a
VZ
9967 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9968echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
e6d984e2
VZ
9969 # Check whether --enable-button was given.
9970if test "${enable_button+set}" = set; then
9971 enableval=$enable_button;
95a46303 9972 if test "$enableval" = yes; then
e6d984e2 9973 wx_cv_use_button='wxUSE_BUTTON=yes'
95a46303 9974 else
e6d984e2 9975 wx_cv_use_button='wxUSE_BUTTON=no'
95a46303
RR
9976 fi
9977
9978else
9979
e6d984e2 9980 wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
95a46303 9981
47964710
VS
9982fi
9983
95a46303 9984
e6d984e2 9985 eval "$wx_cv_use_button"
95a46303 9986
6e198e97 9987 if test x"$enablestring" = xdisable; then
7ac0e38e 9988 if test $wxUSE_BUTTON = no; then
6e198e97 9989 result=yes
7ac0e38e
VZ
9990 else
9991 result=no
6e198e97 9992 fi
95a46303 9993 else
e6d984e2 9994 result=$wxUSE_BUTTON
95a46303
RR
9995 fi
9996
d589327a
VZ
9997 { echo "$as_me:$LINENO: result: $result" >&5
9998echo "${ECHO_T}$result" >&6; }
6e198e97 9999
95a46303 10000
077c7880 10001 enablestring=
6e198e97 10002 defaultval=$wxUSE_ALL_FEATURES
238663c1 10003 if test -z "$defaultval"; then
6e198e97
VZ
10004 if test x"$enablestring" = xdisable; then
10005 defaultval=yes
10006 else
10007 defaultval=no
10008 fi
10009 fi
10010
d589327a
VZ
10011 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10012echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
47964710 10013 # Check whether --enable-calendar was given.
a848cd7e 10014if test "${enable_calendar+set}" = set; then
47964710 10015 enableval=$enable_calendar;
a848cd7e 10016 if test "$enableval" = yes; then
d970f7d5 10017 wx_cv_use_calendar='wxUSE_CALCTRL=yes'
a848cd7e 10018 else
d970f7d5 10019 wx_cv_use_calendar='wxUSE_CALCTRL=no'
a848cd7e
SC
10020 fi
10021
10022else
10023
d970f7d5 10024 wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
a848cd7e 10025
47964710
VS
10026fi
10027
a848cd7e 10028
d970f7d5 10029 eval "$wx_cv_use_calendar"
a848cd7e 10030
6e198e97 10031 if test x"$enablestring" = xdisable; then
7ac0e38e 10032 if test $wxUSE_CALCTRL = no; then
6e198e97 10033 result=yes
7ac0e38e
VZ
10034 else
10035 result=no
6e198e97 10036 fi
a848cd7e 10037 else
6e198e97 10038 result=$wxUSE_CALCTRL
a848cd7e
SC
10039 fi
10040
d589327a
VZ
10041 { echo "$as_me:$LINENO: result: $result" >&5
10042echo "${ECHO_T}$result" >&6; }
6e198e97 10043
a848cd7e 10044
077c7880 10045 enablestring=
6e198e97 10046 defaultval=$wxUSE_ALL_FEATURES
238663c1 10047 if test -z "$defaultval"; then
6e198e97
VZ
10048 if test x"$enablestring" = xdisable; then
10049 defaultval=yes
10050 else
10051 defaultval=no
10052 fi
10053 fi
10054
d589327a
VZ
10055 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10056echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
47964710 10057 # Check whether --enable-caret was given.
a848cd7e 10058if test "${enable_caret+set}" = set; then
47964710 10059 enableval=$enable_caret;
a848cd7e 10060 if test "$enableval" = yes; then
d970f7d5 10061 wx_cv_use_caret='wxUSE_CARET=yes'
a848cd7e 10062 else
d970f7d5 10063 wx_cv_use_caret='wxUSE_CARET=no'
a848cd7e
SC
10064 fi
10065
10066else
10067
d970f7d5 10068 wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
a848cd7e 10069
47964710
VS
10070fi
10071
a848cd7e 10072
d970f7d5 10073 eval "$wx_cv_use_caret"
a848cd7e 10074
6e198e97 10075 if test x"$enablestring" = xdisable; then
7ac0e38e 10076 if test $wxUSE_CARET = no; then
6e198e97 10077 result=yes
7ac0e38e
VZ
10078 else
10079 result=no
6e198e97 10080 fi
a848cd7e 10081 else
6e198e97 10082 result=$wxUSE_CARET
a848cd7e
SC
10083 fi
10084
d589327a
VZ
10085 { echo "$as_me:$LINENO: result: $result" >&5
10086echo "${ECHO_T}$result" >&6; }
6e198e97 10087
a848cd7e 10088
077c7880 10089 enablestring=
6e198e97 10090 defaultval=$wxUSE_ALL_FEATURES
238663c1 10091 if test -z "$defaultval"; then
6e198e97
VZ
10092 if test x"$enablestring" = xdisable; then
10093 defaultval=yes
10094 else
10095 defaultval=no
10096 fi
10097 fi
10098
d589327a
VZ
10099 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10100echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
47964710 10101 # Check whether --enable-checkbox was given.
a848cd7e 10102if test "${enable_checkbox+set}" = set; then
47964710 10103 enableval=$enable_checkbox;
a848cd7e 10104 if test "$enableval" = yes; then
d970f7d5 10105 wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
a848cd7e 10106 else
d970f7d5 10107 wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
a848cd7e
SC
10108 fi
10109
10110else
10111
d970f7d5 10112 wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
a848cd7e 10113
47964710
VS
10114fi
10115
a848cd7e 10116
d970f7d5 10117 eval "$wx_cv_use_checkbox"
a848cd7e 10118
6e198e97 10119 if test x"$enablestring" = xdisable; then
7ac0e38e 10120 if test $wxUSE_CHECKBOX = no; then
6e198e97 10121 result=yes
7ac0e38e
VZ
10122 else
10123 result=no
6e198e97 10124 fi
a848cd7e 10125 else
6e198e97 10126 result=$wxUSE_CHECKBOX
a848cd7e
SC
10127 fi
10128
d589327a
VZ
10129 { echo "$as_me:$LINENO: result: $result" >&5
10130echo "${ECHO_T}$result" >&6; }
6e198e97 10131
a848cd7e 10132
077c7880 10133 enablestring=
6e198e97 10134 defaultval=$wxUSE_ALL_FEATURES
238663c1 10135 if test -z "$defaultval"; then
6e198e97
VZ
10136 if test x"$enablestring" = xdisable; then
10137 defaultval=yes
10138 else
10139 defaultval=no
10140 fi
10141 fi
10142
d589327a
VZ
10143 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10144echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
47964710 10145 # Check whether --enable-checklst was given.
a848cd7e 10146if test "${enable_checklst+set}" = set; then
47964710 10147 enableval=$enable_checklst;
a848cd7e 10148 if test "$enableval" = yes; then
d970f7d5 10149 wx_cv_use_checklst='wxUSE_CHECKLST=yes'
a848cd7e 10150 else
d970f7d5 10151 wx_cv_use_checklst='wxUSE_CHECKLST=no'
a848cd7e
SC
10152 fi
10153
10154else
10155
d970f7d5 10156 wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
a848cd7e 10157
47964710
VS
10158fi
10159
a848cd7e 10160
d970f7d5 10161 eval "$wx_cv_use_checklst"
a848cd7e 10162
6e198e97 10163 if test x"$enablestring" = xdisable; then
7ac0e38e 10164 if test $wxUSE_CHECKLST = no; then
6e198e97 10165 result=yes
7ac0e38e
VZ
10166 else
10167 result=no
6e198e97 10168 fi
a848cd7e 10169 else
6e198e97 10170 result=$wxUSE_CHECKLST
a848cd7e
SC
10171 fi
10172
d589327a
VZ
10173 { echo "$as_me:$LINENO: result: $result" >&5
10174echo "${ECHO_T}$result" >&6; }
6e198e97 10175
a848cd7e 10176
077c7880 10177 enablestring=
6e198e97 10178 defaultval=$wxUSE_ALL_FEATURES
238663c1 10179 if test -z "$defaultval"; then
6e198e97
VZ
10180 if test x"$enablestring" = xdisable; then
10181 defaultval=yes
10182 else
10183 defaultval=no
10184 fi
10185 fi
10186
d589327a
VZ
10187 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10188echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
47964710 10189 # Check whether --enable-choice was given.
a848cd7e 10190if test "${enable_choice+set}" = set; then
47964710 10191 enableval=$enable_choice;
a848cd7e 10192 if test "$enableval" = yes; then
d970f7d5 10193 wx_cv_use_choice='wxUSE_CHOICE=yes'
a848cd7e 10194 else
d970f7d5 10195 wx_cv_use_choice='wxUSE_CHOICE=no'
a848cd7e
SC
10196 fi
10197
10198else
10199
d970f7d5 10200 wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
a848cd7e 10201
47964710
VS
10202fi
10203
a848cd7e 10204
d970f7d5 10205 eval "$wx_cv_use_choice"
a848cd7e 10206
6e198e97 10207 if test x"$enablestring" = xdisable; then
7ac0e38e 10208 if test $wxUSE_CHOICE = no; then
6e198e97 10209 result=yes
7ac0e38e
VZ
10210 else
10211 result=no
6e198e97 10212 fi
a848cd7e 10213 else
6e198e97 10214 result=$wxUSE_CHOICE
a848cd7e
SC
10215 fi
10216
d589327a
VZ
10217 { echo "$as_me:$LINENO: result: $result" >&5
10218echo "${ECHO_T}$result" >&6; }
6e198e97 10219
a848cd7e 10220
077c7880 10221 enablestring=
6e198e97 10222 defaultval=$wxUSE_ALL_FEATURES
238663c1 10223 if test -z "$defaultval"; then
6e198e97
VZ
10224 if test x"$enablestring" = xdisable; then
10225 defaultval=yes
10226 else
10227 defaultval=no
10228 fi
10229 fi
10230
d589327a
VZ
10231 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10232echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
47964710 10233 # Check whether --enable-choicebook was given.
92bbdbcd 10234if test "${enable_choicebook+set}" = set; then
47964710 10235 enableval=$enable_choicebook;
92bbdbcd 10236 if test "$enableval" = yes; then
d970f7d5 10237 wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
92bbdbcd 10238 else
d970f7d5 10239 wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
92bbdbcd
WS
10240 fi
10241
10242else
10243
d970f7d5 10244 wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
92bbdbcd 10245
47964710
VS
10246fi
10247
92bbdbcd 10248
d970f7d5 10249 eval "$wx_cv_use_choicebook"
92bbdbcd 10250
6e198e97 10251 if test x"$enablestring" = xdisable; then
7ac0e38e 10252 if test $wxUSE_CHOICEBOOK = no; then
6e198e97 10253 result=yes
7ac0e38e
VZ
10254 else
10255 result=no
6e198e97 10256 fi
92bbdbcd 10257 else
6e198e97 10258 result=$wxUSE_CHOICEBOOK
92bbdbcd
WS
10259 fi
10260
d589327a
VZ
10261 { echo "$as_me:$LINENO: result: $result" >&5
10262echo "${ECHO_T}$result" >&6; }
6e198e97 10263
92bbdbcd 10264
077c7880 10265 enablestring=
6e198e97 10266 defaultval=$wxUSE_ALL_FEATURES
238663c1 10267 if test -z "$defaultval"; then
6e198e97
VZ
10268 if test x"$enablestring" = xdisable; then
10269 defaultval=yes
10270 else
10271 defaultval=no
10272 fi
10273 fi
10274
d589327a
VZ
10275 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10276echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
47964710 10277 # Check whether --enable-collpane was given.
bd915ace 10278if test "${enable_collpane+set}" = set; then
47964710 10279 enableval=$enable_collpane;
bd915ace 10280 if test "$enableval" = yes; then
d970f7d5 10281 wx_cv_use_collpane='wxUSE_COLLPANE=yes'
bd915ace 10282 else
d970f7d5 10283 wx_cv_use_collpane='wxUSE_COLLPANE=no'
bd915ace
RR
10284 fi
10285
10286else
10287
d970f7d5 10288 wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
bd915ace 10289
47964710
VS
10290fi
10291
bd915ace 10292
d970f7d5 10293 eval "$wx_cv_use_collpane"
bd915ace 10294
6e198e97 10295 if test x"$enablestring" = xdisable; then
7ac0e38e 10296 if test $wxUSE_COLLPANE = no; then
6e198e97 10297 result=yes
7ac0e38e
VZ
10298 else
10299 result=no
6e198e97 10300 fi
bd915ace 10301 else
6e198e97 10302 result=$wxUSE_COLLPANE
bd915ace
RR
10303 fi
10304
d589327a
VZ
10305 { echo "$as_me:$LINENO: result: $result" >&5
10306echo "${ECHO_T}$result" >&6; }
6e198e97 10307
bd915ace 10308
077c7880 10309 enablestring=
6e198e97 10310 defaultval=$wxUSE_ALL_FEATURES
238663c1 10311 if test -z "$defaultval"; then
6e198e97
VZ
10312 if test x"$enablestring" = xdisable; then
10313 defaultval=yes
10314 else
10315 defaultval=no
10316 fi
10317 fi
10318
d589327a
VZ
10319 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10320echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
47964710 10321 # Check whether --enable-colourpicker was given.
e9263684 10322if test "${enable_colourpicker+set}" = set; then
47964710 10323 enableval=$enable_colourpicker;
e9263684 10324 if test "$enableval" = yes; then
d970f7d5 10325 wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
e9263684 10326 else
d970f7d5 10327 wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
e9263684
VZ
10328 fi
10329
10330else
10331
d970f7d5 10332 wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
e9263684 10333
47964710
VS
10334fi
10335
e9263684 10336
d970f7d5 10337 eval "$wx_cv_use_colourpicker"
e9263684 10338
6e198e97 10339 if test x"$enablestring" = xdisable; then
7ac0e38e 10340 if test $wxUSE_COLOURPICKERCTRL = no; then
6e198e97 10341 result=yes
7ac0e38e
VZ
10342 else
10343 result=no
6e198e97 10344 fi
e9263684 10345 else
6e198e97 10346 result=$wxUSE_COLOURPICKERCTRL
e9263684
VZ
10347 fi
10348
d589327a
VZ
10349 { echo "$as_me:$LINENO: result: $result" >&5
10350echo "${ECHO_T}$result" >&6; }
6e198e97 10351
e9263684 10352
077c7880 10353 enablestring=
6e198e97 10354 defaultval=$wxUSE_ALL_FEATURES
238663c1 10355 if test -z "$defaultval"; then
6e198e97
VZ
10356 if test x"$enablestring" = xdisable; then
10357 defaultval=yes
10358 else
10359 defaultval=no
10360 fi
10361 fi
10362
d589327a
VZ
10363 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10364echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
47964710 10365 # Check whether --enable-combobox was given.
a848cd7e 10366if test "${enable_combobox+set}" = set; then
47964710 10367 enableval=$enable_combobox;
a848cd7e 10368 if test "$enableval" = yes; then
d970f7d5 10369 wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
a848cd7e 10370 else
d970f7d5 10371 wx_cv_use_combobox='wxUSE_COMBOBOX=no'
a848cd7e
SC
10372 fi
10373
10374else
10375
d970f7d5 10376 wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
a848cd7e 10377
47964710
VS
10378fi
10379
a848cd7e 10380
d970f7d5 10381 eval "$wx_cv_use_combobox"
a848cd7e 10382
6e198e97 10383 if test x"$enablestring" = xdisable; then
7ac0e38e 10384 if test $wxUSE_COMBOBOX = no; then
6e198e97 10385 result=yes
7ac0e38e
VZ
10386 else
10387 result=no
6e198e97 10388 fi
a848cd7e 10389 else
6e198e97 10390 result=$wxUSE_COMBOBOX
a848cd7e
SC
10391 fi
10392
d589327a
VZ
10393 { echo "$as_me:$LINENO: result: $result" >&5
10394echo "${ECHO_T}$result" >&6; }
6e198e97 10395
a848cd7e 10396
077c7880 10397 enablestring=
6e198e97 10398 defaultval=$wxUSE_ALL_FEATURES
238663c1 10399 if test -z "$defaultval"; then
6e198e97
VZ
10400 if test x"$enablestring" = xdisable; then
10401 defaultval=yes
10402 else
10403 defaultval=no
10404 fi
10405 fi
10406
d589327a
VZ
10407 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10408echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
47964710 10409 # Check whether --enable-comboctrl was given.
a57d600f 10410if test "${enable_comboctrl+set}" = set; then
47964710 10411 enableval=$enable_comboctrl;
642bcba9 10412 if test "$enableval" = yes; then
d970f7d5 10413 wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 10414 else
d970f7d5 10415 wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
10416 fi
10417
10418else
10419
d970f7d5 10420 wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
642bcba9 10421
47964710
VS
10422fi
10423
642bcba9 10424
d970f7d5 10425 eval "$wx_cv_use_comboctrl"
642bcba9 10426
6e198e97 10427 if test x"$enablestring" = xdisable; then
7ac0e38e 10428 if test $wxUSE_COMBOCTRL = no; then
6e198e97 10429 result=yes
7ac0e38e
VZ
10430 else
10431 result=no
6e198e97 10432 fi
642bcba9 10433 else
6e198e97 10434 result=$wxUSE_COMBOCTRL
642bcba9
VZ
10435 fi
10436
d589327a
VZ
10437 { echo "$as_me:$LINENO: result: $result" >&5
10438echo "${ECHO_T}$result" >&6; }
6e198e97 10439
642bcba9 10440
e6d984e2
VZ
10441 enablestring=
10442 defaultval=$wxUSE_ALL_FEATURES
10443 if test -z "$defaultval"; then
10444 if test x"$enablestring" = xdisable; then
10445 defaultval=yes
10446 else
10447 defaultval=no
10448 fi
10449 fi
10450
d589327a
VZ
10451 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10452echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
e6d984e2
VZ
10453 # Check whether --enable-dataviewctrl was given.
10454if test "${enable_dataviewctrl+set}" = set; then
10455 enableval=$enable_dataviewctrl;
10456 if test "$enableval" = yes; then
10457 wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10458 else
10459 wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10460 fi
10461
10462else
10463
10464 wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10465
10466fi
10467
10468
10469 eval "$wx_cv_use_dataviewctrl"
10470
10471 if test x"$enablestring" = xdisable; then
7ac0e38e 10472 if test $wxUSE_DATAVIEWCTRL = no; then
e6d984e2 10473 result=yes
7ac0e38e
VZ
10474 else
10475 result=no
e6d984e2
VZ
10476 fi
10477 else
10478 result=$wxUSE_DATAVIEWCTRL
10479 fi
10480
d589327a
VZ
10481 { echo "$as_me:$LINENO: result: $result" >&5
10482echo "${ECHO_T}$result" >&6; }
e6d984e2
VZ
10483
10484
077c7880 10485 enablestring=
6e198e97 10486 defaultval=$wxUSE_ALL_FEATURES
238663c1 10487 if test -z "$defaultval"; then
6e198e97
VZ
10488 if test x"$enablestring" = xdisable; then
10489 defaultval=yes
10490 else
10491 defaultval=no
10492 fi
10493 fi
10494
d589327a
VZ
10495 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10496echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
47964710 10497 # Check whether --enable-datepick was given.
da98e9be 10498if test "${enable_datepick+set}" = set; then
47964710 10499 enableval=$enable_datepick;
da98e9be 10500 if test "$enableval" = yes; then
d970f7d5 10501 wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
da98e9be 10502 else
d970f7d5 10503 wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
da98e9be
VZ
10504 fi
10505
10506else
10507
d970f7d5 10508 wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
da98e9be 10509
47964710
VS
10510fi
10511
da98e9be 10512
d970f7d5 10513 eval "$wx_cv_use_datepick"
da98e9be 10514
6e198e97 10515 if test x"$enablestring" = xdisable; then
7ac0e38e 10516 if test $wxUSE_DATEPICKCTRL = no; then
6e198e97 10517 result=yes
7ac0e38e
VZ
10518 else
10519 result=no
6e198e97 10520 fi
da98e9be 10521 else
6e198e97 10522 result=$wxUSE_DATEPICKCTRL
da98e9be
VZ
10523 fi
10524
d589327a
VZ
10525 { echo "$as_me:$LINENO: result: $result" >&5
10526echo "${ECHO_T}$result" >&6; }
6e198e97 10527
da98e9be 10528
077c7880 10529 enablestring=
6e198e97 10530 defaultval=$wxUSE_ALL_FEATURES
238663c1 10531 if test -z "$defaultval"; then
6e198e97
VZ
10532 if test x"$enablestring" = xdisable; then
10533 defaultval=yes
10534 else
10535 defaultval=no
10536 fi
10537 fi
10538
d589327a
VZ
10539 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10540echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
e6d984e2
VZ
10541 # Check whether --enable-detect_sm was given.
10542if test "${enable_detect_sm+set}" = set; then
10543 enableval=$enable_detect_sm;
e9263684 10544 if test "$enableval" = yes; then
e6d984e2 10545 wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
e9263684 10546 else
e6d984e2 10547 wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
e9263684
VZ
10548 fi
10549
10550else
10551
e6d984e2 10552 wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
e9263684 10553
47964710
VS
10554fi
10555
e9263684 10556
e6d984e2 10557 eval "$wx_cv_use_detect_sm"
e9263684 10558
6e198e97 10559 if test x"$enablestring" = xdisable; then
7ac0e38e 10560 if test $wxUSE_DETECT_SM = no; then
6e198e97 10561 result=yes
7ac0e38e
VZ
10562 else
10563 result=no
6e198e97 10564 fi
e9263684 10565 else
e6d984e2 10566 result=$wxUSE_DETECT_SM
e9263684
VZ
10567 fi
10568
d589327a
VZ
10569 { echo "$as_me:$LINENO: result: $result" >&5
10570echo "${ECHO_T}$result" >&6; }
6e198e97 10571
e9263684 10572
077c7880 10573 enablestring=
6e198e97 10574 defaultval=$wxUSE_ALL_FEATURES
238663c1 10575 if test -z "$defaultval"; then
6e198e97
VZ
10576 if test x"$enablestring" = xdisable; then
10577 defaultval=yes
10578 else
10579 defaultval=no
10580 fi
10581 fi
10582
d589327a
VZ
10583 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10584echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
e6d984e2
VZ
10585 # Check whether --enable-dirpicker was given.
10586if test "${enable_dirpicker+set}" = set; then
10587 enableval=$enable_dirpicker;
a848cd7e 10588 if test "$enableval" = yes; then
e6d984e2 10589 wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
a848cd7e 10590 else
e6d984e2 10591 wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
a848cd7e
SC
10592 fi
10593
10594else
10595
e6d984e2 10596 wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
a848cd7e 10597
47964710
VS
10598fi
10599
a848cd7e 10600
e6d984e2 10601 eval "$wx_cv_use_dirpicker"
a848cd7e 10602
6e198e97 10603 if test x"$enablestring" = xdisable; then
7ac0e38e 10604 if test $wxUSE_DIRPICKERCTRL = no; then
6e198e97 10605 result=yes
7ac0e38e
VZ
10606 else
10607 result=no
6e198e97 10608 fi
a848cd7e 10609 else
e6d984e2 10610 result=$wxUSE_DIRPICKERCTRL
a848cd7e
SC
10611 fi
10612
d589327a
VZ
10613 { echo "$as_me:$LINENO: result: $result" >&5
10614echo "${ECHO_T}$result" >&6; }
6e198e97 10615
a848cd7e 10616
077c7880 10617 enablestring=
6e198e97 10618 defaultval=$wxUSE_ALL_FEATURES
238663c1 10619 if test -z "$defaultval"; then
6e198e97
VZ
10620 if test x"$enablestring" = xdisable; then
10621 defaultval=yes
10622 else
10623 defaultval=no
10624 fi
10625 fi
10626
d589327a
VZ
10627 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10628echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
e6d984e2
VZ
10629 # Check whether --enable-display was given.
10630if test "${enable_display+set}" = set; then
10631 enableval=$enable_display;
88bbc332 10632 if test "$enableval" = yes; then
e6d984e2 10633 wx_cv_use_display='wxUSE_DISPLAY=yes'
88bbc332 10634 else
e6d984e2 10635 wx_cv_use_display='wxUSE_DISPLAY=no'
88bbc332
RR
10636 fi
10637
10638else
10639
e6d984e2 10640 wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
88bbc332 10641
47964710
VS
10642fi
10643
88bbc332 10644
e6d984e2 10645 eval "$wx_cv_use_display"
88bbc332 10646
6e198e97 10647 if test x"$enablestring" = xdisable; then
7ac0e38e 10648 if test $wxUSE_DISPLAY = no; then
6e198e97 10649 result=yes
7ac0e38e
VZ
10650 else
10651 result=no
6e198e97 10652 fi
23575150 10653 else
e6d984e2 10654 result=$wxUSE_DISPLAY
23575150
RR
10655 fi
10656
d589327a
VZ
10657 { echo "$as_me:$LINENO: result: $result" >&5
10658echo "${ECHO_T}$result" >&6; }
6e198e97 10659
23575150
RR
10660
10661 enablestring=
6e198e97 10662 defaultval=$wxUSE_ALL_FEATURES
238663c1 10663 if test -z "$defaultval"; then
6e198e97
VZ
10664 if test x"$enablestring" = xdisable; then
10665 defaultval=yes
10666 else
10667 defaultval=no
10668 fi
10669 fi
10670
d589327a
VZ
10671 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10672echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
47964710 10673 # Check whether --enable-editablebox was given.
23575150 10674if test "${enable_editablebox+set}" = set; then
47964710 10675 enableval=$enable_editablebox;
23575150 10676 if test "$enableval" = yes; then
d970f7d5 10677 wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
23575150 10678 else
d970f7d5 10679 wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
23575150
RR
10680 fi
10681
10682else
10683
d970f7d5 10684 wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
23575150 10685
47964710
VS
10686fi
10687
23575150 10688
d970f7d5 10689 eval "$wx_cv_use_editablebox"
23575150 10690
6e198e97 10691 if test x"$enablestring" = xdisable; then
7ac0e38e 10692 if test $wxUSE_EDITABLELISTBOX = no; then
6e198e97 10693 result=yes
7ac0e38e
VZ
10694 else
10695 result=no
6e198e97 10696 fi
88bbc332 10697 else
6e198e97 10698 result=$wxUSE_EDITABLELISTBOX
88bbc332
RR
10699 fi
10700
d589327a
VZ
10701 { echo "$as_me:$LINENO: result: $result" >&5
10702echo "${ECHO_T}$result" >&6; }
6e198e97 10703
88bbc332 10704
077c7880 10705 enablestring=
6e198e97 10706 defaultval=$wxUSE_ALL_FEATURES
238663c1 10707 if test -z "$defaultval"; then
6e198e97
VZ
10708 if test x"$enablestring" = xdisable; then
10709 defaultval=yes
10710 else
10711 defaultval=no
10712 fi
10713 fi
10714
d589327a
VZ
10715 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10716echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
e6d984e2
VZ
10717 # Check whether --enable-filectrl was given.
10718if test "${enable_filectrl+set}" = set; then
10719 enableval=$enable_filectrl;
e9263684 10720 if test "$enableval" = yes; then
e6d984e2 10721 wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
e9263684 10722 else
e6d984e2 10723 wx_cv_use_filectrl='wxUSE_FILECTRL=no'
e9263684
VZ
10724 fi
10725
10726else
10727
e6d984e2 10728 wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
e9263684 10729
47964710
VS
10730fi
10731
e9263684 10732
e6d984e2 10733 eval "$wx_cv_use_filectrl"
e9263684 10734
6e198e97 10735 if test x"$enablestring" = xdisable; then
7ac0e38e 10736 if test $wxUSE_FILECTRL = no; then
6e198e97 10737 result=yes
7ac0e38e
VZ
10738 else
10739 result=no
6e198e97 10740 fi
e9263684 10741 else
e6d984e2 10742 result=$wxUSE_FILECTRL
e9263684
VZ
10743 fi
10744
d589327a
VZ
10745 { echo "$as_me:$LINENO: result: $result" >&5
10746echo "${ECHO_T}$result" >&6; }
6e198e97 10747
e9263684 10748
0cf3e587
VZ
10749 enablestring=
10750 defaultval=$wxUSE_ALL_FEATURES
10751 if test -z "$defaultval"; then
10752 if test x"$enablestring" = xdisable; then
10753 defaultval=yes
10754 else
10755 defaultval=no
10756 fi
10757 fi
10758
d589327a
VZ
10759 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10760echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
e6d984e2
VZ
10761 # Check whether --enable-filepicker was given.
10762if test "${enable_filepicker+set}" = set; then
10763 enableval=$enable_filepicker;
0cf3e587 10764 if test "$enableval" = yes; then
e6d984e2 10765 wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
0cf3e587 10766 else
e6d984e2 10767 wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
0cf3e587 10768 fi
0cf3e587
VZ
10769
10770else
10771
e6d984e2 10772 wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
0cf3e587
VZ
10773
10774fi
10775
10776
e6d984e2 10777 eval "$wx_cv_use_filepicker"
0cf3e587
VZ
10778
10779 if test x"$enablestring" = xdisable; then
7ac0e38e 10780 if test $wxUSE_FILEPICKERCTRL = no; then
0cf3e587 10781 result=yes
7ac0e38e
VZ
10782 else
10783 result=no
0cf3e587
VZ
10784 fi
10785 else
e6d984e2 10786 result=$wxUSE_FILEPICKERCTRL
0cf3e587
VZ
10787 fi
10788
d589327a
VZ
10789 { echo "$as_me:$LINENO: result: $result" >&5
10790echo "${ECHO_T}$result" >&6; }
0cf3e587
VZ
10791
10792
077c7880 10793 enablestring=
6e198e97 10794 defaultval=$wxUSE_ALL_FEATURES
238663c1 10795 if test -z "$defaultval"; then
6e198e97
VZ
10796 if test x"$enablestring" = xdisable; then
10797 defaultval=yes
10798 else
10799 defaultval=no
10800 fi
10801 fi
10802
d589327a
VZ
10803 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10804echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
47964710 10805 # Check whether --enable-fontpicker was given.
e9263684 10806if test "${enable_fontpicker+set}" = set; then
47964710 10807 enableval=$enable_fontpicker;
e9263684 10808 if test "$enableval" = yes; then
d970f7d5 10809 wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
e9263684 10810 else
d970f7d5 10811 wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
e9263684
VZ
10812 fi
10813
10814else
10815
d970f7d5 10816 wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
e9263684 10817
47964710
VS
10818fi
10819
e9263684 10820
d970f7d5 10821 eval "$wx_cv_use_fontpicker"
e9263684 10822
6e198e97 10823 if test x"$enablestring" = xdisable; then
7ac0e38e 10824 if test $wxUSE_FONTPICKERCTRL = no; then
6e198e97 10825 result=yes
7ac0e38e
VZ
10826 else
10827 result=no
6e198e97 10828 fi
e9263684 10829 else
6e198e97 10830 result=$wxUSE_FONTPICKERCTRL
e9263684
VZ
10831 fi
10832
d589327a
VZ
10833 { echo "$as_me:$LINENO: result: $result" >&5
10834echo "${ECHO_T}$result" >&6; }
6e198e97 10835
e9263684 10836
077c7880 10837 enablestring=
6e198e97 10838 defaultval=$wxUSE_ALL_FEATURES
238663c1 10839 if test -z "$defaultval"; then
6e198e97
VZ
10840 if test x"$enablestring" = xdisable; then
10841 defaultval=yes
10842 else
10843 defaultval=no
10844 fi
10845 fi
10846
d589327a
VZ
10847 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10848echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
47964710 10849 # Check whether --enable-gauge was given.
a848cd7e 10850if test "${enable_gauge+set}" = set; then
47964710 10851 enableval=$enable_gauge;
a848cd7e 10852 if test "$enableval" = yes; then
d970f7d5 10853 wx_cv_use_gauge='wxUSE_GAUGE=yes'
a848cd7e 10854 else
d970f7d5 10855 wx_cv_use_gauge='wxUSE_GAUGE=no'
a848cd7e
SC
10856 fi
10857
10858else
10859
d970f7d5 10860 wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
a848cd7e 10861
47964710
VS
10862fi
10863
a848cd7e 10864
d970f7d5 10865 eval "$wx_cv_use_gauge"
a848cd7e 10866
6e198e97 10867 if test x"$enablestring" = xdisable; then
7ac0e38e 10868 if test $wxUSE_GAUGE = no; then
6e198e97 10869 result=yes
7ac0e38e
VZ
10870 else
10871 result=no
6e198e97 10872 fi
a848cd7e 10873 else
6e198e97 10874 result=$wxUSE_GAUGE
a848cd7e
SC
10875 fi
10876
d589327a
VZ
10877 { echo "$as_me:$LINENO: result: $result" >&5
10878echo "${ECHO_T}$result" >&6; }
6e198e97 10879
a848cd7e 10880
077c7880 10881 enablestring=
6e198e97 10882 defaultval=$wxUSE_ALL_FEATURES
238663c1 10883 if test -z "$defaultval"; then
6e198e97
VZ
10884 if test x"$enablestring" = xdisable; then
10885 defaultval=yes
10886 else
10887 defaultval=no
10888 fi
10889 fi
10890
d589327a
VZ
10891 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10892echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
47964710 10893 # Check whether --enable-grid was given.
a848cd7e 10894if test "${enable_grid+set}" = set; then
47964710 10895 enableval=$enable_grid;
a848cd7e 10896 if test "$enableval" = yes; then
d970f7d5 10897 wx_cv_use_grid='wxUSE_GRID=yes'
a848cd7e 10898 else
d970f7d5 10899 wx_cv_use_grid='wxUSE_GRID=no'
a848cd7e
SC
10900 fi
10901
10902else
10903
d970f7d5 10904 wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
a848cd7e 10905
47964710
VS
10906fi
10907
a848cd7e 10908
d970f7d5 10909 eval "$wx_cv_use_grid"
a848cd7e 10910
6e198e97 10911 if test x"$enablestring" = xdisable; then
7ac0e38e 10912 if test $wxUSE_GRID = no; then
6e198e97 10913 result=yes
7ac0e38e
VZ
10914 else
10915 result=no
6e198e97 10916 fi
a848cd7e 10917 else
6e198e97 10918 result=$wxUSE_GRID
a848cd7e
SC
10919 fi
10920
d589327a
VZ
10921 { echo "$as_me:$LINENO: result: $result" >&5
10922echo "${ECHO_T}$result" >&6; }
6e198e97 10923
a848cd7e 10924
e721a2a2
VZ
10925 enablestring=
10926 defaultval=$wxUSE_ALL_FEATURES
10927 if test -z "$defaultval"; then
10928 if test x"$enablestring" = xdisable; then
10929 defaultval=yes
10930 else
10931 defaultval=no
10932 fi
10933 fi
10934
d589327a
VZ
10935 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
10936echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
e721a2a2
VZ
10937 # Check whether --enable-headerctrl was given.
10938if test "${enable_headerctrl+set}" = set; then
10939 enableval=$enable_headerctrl;
10940 if test "$enableval" = yes; then
10941 wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
10942 else
10943 wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
10944 fi
10945
10946else
10947
10948 wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
10949
10950fi
10951
10952
10953 eval "$wx_cv_use_headerctrl"
10954
10955 if test x"$enablestring" = xdisable; then
7ac0e38e 10956 if test $wxUSE_HEADERCTRL = no; then
e721a2a2 10957 result=yes
7ac0e38e
VZ
10958 else
10959 result=no
e721a2a2
VZ
10960 fi
10961 else
10962 result=$wxUSE_HEADERCTRL
10963 fi
10964
d589327a
VZ
10965 { echo "$as_me:$LINENO: result: $result" >&5
10966echo "${ECHO_T}$result" >&6; }
e721a2a2
VZ
10967
10968
077c7880 10969 enablestring=
6e198e97 10970 defaultval=$wxUSE_ALL_FEATURES
238663c1 10971 if test -z "$defaultval"; then
6e198e97
VZ
10972 if test x"$enablestring" = xdisable; then
10973 defaultval=yes
10974 else
10975 defaultval=no
10976 fi
10977 fi
10978
d589327a
VZ
10979 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10980echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
e6d984e2
VZ
10981 # Check whether --enable-hyperlink was given.
10982if test "${enable_hyperlink+set}" = set; then
10983 enableval=$enable_hyperlink;
20e34ecc 10984 if test "$enableval" = yes; then
e6d984e2 10985 wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
20e34ecc 10986 else
e6d984e2 10987 wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
20e34ecc
RR
10988 fi
10989
10990else
10991
e6d984e2 10992 wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
20e34ecc 10993
47964710
VS
10994fi
10995
20e34ecc 10996
e6d984e2 10997 eval "$wx_cv_use_hyperlink"
20e34ecc 10998
6e198e97 10999 if test x"$enablestring" = xdisable; then
7ac0e38e 11000 if test $wxUSE_HYPERLINKCTRL = no; then
6e198e97 11001 result=yes
7ac0e38e
VZ
11002 else
11003 result=no
6e198e97 11004 fi
6954625c 11005 else
6e198e97 11006 result=$wxUSE_HYPERLINKCTRL
6954625c
VZ
11007 fi
11008
d589327a
VZ
11009 { echo "$as_me:$LINENO: result: $result" >&5
11010echo "${ECHO_T}$result" >&6; }
6e198e97 11011
6954625c 11012
077c7880 11013 enablestring=
6e198e97 11014 defaultval=$wxUSE_ALL_FEATURES
238663c1 11015 if test -z "$defaultval"; then
6e198e97
VZ
11016 if test x"$enablestring" = xdisable; then
11017 defaultval=yes
11018 else
11019 defaultval=no
11020 fi
11021 fi
11022
d589327a
VZ
11023 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11024echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
47964710 11025 # Check whether --enable-imaglist was given.
a848cd7e 11026if test "${enable_imaglist+set}" = set; then
47964710 11027 enableval=$enable_imaglist;
a848cd7e 11028 if test "$enableval" = yes; then
d970f7d5 11029 wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
a848cd7e 11030 else
d970f7d5 11031 wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
a848cd7e
SC
11032 fi
11033
11034else
11035
d970f7d5 11036 wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
a848cd7e 11037
47964710
VS
11038fi
11039
a848cd7e 11040
d970f7d5 11041 eval "$wx_cv_use_imaglist"
a848cd7e 11042
6e198e97 11043 if test x"$enablestring" = xdisable; then
7ac0e38e 11044 if test $wxUSE_IMAGLIST = no; then
6e198e97 11045 result=yes
7ac0e38e
VZ
11046 else
11047 result=no
6e198e97 11048 fi
a848cd7e 11049 else
6e198e97 11050 result=$wxUSE_IMAGLIST
a848cd7e
SC
11051 fi
11052
d589327a
VZ
11053 { echo "$as_me:$LINENO: result: $result" >&5
11054echo "${ECHO_T}$result" >&6; }
6e198e97 11055
a848cd7e 11056
a92b5dfe
VZ
11057 enablestring=
11058 defaultval=$wxUSE_ALL_FEATURES
11059 if test -z "$defaultval"; then
11060 if test x"$enablestring" = xdisable; then
11061 defaultval=yes
11062 else
11063 defaultval=no
11064 fi
11065 fi
11066
11067 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11068echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11069 # Check whether --enable-infobar was given.
11070if test "${enable_infobar+set}" = set; then
11071 enableval=$enable_infobar;
11072 if test "$enableval" = yes; then
11073 wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11074 else
11075 wx_cv_use_infobar='wxUSE_INFOBAR=no'
11076 fi
11077
11078else
11079
11080 wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11081
11082fi
11083
11084
11085 eval "$wx_cv_use_infobar"
11086
11087 if test x"$enablestring" = xdisable; then
11088 if test $wxUSE_INFOBAR = no; then
11089 result=yes
11090 else
11091 result=no
11092 fi
11093 else
11094 result=$wxUSE_INFOBAR
11095 fi
11096
11097 { echo "$as_me:$LINENO: result: $result" >&5
11098echo "${ECHO_T}$result" >&6; }
11099
11100
077c7880 11101 enablestring=
6e198e97 11102 defaultval=$wxUSE_ALL_FEATURES
238663c1 11103 if test -z "$defaultval"; then
6e198e97
VZ
11104 if test x"$enablestring" = xdisable; then
11105 defaultval=yes
11106 else
11107 defaultval=no
11108 fi
11109 fi
11110
d589327a
VZ
11111 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11112echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
47964710 11113 # Check whether --enable-listbook was given.
a848cd7e 11114if test "${enable_listbook+set}" = set; then
47964710 11115 enableval=$enable_listbook;
a848cd7e 11116 if test "$enableval" = yes; then
d970f7d5 11117 wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
a848cd7e 11118 else
d970f7d5 11119 wx_cv_use_listbook='wxUSE_LISTBOOK=no'
a848cd7e
SC
11120 fi
11121
11122else
11123
d970f7d5 11124 wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
a848cd7e 11125
47964710
VS
11126fi
11127
a848cd7e 11128
d970f7d5 11129 eval "$wx_cv_use_listbook"
a848cd7e 11130
6e198e97 11131 if test x"$enablestring" = xdisable; then
7ac0e38e 11132 if test $wxUSE_LISTBOOK = no; then
6e198e97 11133 result=yes
7ac0e38e
VZ
11134 else
11135 result=no
6e198e97 11136 fi
a848cd7e 11137 else
6e198e97 11138 result=$wxUSE_LISTBOOK
a848cd7e
SC
11139 fi
11140
d589327a
VZ
11141 { echo "$as_me:$LINENO: result: $result" >&5
11142echo "${ECHO_T}$result" >&6; }
6e198e97 11143
a848cd7e 11144
077c7880 11145 enablestring=
6e198e97 11146 defaultval=$wxUSE_ALL_FEATURES
238663c1 11147 if test -z "$defaultval"; then
6e198e97
VZ
11148 if test x"$enablestring" = xdisable; then
11149 defaultval=yes
11150 else
11151 defaultval=no
11152 fi
11153 fi
11154
d589327a
VZ
11155 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11156echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
47964710 11157 # Check whether --enable-listbox was given.
a848cd7e 11158if test "${enable_listbox+set}" = set; then
47964710 11159 enableval=$enable_listbox;
a848cd7e 11160 if test "$enableval" = yes; then
d970f7d5 11161 wx_cv_use_listbox='wxUSE_LISTBOX=yes'
a848cd7e 11162 else
d970f7d5 11163 wx_cv_use_listbox='wxUSE_LISTBOX=no'
a848cd7e
SC
11164 fi
11165
11166else
11167
d970f7d5 11168 wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
a848cd7e 11169
47964710
VS
11170fi
11171
a848cd7e 11172
d970f7d5 11173 eval "$wx_cv_use_listbox"
a848cd7e 11174
6e198e97 11175 if test x"$enablestring" = xdisable; then
7ac0e38e 11176 if test $wxUSE_LISTBOX = no; then
6e198e97 11177 result=yes
7ac0e38e
VZ
11178 else
11179 result=no
6e198e97 11180 fi
a848cd7e 11181 else
6e198e97 11182 result=$wxUSE_LISTBOX
a848cd7e
SC
11183 fi
11184
d589327a
VZ
11185 { echo "$as_me:$LINENO: result: $result" >&5
11186echo "${ECHO_T}$result" >&6; }
6e198e97 11187
a848cd7e 11188
077c7880 11189 enablestring=
6e198e97 11190 defaultval=$wxUSE_ALL_FEATURES
238663c1 11191 if test -z "$defaultval"; then
6e198e97
VZ
11192 if test x"$enablestring" = xdisable; then
11193 defaultval=yes
11194 else
11195 defaultval=no
11196 fi
11197 fi
11198
d589327a
VZ
11199 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11200echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
47964710 11201 # Check whether --enable-listctrl was given.
a848cd7e 11202if test "${enable_listctrl+set}" = set; then
47964710 11203 enableval=$enable_listctrl;
a848cd7e 11204 if test "$enableval" = yes; then
d970f7d5 11205 wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
a848cd7e 11206 else
d970f7d5 11207 wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
a848cd7e
SC
11208 fi
11209
11210else
11211
d970f7d5 11212 wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
a848cd7e 11213
47964710
VS
11214fi
11215
a848cd7e 11216
d970f7d5 11217 eval "$wx_cv_use_listctrl"
a848cd7e 11218
6e198e97 11219 if test x"$enablestring" = xdisable; then
7ac0e38e 11220 if test $wxUSE_LISTCTRL = no; then
6e198e97 11221 result=yes
7ac0e38e
VZ
11222 else
11223 result=no
6e198e97 11224 fi
a848cd7e 11225 else
6e198e97 11226 result=$wxUSE_LISTCTRL
a848cd7e
SC
11227 fi
11228
d589327a
VZ
11229 { echo "$as_me:$LINENO: result: $result" >&5
11230echo "${ECHO_T}$result" >&6; }
6e198e97 11231
a848cd7e 11232
077c7880 11233 enablestring=
6e198e97 11234 defaultval=$wxUSE_ALL_FEATURES
238663c1 11235 if test -z "$defaultval"; then
6e198e97
VZ
11236 if test x"$enablestring" = xdisable; then
11237 defaultval=yes
11238 else
11239 defaultval=no
11240 fi
11241 fi
11242
d589327a
VZ
11243 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11244echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
47964710 11245 # Check whether --enable-notebook was given.
a848cd7e 11246if test "${enable_notebook+set}" = set; then
47964710 11247 enableval=$enable_notebook;
a848cd7e 11248 if test "$enableval" = yes; then
d970f7d5 11249 wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
a848cd7e 11250 else
d970f7d5 11251 wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
a848cd7e
SC
11252 fi
11253
11254else
11255
d970f7d5 11256 wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
a848cd7e 11257
47964710
VS
11258fi
11259
a848cd7e 11260
d970f7d5 11261 eval "$wx_cv_use_notebook"
a848cd7e 11262
6e198e97 11263 if test x"$enablestring" = xdisable; then
7ac0e38e 11264 if test $wxUSE_NOTEBOOK = no; then
6e198e97 11265 result=yes
7ac0e38e
VZ
11266 else
11267 result=no
6e198e97 11268 fi
a848cd7e 11269 else
6e198e97 11270 result=$wxUSE_NOTEBOOK
a848cd7e
SC
11271 fi
11272
d589327a
VZ
11273 { echo "$as_me:$LINENO: result: $result" >&5
11274echo "${ECHO_T}$result" >&6; }
6e198e97 11275
a848cd7e 11276
e36a1739
VZ
11277 enablestring=
11278 defaultval=$wxUSE_ALL_FEATURES
11279 if test -z "$defaultval"; then
11280 if test x"$enablestring" = xdisable; then
11281 defaultval=yes
11282 else
11283 defaultval=no
11284 fi
11285 fi
11286
d589327a
VZ
11287 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11288echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
e36a1739
VZ
11289 # Check whether --enable-notifmsg was given.
11290if test "${enable_notifmsg+set}" = set; then
11291 enableval=$enable_notifmsg;
11292 if test "$enableval" = yes; then
11293 wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11294 else
11295 wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11296 fi
11297
11298else
11299
11300 wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11301
11302fi
11303
11304
11305 eval "$wx_cv_use_notifmsg"
11306
11307 if test x"$enablestring" = xdisable; then
7ac0e38e 11308 if test $wxUSE_NOTIFICATION_MESSAGE = no; then
e36a1739 11309 result=yes
7ac0e38e
VZ
11310 else
11311 result=no
e36a1739
VZ
11312 fi
11313 else
11314 result=$wxUSE_NOTIFICATION_MESSAGE
11315 fi
11316
d589327a
VZ
11317 { echo "$as_me:$LINENO: result: $result" >&5
11318echo "${ECHO_T}$result" >&6; }
e36a1739
VZ
11319
11320
077c7880 11321 enablestring=
6e198e97 11322 defaultval=$wxUSE_ALL_FEATURES
238663c1 11323 if test -z "$defaultval"; then
6e198e97
VZ
11324 if test x"$enablestring" = xdisable; then
11325 defaultval=yes
11326 else
11327 defaultval=no
11328 fi
11329 fi
11330
d589327a
VZ
11331 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11332echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
47964710 11333 # Check whether --enable-odcombobox was given.
a57d600f 11334if test "${enable_odcombobox+set}" = set; then
47964710 11335 enableval=$enable_odcombobox;
642bcba9 11336 if test "$enableval" = yes; then
d970f7d5 11337 wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 11338 else
d970f7d5 11339 wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
11340 fi
11341
11342else
11343
d970f7d5 11344 wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
642bcba9 11345
47964710
VS
11346fi
11347
642bcba9 11348
d970f7d5 11349 eval "$wx_cv_use_odcombobox"
642bcba9 11350
6e198e97 11351 if test x"$enablestring" = xdisable; then
7ac0e38e 11352 if test $wxUSE_ODCOMBOBOX = no; then
6e198e97 11353 result=yes
7ac0e38e
VZ
11354 else
11355 result=no
6e198e97 11356 fi
642bcba9 11357 else
6e198e97 11358 result=$wxUSE_ODCOMBOBOX
642bcba9
VZ
11359 fi
11360
d589327a
VZ
11361 { echo "$as_me:$LINENO: result: $result" >&5
11362echo "${ECHO_T}$result" >&6; }
6e198e97 11363
642bcba9 11364
e6d984e2
VZ
11365 enablestring=
11366 defaultval=$wxUSE_ALL_FEATURES
11367 if test -z "$defaultval"; then
11368 if test x"$enablestring" = xdisable; then
11369 defaultval=yes
11370 else
11371 defaultval=no
11372 fi
11373 fi
11374
d589327a
VZ
11375 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11376echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
e6d984e2
VZ
11377 # Check whether --enable-popupwin was given.
11378if test "${enable_popupwin+set}" = set; then
11379 enableval=$enable_popupwin;
11380 if test "$enableval" = yes; then
11381 wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11382 else
11383 wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11384 fi
11385
11386else
11387
11388 wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11389
11390fi
11391
11392
11393 eval "$wx_cv_use_popupwin"
11394
11395 if test x"$enablestring" = xdisable; then
7ac0e38e 11396 if test $wxUSE_POPUPWIN = no; then
e6d984e2 11397 result=yes
7ac0e38e
VZ
11398 else
11399 result=no
e6d984e2
VZ
11400 fi
11401 else
11402 result=$wxUSE_POPUPWIN
11403 fi
11404
d589327a
VZ
11405 { echo "$as_me:$LINENO: result: $result" >&5
11406echo "${ECHO_T}$result" >&6; }
e6d984e2
VZ
11407
11408
077c7880 11409 enablestring=
6e198e97 11410 defaultval=$wxUSE_ALL_FEATURES
238663c1 11411 if test -z "$defaultval"; then
6e198e97
VZ
11412 if test x"$enablestring" = xdisable; then
11413 defaultval=yes
11414 else
11415 defaultval=no
11416 fi
11417 fi
11418
d589327a
VZ
11419 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11420echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
47964710 11421 # Check whether --enable-radiobox was given.
a848cd7e 11422if test "${enable_radiobox+set}" = set; then
47964710 11423 enableval=$enable_radiobox;
a848cd7e 11424 if test "$enableval" = yes; then
d970f7d5 11425 wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
a848cd7e 11426 else
d970f7d5 11427 wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
a848cd7e
SC
11428 fi
11429
11430else
11431
d970f7d5 11432 wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
a848cd7e 11433
47964710
VS
11434fi
11435
a848cd7e 11436
d970f7d5 11437 eval "$wx_cv_use_radiobox"
a848cd7e 11438
6e198e97 11439 if test x"$enablestring" = xdisable; then
7ac0e38e 11440 if test $wxUSE_RADIOBOX = no; then
6e198e97 11441 result=yes
7ac0e38e
VZ
11442 else
11443 result=no
6e198e97 11444 fi
a848cd7e 11445 else
6e198e97 11446 result=$wxUSE_RADIOBOX
a848cd7e
SC
11447 fi
11448
d589327a
VZ
11449 { echo "$as_me:$LINENO: result: $result" >&5
11450echo "${ECHO_T}$result" >&6; }
6e198e97 11451
a848cd7e 11452
077c7880 11453 enablestring=
6e198e97 11454 defaultval=$wxUSE_ALL_FEATURES
238663c1 11455 if test -z "$defaultval"; then
6e198e97
VZ
11456 if test x"$enablestring" = xdisable; then
11457 defaultval=yes
11458 else
11459 defaultval=no
11460 fi
11461 fi
11462
d589327a
VZ
11463 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11464echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
47964710 11465 # Check whether --enable-radiobtn was given.
a848cd7e 11466if test "${enable_radiobtn+set}" = set; then
47964710 11467 enableval=$enable_radiobtn;
a848cd7e 11468 if test "$enableval" = yes; then
d970f7d5 11469 wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
a848cd7e 11470 else
d970f7d5 11471 wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
a848cd7e
SC
11472 fi
11473
11474else
11475
d970f7d5 11476 wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
a848cd7e 11477
47964710
VS
11478fi
11479
a848cd7e 11480
d970f7d5 11481 eval "$wx_cv_use_radiobtn"
a848cd7e 11482
6e198e97 11483 if test x"$enablestring" = xdisable; then
7ac0e38e 11484 if test $wxUSE_RADIOBTN = no; then
6e198e97 11485 result=yes
7ac0e38e
VZ
11486 else
11487 result=no
6e198e97 11488 fi
a848cd7e 11489 else
6e198e97 11490 result=$wxUSE_RADIOBTN
a848cd7e
SC
11491 fi
11492
d589327a
VZ
11493 { echo "$as_me:$LINENO: result: $result" >&5
11494echo "${ECHO_T}$result" >&6; }
6e198e97 11495
a848cd7e 11496
f0bb342f
VZ
11497 enablestring=
11498 defaultval=$wxUSE_ALL_FEATURES
11499 if test -z "$defaultval"; then
11500 if test x"$enablestring" = xdisable; then
11501 defaultval=yes
11502 else
11503 defaultval=no
11504 fi
11505 fi
11506
d589327a
VZ
11507 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11508echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
f0bb342f
VZ
11509 # Check whether --enable-rearrangectrl was given.
11510if test "${enable_rearrangectrl+set}" = set; then
11511 enableval=$enable_rearrangectrl;
11512 if test "$enableval" = yes; then
11513 wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11514 else
11515 wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11516 fi
11517
11518else
11519
11520 wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11521
11522fi
11523
11524
11525 eval "$wx_cv_use_rearrangectrl"
11526
11527 if test x"$enablestring" = xdisable; then
7ac0e38e 11528 if test $wxUSE_REARRANGECTRL = no; then
f0bb342f 11529 result=yes
7ac0e38e
VZ
11530 else
11531 result=no
f0bb342f
VZ
11532 fi
11533 else
11534 result=$wxUSE_REARRANGECTRL
11535 fi
11536
d589327a
VZ
11537 { echo "$as_me:$LINENO: result: $result" >&5
11538echo "${ECHO_T}$result" >&6; }
f0bb342f
VZ
11539
11540
077c7880 11541 enablestring=
6e198e97 11542 defaultval=$wxUSE_ALL_FEATURES
238663c1 11543 if test -z "$defaultval"; then
6e198e97
VZ
11544 if test x"$enablestring" = xdisable; then
11545 defaultval=yes
11546 else
11547 defaultval=no
11548 fi
11549 fi
11550
d589327a
VZ
11551 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11552echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
47964710 11553 # Check whether --enable-sash was given.
a848cd7e 11554if test "${enable_sash+set}" = set; then
47964710 11555 enableval=$enable_sash;
a848cd7e 11556 if test "$enableval" = yes; then
d970f7d5 11557 wx_cv_use_sash='wxUSE_SASH=yes'
a848cd7e 11558 else
d970f7d5 11559 wx_cv_use_sash='wxUSE_SASH=no'
a848cd7e
SC
11560 fi
11561
11562else
11563
d970f7d5 11564 wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
a848cd7e 11565
47964710
VS
11566fi
11567
a848cd7e 11568
d970f7d5 11569 eval "$wx_cv_use_sash"
a848cd7e 11570
6e198e97 11571 if test x"$enablestring" = xdisable; then
7ac0e38e 11572 if test $wxUSE_SASH = no; then
6e198e97 11573 result=yes
7ac0e38e
VZ
11574 else
11575 result=no
6e198e97 11576 fi
a848cd7e 11577 else
6e198e97 11578 result=$wxUSE_SASH
a848cd7e
SC
11579 fi
11580
d589327a
VZ
11581 { echo "$as_me:$LINENO: result: $result" >&5
11582echo "${ECHO_T}$result" >&6; }
6e198e97 11583
a848cd7e 11584
077c7880 11585 enablestring=
6e198e97 11586 defaultval=$wxUSE_ALL_FEATURES
238663c1 11587 if test -z "$defaultval"; then
6e198e97
VZ
11588 if test x"$enablestring" = xdisable; then
11589 defaultval=yes
11590 else
11591 defaultval=no
11592 fi
11593 fi
11594
d589327a
VZ
11595 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11596echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
47964710 11597 # Check whether --enable-scrollbar was given.
a848cd7e 11598if test "${enable_scrollbar+set}" = set; then
47964710 11599 enableval=$enable_scrollbar;
a848cd7e 11600 if test "$enableval" = yes; then
d970f7d5 11601 wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
a848cd7e 11602 else
d970f7d5 11603 wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
a848cd7e
SC
11604 fi
11605
11606else
11607
d970f7d5 11608 wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
a848cd7e 11609
47964710
VS
11610fi
11611
a848cd7e 11612
d970f7d5 11613 eval "$wx_cv_use_scrollbar"
a848cd7e 11614
6e198e97 11615 if test x"$enablestring" = xdisable; then
7ac0e38e 11616 if test $wxUSE_SCROLLBAR = no; then
6e198e97 11617 result=yes
7ac0e38e
VZ
11618 else
11619 result=no
6e198e97 11620 fi
a848cd7e 11621 else
6e198e97 11622 result=$wxUSE_SCROLLBAR
a848cd7e
SC
11623 fi
11624
d589327a
VZ
11625 { echo "$as_me:$LINENO: result: $result" >&5
11626echo "${ECHO_T}$result" >&6; }
6e198e97 11627
a848cd7e 11628
077c7880 11629 enablestring=
6e198e97 11630 defaultval=$wxUSE_ALL_FEATURES
238663c1 11631 if test -z "$defaultval"; then
6e198e97
VZ
11632 if test x"$enablestring" = xdisable; then
11633 defaultval=yes
11634 else
11635 defaultval=no
11636 fi
11637 fi
11638
d589327a
VZ
11639 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11640echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
47964710 11641 # Check whether --enable-searchctrl was given.
3f7f284d 11642if test "${enable_searchctrl+set}" = set; then
47964710 11643 enableval=$enable_searchctrl;
3f7f284d 11644 if test "$enableval" = yes; then
d970f7d5 11645 wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
3f7f284d 11646 else
d970f7d5 11647 wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
3f7f284d 11648 fi
a848cd7e 11649
3f7f284d
RD
11650else
11651
d970f7d5 11652 wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
3f7f284d 11653
47964710
VS
11654fi
11655
3f7f284d 11656
d970f7d5 11657 eval "$wx_cv_use_searchctrl"
3f7f284d 11658
6e198e97 11659 if test x"$enablestring" = xdisable; then
7ac0e38e 11660 if test $wxUSE_SEARCHCTRL = no; then
6e198e97 11661 result=yes
7ac0e38e
VZ
11662 else
11663 result=no
6e198e97 11664 fi
3f7f284d 11665 else
6e198e97 11666 result=$wxUSE_SEARCHCTRL
3f7f284d
RD
11667 fi
11668
d589327a
VZ
11669 { echo "$as_me:$LINENO: result: $result" >&5
11670echo "${ECHO_T}$result" >&6; }
6e198e97 11671
3f7f284d
RD
11672
11673 enablestring=
6e198e97 11674 defaultval=$wxUSE_ALL_FEATURES
238663c1 11675 if test -z "$defaultval"; then
6e198e97
VZ
11676 if test x"$enablestring" = xdisable; then
11677 defaultval=yes
11678 else
11679 defaultval=no
11680 fi
11681 fi
11682
d589327a
VZ
11683 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11684echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
47964710 11685 # Check whether --enable-slider was given.
3f7f284d 11686if test "${enable_slider+set}" = set; then
47964710 11687 enableval=$enable_slider;
a848cd7e 11688 if test "$enableval" = yes; then
d970f7d5 11689 wx_cv_use_slider='wxUSE_SLIDER=yes'
a848cd7e 11690 else
d970f7d5 11691 wx_cv_use_slider='wxUSE_SLIDER=no'
a848cd7e
SC
11692 fi
11693
11694else
11695
d970f7d5 11696 wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
a848cd7e 11697
47964710
VS
11698fi
11699
a848cd7e 11700
d970f7d5 11701 eval "$wx_cv_use_slider"
a848cd7e 11702
6e198e97 11703 if test x"$enablestring" = xdisable; then
7ac0e38e 11704 if test $wxUSE_SLIDER = no; then
6e198e97 11705 result=yes
7ac0e38e
VZ
11706 else
11707 result=no
6e198e97 11708 fi
a848cd7e 11709 else
6e198e97 11710 result=$wxUSE_SLIDER
a848cd7e
SC
11711 fi
11712
d589327a
VZ
11713 { echo "$as_me:$LINENO: result: $result" >&5
11714echo "${ECHO_T}$result" >&6; }
6e198e97 11715
a848cd7e 11716
077c7880 11717 enablestring=
6e198e97 11718 defaultval=$wxUSE_ALL_FEATURES
238663c1 11719 if test -z "$defaultval"; then
6e198e97
VZ
11720 if test x"$enablestring" = xdisable; then
11721 defaultval=yes
11722 else
11723 defaultval=no
11724 fi
11725 fi
11726
d589327a
VZ
11727 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11728echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
47964710 11729 # Check whether --enable-spinbtn was given.
a848cd7e 11730if test "${enable_spinbtn+set}" = set; then
47964710 11731 enableval=$enable_spinbtn;
a848cd7e 11732 if test "$enableval" = yes; then
d970f7d5 11733 wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
a848cd7e 11734 else
d970f7d5 11735 wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
a848cd7e
SC
11736 fi
11737
11738else
11739
d970f7d5 11740 wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
a848cd7e 11741
47964710
VS
11742fi
11743
a848cd7e 11744
d970f7d5 11745 eval "$wx_cv_use_spinbtn"
a848cd7e 11746
6e198e97 11747 if test x"$enablestring" = xdisable; then
7ac0e38e 11748 if test $wxUSE_SPINBTN = no; then
6e198e97 11749 result=yes
7ac0e38e
VZ
11750 else
11751 result=no
6e198e97 11752 fi
a848cd7e 11753 else
6e198e97 11754 result=$wxUSE_SPINBTN
a848cd7e
SC
11755 fi
11756
d589327a
VZ
11757 { echo "$as_me:$LINENO: result: $result" >&5
11758echo "${ECHO_T}$result" >&6; }
6e198e97 11759
a848cd7e 11760
077c7880 11761 enablestring=
6e198e97 11762 defaultval=$wxUSE_ALL_FEATURES
238663c1 11763 if test -z "$defaultval"; then
6e198e97
VZ
11764 if test x"$enablestring" = xdisable; then
11765 defaultval=yes
11766 else
11767 defaultval=no
11768 fi
11769 fi
11770
d589327a
VZ
11771 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11772echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
47964710 11773 # Check whether --enable-spinctrl was given.
a848cd7e 11774if test "${enable_spinctrl+set}" = set; then
47964710 11775 enableval=$enable_spinctrl;
a848cd7e 11776 if test "$enableval" = yes; then
d970f7d5 11777 wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
a848cd7e 11778 else
d970f7d5 11779 wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
a848cd7e
SC
11780 fi
11781
11782else
11783
d970f7d5 11784 wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
a848cd7e 11785
47964710
VS
11786fi
11787
a848cd7e 11788
d970f7d5 11789 eval "$wx_cv_use_spinctrl"
a848cd7e 11790
6e198e97 11791 if test x"$enablestring" = xdisable; then
7ac0e38e 11792 if test $wxUSE_SPINCTRL = no; then
6e198e97 11793 result=yes
7ac0e38e
VZ
11794 else
11795 result=no
6e198e97 11796 fi
a848cd7e 11797 else
6e198e97 11798 result=$wxUSE_SPINCTRL
a848cd7e
SC
11799 fi
11800
d589327a
VZ
11801 { echo "$as_me:$LINENO: result: $result" >&5
11802echo "${ECHO_T}$result" >&6; }
6e198e97 11803
a848cd7e 11804
077c7880 11805 enablestring=
6e198e97 11806 defaultval=$wxUSE_ALL_FEATURES
238663c1 11807 if test -z "$defaultval"; then
6e198e97
VZ
11808 if test x"$enablestring" = xdisable; then
11809 defaultval=yes
11810 else
11811 defaultval=no
11812 fi
11813 fi
11814
d589327a
VZ
11815 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11816echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
47964710 11817 # Check whether --enable-splitter was given.
a848cd7e 11818if test "${enable_splitter+set}" = set; then
47964710 11819 enableval=$enable_splitter;
a848cd7e 11820 if test "$enableval" = yes; then
d970f7d5 11821 wx_cv_use_splitter='wxUSE_SPLITTER=yes'
a848cd7e 11822 else
d970f7d5 11823 wx_cv_use_splitter='wxUSE_SPLITTER=no'
a848cd7e
SC
11824 fi
11825
11826else
11827
d970f7d5 11828 wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
a848cd7e 11829
47964710
VS
11830fi
11831
a848cd7e 11832
d970f7d5 11833 eval "$wx_cv_use_splitter"
a848cd7e 11834
6e198e97 11835 if test x"$enablestring" = xdisable; then
7ac0e38e 11836 if test $wxUSE_SPLITTER = no; then
6e198e97 11837 result=yes
7ac0e38e
VZ
11838 else
11839 result=no
6e198e97 11840 fi
a848cd7e 11841 else
6e198e97 11842 result=$wxUSE_SPLITTER
a848cd7e
SC
11843 fi
11844
d589327a
VZ
11845 { echo "$as_me:$LINENO: result: $result" >&5
11846echo "${ECHO_T}$result" >&6; }
6e198e97 11847
a848cd7e 11848
077c7880 11849 enablestring=
6e198e97 11850 defaultval=$wxUSE_ALL_FEATURES
238663c1 11851 if test -z "$defaultval"; then
6e198e97
VZ
11852 if test x"$enablestring" = xdisable; then
11853 defaultval=yes
11854 else
11855 defaultval=no
11856 fi
11857 fi
11858
d589327a
VZ
11859 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11860echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
47964710 11861 # Check whether --enable-statbmp was given.
a848cd7e 11862if test "${enable_statbmp+set}" = set; then
47964710 11863 enableval=$enable_statbmp;
a848cd7e 11864 if test "$enableval" = yes; then
d970f7d5 11865 wx_cv_use_statbmp='wxUSE_STATBMP=yes'
a848cd7e 11866 else
d970f7d5 11867 wx_cv_use_statbmp='wxUSE_STATBMP=no'
a848cd7e
SC
11868 fi
11869
11870else
11871
d970f7d5 11872 wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
a848cd7e 11873
47964710
VS
11874fi
11875
a848cd7e 11876
d970f7d5 11877 eval "$wx_cv_use_statbmp"
a848cd7e 11878
6e198e97 11879 if test x"$enablestring" = xdisable; then
7ac0e38e 11880 if test $wxUSE_STATBMP = no; then
6e198e97 11881 result=yes
7ac0e38e
VZ
11882 else
11883 result=no
6e198e97 11884 fi
a848cd7e 11885 else
6e198e97 11886 result=$wxUSE_STATBMP
a848cd7e
SC
11887 fi
11888
d589327a
VZ
11889 { echo "$as_me:$LINENO: result: $result" >&5
11890echo "${ECHO_T}$result" >&6; }
6e198e97 11891
a848cd7e 11892
077c7880 11893 enablestring=
6e198e97 11894 defaultval=$wxUSE_ALL_FEATURES
238663c1 11895 if test -z "$defaultval"; then
6e198e97
VZ
11896 if test x"$enablestring" = xdisable; then
11897 defaultval=yes
11898 else
11899 defaultval=no
11900 fi
11901 fi
11902
d589327a
VZ
11903 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11904echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
47964710 11905 # Check whether --enable-statbox was given.
a848cd7e 11906if test "${enable_statbox+set}" = set; then
47964710 11907 enableval=$enable_statbox;
a848cd7e 11908 if test "$enableval" = yes; then
d970f7d5 11909 wx_cv_use_statbox='wxUSE_STATBOX=yes'
a848cd7e 11910 else
d970f7d5 11911 wx_cv_use_statbox='wxUSE_STATBOX=no'
a848cd7e
SC
11912 fi
11913
11914else
11915
d970f7d5 11916 wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
a848cd7e 11917
47964710
VS
11918fi
11919
a848cd7e 11920
d970f7d5 11921 eval "$wx_cv_use_statbox"
a848cd7e 11922
6e198e97 11923 if test x"$enablestring" = xdisable; then
7ac0e38e 11924 if test $wxUSE_STATBOX = no; then
6e198e97 11925 result=yes
7ac0e38e
VZ
11926 else
11927 result=no
6e198e97 11928 fi
a848cd7e 11929 else
6e198e97 11930 result=$wxUSE_STATBOX
a848cd7e
SC
11931 fi
11932
d589327a
VZ
11933 { echo "$as_me:$LINENO: result: $result" >&5
11934echo "${ECHO_T}$result" >&6; }
6e198e97 11935
a848cd7e 11936
077c7880 11937 enablestring=
6e198e97 11938 defaultval=$wxUSE_ALL_FEATURES
238663c1 11939 if test -z "$defaultval"; then
6e198e97
VZ
11940 if test x"$enablestring" = xdisable; then
11941 defaultval=yes
11942 else
11943 defaultval=no
11944 fi
11945 fi
11946
d589327a
VZ
11947 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11948echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
47964710 11949 # Check whether --enable-statline was given.
a848cd7e 11950if test "${enable_statline+set}" = set; then
47964710 11951 enableval=$enable_statline;
a848cd7e 11952 if test "$enableval" = yes; then
d970f7d5 11953 wx_cv_use_statline='wxUSE_STATLINE=yes'
a848cd7e 11954 else
d970f7d5 11955 wx_cv_use_statline='wxUSE_STATLINE=no'
a848cd7e
SC
11956 fi
11957
11958else
11959
d970f7d5 11960 wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
a848cd7e 11961
47964710
VS
11962fi
11963
a848cd7e 11964
d970f7d5 11965 eval "$wx_cv_use_statline"
a848cd7e 11966
6e198e97 11967 if test x"$enablestring" = xdisable; then
7ac0e38e 11968 if test $wxUSE_STATLINE = no; then
6e198e97 11969 result=yes
7ac0e38e
VZ
11970 else
11971 result=no
6e198e97 11972 fi
a848cd7e 11973 else
6e198e97 11974 result=$wxUSE_STATLINE
a848cd7e
SC
11975 fi
11976
d589327a
VZ
11977 { echo "$as_me:$LINENO: result: $result" >&5
11978echo "${ECHO_T}$result" >&6; }
6e198e97 11979
a848cd7e 11980
077c7880 11981 enablestring=
6e198e97 11982 defaultval=$wxUSE_ALL_FEATURES
238663c1 11983 if test -z "$defaultval"; then
6e198e97
VZ
11984 if test x"$enablestring" = xdisable; then
11985 defaultval=yes
11986 else
11987 defaultval=no
11988 fi
11989 fi
11990
d589327a
VZ
11991 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11992echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
47964710 11993 # Check whether --enable-stattext was given.
a848cd7e 11994if test "${enable_stattext+set}" = set; then
47964710 11995 enableval=$enable_stattext;
a848cd7e 11996 if test "$enableval" = yes; then
d970f7d5 11997 wx_cv_use_stattext='wxUSE_STATTEXT=yes'
a848cd7e 11998 else
d970f7d5 11999 wx_cv_use_stattext='wxUSE_STATTEXT=no'
a848cd7e
SC
12000 fi
12001
12002else
12003
d970f7d5 12004 wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
a848cd7e 12005
47964710
VS
12006fi
12007
a848cd7e 12008
d970f7d5 12009 eval "$wx_cv_use_stattext"
a848cd7e 12010
6e198e97 12011 if test x"$enablestring" = xdisable; then
7ac0e38e 12012 if test $wxUSE_STATTEXT = no; then
6e198e97 12013 result=yes
7ac0e38e
VZ
12014 else
12015 result=no
6e198e97 12016 fi
a848cd7e 12017 else
6e198e97 12018 result=$wxUSE_STATTEXT
a848cd7e
SC
12019 fi
12020
d589327a
VZ
12021 { echo "$as_me:$LINENO: result: $result" >&5
12022echo "${ECHO_T}$result" >&6; }
6e198e97 12023
a848cd7e 12024
077c7880 12025 enablestring=
6e198e97 12026 defaultval=$wxUSE_ALL_FEATURES
238663c1 12027 if test -z "$defaultval"; then
6e198e97
VZ
12028 if test x"$enablestring" = xdisable; then
12029 defaultval=yes
12030 else
12031 defaultval=no
12032 fi
12033 fi
12034
d589327a
VZ
12035 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12036echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
47964710 12037 # Check whether --enable-statusbar was given.
a848cd7e 12038if test "${enable_statusbar+set}" = set; then
47964710 12039 enableval=$enable_statusbar;
a848cd7e 12040 if test "$enableval" = yes; then
d970f7d5 12041 wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
a848cd7e 12042 else
d970f7d5 12043 wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
a848cd7e
SC
12044 fi
12045
12046else
12047
d970f7d5 12048 wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
a848cd7e 12049
47964710
VS
12050fi
12051
a848cd7e 12052
d970f7d5 12053 eval "$wx_cv_use_statusbar"
a848cd7e 12054
6e198e97 12055 if test x"$enablestring" = xdisable; then
7ac0e38e 12056 if test $wxUSE_STATUSBAR = no; then
6e198e97 12057 result=yes
7ac0e38e
VZ
12058 else
12059 result=no
6e198e97 12060 fi
a848cd7e 12061 else
6e198e97 12062 result=$wxUSE_STATUSBAR
a848cd7e
SC
12063 fi
12064
d589327a
VZ
12065 { echo "$as_me:$LINENO: result: $result" >&5
12066echo "${ECHO_T}$result" >&6; }
6e198e97 12067
a848cd7e 12068
4f167b46
VZ
12069 enablestring=
12070 defaultval=$wxUSE_ALL_FEATURES
12071 if test -z "$defaultval"; then
12072 if test x"$enablestring" = xdisable; then
12073 defaultval=yes
12074 else
12075 defaultval=no
12076 fi
12077 fi
12078
d589327a
VZ
12079 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12080echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
47964710 12081 # Check whether --enable-taskbaricon was given.
4f167b46 12082if test "${enable_taskbaricon+set}" = set; then
47964710 12083 enableval=$enable_taskbaricon;
4f167b46
VZ
12084 if test "$enableval" = yes; then
12085 wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12086 else
12087 wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12088 fi
12089
12090else
12091
4f167b46
VZ
12092 wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12093
47964710
VS
12094fi
12095
4f167b46
VZ
12096
12097 eval "$wx_cv_use_taskbaricon"
4f167b46
VZ
12098
12099 if test x"$enablestring" = xdisable; then
7ac0e38e 12100 if test $wxUSE_TASKBARICON = no; then
4f167b46 12101 result=yes
7ac0e38e
VZ
12102 else
12103 result=no
4f167b46
VZ
12104 fi
12105 else
12106 result=$wxUSE_TASKBARICON
12107 fi
12108
d589327a
VZ
12109 { echo "$as_me:$LINENO: result: $result" >&5
12110echo "${ECHO_T}$result" >&6; }
4f167b46
VZ
12111
12112
077c7880 12113 enablestring=
6e198e97 12114 defaultval=$wxUSE_ALL_FEATURES
238663c1 12115 if test -z "$defaultval"; then
6e198e97
VZ
12116 if test x"$enablestring" = xdisable; then
12117 defaultval=yes
12118 else
12119 defaultval=no
12120 fi
12121 fi
12122
d589327a
VZ
12123 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12124echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
e6d984e2
VZ
12125 # Check whether --enable-tbarnative was given.
12126if test "${enable_tbarnative+set}" = set; then
12127 enableval=$enable_tbarnative;
a848cd7e 12128 if test "$enableval" = yes; then
e6d984e2 12129 wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
a848cd7e 12130 else
e6d984e2 12131 wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
a848cd7e
SC
12132 fi
12133
12134else
12135
e6d984e2 12136 wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
a848cd7e 12137
47964710
VS
12138fi
12139
a848cd7e 12140
e6d984e2 12141 eval "$wx_cv_use_tbarnative"
a848cd7e 12142
6e198e97 12143 if test x"$enablestring" = xdisable; then
7ac0e38e 12144 if test $wxUSE_TOOLBAR_NATIVE = no; then
6e198e97 12145 result=yes
7ac0e38e
VZ
12146 else
12147 result=no
6e198e97 12148 fi
a848cd7e 12149 else
e6d984e2 12150 result=$wxUSE_TOOLBAR_NATIVE
a848cd7e
SC
12151 fi
12152
d589327a
VZ
12153 { echo "$as_me:$LINENO: result: $result" >&5
12154echo "${ECHO_T}$result" >&6; }
6e198e97 12155
a848cd7e 12156
077c7880 12157 enablestring=
6e198e97 12158 defaultval=$wxUSE_ALL_FEATURES
238663c1 12159 if test -z "$defaultval"; then
6e198e97
VZ
12160 if test x"$enablestring" = xdisable; then
12161 defaultval=yes
12162 else
12163 defaultval=no
12164 fi
12165 fi
12166
d589327a
VZ
12167 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12168echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
e6d984e2
VZ
12169 # Check whether --enable-textctrl was given.
12170if test "${enable_textctrl+set}" = set; then
12171 enableval=$enable_textctrl;
a848cd7e 12172 if test "$enableval" = yes; then
e6d984e2 12173 wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
a848cd7e 12174 else
e6d984e2 12175 wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
a848cd7e
SC
12176 fi
12177
12178else
12179
e6d984e2 12180 wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
a848cd7e 12181
47964710
VS
12182fi
12183
a848cd7e 12184
e6d984e2 12185 eval "$wx_cv_use_textctrl"
a848cd7e 12186
6e198e97 12187 if test x"$enablestring" = xdisable; then
7ac0e38e 12188 if test $wxUSE_TEXTCTRL = no; then
6e198e97 12189 result=yes
7ac0e38e
VZ
12190 else
12191 result=no
6e198e97 12192 fi
a848cd7e 12193 else
e6d984e2 12194 result=$wxUSE_TEXTCTRL
a848cd7e
SC
12195 fi
12196
d589327a
VZ
12197 { echo "$as_me:$LINENO: result: $result" >&5
12198echo "${ECHO_T}$result" >&6; }
6e198e97 12199
a848cd7e 12200
077c7880 12201 enablestring=
6e198e97 12202 defaultval=$wxUSE_ALL_FEATURES
238663c1 12203 if test -z "$defaultval"; then
6e198e97
VZ
12204 if test x"$enablestring" = xdisable; then
12205 defaultval=yes
12206 else
12207 defaultval=no
12208 fi
12209 fi
12210
d589327a
VZ
12211 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12212echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
e6d984e2
VZ
12213 # Check whether --enable-tipwindow was given.
12214if test "${enable_tipwindow+set}" = set; then
12215 enableval=$enable_tipwindow;
a848cd7e 12216 if test "$enableval" = yes; then
e6d984e2 12217 wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
a848cd7e 12218 else
e6d984e2 12219 wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
a848cd7e
SC
12220 fi
12221
12222else
12223
e6d984e2 12224 wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
a848cd7e 12225
47964710
VS
12226fi
12227
a848cd7e 12228
e6d984e2 12229 eval "$wx_cv_use_tipwindow"
a848cd7e 12230
6e198e97 12231 if test x"$enablestring" = xdisable; then
7ac0e38e 12232 if test $wxUSE_TIPWINDOW = no; then
6e198e97 12233 result=yes
7ac0e38e
VZ
12234 else
12235 result=no
6e198e97 12236 fi
a848cd7e 12237 else
e6d984e2 12238 result=$wxUSE_TIPWINDOW
a848cd7e
SC
12239 fi
12240
d589327a
VZ
12241 { echo "$as_me:$LINENO: result: $result" >&5
12242echo "${ECHO_T}$result" >&6; }
6e198e97 12243
a848cd7e 12244
077c7880 12245 enablestring=
6e198e97 12246 defaultval=$wxUSE_ALL_FEATURES
238663c1 12247 if test -z "$defaultval"; then
6e198e97
VZ
12248 if test x"$enablestring" = xdisable; then
12249 defaultval=yes
12250 else
12251 defaultval=no
12252 fi
12253 fi
12254
d589327a
VZ
12255 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12256echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
e6d984e2
VZ
12257 # Check whether --enable-togglebtn was given.
12258if test "${enable_togglebtn+set}" = set; then
12259 enableval=$enable_togglebtn;
a848cd7e 12260 if test "$enableval" = yes; then
e6d984e2 12261 wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
a848cd7e 12262 else
e6d984e2 12263 wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
a848cd7e
SC
12264 fi
12265
12266else
12267
e6d984e2 12268 wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
a848cd7e 12269
47964710
VS
12270fi
12271
a848cd7e 12272
e6d984e2 12273 eval "$wx_cv_use_togglebtn"
a848cd7e 12274
6e198e97 12275 if test x"$enablestring" = xdisable; then
7ac0e38e 12276 if test $wxUSE_TOGGLEBTN = no; then
6e198e97 12277 result=yes
7ac0e38e
VZ
12278 else
12279 result=no
6e198e97 12280 fi
a848cd7e 12281 else
e6d984e2 12282 result=$wxUSE_TOGGLEBTN
a848cd7e
SC
12283 fi
12284
d589327a
VZ
12285 { echo "$as_me:$LINENO: result: $result" >&5
12286echo "${ECHO_T}$result" >&6; }
6e198e97 12287
a848cd7e 12288
077c7880 12289 enablestring=
6e198e97 12290 defaultval=$wxUSE_ALL_FEATURES
238663c1 12291 if test -z "$defaultval"; then
6e198e97
VZ
12292 if test x"$enablestring" = xdisable; then
12293 defaultval=yes
12294 else
12295 defaultval=no
12296 fi
12297 fi
12298
d589327a
VZ
12299 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12300echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
e6d984e2
VZ
12301 # Check whether --enable-toolbar was given.
12302if test "${enable_toolbar+set}" = set; then
12303 enableval=$enable_toolbar;
0093c2fc 12304 if test "$enableval" = yes; then
e6d984e2 12305 wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
0093c2fc 12306 else
e6d984e2 12307 wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
0093c2fc
VZ
12308 fi
12309
12310else
12311
e6d984e2 12312 wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
0093c2fc 12313
47964710
VS
12314fi
12315
0093c2fc 12316
e6d984e2 12317 eval "$wx_cv_use_toolbar"
0093c2fc 12318
6e198e97 12319 if test x"$enablestring" = xdisable; then
7ac0e38e 12320 if test $wxUSE_TOOLBAR = no; then
6e198e97 12321 result=yes
7ac0e38e
VZ
12322 else
12323 result=no
6e198e97 12324 fi
0093c2fc 12325 else
e6d984e2 12326 result=$wxUSE_TOOLBAR
0093c2fc
VZ
12327 fi
12328
d589327a
VZ
12329 { echo "$as_me:$LINENO: result: $result" >&5
12330echo "${ECHO_T}$result" >&6; }
6e198e97 12331
0093c2fc 12332
077c7880 12333 enablestring=
6e198e97 12334 defaultval=$wxUSE_ALL_FEATURES
238663c1 12335 if test -z "$defaultval"; then
6e198e97
VZ
12336 if test x"$enablestring" = xdisable; then
12337 defaultval=yes
12338 else
12339 defaultval=no
12340 fi
12341 fi
12342
d589327a
VZ
12343 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12344echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
47964710 12345 # Check whether --enable-toolbook was given.
5ec3bc43 12346if test "${enable_toolbook+set}" = set; then
47964710 12347 enableval=$enable_toolbook;
5ec3bc43 12348 if test "$enableval" = yes; then
d970f7d5 12349 wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
5ec3bc43 12350 else
d970f7d5 12351 wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
5ec3bc43
JS
12352 fi
12353
12354else
12355
d970f7d5 12356 wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
5ec3bc43 12357
47964710
VS
12358fi
12359
5ec3bc43 12360
d970f7d5 12361 eval "$wx_cv_use_toolbook"
5ec3bc43 12362
6e198e97 12363 if test x"$enablestring" = xdisable; then
7ac0e38e 12364 if test $wxUSE_TOOLBOOK = no; then
6e198e97 12365 result=yes
7ac0e38e
VZ
12366 else
12367 result=no
6e198e97 12368 fi
5ec3bc43 12369 else
6e198e97 12370 result=$wxUSE_TOOLBOOK
5ec3bc43
JS
12371 fi
12372
d589327a
VZ
12373 { echo "$as_me:$LINENO: result: $result" >&5
12374echo "${ECHO_T}$result" >&6; }
6e198e97 12375
5ec3bc43 12376
077c7880 12377 enablestring=
6e198e97 12378 defaultval=$wxUSE_ALL_FEATURES
238663c1 12379 if test -z "$defaultval"; then
6e198e97
VZ
12380 if test x"$enablestring" = xdisable; then
12381 defaultval=yes
12382 else
12383 defaultval=no
12384 fi
12385 fi
12386
d589327a
VZ
12387 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12388echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
e6d984e2
VZ
12389 # Check whether --enable-treebook was given.
12390if test "${enable_treebook+set}" = set; then
12391 enableval=$enable_treebook;
a848cd7e 12392 if test "$enableval" = yes; then
e6d984e2 12393 wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
a848cd7e 12394 else
e6d984e2 12395 wx_cv_use_treebook='wxUSE_TREEBOOK=no'
a848cd7e
SC
12396 fi
12397
12398else
12399
e6d984e2 12400 wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
a848cd7e 12401
47964710
VS
12402fi
12403
a848cd7e 12404
e6d984e2 12405 eval "$wx_cv_use_treebook"
a848cd7e 12406
6e198e97 12407 if test x"$enablestring" = xdisable; then
7ac0e38e 12408 if test $wxUSE_TREEBOOK = no; then
6e198e97 12409 result=yes
7ac0e38e
VZ
12410 else
12411 result=no
6e198e97 12412 fi
a848cd7e 12413 else
e6d984e2 12414 result=$wxUSE_TREEBOOK
a848cd7e
SC
12415 fi
12416
d589327a
VZ
12417 { echo "$as_me:$LINENO: result: $result" >&5
12418echo "${ECHO_T}$result" >&6; }
6e198e97 12419
a848cd7e 12420
077c7880 12421 enablestring=
6e198e97 12422 defaultval=$wxUSE_ALL_FEATURES
238663c1 12423 if test -z "$defaultval"; then
6e198e97
VZ
12424 if test x"$enablestring" = xdisable; then
12425 defaultval=yes
12426 else
12427 defaultval=no
12428 fi
12429 fi
12430
d589327a
VZ
12431 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12432echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
e6d984e2
VZ
12433 # Check whether --enable-treectrl was given.
12434if test "${enable_treectrl+set}" = set; then
12435 enableval=$enable_treectrl;
a848cd7e 12436 if test "$enableval" = yes; then
e6d984e2 12437 wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
a848cd7e 12438 else
e6d984e2 12439 wx_cv_use_treectrl='wxUSE_TREECTRL=no'
a848cd7e
SC
12440 fi
12441
12442else
12443
e6d984e2 12444 wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
a848cd7e 12445
47964710
VS
12446fi
12447
a848cd7e 12448
e6d984e2 12449 eval "$wx_cv_use_treectrl"
a848cd7e 12450
6e198e97 12451 if test x"$enablestring" = xdisable; then
7ac0e38e 12452 if test $wxUSE_TREECTRL = no; then
6e198e97 12453 result=yes
7ac0e38e
VZ
12454 else
12455 result=no
6e198e97 12456 fi
a848cd7e 12457 else
e6d984e2 12458 result=$wxUSE_TREECTRL
a848cd7e
SC
12459 fi
12460
d589327a
VZ
12461 { echo "$as_me:$LINENO: result: $result" >&5
12462echo "${ECHO_T}$result" >&6; }
6e198e97 12463
a848cd7e
SC
12464
12465
12466
077c7880 12467 enablestring=
6e198e97 12468 defaultval=$wxUSE_ALL_FEATURES
238663c1 12469 if test -z "$defaultval"; then
6e198e97
VZ
12470 if test x"$enablestring" = xdisable; then
12471 defaultval=yes
12472 else
12473 defaultval=no
12474 fi
12475 fi
12476
d589327a
VZ
12477 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12478echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
47964710 12479 # Check whether --enable-commondlg was given.
a848cd7e 12480if test "${enable_commondlg+set}" = set; then
47964710 12481 enableval=$enable_commondlg;
a848cd7e 12482 if test "$enableval" = yes; then
d970f7d5 12483 wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
a848cd7e 12484 else
d970f7d5 12485 wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
a848cd7e
SC
12486 fi
12487
12488else
12489
d970f7d5 12490 wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
a848cd7e 12491
47964710
VS
12492fi
12493
a848cd7e 12494
d970f7d5 12495 eval "$wx_cv_use_commondlg"
a848cd7e 12496
6e198e97 12497 if test x"$enablestring" = xdisable; then
7ac0e38e 12498 if test $wxUSE_COMMONDLGS = no; then
6e198e97 12499 result=yes
7ac0e38e
VZ
12500 else
12501 result=no
6e198e97 12502 fi
a848cd7e 12503 else
6e198e97 12504 result=$wxUSE_COMMONDLGS
a848cd7e
SC
12505 fi
12506
d589327a
VZ
12507 { echo "$as_me:$LINENO: result: $result" >&5
12508echo "${ECHO_T}$result" >&6; }
6e198e97 12509
a848cd7e 12510
077c7880 12511 enablestring=
6e198e97 12512 defaultval=$wxUSE_ALL_FEATURES
238663c1 12513 if test -z "$defaultval"; then
6e198e97
VZ
12514 if test x"$enablestring" = xdisable; then
12515 defaultval=yes
12516 else
12517 defaultval=no
12518 fi
12519 fi
12520
d589327a
VZ
12521 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12522echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
47964710 12523 # Check whether --enable-aboutdlg was given.
319c5ed4 12524if test "${enable_aboutdlg+set}" = set; then
47964710 12525 enableval=$enable_aboutdlg;
319c5ed4 12526 if test "$enableval" = yes; then
d970f7d5 12527 wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
319c5ed4 12528 else
d970f7d5 12529 wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
319c5ed4
VZ
12530 fi
12531
12532else
12533
d970f7d5 12534 wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
319c5ed4 12535
47964710
VS
12536fi
12537
319c5ed4 12538
d970f7d5 12539 eval "$wx_cv_use_aboutdlg"
319c5ed4 12540
6e198e97 12541 if test x"$enablestring" = xdisable; then
7ac0e38e 12542 if test $wxUSE_ABOUTDLG = no; then
6e198e97 12543 result=yes
7ac0e38e
VZ
12544 else
12545 result=no
6e198e97 12546 fi
319c5ed4 12547 else
6e198e97 12548 result=$wxUSE_ABOUTDLG
319c5ed4
VZ
12549 fi
12550
d589327a
VZ
12551 { echo "$as_me:$LINENO: result: $result" >&5
12552echo "${ECHO_T}$result" >&6; }
6e198e97 12553
319c5ed4 12554
077c7880 12555 enablestring=
6e198e97 12556 defaultval=$wxUSE_ALL_FEATURES
238663c1 12557 if test -z "$defaultval"; then
6e198e97
VZ
12558 if test x"$enablestring" = xdisable; then
12559 defaultval=yes
12560 else
12561 defaultval=no
12562 fi
12563 fi
12564
d589327a
VZ
12565 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12566echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
47964710 12567 # Check whether --enable-choicedlg was given.
a848cd7e 12568if test "${enable_choicedlg+set}" = set; then
47964710 12569 enableval=$enable_choicedlg;
a848cd7e 12570 if test "$enableval" = yes; then
d970f7d5 12571 wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
a848cd7e 12572 else
d970f7d5 12573 wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
a848cd7e
SC
12574 fi
12575
12576else
12577
d970f7d5 12578 wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
a848cd7e 12579
47964710
VS
12580fi
12581
a848cd7e 12582
d970f7d5 12583 eval "$wx_cv_use_choicedlg"
a848cd7e 12584
6e198e97 12585 if test x"$enablestring" = xdisable; then
7ac0e38e 12586 if test $wxUSE_CHOICEDLG = no; then
6e198e97 12587 result=yes
7ac0e38e
VZ
12588 else
12589 result=no
6e198e97 12590 fi
a848cd7e 12591 else
6e198e97 12592 result=$wxUSE_CHOICEDLG
a848cd7e
SC
12593 fi
12594
d589327a
VZ
12595 { echo "$as_me:$LINENO: result: $result" >&5
12596echo "${ECHO_T}$result" >&6; }
6e198e97 12597
a848cd7e 12598
077c7880 12599 enablestring=
6e198e97 12600 defaultval=$wxUSE_ALL_FEATURES
238663c1 12601 if test -z "$defaultval"; then
6e198e97
VZ
12602 if test x"$enablestring" = xdisable; then
12603 defaultval=yes
12604 else
12605 defaultval=no
12606 fi
12607 fi
12608
d589327a
VZ
12609 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12610echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
47964710 12611 # Check whether --enable-coldlg was given.
a848cd7e 12612if test "${enable_coldlg+set}" = set; then
47964710 12613 enableval=$enable_coldlg;
a848cd7e 12614 if test "$enableval" = yes; then
d970f7d5 12615 wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
a848cd7e 12616 else
d970f7d5 12617 wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
a848cd7e
SC
12618 fi
12619
12620else
12621
d970f7d5 12622 wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
a848cd7e 12623
47964710
VS
12624fi
12625
a848cd7e 12626
d970f7d5 12627 eval "$wx_cv_use_coldlg"
a848cd7e 12628
6e198e97 12629 if test x"$enablestring" = xdisable; then
7ac0e38e 12630 if test $wxUSE_COLOURDLG = no; then
6e198e97 12631 result=yes
7ac0e38e
VZ
12632 else
12633 result=no
6e198e97 12634 fi
a848cd7e 12635 else
6e198e97 12636 result=$wxUSE_COLOURDLG
a848cd7e
SC
12637 fi
12638
d589327a
VZ
12639 { echo "$as_me:$LINENO: result: $result" >&5
12640echo "${ECHO_T}$result" >&6; }
6e198e97 12641
a848cd7e 12642
077c7880 12643 enablestring=
6e198e97 12644 defaultval=$wxUSE_ALL_FEATURES
238663c1 12645 if test -z "$defaultval"; then
6e198e97
VZ
12646 if test x"$enablestring" = xdisable; then
12647 defaultval=yes
12648 else
12649 defaultval=no
12650 fi
12651 fi
12652
d589327a
VZ
12653 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12654echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
47964710 12655 # Check whether --enable-filedlg was given.
a848cd7e 12656if test "${enable_filedlg+set}" = set; then
47964710 12657 enableval=$enable_filedlg;
a848cd7e 12658 if test "$enableval" = yes; then
d970f7d5 12659 wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
a848cd7e 12660 else
d970f7d5 12661 wx_cv_use_filedlg='wxUSE_FILEDLG=no'
a848cd7e
SC
12662 fi
12663
12664else
12665
d970f7d5 12666 wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
a848cd7e 12667
47964710
VS
12668fi
12669
a848cd7e 12670
d970f7d5 12671 eval "$wx_cv_use_filedlg"
a848cd7e 12672
6e198e97 12673 if test x"$enablestring" = xdisable; then
7ac0e38e 12674 if test $wxUSE_FILEDLG = no; then
6e198e97 12675 result=yes
7ac0e38e
VZ
12676 else
12677 result=no
6e198e97 12678 fi
a848cd7e 12679 else
6e198e97 12680 result=$wxUSE_FILEDLG
a848cd7e
SC
12681 fi
12682
d589327a
VZ
12683 { echo "$as_me:$LINENO: result: $result" >&5
12684echo "${ECHO_T}$result" >&6; }
6e198e97 12685
a848cd7e 12686
077c7880 12687 enablestring=
6e198e97 12688 defaultval=$wxUSE_ALL_FEATURES
238663c1 12689 if test -z "$defaultval"; then
6e198e97
VZ
12690 if test x"$enablestring" = xdisable; then
12691 defaultval=yes
12692 else
12693 defaultval=no
12694 fi
12695 fi
12696
d589327a
VZ
12697 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12698echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
47964710 12699 # Check whether --enable-finddlg was given.
a848cd7e 12700if test "${enable_finddlg+set}" = set; then
47964710 12701 enableval=$enable_finddlg;
a848cd7e 12702 if test "$enableval" = yes; then
d970f7d5 12703 wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
a848cd7e 12704 else
d970f7d5 12705 wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
a848cd7e
SC
12706 fi
12707
12708else
12709
d970f7d5 12710 wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
a848cd7e 12711
47964710
VS
12712fi
12713
a848cd7e 12714
d970f7d5 12715 eval "$wx_cv_use_finddlg"
a848cd7e 12716
6e198e97 12717 if test x"$enablestring" = xdisable; then
7ac0e38e 12718 if test $wxUSE_FINDREPLDLG = no; then
6e198e97 12719 result=yes
7ac0e38e
VZ
12720 else
12721 result=no
6e198e97 12722 fi
a848cd7e 12723 else
6e198e97 12724 result=$wxUSE_FINDREPLDLG
a848cd7e
SC
12725 fi
12726
d589327a
VZ
12727 { echo "$as_me:$LINENO: result: $result" >&5
12728echo "${ECHO_T}$result" >&6; }
6e198e97 12729
a848cd7e 12730
077c7880 12731 enablestring=
6e198e97 12732 defaultval=$wxUSE_ALL_FEATURES
238663c1 12733 if test -z "$defaultval"; then
6e198e97
VZ
12734 if test x"$enablestring" = xdisable; then
12735 defaultval=yes
12736 else
12737 defaultval=no
12738 fi
12739 fi
12740
d589327a
VZ
12741 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12742echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
47964710 12743 # Check whether --enable-fontdlg was given.
a848cd7e 12744if test "${enable_fontdlg+set}" = set; then
47964710 12745 enableval=$enable_fontdlg;
a848cd7e 12746 if test "$enableval" = yes; then
d970f7d5 12747 wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
a848cd7e 12748 else
d970f7d5 12749 wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
a848cd7e
SC
12750 fi
12751
12752else
12753
d970f7d5 12754 wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
a848cd7e 12755
47964710
VS
12756fi
12757
a848cd7e 12758
d970f7d5 12759 eval "$wx_cv_use_fontdlg"
a848cd7e 12760
6e198e97 12761 if test x"$enablestring" = xdisable; then
7ac0e38e 12762 if test $wxUSE_FONTDLG = no; then
6e198e97 12763 result=yes
7ac0e38e
VZ
12764 else
12765 result=no
6e198e97 12766 fi
a848cd7e 12767 else
6e198e97 12768 result=$wxUSE_FONTDLG
a848cd7e
SC
12769 fi
12770
d589327a
VZ
12771 { echo "$as_me:$LINENO: result: $result" >&5
12772echo "${ECHO_T}$result" >&6; }
6e198e97 12773
a848cd7e 12774
077c7880 12775 enablestring=
6e198e97 12776 defaultval=$wxUSE_ALL_FEATURES
238663c1 12777 if test -z "$defaultval"; then
6e198e97
VZ
12778 if test x"$enablestring" = xdisable; then
12779 defaultval=yes
12780 else
12781 defaultval=no
12782 fi
12783 fi
12784
d589327a
VZ
12785 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12786echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
47964710 12787 # Check whether --enable-dirdlg was given.
a848cd7e 12788if test "${enable_dirdlg+set}" = set; then
47964710 12789 enableval=$enable_dirdlg;
a848cd7e 12790 if test "$enableval" = yes; then
d970f7d5 12791 wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
a848cd7e 12792 else
d970f7d5 12793 wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
a848cd7e
SC
12794 fi
12795
12796else
12797
d970f7d5 12798 wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
a848cd7e 12799
47964710
VS
12800fi
12801
a848cd7e 12802
d970f7d5 12803 eval "$wx_cv_use_dirdlg"
a848cd7e 12804
6e198e97 12805 if test x"$enablestring" = xdisable; then
7ac0e38e 12806 if test $wxUSE_DIRDLG = no; then
6e198e97 12807 result=yes
7ac0e38e
VZ
12808 else
12809 result=no
6e198e97 12810 fi
a848cd7e 12811 else
6e198e97 12812 result=$wxUSE_DIRDLG
a848cd7e
SC
12813 fi
12814
d589327a
VZ
12815 { echo "$as_me:$LINENO: result: $result" >&5
12816echo "${ECHO_T}$result" >&6; }
6e198e97 12817
a848cd7e 12818
077c7880 12819 enablestring=
6e198e97 12820 defaultval=$wxUSE_ALL_FEATURES
238663c1 12821 if test -z "$defaultval"; then
6e198e97
VZ
12822 if test x"$enablestring" = xdisable; then
12823 defaultval=yes
12824 else
12825 defaultval=no
12826 fi
12827 fi
12828
d589327a
VZ
12829 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12830echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
47964710 12831 # Check whether --enable-msgdlg was given.
a848cd7e 12832if test "${enable_msgdlg+set}" = set; then
47964710 12833 enableval=$enable_msgdlg;
a848cd7e 12834 if test "$enableval" = yes; then
d970f7d5 12835 wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
a848cd7e 12836 else
d970f7d5 12837 wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
a848cd7e
SC
12838 fi
12839
12840else
12841
d970f7d5 12842 wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
a848cd7e 12843
47964710
VS
12844fi
12845
a848cd7e 12846
d970f7d5 12847 eval "$wx_cv_use_msgdlg"
a848cd7e 12848
6e198e97 12849 if test x"$enablestring" = xdisable; then
7ac0e38e 12850 if test $wxUSE_MSGDLG = no; then
6e198e97 12851 result=yes
7ac0e38e
VZ
12852 else
12853 result=no
6e198e97 12854 fi
a848cd7e 12855 else
6e198e97 12856 result=$wxUSE_MSGDLG
a848cd7e
SC
12857 fi
12858
d589327a
VZ
12859 { echo "$as_me:$LINENO: result: $result" >&5
12860echo "${ECHO_T}$result" >&6; }
6e198e97 12861
a848cd7e 12862
077c7880 12863 enablestring=
6e198e97 12864 defaultval=$wxUSE_ALL_FEATURES
238663c1 12865 if test -z "$defaultval"; then
6e198e97
VZ
12866 if test x"$enablestring" = xdisable; then
12867 defaultval=yes
12868 else
12869 defaultval=no
12870 fi
12871 fi
12872
d589327a
VZ
12873 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12874echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
47964710 12875 # Check whether --enable-numberdlg was given.
a848cd7e 12876if test "${enable_numberdlg+set}" = set; then
47964710 12877 enableval=$enable_numberdlg;
a848cd7e 12878 if test "$enableval" = yes; then
d970f7d5 12879 wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
a848cd7e 12880 else
d970f7d5 12881 wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
a848cd7e
SC
12882 fi
12883
12884else
12885
d970f7d5 12886 wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
a848cd7e 12887
47964710
VS
12888fi
12889
a848cd7e 12890
d970f7d5 12891 eval "$wx_cv_use_numberdlg"
a848cd7e 12892
6e198e97 12893 if test x"$enablestring" = xdisable; then
7ac0e38e 12894 if test $wxUSE_NUMBERDLG = no; then
6e198e97 12895 result=yes
7ac0e38e
VZ
12896 else
12897 result=no
6e198e97 12898 fi
a848cd7e 12899 else
6e198e97 12900 result=$wxUSE_NUMBERDLG
a848cd7e
SC
12901 fi
12902
d589327a
VZ
12903 { echo "$as_me:$LINENO: result: $result" >&5
12904echo "${ECHO_T}$result" >&6; }
6e198e97 12905
a848cd7e 12906
077c7880 12907 enablestring=
6e198e97 12908 defaultval=$wxUSE_ALL_FEATURES
238663c1 12909 if test -z "$defaultval"; then
6e198e97
VZ
12910 if test x"$enablestring" = xdisable; then
12911 defaultval=yes
12912 else
12913 defaultval=no
12914 fi
12915 fi
12916
d589327a
VZ
12917 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12918echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
47964710 12919 # Check whether --enable-splash was given.
a848cd7e 12920if test "${enable_splash+set}" = set; then
47964710 12921 enableval=$enable_splash;
a848cd7e 12922 if test "$enableval" = yes; then
d970f7d5 12923 wx_cv_use_splash='wxUSE_SPLASH=yes'
a848cd7e 12924 else
d970f7d5 12925 wx_cv_use_splash='wxUSE_SPLASH=no'
a848cd7e
SC
12926 fi
12927
12928else
12929
d970f7d5 12930 wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
a848cd7e 12931
47964710
VS
12932fi
12933
a848cd7e 12934
d970f7d5 12935 eval "$wx_cv_use_splash"
a848cd7e 12936
6e198e97 12937 if test x"$enablestring" = xdisable; then
7ac0e38e 12938 if test $wxUSE_SPLASH = no; then
6e198e97 12939 result=yes
7ac0e38e
VZ
12940 else
12941 result=no
6e198e97 12942 fi
a848cd7e 12943 else
6e198e97 12944 result=$wxUSE_SPLASH
a848cd7e
SC
12945 fi
12946
d589327a
VZ
12947 { echo "$as_me:$LINENO: result: $result" >&5
12948echo "${ECHO_T}$result" >&6; }
6e198e97 12949
a848cd7e 12950
077c7880 12951 enablestring=
6e198e97 12952 defaultval=$wxUSE_ALL_FEATURES
238663c1 12953 if test -z "$defaultval"; then
6e198e97
VZ
12954 if test x"$enablestring" = xdisable; then
12955 defaultval=yes
12956 else
12957 defaultval=no
12958 fi
12959 fi
12960
d589327a
VZ
12961 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12962echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
47964710 12963 # Check whether --enable-textdlg was given.
a848cd7e 12964if test "${enable_textdlg+set}" = set; then
47964710 12965 enableval=$enable_textdlg;
a848cd7e 12966 if test "$enableval" = yes; then
d970f7d5 12967 wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
a848cd7e 12968 else
d970f7d5 12969 wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
a848cd7e
SC
12970 fi
12971
12972else
12973
d970f7d5 12974 wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
a848cd7e 12975
47964710
VS
12976fi
12977
a848cd7e 12978
d970f7d5 12979 eval "$wx_cv_use_textdlg"
a848cd7e 12980
6e198e97 12981 if test x"$enablestring" = xdisable; then
7ac0e38e 12982 if test $wxUSE_TEXTDLG = no; then
6e198e97 12983 result=yes
7ac0e38e
VZ
12984 else
12985 result=no
6e198e97 12986 fi
a848cd7e 12987 else
6e198e97 12988 result=$wxUSE_TEXTDLG
a848cd7e
SC
12989 fi
12990
d589327a
VZ
12991 { echo "$as_me:$LINENO: result: $result" >&5
12992echo "${ECHO_T}$result" >&6; }
6e198e97 12993
a848cd7e 12994
077c7880 12995 enablestring=
6e198e97 12996 defaultval=$wxUSE_ALL_FEATURES
238663c1 12997 if test -z "$defaultval"; then
6e198e97
VZ
12998 if test x"$enablestring" = xdisable; then
12999 defaultval=yes
13000 else
13001 defaultval=no
13002 fi
13003 fi
13004
d589327a
VZ
13005 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13006echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
47964710 13007 # Check whether --enable-tipdlg was given.
a848cd7e 13008if test "${enable_tipdlg+set}" = set; then
47964710 13009 enableval=$enable_tipdlg;
a848cd7e 13010 if test "$enableval" = yes; then
d970f7d5 13011 wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
a848cd7e 13012 else
d970f7d5 13013 wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
a848cd7e
SC
13014 fi
13015
13016else
13017
d970f7d5 13018 wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
a848cd7e 13019
47964710
VS
13020fi
13021
a848cd7e 13022
d970f7d5 13023 eval "$wx_cv_use_tipdlg"
a848cd7e 13024
6e198e97 13025 if test x"$enablestring" = xdisable; then
7ac0e38e 13026 if test $wxUSE_STARTUP_TIPS = no; then
6e198e97 13027 result=yes
7ac0e38e
VZ
13028 else
13029 result=no
6e198e97 13030 fi
a848cd7e 13031 else
6e198e97 13032 result=$wxUSE_STARTUP_TIPS
a848cd7e
SC
13033 fi
13034
d589327a
VZ
13035 { echo "$as_me:$LINENO: result: $result" >&5
13036echo "${ECHO_T}$result" >&6; }
6e198e97 13037
a848cd7e 13038
077c7880 13039 enablestring=
6e198e97 13040 defaultval=$wxUSE_ALL_FEATURES
238663c1 13041 if test -z "$defaultval"; then
6e198e97
VZ
13042 if test x"$enablestring" = xdisable; then
13043 defaultval=yes
13044 else
13045 defaultval=no
13046 fi
13047 fi
13048
d589327a
VZ
13049 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13050echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
47964710 13051 # Check whether --enable-progressdlg was given.
a848cd7e 13052if test "${enable_progressdlg+set}" = set; then
47964710 13053 enableval=$enable_progressdlg;
a848cd7e 13054 if test "$enableval" = yes; then
d970f7d5 13055 wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
a848cd7e 13056 else
d970f7d5 13057 wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
a848cd7e
SC
13058 fi
13059
13060else
13061
d970f7d5 13062 wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
a848cd7e 13063
47964710
VS
13064fi
13065
a848cd7e 13066
d970f7d5 13067 eval "$wx_cv_use_progressdlg"
a848cd7e 13068
6e198e97 13069 if test x"$enablestring" = xdisable; then
7ac0e38e 13070 if test $wxUSE_PROGRESSDLG = no; then
6e198e97 13071 result=yes
7ac0e38e
VZ
13072 else
13073 result=no
6e198e97 13074 fi
a848cd7e 13075 else
6e198e97 13076 result=$wxUSE_PROGRESSDLG
a848cd7e
SC
13077 fi
13078
d589327a
VZ
13079 { echo "$as_me:$LINENO: result: $result" >&5
13080echo "${ECHO_T}$result" >&6; }
6e198e97 13081
a848cd7e 13082
077c7880 13083 enablestring=
6e198e97 13084 defaultval=$wxUSE_ALL_FEATURES
238663c1 13085 if test -z "$defaultval"; then
6e198e97
VZ
13086 if test x"$enablestring" = xdisable; then
13087 defaultval=yes
13088 else
13089 defaultval=no
13090 fi
13091 fi
13092
d589327a
VZ
13093 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13094echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
47964710 13095 # Check whether --enable-wizarddlg was given.
a848cd7e 13096if test "${enable_wizarddlg+set}" = set; then
47964710 13097 enableval=$enable_wizarddlg;
a848cd7e 13098 if test "$enableval" = yes; then
d970f7d5 13099 wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
a848cd7e 13100 else
d970f7d5 13101 wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
a848cd7e
SC
13102 fi
13103
13104else
13105
d970f7d5 13106 wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
a848cd7e 13107
47964710
VS
13108fi
13109
a848cd7e 13110
d970f7d5 13111 eval "$wx_cv_use_wizarddlg"
a848cd7e 13112
6e198e97 13113 if test x"$enablestring" = xdisable; then
7ac0e38e 13114 if test $wxUSE_WIZARDDLG = no; then
6e198e97 13115 result=yes
7ac0e38e
VZ
13116 else
13117 result=no
6e198e97 13118 fi
a848cd7e 13119 else
6e198e97 13120 result=$wxUSE_WIZARDDLG
a848cd7e
SC
13121 fi
13122
d589327a
VZ
13123 { echo "$as_me:$LINENO: result: $result" >&5
13124echo "${ECHO_T}$result" >&6; }
6e198e97 13125
a848cd7e
SC
13126
13127
13128
077c7880 13129 enablestring=
6e198e97 13130 defaultval=$wxUSE_ALL_FEATURES
238663c1 13131 if test -z "$defaultval"; then
6e198e97
VZ
13132 if test x"$enablestring" = xdisable; then
13133 defaultval=yes
13134 else
13135 defaultval=no
13136 fi
13137 fi
13138
d589327a
VZ
13139 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13140echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
47964710 13141 # Check whether --enable-menus was given.
a848cd7e 13142if test "${enable_menus+set}" = set; then
47964710 13143 enableval=$enable_menus;
a848cd7e 13144 if test "$enableval" = yes; then
d970f7d5 13145 wx_cv_use_menus='wxUSE_MENUS=yes'
a848cd7e 13146 else
d970f7d5 13147 wx_cv_use_menus='wxUSE_MENUS=no'
a848cd7e
SC
13148 fi
13149
13150else
13151
d970f7d5 13152 wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
a848cd7e 13153
47964710
VS
13154fi
13155
a848cd7e 13156
d970f7d5 13157 eval "$wx_cv_use_menus"
a848cd7e 13158
6e198e97 13159 if test x"$enablestring" = xdisable; then
7ac0e38e 13160 if test $wxUSE_MENUS = no; then
6e198e97 13161 result=yes
7ac0e38e
VZ
13162 else
13163 result=no
6e198e97 13164 fi
a848cd7e 13165 else
6e198e97 13166 result=$wxUSE_MENUS
a848cd7e
SC
13167 fi
13168
d589327a
VZ
13169 { echo "$as_me:$LINENO: result: $result" >&5
13170echo "${ECHO_T}$result" >&6; }
6e198e97 13171
a848cd7e 13172
077c7880 13173 enablestring=
6e198e97 13174 defaultval=$wxUSE_ALL_FEATURES
238663c1 13175 if test -z "$defaultval"; then
6e198e97
VZ
13176 if test x"$enablestring" = xdisable; then
13177 defaultval=yes
13178 else
13179 defaultval=no
13180 fi
13181 fi
13182
d589327a
VZ
13183 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13184echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
47964710 13185 # Check whether --enable-miniframe was given.
a848cd7e 13186if test "${enable_miniframe+set}" = set; then
47964710 13187 enableval=$enable_miniframe;
a848cd7e 13188 if test "$enableval" = yes; then
d970f7d5 13189 wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
a848cd7e 13190 else
d970f7d5 13191 wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
a848cd7e
SC
13192 fi
13193
13194else
13195
d970f7d5 13196 wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
a848cd7e 13197
47964710
VS
13198fi
13199
a848cd7e 13200
d970f7d5 13201 eval "$wx_cv_use_miniframe"
a848cd7e 13202
6e198e97 13203 if test x"$enablestring" = xdisable; then
7ac0e38e 13204 if test $wxUSE_MINIFRAME = no; then
6e198e97 13205 result=yes
7ac0e38e
VZ
13206 else
13207 result=no
6e198e97 13208 fi
a848cd7e 13209 else
6e198e97 13210 result=$wxUSE_MINIFRAME
a848cd7e
SC
13211 fi
13212
d589327a
VZ
13213 { echo "$as_me:$LINENO: result: $result" >&5
13214echo "${ECHO_T}$result" >&6; }
6e198e97 13215
a848cd7e 13216
077c7880 13217 enablestring=
6e198e97 13218 defaultval=$wxUSE_ALL_FEATURES
238663c1 13219 if test -z "$defaultval"; then
6e198e97
VZ
13220 if test x"$enablestring" = xdisable; then
13221 defaultval=yes
13222 else
13223 defaultval=no
13224 fi
13225 fi
13226
d589327a
VZ
13227 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13228echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
47964710 13229 # Check whether --enable-tooltips was given.
a848cd7e 13230if test "${enable_tooltips+set}" = set; then
47964710 13231 enableval=$enable_tooltips;
a848cd7e 13232 if test "$enableval" = yes; then
d970f7d5 13233 wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
a848cd7e 13234 else
d970f7d5 13235 wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
a848cd7e
SC
13236 fi
13237
13238else
13239
d970f7d5 13240 wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
a848cd7e 13241
47964710
VS
13242fi
13243
a848cd7e 13244
d970f7d5 13245 eval "$wx_cv_use_tooltips"
a848cd7e 13246
6e198e97 13247 if test x"$enablestring" = xdisable; then
7ac0e38e 13248 if test $wxUSE_TOOLTIPS = no; then
6e198e97 13249 result=yes
7ac0e38e
VZ
13250 else
13251 result=no
6e198e97 13252 fi
a848cd7e 13253 else
6e198e97 13254 result=$wxUSE_TOOLTIPS
a848cd7e
SC
13255 fi
13256
d589327a
VZ
13257 { echo "$as_me:$LINENO: result: $result" >&5
13258echo "${ECHO_T}$result" >&6; }
6e198e97 13259
a848cd7e 13260
077c7880 13261 enablestring=
6e198e97 13262 defaultval=$wxUSE_ALL_FEATURES
238663c1 13263 if test -z "$defaultval"; then
6e198e97
VZ
13264 if test x"$enablestring" = xdisable; then
13265 defaultval=yes
13266 else
13267 defaultval=no
13268 fi
13269 fi
13270
d589327a
VZ
13271 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13272echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
47964710 13273 # Check whether --enable-splines was given.
a848cd7e 13274if test "${enable_splines+set}" = set; then
47964710 13275 enableval=$enable_splines;
a848cd7e 13276 if test "$enableval" = yes; then
d970f7d5 13277 wx_cv_use_splines='wxUSE_SPLINES=yes'
a848cd7e 13278 else
d970f7d5 13279 wx_cv_use_splines='wxUSE_SPLINES=no'
a848cd7e
SC
13280 fi
13281
13282else
13283
d970f7d5 13284 wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
a848cd7e 13285
47964710
VS
13286fi
13287
a848cd7e 13288
d970f7d5 13289 eval "$wx_cv_use_splines"
a848cd7e 13290
6e198e97 13291 if test x"$enablestring" = xdisable; then
7ac0e38e 13292 if test $wxUSE_SPLINES = no; then
6e198e97 13293 result=yes
7ac0e38e
VZ
13294 else
13295 result=no
6e198e97 13296 fi
a848cd7e 13297 else
6e198e97 13298 result=$wxUSE_SPLINES
a848cd7e
SC
13299 fi
13300
d589327a
VZ
13301 { echo "$as_me:$LINENO: result: $result" >&5
13302echo "${ECHO_T}$result" >&6; }
6e198e97 13303
a848cd7e 13304
077c7880 13305 enablestring=
6e198e97 13306 defaultval=$wxUSE_ALL_FEATURES
238663c1 13307 if test -z "$defaultval"; then
6e198e97
VZ
13308 if test x"$enablestring" = xdisable; then
13309 defaultval=yes
13310 else
13311 defaultval=no
13312 fi
13313 fi
13314
d589327a
VZ
13315 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13316echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
47964710 13317 # Check whether --enable-mousewheel was given.
fbe2ca43 13318if test "${enable_mousewheel+set}" = set; then
47964710 13319 enableval=$enable_mousewheel;
fbe2ca43 13320 if test "$enableval" = yes; then
d970f7d5 13321 wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
fbe2ca43 13322 else
d970f7d5 13323 wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
fbe2ca43
SN
13324 fi
13325
13326else
13327
d970f7d5 13328 wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
fbe2ca43 13329
47964710
VS
13330fi
13331
fbe2ca43 13332
d970f7d5 13333 eval "$wx_cv_use_mousewheel"
fbe2ca43 13334
6e198e97 13335 if test x"$enablestring" = xdisable; then
7ac0e38e 13336 if test $wxUSE_MOUSEWHEEL = no; then
6e198e97 13337 result=yes
7ac0e38e
VZ
13338 else
13339 result=no
6e198e97 13340 fi
fbe2ca43 13341 else
6e198e97 13342 result=$wxUSE_MOUSEWHEEL
fbe2ca43
SN
13343 fi
13344
d589327a
VZ
13345 { echo "$as_me:$LINENO: result: $result" >&5
13346echo "${ECHO_T}$result" >&6; }
6e198e97 13347
fbe2ca43 13348
077c7880 13349 enablestring=
6e198e97 13350 defaultval=$wxUSE_ALL_FEATURES
238663c1 13351 if test -z "$defaultval"; then
6e198e97
VZ
13352 if test x"$enablestring" = xdisable; then
13353 defaultval=yes
13354 else
13355 defaultval=no
13356 fi
13357 fi
13358
d589327a
VZ
13359 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13360echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
47964710 13361 # Check whether --enable-validators was given.
a848cd7e 13362if test "${enable_validators+set}" = set; then
47964710 13363 enableval=$enable_validators;
a848cd7e 13364 if test "$enableval" = yes; then
d970f7d5 13365 wx_cv_use_validators='wxUSE_VALIDATORS=yes'
a848cd7e 13366 else
d970f7d5 13367 wx_cv_use_validators='wxUSE_VALIDATORS=no'
a848cd7e
SC
13368 fi
13369
13370else
13371
d970f7d5 13372 wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
a848cd7e 13373
47964710
VS
13374fi
13375
a848cd7e 13376
d970f7d5 13377 eval "$wx_cv_use_validators"
a848cd7e 13378
6e198e97 13379 if test x"$enablestring" = xdisable; then
7ac0e38e 13380 if test $wxUSE_VALIDATORS = no; then
6e198e97 13381 result=yes
7ac0e38e
VZ
13382 else
13383 result=no
6e198e97 13384 fi
a848cd7e 13385 else
6e198e97 13386 result=$wxUSE_VALIDATORS
a848cd7e
SC
13387 fi
13388
d589327a
VZ
13389 { echo "$as_me:$LINENO: result: $result" >&5
13390echo "${ECHO_T}$result" >&6; }
6e198e97 13391
a848cd7e 13392
077c7880 13393 enablestring=
6e198e97 13394 defaultval=$wxUSE_ALL_FEATURES
238663c1 13395 if test -z "$defaultval"; then
6e198e97
VZ
13396 if test x"$enablestring" = xdisable; then
13397 defaultval=yes
13398 else
13399 defaultval=no
13400 fi
13401 fi
13402
d589327a
VZ
13403 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13404echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
47964710 13405 # Check whether --enable-busyinfo was given.
a848cd7e 13406if test "${enable_busyinfo+set}" = set; then
47964710 13407 enableval=$enable_busyinfo;
a848cd7e 13408 if test "$enableval" = yes; then
d970f7d5 13409 wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
a848cd7e 13410 else
d970f7d5 13411 wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
a848cd7e
SC
13412 fi
13413
13414else
13415
d970f7d5 13416 wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
a848cd7e 13417
47964710
VS
13418fi
13419
a848cd7e 13420
d970f7d5 13421 eval "$wx_cv_use_busyinfo"
a848cd7e 13422
6e198e97 13423 if test x"$enablestring" = xdisable; then
7ac0e38e 13424 if test $wxUSE_BUSYINFO = no; then
6e198e97 13425 result=yes
7ac0e38e
VZ
13426 else
13427 result=no
6e198e97 13428 fi
a848cd7e 13429 else
6e198e97 13430 result=$wxUSE_BUSYINFO
a848cd7e
SC
13431 fi
13432
d589327a
VZ
13433 { echo "$as_me:$LINENO: result: $result" >&5
13434echo "${ECHO_T}$result" >&6; }
6e198e97 13435
a848cd7e 13436
077c7880 13437 enablestring=
6e198e97 13438 defaultval=$wxUSE_ALL_FEATURES
238663c1 13439 if test -z "$defaultval"; then
6e198e97
VZ
13440 if test x"$enablestring" = xdisable; then
13441 defaultval=yes
13442 else
13443 defaultval=no
13444 fi
13445 fi
13446
d589327a
VZ
13447 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13448echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
47964710 13449 # Check whether --enable-joystick was given.
a848cd7e 13450if test "${enable_joystick+set}" = set; then
47964710 13451 enableval=$enable_joystick;
a848cd7e 13452 if test "$enableval" = yes; then
d970f7d5 13453 wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
a848cd7e 13454 else
d970f7d5 13455 wx_cv_use_joystick='wxUSE_JOYSTICK=no'
a848cd7e
SC
13456 fi
13457
13458else
13459
d970f7d5 13460 wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
a848cd7e 13461
47964710
VS
13462fi
13463
a848cd7e 13464
d970f7d5 13465 eval "$wx_cv_use_joystick"
a848cd7e 13466
6e198e97 13467 if test x"$enablestring" = xdisable; then
7ac0e38e 13468 if test $wxUSE_JOYSTICK = no; then
6e198e97 13469 result=yes
7ac0e38e
VZ
13470 else
13471 result=no
6e198e97 13472 fi
a848cd7e 13473 else
6e198e97 13474 result=$wxUSE_JOYSTICK
a848cd7e
SC
13475 fi
13476
d589327a
VZ
13477 { echo "$as_me:$LINENO: result: $result" >&5
13478echo "${ECHO_T}$result" >&6; }
6e198e97 13479
a848cd7e 13480
077c7880 13481 enablestring=
6e198e97 13482 defaultval=$wxUSE_ALL_FEATURES
238663c1 13483 if test -z "$defaultval"; then
6e198e97
VZ
13484 if test x"$enablestring" = xdisable; then
13485 defaultval=yes
13486 else
13487 defaultval=no
13488 fi
13489 fi
13490
d589327a
VZ
13491 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13492echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
47964710 13493 # Check whether --enable-metafile was given.
a848cd7e 13494if test "${enable_metafile+set}" = set; then
47964710 13495 enableval=$enable_metafile;
a848cd7e 13496 if test "$enableval" = yes; then
d970f7d5 13497 wx_cv_use_metafile='wxUSE_METAFILE=yes'
a848cd7e 13498 else
d970f7d5 13499 wx_cv_use_metafile='wxUSE_METAFILE=no'
a848cd7e
SC
13500 fi
13501
13502else
13503
d970f7d5 13504 wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
a848cd7e 13505
47964710
VS
13506fi
13507
a848cd7e 13508
d970f7d5 13509 eval "$wx_cv_use_metafile"
a848cd7e 13510
6e198e97 13511 if test x"$enablestring" = xdisable; then
7ac0e38e 13512 if test $wxUSE_METAFILE = no; then
6e198e97 13513 result=yes
7ac0e38e
VZ
13514 else
13515 result=no
6e198e97 13516 fi
a848cd7e 13517 else
6e198e97 13518 result=$wxUSE_METAFILE
a848cd7e
SC
13519 fi
13520
d589327a
VZ
13521 { echo "$as_me:$LINENO: result: $result" >&5
13522echo "${ECHO_T}$result" >&6; }
6e198e97 13523
a848cd7e 13524
077c7880 13525 enablestring=
6e198e97 13526 defaultval=$wxUSE_ALL_FEATURES
238663c1 13527 if test -z "$defaultval"; then
6e198e97
VZ
13528 if test x"$enablestring" = xdisable; then
13529 defaultval=yes
13530 else
13531 defaultval=no
13532 fi
13533 fi
13534
d589327a
VZ
13535 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13536echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
47964710 13537 # Check whether --enable-dragimage was given.
a848cd7e 13538if test "${enable_dragimage+set}" = set; then
47964710 13539 enableval=$enable_dragimage;
a848cd7e 13540 if test "$enableval" = yes; then
d970f7d5 13541 wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
a848cd7e 13542 else
d970f7d5 13543 wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
a848cd7e
SC
13544 fi
13545
13546else
13547
d970f7d5 13548 wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
a848cd7e 13549
47964710
VS
13550fi
13551
a848cd7e 13552
d970f7d5 13553 eval "$wx_cv_use_dragimage"
a848cd7e 13554
6e198e97 13555 if test x"$enablestring" = xdisable; then
7ac0e38e 13556 if test $wxUSE_DRAGIMAGE = no; then
6e198e97 13557 result=yes
7ac0e38e
VZ
13558 else
13559 result=no
6e198e97 13560 fi
a848cd7e 13561 else
6e198e97 13562 result=$wxUSE_DRAGIMAGE
a848cd7e
SC
13563 fi
13564
d589327a
VZ
13565 { echo "$as_me:$LINENO: result: $result" >&5
13566echo "${ECHO_T}$result" >&6; }
6e198e97 13567
a848cd7e 13568
077c7880 13569 enablestring=
6e198e97 13570 defaultval=$wxUSE_ALL_FEATURES
238663c1 13571 if test -z "$defaultval"; then
6e198e97
VZ
13572 if test x"$enablestring" = xdisable; then
13573 defaultval=yes
13574 else
13575 defaultval=no
13576 fi
13577 fi
13578
d589327a
VZ
13579 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13580echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
47964710 13581 # Check whether --enable-accessibility was given.
a848cd7e 13582if test "${enable_accessibility+set}" = set; then
47964710 13583 enableval=$enable_accessibility;
a848cd7e 13584 if test "$enableval" = yes; then
d970f7d5 13585 wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
a848cd7e 13586 else
d970f7d5 13587 wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
a848cd7e
SC
13588 fi
13589
13590else
13591
d970f7d5 13592 wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
a848cd7e 13593
47964710
VS
13594fi
13595
a848cd7e 13596
d970f7d5 13597 eval "$wx_cv_use_accessibility"
a848cd7e 13598
6e198e97 13599 if test x"$enablestring" = xdisable; then
7ac0e38e 13600 if test $wxUSE_ACCESSIBILITY = no; then
6e198e97 13601 result=yes
7ac0e38e
VZ
13602 else
13603 result=no
6e198e97 13604 fi
a848cd7e 13605 else
6e198e97 13606 result=$wxUSE_ACCESSIBILITY
a848cd7e
SC
13607 fi
13608
d589327a
VZ
13609 { echo "$as_me:$LINENO: result: $result" >&5
13610echo "${ECHO_T}$result" >&6; }
6e198e97 13611
a848cd7e 13612
9b7e0226
VZ
13613 enablestring=
13614 defaultval=$wxUSE_ALL_FEATURES
13615 if test -z "$defaultval"; then
13616 if test x"$enablestring" = xdisable; then
13617 defaultval=yes
13618 else
13619 defaultval=no
13620 fi
13621 fi
13622
13623 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
13624echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
13625 # Check whether --enable-uiactionsim was given.
13626if test "${enable_uiactionsim+set}" = set; then
13627 enableval=$enable_uiactionsim;
13628 if test "$enableval" = yes; then
13629 wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
13630 else
13631 wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
13632 fi
13633
13634else
13635
13636 wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
13637
13638fi
13639
13640
13641 eval "$wx_cv_use_uiactionsim"
13642
13643 if test x"$enablestring" = xdisable; then
13644 if test $wxUSE_UIACTIONSIMULATOR = no; then
13645 result=yes
13646 else
13647 result=no
13648 fi
13649 else
13650 result=$wxUSE_UIACTIONSIMULATOR
13651 fi
13652
13653 { echo "$as_me:$LINENO: result: $result" >&5
13654echo "${ECHO_T}$result" >&6; }
13655
13656
a848cd7e
SC
13657
13658
077c7880 13659 enablestring=
6e198e97 13660 defaultval=$wxUSE_ALL_FEATURES
238663c1 13661 if test -z "$defaultval"; then
6e198e97
VZ
13662 if test x"$enablestring" = xdisable; then
13663 defaultval=yes
13664 else
13665 defaultval=no
13666 fi
13667 fi
13668
d589327a
VZ
13669 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13670echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
47964710 13671 # Check whether --enable-palette was given.
a848cd7e 13672if test "${enable_palette+set}" = set; then
47964710 13673 enableval=$enable_palette;
a848cd7e 13674 if test "$enableval" = yes; then
d970f7d5 13675 wx_cv_use_palette='wxUSE_PALETTE=yes'
a848cd7e 13676 else
d970f7d5 13677 wx_cv_use_palette='wxUSE_PALETTE=no'
a848cd7e
SC
13678 fi
13679
13680else
13681
d970f7d5 13682 wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
a848cd7e 13683
47964710
VS
13684fi
13685
a848cd7e 13686
d970f7d5 13687 eval "$wx_cv_use_palette"
a848cd7e 13688
6e198e97 13689 if test x"$enablestring" = xdisable; then
7ac0e38e 13690 if test $wxUSE_PALETTE = no; then
6e198e97 13691 result=yes
7ac0e38e
VZ
13692 else
13693 result=no
6e198e97 13694 fi
a848cd7e 13695 else
6e198e97 13696 result=$wxUSE_PALETTE
a848cd7e
SC
13697 fi
13698
d589327a
VZ
13699 { echo "$as_me:$LINENO: result: $result" >&5
13700echo "${ECHO_T}$result" >&6; }
6e198e97 13701
a848cd7e 13702
077c7880 13703 enablestring=
6e198e97 13704 defaultval=$wxUSE_ALL_FEATURES
238663c1 13705 if test -z "$defaultval"; then
6e198e97
VZ
13706 if test x"$enablestring" = xdisable; then
13707 defaultval=yes
13708 else
13709 defaultval=no
13710 fi
13711 fi
13712
d589327a
VZ
13713 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13714echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
47964710 13715 # Check whether --enable-image was given.
a848cd7e 13716if test "${enable_image+set}" = set; then
47964710 13717 enableval=$enable_image;
a848cd7e 13718 if test "$enableval" = yes; then
d970f7d5 13719 wx_cv_use_image='wxUSE_IMAGE=yes'
a848cd7e 13720 else
d970f7d5 13721 wx_cv_use_image='wxUSE_IMAGE=no'
a848cd7e
SC
13722 fi
13723
13724else
13725
d970f7d5 13726 wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
a848cd7e 13727
47964710
VS
13728fi
13729
a848cd7e 13730
d970f7d5 13731 eval "$wx_cv_use_image"
a848cd7e 13732
6e198e97 13733 if test x"$enablestring" = xdisable; then
7ac0e38e 13734 if test $wxUSE_IMAGE = no; then
6e198e97 13735 result=yes
7ac0e38e
VZ
13736 else
13737 result=no
6e198e97 13738 fi
a848cd7e 13739 else
6e198e97 13740 result=$wxUSE_IMAGE
a848cd7e
SC
13741 fi
13742
d589327a
VZ
13743 { echo "$as_me:$LINENO: result: $result" >&5
13744echo "${ECHO_T}$result" >&6; }
6e198e97 13745
a848cd7e 13746
077c7880 13747 enablestring=
6e198e97 13748 defaultval=$wxUSE_ALL_FEATURES
238663c1 13749 if test -z "$defaultval"; then
6e198e97
VZ
13750 if test x"$enablestring" = xdisable; then
13751 defaultval=yes
13752 else
13753 defaultval=no
13754 fi
13755 fi
13756
d589327a
VZ
13757 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13758echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
47964710 13759 # Check whether --enable-gif was given.
a848cd7e 13760if test "${enable_gif+set}" = set; then
47964710 13761 enableval=$enable_gif;
a848cd7e 13762 if test "$enableval" = yes; then
d970f7d5 13763 wx_cv_use_gif='wxUSE_GIF=yes'
a848cd7e 13764 else
d970f7d5 13765 wx_cv_use_gif='wxUSE_GIF=no'
a848cd7e
SC
13766 fi
13767
13768else
13769
d970f7d5 13770 wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
a848cd7e 13771
47964710
VS
13772fi
13773
a848cd7e 13774
d970f7d5 13775 eval "$wx_cv_use_gif"
a848cd7e 13776
6e198e97 13777 if test x"$enablestring" = xdisable; then
7ac0e38e 13778 if test $wxUSE_GIF = no; then
6e198e97 13779 result=yes
7ac0e38e
VZ
13780 else
13781 result=no
6e198e97 13782 fi
a848cd7e 13783 else
6e198e97 13784 result=$wxUSE_GIF
a848cd7e
SC
13785 fi
13786
d589327a
VZ
13787 { echo "$as_me:$LINENO: result: $result" >&5
13788echo "${ECHO_T}$result" >&6; }
6e198e97 13789
a848cd7e 13790
077c7880 13791 enablestring=
6e198e97 13792 defaultval=$wxUSE_ALL_FEATURES
238663c1 13793 if test -z "$defaultval"; then
6e198e97
VZ
13794 if test x"$enablestring" = xdisable; then
13795 defaultval=yes
13796 else
13797 defaultval=no
13798 fi
13799 fi
13800
d589327a
VZ
13801 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13802echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
47964710 13803 # Check whether --enable-pcx was given.
a848cd7e 13804if test "${enable_pcx+set}" = set; then
47964710 13805 enableval=$enable_pcx;
a848cd7e 13806 if test "$enableval" = yes; then
d970f7d5 13807 wx_cv_use_pcx='wxUSE_PCX=yes'
a848cd7e 13808 else
d970f7d5 13809 wx_cv_use_pcx='wxUSE_PCX=no'
a848cd7e
SC
13810 fi
13811
13812else
13813
d970f7d5 13814 wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
a848cd7e 13815
47964710
VS
13816fi
13817
a848cd7e 13818
d970f7d5 13819 eval "$wx_cv_use_pcx"
a848cd7e 13820
6e198e97 13821 if test x"$enablestring" = xdisable; then
7ac0e38e 13822 if test $wxUSE_PCX = no; then
6e198e97 13823 result=yes
7ac0e38e
VZ
13824 else
13825 result=no
6e198e97 13826 fi
a848cd7e 13827 else
6e198e97 13828 result=$wxUSE_PCX
a848cd7e
SC
13829 fi
13830
d589327a
VZ
13831 { echo "$as_me:$LINENO: result: $result" >&5
13832echo "${ECHO_T}$result" >&6; }
6e198e97 13833
a848cd7e 13834
077c7880 13835 enablestring=
6e198e97 13836 defaultval=$wxUSE_ALL_FEATURES
238663c1 13837 if test -z "$defaultval"; then
6e198e97
VZ
13838 if test x"$enablestring" = xdisable; then
13839 defaultval=yes
13840 else
13841 defaultval=no
13842 fi
13843 fi
13844
d589327a
VZ
13845 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13846echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
47964710 13847 # Check whether --enable-tga was given.
bb9e79c0 13848if test "${enable_tga+set}" = set; then
47964710 13849 enableval=$enable_tga;
bb9e79c0 13850 if test "$enableval" = yes; then
d970f7d5 13851 wx_cv_use_tga='wxUSE_TGA=yes'
bb9e79c0 13852 else
d970f7d5 13853 wx_cv_use_tga='wxUSE_TGA=no'
bb9e79c0
VZ
13854 fi
13855
13856else
13857
d970f7d5 13858 wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
bb9e79c0 13859
47964710
VS
13860fi
13861
bb9e79c0 13862
d970f7d5 13863 eval "$wx_cv_use_tga"
bb9e79c0 13864
6e198e97 13865 if test x"$enablestring" = xdisable; then
7ac0e38e 13866 if test $wxUSE_TGA = no; then
6e198e97 13867 result=yes
7ac0e38e
VZ
13868 else
13869 result=no
6e198e97 13870 fi
bb9e79c0 13871 else
6e198e97 13872 result=$wxUSE_TGA
bb9e79c0
VZ
13873 fi
13874
d589327a
VZ
13875 { echo "$as_me:$LINENO: result: $result" >&5
13876echo "${ECHO_T}$result" >&6; }
6e198e97 13877
bb9e79c0 13878
077c7880 13879 enablestring=
6e198e97 13880 defaultval=$wxUSE_ALL_FEATURES
238663c1 13881 if test -z "$defaultval"; then
6e198e97
VZ
13882 if test x"$enablestring" = xdisable; then
13883 defaultval=yes
13884 else
13885 defaultval=no
13886 fi
13887 fi
13888
d589327a
VZ
13889 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13890echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
47964710 13891 # Check whether --enable-iff was given.
a848cd7e 13892if test "${enable_iff+set}" = set; then
47964710 13893 enableval=$enable_iff;
a848cd7e 13894 if test "$enableval" = yes; then
d970f7d5 13895 wx_cv_use_iff='wxUSE_IFF=yes'
a848cd7e 13896 else
d970f7d5 13897 wx_cv_use_iff='wxUSE_IFF=no'
a848cd7e
SC
13898 fi
13899
13900else
13901
d970f7d5 13902 wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
a848cd7e 13903
47964710
VS
13904fi
13905
a848cd7e 13906
d970f7d5 13907 eval "$wx_cv_use_iff"
a848cd7e 13908
6e198e97 13909 if test x"$enablestring" = xdisable; then
7ac0e38e 13910 if test $wxUSE_IFF = no; then
6e198e97 13911 result=yes
7ac0e38e
VZ
13912 else
13913 result=no
6e198e97 13914 fi
a848cd7e 13915 else
6e198e97 13916 result=$wxUSE_IFF
a848cd7e
SC
13917 fi
13918
d589327a
VZ
13919 { echo "$as_me:$LINENO: result: $result" >&5
13920echo "${ECHO_T}$result" >&6; }
6e198e97 13921
a848cd7e 13922
077c7880 13923 enablestring=
6e198e97 13924 defaultval=$wxUSE_ALL_FEATURES
238663c1 13925 if test -z "$defaultval"; then
6e198e97
VZ
13926 if test x"$enablestring" = xdisable; then
13927 defaultval=yes
13928 else
13929 defaultval=no
13930 fi
13931 fi
13932
d589327a
VZ
13933 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13934echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
47964710 13935 # Check whether --enable-pnm was given.
a848cd7e 13936if test "${enable_pnm+set}" = set; then
47964710 13937 enableval=$enable_pnm;
a848cd7e 13938 if test "$enableval" = yes; then
d970f7d5 13939 wx_cv_use_pnm='wxUSE_PNM=yes'
a848cd7e 13940 else
d970f7d5 13941 wx_cv_use_pnm='wxUSE_PNM=no'
a848cd7e
SC
13942 fi
13943
13944else
13945
d970f7d5 13946 wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
a848cd7e 13947
47964710
VS
13948fi
13949
a848cd7e 13950
d970f7d5 13951 eval "$wx_cv_use_pnm"
a848cd7e 13952
6e198e97 13953 if test x"$enablestring" = xdisable; then
7ac0e38e 13954 if test $wxUSE_PNM = no; then
6e198e97 13955 result=yes
7ac0e38e
VZ
13956 else
13957 result=no
6e198e97 13958 fi
a848cd7e 13959 else
6e198e97 13960 result=$wxUSE_PNM
a848cd7e
SC
13961 fi
13962
d589327a
VZ
13963 { echo "$as_me:$LINENO: result: $result" >&5
13964echo "${ECHO_T}$result" >&6; }
6e198e97 13965
a848cd7e 13966
077c7880 13967 enablestring=
6e198e97 13968 defaultval=$wxUSE_ALL_FEATURES
238663c1 13969 if test -z "$defaultval"; then
6e198e97
VZ
13970 if test x"$enablestring" = xdisable; then
13971 defaultval=yes
13972 else
13973 defaultval=no
13974 fi
13975 fi
13976
d589327a
VZ
13977 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13978echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
47964710 13979 # Check whether --enable-xpm was given.
a848cd7e 13980if test "${enable_xpm+set}" = set; then
47964710 13981 enableval=$enable_xpm;
a848cd7e 13982 if test "$enableval" = yes; then
d970f7d5 13983 wx_cv_use_xpm='wxUSE_XPM=yes'
a848cd7e 13984 else
d970f7d5 13985 wx_cv_use_xpm='wxUSE_XPM=no'
a848cd7e
SC
13986 fi
13987
13988else
13989
d970f7d5 13990 wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
a848cd7e 13991
47964710
VS
13992fi
13993
a848cd7e 13994
d970f7d5 13995 eval "$wx_cv_use_xpm"
a848cd7e 13996
6e198e97 13997 if test x"$enablestring" = xdisable; then
7ac0e38e 13998 if test $wxUSE_XPM = no; then
6e198e97 13999 result=yes
7ac0e38e
VZ
14000 else
14001 result=no
6e198e97 14002 fi
a848cd7e 14003 else
6e198e97 14004 result=$wxUSE_XPM
a848cd7e
SC
14005 fi
14006
d589327a
VZ
14007 { echo "$as_me:$LINENO: result: $result" >&5
14008echo "${ECHO_T}$result" >&6; }
6e198e97 14009
a848cd7e 14010
077c7880 14011 enablestring=
6e198e97 14012 defaultval=$wxUSE_ALL_FEATURES
238663c1 14013 if test -z "$defaultval"; then
6e198e97
VZ
14014 if test x"$enablestring" = xdisable; then
14015 defaultval=yes
14016 else
14017 defaultval=no
14018 fi
14019 fi
14020
d589327a
VZ
14021 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14022echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
47964710 14023 # Check whether --enable-ico_cur was given.
a848cd7e 14024if test "${enable_ico_cur+set}" = set; then
47964710 14025 enableval=$enable_ico_cur;
a848cd7e 14026 if test "$enableval" = yes; then
d970f7d5 14027 wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
a848cd7e 14028 else
d970f7d5 14029 wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
a848cd7e
SC
14030 fi
14031
14032else
14033
d970f7d5 14034 wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
a848cd7e 14035
47964710
VS
14036fi
14037
a848cd7e 14038
d970f7d5 14039 eval "$wx_cv_use_ico_cur"
a848cd7e 14040
6e198e97 14041 if test x"$enablestring" = xdisable; then
7ac0e38e 14042 if test $wxUSE_ICO_CUR = no; then
6e198e97 14043 result=yes
7ac0e38e
VZ
14044 else
14045 result=no
6e198e97 14046 fi
a848cd7e 14047 else
6e198e97 14048 result=$wxUSE_ICO_CUR
a848cd7e
SC
14049 fi
14050
d589327a
VZ
14051 { echo "$as_me:$LINENO: result: $result" >&5
14052echo "${ECHO_T}$result" >&6; }
a848cd7e 14053
a848cd7e 14054
5d18e029
VZ
14055
14056
14057 enablestring=
14058 defaultval=$wxUSE_ALL_FEATURES
14059 if test -z "$defaultval"; then
14060 if test x"$enablestring" = xdisable; then
14061 defaultval=yes
14062 else
14063 defaultval=no
14064 fi
14065 fi
14066
d589327a
VZ
14067 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14068echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
47964710 14069 # Check whether --enable-dccache was given.
5d18e029 14070if test "${enable_dccache+set}" = set; then
47964710 14071 enableval=$enable_dccache;
5d18e029
VZ
14072 if test "$enableval" = yes; then
14073 wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14074 else
14075 wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14076 fi
14077
14078else
14079
5d18e029
VZ
14080 wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14081
47964710
VS
14082fi
14083
5d18e029
VZ
14084
14085 eval "$wx_cv_use_dccache"
5d18e029
VZ
14086
14087 if test x"$enablestring" = xdisable; then
7ac0e38e 14088 if test $wxUSE_DC_CACHEING = no; then
5d18e029 14089 result=yes
7ac0e38e
VZ
14090 else
14091 result=no
5d18e029
VZ
14092 fi
14093 else
14094 result=$wxUSE_DC_CACHEING
14095 fi
14096
d589327a
VZ
14097 { echo "$as_me:$LINENO: result: $result" >&5
14098echo "${ECHO_T}$result" >&6; }
5d18e029
VZ
14099
14100
0295153c
VZ
14101 enablestring=
14102 defaultval=$wxUSE_ALL_FEATURES
14103 if test -z "$defaultval"; then
14104 if test x"$enablestring" = xdisable; then
14105 defaultval=yes
14106 else
14107 defaultval=no
14108 fi
14109 fi
14110
d589327a
VZ
14111 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14112echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
47964710 14113 # Check whether --enable-ps-in-msw was given.
0295153c 14114if test "${enable_ps_in_msw+set}" = set; then
47964710 14115 enableval=$enable_ps_in_msw;
0295153c
VZ
14116 if test "$enableval" = yes; then
14117 wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14118 else
14119 wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14120 fi
0295153c
VZ
14121
14122else
14123
0295153c
VZ
14124 wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14125
47964710
VS
14126fi
14127
0295153c
VZ
14128
14129 eval "$wx_cv_use_ps_in_msw"
0295153c
VZ
14130
14131 if test x"$enablestring" = xdisable; then
7ac0e38e 14132 if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
0295153c 14133 result=yes
7ac0e38e
VZ
14134 else
14135 result=no
0295153c
VZ
14136 fi
14137 else
14138 result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14139 fi
14140
d589327a
VZ
14141 { echo "$as_me:$LINENO: result: $result" >&5
14142echo "${ECHO_T}$result" >&6; }
0295153c
VZ
14143
14144
6fdf2acc
VZ
14145 enablestring=
14146 defaultval=$wxUSE_ALL_FEATURES
14147 if test -z "$defaultval"; then
14148 if test x"$enablestring" = xdisable; then
14149 defaultval=yes
14150 else
14151 defaultval=no
14152 fi
14153 fi
14154
d589327a
VZ
14155 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14156echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
47964710 14157 # Check whether --enable-ownerdrawn was given.
6fdf2acc 14158if test "${enable_ownerdrawn+set}" = set; then
47964710 14159 enableval=$enable_ownerdrawn;
6fdf2acc
VZ
14160 if test "$enableval" = yes; then
14161 wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14162 else
14163 wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14164 fi
6fdf2acc
VZ
14165
14166else
14167
6fdf2acc
VZ
14168 wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14169
47964710
VS
14170fi
14171
6fdf2acc
VZ
14172
14173 eval "$wx_cv_use_ownerdrawn"
6fdf2acc
VZ
14174
14175 if test x"$enablestring" = xdisable; then
7ac0e38e 14176 if test $wxUSE_OWNER_DRAWN = no; then
6fdf2acc 14177 result=yes
7ac0e38e
VZ
14178 else
14179 result=no
6fdf2acc
VZ
14180 fi
14181 else
14182 result=$wxUSE_OWNER_DRAWN
14183 fi
14184
d589327a
VZ
14185 { echo "$as_me:$LINENO: result: $result" >&5
14186echo "${ECHO_T}$result" >&6; }
6fdf2acc
VZ
14187
14188
5d18e029
VZ
14189 enablestring=
14190 defaultval=$wxUSE_ALL_FEATURES
14191 if test -z "$defaultval"; then
14192 if test x"$enablestring" = xdisable; then
14193 defaultval=yes
14194 else
14195 defaultval=no
14196 fi
14197 fi
14198
d589327a
VZ
14199 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14200echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
47964710 14201 # Check whether --enable-uxtheme was given.
5d18e029 14202if test "${enable_uxtheme+set}" = set; then
47964710 14203 enableval=$enable_uxtheme;
5d18e029
VZ
14204 if test "$enableval" = yes; then
14205 wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14206 else
14207 wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14208 fi
14209
14210else
14211
5d18e029
VZ
14212 wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14213
47964710
VS
14214fi
14215
5d18e029
VZ
14216
14217 eval "$wx_cv_use_uxtheme"
5d18e029
VZ
14218
14219 if test x"$enablestring" = xdisable; then
7ac0e38e 14220 if test $wxUSE_UXTHEME = no; then
5d18e029 14221 result=yes
7ac0e38e
VZ
14222 else
14223 result=no
5d18e029
VZ
14224 fi
14225 else
14226 result=$wxUSE_UXTHEME
14227 fi
14228
d589327a
VZ
14229 { echo "$as_me:$LINENO: result: $result" >&5
14230echo "${ECHO_T}$result" >&6; }
5d18e029
VZ
14231
14232
508d12b2
VZ
14233 enablestring=
14234 defaultval=$wxUSE_ALL_FEATURES
14235 if test -z "$defaultval"; then
14236 if test x"$enablestring" = xdisable; then
14237 defaultval=yes
14238 else
14239 defaultval=no
14240 fi
14241 fi
14242
d589327a
VZ
14243 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14244echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
47964710 14245 # Check whether --enable-wxdib was given.
508d12b2 14246if test "${enable_wxdib+set}" = set; then
47964710 14247 enableval=$enable_wxdib;
508d12b2
VZ
14248 if test "$enableval" = yes; then
14249 wx_cv_use_wxdib='wxUSE_DIB=yes'
14250 else
14251 wx_cv_use_wxdib='wxUSE_DIB=no'
14252 fi
508d12b2
VZ
14253
14254else
14255
508d12b2
VZ
14256 wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14257
47964710
VS
14258fi
14259
508d12b2
VZ
14260
14261 eval "$wx_cv_use_wxdib"
508d12b2
VZ
14262
14263 if test x"$enablestring" = xdisable; then
7ac0e38e 14264 if test $wxUSE_DIB = no; then
508d12b2 14265 result=yes
7ac0e38e
VZ
14266 else
14267 result=no
508d12b2
VZ
14268 fi
14269 else
14270 result=$wxUSE_DIB
14271 fi
14272
d589327a
VZ
14273 { echo "$as_me:$LINENO: result: $result" >&5
14274echo "${ECHO_T}$result" >&6; }
508d12b2
VZ
14275
14276
91a2809d
VZ
14277if test "$wxUSE_MSW" != 1; then
14278 DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
14279fi
14280
14281
75a29ef1
VZ
14282 enablestring=
14283 defaultval=$wxUSE_ALL_FEATURES
14284 if test -z "$defaultval"; then
14285 if test x"$enablestring" = xdisable; then
14286 defaultval=yes
14287 else
14288 defaultval=no
14289 fi
14290 fi
14291
d589327a
VZ
14292 { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
14293echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
75a29ef1
VZ
14294 # Check whether --enable-autoidman was given.
14295if test "${enable_autoidman+set}" = set; then
14296 enableval=$enable_autoidman;
14297 if test "$enableval" = yes; then
14298 wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
14299 else
14300 wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
14301 fi
14302
14303else
14304
14305 wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
14306
14307fi
14308
14309
14310 eval "$wx_cv_use_autoidman"
14311
14312 if test x"$enablestring" = xdisable; then
7ac0e38e 14313 if test $wxUSE_AUTOID_MANAGEMENT = no; then
75a29ef1 14314 result=yes
7ac0e38e
VZ
14315 else
14316 result=no
75a29ef1
VZ
14317 fi
14318 else
14319 result=$wxUSE_AUTOID_MANAGEMENT
14320 fi
14321
d589327a
VZ
14322 { echo "$as_me:$LINENO: result: $result" >&5
14323echo "${ECHO_T}$result" >&6; }
75a29ef1
VZ
14324
14325
a848cd7e
SC
14326fi
14327
a848cd7e 14328
8bf7f1a9
VZ
14329cat >confcache <<\_ACEOF
14330# This file is a shell script that caches the results of configure
14331# tests run on this system so they can be shared between configure
14332# scripts and configure runs, see configure's option --config-cache.
14333# It is not useful on other systems. If it contains results you don't
14334# want to keep, you may remove or edit it.
14335#
14336# config.status only pays attention to the cache file if you give it
14337# the --recheck option to rerun configure.
14338#
14339# `ac_cv_env_foo' variables (set or unset) will be overridden when
14340# loading this file, other *unset* `ac_cv_foo' will be assigned the
14341# following values.
14342
14343_ACEOF
14344
14345# The following way of writing the cache mishandles newlines in values,
14346# but we know of no workaround that is simple, portable, and efficient.
47964710 14347# So, we kill variables containing newlines.
8bf7f1a9
VZ
14348# Ultrix sh set writes to stderr and can't be redirected directly,
14349# and sets the high bit in the cache file unless we assign to the vars.
47964710
VS
14350(
14351 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14352 eval ac_val=\$$ac_var
14353 case $ac_val in #(
14354 *${as_nl}*)
14355 case $ac_var in #(
d589327a
VZ
14356 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14357echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
47964710
VS
14358 esac
14359 case $ac_var in #(
14360 _ | IFS | as_nl) ;; #(
14361 *) $as_unset $ac_var ;;
14362 esac ;;
14363 esac
14364 done
14365
8bf7f1a9 14366 (set) 2>&1 |
47964710
VS
14367 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14368 *${as_nl}ac_space=\ *)
8bf7f1a9
VZ
14369 # `set' does not quote correctly, so add quotes (double-quote
14370 # substitution turns \\\\ into \\, and sed turns \\ into \).
14371 sed -n \
14372 "s/'/'\\\\''/g;
14373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47964710 14374 ;; #(
8bf7f1a9
VZ
14375 *)
14376 # `set' quotes correctly as required by POSIX, so do not add quotes.
47964710 14377 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8bf7f1a9 14378 ;;
47964710
VS
14379 esac |
14380 sort
14381) |
8bf7f1a9 14382 sed '
47964710 14383 /^ac_cv_env_/b end
8bf7f1a9 14384 t clear
47964710 14385 :clear
8bf7f1a9
VZ
14386 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14387 t end
47964710
VS
14388 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14389 :end' >>confcache
14390if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14391 if test -w "$cache_file"; then
14392 test "x$cache_file" != "x/dev/null" &&
d589327a
VZ
14393 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14394echo "$as_me: updating cache $cache_file" >&6;}
8bf7f1a9
VZ
14395 cat confcache >$cache_file
14396 else
d589327a
VZ
14397 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14398echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8bf7f1a9
VZ
14399 fi
14400fi
14401rm -f confcache
14402
14403CFLAGS=${CFLAGS:=}
14404
14405
14406
14407 ac_ext=c
a848cd7e
SC
14408ac_cpp='$CPP $CPPFLAGS'
14409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14411ac_compiler_gnu=$ac_cv_c_compiler_gnu
14412if test -n "$ac_tool_prefix"; then
14413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14414set dummy ${ac_tool_prefix}gcc; ac_word=$2
d589327a
VZ
14415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 14417if test "${ac_cv_prog_CC+set}" = set; then
d589327a 14418 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
14419else
14420 if test -n "$CC"; then
14421 ac_cv_prog_CC="$CC" # Let the user override the test.
14422else
14423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14424for as_dir in $PATH
14425do
14426 IFS=$as_save_IFS
14427 test -z "$as_dir" && as_dir=.
14428 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 14429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 14430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
d589327a 14431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
14432 break 2
14433 fi
14434done
14435done
47964710 14436IFS=$as_save_IFS
a848cd7e
SC
14437
14438fi
14439fi
14440CC=$ac_cv_prog_CC
14441if test -n "$CC"; then
d589327a
VZ
14442 { echo "$as_me:$LINENO: result: $CC" >&5
14443echo "${ECHO_T}$CC" >&6; }
a848cd7e 14444else
d589327a
VZ
14445 { echo "$as_me:$LINENO: result: no" >&5
14446echo "${ECHO_T}no" >&6; }
a848cd7e
SC
14447fi
14448
47964710 14449
a848cd7e
SC
14450fi
14451if test -z "$ac_cv_prog_CC"; then
14452 ac_ct_CC=$CC
14453 # Extract the first word of "gcc", so it can be a program name with args.
14454set dummy gcc; ac_word=$2
d589327a
VZ
14455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 14457if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d589327a 14458 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
14459else
14460 if test -n "$ac_ct_CC"; then
14461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14462else
14463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14464for as_dir in $PATH
14465do
14466 IFS=$as_save_IFS
14467 test -z "$as_dir" && as_dir=.
14468 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 14469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 14470 ac_cv_prog_ac_ct_CC="gcc"
d589327a 14471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
14472 break 2
14473 fi
14474done
14475done
47964710 14476IFS=$as_save_IFS
a848cd7e
SC
14477
14478fi
14479fi
14480ac_ct_CC=$ac_cv_prog_ac_ct_CC
14481if test -n "$ac_ct_CC"; then
d589327a
VZ
14482 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14483echo "${ECHO_T}$ac_ct_CC" >&6; }
a848cd7e 14484else
d589327a
VZ
14485 { echo "$as_me:$LINENO: result: no" >&5
14486echo "${ECHO_T}no" >&6; }
a848cd7e
SC
14487fi
14488
47964710
VS
14489 if test "x$ac_ct_CC" = x; then
14490 CC=""
14491 else
14492 case $cross_compiling:$ac_tool_warned in
14493yes:)
d589327a
VZ
14494{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14495whose name does not start with the host triplet. If you think this
14496configuration is useful to you, please write to autoconf@gnu.org." >&5
14497echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14498whose name does not start with the host triplet. If you think this
14499configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47964710
VS
14500ac_tool_warned=yes ;;
14501esac
14502 CC=$ac_ct_CC
14503 fi
a848cd7e
SC
14504else
14505 CC="$ac_cv_prog_CC"
14506fi
14507
14508if test -z "$CC"; then
47964710
VS
14509 if test -n "$ac_tool_prefix"; then
14510 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
a848cd7e 14511set dummy ${ac_tool_prefix}cc; ac_word=$2
d589327a
VZ
14512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 14514if test "${ac_cv_prog_CC+set}" = set; then
d589327a 14515 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
14516else
14517 if test -n "$CC"; then
14518 ac_cv_prog_CC="$CC" # Let the user override the test.
14519else
14520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14521for as_dir in $PATH
14522do
14523 IFS=$as_save_IFS
14524 test -z "$as_dir" && as_dir=.
14525 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 14526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 14527 ac_cv_prog_CC="${ac_tool_prefix}cc"
d589327a 14528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
14529 break 2
14530 fi
14531done
14532done
47964710 14533IFS=$as_save_IFS
a848cd7e
SC
14534
14535fi
14536fi
14537CC=$ac_cv_prog_CC
14538if test -n "$CC"; then
d589327a
VZ
14539 { echo "$as_me:$LINENO: result: $CC" >&5
14540echo "${ECHO_T}$CC" >&6; }
4db03d26 14541else
d589327a
VZ
14542 { echo "$as_me:$LINENO: result: no" >&5
14543echo "${ECHO_T}no" >&6; }
4db03d26
VZ
14544fi
14545
bd8a7646 14546
47964710 14547 fi
a848cd7e
SC
14548fi
14549if test -z "$CC"; then
14550 # Extract the first word of "cc", so it can be a program name with args.
14551set dummy cc; ac_word=$2
d589327a
VZ
14552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 14554if test "${ac_cv_prog_CC+set}" = set; then
d589327a 14555 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
14556else
14557 if test -n "$CC"; then
14558 ac_cv_prog_CC="$CC" # Let the user override the test.
14559else
14560 ac_prog_rejected=no
14561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14562for as_dir in $PATH
14563do
14564 IFS=$as_save_IFS
14565 test -z "$as_dir" && as_dir=.
14566 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 14567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e
SC
14568 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14569 ac_prog_rejected=yes
14570 continue
14571 fi
14572 ac_cv_prog_CC="cc"
d589327a 14573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
14574 break 2
14575 fi
14576done
14577done
47964710 14578IFS=$as_save_IFS
a848cd7e
SC
14579
14580if test $ac_prog_rejected = yes; then
14581 # We found a bogon in the path, so make sure we never use it.
14582 set dummy $ac_cv_prog_CC
14583 shift
14584 if test $# != 0; then
14585 # We chose a different compiler from the bogus one.
14586 # However, it has the same basename, so the bogon will be chosen
14587 # first if we set CC to just the basename; use the full file name.
14588 shift
14589 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14590 fi
14591fi
14592fi
14593fi
14594CC=$ac_cv_prog_CC
14595if test -n "$CC"; then
d589327a
VZ
14596 { echo "$as_me:$LINENO: result: $CC" >&5
14597echo "${ECHO_T}$CC" >&6; }
a848cd7e 14598else
d589327a
VZ
14599 { echo "$as_me:$LINENO: result: no" >&5
14600echo "${ECHO_T}no" >&6; }
a848cd7e
SC
14601fi
14602
47964710 14603
a848cd7e
SC
14604fi
14605if test -z "$CC"; then
14606 if test -n "$ac_tool_prefix"; then
47964710 14607 for ac_prog in cl.exe
a848cd7e
SC
14608 do
14609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14610set dummy $ac_tool_prefix$ac_prog; ac_word=$2
d589327a
VZ
14611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 14613if test "${ac_cv_prog_CC+set}" = set; then
d589327a 14614 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
14615else
14616 if test -n "$CC"; then
14617 ac_cv_prog_CC="$CC" # Let the user override the test.
14618else
14619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14620for as_dir in $PATH
14621do
14622 IFS=$as_save_IFS
14623 test -z "$as_dir" && as_dir=.
14624 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 14625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 14626 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
d589327a 14627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
14628 break 2
14629 fi
14630done
14631done
47964710 14632IFS=$as_save_IFS
a848cd7e
SC
14633
14634fi
14635fi
14636CC=$ac_cv_prog_CC
14637if test -n "$CC"; then
d589327a
VZ
14638 { echo "$as_me:$LINENO: result: $CC" >&5
14639echo "${ECHO_T}$CC" >&6; }
a848cd7e 14640else
d589327a
VZ
14641 { echo "$as_me:$LINENO: result: no" >&5
14642echo "${ECHO_T}no" >&6; }
a848cd7e
SC
14643fi
14644
47964710 14645
a848cd7e
SC
14646 test -n "$CC" && break
14647 done
14648fi
14649if test -z "$CC"; then
14650 ac_ct_CC=$CC
47964710 14651 for ac_prog in cl.exe
a848cd7e
SC
14652do
14653 # Extract the first word of "$ac_prog", so it can be a program name with args.
14654set dummy $ac_prog; ac_word=$2
d589327a
VZ
14655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 14657if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d589327a 14658 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
14659else
14660 if test -n "$ac_ct_CC"; then
14661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14662else
14663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14664for as_dir in $PATH
14665do
14666 IFS=$as_save_IFS
14667 test -z "$as_dir" && as_dir=.
14668 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 14669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 14670 ac_cv_prog_ac_ct_CC="$ac_prog"
d589327a 14671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
14672 break 2
14673 fi
14674done
14675done
47964710 14676IFS=$as_save_IFS
a848cd7e
SC
14677
14678fi
14679fi
14680ac_ct_CC=$ac_cv_prog_ac_ct_CC
14681if test -n "$ac_ct_CC"; then
d589327a
VZ
14682 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14683echo "${ECHO_T}$ac_ct_CC" >&6; }
a848cd7e 14684else
d589327a
VZ
14685 { echo "$as_me:$LINENO: result: no" >&5
14686echo "${ECHO_T}no" >&6; }
a848cd7e
SC
14687fi
14688
47964710 14689
a848cd7e
SC
14690 test -n "$ac_ct_CC" && break
14691done
14692
47964710
VS
14693 if test "x$ac_ct_CC" = x; then
14694 CC=""
14695 else
14696 case $cross_compiling:$ac_tool_warned in
14697yes:)
d589327a
VZ
14698{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14699whose name does not start with the host triplet. If you think this
14700configuration is useful to you, please write to autoconf@gnu.org." >&5
14701echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14702whose name does not start with the host triplet. If you think this
14703configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47964710
VS
14704ac_tool_warned=yes ;;
14705esac
14706 CC=$ac_ct_CC
14707 fi
a848cd7e
SC
14708fi
14709
14710fi
14711
14712
d589327a 14713test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
a848cd7e 14714See \`config.log' for more details." >&5
d589327a 14715echo "$as_me: error: no acceptable C compiler found in \$PATH
a848cd7e 14716See \`config.log' for more details." >&2;}
d589327a 14717 { (exit 1); exit 1; }; }
a848cd7e
SC
14718
14719# Provide some information about the compiler.
d589327a
VZ
14720echo "$as_me:$LINENO: checking for C compiler version" >&5
14721ac_compiler=`set X $ac_compile; echo $2`
47964710
VS
14722{ (ac_try="$ac_compiler --version >&5"
14723case "(($ac_try" in
14724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725 *) ac_try_echo=$ac_try;;
14726esac
d589327a 14727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 14728 (eval "$ac_compiler --version >&5") 2>&5
a848cd7e 14729 ac_status=$?
d589327a 14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 14731 (exit $ac_status); }
47964710
VS
14732{ (ac_try="$ac_compiler -v >&5"
14733case "(($ac_try" in
14734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14735 *) ac_try_echo=$ac_try;;
14736esac
d589327a 14737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 14738 (eval "$ac_compiler -v >&5") 2>&5
a848cd7e 14739 ac_status=$?
d589327a 14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 14741 (exit $ac_status); }
47964710
VS
14742{ (ac_try="$ac_compiler -V >&5"
14743case "(($ac_try" in
14744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745 *) ac_try_echo=$ac_try;;
14746esac
d589327a 14747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 14748 (eval "$ac_compiler -V >&5") 2>&5
a848cd7e 14749 ac_status=$?
d589327a 14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
14751 (exit $ac_status); }
14752
14753cat >conftest.$ac_ext <<_ACEOF
14754/* confdefs.h. */
14755_ACEOF
14756cat confdefs.h >>conftest.$ac_ext
14757cat >>conftest.$ac_ext <<_ACEOF
14758/* end confdefs.h. */
14759
14760int
14761main ()
14762{
14763
14764 ;
14765 return 0;
14766}
14767_ACEOF
14768ac_clean_files_save=$ac_clean_files
d589327a 14769ac_clean_files="$ac_clean_files a.out a.exe b.out"
a848cd7e
SC
14770# Try to create an executable without -o first, disregard a.out.
14771# It will help us diagnose broken compilers, and finding out an intuition
14772# of exeext.
d589327a
VZ
14773{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14774echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14775ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14776#
14777# List of possible output files, starting from the most likely.
14778# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14779# only as a last resort. b.out is created by i960 compilers.
14780ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14781#
14782# The IRIX 6 linker writes into existing files which may not be
14783# executable, retaining their permissions. Remove them first so a
14784# subsequent execution test works.
47964710
VS
14785ac_rmfiles=
14786for ac_file in $ac_files
14787do
14788 case $ac_file in
d589327a 14789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
47964710
VS
14790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14791 esac
14792done
14793rm -f $ac_rmfiles
14794
14795if { (ac_try="$ac_link_default"
14796case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14799esac
d589327a 14800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 14801 (eval "$ac_link_default") 2>&5
a848cd7e 14802 ac_status=$?
d589327a 14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 14804 (exit $ac_status); }; then
47964710
VS
14805 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14806# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14807# in a Makefile. We should not override ac_cv_exeext if it was cached,
14808# so that the user can short-circuit this test for compilers unknown to
14809# Autoconf.
14810for ac_file in $ac_files ''
a848cd7e
SC
14811do
14812 test -f "$ac_file" || continue
14813 case $ac_file in
d589327a 14814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
ac1cb8d3 14815 ;;
a848cd7e 14816 [ab].out )
ac1cb8d3
VS
14817 # We found the default executable, but exeext='' is most
14818 # certainly right.
14819 break;;
a848cd7e 14820 *.* )
47964710
VS
14821 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14822 then :; else
14823 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14824 fi
14825 # We set ac_cv_exeext here because the later test for it is not
14826 # safe: cross compilers may not add the suffix if given an `-o'
14827 # argument, so we may need to know it at that point already.
14828 # Even if this section looks crufty: it has the advantage of
14829 # actually working.
ac1cb8d3 14830 break;;
a848cd7e 14831 * )
ac1cb8d3 14832 break;;
a848cd7e
SC
14833 esac
14834done
47964710
VS
14835test "$ac_cv_exeext" = no && ac_cv_exeext=
14836
a848cd7e 14837else
47964710
VS
14838 ac_file=''
14839fi
14840
d589327a
VZ
14841{ echo "$as_me:$LINENO: result: $ac_file" >&5
14842echo "${ECHO_T}$ac_file" >&6; }
47964710 14843if test -z "$ac_file"; then
d589327a 14844 echo "$as_me: failed program was:" >&5
a848cd7e
SC
14845sed 's/^/| /' conftest.$ac_ext >&5
14846
d589327a 14847{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
a848cd7e 14848See \`config.log' for more details." >&5
d589327a 14849echo "$as_me: error: C compiler cannot create executables
a848cd7e 14850See \`config.log' for more details." >&2;}
d589327a 14851 { (exit 77); exit 77; }; }
a848cd7e
SC
14852fi
14853
14854ac_exeext=$ac_cv_exeext
a848cd7e 14855
47964710 14856# Check that the compiler produces executables we can run. If not, either
a848cd7e 14857# the compiler is broken, or we cross compile.
d589327a
VZ
14858{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14859echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
a848cd7e
SC
14860# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14861# If not cross compiling, check that we can run a simple program.
14862if test "$cross_compiling" != yes; then
14863 if { ac_try='./$ac_file'
47964710
VS
14864 { (case "(($ac_try" in
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866 *) ac_try_echo=$ac_try;;
14867esac
d589327a 14868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 14869 (eval "$ac_try") 2>&5
a848cd7e 14870 ac_status=$?
d589327a 14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
14872 (exit $ac_status); }; }; then
14873 cross_compiling=no
14874 else
14875 if test "$cross_compiling" = maybe; then
14876 cross_compiling=yes
14877 else
d589327a 14878 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
a848cd7e
SC
14879If you meant to cross compile, use \`--host'.
14880See \`config.log' for more details." >&5
d589327a 14881echo "$as_me: error: cannot run C compiled programs.
a848cd7e
SC
14882If you meant to cross compile, use \`--host'.
14883See \`config.log' for more details." >&2;}
d589327a 14884 { (exit 1); exit 1; }; }
a848cd7e
SC
14885 fi
14886 fi
14887fi
d589327a
VZ
14888{ echo "$as_me:$LINENO: result: yes" >&5
14889echo "${ECHO_T}yes" >&6; }
a848cd7e 14890
d589327a 14891rm -f a.out a.exe conftest$ac_cv_exeext b.out
a848cd7e 14892ac_clean_files=$ac_clean_files_save
47964710 14893# Check that the compiler produces executables we can run. If not, either
a848cd7e 14894# the compiler is broken, or we cross compile.
d589327a
VZ
14895{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14896echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14897{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
14898echo "${ECHO_T}$cross_compiling" >&6; }
47964710 14899
d589327a
VZ
14900{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
14901echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
47964710
VS
14902if { (ac_try="$ac_link"
14903case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14906esac
d589327a 14907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 14908 (eval "$ac_link") 2>&5
a848cd7e 14909 ac_status=$?
d589327a 14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
14911 (exit $ac_status); }; then
14912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
14913# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
14914# work properly (i.e., refer to `conftest.exe'), while it won't with
14915# `rm'.
14916for ac_file in conftest.exe conftest conftest.*; do
14917 test -f "$ac_file" || continue
14918 case $ac_file in
d589327a 14919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
a848cd7e 14920 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3 14921 break;;
8bf7f1a9
VZ
14922 * ) break;;
14923 esac
6da4ac91 14924done
6da4ac91 14925else
d589327a 14926 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
8bf7f1a9 14927See \`config.log' for more details." >&5
d589327a 14928echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
8bf7f1a9 14929See \`config.log' for more details." >&2;}
d589327a 14930 { (exit 1); exit 1; }; }
6da4ac91
VZ
14931fi
14932
8bf7f1a9 14933rm -f conftest$ac_cv_exeext
d589327a
VZ
14934{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14935echo "${ECHO_T}$ac_cv_exeext" >&6; }
8bf7f1a9
VZ
14936
14937rm -f conftest.$ac_ext
14938EXEEXT=$ac_cv_exeext
14939ac_exeext=$EXEEXT
d589327a
VZ
14940{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
14941echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
8bf7f1a9 14942if test "${ac_cv_objext+set}" = set; then
d589327a 14943 echo $ECHO_N "(cached) $ECHO_C" >&6
6da4ac91 14944else
8bf7f1a9
VZ
14945 cat >conftest.$ac_ext <<_ACEOF
14946/* confdefs.h. */
14947_ACEOF
14948cat confdefs.h >>conftest.$ac_ext
14949cat >>conftest.$ac_ext <<_ACEOF
14950/* end confdefs.h. */
6da4ac91 14951
8bf7f1a9
VZ
14952int
14953main ()
14954{
6da4ac91 14955
8bf7f1a9
VZ
14956 ;
14957 return 0;
14958}
14959_ACEOF
14960rm -f conftest.o conftest.obj
47964710
VS
14961if { (ac_try="$ac_compile"
14962case "(($ac_try" in
14963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964 *) ac_try_echo=$ac_try;;
14965esac
d589327a 14966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 14967 (eval "$ac_compile") 2>&5
8bf7f1a9 14968 ac_status=$?
d589327a 14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8bf7f1a9 14970 (exit $ac_status); }; then
47964710
VS
14971 for ac_file in conftest.o conftest.obj conftest.*; do
14972 test -f "$ac_file" || continue;
8bf7f1a9 14973 case $ac_file in
d589327a 14974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
8bf7f1a9
VZ
14975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14976 break;;
14977 esac
6da4ac91 14978done
8bf7f1a9 14979else
d589327a 14980 echo "$as_me: failed program was:" >&5
8bf7f1a9 14981sed 's/^/| /' conftest.$ac_ext >&5
6da4ac91 14982
d589327a 14983{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
6da4ac91 14984See \`config.log' for more details." >&5
d589327a 14985echo "$as_me: error: cannot compute suffix of object files: cannot compile
6da4ac91 14986See \`config.log' for more details." >&2;}
d589327a 14987 { (exit 1); exit 1; }; }
8bf7f1a9 14988fi
6da4ac91 14989
8bf7f1a9
VZ
14990rm -f conftest.$ac_cv_objext conftest.$ac_ext
14991fi
d589327a
VZ
14992{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14993echo "${ECHO_T}$ac_cv_objext" >&6; }
8bf7f1a9
VZ
14994OBJEXT=$ac_cv_objext
14995ac_objext=$OBJEXT
d589327a
VZ
14996{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14997echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
6da4ac91 14998if test "${ac_cv_c_compiler_gnu+set}" = set; then
d589327a 14999 echo $ECHO_N "(cached) $ECHO_C" >&6
6da4ac91
VZ
15000else
15001 cat >conftest.$ac_ext <<_ACEOF
15002/* confdefs.h. */
15003_ACEOF
15004cat confdefs.h >>conftest.$ac_ext
15005cat >>conftest.$ac_ext <<_ACEOF
15006/* end confdefs.h. */
15007
15008int
15009main ()
15010{
15011#ifndef __GNUC__
15012 choke me
15013#endif
15014
15015 ;
15016 return 0;
15017}
15018_ACEOF
15019rm -f conftest.$ac_objext
47964710
VS
15020if { (ac_try="$ac_compile"
15021case "(($ac_try" in
15022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023 *) ac_try_echo=$ac_try;;
15024esac
d589327a 15025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 15026 (eval "$ac_compile") 2>conftest.er1
6da4ac91
VZ
15027 ac_status=$?
15028 grep -v '^ *+' conftest.er1 >conftest.err
15029 rm -f conftest.er1
15030 cat conftest.err >&5
d589327a 15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
15032 (exit $ac_status); } && {
15033 test -z "$ac_c_werror_flag" ||
15034 test ! -s conftest.err
15035 } && test -s conftest.$ac_objext; then
6da4ac91
VZ
15036 ac_compiler_gnu=yes
15037else
d589327a 15038 echo "$as_me: failed program was:" >&5
6da4ac91
VZ
15039sed 's/^/| /' conftest.$ac_ext >&5
15040
47964710 15041 ac_compiler_gnu=no
6da4ac91 15042fi
47964710
VS
15043
15044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6da4ac91
VZ
15045ac_cv_c_compiler_gnu=$ac_compiler_gnu
15046
15047fi
d589327a
VZ
15048{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15049echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
15050GCC=`test $ac_compiler_gnu = yes && echo yes`
6da4ac91
VZ
15051ac_test_CFLAGS=${CFLAGS+set}
15052ac_save_CFLAGS=$CFLAGS
d589327a
VZ
15053{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15054echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6da4ac91 15055if test "${ac_cv_prog_cc_g+set}" = set; then
d589327a 15056 echo $ECHO_N "(cached) $ECHO_C" >&6
6da4ac91 15057else
47964710
VS
15058 ac_save_c_werror_flag=$ac_c_werror_flag
15059 ac_c_werror_flag=yes
15060 ac_cv_prog_cc_g=no
15061 CFLAGS="-g"
15062 cat >conftest.$ac_ext <<_ACEOF
3f7f284d
RD
15063/* confdefs.h. */
15064_ACEOF
15065cat confdefs.h >>conftest.$ac_ext
15066cat >>conftest.$ac_ext <<_ACEOF
15067/* end confdefs.h. */
15068
15069int
15070main ()
15071{
15072
15073 ;
15074 return 0;
15075}
15076_ACEOF
15077rm -f conftest.$ac_objext
47964710
VS
15078if { (ac_try="$ac_compile"
15079case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15082esac
d589327a 15083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 15084 (eval "$ac_compile") 2>conftest.er1
3f7f284d
RD
15085 ac_status=$?
15086 grep -v '^ *+' conftest.er1 >conftest.err
15087 rm -f conftest.er1
15088 cat conftest.err >&5
d589327a 15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
15090 (exit $ac_status); } && {
15091 test -z "$ac_c_werror_flag" ||
15092 test ! -s conftest.err
15093 } && test -s conftest.$ac_objext; then
15094 ac_cv_prog_cc_g=yes
15095else
d589327a 15096 echo "$as_me: failed program was:" >&5
47964710
VS
15097sed 's/^/| /' conftest.$ac_ext >&5
15098
15099 CFLAGS=""
15100 cat >conftest.$ac_ext <<_ACEOF
15101/* confdefs.h. */
15102_ACEOF
15103cat confdefs.h >>conftest.$ac_ext
15104cat >>conftest.$ac_ext <<_ACEOF
15105/* end confdefs.h. */
15106
15107int
15108main ()
15109{
15110
15111 ;
15112 return 0;
15113}
15114_ACEOF
15115rm -f conftest.$ac_objext
15116if { (ac_try="$ac_compile"
15117case "(($ac_try" in
15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15120esac
d589327a 15121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 15122 (eval "$ac_compile") 2>conftest.er1
7fd3acaf 15123 ac_status=$?
47964710
VS
15124 grep -v '^ *+' conftest.er1 >conftest.err
15125 rm -f conftest.er1
15126 cat conftest.err >&5
d589327a 15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
15128 (exit $ac_status); } && {
15129 test -z "$ac_c_werror_flag" ||
15130 test ! -s conftest.err
15131 } && test -s conftest.$ac_objext; then
15132 :
15133else
d589327a 15134 echo "$as_me: failed program was:" >&5
47964710
VS
15135sed 's/^/| /' conftest.$ac_ext >&5
15136
15137 ac_c_werror_flag=$ac_save_c_werror_flag
15138 CFLAGS="-g"
15139 cat >conftest.$ac_ext <<_ACEOF
15140/* confdefs.h. */
15141_ACEOF
15142cat confdefs.h >>conftest.$ac_ext
15143cat >>conftest.$ac_ext <<_ACEOF
15144/* end confdefs.h. */
15145
15146int
15147main ()
15148{
15149
15150 ;
15151 return 0;
15152}
15153_ACEOF
15154rm -f conftest.$ac_objext
15155if { (ac_try="$ac_compile"
15156case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15159esac
d589327a 15160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 15161 (eval "$ac_compile") 2>conftest.er1
7fd3acaf 15162 ac_status=$?
47964710
VS
15163 grep -v '^ *+' conftest.er1 >conftest.err
15164 rm -f conftest.er1
15165 cat conftest.err >&5
d589327a 15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
15167 (exit $ac_status); } && {
15168 test -z "$ac_c_werror_flag" ||
15169 test ! -s conftest.err
15170 } && test -s conftest.$ac_objext; then
7fd3acaf
RD
15171 ac_cv_prog_cc_g=yes
15172else
d589327a 15173 echo "$as_me: failed program was:" >&5
7fd3acaf
RD
15174sed 's/^/| /' conftest.$ac_ext >&5
15175
47964710 15176
6da4ac91 15177fi
47964710
VS
15178
15179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180fi
15181
15182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15183fi
15184
15185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15186 ac_c_werror_flag=$ac_save_c_werror_flag
84ebfcbd 15187fi
d589327a
VZ
15188{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15189echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6da4ac91
VZ
15190if test "$ac_test_CFLAGS" = set; then
15191 CFLAGS=$ac_save_CFLAGS
15192elif test $ac_cv_prog_cc_g = yes; then
15193 if test "$GCC" = yes; then
15194 CFLAGS="-g -O2"
15195 else
15196 CFLAGS="-g"
15197 fi
15198else
15199 if test "$GCC" = yes; then
15200 CFLAGS="-O2"
15201 else
15202 CFLAGS=
15203 fi
15204fi
d589327a
VZ
15205{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15206echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
47964710 15207if test "${ac_cv_prog_cc_c89+set}" = set; then
d589327a 15208 echo $ECHO_N "(cached) $ECHO_C" >&6
6da4ac91 15209else
47964710 15210 ac_cv_prog_cc_c89=no
6da4ac91
VZ
15211ac_save_CC=$CC
15212cat >conftest.$ac_ext <<_ACEOF
15213/* confdefs.h. */
15214_ACEOF
15215cat confdefs.h >>conftest.$ac_ext
15216cat >>conftest.$ac_ext <<_ACEOF
15217/* end confdefs.h. */
15218#include <stdarg.h>
15219#include <stdio.h>
15220#include <sys/types.h>
15221#include <sys/stat.h>
15222/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15223struct buf { int x; };
15224FILE * (*rcsopen) (struct buf *, struct stat *, int);
15225static char *e (p, i)
15226 char **p;
15227 int i;
15228{
15229 return p[i];
15230}
15231static char *f (char * (*g) (char **, int), char **p, ...)
15232{
15233 char *s;
15234 va_list v;
15235 va_start (v,p);
15236 s = g (p, va_arg (v,int));
15237 va_end (v);
15238 return s;
15239}
15240
15241/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15242 function prototypes and stuff, but not '\xHH' hex character constants.
15243 These don't provoke an error unfortunately, instead are silently treated
47964710 15244 as 'x'. The following induces an error, until -std is added to get
6da4ac91
VZ
15245 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15246 array size at least. It's necessary to write '\x00'==0 to get something
47964710 15247 that's true only with -std. */
6da4ac91
VZ
15248int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15249
47964710
VS
15250/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15251 inside strings and character constants. */
15252#define FOO(x) 'x'
15253int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15254
6da4ac91
VZ
15255int test (int i, double x);
15256struct s1 {int (*f) (int a);};
15257struct s2 {int (*f) (double a);};
15258int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15259int argc;
15260char **argv;
15261int
15262main ()
15263{
15264return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
15265 ;
15266 return 0;
15267}
15268_ACEOF
47964710
VS
15269for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15270 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6da4ac91
VZ
15271do
15272 CC="$ac_save_CC $ac_arg"
15273 rm -f conftest.$ac_objext
47964710
VS
15274if { (ac_try="$ac_compile"
15275case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15278esac
d589327a 15279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 15280 (eval "$ac_compile") 2>conftest.er1
6da4ac91
VZ
15281 ac_status=$?
15282 grep -v '^ *+' conftest.er1 >conftest.err
15283 rm -f conftest.er1
15284 cat conftest.err >&5
d589327a 15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
15286 (exit $ac_status); } && {
15287 test -z "$ac_c_werror_flag" ||
15288 test ! -s conftest.err
15289 } && test -s conftest.$ac_objext; then
15290 ac_cv_prog_cc_c89=$ac_arg
6da4ac91 15291else
d589327a 15292 echo "$as_me: failed program was:" >&5
6da4ac91
VZ
15293sed 's/^/| /' conftest.$ac_ext >&5
15294
47964710 15295
6da4ac91 15296fi
47964710
VS
15297
15298rm -f core conftest.err conftest.$ac_objext
15299 test "x$ac_cv_prog_cc_c89" != "xno" && break
6da4ac91 15300done
47964710 15301rm -f conftest.$ac_ext
6da4ac91
VZ
15302CC=$ac_save_CC
15303
15304fi
47964710
VS
15305# AC_CACHE_VAL
15306case "x$ac_cv_prog_cc_c89" in
15307 x)
d589327a
VZ
15308 { echo "$as_me:$LINENO: result: none needed" >&5
15309echo "${ECHO_T}none needed" >&6; } ;;
47964710 15310 xno)
d589327a
VZ
15311 { echo "$as_me:$LINENO: result: unsupported" >&5
15312echo "${ECHO_T}unsupported" >&6; } ;;
6da4ac91 15313 *)
47964710 15314 CC="$CC $ac_cv_prog_cc_c89"
d589327a
VZ
15315 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
15316echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6da4ac91
VZ
15317esac
15318
bd8a7646 15319
6da4ac91
VZ
15320ac_ext=c
15321ac_cpp='$CPP $CPPFLAGS'
15322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15324ac_compiler_gnu=$ac_cv_c_compiler_gnu
15325
15326
ab0ad5f1 15327
43a7c679 15328
ab0ad5f1
VZ
15329 ac_ext=c
15330ac_cpp='$CPP $CPPFLAGS'
15331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15333ac_compiler_gnu=$ac_cv_c_compiler_gnu
15334
d589327a
VZ
15335 { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
15336echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
ab0ad5f1 15337if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
d589327a 15338 echo $ECHO_N "(cached) $ECHO_C" >&6
ab0ad5f1
VZ
15339else
15340 cat >conftest.$ac_ext <<_ACEOF
15341/* confdefs.h. */
15342_ACEOF
15343cat confdefs.h >>conftest.$ac_ext
15344cat >>conftest.$ac_ext <<_ACEOF
15345/* end confdefs.h. */
15346
15347int
15348main ()
15349{
15350
15351 #ifndef __INTEL_COMPILER
15352 choke me
15353 #endif
15354
15355 ;
15356 return 0;
15357}
15358_ACEOF
15359rm -f conftest.$ac_objext
47964710
VS
15360if { (ac_try="$ac_compile"
15361case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15364esac
d589327a 15365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 15366 (eval "$ac_compile") 2>conftest.er1
ab0ad5f1
VZ
15367 ac_status=$?
15368 grep -v '^ *+' conftest.er1 >conftest.err
15369 rm -f conftest.er1
15370 cat conftest.err >&5
d589327a 15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
15372 (exit $ac_status); } && {
15373 test -z "$ac_c_werror_flag" ||
15374 test ! -s conftest.err
15375 } && test -s conftest.$ac_objext; then
ab0ad5f1
VZ
15376 bakefile_cv_c_compiler___INTEL_COMPILER=yes
15377else
d589327a 15378 echo "$as_me: failed program was:" >&5
ab0ad5f1
VZ
15379sed 's/^/| /' conftest.$ac_ext >&5
15380
47964710 15381 bakefile_cv_c_compiler___INTEL_COMPILER=no
ab0ad5f1
VZ
15382
15383fi
47964710
VS
15384
15385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ab0ad5f1
VZ
15386
15387
15388fi
d589327a
VZ
15389{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15390echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
43a7c679
VZ
15391 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15392 :; INTELCC=yes
15393 else
15394 :;
15395 fi
ab0ad5f1
VZ
15396 ac_ext=c
15397ac_cpp='$CPP $CPPFLAGS'
15398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15400ac_compiler_gnu=$ac_cv_c_compiler_gnu
15401
43a7c679 15402
ab0ad5f1
VZ
15403
15404
05622061
VZ
15405 if test "$INTELCC" = "yes"; then
15406
15407
15408 ac_ext=c
15409ac_cpp='$CPP $CPPFLAGS'
15410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15412ac_compiler_gnu=$ac_cv_c_compiler_gnu
15413
d589327a
VZ
15414 { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15415echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
05622061 15416if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
d589327a 15417 echo $ECHO_N "(cached) $ECHO_C" >&6
05622061
VZ
15418else
15419 cat >conftest.$ac_ext <<_ACEOF
15420/* confdefs.h. */
15421_ACEOF
15422cat confdefs.h >>conftest.$ac_ext
15423cat >>conftest.$ac_ext <<_ACEOF
15424/* end confdefs.h. */
15425
15426int
15427main ()
15428{
15429
15430 #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15431 choke me
15432 #endif
15433
15434 ;
15435 return 0;
15436}
15437_ACEOF
15438rm -f conftest.$ac_objext
15439if { (ac_try="$ac_compile"
15440case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15443esac
d589327a 15444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
05622061
VZ
15445 (eval "$ac_compile") 2>conftest.er1
15446 ac_status=$?
15447 grep -v '^ *+' conftest.er1 >conftest.err
15448 rm -f conftest.er1
15449 cat conftest.err >&5
d589327a 15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
05622061
VZ
15451 (exit $ac_status); } && {
15452 test -z "$ac_c_werror_flag" ||
15453 test ! -s conftest.err
15454 } && test -s conftest.$ac_objext; then
15455 bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15456else
d589327a 15457 echo "$as_me: failed program was:" >&5
05622061
VZ
15458sed 's/^/| /' conftest.$ac_ext >&5
15459
15460 bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15461
15462fi
15463
15464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15465
15466
15467fi
d589327a
VZ
15468{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15469echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
05622061
VZ
15470 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15471 :; INTELCC8=yes
15472 else
15473 :;
15474 fi
15475 ac_ext=c
15476ac_cpp='$CPP $CPPFLAGS'
15477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15479ac_compiler_gnu=$ac_cv_c_compiler_gnu
15480
15481
15482
15483
15484
15485 ac_ext=c
15486ac_cpp='$CPP $CPPFLAGS'
15487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15489ac_compiler_gnu=$ac_cv_c_compiler_gnu
15490
d589327a
VZ
15491 { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15492echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
05622061 15493if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
d589327a 15494 echo $ECHO_N "(cached) $ECHO_C" >&6
05622061
VZ
15495else
15496 cat >conftest.$ac_ext <<_ACEOF
15497/* confdefs.h. */
15498_ACEOF
15499cat confdefs.h >>conftest.$ac_ext
15500cat >>conftest.$ac_ext <<_ACEOF
15501/* end confdefs.h. */
15502
15503int
15504main ()
15505{
15506
15507 #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15508 choke me
15509 #endif
15510
15511 ;
15512 return 0;
15513}
15514_ACEOF
15515rm -f conftest.$ac_objext
15516if { (ac_try="$ac_compile"
15517case "(($ac_try" in
15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519 *) ac_try_echo=$ac_try;;
15520esac
d589327a 15521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
05622061
VZ
15522 (eval "$ac_compile") 2>conftest.er1
15523 ac_status=$?
15524 grep -v '^ *+' conftest.er1 >conftest.err
15525 rm -f conftest.er1
15526 cat conftest.err >&5
d589327a 15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
05622061
VZ
15528 (exit $ac_status); } && {
15529 test -z "$ac_c_werror_flag" ||
15530 test ! -s conftest.err
15531 } && test -s conftest.$ac_objext; then
15532 bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15533else
d589327a 15534 echo "$as_me: failed program was:" >&5
05622061
VZ
15535sed 's/^/| /' conftest.$ac_ext >&5
15536
15537 bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15538
15539fi
15540
15541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542
15543
15544fi
d589327a
VZ
15545{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15546echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
05622061
VZ
15547 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15548 :; INTELCC10=yes
15549 else
15550 :;
15551 fi
15552 ac_ext=c
15553ac_cpp='$CPP $CPPFLAGS'
15554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15556ac_compiler_gnu=$ac_cv_c_compiler_gnu
15557
15558
15559
15560 fi
15561
ab0ad5f1 15562 if test "x$GCC" != "xyes"; then
3006edc0 15563 if test "xCC" = "xC"; then
d589327a
VZ
15564 { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15565echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
0093c2fc 15566if test "${bakefile_cv_c_exto+set}" = set; then
d589327a 15567 echo $ECHO_N "(cached) $ECHO_C" >&6
480ccd21
DE
15568else
15569 cat >conftest.$ac_ext <<_ACEOF
15570/* confdefs.h. */
15571_ACEOF
15572cat confdefs.h >>conftest.$ac_ext
15573cat >>conftest.$ac_ext <<_ACEOF
15574/* end confdefs.h. */
15575
15576int
15577main ()
15578{
15579
15580 ;
15581 return 0;
15582}
15583_ACEOF
15584rm -f conftest.$ac_objext conftest.$ac_ext.o
15585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15586 (eval $ac_compile) 2>&5
15587 ac_status=$?
d589327a 15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
480ccd21
DE
15589 (exit $ac_status); }; then
15590 for ac_file in `(ls conftest.* 2>/dev/null)`; do
15591 case $ac_file in
15592 conftest.$ac_ext.o)
0093c2fc 15593 bakefile_cv_c_exto="-ext o"
480ccd21
DE
15594 ;;
15595 *)
15596 ;;
15597 esac
15598done
15599else
d589327a 15600 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
480ccd21 15601See \`config.log' for more details." >&5
d589327a 15602echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
480ccd21 15603See \`config.log' for more details." >&2;}
d589327a 15604 { (exit 1); exit 1; }; }
480ccd21
DE
15605
15606fi
15607
15608rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15609
15610fi
d589327a
VZ
15611{ echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15612echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
0093c2fc 15613if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 15614 if test "c" = "c"; then
0093c2fc 15615 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
15616 fi
15617 if test "c" = "cxx"; then
0093c2fc 15618 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
15619 fi
15620fi
15621
0093c2fc 15622 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
15623 unset ac_cv_prog_cc_g
15624 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 15625ac_save_CFLAGS=$CFLAGS
d589327a
VZ
15626{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15627echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
480ccd21 15628if test "${ac_cv_prog_cc_g+set}" = set; then
d589327a 15629 echo $ECHO_N "(cached) $ECHO_C" >&6
480ccd21 15630else
47964710
VS
15631 ac_save_c_werror_flag=$ac_c_werror_flag
15632 ac_c_werror_flag=yes
15633 ac_cv_prog_cc_g=no
15634 CFLAGS="-g"
15635 cat >conftest.$ac_ext <<_ACEOF
3f7f284d
RD
15636/* confdefs.h. */
15637_ACEOF
15638cat confdefs.h >>conftest.$ac_ext
15639cat >>conftest.$ac_ext <<_ACEOF
15640/* end confdefs.h. */
15641
15642int
15643main ()
15644{
15645
15646 ;
15647 return 0;
15648}
15649_ACEOF
15650rm -f conftest.$ac_objext
47964710
VS
15651if { (ac_try="$ac_compile"
15652case "(($ac_try" in
15653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654 *) ac_try_echo=$ac_try;;
15655esac
d589327a 15656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 15657 (eval "$ac_compile") 2>conftest.er1
3f7f284d
RD
15658 ac_status=$?
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
d589327a 15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest.$ac_objext; then
15667 ac_cv_prog_cc_g=yes
15668else
d589327a 15669 echo "$as_me: failed program was:" >&5
47964710
VS
15670sed 's/^/| /' conftest.$ac_ext >&5
15671
15672 CFLAGS=""
15673 cat >conftest.$ac_ext <<_ACEOF
15674/* confdefs.h. */
15675_ACEOF
15676cat confdefs.h >>conftest.$ac_ext
15677cat >>conftest.$ac_ext <<_ACEOF
15678/* end confdefs.h. */
15679
15680int
15681main ()
15682{
15683
15684 ;
15685 return 0;
15686}
15687_ACEOF
15688rm -f conftest.$ac_objext
15689if { (ac_try="$ac_compile"
15690case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15693esac
d589327a 15694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 15695 (eval "$ac_compile") 2>conftest.er1
7fd3acaf 15696 ac_status=$?
47964710
VS
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
d589327a 15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
15701 (exit $ac_status); } && {
15702 test -z "$ac_c_werror_flag" ||
15703 test ! -s conftest.err
15704 } && test -s conftest.$ac_objext; then
15705 :
15706else
d589327a 15707 echo "$as_me: failed program was:" >&5
47964710
VS
15708sed 's/^/| /' conftest.$ac_ext >&5
15709
15710 ac_c_werror_flag=$ac_save_c_werror_flag
15711 CFLAGS="-g"
15712 cat >conftest.$ac_ext <<_ACEOF
15713/* confdefs.h. */
15714_ACEOF
15715cat confdefs.h >>conftest.$ac_ext
15716cat >>conftest.$ac_ext <<_ACEOF
15717/* end confdefs.h. */
15718
15719int
15720main ()
15721{
15722
15723 ;
15724 return 0;
15725}
15726_ACEOF
15727rm -f conftest.$ac_objext
15728if { (ac_try="$ac_compile"
15729case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15732esac
d589327a 15733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 15734 (eval "$ac_compile") 2>conftest.er1
7fd3acaf 15735 ac_status=$?
47964710
VS
15736 grep -v '^ *+' conftest.er1 >conftest.err
15737 rm -f conftest.er1
15738 cat conftest.err >&5
d589327a 15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
15740 (exit $ac_status); } && {
15741 test -z "$ac_c_werror_flag" ||
15742 test ! -s conftest.err
15743 } && test -s conftest.$ac_objext; then
480ccd21
DE
15744 ac_cv_prog_cc_g=yes
15745else
d589327a 15746 echo "$as_me: failed program was:" >&5
480ccd21
DE
15747sed 's/^/| /' conftest.$ac_ext >&5
15748
47964710 15749
7fd3acaf 15750fi
47964710
VS
15751
15752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15753fi
15754
15755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756fi
15757
15758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759 ac_c_werror_flag=$ac_save_c_werror_flag
7fd3acaf 15760fi
d589327a
VZ
15761{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15762echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
480ccd21
DE
15763if test "$ac_test_CFLAGS" = set; then
15764 CFLAGS=$ac_save_CFLAGS
15765elif test $ac_cv_prog_cc_g = yes; then
15766 if test "$GCC" = yes; then
15767 CFLAGS="-g -O2"
15768 else
15769 CFLAGS="-g"
15770 fi
15771else
15772 if test "$GCC" = yes; then
15773 CFLAGS="-O2"
15774 else
15775 CFLAGS=
15776 fi
15777fi
3006edc0 15778 fi
ab0ad5f1 15779 fi
3006edc0
VZ
15780
15781 case `uname -s` in
15782 AIX*)
43a7c679
VZ
15783
15784
15785 ac_ext=c
3006edc0
VZ
15786ac_cpp='$CPP $CPPFLAGS'
15787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15789ac_compiler_gnu=$ac_cv_c_compiler_gnu
15790
d589327a
VZ
15791 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15792echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
43a7c679 15793if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
d589327a 15794 echo $ECHO_N "(cached) $ECHO_C" >&6
faa5c14f
VZ
15795else
15796 cat >conftest.$ac_ext <<_ACEOF
15797/* confdefs.h. */
15798_ACEOF
15799cat confdefs.h >>conftest.$ac_ext
15800cat >>conftest.$ac_ext <<_ACEOF
15801/* end confdefs.h. */
15802
15803int
15804main ()
15805{
43a7c679
VZ
15806
15807 #ifndef __xlC__
15808 choke me
15809 #endif
faa5c14f
VZ
15810
15811 ;
15812 return 0;
15813}
15814_ACEOF
15815rm -f conftest.$ac_objext
47964710
VS
15816if { (ac_try="$ac_compile"
15817case "(($ac_try" in
15818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819 *) ac_try_echo=$ac_try;;
15820esac
d589327a 15821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 15822 (eval "$ac_compile") 2>conftest.er1
faa5c14f
VZ
15823 ac_status=$?
15824 grep -v '^ *+' conftest.er1 >conftest.err
15825 rm -f conftest.er1
15826 cat conftest.err >&5
d589327a 15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
15828 (exit $ac_status); } && {
15829 test -z "$ac_c_werror_flag" ||
15830 test ! -s conftest.err
15831 } && test -s conftest.$ac_objext; then
43a7c679 15832 bakefile_cv_c_compiler___xlC__=yes
faa5c14f 15833else
d589327a 15834 echo "$as_me: failed program was:" >&5
faa5c14f
VZ
15835sed 's/^/| /' conftest.$ac_ext >&5
15836
47964710 15837 bakefile_cv_c_compiler___xlC__=no
43a7c679 15838
faa5c14f 15839fi
47964710
VS
15840
15841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
faa5c14f 15842
faa5c14f 15843
43a7c679 15844fi
d589327a
VZ
15845{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15846echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
43a7c679
VZ
15847 if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15848 :; XLCC=yes
15849 else
15850 :;
15851 fi
15852 ac_ext=c
faa5c14f
VZ
15853ac_cpp='$CPP $CPPFLAGS'
15854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15856ac_compiler_gnu=$ac_cv_c_compiler_gnu
15857
15858
43a7c679 15859
faa5c14f
VZ
15860 ;;
15861
15862 Darwin)
43a7c679
VZ
15863
15864
15865 ac_ext=c
faa5c14f
VZ
15866ac_cpp='$CPP $CPPFLAGS'
15867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15869ac_compiler_gnu=$ac_cv_c_compiler_gnu
15870
d589327a
VZ
15871 { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15872echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
43a7c679 15873if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
d589327a 15874 echo $ECHO_N "(cached) $ECHO_C" >&6
faa5c14f
VZ
15875else
15876 cat >conftest.$ac_ext <<_ACEOF
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882
15883int
15884main ()
15885{
43a7c679
VZ
15886
15887 #ifndef __MWERKS__
15888 choke me
15889 #endif
faa5c14f
VZ
15890
15891 ;
15892 return 0;
15893}
15894_ACEOF
15895rm -f conftest.$ac_objext
47964710
VS
15896if { (ac_try="$ac_compile"
15897case "(($ac_try" in
15898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15899 *) ac_try_echo=$ac_try;;
15900esac
d589327a 15901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 15902 (eval "$ac_compile") 2>conftest.er1
faa5c14f
VZ
15903 ac_status=$?
15904 grep -v '^ *+' conftest.er1 >conftest.err
15905 rm -f conftest.er1
15906 cat conftest.err >&5
d589327a 15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
15908 (exit $ac_status); } && {
15909 test -z "$ac_c_werror_flag" ||
15910 test ! -s conftest.err
15911 } && test -s conftest.$ac_objext; then
43a7c679 15912 bakefile_cv_c_compiler___MWERKS__=yes
faa5c14f 15913else
d589327a 15914 echo "$as_me: failed program was:" >&5
faa5c14f
VZ
15915sed 's/^/| /' conftest.$ac_ext >&5
15916
47964710 15917 bakefile_cv_c_compiler___MWERKS__=no
43a7c679 15918
faa5c14f 15919fi
47964710
VS
15920
15921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
faa5c14f 15922
faa5c14f 15923
43a7c679 15924fi
d589327a
VZ
15925{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15926echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
43a7c679
VZ
15927 if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15928 :; MWCC=yes
15929 else
15930 :;
15931 fi
15932 ac_ext=c
faa5c14f
VZ
15933ac_cpp='$CPP $CPPFLAGS'
15934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15936ac_compiler_gnu=$ac_cv_c_compiler_gnu
15937
15938
43a7c679 15939
05622061 15940 if test "$MWCC" != "yes"; then
43a7c679
VZ
15941
15942
15943 ac_ext=c
faa5c14f
VZ
15944ac_cpp='$CPP $CPPFLAGS'
15945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15947ac_compiler_gnu=$ac_cv_c_compiler_gnu
15948
d589327a
VZ
15949 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15950echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
43a7c679 15951if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
d589327a 15952 echo $ECHO_N "(cached) $ECHO_C" >&6
3006edc0
VZ
15953else
15954 cat >conftest.$ac_ext <<_ACEOF
15955/* confdefs.h. */
15956_ACEOF
15957cat confdefs.h >>conftest.$ac_ext
15958cat >>conftest.$ac_ext <<_ACEOF
15959/* end confdefs.h. */
15960
15961int
15962main ()
15963{
43a7c679
VZ
15964
15965 #ifndef __xlC__
15966 choke me
15967 #endif
3006edc0
VZ
15968
15969 ;
15970 return 0;
15971}
15972_ACEOF
15973rm -f conftest.$ac_objext
47964710
VS
15974if { (ac_try="$ac_compile"
15975case "(($ac_try" in
15976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977 *) ac_try_echo=$ac_try;;
15978esac
d589327a 15979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 15980 (eval "$ac_compile") 2>conftest.er1
3006edc0
VZ
15981 ac_status=$?
15982 grep -v '^ *+' conftest.er1 >conftest.err
15983 rm -f conftest.er1
15984 cat conftest.err >&5
d589327a 15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
15986 (exit $ac_status); } && {
15987 test -z "$ac_c_werror_flag" ||
15988 test ! -s conftest.err
15989 } && test -s conftest.$ac_objext; then
43a7c679 15990 bakefile_cv_c_compiler___xlC__=yes
3006edc0 15991else
d589327a 15992 echo "$as_me: failed program was:" >&5
3006edc0
VZ
15993sed 's/^/| /' conftest.$ac_ext >&5
15994
47964710 15995 bakefile_cv_c_compiler___xlC__=no
43a7c679 15996
3006edc0 15997fi
47964710
VS
15998
15999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9273ffba 16000
9273ffba 16001
43a7c679 16002fi
d589327a
VZ
16003{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16004echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
43a7c679
VZ
16005 if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16006 :; XLCC=yes
16007 else
16008 :;
16009 fi
16010 ac_ext=c
9273ffba
DE
16011ac_cpp='$CPP $CPPFLAGS'
16012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16014ac_compiler_gnu=$ac_cv_c_compiler_gnu
16015
16016
43a7c679 16017
05622061 16018 fi
3006edc0
VZ
16019 ;;
16020
16021 IRIX*)
a848cd7e 16022
6dcfc289 16023
0ad5d837
VZ
16024 ac_ext=c
16025ac_cpp='$CPP $CPPFLAGS'
16026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16028ac_compiler_gnu=$ac_cv_c_compiler_gnu
16029
d589327a
VZ
16030 { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16031echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
0ad5d837 16032if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
d589327a 16033 echo $ECHO_N "(cached) $ECHO_C" >&6
0ad5d837
VZ
16034else
16035 cat >conftest.$ac_ext <<_ACEOF
16036/* confdefs.h. */
16037_ACEOF
16038cat confdefs.h >>conftest.$ac_ext
16039cat >>conftest.$ac_ext <<_ACEOF
16040/* end confdefs.h. */
16041
16042int
16043main ()
16044{
16045
16046 #ifndef _SGI_COMPILER_VERSION
16047 choke me
16048 #endif
16049
16050 ;
16051 return 0;
16052}
16053_ACEOF
16054rm -f conftest.$ac_objext
47964710
VS
16055if { (ac_try="$ac_compile"
16056case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16059esac
d589327a 16060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 16061 (eval "$ac_compile") 2>conftest.er1
0ad5d837
VZ
16062 ac_status=$?
16063 grep -v '^ *+' conftest.er1 >conftest.err
16064 rm -f conftest.er1
16065 cat conftest.err >&5
d589327a 16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
16067 (exit $ac_status); } && {
16068 test -z "$ac_c_werror_flag" ||
16069 test ! -s conftest.err
16070 } && test -s conftest.$ac_objext; then
0ad5d837
VZ
16071 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16072else
d589327a 16073 echo "$as_me: failed program was:" >&5
0ad5d837
VZ
16074sed 's/^/| /' conftest.$ac_ext >&5
16075
47964710 16076 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
0ad5d837
VZ
16077
16078fi
47964710
VS
16079
16080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0ad5d837
VZ
16081
16082
16083fi
d589327a
VZ
16084{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16085echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
43a7c679
VZ
16086 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16087 :; SGICC=yes
16088 else
16089 :;
16090 fi
0ad5d837
VZ
16091 ac_ext=c
16092ac_cpp='$CPP $CPPFLAGS'
16093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16095ac_compiler_gnu=$ac_cv_c_compiler_gnu
16096
43a7c679
VZ
16097
16098
16099 ;;
16100
16101 Linux*)
05622061 16102 if test "$INTELCC" != "yes"; then
43a7c679
VZ
16103
16104
16105 ac_ext=c
16106ac_cpp='$CPP $CPPFLAGS'
16107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16109ac_compiler_gnu=$ac_cv_c_compiler_gnu
16110
d589327a
VZ
16111 { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16112echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
43a7c679 16113if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
d589327a 16114 echo $ECHO_N "(cached) $ECHO_C" >&6
43a7c679
VZ
16115else
16116 cat >conftest.$ac_ext <<_ACEOF
16117/* confdefs.h. */
16118_ACEOF
16119cat confdefs.h >>conftest.$ac_ext
16120cat >>conftest.$ac_ext <<_ACEOF
16121/* end confdefs.h. */
16122
16123int
16124main ()
16125{
16126
16127 #ifndef __SUNPRO_C
16128 choke me
16129 #endif
16130
16131 ;
16132 return 0;
16133}
16134_ACEOF
16135rm -f conftest.$ac_objext
47964710
VS
16136if { (ac_try="$ac_compile"
16137case "(($ac_try" in
16138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139 *) ac_try_echo=$ac_try;;
16140esac
d589327a 16141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 16142 (eval "$ac_compile") 2>conftest.er1
43a7c679
VZ
16143 ac_status=$?
16144 grep -v '^ *+' conftest.er1 >conftest.err
16145 rm -f conftest.er1
16146 cat conftest.err >&5
d589327a 16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
16148 (exit $ac_status); } && {
16149 test -z "$ac_c_werror_flag" ||
16150 test ! -s conftest.err
16151 } && test -s conftest.$ac_objext; then
43a7c679
VZ
16152 bakefile_cv_c_compiler___SUNPRO_C=yes
16153else
d589327a 16154 echo "$as_me: failed program was:" >&5
43a7c679
VZ
16155sed 's/^/| /' conftest.$ac_ext >&5
16156
47964710 16157 bakefile_cv_c_compiler___SUNPRO_C=no
43a7c679
VZ
16158
16159fi
47964710
VS
16160
16161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43a7c679
VZ
16162
16163
16164fi
d589327a
VZ
16165{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16166echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
43a7c679
VZ
16167 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16168 :; SUNCC=yes
a48b6595
VZ
16169 else
16170 :;
16171 fi
43a7c679
VZ
16172 ac_ext=c
16173ac_cpp='$CPP $CPPFLAGS'
16174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16176ac_compiler_gnu=$ac_cv_c_compiler_gnu
16177
0ad5d837
VZ
16178
16179
05622061 16180 fi
3006edc0
VZ
16181 ;;
16182
0093c2fc 16183 HP-UX*)
3006edc0
VZ
16184
16185
16186 ac_ext=c
16187ac_cpp='$CPP $CPPFLAGS'
16188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16190ac_compiler_gnu=$ac_cv_c_compiler_gnu
16191
d589327a
VZ
16192 { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16193echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
0093c2fc 16194if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
d589327a 16195 echo $ECHO_N "(cached) $ECHO_C" >&6
3006edc0
VZ
16196else
16197 cat >conftest.$ac_ext <<_ACEOF
16198/* confdefs.h. */
16199_ACEOF
16200cat confdefs.h >>conftest.$ac_ext
16201cat >>conftest.$ac_ext <<_ACEOF
16202/* end confdefs.h. */
16203
16204int
16205main ()
16206{
16207
0093c2fc 16208 #ifndef __HP_cc
3006edc0
VZ
16209 choke me
16210 #endif
16211
16212 ;
16213 return 0;
16214}
16215_ACEOF
16216rm -f conftest.$ac_objext
47964710
VS
16217if { (ac_try="$ac_compile"
16218case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16221esac
d589327a 16222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 16223 (eval "$ac_compile") 2>conftest.er1
3006edc0
VZ
16224 ac_status=$?
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
d589327a 16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
16229 (exit $ac_status); } && {
16230 test -z "$ac_c_werror_flag" ||
16231 test ! -s conftest.err
16232 } && test -s conftest.$ac_objext; then
0093c2fc 16233 bakefile_cv_c_compiler___HP_cc=yes
3006edc0 16234else
d589327a 16235 echo "$as_me: failed program was:" >&5
3006edc0
VZ
16236sed 's/^/| /' conftest.$ac_ext >&5
16237
47964710 16238 bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
16239
16240fi
47964710
VS
16241
16242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006edc0
VZ
16243
16244
16245fi
d589327a
VZ
16246{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
16247echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
43a7c679
VZ
16248 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
16249 :; HPCC=yes
16250 else
16251 :;
16252 fi
3006edc0
VZ
16253 ac_ext=c
16254ac_cpp='$CPP $CPPFLAGS'
16255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16257ac_compiler_gnu=$ac_cv_c_compiler_gnu
16258
a1aa0349
VZ
16259
16260
16261 ;;
16262
0093c2fc 16263 OSF1)
a1aa0349
VZ
16264
16265
16266 ac_ext=c
16267ac_cpp='$CPP $CPPFLAGS'
16268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16270ac_compiler_gnu=$ac_cv_c_compiler_gnu
16271
d589327a
VZ
16272 { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16273echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
0093c2fc 16274if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
d589327a 16275 echo $ECHO_N "(cached) $ECHO_C" >&6
a1aa0349
VZ
16276else
16277 cat >conftest.$ac_ext <<_ACEOF
16278/* confdefs.h. */
16279_ACEOF
16280cat confdefs.h >>conftest.$ac_ext
16281cat >>conftest.$ac_ext <<_ACEOF
16282/* end confdefs.h. */
16283
16284int
16285main ()
16286{
16287
0093c2fc 16288 #ifndef __DECC
a1aa0349
VZ
16289 choke me
16290 #endif
16291
16292 ;
16293 return 0;
16294}
16295_ACEOF
16296rm -f conftest.$ac_objext
47964710
VS
16297if { (ac_try="$ac_compile"
16298case "(($ac_try" in
16299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16301esac
d589327a 16302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 16303 (eval "$ac_compile") 2>conftest.er1
a1aa0349
VZ
16304 ac_status=$?
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
d589327a 16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
16309 (exit $ac_status); } && {
16310 test -z "$ac_c_werror_flag" ||
16311 test ! -s conftest.err
16312 } && test -s conftest.$ac_objext; then
0093c2fc 16313 bakefile_cv_c_compiler___DECC=yes
a1aa0349 16314else
d589327a 16315 echo "$as_me: failed program was:" >&5
a1aa0349
VZ
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
47964710 16318 bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
16319
16320fi
47964710
VS
16321
16322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a1aa0349
VZ
16323
16324
16325fi
d589327a
VZ
16326{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
16327echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
43a7c679
VZ
16328 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
16329 :; COMPAQCC=yes
16330 else
16331 :;
16332 fi
a1aa0349
VZ
16333 ac_ext=c
16334ac_cpp='$CPP $CPPFLAGS'
16335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16337ac_compiler_gnu=$ac_cv_c_compiler_gnu
16338
0093c2fc
VZ
16339
16340
16341 ;;
16342
16343 SunOS)
16344
16345
16346 ac_ext=c
16347ac_cpp='$CPP $CPPFLAGS'
16348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16350ac_compiler_gnu=$ac_cv_c_compiler_gnu
16351
d589327a
VZ
16352 { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16353echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
0093c2fc 16354if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
d589327a 16355 echo $ECHO_N "(cached) $ECHO_C" >&6
0093c2fc
VZ
16356else
16357 cat >conftest.$ac_ext <<_ACEOF
16358/* confdefs.h. */
16359_ACEOF
16360cat confdefs.h >>conftest.$ac_ext
16361cat >>conftest.$ac_ext <<_ACEOF
16362/* end confdefs.h. */
16363
16364int
16365main ()
16366{
16367
16368 #ifndef __SUNPRO_C
16369 choke me
16370 #endif
16371
16372 ;
16373 return 0;
16374}
16375_ACEOF
16376rm -f conftest.$ac_objext
47964710
VS
16377if { (ac_try="$ac_compile"
16378case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16381esac
d589327a 16382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 16383 (eval "$ac_compile") 2>conftest.er1
0093c2fc
VZ
16384 ac_status=$?
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
d589327a 16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
16389 (exit $ac_status); } && {
16390 test -z "$ac_c_werror_flag" ||
16391 test ! -s conftest.err
16392 } && test -s conftest.$ac_objext; then
0093c2fc
VZ
16393 bakefile_cv_c_compiler___SUNPRO_C=yes
16394else
d589327a 16395 echo "$as_me: failed program was:" >&5
0093c2fc
VZ
16396sed 's/^/| /' conftest.$ac_ext >&5
16397
47964710 16398 bakefile_cv_c_compiler___SUNPRO_C=no
0093c2fc
VZ
16399
16400fi
47964710
VS
16401
16402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc
VZ
16403
16404
16405fi
d589327a
VZ
16406{ echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16407echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
43a7c679
VZ
16408 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16409 :; SUNCC=yes
16410 else
16411 :;
16412 fi
0093c2fc
VZ
16413 ac_ext=c
16414ac_cpp='$CPP $CPPFLAGS'
16415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16417ac_compiler_gnu=$ac_cv_c_compiler_gnu
16418
3006edc0
VZ
16419
16420
16421 ;;
16422 esac
ab0ad5f1 16423 fi
a9e5b1f0
MW
16424
16425
3006edc0 16426
a848cd7e
SC
16427ac_ext=c
16428ac_cpp='$CPP $CPPFLAGS'
16429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16431ac_compiler_gnu=$ac_cv_c_compiler_gnu
d589327a
VZ
16432{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16433echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
a848cd7e
SC
16434# On Suns, sometimes $CPP names a directory.
16435if test -n "$CPP" && test -d "$CPP"; then
16436 CPP=
16437fi
16438if test -z "$CPP"; then
16439 if test "${ac_cv_prog_CPP+set}" = set; then
d589327a 16440 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
16441else
16442 # Double quotes because CPP needs to be expanded
16443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16444 do
16445 ac_preproc_ok=false
16446for ac_c_preproc_warn_flag in '' yes
16447do
16448 # Use a header file that comes with gcc, so configuring glibc
16449 # with a fresh cross-compiler works.
16450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16451 # <limits.h> exists even on freestanding compilers.
16452 # On the NeXT, cc -E runs the code through the compiler's parser,
16453 # not just through cpp. "Syntax error" is here to catch this case.
16454 cat >conftest.$ac_ext <<_ACEOF
16455/* confdefs.h. */
16456_ACEOF
16457cat confdefs.h >>conftest.$ac_ext
16458cat >>conftest.$ac_ext <<_ACEOF
16459/* end confdefs.h. */
16460#ifdef __STDC__
16461# include <limits.h>
16462#else
16463# include <assert.h>
16464#endif
ac1cb8d3 16465 Syntax error
a848cd7e 16466_ACEOF
47964710
VS
16467if { (ac_try="$ac_cpp conftest.$ac_ext"
16468case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16471esac
d589327a 16472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 16473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a848cd7e
SC
16474 ac_status=$?
16475 grep -v '^ *+' conftest.er1 >conftest.err
16476 rm -f conftest.er1
16477 cat conftest.err >&5
d589327a 16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
16479 (exit $ac_status); } >/dev/null && {
16480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16481 test ! -s conftest.err
16482 }; then
a848cd7e
SC
16483 :
16484else
d589327a 16485 echo "$as_me: failed program was:" >&5
a848cd7e
SC
16486sed 's/^/| /' conftest.$ac_ext >&5
16487
16488 # Broken: fails on valid input.
16489continue
16490fi
47964710 16491
a848cd7e
SC
16492rm -f conftest.err conftest.$ac_ext
16493
47964710 16494 # OK, works on sane cases. Now check whether nonexistent headers
a848cd7e
SC
16495 # can be detected and how.
16496 cat >conftest.$ac_ext <<_ACEOF
16497/* confdefs.h. */
16498_ACEOF
16499cat confdefs.h >>conftest.$ac_ext
16500cat >>conftest.$ac_ext <<_ACEOF
16501/* end confdefs.h. */
16502#include <ac_nonexistent.h>
16503_ACEOF
47964710
VS
16504if { (ac_try="$ac_cpp conftest.$ac_ext"
16505case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16508esac
d589327a 16509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 16510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a848cd7e
SC
16511 ac_status=$?
16512 grep -v '^ *+' conftest.er1 >conftest.err
16513 rm -f conftest.er1
16514 cat conftest.err >&5
d589327a 16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
16516 (exit $ac_status); } >/dev/null && {
16517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16518 test ! -s conftest.err
16519 }; then
a848cd7e
SC
16520 # Broken: success on invalid input.
16521continue
16522else
d589327a 16523 echo "$as_me: failed program was:" >&5
a848cd7e
SC
16524sed 's/^/| /' conftest.$ac_ext >&5
16525
16526 # Passes both tests.
16527ac_preproc_ok=:
16528break
16529fi
47964710 16530
a848cd7e
SC
16531rm -f conftest.err conftest.$ac_ext
16532
16533done
16534# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16535rm -f conftest.err conftest.$ac_ext
16536if $ac_preproc_ok; then
16537 break
16538fi
16539
16540 done
16541 ac_cv_prog_CPP=$CPP
16542
16543fi
16544 CPP=$ac_cv_prog_CPP
16545else
16546 ac_cv_prog_CPP=$CPP
16547fi
d589327a
VZ
16548{ echo "$as_me:$LINENO: result: $CPP" >&5
16549echo "${ECHO_T}$CPP" >&6; }
a848cd7e
SC
16550ac_preproc_ok=false
16551for ac_c_preproc_warn_flag in '' yes
16552do
16553 # Use a header file that comes with gcc, so configuring glibc
16554 # with a fresh cross-compiler works.
16555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16556 # <limits.h> exists even on freestanding compilers.
16557 # On the NeXT, cc -E runs the code through the compiler's parser,
16558 # not just through cpp. "Syntax error" is here to catch this case.
16559 cat >conftest.$ac_ext <<_ACEOF
16560/* confdefs.h. */
16561_ACEOF
16562cat confdefs.h >>conftest.$ac_ext
16563cat >>conftest.$ac_ext <<_ACEOF
16564/* end confdefs.h. */
16565#ifdef __STDC__
16566# include <limits.h>
16567#else
16568# include <assert.h>
16569#endif
ac1cb8d3 16570 Syntax error
a848cd7e 16571_ACEOF
47964710
VS
16572if { (ac_try="$ac_cpp conftest.$ac_ext"
16573case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576esac
d589327a 16577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 16578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a848cd7e
SC
16579 ac_status=$?
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
d589327a 16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
16584 (exit $ac_status); } >/dev/null && {
16585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16586 test ! -s conftest.err
16587 }; then
a848cd7e
SC
16588 :
16589else
d589327a 16590 echo "$as_me: failed program was:" >&5
a848cd7e
SC
16591sed 's/^/| /' conftest.$ac_ext >&5
16592
16593 # Broken: fails on valid input.
16594continue
16595fi
47964710 16596
a848cd7e
SC
16597rm -f conftest.err conftest.$ac_ext
16598
47964710 16599 # OK, works on sane cases. Now check whether nonexistent headers
a848cd7e
SC
16600 # can be detected and how.
16601 cat >conftest.$ac_ext <<_ACEOF
16602/* confdefs.h. */
16603_ACEOF
16604cat confdefs.h >>conftest.$ac_ext
16605cat >>conftest.$ac_ext <<_ACEOF
16606/* end confdefs.h. */
16607#include <ac_nonexistent.h>
16608_ACEOF
47964710
VS
16609if { (ac_try="$ac_cpp conftest.$ac_ext"
16610case "(($ac_try" in
16611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612 *) ac_try_echo=$ac_try;;
16613esac
d589327a 16614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 16615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a848cd7e
SC
16616 ac_status=$?
16617 grep -v '^ *+' conftest.er1 >conftest.err
16618 rm -f conftest.er1
16619 cat conftest.err >&5
d589327a 16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
16621 (exit $ac_status); } >/dev/null && {
16622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16623 test ! -s conftest.err
16624 }; then
a848cd7e
SC
16625 # Broken: success on invalid input.
16626continue
16627else
d589327a 16628 echo "$as_me: failed program was:" >&5
a848cd7e
SC
16629sed 's/^/| /' conftest.$ac_ext >&5
16630
16631 # Passes both tests.
16632ac_preproc_ok=:
16633break
16634fi
47964710 16635
a848cd7e
SC
16636rm -f conftest.err conftest.$ac_ext
16637
16638done
16639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16640rm -f conftest.err conftest.$ac_ext
16641if $ac_preproc_ok; then
16642 :
16643else
d589327a 16644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
a848cd7e 16645See \`config.log' for more details." >&5
d589327a 16646echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
a848cd7e 16647See \`config.log' for more details." >&2;}
d589327a 16648 { (exit 1); exit 1; }; }
a848cd7e
SC
16649fi
16650
16651ac_ext=c
16652ac_cpp='$CPP $CPPFLAGS'
16653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16655ac_compiler_gnu=$ac_cv_c_compiler_gnu
16656
16657
d589327a
VZ
16658{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16659echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
47964710 16660if test "${ac_cv_path_GREP+set}" = set; then
d589327a
VZ
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16662else
16663 # Extract the first word of "grep ggrep" to use in msg output
16664if test -z "$GREP"; then
16665set dummy grep ggrep; ac_prog_name=$2
16666if test "${ac_cv_path_GREP+set}" = set; then
16667 echo $ECHO_N "(cached) $ECHO_C" >&6
47964710
VS
16668else
16669 ac_path_GREP_found=false
d589327a
VZ
16670# Loop through the user's path and test for each of PROGNAME-LIST
16671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47964710
VS
16672for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16673do
16674 IFS=$as_save_IFS
16675 test -z "$as_dir" && as_dir=.
16676 for ac_prog in grep ggrep; do
d589327a
VZ
16677 for ac_exec_ext in '' $ac_executable_extensions; do
16678 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16679 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16680 # Check for GNU ac_path_GREP and select it if it is found.
47964710
VS
16681 # Check for GNU $ac_path_GREP
16682case `"$ac_path_GREP" --version 2>&1` in
16683*GNU*)
16684 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16685*)
16686 ac_count=0
d589327a 16687 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
47964710
VS
16688 while :
16689 do
16690 cat "conftest.in" "conftest.in" >"conftest.tmp"
16691 mv "conftest.tmp" "conftest.in"
16692 cp "conftest.in" "conftest.nl"
d589327a 16693 echo 'GREP' >> "conftest.nl"
47964710
VS
16694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16696 ac_count=`expr $ac_count + 1`
16697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
16698 # Best one so far, save it but keep looking for a better one
16699 ac_cv_path_GREP="$ac_path_GREP"
16700 ac_path_GREP_max=$ac_count
16701 fi
16702 # 10*(2^10) chars as input seems more than enough
16703 test $ac_count -gt 10 && break
16704 done
16705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16706esac
16707
d589327a
VZ
16708
16709 $ac_path_GREP_found && break 3
47964710
VS
16710 done
16711done
d589327a
VZ
16712
16713done
47964710 16714IFS=$as_save_IFS
d589327a
VZ
16715
16716
16717fi
16718
16719GREP="$ac_cv_path_GREP"
16720if test -z "$GREP"; then
16721 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16722echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
47964710 16723 { (exit 1); exit 1; }; }
d589327a
VZ
16724fi
16725
47964710
VS
16726else
16727 ac_cv_path_GREP=$GREP
16728fi
16729
d589327a 16730
47964710 16731fi
d589327a
VZ
16732{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16733echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
47964710
VS
16734 GREP="$ac_cv_path_GREP"
16735
16736
d589327a
VZ
16737{ echo "$as_me:$LINENO: checking for egrep" >&5
16738echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
47964710 16739if test "${ac_cv_path_EGREP+set}" = set; then
d589327a 16740 echo $ECHO_N "(cached) $ECHO_C" >&6
47964710
VS
16741else
16742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16743 then ac_cv_path_EGREP="$GREP -E"
16744 else
d589327a
VZ
16745 # Extract the first word of "egrep" to use in msg output
16746if test -z "$EGREP"; then
16747set dummy egrep; ac_prog_name=$2
16748if test "${ac_cv_path_EGREP+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750else
47964710 16751 ac_path_EGREP_found=false
d589327a
VZ
16752# Loop through the user's path and test for each of PROGNAME-LIST
16753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47964710
VS
16754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16755do
16756 IFS=$as_save_IFS
16757 test -z "$as_dir" && as_dir=.
16758 for ac_prog in egrep; do
d589327a
VZ
16759 for ac_exec_ext in '' $ac_executable_extensions; do
16760 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16761 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16762 # Check for GNU ac_path_EGREP and select it if it is found.
47964710
VS
16763 # Check for GNU $ac_path_EGREP
16764case `"$ac_path_EGREP" --version 2>&1` in
16765*GNU*)
16766 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16767*)
16768 ac_count=0
d589327a 16769 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
47964710
VS
16770 while :
16771 do
16772 cat "conftest.in" "conftest.in" >"conftest.tmp"
16773 mv "conftest.tmp" "conftest.in"
16774 cp "conftest.in" "conftest.nl"
d589327a 16775 echo 'EGREP' >> "conftest.nl"
47964710
VS
16776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16778 ac_count=`expr $ac_count + 1`
16779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16780 # Best one so far, save it but keep looking for a better one
16781 ac_cv_path_EGREP="$ac_path_EGREP"
16782 ac_path_EGREP_max=$ac_count
16783 fi
16784 # 10*(2^10) chars as input seems more than enough
16785 test $ac_count -gt 10 && break
16786 done
16787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16788esac
16789
d589327a
VZ
16790
16791 $ac_path_EGREP_found && break 3
47964710
VS
16792 done
16793done
d589327a
VZ
16794
16795done
47964710 16796IFS=$as_save_IFS
d589327a
VZ
16797
16798
16799fi
16800
16801EGREP="$ac_cv_path_EGREP"
16802if test -z "$EGREP"; then
16803 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16804echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
47964710 16805 { (exit 1); exit 1; }; }
d589327a
VZ
16806fi
16807
47964710
VS
16808else
16809 ac_cv_path_EGREP=$EGREP
16810fi
16811
d589327a 16812
47964710 16813 fi
7fd3acaf 16814fi
d589327a
VZ
16815{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16816echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
47964710 16817 EGREP="$ac_cv_path_EGREP"
a848cd7e
SC
16818
16819
16820if test $ac_cv_c_compiler_gnu = yes; then
d589327a
VZ
16821 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16822echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
a848cd7e 16823if test "${ac_cv_prog_gcc_traditional+set}" = set; then
d589327a 16824 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
16825else
16826 ac_pattern="Autoconf.*'x'"
16827 cat >conftest.$ac_ext <<_ACEOF
16828/* confdefs.h. */
16829_ACEOF
16830cat confdefs.h >>conftest.$ac_ext
16831cat >>conftest.$ac_ext <<_ACEOF
16832/* end confdefs.h. */
16833#include <sgtty.h>
16834Autoconf TIOCGETP
16835_ACEOF
16836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16837 $EGREP "$ac_pattern" >/dev/null 2>&1; then
16838 ac_cv_prog_gcc_traditional=yes
16839else
16840 ac_cv_prog_gcc_traditional=no
16841fi
16842rm -f conftest*
16843
16844
16845 if test $ac_cv_prog_gcc_traditional = no; then
16846 cat >conftest.$ac_ext <<_ACEOF
16847/* confdefs.h. */
16848_ACEOF
16849cat confdefs.h >>conftest.$ac_ext
16850cat >>conftest.$ac_ext <<_ACEOF
16851/* end confdefs.h. */
16852#include <termio.h>
16853Autoconf TCGETA
16854_ACEOF
16855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16856 $EGREP "$ac_pattern" >/dev/null 2>&1; then
16857 ac_cv_prog_gcc_traditional=yes
16858fi
16859rm -f conftest*
16860
16861 fi
16862fi
d589327a
VZ
16863{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16864echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
a848cd7e
SC
16865 if test $ac_cv_prog_gcc_traditional = yes; then
16866 CC="$CC -traditional"
16867 fi
16868fi
16869
16870
a848cd7e 16871CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
16872
16873
3006edc0 16874
47964710 16875 ac_ext=cpp
a848cd7e
SC
16876ac_cpp='$CXXCPP $CPPFLAGS'
16877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47964710
VS
16880if test -z "$CXX"; then
16881 if test -n "$CCC"; then
16882 CXX=$CCC
16883 else
16884 if test -n "$ac_tool_prefix"; then
16885 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a848cd7e
SC
16886 do
16887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
d589327a
VZ
16889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 16891if test "${ac_cv_prog_CXX+set}" = set; then
d589327a 16892 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
16893else
16894 if test -n "$CXX"; then
16895 ac_cv_prog_CXX="$CXX" # Let the user override the test.
16896else
16897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16898for as_dir in $PATH
16899do
16900 IFS=$as_save_IFS
16901 test -z "$as_dir" && as_dir=.
16902 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 16903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 16904 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
d589327a 16905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
16906 break 2
16907 fi
16908done
16909done
47964710 16910IFS=$as_save_IFS
a848cd7e
SC
16911
16912fi
16913fi
16914CXX=$ac_cv_prog_CXX
16915if test -n "$CXX"; then
d589327a
VZ
16916 { echo "$as_me:$LINENO: result: $CXX" >&5
16917echo "${ECHO_T}$CXX" >&6; }
a848cd7e 16918else
d589327a
VZ
16919 { echo "$as_me:$LINENO: result: no" >&5
16920echo "${ECHO_T}no" >&6; }
a848cd7e
SC
16921fi
16922
47964710 16923
a848cd7e
SC
16924 test -n "$CXX" && break
16925 done
16926fi
16927if test -z "$CXX"; then
16928 ac_ct_CXX=$CXX
47964710 16929 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a848cd7e
SC
16930do
16931 # Extract the first word of "$ac_prog", so it can be a program name with args.
16932set dummy $ac_prog; ac_word=$2
d589327a
VZ
16933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 16935if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
d589327a 16936 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
16937else
16938 if test -n "$ac_ct_CXX"; then
16939 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16940else
16941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16942for as_dir in $PATH
16943do
16944 IFS=$as_save_IFS
16945 test -z "$as_dir" && as_dir=.
16946 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 16947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 16948 ac_cv_prog_ac_ct_CXX="$ac_prog"
d589327a 16949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
16950 break 2
16951 fi
16952done
16953done
47964710 16954IFS=$as_save_IFS
a848cd7e
SC
16955
16956fi
16957fi
16958ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16959if test -n "$ac_ct_CXX"; then
d589327a
VZ
16960 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16961echo "${ECHO_T}$ac_ct_CXX" >&6; }
a848cd7e 16962else
d589327a
VZ
16963 { echo "$as_me:$LINENO: result: no" >&5
16964echo "${ECHO_T}no" >&6; }
a848cd7e
SC
16965fi
16966
47964710 16967
a848cd7e
SC
16968 test -n "$ac_ct_CXX" && break
16969done
a848cd7e 16970
47964710
VS
16971 if test "x$ac_ct_CXX" = x; then
16972 CXX="g++"
16973 else
16974 case $cross_compiling:$ac_tool_warned in
16975yes:)
d589327a
VZ
16976{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16977whose name does not start with the host triplet. If you think this
16978configuration is useful to you, please write to autoconf@gnu.org." >&5
16979echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16980whose name does not start with the host triplet. If you think this
16981configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47964710
VS
16982ac_tool_warned=yes ;;
16983esac
16984 CXX=$ac_ct_CXX
16985 fi
a848cd7e
SC
16986fi
16987
47964710
VS
16988 fi
16989fi
a848cd7e 16990# Provide some information about the compiler.
d589327a
VZ
16991echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16992ac_compiler=`set X $ac_compile; echo $2`
47964710
VS
16993{ (ac_try="$ac_compiler --version >&5"
16994case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16997esac
d589327a 16998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 16999 (eval "$ac_compiler --version >&5") 2>&5
a848cd7e 17000 ac_status=$?
d589327a 17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 17002 (exit $ac_status); }
47964710
VS
17003{ (ac_try="$ac_compiler -v >&5"
17004case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17007esac
d589327a 17008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 17009 (eval "$ac_compiler -v >&5") 2>&5
a848cd7e 17010 ac_status=$?
d589327a 17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 17012 (exit $ac_status); }
47964710
VS
17013{ (ac_try="$ac_compiler -V >&5"
17014case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17017esac
d589327a 17018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 17019 (eval "$ac_compiler -V >&5") 2>&5
a848cd7e 17020 ac_status=$?
d589327a 17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
17022 (exit $ac_status); }
17023
d589327a
VZ
17024{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17025echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
a848cd7e 17026if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
d589327a 17027 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
17028else
17029 cat >conftest.$ac_ext <<_ACEOF
17030/* confdefs.h. */
17031_ACEOF
17032cat confdefs.h >>conftest.$ac_ext
17033cat >>conftest.$ac_ext <<_ACEOF
17034/* end confdefs.h. */
17035
17036int
17037main ()
17038{
17039#ifndef __GNUC__
17040 choke me
17041#endif
17042
17043 ;
17044 return 0;
17045}
17046_ACEOF
17047rm -f conftest.$ac_objext
47964710
VS
17048if { (ac_try="$ac_compile"
17049case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17052esac
d589327a 17053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 17054 (eval "$ac_compile") 2>conftest.er1
a848cd7e 17055 ac_status=$?
ac1cb8d3
VS
17056 grep -v '^ *+' conftest.er1 >conftest.err
17057 rm -f conftest.er1
17058 cat conftest.err >&5
d589327a 17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17060 (exit $ac_status); } && {
17061 test -z "$ac_cxx_werror_flag" ||
17062 test ! -s conftest.err
17063 } && test -s conftest.$ac_objext; then
a848cd7e
SC
17064 ac_compiler_gnu=yes
17065else
d589327a 17066 echo "$as_me: failed program was:" >&5
a848cd7e
SC
17067sed 's/^/| /' conftest.$ac_ext >&5
17068
47964710 17069 ac_compiler_gnu=no
a848cd7e 17070fi
47964710
VS
17071
17072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17073ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17074
17075fi
d589327a
VZ
17076{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17077echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17078GXX=`test $ac_compiler_gnu = yes && echo yes`
a848cd7e
SC
17079ac_test_CXXFLAGS=${CXXFLAGS+set}
17080ac_save_CXXFLAGS=$CXXFLAGS
d589327a
VZ
17081{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17082echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
a848cd7e 17083if test "${ac_cv_prog_cxx_g+set}" = set; then
d589327a 17084 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 17085else
47964710
VS
17086 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17087 ac_cxx_werror_flag=yes
17088 ac_cv_prog_cxx_g=no
17089 CXXFLAGS="-g"
17090 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
17091/* confdefs.h. */
17092_ACEOF
17093cat confdefs.h >>conftest.$ac_ext
17094cat >>conftest.$ac_ext <<_ACEOF
17095/* end confdefs.h. */
17096
17097int
17098main ()
17099{
17100
17101 ;
17102 return 0;
17103}
17104_ACEOF
17105rm -f conftest.$ac_objext
47964710
VS
17106if { (ac_try="$ac_compile"
17107case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17110esac
d589327a 17111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 17112 (eval "$ac_compile") 2>conftest.er1
a848cd7e 17113 ac_status=$?
ac1cb8d3
VS
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
d589327a 17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17118 (exit $ac_status); } && {
17119 test -z "$ac_cxx_werror_flag" ||
17120 test ! -s conftest.err
17121 } && test -s conftest.$ac_objext; then
a848cd7e
SC
17122 ac_cv_prog_cxx_g=yes
17123else
d589327a 17124 echo "$as_me: failed program was:" >&5
a848cd7e
SC
17125sed 's/^/| /' conftest.$ac_ext >&5
17126
47964710
VS
17127 CXXFLAGS=""
17128 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
17129/* confdefs.h. */
17130_ACEOF
17131cat confdefs.h >>conftest.$ac_ext
17132cat >>conftest.$ac_ext <<_ACEOF
17133/* end confdefs.h. */
47964710 17134
a848cd7e
SC
17135int
17136main ()
17137{
47964710 17138
a848cd7e
SC
17139 ;
17140 return 0;
17141}
17142_ACEOF
17143rm -f conftest.$ac_objext
47964710
VS
17144if { (ac_try="$ac_compile"
17145case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17148esac
d589327a 17149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 17150 (eval "$ac_compile") 2>conftest.er1
a848cd7e 17151 ac_status=$?
ac1cb8d3
VS
17152 grep -v '^ *+' conftest.er1 >conftest.err
17153 rm -f conftest.er1
17154 cat conftest.err >&5
d589327a 17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17156 (exit $ac_status); } && {
17157 test -z "$ac_cxx_werror_flag" ||
17158 test ! -s conftest.err
17159 } && test -s conftest.$ac_objext; then
a848cd7e
SC
17160 :
17161else
d589327a 17162 echo "$as_me: failed program was:" >&5
a848cd7e
SC
17163sed 's/^/| /' conftest.$ac_ext >&5
17164
47964710
VS
17165 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17166 CXXFLAGS="-g"
17167 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
17168/* confdefs.h. */
17169_ACEOF
17170cat confdefs.h >>conftest.$ac_ext
17171cat >>conftest.$ac_ext <<_ACEOF
17172/* end confdefs.h. */
47964710 17173
a848cd7e
SC
17174int
17175main ()
17176{
47964710 17177
a848cd7e
SC
17178 ;
17179 return 0;
17180}
17181_ACEOF
17182rm -f conftest.$ac_objext
47964710
VS
17183if { (ac_try="$ac_compile"
17184case "(($ac_try" in
17185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17187esac
d589327a 17188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 17189 (eval "$ac_compile") 2>conftest.er1
a848cd7e 17190 ac_status=$?
ac1cb8d3
VS
17191 grep -v '^ *+' conftest.er1 >conftest.err
17192 rm -f conftest.er1
17193 cat conftest.err >&5
d589327a 17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17195 (exit $ac_status); } && {
17196 test -z "$ac_cxx_werror_flag" ||
17197 test ! -s conftest.err
17198 } && test -s conftest.$ac_objext; then
17199 ac_cv_prog_cxx_g=yes
a848cd7e 17200else
d589327a 17201 echo "$as_me: failed program was:" >&5
a848cd7e
SC
17202sed 's/^/| /' conftest.$ac_ext >&5
17203
47964710 17204
84ebfcbd 17205fi
47964710
VS
17206
17207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17208fi
17209
17210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17211fi
17212
47964710
VS
17213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17214 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17215fi
d589327a
VZ
17216{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17217echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
47964710
VS
17218if test "$ac_test_CXXFLAGS" = set; then
17219 CXXFLAGS=$ac_save_CXXFLAGS
17220elif test $ac_cv_prog_cxx_g = yes; then
17221 if test "$GXX" = yes; then
17222 CXXFLAGS="-g -O2"
17223 else
17224 CXXFLAGS="-g"
17225 fi
17226else
17227 if test "$GXX" = yes; then
17228 CXXFLAGS="-O2"
17229 else
17230 CXXFLAGS=
17231 fi
17232fi
fd5199d6
VZ
17233ac_ext=c
17234ac_cpp='$CPP $CPPFLAGS'
17235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17237ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e 17238
ab0ad5f1
VZ
17239
17240
43a7c679 17241
47964710 17242 ac_ext=cpp
ab0ad5f1
VZ
17243ac_cpp='$CXXCPP $CPPFLAGS'
17244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17247
d589327a
VZ
17248 { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
17249echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
ab0ad5f1 17250if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
d589327a 17251 echo $ECHO_N "(cached) $ECHO_C" >&6
ab0ad5f1
VZ
17252else
17253 cat >conftest.$ac_ext <<_ACEOF
17254/* confdefs.h. */
17255_ACEOF
17256cat confdefs.h >>conftest.$ac_ext
17257cat >>conftest.$ac_ext <<_ACEOF
17258/* end confdefs.h. */
17259
17260int
17261main ()
17262{
17263
17264 #ifndef __INTEL_COMPILER
17265 choke me
17266 #endif
17267
17268 ;
17269 return 0;
17270}
17271_ACEOF
17272rm -f conftest.$ac_objext
47964710
VS
17273if { (ac_try="$ac_compile"
17274case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17277esac
d589327a 17278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 17279 (eval "$ac_compile") 2>conftest.er1
ab0ad5f1
VZ
17280 ac_status=$?
17281 grep -v '^ *+' conftest.er1 >conftest.err
17282 rm -f conftest.er1
17283 cat conftest.err >&5
d589327a 17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17285 (exit $ac_status); } && {
17286 test -z "$ac_cxx_werror_flag" ||
17287 test ! -s conftest.err
17288 } && test -s conftest.$ac_objext; then
ab0ad5f1
VZ
17289 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
17290else
d589327a 17291 echo "$as_me: failed program was:" >&5
ab0ad5f1
VZ
17292sed 's/^/| /' conftest.$ac_ext >&5
17293
47964710 17294 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
ab0ad5f1
VZ
17295
17296fi
47964710
VS
17297
17298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ab0ad5f1
VZ
17299
17300
17301fi
d589327a
VZ
17302{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
17303echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
43a7c679
VZ
17304 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
17305 :; INTELCXX=yes
17306 else
17307 :;
17308 fi
fd5199d6
VZ
17309 ac_ext=c
17310ac_cpp='$CPP $CPPFLAGS'
17311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17313ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab0ad5f1 17314
43a7c679 17315
ab0ad5f1
VZ
17316
17317
05622061
VZ
17318 if test "$INTELCXX" = "yes"; then
17319
17320
17321 ac_ext=cpp
17322ac_cpp='$CXXCPP $CPPFLAGS'
17323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17326
d589327a
VZ
17327 { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
17328echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
05622061 17329if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
d589327a 17330 echo $ECHO_N "(cached) $ECHO_C" >&6
05622061
VZ
17331else
17332 cat >conftest.$ac_ext <<_ACEOF
17333/* confdefs.h. */
17334_ACEOF
17335cat confdefs.h >>conftest.$ac_ext
17336cat >>conftest.$ac_ext <<_ACEOF
17337/* end confdefs.h. */
17338
17339int
17340main ()
17341{
17342
17343 #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
17344 choke me
17345 #endif
17346
17347 ;
17348 return 0;
17349}
17350_ACEOF
17351rm -f conftest.$ac_objext
17352if { (ac_try="$ac_compile"
17353case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356esac
d589327a 17357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
05622061
VZ
17358 (eval "$ac_compile") 2>conftest.er1
17359 ac_status=$?
17360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
d589327a 17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
05622061
VZ
17364 (exit $ac_status); } && {
17365 test -z "$ac_cxx_werror_flag" ||
17366 test ! -s conftest.err
17367 } && test -s conftest.$ac_objext; then
17368 bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
17369else
d589327a 17370 echo "$as_me: failed program was:" >&5
05622061
VZ
17371sed 's/^/| /' conftest.$ac_ext >&5
17372
17373 bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
17374
17375fi
17376
17377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17378
17379
17380fi
d589327a
VZ
17381{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17382echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
05622061
VZ
17383 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17384 :; INTELCXX8=yes
17385 else
17386 :;
17387 fi
17388 ac_ext=c
17389ac_cpp='$CPP $CPPFLAGS'
17390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17392ac_compiler_gnu=$ac_cv_c_compiler_gnu
17393
17394
17395
17396
17397
17398 ac_ext=cpp
17399ac_cpp='$CXXCPP $CPPFLAGS'
17400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17403
d589327a
VZ
17404 { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17405echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
05622061 17406if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
d589327a 17407 echo $ECHO_N "(cached) $ECHO_C" >&6
05622061
VZ
17408else
17409 cat >conftest.$ac_ext <<_ACEOF
17410/* confdefs.h. */
17411_ACEOF
17412cat confdefs.h >>conftest.$ac_ext
17413cat >>conftest.$ac_ext <<_ACEOF
17414/* end confdefs.h. */
17415
17416int
17417main ()
17418{
17419
17420 #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17421 choke me
17422 #endif
17423
17424 ;
17425 return 0;
17426}
17427_ACEOF
17428rm -f conftest.$ac_objext
17429if { (ac_try="$ac_compile"
17430case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17433esac
d589327a 17434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
05622061
VZ
17435 (eval "$ac_compile") 2>conftest.er1
17436 ac_status=$?
17437 grep -v '^ *+' conftest.er1 >conftest.err
17438 rm -f conftest.er1
17439 cat conftest.err >&5
d589327a 17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
05622061
VZ
17441 (exit $ac_status); } && {
17442 test -z "$ac_cxx_werror_flag" ||
17443 test ! -s conftest.err
17444 } && test -s conftest.$ac_objext; then
17445 bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17446else
d589327a 17447 echo "$as_me: failed program was:" >&5
05622061
VZ
17448sed 's/^/| /' conftest.$ac_ext >&5
17449
17450 bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17451
17452fi
17453
17454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17455
17456
17457fi
d589327a
VZ
17458{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17459echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
05622061
VZ
17460 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17461 :; INTELCXX10=yes
17462 else
17463 :;
17464 fi
17465 ac_ext=c
17466ac_cpp='$CPP $CPPFLAGS'
17467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17469ac_compiler_gnu=$ac_cv_c_compiler_gnu
17470
17471
17472
17473 fi
17474
3006edc0
VZ
17475 if test "x$GCXX" != "xyes"; then
17476 if test "xCXX" = "xC"; then
d589327a
VZ
17477 { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17478echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
fd5199d6 17479if test "${bakefile_cv_c_exto+set}" = set; then
d589327a 17480 echo $ECHO_N "(cached) $ECHO_C" >&6
480ccd21
DE
17481else
17482 cat >conftest.$ac_ext <<_ACEOF
17483/* confdefs.h. */
17484_ACEOF
17485cat confdefs.h >>conftest.$ac_ext
17486cat >>conftest.$ac_ext <<_ACEOF
17487/* end confdefs.h. */
17488
17489int
17490main ()
17491{
17492
17493 ;
17494 return 0;
17495}
17496_ACEOF
17497rm -f conftest.$ac_objext conftest.$ac_ext.o
17498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17499 (eval $ac_compile) 2>&5
17500 ac_status=$?
d589327a 17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
480ccd21
DE
17502 (exit $ac_status); }; then
17503 for ac_file in `(ls conftest.* 2>/dev/null)`; do
17504 case $ac_file in
17505 conftest.$ac_ext.o)
fd5199d6 17506 bakefile_cv_c_exto="-ext o"
480ccd21
DE
17507 ;;
17508 *)
17509 ;;
17510 esac
17511done
17512else
d589327a 17513 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
480ccd21 17514See \`config.log' for more details." >&5
d589327a 17515echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
480ccd21 17516See \`config.log' for more details." >&2;}
d589327a 17517 { (exit 1); exit 1; }; }
480ccd21
DE
17518
17519fi
17520
17521rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17522
17523fi
d589327a
VZ
17524{ echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17525echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
fd5199d6
VZ
17526if test "x$bakefile_cv_c_exto" '!=' "x"; then
17527 if test "c" = "c"; then
17528 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21 17529 fi
fd5199d6
VZ
17530 if test "c" = "cxx"; then
17531 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
17532 fi
17533fi
17534
0093c2fc 17535 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
17536 unset ac_cv_prog_cc_g
17537 ac_test_CFLAGS=${CFLAGS+set}
17538ac_save_CFLAGS=$CFLAGS
d589327a
VZ
17539{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17540echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3006edc0 17541if test "${ac_cv_prog_cc_g+set}" = set; then
d589327a 17542 echo $ECHO_N "(cached) $ECHO_C" >&6
480ccd21 17543else
47964710
VS
17544 ac_save_c_werror_flag=$ac_c_werror_flag
17545 ac_c_werror_flag=yes
17546 ac_cv_prog_cc_g=no
17547 CFLAGS="-g"
17548 cat >conftest.$ac_ext <<_ACEOF
3f7f284d
RD
17549/* confdefs.h. */
17550_ACEOF
17551cat confdefs.h >>conftest.$ac_ext
17552cat >>conftest.$ac_ext <<_ACEOF
17553/* end confdefs.h. */
17554
17555int
17556main ()
17557{
17558
17559 ;
17560 return 0;
17561}
17562_ACEOF
17563rm -f conftest.$ac_objext
47964710
VS
17564if { (ac_try="$ac_compile"
17565case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17568esac
d589327a 17569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 17570 (eval "$ac_compile") 2>conftest.er1
3f7f284d
RD
17571 ac_status=$?
17572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
d589327a 17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17576 (exit $ac_status); } && {
17577 test -z "$ac_c_werror_flag" ||
17578 test ! -s conftest.err
17579 } && test -s conftest.$ac_objext; then
17580 ac_cv_prog_cc_g=yes
17581else
d589327a 17582 echo "$as_me: failed program was:" >&5
47964710
VS
17583sed 's/^/| /' conftest.$ac_ext >&5
17584
17585 CFLAGS=""
17586 cat >conftest.$ac_ext <<_ACEOF
17587/* confdefs.h. */
17588_ACEOF
17589cat confdefs.h >>conftest.$ac_ext
17590cat >>conftest.$ac_ext <<_ACEOF
17591/* end confdefs.h. */
17592
17593int
17594main ()
17595{
17596
17597 ;
17598 return 0;
17599}
17600_ACEOF
17601rm -f conftest.$ac_objext
17602if { (ac_try="$ac_compile"
17603case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17606esac
d589327a 17607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 17608 (eval "$ac_compile") 2>conftest.er1
7fd3acaf 17609 ac_status=$?
47964710
VS
17610 grep -v '^ *+' conftest.er1 >conftest.err
17611 rm -f conftest.er1
17612 cat conftest.err >&5
d589327a 17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17614 (exit $ac_status); } && {
17615 test -z "$ac_c_werror_flag" ||
17616 test ! -s conftest.err
17617 } && test -s conftest.$ac_objext; then
17618 :
17619else
d589327a 17620 echo "$as_me: failed program was:" >&5
47964710
VS
17621sed 's/^/| /' conftest.$ac_ext >&5
17622
17623 ac_c_werror_flag=$ac_save_c_werror_flag
17624 CFLAGS="-g"
17625 cat >conftest.$ac_ext <<_ACEOF
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
17631
17632int
17633main ()
17634{
17635
17636 ;
17637 return 0;
17638}
17639_ACEOF
17640rm -f conftest.$ac_objext
17641if { (ac_try="$ac_compile"
17642case "(($ac_try" in
17643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644 *) ac_try_echo=$ac_try;;
17645esac
d589327a 17646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 17647 (eval "$ac_compile") 2>conftest.er1
7fd3acaf 17648 ac_status=$?
47964710
VS
17649 grep -v '^ *+' conftest.er1 >conftest.err
17650 rm -f conftest.er1
17651 cat conftest.err >&5
d589327a 17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17653 (exit $ac_status); } && {
17654 test -z "$ac_c_werror_flag" ||
17655 test ! -s conftest.err
17656 } && test -s conftest.$ac_objext; then
3006edc0 17657 ac_cv_prog_cc_g=yes
480ccd21 17658else
d589327a 17659 echo "$as_me: failed program was:" >&5
480ccd21
DE
17660sed 's/^/| /' conftest.$ac_ext >&5
17661
47964710
VS
17662
17663fi
17664
17665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
faa5c14f 17666fi
47964710
VS
17667
17668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17669fi
17670
17671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 ac_c_werror_flag=$ac_save_c_werror_flag
faa5c14f 17673fi
d589327a
VZ
17674{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17675echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3006edc0
VZ
17676if test "$ac_test_CFLAGS" = set; then
17677 CFLAGS=$ac_save_CFLAGS
17678elif test $ac_cv_prog_cc_g = yes; then
17679 if test "$GCC" = yes; then
17680 CFLAGS="-g -O2"
480ccd21 17681 else
3006edc0 17682 CFLAGS="-g"
480ccd21
DE
17683 fi
17684else
3006edc0
VZ
17685 if test "$GCC" = yes; then
17686 CFLAGS="-O2"
480ccd21 17687 else
3006edc0 17688 CFLAGS=
480ccd21
DE
17689 fi
17690fi
3006edc0 17691 fi
ab0ad5f1 17692 fi
3006edc0
VZ
17693
17694 case `uname -s` in
17695 AIX*)
3006edc0 17696
3006edc0 17697
47964710 17698 ac_ext=cpp
95986553
DE
17699ac_cpp='$CXXCPP $CPPFLAGS'
17700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17703
d589327a
VZ
17704 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17705echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
43a7c679 17706if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
d589327a 17707 echo $ECHO_N "(cached) $ECHO_C" >&6
95986553
DE
17708else
17709 cat >conftest.$ac_ext <<_ACEOF
17710/* confdefs.h. */
17711_ACEOF
17712cat confdefs.h >>conftest.$ac_ext
17713cat >>conftest.$ac_ext <<_ACEOF
17714/* end confdefs.h. */
17715
17716int
17717main ()
17718{
43a7c679
VZ
17719
17720 #ifndef __xlC__
17721 choke me
17722 #endif
95986553
DE
17723
17724 ;
17725 return 0;
17726}
17727_ACEOF
17728rm -f conftest.$ac_objext
47964710
VS
17729if { (ac_try="$ac_compile"
17730case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17733esac
d589327a 17734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 17735 (eval "$ac_compile") 2>conftest.er1
95986553
DE
17736 ac_status=$?
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
d589327a 17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17741 (exit $ac_status); } && {
17742 test -z "$ac_cxx_werror_flag" ||
17743 test ! -s conftest.err
17744 } && test -s conftest.$ac_objext; then
43a7c679 17745 bakefile_cv_cxx_compiler___xlC__=yes
95986553 17746else
d589327a 17747 echo "$as_me: failed program was:" >&5
95986553
DE
17748sed 's/^/| /' conftest.$ac_ext >&5
17749
47964710 17750 bakefile_cv_cxx_compiler___xlC__=no
43a7c679 17751
95986553 17752fi
47964710
VS
17753
17754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43a7c679 17755
95986553
DE
17756
17757fi
d589327a
VZ
17758{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17759echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
43a7c679
VZ
17760 if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17761 :; XLCXX=yes
17762 else
17763 :;
17764 fi
17765 ac_ext=c
17766ac_cpp='$CPP $CPPFLAGS'
17767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17769ac_compiler_gnu=$ac_cv_c_compiler_gnu
95986553 17770
43a7c679
VZ
17771
17772
17773 ;;
17774
17775 Darwin)
17776
17777
47964710 17778 ac_ext=cpp
43a7c679
VZ
17779ac_cpp='$CXXCPP $CPPFLAGS'
17780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17783
d589327a
VZ
17784 { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17785echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
43a7c679 17786if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
d589327a 17787 echo $ECHO_N "(cached) $ECHO_C" >&6
43a7c679
VZ
17788else
17789 cat >conftest.$ac_ext <<_ACEOF
17790/* confdefs.h. */
17791_ACEOF
17792cat confdefs.h >>conftest.$ac_ext
17793cat >>conftest.$ac_ext <<_ACEOF
17794/* end confdefs.h. */
17795
17796int
17797main ()
17798{
17799
17800 #ifndef __MWERKS__
17801 choke me
17802 #endif
17803
17804 ;
17805 return 0;
17806}
17807_ACEOF
17808rm -f conftest.$ac_objext
47964710
VS
17809if { (ac_try="$ac_compile"
17810case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17813esac
d589327a 17814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 17815 (eval "$ac_compile") 2>conftest.er1
43a7c679
VZ
17816 ac_status=$?
17817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
d589327a 17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17821 (exit $ac_status); } && {
17822 test -z "$ac_cxx_werror_flag" ||
17823 test ! -s conftest.err
17824 } && test -s conftest.$ac_objext; then
43a7c679
VZ
17825 bakefile_cv_cxx_compiler___MWERKS__=yes
17826else
d589327a 17827 echo "$as_me: failed program was:" >&5
43a7c679
VZ
17828sed 's/^/| /' conftest.$ac_ext >&5
17829
47964710 17830 bakefile_cv_cxx_compiler___MWERKS__=no
43a7c679
VZ
17831
17832fi
47964710
VS
17833
17834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43a7c679
VZ
17835
17836
17837fi
d589327a
VZ
17838{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17839echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
43a7c679
VZ
17840 if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17841 :; MWCXX=yes
17842 else
17843 :;
17844 fi
17845 ac_ext=c
fd5199d6
VZ
17846ac_cpp='$CPP $CPPFLAGS'
17847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17849ac_compiler_gnu=$ac_cv_c_compiler_gnu
95986553
DE
17850
17851
43a7c679 17852
05622061 17853 if test "$MWCXX" != "yes"; then
43a7c679
VZ
17854
17855
47964710 17856 ac_ext=cpp
9273ffba
DE
17857ac_cpp='$CXXCPP $CPPFLAGS'
17858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17861
d589327a
VZ
17862 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17863echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
43a7c679 17864if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
d589327a 17865 echo $ECHO_N "(cached) $ECHO_C" >&6
9273ffba
DE
17866else
17867 cat >conftest.$ac_ext <<_ACEOF
17868/* confdefs.h. */
17869_ACEOF
17870cat confdefs.h >>conftest.$ac_ext
17871cat >>conftest.$ac_ext <<_ACEOF
17872/* end confdefs.h. */
17873
17874int
17875main ()
17876{
43a7c679
VZ
17877
17878 #ifndef __xlC__
17879 choke me
17880 #endif
9273ffba
DE
17881
17882 ;
17883 return 0;
17884}
17885_ACEOF
17886rm -f conftest.$ac_objext
47964710
VS
17887if { (ac_try="$ac_compile"
17888case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17891esac
d589327a 17892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 17893 (eval "$ac_compile") 2>conftest.er1
9273ffba
DE
17894 ac_status=$?
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
d589327a 17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17899 (exit $ac_status); } && {
17900 test -z "$ac_cxx_werror_flag" ||
17901 test ! -s conftest.err
17902 } && test -s conftest.$ac_objext; then
43a7c679 17903 bakefile_cv_cxx_compiler___xlC__=yes
9273ffba 17904else
d589327a 17905 echo "$as_me: failed program was:" >&5
9273ffba
DE
17906sed 's/^/| /' conftest.$ac_ext >&5
17907
47964710 17908 bakefile_cv_cxx_compiler___xlC__=no
43a7c679 17909
9273ffba 17910fi
47964710
VS
17911
17912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9273ffba 17913
9273ffba 17914
43a7c679 17915fi
d589327a
VZ
17916{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17917echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
43a7c679
VZ
17918 if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17919 :; XLCXX=yes
17920 else
17921 :;
17922 fi
17923 ac_ext=c
fd5199d6
VZ
17924ac_cpp='$CPP $CPPFLAGS'
17925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17927ac_compiler_gnu=$ac_cv_c_compiler_gnu
9273ffba
DE
17928
17929
43a7c679 17930
05622061 17931 fi
3006edc0
VZ
17932 ;;
17933
17934 IRIX*)
95986553 17935
6dcfc289 17936
47964710 17937 ac_ext=cpp
0ad5d837
VZ
17938ac_cpp='$CXXCPP $CPPFLAGS'
17939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17942
d589327a
VZ
17943 { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17944echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
0ad5d837 17945if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
d589327a 17946 echo $ECHO_N "(cached) $ECHO_C" >&6
0ad5d837
VZ
17947else
17948 cat >conftest.$ac_ext <<_ACEOF
17949/* confdefs.h. */
17950_ACEOF
17951cat confdefs.h >>conftest.$ac_ext
17952cat >>conftest.$ac_ext <<_ACEOF
17953/* end confdefs.h. */
17954
17955int
17956main ()
17957{
17958
17959 #ifndef _SGI_COMPILER_VERSION
17960 choke me
17961 #endif
17962
17963 ;
17964 return 0;
17965}
17966_ACEOF
17967rm -f conftest.$ac_objext
47964710
VS
17968if { (ac_try="$ac_compile"
17969case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17972esac
d589327a 17973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 17974 (eval "$ac_compile") 2>conftest.er1
0ad5d837
VZ
17975 ac_status=$?
17976 grep -v '^ *+' conftest.er1 >conftest.err
17977 rm -f conftest.er1
17978 cat conftest.err >&5
d589327a 17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
17980 (exit $ac_status); } && {
17981 test -z "$ac_cxx_werror_flag" ||
17982 test ! -s conftest.err
17983 } && test -s conftest.$ac_objext; then
0ad5d837
VZ
17984 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17985else
d589327a 17986 echo "$as_me: failed program was:" >&5
0ad5d837
VZ
17987sed 's/^/| /' conftest.$ac_ext >&5
17988
47964710 17989 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
0ad5d837
VZ
17990
17991fi
47964710
VS
17992
17993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0ad5d837
VZ
17994
17995
17996fi
d589327a
VZ
17997{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17998echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
43a7c679
VZ
17999 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18000 :; SGICXX=yes
18001 else
18002 :;
18003 fi
fd5199d6
VZ
18004 ac_ext=c
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
0ad5d837 18009
43a7c679
VZ
18010
18011
18012 ;;
18013
18014 Linux*)
05622061 18015 if test "$INTELCXX" != "yes"; then
43a7c679
VZ
18016
18017
47964710 18018 ac_ext=cpp
43a7c679
VZ
18019ac_cpp='$CXXCPP $CPPFLAGS'
18020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18023
d589327a
VZ
18024 { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18025echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
43a7c679 18026if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
d589327a 18027 echo $ECHO_N "(cached) $ECHO_C" >&6
43a7c679
VZ
18028else
18029 cat >conftest.$ac_ext <<_ACEOF
18030/* confdefs.h. */
18031_ACEOF
18032cat confdefs.h >>conftest.$ac_ext
18033cat >>conftest.$ac_ext <<_ACEOF
18034/* end confdefs.h. */
18035
18036int
18037main ()
18038{
18039
18040 #ifndef __SUNPRO_CC
18041 choke me
18042 #endif
18043
18044 ;
18045 return 0;
18046}
18047_ACEOF
18048rm -f conftest.$ac_objext
47964710
VS
18049if { (ac_try="$ac_compile"
18050case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18053esac
d589327a 18054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 18055 (eval "$ac_compile") 2>conftest.er1
43a7c679
VZ
18056 ac_status=$?
18057 grep -v '^ *+' conftest.er1 >conftest.err
18058 rm -f conftest.er1
18059 cat conftest.err >&5
d589327a 18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18061 (exit $ac_status); } && {
18062 test -z "$ac_cxx_werror_flag" ||
18063 test ! -s conftest.err
18064 } && test -s conftest.$ac_objext; then
43a7c679
VZ
18065 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18066else
d589327a 18067 echo "$as_me: failed program was:" >&5
43a7c679
VZ
18068sed 's/^/| /' conftest.$ac_ext >&5
18069
47964710 18070 bakefile_cv_cxx_compiler___SUNPRO_CC=no
43a7c679
VZ
18071
18072fi
47964710
VS
18073
18074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43a7c679
VZ
18075
18076
18077fi
d589327a
VZ
18078{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18079echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
43a7c679
VZ
18080 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18081 :; SUNCXX=yes
a48b6595
VZ
18082 else
18083 :;
18084 fi
43a7c679
VZ
18085 ac_ext=c
18086ac_cpp='$CPP $CPPFLAGS'
18087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18089ac_compiler_gnu=$ac_cv_c_compiler_gnu
18090
0ad5d837
VZ
18091
18092
05622061 18093 fi
3006edc0
VZ
18094 ;;
18095
0093c2fc 18096 HP-UX*)
3006edc0
VZ
18097
18098
47964710 18099 ac_ext=cpp
3006edc0
VZ
18100ac_cpp='$CXXCPP $CPPFLAGS'
18101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18104
d589327a
VZ
18105 { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18106echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
0093c2fc 18107if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
d589327a 18108 echo $ECHO_N "(cached) $ECHO_C" >&6
3006edc0
VZ
18109else
18110 cat >conftest.$ac_ext <<_ACEOF
18111/* confdefs.h. */
18112_ACEOF
18113cat confdefs.h >>conftest.$ac_ext
18114cat >>conftest.$ac_ext <<_ACEOF
18115/* end confdefs.h. */
18116
18117int
18118main ()
18119{
18120
0093c2fc 18121 #ifndef __HP_aCC
3006edc0
VZ
18122 choke me
18123 #endif
18124
18125 ;
18126 return 0;
18127}
18128_ACEOF
18129rm -f conftest.$ac_objext
47964710
VS
18130if { (ac_try="$ac_compile"
18131case "(($ac_try" in
18132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18133 *) ac_try_echo=$ac_try;;
18134esac
d589327a 18135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 18136 (eval "$ac_compile") 2>conftest.er1
3006edc0
VZ
18137 ac_status=$?
18138 grep -v '^ *+' conftest.er1 >conftest.err
18139 rm -f conftest.er1
18140 cat conftest.err >&5
d589327a 18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18142 (exit $ac_status); } && {
18143 test -z "$ac_cxx_werror_flag" ||
18144 test ! -s conftest.err
18145 } && test -s conftest.$ac_objext; then
0093c2fc 18146 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0 18147else
d589327a 18148 echo "$as_me: failed program was:" >&5
3006edc0
VZ
18149sed 's/^/| /' conftest.$ac_ext >&5
18150
47964710 18151 bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
18152
18153fi
47964710
VS
18154
18155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006edc0
VZ
18156
18157
18158fi
d589327a
VZ
18159{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18160echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
43a7c679
VZ
18161 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18162 :; HPCXX=yes
18163 else
18164 :;
18165 fi
fd5199d6
VZ
18166 ac_ext=c
18167ac_cpp='$CPP $CPPFLAGS'
18168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18170ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006edc0 18171
a1aa0349
VZ
18172
18173
18174 ;;
18175
0093c2fc 18176 OSF1)
a1aa0349
VZ
18177
18178
47964710 18179 ac_ext=cpp
a1aa0349
VZ
18180ac_cpp='$CXXCPP $CPPFLAGS'
18181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18184
d589327a
VZ
18185 { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18186echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
0093c2fc 18187if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
d589327a 18188 echo $ECHO_N "(cached) $ECHO_C" >&6
a1aa0349
VZ
18189else
18190 cat >conftest.$ac_ext <<_ACEOF
18191/* confdefs.h. */
18192_ACEOF
18193cat confdefs.h >>conftest.$ac_ext
18194cat >>conftest.$ac_ext <<_ACEOF
18195/* end confdefs.h. */
18196
18197int
18198main ()
18199{
18200
0093c2fc 18201 #ifndef __DECCXX
a1aa0349
VZ
18202 choke me
18203 #endif
18204
18205 ;
18206 return 0;
18207}
18208_ACEOF
18209rm -f conftest.$ac_objext
47964710
VS
18210if { (ac_try="$ac_compile"
18211case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18214esac
d589327a 18215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 18216 (eval "$ac_compile") 2>conftest.er1
a1aa0349
VZ
18217 ac_status=$?
18218 grep -v '^ *+' conftest.er1 >conftest.err
18219 rm -f conftest.er1
18220 cat conftest.err >&5
d589327a 18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18222 (exit $ac_status); } && {
18223 test -z "$ac_cxx_werror_flag" ||
18224 test ! -s conftest.err
18225 } && test -s conftest.$ac_objext; then
0093c2fc 18226 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349 18227else
d589327a 18228 echo "$as_me: failed program was:" >&5
a1aa0349
VZ
18229sed 's/^/| /' conftest.$ac_ext >&5
18230
47964710 18231 bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
18232
18233fi
47964710
VS
18234
18235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a1aa0349
VZ
18236
18237
18238fi
d589327a
VZ
18239{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
18240echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
43a7c679
VZ
18241 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
18242 :; COMPAQCXX=yes
18243 else
18244 :;
18245 fi
fd5199d6
VZ
18246 ac_ext=c
18247ac_cpp='$CPP $CPPFLAGS'
18248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18250ac_compiler_gnu=$ac_cv_c_compiler_gnu
a1aa0349 18251
0093c2fc
VZ
18252
18253
18254 ;;
18255
18256 SunOS)
18257
18258
47964710 18259 ac_ext=cpp
0093c2fc
VZ
18260ac_cpp='$CXXCPP $CPPFLAGS'
18261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18264
d589327a
VZ
18265 { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18266echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
0093c2fc 18267if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
d589327a 18268 echo $ECHO_N "(cached) $ECHO_C" >&6
0093c2fc
VZ
18269else
18270 cat >conftest.$ac_ext <<_ACEOF
18271/* confdefs.h. */
18272_ACEOF
18273cat confdefs.h >>conftest.$ac_ext
18274cat >>conftest.$ac_ext <<_ACEOF
18275/* end confdefs.h. */
18276
18277int
18278main ()
18279{
18280
18281 #ifndef __SUNPRO_CC
18282 choke me
18283 #endif
18284
18285 ;
18286 return 0;
18287}
18288_ACEOF
18289rm -f conftest.$ac_objext
47964710
VS
18290if { (ac_try="$ac_compile"
18291case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18294esac
d589327a 18295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 18296 (eval "$ac_compile") 2>conftest.er1
0093c2fc
VZ
18297 ac_status=$?
18298 grep -v '^ *+' conftest.er1 >conftest.err
18299 rm -f conftest.er1
18300 cat conftest.err >&5
d589327a 18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18302 (exit $ac_status); } && {
18303 test -z "$ac_cxx_werror_flag" ||
18304 test ! -s conftest.err
18305 } && test -s conftest.$ac_objext; then
0093c2fc
VZ
18306 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18307else
d589327a 18308 echo "$as_me: failed program was:" >&5
0093c2fc
VZ
18309sed 's/^/| /' conftest.$ac_ext >&5
18310
47964710 18311 bakefile_cv_cxx_compiler___SUNPRO_CC=no
0093c2fc
VZ
18312
18313fi
47964710
VS
18314
18315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc
VZ
18316
18317
18318fi
d589327a
VZ
18319{ echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18320echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
43a7c679
VZ
18321 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18322 :; SUNCXX=yes
18323 else
18324 :;
18325 fi
fd5199d6
VZ
18326 ac_ext=c
18327ac_cpp='$CPP $CPPFLAGS'
18328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18330ac_compiler_gnu=$ac_cv_c_compiler_gnu
0093c2fc 18331
a9e5b1f0
MW
18332
18333
3006edc0
VZ
18334 ;;
18335 esac
18336 fi
18337
18338
18339
b7064225 18340if test "$CXX" = "g++" -a "$GXX" != "yes"; then
d589327a
VZ
18341 { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
18342echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
d5e0be7d
VZ
18343 { (exit 1); exit 1; }; }
18344fi
18345
d083d201
MW
18346if test "x$SUNCXX" != xyes; then
18347 if test -n "$ac_tool_prefix"; then
8c80d384
DE
18348 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18349set dummy ${ac_tool_prefix}ar; ac_word=$2
d589327a
VZ
18350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 18352if test "${ac_cv_prog_AR+set}" = set; then
d589327a 18353 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
18354else
18355 if test -n "$AR"; then
18356 ac_cv_prog_AR="$AR" # Let the user override the test.
18357else
18358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18359for as_dir in $PATH
18360do
18361 IFS=$as_save_IFS
18362 test -z "$as_dir" && as_dir=.
18363 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 18364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8c80d384 18365 ac_cv_prog_AR="${ac_tool_prefix}ar"
d589327a 18366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
18367 break 2
18368 fi
18369done
18370done
47964710 18371IFS=$as_save_IFS
a848cd7e
SC
18372
18373fi
18374fi
18375AR=$ac_cv_prog_AR
18376if test -n "$AR"; then
d589327a
VZ
18377 { echo "$as_me:$LINENO: result: $AR" >&5
18378echo "${ECHO_T}$AR" >&6; }
a848cd7e 18379else
d589327a
VZ
18380 { echo "$as_me:$LINENO: result: no" >&5
18381echo "${ECHO_T}no" >&6; }
a848cd7e
SC
18382fi
18383
47964710 18384
8c80d384
DE
18385fi
18386if test -z "$ac_cv_prog_AR"; then
18387 ac_ct_AR=$AR
18388 # Extract the first word of "ar", so it can be a program name with args.
18389set dummy ar; ac_word=$2
d589327a
VZ
18390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8c80d384 18392if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
d589327a 18393 echo $ECHO_N "(cached) $ECHO_C" >&6
8c80d384
DE
18394else
18395 if test -n "$ac_ct_AR"; then
18396 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18397else
18398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18399for as_dir in $PATH
18400do
18401 IFS=$as_save_IFS
18402 test -z "$as_dir" && as_dir=.
18403 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 18404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8c80d384 18405 ac_cv_prog_ac_ct_AR="ar"
d589327a 18406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8c80d384
DE
18407 break 2
18408 fi
18409done
18410done
47964710 18411IFS=$as_save_IFS
8c80d384
DE
18412
18413fi
18414fi
18415ac_ct_AR=$ac_cv_prog_ac_ct_AR
18416if test -n "$ac_ct_AR"; then
d589327a
VZ
18417 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18418echo "${ECHO_T}$ac_ct_AR" >&6; }
8c80d384 18419else
d589327a
VZ
18420 { echo "$as_me:$LINENO: result: no" >&5
18421echo "${ECHO_T}no" >&6; }
8c80d384
DE
18422fi
18423
47964710
VS
18424 if test "x$ac_ct_AR" = x; then
18425 AR=""
18426 else
18427 case $cross_compiling:$ac_tool_warned in
18428yes:)
d589327a
VZ
18429{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18430whose name does not start with the host triplet. If you think this
18431configuration is useful to you, please write to autoconf@gnu.org." >&5
18432echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18433whose name does not start with the host triplet. If you think this
18434configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47964710
VS
18435ac_tool_warned=yes ;;
18436esac
18437 AR=$ac_ct_AR
18438 fi
8c80d384
DE
18439else
18440 AR="$ac_cv_prog_AR"
18441fi
18442
d083d201 18443 if test "x$AR" = "x" ; then
d589327a
VZ
18444 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18445echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e 18446 { (exit 1); exit 1; }; }
d083d201 18447 fi
a848cd7e
SC
18448fi
18449
6c254c52
VZ
18450
18451if test "$wxUSE_MAC" = 1; then
18452
b4e05bdd
DE
18453retest_macosx_linking=no
18454
b4e05bdd
DE
18455 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18456 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18457 # Implicitly turn on the new --with-macosx-sdk using the default
18458 # SDK which provides the behavior this option has always had.
18459 if test "x$wxUSE_MACOSX_SDK" = "x"; then
d589327a
VZ
18460 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18461echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18462 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18463echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
b4e05bdd
DE
18464 wxUSE_MACOSX_SDK=yes
18465 fi
18466 else
18467 # Complain to user if he specified an argument to --enable-universal_binary
18468 # and also 1) specified --with-macosx-sdk using the default (yes) or
18469 # 2) specified --with-macosx-sdk using a path or 3) specified
18470 # --without-macosx-sdk (no).
18471 if test "x$wxUSE_MACOSX_SDK" != "x" ; then
d589327a 18472 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
b4e05bdd 18473See \`config.log' for more details." >&5
d589327a 18474echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
b4e05bdd 18475See \`config.log' for more details." >&2;}
d589327a 18476 { (exit 1); exit 1; }; }
b4e05bdd
DE
18477 else
18478 # Put the SDK path into the wxUSE_MACOSX_SDK. We don't have to
18479 # special-case the empty string because the below test simply
18480 # converts "no" to the empty string anyway.
18481 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
d589327a
VZ
18482 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18483echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
b4e05bdd
DE
18484 fi
18485 fi
18486 OSX_UNIV_OPTS="-arch ppc -arch i386"
18487 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
18488 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
64d975b2
DE
18489 OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
18490 OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
b4e05bdd
DE
18491 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
18492 retest_macosx_linking=yes
18493
d589327a
VZ
18494 { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18495echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
b4e05bdd
DE
18496 bk_use_pch=no
18497 fi
b4e05bdd
DE
18498
18499if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18500 wxUSE_MACOSX_SDK=
18501elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18502 # TODO: Search for most recent SDK and use it.
18503 wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18504fi
18505
18506
18507if test "x$wxUSE_MACOSX_SDK" != "x"; then
d589327a
VZ
18508 { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18509echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
b4e05bdd 18510 if ! test -d "$wxUSE_MACOSX_SDK"; then
d589327a 18511 { { echo "$as_me:$LINENO: error: not found
b4e05bdd 18512See \`config.log' for more details." >&5
d589327a 18513echo "$as_me: error: not found
b4e05bdd 18514See \`config.log' for more details." >&2;}
d589327a 18515 { (exit 1); exit 1; }; }
b4e05bdd 18516 else
d589327a
VZ
18517 { echo "$as_me:$LINENO: result: exists" >&5
18518echo "${ECHO_T}exists" >&6; }
b4e05bdd
DE
18519 fi
18520 MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18521 eval "CC=\"$CC $MACOSX_SDK_OPTS\""
18522 eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
18523 eval "LD=\"$LD $MACOSX_SDK_OPTS\""
18524 retest_macosx_linking=yes
18525 fi
18526
18527if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18528 wxUSE_MACOSX_VERSION_MIN=
18529elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18530 if test "x$wxUSE_MACOSX_SDK" != "x"; then
d589327a
VZ
18531 { echo "$as_me:$LINENO: checking SDK deployment version" >&5
18532echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
b4e05bdd
DE
18533
18534 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/'`
18535
11804291
DE
18536 # If that failed, try again with the new key
18537 if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18538
18539 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/'`
18540
18541 fi
18542
b4e05bdd
DE
18543 if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18544 wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
d589327a
VZ
18545 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18546echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
b4e05bdd 18547 else
d589327a
VZ
18548 { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18549echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
b4e05bdd
DE
18550 wxUSE_MACOSX_VERSION_MIN=
18551 fi
18552 else
18553 wxUSE_MACOSX_VERSION_MIN=
18554 fi
e9efd9f1 18555elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
06a08679
VZ
18556 for ac_prog in sw_vers
18557do
18558 # Extract the first word of "$ac_prog", so it can be a program name with args.
18559set dummy $ac_prog; ac_word=$2
18560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18562if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18564else
18565 if test -n "$OSX_SW_VERS"; then
18566 ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
18567else
18568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18569for as_dir in $PATH
18570do
18571 IFS=$as_save_IFS
18572 test -z "$as_dir" && as_dir=.
18573 for ac_exec_ext in '' $ac_executable_extensions; do
18574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18575 ac_cv_prog_OSX_SW_VERS="$ac_prog"
18576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18577 break 2
18578 fi
18579done
18580done
18581IFS=$as_save_IFS
18582
18583fi
18584fi
18585OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
18586if test -n "$OSX_SW_VERS"; then
18587 { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
18588echo "${ECHO_T}$OSX_SW_VERS" >&6; }
18589else
18590 { echo "$as_me:$LINENO: result: no" >&5
18591echo "${ECHO_T}no" >&6; }
18592fi
18593
18594
18595 test -n "$OSX_SW_VERS" && break
18596done
18597
18598 if test "$OSX_SW_VERS" != ""; then
18599 OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
18600 else
18601 { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
18602echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
18603 OSX_VERSION="10.4"
18604 fi
a49318f1
VZ
18605
18606 case "$OSX_VERSION" in
18607 10.4* )
18608 wxUSE_MACOSX_VERSION_MIN=10.4
18609 ;;
18610
18611 * )
18612 if test "$wxUSE_OSX_CARBON" = 1; then
18613 # otherwise configure stops on leopard for universal_binary
18614 wxUSE_MACOSX_VERSION_MIN=10.4
18615 else
18616 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
18617 wxUSE_MACOSX_VERSION_MIN=10.5
18618 fi
18619 ;;
18620 esac
8e6b680d
KO
18621fi
18622
18623NEEDS_GCC40="no"
18624if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
18625 NEEDS_GCC40="yes"
18626fi
18627
18628if test "$wxUSE_OSX_CARBON" = 1; then
18629 NEEDS_GCC40="yes"
18630fi
18631
18632if test "x$NEEDS_GCC40" == "xyes"; then
18633 # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
18634 # and wants 10.4 compatible code, then 'downgrade' to 4.0
18635 # This is also the simplest way to get 32-bit binaries on Snow Leopard.
18636 if test "x$CC" = "xgcc"; then
18637 CCVERSION=`$CC --version | grep 4.[2-9].`
18638 if test "x$CCVERSION" != "x"; then
18639 echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
18640 CC="/usr/bin/gcc-4.0"
18641 fi
18642 fi
18643
18644 if test "x$CXX" = "xg++"; then
18645 CCVERSION=`$CXX --version | grep 4.[2-9].`
18646 if test "x$CCVERSION" != "x"; then
18647 CXX="/usr/bin/g++-4.0"
18648 fi
80ba44a0 18649 fi
b4e05bdd
DE
18650fi
18651
18652if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
18653 MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
18654 eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
18655 eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
18656 eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
18657 retest_macosx_linking=yes
18658fi
18659
18660if test "x$retest_macosx_linking" = "xyes"; then
18661 ac_ext=c
18662ac_cpp='$CPP $CPPFLAGS'
18663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18665ac_compiler_gnu=$ac_cv_c_compiler_gnu
18666
d589327a
VZ
18667 { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
18668echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
b4e05bdd
DE
18669 cat >conftest.$ac_ext <<_ACEOF
18670/* confdefs.h. */
18671_ACEOF
18672cat confdefs.h >>conftest.$ac_ext
18673cat >>conftest.$ac_ext <<_ACEOF
18674/* end confdefs.h. */
18675
18676int
18677main ()
18678{
18679
18680 ;
18681 return 0;
18682}
18683_ACEOF
18684rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
18685if { (ac_try="$ac_link"
18686case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18689esac
d589327a 18690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 18691 (eval "$ac_link") 2>conftest.er1
b4e05bdd
DE
18692 ac_status=$?
18693 grep -v '^ *+' conftest.er1 >conftest.err
18694 rm -f conftest.er1
18695 cat conftest.err >&5
d589327a 18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18697 (exit $ac_status); } && {
18698 test -z "$ac_c_werror_flag" ||
18699 test ! -s conftest.err
d589327a
VZ
18700 } && test -s conftest$ac_exeext &&
18701 $as_test_x conftest$ac_exeext; then
18702 { echo "$as_me:$LINENO: result: yes" >&5
18703echo "${ECHO_T}yes" >&6; }
b4e05bdd 18704else
d589327a 18705 echo "$as_me: failed program was:" >&5
b4e05bdd
DE
18706sed 's/^/| /' conftest.$ac_ext >&5
18707
d589327a 18708 { { echo "$as_me:$LINENO: error: no. Try a different SDK
b4e05bdd 18709See \`config.log' for more details." >&5
d589327a 18710echo "$as_me: error: no. Try a different SDK
b4e05bdd 18711See \`config.log' for more details." >&2;}
d589327a 18712 { (exit 1); exit 1; }; }; exit 1
b4e05bdd 18713fi
47964710
VS
18714
18715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b4e05bdd
DE
18716 conftest$ac_exeext conftest.$ac_ext
18717 ac_ext=c
18718ac_cpp='$CPP $CPPFLAGS'
18719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721ac_compiler_gnu=$ac_cv_c_compiler_gnu
18722
18723
47964710 18724 ac_ext=cpp
b4e05bdd
DE
18725ac_cpp='$CXXCPP $CPPFLAGS'
18726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18729
d589327a
VZ
18730 { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
18731echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
b4e05bdd
DE
18732 cat >conftest.$ac_ext <<_ACEOF
18733/* confdefs.h. */
18734_ACEOF
18735cat confdefs.h >>conftest.$ac_ext
18736cat >>conftest.$ac_ext <<_ACEOF
18737/* end confdefs.h. */
18738
18739int
18740main ()
18741{
18742
18743 ;
18744 return 0;
18745}
18746_ACEOF
18747rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
18748if { (ac_try="$ac_link"
18749case "(($ac_try" in
18750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751 *) ac_try_echo=$ac_try;;
18752esac
d589327a 18753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 18754 (eval "$ac_link") 2>conftest.er1
b4e05bdd
DE
18755 ac_status=$?
18756 grep -v '^ *+' conftest.er1 >conftest.err
18757 rm -f conftest.er1
18758 cat conftest.err >&5
d589327a 18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18760 (exit $ac_status); } && {
18761 test -z "$ac_cxx_werror_flag" ||
18762 test ! -s conftest.err
d589327a
VZ
18763 } && test -s conftest$ac_exeext &&
18764 $as_test_x conftest$ac_exeext; then
18765 { echo "$as_me:$LINENO: result: yes" >&5
18766echo "${ECHO_T}yes" >&6; }
b4e05bdd 18767else
d589327a 18768 echo "$as_me: failed program was:" >&5
b4e05bdd
DE
18769sed 's/^/| /' conftest.$ac_ext >&5
18770
d589327a 18771 { { echo "$as_me:$LINENO: error: no. Try a different SDK
b4e05bdd 18772See \`config.log' for more details." >&5
d589327a 18773echo "$as_me: error: no. Try a different SDK
b4e05bdd 18774See \`config.log' for more details." >&2;}
d589327a 18775 { (exit 1); exit 1; }; }; exit 1
b4e05bdd 18776fi
47964710
VS
18777
18778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b4e05bdd
DE
18779 conftest$ac_exeext conftest.$ac_ext
18780 ac_ext=c
18781ac_cpp='$CPP $CPPFLAGS'
18782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18784ac_compiler_gnu=$ac_cv_c_compiler_gnu
18785
18786fi
18787
6c254c52 18788fi
a848cd7e
SC
18789case "${host}" in
18790
cfda0ea8 18791 *-*-darwin* )
a848cd7e
SC
18792 INSTALL_PROGRAM="cp -fp"
18793 INSTALL_DATA="cp -fp"
18794 ;;
18795 *)
18796 ;;
18797esac
18798
a848cd7e 18799
2113bc77 18800if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 18801 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
18802fi
18803
4d7ec9f1
DE
18804case "${host}" in
18805 powerpc-*-darwin* )
d589327a
VZ
18806 { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18807echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
4d7ec9f1
DE
18808 cat >conftest.$ac_ext <<_ACEOF
18809/* confdefs.h. */
18810_ACEOF
18811cat confdefs.h >>conftest.$ac_ext
18812cat >>conftest.$ac_ext <<_ACEOF
18813/* end confdefs.h. */
18814
18815int
18816main ()
18817{
18818#ifndef __POWERPC__
18819 choke me for lack of PowerPC
18820#endif
18821
18822 ;
18823 return 0;
18824}
18825_ACEOF
18826rm -f conftest.$ac_objext
47964710
VS
18827if { (ac_try="$ac_compile"
18828case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18831esac
d589327a 18832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 18833 (eval "$ac_compile") 2>conftest.er1
4d7ec9f1
DE
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
d589327a 18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18839 (exit $ac_status); } && {
18840 test -z "$ac_c_werror_flag" ||
18841 test ! -s conftest.err
18842 } && test -s conftest.$ac_objext; then
d589327a
VZ
18843 { echo "$as_me:$LINENO: result: yes" >&5
18844echo "${ECHO_T}yes" >&6; }
4d7ec9f1 18845else
d589327a 18846 echo "$as_me: failed program was:" >&5
4d7ec9f1
DE
18847sed 's/^/| /' conftest.$ac_ext >&5
18848
d589327a
VZ
18849 { echo "$as_me:$LINENO: result: no" >&5
18850echo "${ECHO_T}no" >&6; }
4d7ec9f1
DE
18851 cat >>confdefs.h <<\_ACEOF
18852#define __POWERPC__ 1
18853_ACEOF
18854
18855
18856fi
47964710
VS
18857
18858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
18859 ;;
18860esac
18861
18862case "${host}" in
18863 *-*-darwin* )
d589327a
VZ
18864 { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18865echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
4d7ec9f1
DE
18866 cat >conftest.$ac_ext <<_ACEOF
18867/* confdefs.h. */
18868_ACEOF
18869cat confdefs.h >>conftest.$ac_ext
18870cat >>conftest.$ac_ext <<_ACEOF
18871/* end confdefs.h. */
18872#include <CoreFoundation/CFBase.h>
18873
18874int
18875main ()
18876{
18877
18878 ;
18879 return 0;
18880}
18881_ACEOF
18882rm -f conftest.$ac_objext
47964710
VS
18883if { (ac_try="$ac_compile"
18884case "(($ac_try" in
18885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886 *) ac_try_echo=$ac_try;;
18887esac
d589327a 18888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 18889 (eval "$ac_compile") 2>conftest.er1
4d7ec9f1
DE
18890 ac_status=$?
18891 grep -v '^ *+' conftest.er1 >conftest.err
18892 rm -f conftest.er1
18893 cat conftest.err >&5
d589327a 18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18895 (exit $ac_status); } && {
18896 test -z "$ac_c_werror_flag" ||
18897 test ! -s conftest.err
18898 } && test -s conftest.$ac_objext; then
d589327a
VZ
18899 { echo "$as_me:$LINENO: result: yes" >&5
18900echo "${ECHO_T}yes" >&6; }
4d7ec9f1 18901else
d589327a 18902 echo "$as_me: failed program was:" >&5
4d7ec9f1
DE
18903sed 's/^/| /' conftest.$ac_ext >&5
18904
d589327a
VZ
18905 { echo "$as_me:$LINENO: result: no" >&5
18906echo "${ECHO_T}no" >&6; }
18907 { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18908echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
4d7ec9f1
DE
18909 cat >conftest.$ac_ext <<_ACEOF
18910/* confdefs.h. */
18911_ACEOF
18912cat confdefs.h >>conftest.$ac_ext
18913cat >>conftest.$ac_ext <<_ACEOF
18914/* end confdefs.h. */
18915#define __CF_USE_FRAMEWORK_INCLUDES__
18916#include <CoreFoundation/CFBase.h>
18917
18918int
18919main ()
18920{
18921
18922 ;
18923 return 0;
18924}
18925_ACEOF
18926rm -f conftest.$ac_objext
47964710
VS
18927if { (ac_try="$ac_compile"
18928case "(($ac_try" in
18929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930 *) ac_try_echo=$ac_try;;
18931esac
d589327a 18932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 18933 (eval "$ac_compile") 2>conftest.er1
4d7ec9f1
DE
18934 ac_status=$?
18935 grep -v '^ *+' conftest.er1 >conftest.err
18936 rm -f conftest.er1
18937 cat conftest.err >&5
d589327a 18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
18939 (exit $ac_status); } && {
18940 test -z "$ac_c_werror_flag" ||
18941 test ! -s conftest.err
18942 } && test -s conftest.$ac_objext; then
d589327a
VZ
18943 { echo "$as_me:$LINENO: result: yes" >&5
18944echo "${ECHO_T}yes" >&6; }
c92ad099 18945 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1 18946else
d589327a 18947 echo "$as_me: failed program was:" >&5
4d7ec9f1
DE
18948sed 's/^/| /' conftest.$ac_ext >&5
18949
d589327a 18950 { { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
4d7ec9f1 18951See \`config.log' for more details." >&5
d589327a 18952echo "$as_me: error: no. CoreFoundation not available.
4d7ec9f1 18953See \`config.log' for more details." >&2;}
d589327a 18954 { (exit 1); exit 1; }; }
4d7ec9f1
DE
18955
18956fi
47964710
VS
18957
18958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4d7ec9f1
DE
18959
18960
18961fi
47964710
VS
18962
18963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4d7ec9f1
DE
18964 ;;
18965esac
18966
8bf7f1a9
VZ
18967wants_win32=0
18968doesnt_want_win32=0
18969case "${host}" in
18970 *-*-cygwin*)
18971 if test "$wxUSE_MSW" = 1 ; then
18972 wants_win32=1
18973 else
d589327a
VZ
18974 { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18975echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
8bf7f1a9 18976if test "${wx_cv_nocygwin+set}" = set; then
d589327a 18977 echo $ECHO_N "(cached) $ECHO_C" >&6
8bf7f1a9
VZ
18978else
18979
18980 cat >conftest.$ac_ext <<_ACEOF
18981/* confdefs.h. */
18982_ACEOF
18983cat confdefs.h >>conftest.$ac_ext
18984cat >>conftest.$ac_ext <<_ACEOF
18985/* end confdefs.h. */
18986
18987int
18988main ()
18989{
18990
18991 #ifdef __MINGW32__
18992 choke me
18993 #endif
18994
18995 ;
18996 return 0;
18997}
18998_ACEOF
18999rm -f conftest.$ac_objext
47964710
VS
19000if { (ac_try="$ac_compile"
19001case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19004esac
d589327a 19005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19006 (eval "$ac_compile") 2>conftest.er1
8bf7f1a9
VZ
19007 ac_status=$?
19008 grep -v '^ *+' conftest.er1 >conftest.err
19009 rm -f conftest.er1
19010 cat conftest.err >&5
d589327a 19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19012 (exit $ac_status); } && {
19013 test -z "$ac_c_werror_flag" ||
19014 test ! -s conftest.err
19015 } && test -s conftest.$ac_objext; then
8bf7f1a9
VZ
19016 wx_cv_nocygwin=no
19017else
d589327a 19018 echo "$as_me: failed program was:" >&5
8bf7f1a9
VZ
19019sed 's/^/| /' conftest.$ac_ext >&5
19020
47964710 19021 wx_cv_nocygwin=yes
8bf7f1a9
VZ
19022
19023fi
47964710
VS
19024
19025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8bf7f1a9
VZ
19026
19027
19028fi
d589327a
VZ
19029{ echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19030echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
8bf7f1a9
VZ
19031
19032 if test "$wx_cv_nocygwin" = "yes"; then
19033 wants_win32=1
19034 else
19035 doesnt_want_win32=1
19036 fi
19037 fi
19038 if test "$wants_win32" = 1 ; then
19039 BAKEFILE_FORCE_PLATFORM=win32
19040 fi
19041 ;;
19042 *-*-mingw*)
19043 wants_win32=1
19044 ;;
19045esac
19046
19047if test "$wxUSE_WINE" = "yes"; then
19048 wants_win32=1
8bf7f1a9
VZ
19049 LDFLAGS_GUI="-mwindows"
19050fi
19051
19052if test "$wants_win32" = 1 ; then
19053 USE_UNIX=0
19054 USE_WIN32=1
19055 cat >>confdefs.h <<\_ACEOF
19056#define __WIN32__ 1
19057_ACEOF
19058
19059 cat >>confdefs.h <<\_ACEOF
19060#define __WIN95__ 1
19061_ACEOF
19062
19063 cat >>confdefs.h <<\_ACEOF
19064#define __WINDOWS__ 1
19065_ACEOF
19066
19067 cat >>confdefs.h <<\_ACEOF
19068#define __GNUWIN32__ 1
19069_ACEOF
19070
19071 cat >>confdefs.h <<\_ACEOF
19072#define STRICT 1
19073_ACEOF
19074
19075fi
19076if test "$doesnt_want_win32" = 1 ; then
19077 USE_UNIX=1
19078 USE_WIN32=0
19079fi
19080
19081if test "$USE_UNIX" = 1 ; then
19082 wxUSE_UNIX=yes
19083 cat >>confdefs.h <<\_ACEOF
19084#define __UNIX__ 1
19085_ACEOF
19086
19087fi
19088
a848cd7e
SC
19089case "${host}" in
19090 *-pc-os2_emx | *-pc-os2-emx )
fd5199d6 19091 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
d589327a
VZ
19092 { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19093echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
a848cd7e 19094if test "${ac_cv_lib_cExt_drand48+set}" = set; then
d589327a 19095 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
19096else
19097 ac_check_lib_save_LIBS=$LIBS
19098LIBS="-lcExt $LIBS"
19099cat >conftest.$ac_ext <<_ACEOF
19100/* confdefs.h. */
19101_ACEOF
19102cat confdefs.h >>conftest.$ac_ext
19103cat >>conftest.$ac_ext <<_ACEOF
19104/* end confdefs.h. */
19105
47964710
VS
19106/* Override any GCC internal prototype to avoid an error.
19107 Use char because int might match the return type of a GCC
19108 builtin and then its argument prototype would still apply. */
a848cd7e
SC
19109#ifdef __cplusplus
19110extern "C"
19111#endif
a848cd7e
SC
19112char drand48 ();
19113int
19114main ()
19115{
47964710 19116return drand48 ();
a848cd7e
SC
19117 ;
19118 return 0;
19119}
19120_ACEOF
19121rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
19122if { (ac_try="$ac_link"
19123case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19126esac
d589327a 19127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19128 (eval "$ac_link") 2>conftest.er1
a848cd7e 19129 ac_status=$?
ac1cb8d3
VS
19130 grep -v '^ *+' conftest.er1 >conftest.err
19131 rm -f conftest.er1
19132 cat conftest.err >&5
d589327a 19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19134 (exit $ac_status); } && {
19135 test -z "$ac_c_werror_flag" ||
19136 test ! -s conftest.err
d589327a
VZ
19137 } && test -s conftest$ac_exeext &&
19138 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
19139 ac_cv_lib_cExt_drand48=yes
19140else
d589327a 19141 echo "$as_me: failed program was:" >&5
a848cd7e
SC
19142sed 's/^/| /' conftest.$ac_ext >&5
19143
47964710 19144 ac_cv_lib_cExt_drand48=no
a848cd7e 19145fi
47964710
VS
19146
19147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 19148 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
19149LIBS=$ac_check_lib_save_LIBS
19150fi
d589327a
VZ
19151{ echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19152echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19153if test $ac_cv_lib_cExt_drand48 = yes; then
a848cd7e
SC
19154 LIBS="$LIBS -lcExt"
19155fi
19156
19157 else
19158 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19159 fi
d589327a
VZ
19160 { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19161echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
a848cd7e 19162if test "${wx_cv_gccversion+set}" = set; then
d589327a 19163 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
19164else
19165
391a765e
VS
19166 if test "$cross_compiling" = yes; then
19167 wx_cv_gccversion="EMX2"
19168
19169else
19170 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
19171/* confdefs.h. */
19172_ACEOF
19173cat confdefs.h >>conftest.$ac_ext
19174cat >>conftest.$ac_ext <<_ACEOF
19175/* end confdefs.h. */
19176
391a765e 19177 #include <stdio.h>
a848cd7e 19178
391a765e
VS
19179 int main()
19180 {
19181 FILE *f=fopen("conftestval", "w");
19182 if (!f) exit(1);
19183 fprintf(f,
a848cd7e 19184 #if (__GNUC__ < 3)
391a765e
VS
19185 "EMX2"
19186 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19187 "EMX3"
19188 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19189 "Innotek5"
19190 #else
19191 "Innotek6"
a848cd7e 19192 #endif
5039a2df 19193 );
391a765e
VS
19194 exit(0);
19195 }
a848cd7e 19196
a848cd7e 19197_ACEOF
391a765e 19198rm -f conftest$ac_exeext
47964710
VS
19199if { (ac_try="$ac_link"
19200case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19203esac
d589327a 19204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19205 (eval "$ac_link") 2>&5
ac1cb8d3 19206 ac_status=$?
d589327a 19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 19208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
19209 { (case "(($ac_try" in
19210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211 *) ac_try_echo=$ac_try;;
19212esac
d589327a 19213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19214 (eval "$ac_try") 2>&5
a848cd7e 19215 ac_status=$?
d589327a 19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 19217 (exit $ac_status); }; }; then
391a765e 19218 wx_cv_gccversion=`cat conftestval`
a848cd7e 19219else
d589327a
VZ
19220 echo "$as_me: program exited with status $ac_status" >&5
19221echo "$as_me: failed program was:" >&5
a848cd7e
SC
19222sed 's/^/| /' conftest.$ac_ext >&5
19223
391a765e
VS
19224( exit $ac_status )
19225wx_cv_gccversion="EMX2"
a848cd7e 19226fi
47964710 19227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19228fi
a848cd7e 19229
47964710
VS
19230
19231
a848cd7e 19232fi
d589327a
VZ
19233{ echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
19234echo "${ECHO_T}$wx_cv_gccversion" >&6; }
391a765e 19235 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
19236 LIBS="$LIBS -lstdcpp"
19237 LDFLAGS="$LDFLAGS -Zsysv-signals"
19238 else
391a765e 19239 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 19240 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
19241 LDFLAGS="$LDFLAGS -Zsysv-signals"
19242 else
19243 LIBS="$LIBS -lstdc++"
19244 fi
19245 fi
94acd38e 19246 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
d589327a
VZ
19247 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
19248echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
94acd38e 19249 wxUSE_OMF=yes
ec3edcc9 19250 enable_omf=yes
a848cd7e
SC
19251 fi
19252 ;;
19253 *)
19254
d589327a
VZ
19255 { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
19256echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
a848cd7e 19257if test "${ac_cv_string_strcasecmp+set}" = set; then
d589327a 19258 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
19259else
19260
19261 cat >conftest.$ac_ext <<_ACEOF
19262/* confdefs.h. */
19263_ACEOF
19264cat confdefs.h >>conftest.$ac_ext
19265cat >>conftest.$ac_ext <<_ACEOF
19266/* end confdefs.h. */
19267
19268 #include <string.h>
19269
19270int
19271main ()
19272{
19273
19274 strcasecmp("foo", "bar");
19275
19276 ;
19277 return 0;
19278}
19279_ACEOF
19280rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
19281if { (ac_try="$ac_link"
19282case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19285esac
d589327a 19286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19287 (eval "$ac_link") 2>conftest.er1
a848cd7e 19288 ac_status=$?
ac1cb8d3
VS
19289 grep -v '^ *+' conftest.er1 >conftest.err
19290 rm -f conftest.er1
19291 cat conftest.err >&5
d589327a 19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19293 (exit $ac_status); } && {
19294 test -z "$ac_c_werror_flag" ||
19295 test ! -s conftest.err
d589327a
VZ
19296 } && test -s conftest$ac_exeext &&
19297 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
19298 ac_cv_string_strcasecmp=yes
19299else
d589327a 19300 echo "$as_me: failed program was:" >&5
a848cd7e
SC
19301sed 's/^/| /' conftest.$ac_ext >&5
19302
47964710 19303 ac_cv_string_strcasecmp=no
a848cd7e
SC
19304
19305fi
47964710
VS
19306
19307rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 19308 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
19309
19310fi
d589327a
VZ
19311{ echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
19312echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
a848cd7e
SC
19313
19314 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
19315 cat >>confdefs.h <<\_ACEOF
19316#define HAVE_STRCASECMP_IN_STRING_H 1
19317_ACEOF
19318
19319 else
d589327a
VZ
19320 { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
19321echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
a848cd7e 19322if test "${ac_cv_strings_strcasecmp+set}" = set; then
d589327a 19323 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
19324else
19325
19326 cat >conftest.$ac_ext <<_ACEOF
19327/* confdefs.h. */
19328_ACEOF
19329cat confdefs.h >>conftest.$ac_ext
19330cat >>conftest.$ac_ext <<_ACEOF
19331/* end confdefs.h. */
19332
19333 #include <strings.h>
19334
19335int
19336main ()
19337{
19338
19339 strcasecmp("foo", "bar");
19340
19341 ;
19342 return 0;
19343}
19344_ACEOF
19345rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
19346if { (ac_try="$ac_link"
19347case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350esac
d589327a 19351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19352 (eval "$ac_link") 2>conftest.er1
a848cd7e 19353 ac_status=$?
ac1cb8d3
VS
19354 grep -v '^ *+' conftest.er1 >conftest.err
19355 rm -f conftest.er1
19356 cat conftest.err >&5
d589327a 19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19358 (exit $ac_status); } && {
19359 test -z "$ac_c_werror_flag" ||
19360 test ! -s conftest.err
d589327a
VZ
19361 } && test -s conftest$ac_exeext &&
19362 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
19363 ac_cv_strings_strcasecmp=yes
19364else
d589327a 19365 echo "$as_me: failed program was:" >&5
a848cd7e
SC
19366sed 's/^/| /' conftest.$ac_ext >&5
19367
47964710 19368 ac_cv_strings_strcasecmp=no
a848cd7e
SC
19369
19370fi
47964710
VS
19371
19372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 19373 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
19374
19375fi
d589327a
VZ
19376{ echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
19377echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
a848cd7e 19378
0c3c69fc 19379 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
19380 cat >>confdefs.h <<\_ACEOF
19381#define HAVE_STRCASECMP_IN_STRINGS_H 1
19382_ACEOF
19383
19384 else
d589327a
VZ
19385 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
19386echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
a848cd7e
SC
19387 { (exit 1); exit 1; }; }
19388 fi
19389 fi
19390
a848cd7e
SC
19391 ;;
19392esac
19393
19394
d589327a
VZ
19395{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19396echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
a848cd7e 19397if test "${ac_cv_header_stdc+set}" = set; then
d589327a 19398 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
19399else
19400 cat >conftest.$ac_ext <<_ACEOF
19401/* confdefs.h. */
19402_ACEOF
19403cat confdefs.h >>conftest.$ac_ext
19404cat >>conftest.$ac_ext <<_ACEOF
19405/* end confdefs.h. */
19406#include <stdlib.h>
19407#include <stdarg.h>
19408#include <string.h>
19409#include <float.h>
19410
19411int
19412main ()
19413{
19414
19415 ;
19416 return 0;
19417}
19418_ACEOF
19419rm -f conftest.$ac_objext
47964710
VS
19420if { (ac_try="$ac_compile"
19421case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19424esac
d589327a 19425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19426 (eval "$ac_compile") 2>conftest.er1
a848cd7e 19427 ac_status=$?
ac1cb8d3
VS
19428 grep -v '^ *+' conftest.er1 >conftest.err
19429 rm -f conftest.er1
19430 cat conftest.err >&5
d589327a 19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19432 (exit $ac_status); } && {
19433 test -z "$ac_c_werror_flag" ||
19434 test ! -s conftest.err
19435 } && test -s conftest.$ac_objext; then
a848cd7e
SC
19436 ac_cv_header_stdc=yes
19437else
d589327a 19438 echo "$as_me: failed program was:" >&5
a848cd7e
SC
19439sed 's/^/| /' conftest.$ac_ext >&5
19440
47964710 19441 ac_cv_header_stdc=no
a848cd7e 19442fi
47964710
VS
19443
19444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19445
19446if test $ac_cv_header_stdc = yes; then
19447 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19448 cat >conftest.$ac_ext <<_ACEOF
19449/* confdefs.h. */
19450_ACEOF
19451cat confdefs.h >>conftest.$ac_ext
19452cat >>conftest.$ac_ext <<_ACEOF
19453/* end confdefs.h. */
19454#include <string.h>
19455
19456_ACEOF
19457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19458 $EGREP "memchr" >/dev/null 2>&1; then
19459 :
19460else
19461 ac_cv_header_stdc=no
19462fi
19463rm -f conftest*
19464
19465fi
19466
19467if test $ac_cv_header_stdc = yes; then
19468 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19469 cat >conftest.$ac_ext <<_ACEOF
19470/* confdefs.h. */
19471_ACEOF
19472cat confdefs.h >>conftest.$ac_ext
19473cat >>conftest.$ac_ext <<_ACEOF
19474/* end confdefs.h. */
19475#include <stdlib.h>
19476
19477_ACEOF
19478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19479 $EGREP "free" >/dev/null 2>&1; then
19480 :
19481else
19482 ac_cv_header_stdc=no
19483fi
19484rm -f conftest*
19485
19486fi
19487
19488if test $ac_cv_header_stdc = yes; then
19489 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19490 if test "$cross_compiling" = yes; then
19491 :
19492else
19493 cat >conftest.$ac_ext <<_ACEOF
19494/* confdefs.h. */
19495_ACEOF
19496cat confdefs.h >>conftest.$ac_ext
19497cat >>conftest.$ac_ext <<_ACEOF
19498/* end confdefs.h. */
19499#include <ctype.h>
47964710 19500#include <stdlib.h>
a848cd7e
SC
19501#if ((' ' & 0x0FF) == 0x020)
19502# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19503# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19504#else
19505# define ISLOWER(c) \
ac1cb8d3
VS
19506 (('a' <= (c) && (c) <= 'i') \
19507 || ('j' <= (c) && (c) <= 'r') \
19508 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
19509# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19510#endif
19511
19512#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19513int
19514main ()
19515{
19516 int i;
19517 for (i = 0; i < 256; i++)
19518 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 19519 || toupper (i) != TOUPPER (i))
47964710
VS
19520 return 2;
19521 return 0;
a848cd7e
SC
19522}
19523_ACEOF
19524rm -f conftest$ac_exeext
47964710
VS
19525if { (ac_try="$ac_link"
19526case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19529esac
d589327a 19530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19531 (eval "$ac_link") 2>&5
a848cd7e 19532 ac_status=$?
d589327a 19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 19534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
19535 { (case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19538esac
d589327a 19539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19540 (eval "$ac_try") 2>&5
a848cd7e 19541 ac_status=$?
d589327a 19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
19543 (exit $ac_status); }; }; then
19544 :
19545else
d589327a
VZ
19546 echo "$as_me: program exited with status $ac_status" >&5
19547echo "$as_me: failed program was:" >&5
a848cd7e
SC
19548sed 's/^/| /' conftest.$ac_ext >&5
19549
19550( exit $ac_status )
19551ac_cv_header_stdc=no
19552fi
47964710 19553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19554fi
47964710
VS
19555
19556
a848cd7e
SC
19557fi
19558fi
d589327a
VZ
19559{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19560echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
a848cd7e
SC
19561if test $ac_cv_header_stdc = yes; then
19562
19563cat >>confdefs.h <<\_ACEOF
19564#define STDC_HEADERS 1
19565_ACEOF
19566
19567fi
19568
19569# On IRIX 5.3, sys/types and inttypes.h are conflicting.
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 19580 inttypes.h stdint.h unistd.h
a848cd7e 19581do
d589327a
VZ
19582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19583{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47964710 19585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 19586 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
19587else
19588 cat >conftest.$ac_ext <<_ACEOF
19589/* confdefs.h. */
19590_ACEOF
19591cat confdefs.h >>conftest.$ac_ext
19592cat >>conftest.$ac_ext <<_ACEOF
19593/* end confdefs.h. */
19594$ac_includes_default
19595
19596#include <$ac_header>
19597_ACEOF
19598rm -f conftest.$ac_objext
47964710
VS
19599if { (ac_try="$ac_compile"
19600case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19603esac
d589327a 19604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19605 (eval "$ac_compile") 2>conftest.er1
a848cd7e 19606 ac_status=$?
ac1cb8d3
VS
19607 grep -v '^ *+' conftest.er1 >conftest.err
19608 rm -f conftest.er1
19609 cat conftest.err >&5
d589327a 19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19611 (exit $ac_status); } && {
19612 test -z "$ac_c_werror_flag" ||
19613 test ! -s conftest.err
19614 } && test -s conftest.$ac_objext; then
a848cd7e
SC
19615 eval "$as_ac_Header=yes"
19616else
d589327a 19617 echo "$as_me: failed program was:" >&5
a848cd7e
SC
19618sed 's/^/| /' conftest.$ac_ext >&5
19619
47964710 19620 eval "$as_ac_Header=no"
a848cd7e 19621fi
47964710
VS
19622
19623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19624fi
d589327a
VZ
19625ac_res=`eval echo '${'$as_ac_Header'}'`
19626 { echo "$as_me:$LINENO: result: $ac_res" >&5
19627echo "${ECHO_T}$ac_res" >&6; }
19628if test `eval echo '${'$as_ac_Header'}'` = yes; then
a848cd7e 19629 cat >>confdefs.h <<_ACEOF
d589327a 19630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a848cd7e
SC
19631_ACEOF
19632
19633fi
19634
19635done
19636
19637
19638
a848cd7e 19639
05787cec 19640for ac_header in langinfo.h wchar.h
a848cd7e 19641do
d589327a
VZ
19642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19643{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47964710 19645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 19646 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 19647else
6e7b8bcb 19648 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
19649/* confdefs.h. */
19650_ACEOF
19651cat confdefs.h >>conftest.$ac_ext
19652cat >>conftest.$ac_ext <<_ACEOF
19653/* end confdefs.h. */
19654$ac_includes_default
6e7b8bcb 19655
a848cd7e
SC
19656#include <$ac_header>
19657_ACEOF
19658rm -f conftest.$ac_objext
47964710
VS
19659if { (ac_try="$ac_compile"
19660case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19663esac
d589327a 19664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19665 (eval "$ac_compile") 2>conftest.er1
a848cd7e 19666 ac_status=$?
ac1cb8d3
VS
19667 grep -v '^ *+' conftest.er1 >conftest.err
19668 rm -f conftest.er1
19669 cat conftest.err >&5
d589327a 19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19671 (exit $ac_status); } && {
19672 test -z "$ac_c_werror_flag" ||
19673 test ! -s conftest.err
19674 } && test -s conftest.$ac_objext; then
6e7b8bcb 19675 eval "$as_ac_Header=yes"
a848cd7e 19676else
d589327a 19677 echo "$as_me: failed program was:" >&5
a848cd7e
SC
19678sed 's/^/| /' conftest.$ac_ext >&5
19679
47964710 19680 eval "$as_ac_Header=no"
a848cd7e 19681fi
47964710
VS
19682
19683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19684fi
d589327a
VZ
19685ac_res=`eval echo '${'$as_ac_Header'}'`
19686 { echo "$as_me:$LINENO: result: $ac_res" >&5
19687echo "${ECHO_T}$ac_res" >&6; }
19688if test `eval echo '${'$as_ac_Header'}'` = yes; then
a848cd7e 19689 cat >>confdefs.h <<_ACEOF
d589327a 19690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a848cd7e
SC
19691_ACEOF
19692
19693fi
19694
19695done
19696
a848cd7e 19697
55e34571 19698if test "$ac_cv_header_wchar_h" != "yes"; then
1f7e12cc
DE
19699
19700for ac_header in wcstr.h
19701do
d589327a
VZ
19702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19703{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47964710 19705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 19706 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 19707else
6e7b8bcb 19708 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
19709/* confdefs.h. */
19710_ACEOF
19711cat confdefs.h >>conftest.$ac_ext
19712cat >>conftest.$ac_ext <<_ACEOF
19713/* end confdefs.h. */
19714$ac_includes_default
6e7b8bcb 19715
1f7e12cc 19716#include <$ac_header>
a848cd7e
SC
19717_ACEOF
19718rm -f conftest.$ac_objext
47964710
VS
19719if { (ac_try="$ac_compile"
19720case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19723esac
d589327a 19724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19725 (eval "$ac_compile") 2>conftest.er1
a848cd7e 19726 ac_status=$?
ac1cb8d3
VS
19727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
d589327a 19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19731 (exit $ac_status); } && {
19732 test -z "$ac_c_werror_flag" ||
19733 test ! -s conftest.err
19734 } && test -s conftest.$ac_objext; then
1f7e12cc 19735 eval "$as_ac_Header=yes"
a848cd7e 19736else
d589327a 19737 echo "$as_me: failed program was:" >&5
a848cd7e
SC
19738sed 's/^/| /' conftest.$ac_ext >&5
19739
47964710 19740 eval "$as_ac_Header=no"
a848cd7e 19741fi
47964710
VS
19742
19743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19744fi
d589327a
VZ
19745ac_res=`eval echo '${'$as_ac_Header'}'`
19746 { echo "$as_me:$LINENO: result: $ac_res" >&5
19747echo "${ECHO_T}$ac_res" >&6; }
19748if test `eval echo '${'$as_ac_Header'}'` = yes; then
1f7e12cc 19749 cat >>confdefs.h <<_ACEOF
d589327a 19750#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1f7e12cc
DE
19751_ACEOF
19752
19753fi
a848cd7e 19754
1f7e12cc 19755done
a848cd7e 19756
a848cd7e
SC
19757fi
19758
a848cd7e
SC
19759case "${host}" in
19760 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
19761 if test $ac_cv_header_langinfo_h = "yes" \
19762 -a \( "$wx_cv_gccversion" = "EMX2" \
19763 -o "$wx_cv_gccversion" = "EMX3" \
19764 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
19765 LIBS="$LIBS -lintl"
19766 fi
19767 ;;
19768esac
19769
bc023abb 19770if test "$USE_UNIX" = 1 ; then
1f7e12cc
DE
19771
19772for ac_header in sys/select.h
19773do
d589327a
VZ
19774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19775{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47964710 19777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 19778 echo $ECHO_N "(cached) $ECHO_C" >&6
bc023abb 19779else
6e7b8bcb 19780 cat >conftest.$ac_ext <<_ACEOF
bc023abb
MW
19781/* confdefs.h. */
19782_ACEOF
19783cat confdefs.h >>conftest.$ac_ext
19784cat >>conftest.$ac_ext <<_ACEOF
19785/* end confdefs.h. */
19786$ac_includes_default
6e7b8bcb 19787
1f7e12cc 19788#include <$ac_header>
bc023abb
MW
19789_ACEOF
19790rm -f conftest.$ac_objext
47964710
VS
19791if { (ac_try="$ac_compile"
19792case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19795esac
d589327a 19796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19797 (eval "$ac_compile") 2>conftest.er1
bc023abb
MW
19798 ac_status=$?
19799 grep -v '^ *+' conftest.er1 >conftest.err
19800 rm -f conftest.er1
19801 cat conftest.err >&5
d589327a 19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19803 (exit $ac_status); } && {
19804 test -z "$ac_c_werror_flag" ||
19805 test ! -s conftest.err
19806 } && test -s conftest.$ac_objext; then
1f7e12cc 19807 eval "$as_ac_Header=yes"
bc023abb 19808else
d589327a 19809 echo "$as_me: failed program was:" >&5
bc023abb
MW
19810sed 's/^/| /' conftest.$ac_ext >&5
19811
47964710 19812 eval "$as_ac_Header=no"
bc023abb 19813fi
47964710
VS
19814
19815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bc023abb 19816fi
d589327a
VZ
19817ac_res=`eval echo '${'$as_ac_Header'}'`
19818 { echo "$as_me:$LINENO: result: $ac_res" >&5
19819echo "${ECHO_T}$ac_res" >&6; }
19820if test `eval echo '${'$as_ac_Header'}'` = yes; then
1f7e12cc 19821 cat >>confdefs.h <<_ACEOF
d589327a 19822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1f7e12cc
DE
19823_ACEOF
19824
19825fi
7fd3acaf 19826
1f7e12cc 19827done
bc023abb
MW
19828
19829fi
19830
a848cd7e 19831
d589327a
VZ
19832{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19833echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
a848cd7e 19834if test "${ac_cv_c_const+set}" = set; then
d589327a 19835 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
19836else
19837 cat >conftest.$ac_ext <<_ACEOF
19838/* confdefs.h. */
19839_ACEOF
19840cat confdefs.h >>conftest.$ac_ext
19841cat >>conftest.$ac_ext <<_ACEOF
19842/* end confdefs.h. */
19843
19844int
19845main ()
19846{
19847/* FIXME: Include the comments suggested by Paul. */
19848#ifndef __cplusplus
19849 /* Ultrix mips cc rejects this. */
19850 typedef int charset[2];
47964710 19851 const charset cs;
a848cd7e 19852 /* SunOS 4.1.1 cc rejects this. */
47964710
VS
19853 char const *const *pcpcc;
19854 char **ppc;
a848cd7e
SC
19855 /* NEC SVR4.0.2 mips cc rejects this. */
19856 struct point {int x, y;};
19857 static struct point const zero = {0,0};
19858 /* AIX XL C 1.02.0.0 rejects this.
19859 It does not let you subtract one const X* pointer from another in
19860 an arm of an if-expression whose if-part is not a constant
19861 expression */
19862 const char *g = "string";
47964710 19863 pcpcc = &g + (g ? g-g : 0);
a848cd7e 19864 /* HPUX 7.0 cc rejects these. */
47964710
VS
19865 ++pcpcc;
19866 ppc = (char**) pcpcc;
19867 pcpcc = (char const *const *) ppc;
a848cd7e
SC
19868 { /* SCO 3.2v4 cc rejects this. */
19869 char *t;
19870 char const *s = 0 ? (char *) 0 : (char const *) 0;
19871
19872 *t++ = 0;
47964710 19873 if (s) return 0;
a848cd7e
SC
19874 }
19875 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19876 int x[] = {25, 17};
19877 const int *foo = &x[0];
19878 ++foo;
19879 }
19880 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19881 typedef const int *iptr;
19882 iptr p = 0;
19883 ++p;
19884 }
19885 { /* AIX XL C 1.02.0.0 rejects this saying
19886 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19887 struct s { int j; const int *ap[3]; };
19888 struct s *b; b->j = 5;
19889 }
19890 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19891 const int foo = 10;
47964710 19892 if (!foo) return 0;
a848cd7e 19893 }
47964710 19894 return !cs[0] && !zero.x;
a848cd7e
SC
19895#endif
19896
19897 ;
19898 return 0;
19899}
19900_ACEOF
19901rm -f conftest.$ac_objext
47964710
VS
19902if { (ac_try="$ac_compile"
19903case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19906esac
d589327a 19907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19908 (eval "$ac_compile") 2>conftest.er1
a848cd7e 19909 ac_status=$?
ac1cb8d3
VS
19910 grep -v '^ *+' conftest.er1 >conftest.err
19911 rm -f conftest.er1
19912 cat conftest.err >&5
d589327a 19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19914 (exit $ac_status); } && {
19915 test -z "$ac_c_werror_flag" ||
19916 test ! -s conftest.err
19917 } && test -s conftest.$ac_objext; then
a848cd7e
SC
19918 ac_cv_c_const=yes
19919else
d589327a 19920 echo "$as_me: failed program was:" >&5
a848cd7e
SC
19921sed 's/^/| /' conftest.$ac_ext >&5
19922
47964710 19923 ac_cv_c_const=no
a848cd7e 19924fi
47964710
VS
19925
19926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19927fi
d589327a
VZ
19928{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19929echo "${ECHO_T}$ac_cv_c_const" >&6; }
a848cd7e
SC
19930if test $ac_cv_c_const = no; then
19931
19932cat >>confdefs.h <<\_ACEOF
d589327a 19933#define const
a848cd7e
SC
19934_ACEOF
19935
19936fi
19937
d589327a
VZ
19938{ echo "$as_me:$LINENO: checking for inline" >&5
19939echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
a848cd7e 19940if test "${ac_cv_c_inline+set}" = set; then
d589327a 19941 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
19942else
19943 ac_cv_c_inline=no
19944for ac_kw in inline __inline__ __inline; do
19945 cat >conftest.$ac_ext <<_ACEOF
19946/* confdefs.h. */
19947_ACEOF
19948cat confdefs.h >>conftest.$ac_ext
19949cat >>conftest.$ac_ext <<_ACEOF
19950/* end confdefs.h. */
19951#ifndef __cplusplus
19952typedef int foo_t;
19953static $ac_kw foo_t static_foo () {return 0; }
19954$ac_kw foo_t foo () {return 0; }
19955#endif
19956
19957_ACEOF
19958rm -f conftest.$ac_objext
47964710
VS
19959if { (ac_try="$ac_compile"
19960case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19963esac
d589327a 19964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 19965 (eval "$ac_compile") 2>conftest.er1
a848cd7e 19966 ac_status=$?
ac1cb8d3
VS
19967 grep -v '^ *+' conftest.er1 >conftest.err
19968 rm -f conftest.er1
19969 cat conftest.err >&5
d589327a 19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
19971 (exit $ac_status); } && {
19972 test -z "$ac_c_werror_flag" ||
19973 test ! -s conftest.err
19974 } && test -s conftest.$ac_objext; then
19975 ac_cv_c_inline=$ac_kw
a848cd7e 19976else
d589327a 19977 echo "$as_me: failed program was:" >&5
a848cd7e
SC
19978sed 's/^/| /' conftest.$ac_ext >&5
19979
47964710 19980
a848cd7e 19981fi
47964710
VS
19982
19983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19984 test "$ac_cv_c_inline" != no && break
a848cd7e
SC
19985done
19986
19987fi
d589327a
VZ
19988{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19989echo "${ECHO_T}$ac_cv_c_inline" >&6; }
ac1cb8d3
VS
19990
19991
a848cd7e
SC
19992case $ac_cv_c_inline in
19993 inline | yes) ;;
ac1cb8d3
VS
19994 *)
19995 case $ac_cv_c_inline in
19996 no) ac_val=;;
19997 *) ac_val=$ac_cv_c_inline;;
19998 esac
19999 cat >>confdefs.h <<_ACEOF
20000#ifndef __cplusplus
20001#define inline $ac_val
20002#endif
de59c161 20003_ACEOF
ac1cb8d3 20004 ;;
a848cd7e
SC
20005esac
20006
20007
d589327a
VZ
20008{ echo "$as_me:$LINENO: checking for short" >&5
20009echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20010if test "${ac_cv_type_short+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20012else
20013 cat >conftest.$ac_ext <<_ACEOF
20014/* confdefs.h. */
20015_ACEOF
20016cat confdefs.h >>conftest.$ac_ext
20017cat >>conftest.$ac_ext <<_ACEOF
20018/* end confdefs.h. */
20019$ac_includes_default
20020typedef short ac__type_new_;
20021int
20022main ()
20023{
20024if ((ac__type_new_ *) 0)
20025 return 0;
20026if (sizeof (ac__type_new_))
20027 return 0;
20028 ;
20029 return 0;
20030}
20031_ACEOF
20032rm -f conftest.$ac_objext
20033if { (ac_try="$ac_compile"
20034case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20037esac
20038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_compile") 2>conftest.er1
20040 ac_status=$?
20041 grep -v '^ *+' conftest.er1 >conftest.err
20042 rm -f conftest.er1
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } && {
20046 test -z "$ac_c_werror_flag" ||
20047 test ! -s conftest.err
20048 } && test -s conftest.$ac_objext; then
20049 ac_cv_type_short=yes
20050else
20051 echo "$as_me: failed program was:" >&5
20052sed 's/^/| /' conftest.$ac_ext >&5
20053
20054 ac_cv_type_short=no
20055fi
20056
20057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20058fi
20059{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20060echo "${ECHO_T}$ac_cv_type_short" >&6; }
20061
47964710
VS
20062# The cast to long int works around a bug in the HP C Compiler
20063# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20064# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20065# This bug is HP SR number 8606223364.
d589327a
VZ
20066{ echo "$as_me:$LINENO: checking size of short" >&5
20067echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
a848cd7e 20068if test "${ac_cv_sizeof_short+set}" = set; then
d589327a 20069 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 20070else
a848cd7e
SC
20071 if test "$cross_compiling" = yes; then
20072 # Depending upon the size, compute the lo and hi bounds.
20073cat >conftest.$ac_ext <<_ACEOF
20074/* confdefs.h. */
20075_ACEOF
20076cat confdefs.h >>conftest.$ac_ext
20077cat >>conftest.$ac_ext <<_ACEOF
20078/* end confdefs.h. */
20079$ac_includes_default
d589327a 20080 typedef short ac__type_sizeof_;
a848cd7e
SC
20081int
20082main ()
20083{
d589327a 20084static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
20085test_array [0] = 0
20086
20087 ;
20088 return 0;
20089}
20090_ACEOF
20091rm -f conftest.$ac_objext
47964710
VS
20092if { (ac_try="$ac_compile"
20093case "(($ac_try" in
20094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20095 *) ac_try_echo=$ac_try;;
20096esac
d589327a 20097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20098 (eval "$ac_compile") 2>conftest.er1
a848cd7e 20099 ac_status=$?
ac1cb8d3
VS
20100 grep -v '^ *+' conftest.er1 >conftest.err
20101 rm -f conftest.er1
20102 cat conftest.err >&5
d589327a 20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20104 (exit $ac_status); } && {
20105 test -z "$ac_c_werror_flag" ||
20106 test ! -s conftest.err
20107 } && test -s conftest.$ac_objext; then
a848cd7e
SC
20108 ac_lo=0 ac_mid=0
20109 while :; do
20110 cat >conftest.$ac_ext <<_ACEOF
20111/* confdefs.h. */
20112_ACEOF
20113cat confdefs.h >>conftest.$ac_ext
20114cat >>conftest.$ac_ext <<_ACEOF
20115/* end confdefs.h. */
20116$ac_includes_default
d589327a 20117 typedef short ac__type_sizeof_;
a848cd7e
SC
20118int
20119main ()
20120{
d589327a 20121static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
20122test_array [0] = 0
20123
20124 ;
20125 return 0;
20126}
20127_ACEOF
20128rm -f conftest.$ac_objext
47964710
VS
20129if { (ac_try="$ac_compile"
20130case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20133esac
d589327a 20134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20135 (eval "$ac_compile") 2>conftest.er1
a848cd7e 20136 ac_status=$?
ac1cb8d3
VS
20137 grep -v '^ *+' conftest.er1 >conftest.err
20138 rm -f conftest.er1
20139 cat conftest.err >&5
d589327a 20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20141 (exit $ac_status); } && {
20142 test -z "$ac_c_werror_flag" ||
20143 test ! -s conftest.err
20144 } && test -s conftest.$ac_objext; then
a848cd7e
SC
20145 ac_hi=$ac_mid; break
20146else
d589327a 20147 echo "$as_me: failed program was:" >&5
a848cd7e
SC
20148sed 's/^/| /' conftest.$ac_ext >&5
20149
47964710
VS
20150 ac_lo=`expr $ac_mid + 1`
20151 if test $ac_lo -le $ac_mid; then
20152 ac_lo= ac_hi=
20153 break
20154 fi
20155 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20156fi
47964710
VS
20157
20158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20159 done
20160else
d589327a 20161 echo "$as_me: failed program was:" >&5
a848cd7e
SC
20162sed 's/^/| /' conftest.$ac_ext >&5
20163
47964710 20164 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
20165/* confdefs.h. */
20166_ACEOF
20167cat confdefs.h >>conftest.$ac_ext
20168cat >>conftest.$ac_ext <<_ACEOF
20169/* end confdefs.h. */
20170$ac_includes_default
d589327a 20171 typedef short ac__type_sizeof_;
a848cd7e
SC
20172int
20173main ()
20174{
d589327a 20175static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
20176test_array [0] = 0
20177
20178 ;
20179 return 0;
20180}
20181_ACEOF
20182rm -f conftest.$ac_objext
47964710
VS
20183if { (ac_try="$ac_compile"
20184case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20187esac
d589327a 20188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20189 (eval "$ac_compile") 2>conftest.er1
a848cd7e 20190 ac_status=$?
ac1cb8d3
VS
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
d589327a 20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20195 (exit $ac_status); } && {
20196 test -z "$ac_c_werror_flag" ||
20197 test ! -s conftest.err
20198 } && test -s conftest.$ac_objext; then
a848cd7e
SC
20199 ac_hi=-1 ac_mid=-1
20200 while :; do
20201 cat >conftest.$ac_ext <<_ACEOF
20202/* confdefs.h. */
20203_ACEOF
20204cat confdefs.h >>conftest.$ac_ext
20205cat >>conftest.$ac_ext <<_ACEOF
20206/* end confdefs.h. */
20207$ac_includes_default
d589327a 20208 typedef short ac__type_sizeof_;
a848cd7e
SC
20209int
20210main ()
20211{
d589327a 20212static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
20213test_array [0] = 0
20214
20215 ;
20216 return 0;
20217}
20218_ACEOF
20219rm -f conftest.$ac_objext
47964710
VS
20220if { (ac_try="$ac_compile"
20221case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224esac
d589327a 20225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20226 (eval "$ac_compile") 2>conftest.er1
a848cd7e 20227 ac_status=$?
ac1cb8d3
VS
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
d589327a 20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20232 (exit $ac_status); } && {
20233 test -z "$ac_c_werror_flag" ||
20234 test ! -s conftest.err
20235 } && test -s conftest.$ac_objext; then
a848cd7e
SC
20236 ac_lo=$ac_mid; break
20237else
d589327a 20238 echo "$as_me: failed program was:" >&5
a848cd7e
SC
20239sed 's/^/| /' conftest.$ac_ext >&5
20240
47964710
VS
20241 ac_hi=`expr '(' $ac_mid ')' - 1`
20242 if test $ac_mid -le $ac_hi; then
20243 ac_lo= ac_hi=
20244 break
20245 fi
20246 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20247fi
47964710
VS
20248
20249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20250 done
20251else
d589327a 20252 echo "$as_me: failed program was:" >&5
a848cd7e
SC
20253sed 's/^/| /' conftest.$ac_ext >&5
20254
47964710 20255 ac_lo= ac_hi=
a848cd7e 20256fi
47964710
VS
20257
20258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20259fi
47964710
VS
20260
20261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20262# Binary search between lo and hi bounds.
20263while test "x$ac_lo" != "x$ac_hi"; do
20264 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20265 cat >conftest.$ac_ext <<_ACEOF
20266/* confdefs.h. */
20267_ACEOF
20268cat confdefs.h >>conftest.$ac_ext
20269cat >>conftest.$ac_ext <<_ACEOF
20270/* end confdefs.h. */
20271$ac_includes_default
d589327a 20272 typedef short ac__type_sizeof_;
a848cd7e
SC
20273int
20274main ()
20275{
d589327a 20276static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
20277test_array [0] = 0
20278
20279 ;
20280 return 0;
20281}
20282_ACEOF
20283rm -f conftest.$ac_objext
47964710
VS
20284if { (ac_try="$ac_compile"
20285case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20288esac
d589327a 20289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20290 (eval "$ac_compile") 2>conftest.er1
a848cd7e 20291 ac_status=$?
ac1cb8d3
VS
20292 grep -v '^ *+' conftest.er1 >conftest.err
20293 rm -f conftest.er1
20294 cat conftest.err >&5
d589327a 20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20296 (exit $ac_status); } && {
20297 test -z "$ac_c_werror_flag" ||
20298 test ! -s conftest.err
20299 } && test -s conftest.$ac_objext; then
a848cd7e
SC
20300 ac_hi=$ac_mid
20301else
d589327a 20302 echo "$as_me: failed program was:" >&5
a848cd7e
SC
20303sed 's/^/| /' conftest.$ac_ext >&5
20304
47964710 20305 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 20306fi
47964710
VS
20307
20308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20309done
20310case $ac_lo in
20311?*) ac_cv_sizeof_short=$ac_lo;;
47964710 20312'') if test "$ac_cv_type_short" = yes; then
d589327a 20313 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
a848cd7e 20314See \`config.log' for more details." >&5
d589327a 20315echo "$as_me: error: cannot compute sizeof (short)
a848cd7e 20316See \`config.log' for more details." >&2;}
d589327a 20317 { (exit 77); exit 77; }; }
47964710
VS
20318 else
20319 ac_cv_sizeof_short=0
20320 fi ;;
a848cd7e 20321esac
a848cd7e
SC
20322else
20323 cat >conftest.$ac_ext <<_ACEOF
20324/* confdefs.h. */
20325_ACEOF
20326cat confdefs.h >>conftest.$ac_ext
20327cat >>conftest.$ac_ext <<_ACEOF
20328/* end confdefs.h. */
20329$ac_includes_default
d589327a
VZ
20330 typedef short ac__type_sizeof_;
20331static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20332static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
20333#include <stdio.h>
20334#include <stdlib.h>
20335int
20336main ()
20337{
20338
20339 FILE *f = fopen ("conftest.val", "w");
20340 if (! f)
47964710 20341 return 1;
d589327a 20342 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 20343 {
47964710 20344 long int i = longval ();
d589327a 20345 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 20346 return 1;
d589327a 20347 fprintf (f, "%ld\n", i);
a848cd7e
SC
20348 }
20349 else
20350 {
47964710 20351 unsigned long int i = ulongval ();
d589327a 20352 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 20353 return 1;
d589327a 20354 fprintf (f, "%lu\n", i);
a848cd7e 20355 }
47964710 20356 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
20357
20358 ;
20359 return 0;
20360}
20361_ACEOF
20362rm -f conftest$ac_exeext
47964710
VS
20363if { (ac_try="$ac_link"
20364case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20367esac
d589327a 20368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20369 (eval "$ac_link") 2>&5
a848cd7e 20370 ac_status=$?
d589327a 20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 20372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
20373 { (case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20376esac
d589327a 20377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20378 (eval "$ac_try") 2>&5
a848cd7e 20379 ac_status=$?
d589327a 20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
20381 (exit $ac_status); }; }; then
20382 ac_cv_sizeof_short=`cat conftest.val`
20383else
d589327a
VZ
20384 echo "$as_me: program exited with status $ac_status" >&5
20385echo "$as_me: failed program was:" >&5
a848cd7e
SC
20386sed 's/^/| /' conftest.$ac_ext >&5
20387
20388( exit $ac_status )
47964710 20389if test "$ac_cv_type_short" = yes; then
d589327a 20390 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
a848cd7e 20391See \`config.log' for more details." >&5
d589327a 20392echo "$as_me: error: cannot compute sizeof (short)
a848cd7e 20393See \`config.log' for more details." >&2;}
d589327a 20394 { (exit 77); exit 77; }; }
47964710
VS
20395 else
20396 ac_cv_sizeof_short=0
20397 fi
a848cd7e 20398fi
47964710 20399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20400fi
20401rm -f conftest.val
bd8a7646 20402fi
d589327a
VZ
20403{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20404echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
47964710
VS
20405
20406
20407
a848cd7e
SC
20408cat >>confdefs.h <<_ACEOF
20409#define SIZEOF_SHORT $ac_cv_sizeof_short
20410_ACEOF
20411
20412
d589327a
VZ
20413{ echo "$as_me:$LINENO: checking for void *" >&5
20414echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20415if test "${ac_cv_type_void_p+set}" = set; then
20416 echo $ECHO_N "(cached) $ECHO_C" >&6
20417else
20418 cat >conftest.$ac_ext <<_ACEOF
20419/* confdefs.h. */
20420_ACEOF
20421cat confdefs.h >>conftest.$ac_ext
20422cat >>conftest.$ac_ext <<_ACEOF
20423/* end confdefs.h. */
20424$ac_includes_default
20425typedef void * ac__type_new_;
20426int
20427main ()
20428{
20429if ((ac__type_new_ *) 0)
20430 return 0;
20431if (sizeof (ac__type_new_))
20432 return 0;
20433 ;
20434 return 0;
20435}
20436_ACEOF
20437rm -f conftest.$ac_objext
20438if { (ac_try="$ac_compile"
20439case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20442esac
20443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_compile") 2>conftest.er1
20445 ac_status=$?
20446 grep -v '^ *+' conftest.er1 >conftest.err
20447 rm -f conftest.er1
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } && {
20451 test -z "$ac_c_werror_flag" ||
20452 test ! -s conftest.err
20453 } && test -s conftest.$ac_objext; then
20454 ac_cv_type_void_p=yes
20455else
20456 echo "$as_me: failed program was:" >&5
20457sed 's/^/| /' conftest.$ac_ext >&5
20458
20459 ac_cv_type_void_p=no
20460fi
20461
20462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20463fi
20464{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20465echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20466
47964710
VS
20467# The cast to long int works around a bug in the HP C Compiler
20468# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20469# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20470# This bug is HP SR number 8606223364.
d589327a
VZ
20471{ echo "$as_me:$LINENO: checking size of void *" >&5
20472echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
a848cd7e 20473if test "${ac_cv_sizeof_void_p+set}" = set; then
d589327a 20474 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 20475else
a848cd7e
SC
20476 if test "$cross_compiling" = yes; then
20477 # Depending upon the size, compute the lo and hi bounds.
20478cat >conftest.$ac_ext <<_ACEOF
20479/* confdefs.h. */
20480_ACEOF
20481cat confdefs.h >>conftest.$ac_ext
20482cat >>conftest.$ac_ext <<_ACEOF
20483/* end confdefs.h. */
20484$ac_includes_default
d589327a 20485 typedef void * ac__type_sizeof_;
a848cd7e
SC
20486int
20487main ()
20488{
d589327a 20489static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
20490test_array [0] = 0
20491
20492 ;
20493 return 0;
20494}
20495_ACEOF
20496rm -f conftest.$ac_objext
47964710
VS
20497if { (ac_try="$ac_compile"
20498case "(($ac_try" in
20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500 *) ac_try_echo=$ac_try;;
20501esac
d589327a 20502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20503 (eval "$ac_compile") 2>conftest.er1
a848cd7e 20504 ac_status=$?
ac1cb8d3
VS
20505 grep -v '^ *+' conftest.er1 >conftest.err
20506 rm -f conftest.er1
20507 cat conftest.err >&5
d589327a 20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20509 (exit $ac_status); } && {
20510 test -z "$ac_c_werror_flag" ||
20511 test ! -s conftest.err
20512 } && test -s conftest.$ac_objext; then
a848cd7e
SC
20513 ac_lo=0 ac_mid=0
20514 while :; do
20515 cat >conftest.$ac_ext <<_ACEOF
20516/* confdefs.h. */
20517_ACEOF
20518cat confdefs.h >>conftest.$ac_ext
20519cat >>conftest.$ac_ext <<_ACEOF
20520/* end confdefs.h. */
20521$ac_includes_default
d589327a 20522 typedef void * ac__type_sizeof_;
a848cd7e
SC
20523int
20524main ()
20525{
d589327a 20526static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
20527test_array [0] = 0
20528
20529 ;
20530 return 0;
20531}
20532_ACEOF
20533rm -f conftest.$ac_objext
47964710
VS
20534if { (ac_try="$ac_compile"
20535case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538esac
d589327a 20539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20540 (eval "$ac_compile") 2>conftest.er1
a848cd7e 20541 ac_status=$?
ac1cb8d3
VS
20542 grep -v '^ *+' conftest.er1 >conftest.err
20543 rm -f conftest.er1
20544 cat conftest.err >&5
d589327a 20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20546 (exit $ac_status); } && {
20547 test -z "$ac_c_werror_flag" ||
20548 test ! -s conftest.err
20549 } && test -s conftest.$ac_objext; then
a848cd7e
SC
20550 ac_hi=$ac_mid; break
20551else
d589327a 20552 echo "$as_me: failed program was:" >&5
a848cd7e
SC
20553sed 's/^/| /' conftest.$ac_ext >&5
20554
47964710
VS
20555 ac_lo=`expr $ac_mid + 1`
20556 if test $ac_lo -le $ac_mid; then
20557 ac_lo= ac_hi=
20558 break
20559 fi
20560 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20561fi
47964710
VS
20562
20563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20564 done
20565else
d589327a 20566 echo "$as_me: failed program was:" >&5
a848cd7e
SC
20567sed 's/^/| /' conftest.$ac_ext >&5
20568
47964710 20569 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
20570/* confdefs.h. */
20571_ACEOF
20572cat confdefs.h >>conftest.$ac_ext
20573cat >>conftest.$ac_ext <<_ACEOF
20574/* end confdefs.h. */
20575$ac_includes_default
d589327a 20576 typedef void * ac__type_sizeof_;
a848cd7e
SC
20577int
20578main ()
20579{
d589327a 20580static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
20581test_array [0] = 0
20582
20583 ;
20584 return 0;
20585}
20586_ACEOF
20587rm -f conftest.$ac_objext
47964710
VS
20588if { (ac_try="$ac_compile"
20589case "(($ac_try" in
20590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591 *) ac_try_echo=$ac_try;;
20592esac
d589327a 20593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20594 (eval "$ac_compile") 2>conftest.er1
a848cd7e 20595 ac_status=$?
ac1cb8d3
VS
20596 grep -v '^ *+' conftest.er1 >conftest.err
20597 rm -f conftest.er1
20598 cat conftest.err >&5
d589327a 20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20600 (exit $ac_status); } && {
20601 test -z "$ac_c_werror_flag" ||
20602 test ! -s conftest.err
20603 } && test -s conftest.$ac_objext; then
a848cd7e
SC
20604 ac_hi=-1 ac_mid=-1
20605 while :; do
20606 cat >conftest.$ac_ext <<_ACEOF
20607/* confdefs.h. */
20608_ACEOF
20609cat confdefs.h >>conftest.$ac_ext
20610cat >>conftest.$ac_ext <<_ACEOF
20611/* end confdefs.h. */
20612$ac_includes_default
d589327a 20613 typedef void * ac__type_sizeof_;
a848cd7e
SC
20614int
20615main ()
20616{
d589327a 20617static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
20618test_array [0] = 0
20619
20620 ;
20621 return 0;
20622}
20623_ACEOF
20624rm -f conftest.$ac_objext
47964710
VS
20625if { (ac_try="$ac_compile"
20626case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20629esac
d589327a 20630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20631 (eval "$ac_compile") 2>conftest.er1
a848cd7e 20632 ac_status=$?
ac1cb8d3
VS
20633 grep -v '^ *+' conftest.er1 >conftest.err
20634 rm -f conftest.er1
20635 cat conftest.err >&5
d589327a 20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20637 (exit $ac_status); } && {
20638 test -z "$ac_c_werror_flag" ||
20639 test ! -s conftest.err
20640 } && test -s conftest.$ac_objext; then
a848cd7e
SC
20641 ac_lo=$ac_mid; break
20642else
d589327a 20643 echo "$as_me: failed program was:" >&5
a848cd7e
SC
20644sed 's/^/| /' conftest.$ac_ext >&5
20645
47964710
VS
20646 ac_hi=`expr '(' $ac_mid ')' - 1`
20647 if test $ac_mid -le $ac_hi; then
20648 ac_lo= ac_hi=
20649 break
20650 fi
20651 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20652fi
47964710
VS
20653
20654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20655 done
20656else
d589327a 20657 echo "$as_me: failed program was:" >&5
a848cd7e
SC
20658sed 's/^/| /' conftest.$ac_ext >&5
20659
47964710 20660 ac_lo= ac_hi=
a848cd7e 20661fi
47964710
VS
20662
20663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20664fi
47964710
VS
20665
20666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20667# Binary search between lo and hi bounds.
20668while test "x$ac_lo" != "x$ac_hi"; do
20669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20670 cat >conftest.$ac_ext <<_ACEOF
20671/* confdefs.h. */
20672_ACEOF
20673cat confdefs.h >>conftest.$ac_ext
20674cat >>conftest.$ac_ext <<_ACEOF
20675/* end confdefs.h. */
20676$ac_includes_default
d589327a 20677 typedef void * ac__type_sizeof_;
a848cd7e
SC
20678int
20679main ()
20680{
d589327a 20681static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
20682test_array [0] = 0
20683
20684 ;
20685 return 0;
20686}
20687_ACEOF
20688rm -f conftest.$ac_objext
47964710
VS
20689if { (ac_try="$ac_compile"
20690case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20693esac
d589327a 20694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20695 (eval "$ac_compile") 2>conftest.er1
a848cd7e 20696 ac_status=$?
ac1cb8d3
VS
20697 grep -v '^ *+' conftest.er1 >conftest.err
20698 rm -f conftest.er1
20699 cat conftest.err >&5
d589327a 20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20701 (exit $ac_status); } && {
20702 test -z "$ac_c_werror_flag" ||
20703 test ! -s conftest.err
20704 } && test -s conftest.$ac_objext; then
a848cd7e
SC
20705 ac_hi=$ac_mid
20706else
d589327a 20707 echo "$as_me: failed program was:" >&5
a848cd7e
SC
20708sed 's/^/| /' conftest.$ac_ext >&5
20709
47964710 20710 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 20711fi
47964710
VS
20712
20713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20714done
20715case $ac_lo in
20716?*) ac_cv_sizeof_void_p=$ac_lo;;
47964710 20717'') if test "$ac_cv_type_void_p" = yes; then
d589327a 20718 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
a848cd7e 20719See \`config.log' for more details." >&5
d589327a 20720echo "$as_me: error: cannot compute sizeof (void *)
a848cd7e 20721See \`config.log' for more details." >&2;}
d589327a 20722 { (exit 77); exit 77; }; }
47964710
VS
20723 else
20724 ac_cv_sizeof_void_p=0
20725 fi ;;
a848cd7e 20726esac
a848cd7e
SC
20727else
20728 cat >conftest.$ac_ext <<_ACEOF
20729/* confdefs.h. */
20730_ACEOF
20731cat confdefs.h >>conftest.$ac_ext
20732cat >>conftest.$ac_ext <<_ACEOF
20733/* end confdefs.h. */
20734$ac_includes_default
d589327a
VZ
20735 typedef void * ac__type_sizeof_;
20736static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20737static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
20738#include <stdio.h>
20739#include <stdlib.h>
20740int
20741main ()
20742{
20743
20744 FILE *f = fopen ("conftest.val", "w");
20745 if (! f)
47964710 20746 return 1;
d589327a 20747 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 20748 {
47964710 20749 long int i = longval ();
d589327a 20750 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 20751 return 1;
d589327a 20752 fprintf (f, "%ld\n", i);
a848cd7e
SC
20753 }
20754 else
20755 {
47964710 20756 unsigned long int i = ulongval ();
d589327a 20757 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 20758 return 1;
d589327a 20759 fprintf (f, "%lu\n", i);
a848cd7e 20760 }
47964710 20761 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
20762
20763 ;
20764 return 0;
20765}
20766_ACEOF
20767rm -f conftest$ac_exeext
47964710
VS
20768if { (ac_try="$ac_link"
20769case "(($ac_try" in
20770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771 *) ac_try_echo=$ac_try;;
20772esac
d589327a 20773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20774 (eval "$ac_link") 2>&5
a848cd7e 20775 ac_status=$?
d589327a 20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 20777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
20778 { (case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20781esac
d589327a 20782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20783 (eval "$ac_try") 2>&5
a848cd7e 20784 ac_status=$?
d589327a 20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
20786 (exit $ac_status); }; }; then
20787 ac_cv_sizeof_void_p=`cat conftest.val`
20788else
d589327a
VZ
20789 echo "$as_me: program exited with status $ac_status" >&5
20790echo "$as_me: failed program was:" >&5
a848cd7e
SC
20791sed 's/^/| /' conftest.$ac_ext >&5
20792
20793( exit $ac_status )
47964710 20794if test "$ac_cv_type_void_p" = yes; then
d589327a 20795 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
a848cd7e 20796See \`config.log' for more details." >&5
d589327a 20797echo "$as_me: error: cannot compute sizeof (void *)
a848cd7e 20798See \`config.log' for more details." >&2;}
d589327a 20799 { (exit 77); exit 77; }; }
47964710
VS
20800 else
20801 ac_cv_sizeof_void_p=0
20802 fi
a848cd7e 20803fi
47964710 20804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20805fi
20806rm -f conftest.val
bd8a7646 20807fi
d589327a
VZ
20808{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20809echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
47964710
VS
20810
20811
20812
a848cd7e
SC
20813cat >>confdefs.h <<_ACEOF
20814#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20815_ACEOF
20816
20817
d589327a
VZ
20818{ echo "$as_me:$LINENO: checking for int" >&5
20819echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20820if test "${ac_cv_type_int+set}" = set; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20822else
20823 cat >conftest.$ac_ext <<_ACEOF
20824/* confdefs.h. */
20825_ACEOF
20826cat confdefs.h >>conftest.$ac_ext
20827cat >>conftest.$ac_ext <<_ACEOF
20828/* end confdefs.h. */
20829$ac_includes_default
20830typedef int ac__type_new_;
20831int
20832main ()
20833{
20834if ((ac__type_new_ *) 0)
20835 return 0;
20836if (sizeof (ac__type_new_))
20837 return 0;
20838 ;
20839 return 0;
20840}
20841_ACEOF
20842rm -f conftest.$ac_objext
20843if { (ac_try="$ac_compile"
20844case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20847esac
20848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_compile") 2>conftest.er1
20850 ac_status=$?
20851 grep -v '^ *+' conftest.er1 >conftest.err
20852 rm -f conftest.er1
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } && {
20856 test -z "$ac_c_werror_flag" ||
20857 test ! -s conftest.err
20858 } && test -s conftest.$ac_objext; then
20859 ac_cv_type_int=yes
20860else
20861 echo "$as_me: failed program was:" >&5
20862sed 's/^/| /' conftest.$ac_ext >&5
20863
20864 ac_cv_type_int=no
20865fi
20866
20867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20868fi
20869{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20870echo "${ECHO_T}$ac_cv_type_int" >&6; }
20871
47964710
VS
20872# The cast to long int works around a bug in the HP C Compiler
20873# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20874# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20875# This bug is HP SR number 8606223364.
d589327a
VZ
20876{ echo "$as_me:$LINENO: checking size of int" >&5
20877echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
a848cd7e 20878if test "${ac_cv_sizeof_int+set}" = set; then
d589327a 20879 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 20880else
a848cd7e
SC
20881 if test "$cross_compiling" = yes; then
20882 # Depending upon the size, compute the lo and hi bounds.
20883cat >conftest.$ac_ext <<_ACEOF
20884/* confdefs.h. */
20885_ACEOF
20886cat confdefs.h >>conftest.$ac_ext
20887cat >>conftest.$ac_ext <<_ACEOF
20888/* end confdefs.h. */
20889$ac_includes_default
d589327a 20890 typedef int ac__type_sizeof_;
a848cd7e
SC
20891int
20892main ()
20893{
d589327a 20894static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
20895test_array [0] = 0
20896
20897 ;
20898 return 0;
20899}
20900_ACEOF
20901rm -f conftest.$ac_objext
47964710
VS
20902if { (ac_try="$ac_compile"
20903case "(($ac_try" in
20904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905 *) ac_try_echo=$ac_try;;
20906esac
d589327a 20907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20908 (eval "$ac_compile") 2>conftest.er1
a848cd7e 20909 ac_status=$?
ac1cb8d3
VS
20910 grep -v '^ *+' conftest.er1 >conftest.err
20911 rm -f conftest.er1
20912 cat conftest.err >&5
d589327a 20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20914 (exit $ac_status); } && {
20915 test -z "$ac_c_werror_flag" ||
20916 test ! -s conftest.err
20917 } && test -s conftest.$ac_objext; then
a848cd7e
SC
20918 ac_lo=0 ac_mid=0
20919 while :; do
20920 cat >conftest.$ac_ext <<_ACEOF
20921/* confdefs.h. */
20922_ACEOF
20923cat confdefs.h >>conftest.$ac_ext
20924cat >>conftest.$ac_ext <<_ACEOF
20925/* end confdefs.h. */
20926$ac_includes_default
d589327a 20927 typedef int ac__type_sizeof_;
a848cd7e
SC
20928int
20929main ()
20930{
d589327a 20931static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
20932test_array [0] = 0
20933
20934 ;
20935 return 0;
20936}
20937_ACEOF
20938rm -f conftest.$ac_objext
47964710
VS
20939if { (ac_try="$ac_compile"
20940case "(($ac_try" in
20941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942 *) ac_try_echo=$ac_try;;
20943esac
d589327a 20944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20945 (eval "$ac_compile") 2>conftest.er1
a848cd7e 20946 ac_status=$?
ac1cb8d3
VS
20947 grep -v '^ *+' conftest.er1 >conftest.err
20948 rm -f conftest.er1
20949 cat conftest.err >&5
d589327a 20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
20951 (exit $ac_status); } && {
20952 test -z "$ac_c_werror_flag" ||
20953 test ! -s conftest.err
20954 } && test -s conftest.$ac_objext; then
a848cd7e
SC
20955 ac_hi=$ac_mid; break
20956else
d589327a 20957 echo "$as_me: failed program was:" >&5
a848cd7e
SC
20958sed 's/^/| /' conftest.$ac_ext >&5
20959
47964710
VS
20960 ac_lo=`expr $ac_mid + 1`
20961 if test $ac_lo -le $ac_mid; then
20962 ac_lo= ac_hi=
20963 break
20964 fi
20965 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20966fi
47964710
VS
20967
20968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20969 done
20970else
d589327a 20971 echo "$as_me: failed program was:" >&5
a848cd7e
SC
20972sed 's/^/| /' conftest.$ac_ext >&5
20973
47964710 20974 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
20975/* confdefs.h. */
20976_ACEOF
20977cat confdefs.h >>conftest.$ac_ext
20978cat >>conftest.$ac_ext <<_ACEOF
20979/* end confdefs.h. */
20980$ac_includes_default
d589327a 20981 typedef int ac__type_sizeof_;
a848cd7e
SC
20982int
20983main ()
20984{
d589327a 20985static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
20986test_array [0] = 0
20987
20988 ;
20989 return 0;
20990}
20991_ACEOF
20992rm -f conftest.$ac_objext
47964710
VS
20993if { (ac_try="$ac_compile"
20994case "(($ac_try" in
20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996 *) ac_try_echo=$ac_try;;
20997esac
d589327a 20998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 20999 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21000 ac_status=$?
ac1cb8d3
VS
21001 grep -v '^ *+' conftest.er1 >conftest.err
21002 rm -f conftest.er1
21003 cat conftest.err >&5
d589327a 21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21005 (exit $ac_status); } && {
21006 test -z "$ac_c_werror_flag" ||
21007 test ! -s conftest.err
21008 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21009 ac_hi=-1 ac_mid=-1
21010 while :; do
21011 cat >conftest.$ac_ext <<_ACEOF
21012/* confdefs.h. */
21013_ACEOF
21014cat confdefs.h >>conftest.$ac_ext
21015cat >>conftest.$ac_ext <<_ACEOF
21016/* end confdefs.h. */
21017$ac_includes_default
d589327a 21018 typedef int ac__type_sizeof_;
a848cd7e
SC
21019int
21020main ()
21021{
d589327a 21022static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
21023test_array [0] = 0
21024
21025 ;
21026 return 0;
21027}
21028_ACEOF
21029rm -f conftest.$ac_objext
47964710
VS
21030if { (ac_try="$ac_compile"
21031case "(($ac_try" in
21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033 *) ac_try_echo=$ac_try;;
21034esac
d589327a 21035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21036 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21037 ac_status=$?
ac1cb8d3
VS
21038 grep -v '^ *+' conftest.er1 >conftest.err
21039 rm -f conftest.er1
21040 cat conftest.err >&5
d589327a 21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21042 (exit $ac_status); } && {
21043 test -z "$ac_c_werror_flag" ||
21044 test ! -s conftest.err
21045 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21046 ac_lo=$ac_mid; break
21047else
d589327a 21048 echo "$as_me: failed program was:" >&5
a848cd7e
SC
21049sed 's/^/| /' conftest.$ac_ext >&5
21050
47964710
VS
21051 ac_hi=`expr '(' $ac_mid ')' - 1`
21052 if test $ac_mid -le $ac_hi; then
21053 ac_lo= ac_hi=
21054 break
21055 fi
21056 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21057fi
47964710
VS
21058
21059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21060 done
21061else
d589327a 21062 echo "$as_me: failed program was:" >&5
a848cd7e
SC
21063sed 's/^/| /' conftest.$ac_ext >&5
21064
47964710 21065 ac_lo= ac_hi=
a848cd7e 21066fi
47964710
VS
21067
21068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21069fi
47964710
VS
21070
21071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21072# Binary search between lo and hi bounds.
21073while test "x$ac_lo" != "x$ac_hi"; do
21074 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21075 cat >conftest.$ac_ext <<_ACEOF
21076/* confdefs.h. */
21077_ACEOF
21078cat confdefs.h >>conftest.$ac_ext
21079cat >>conftest.$ac_ext <<_ACEOF
21080/* end confdefs.h. */
21081$ac_includes_default
d589327a 21082 typedef int ac__type_sizeof_;
a848cd7e
SC
21083int
21084main ()
21085{
d589327a 21086static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
21087test_array [0] = 0
21088
21089 ;
21090 return 0;
21091}
21092_ACEOF
21093rm -f conftest.$ac_objext
47964710
VS
21094if { (ac_try="$ac_compile"
21095case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21098esac
d589327a 21099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21100 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21101 ac_status=$?
ac1cb8d3
VS
21102 grep -v '^ *+' conftest.er1 >conftest.err
21103 rm -f conftest.er1
21104 cat conftest.err >&5
d589327a 21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21106 (exit $ac_status); } && {
21107 test -z "$ac_c_werror_flag" ||
21108 test ! -s conftest.err
21109 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21110 ac_hi=$ac_mid
21111else
d589327a 21112 echo "$as_me: failed program was:" >&5
a848cd7e
SC
21113sed 's/^/| /' conftest.$ac_ext >&5
21114
47964710 21115 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 21116fi
47964710
VS
21117
21118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21119done
21120case $ac_lo in
21121?*) ac_cv_sizeof_int=$ac_lo;;
47964710 21122'') if test "$ac_cv_type_int" = yes; then
d589327a 21123 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
a848cd7e 21124See \`config.log' for more details." >&5
d589327a 21125echo "$as_me: error: cannot compute sizeof (int)
a848cd7e 21126See \`config.log' for more details." >&2;}
d589327a 21127 { (exit 77); exit 77; }; }
47964710
VS
21128 else
21129 ac_cv_sizeof_int=0
21130 fi ;;
a848cd7e 21131esac
a848cd7e
SC
21132else
21133 cat >conftest.$ac_ext <<_ACEOF
21134/* confdefs.h. */
21135_ACEOF
21136cat confdefs.h >>conftest.$ac_ext
21137cat >>conftest.$ac_ext <<_ACEOF
21138/* end confdefs.h. */
21139$ac_includes_default
d589327a
VZ
21140 typedef int ac__type_sizeof_;
21141static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21142static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
21143#include <stdio.h>
21144#include <stdlib.h>
21145int
21146main ()
21147{
21148
21149 FILE *f = fopen ("conftest.val", "w");
21150 if (! f)
47964710 21151 return 1;
d589327a 21152 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 21153 {
47964710 21154 long int i = longval ();
d589327a 21155 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 21156 return 1;
d589327a 21157 fprintf (f, "%ld\n", i);
a848cd7e
SC
21158 }
21159 else
21160 {
47964710 21161 unsigned long int i = ulongval ();
d589327a 21162 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 21163 return 1;
d589327a 21164 fprintf (f, "%lu\n", i);
a848cd7e 21165 }
47964710 21166 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
21167
21168 ;
21169 return 0;
21170}
21171_ACEOF
21172rm -f conftest$ac_exeext
47964710
VS
21173if { (ac_try="$ac_link"
21174case "(($ac_try" in
21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176 *) ac_try_echo=$ac_try;;
21177esac
d589327a 21178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21179 (eval "$ac_link") 2>&5
a848cd7e 21180 ac_status=$?
d589327a 21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 21182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
21183 { (case "(($ac_try" in
21184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185 *) ac_try_echo=$ac_try;;
21186esac
d589327a 21187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21188 (eval "$ac_try") 2>&5
a848cd7e 21189 ac_status=$?
d589327a 21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
21191 (exit $ac_status); }; }; then
21192 ac_cv_sizeof_int=`cat conftest.val`
21193else
d589327a
VZ
21194 echo "$as_me: program exited with status $ac_status" >&5
21195echo "$as_me: failed program was:" >&5
a848cd7e
SC
21196sed 's/^/| /' conftest.$ac_ext >&5
21197
21198( exit $ac_status )
47964710 21199if test "$ac_cv_type_int" = yes; then
d589327a 21200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
a848cd7e 21201See \`config.log' for more details." >&5
d589327a 21202echo "$as_me: error: cannot compute sizeof (int)
a848cd7e 21203See \`config.log' for more details." >&2;}
d589327a 21204 { (exit 77); exit 77; }; }
47964710
VS
21205 else
21206 ac_cv_sizeof_int=0
21207 fi
a848cd7e 21208fi
47964710 21209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21210fi
21211rm -f conftest.val
4db03d26 21212fi
d589327a
VZ
21213{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21214echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
47964710
VS
21215
21216
21217
a848cd7e
SC
21218cat >>confdefs.h <<_ACEOF
21219#define SIZEOF_INT $ac_cv_sizeof_int
21220_ACEOF
21221
21222
d589327a
VZ
21223{ echo "$as_me:$LINENO: checking for long" >&5
21224echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21225if test "${ac_cv_type_long+set}" = set; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
21227else
21228 cat >conftest.$ac_ext <<_ACEOF
21229/* confdefs.h. */
21230_ACEOF
21231cat confdefs.h >>conftest.$ac_ext
21232cat >>conftest.$ac_ext <<_ACEOF
21233/* end confdefs.h. */
21234$ac_includes_default
21235typedef long ac__type_new_;
21236int
21237main ()
21238{
21239if ((ac__type_new_ *) 0)
21240 return 0;
21241if (sizeof (ac__type_new_))
21242 return 0;
21243 ;
21244 return 0;
21245}
21246_ACEOF
21247rm -f conftest.$ac_objext
21248if { (ac_try="$ac_compile"
21249case "(($ac_try" in
21250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251 *) ac_try_echo=$ac_try;;
21252esac
21253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254 (eval "$ac_compile") 2>conftest.er1
21255 ac_status=$?
21256 grep -v '^ *+' conftest.er1 >conftest.err
21257 rm -f conftest.er1
21258 cat conftest.err >&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } && {
21261 test -z "$ac_c_werror_flag" ||
21262 test ! -s conftest.err
21263 } && test -s conftest.$ac_objext; then
21264 ac_cv_type_long=yes
21265else
21266 echo "$as_me: failed program was:" >&5
21267sed 's/^/| /' conftest.$ac_ext >&5
21268
21269 ac_cv_type_long=no
21270fi
21271
21272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21273fi
21274{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21275echo "${ECHO_T}$ac_cv_type_long" >&6; }
21276
47964710
VS
21277# The cast to long int works around a bug in the HP C Compiler
21278# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21279# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21280# This bug is HP SR number 8606223364.
d589327a
VZ
21281{ echo "$as_me:$LINENO: checking size of long" >&5
21282echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
a848cd7e 21283if test "${ac_cv_sizeof_long+set}" = set; then
d589327a 21284 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 21285else
a848cd7e
SC
21286 if test "$cross_compiling" = yes; then
21287 # Depending upon the size, compute the lo and hi bounds.
21288cat >conftest.$ac_ext <<_ACEOF
21289/* confdefs.h. */
21290_ACEOF
21291cat confdefs.h >>conftest.$ac_ext
21292cat >>conftest.$ac_ext <<_ACEOF
21293/* end confdefs.h. */
21294$ac_includes_default
d589327a 21295 typedef long ac__type_sizeof_;
a848cd7e
SC
21296int
21297main ()
21298{
d589327a 21299static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
21300test_array [0] = 0
21301
21302 ;
21303 return 0;
21304}
21305_ACEOF
21306rm -f conftest.$ac_objext
47964710
VS
21307if { (ac_try="$ac_compile"
21308case "(($ac_try" in
21309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310 *) ac_try_echo=$ac_try;;
21311esac
d589327a 21312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21313 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21314 ac_status=$?
ac1cb8d3
VS
21315 grep -v '^ *+' conftest.er1 >conftest.err
21316 rm -f conftest.er1
21317 cat conftest.err >&5
d589327a 21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21319 (exit $ac_status); } && {
21320 test -z "$ac_c_werror_flag" ||
21321 test ! -s conftest.err
21322 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21323 ac_lo=0 ac_mid=0
21324 while :; do
21325 cat >conftest.$ac_ext <<_ACEOF
21326/* confdefs.h. */
21327_ACEOF
21328cat confdefs.h >>conftest.$ac_ext
21329cat >>conftest.$ac_ext <<_ACEOF
21330/* end confdefs.h. */
21331$ac_includes_default
d589327a 21332 typedef long ac__type_sizeof_;
a848cd7e
SC
21333int
21334main ()
21335{
d589327a 21336static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
21337test_array [0] = 0
21338
21339 ;
21340 return 0;
21341}
21342_ACEOF
21343rm -f conftest.$ac_objext
47964710
VS
21344if { (ac_try="$ac_compile"
21345case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21348esac
d589327a 21349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21350 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21351 ac_status=$?
ac1cb8d3
VS
21352 grep -v '^ *+' conftest.er1 >conftest.err
21353 rm -f conftest.er1
21354 cat conftest.err >&5
d589327a 21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21356 (exit $ac_status); } && {
21357 test -z "$ac_c_werror_flag" ||
21358 test ! -s conftest.err
21359 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21360 ac_hi=$ac_mid; break
21361else
d589327a 21362 echo "$as_me: failed program was:" >&5
a848cd7e
SC
21363sed 's/^/| /' conftest.$ac_ext >&5
21364
47964710
VS
21365 ac_lo=`expr $ac_mid + 1`
21366 if test $ac_lo -le $ac_mid; then
21367 ac_lo= ac_hi=
21368 break
21369 fi
21370 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21371fi
47964710
VS
21372
21373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21374 done
21375else
d589327a 21376 echo "$as_me: failed program was:" >&5
a848cd7e
SC
21377sed 's/^/| /' conftest.$ac_ext >&5
21378
47964710 21379 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
21380/* confdefs.h. */
21381_ACEOF
21382cat confdefs.h >>conftest.$ac_ext
21383cat >>conftest.$ac_ext <<_ACEOF
21384/* end confdefs.h. */
21385$ac_includes_default
d589327a 21386 typedef long ac__type_sizeof_;
a848cd7e
SC
21387int
21388main ()
21389{
d589327a 21390static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
21391test_array [0] = 0
21392
21393 ;
21394 return 0;
21395}
21396_ACEOF
21397rm -f conftest.$ac_objext
47964710
VS
21398if { (ac_try="$ac_compile"
21399case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21402esac
d589327a 21403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21404 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21405 ac_status=$?
ac1cb8d3
VS
21406 grep -v '^ *+' conftest.er1 >conftest.err
21407 rm -f conftest.er1
21408 cat conftest.err >&5
d589327a 21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21410 (exit $ac_status); } && {
21411 test -z "$ac_c_werror_flag" ||
21412 test ! -s conftest.err
21413 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21414 ac_hi=-1 ac_mid=-1
21415 while :; do
21416 cat >conftest.$ac_ext <<_ACEOF
21417/* confdefs.h. */
21418_ACEOF
21419cat confdefs.h >>conftest.$ac_ext
21420cat >>conftest.$ac_ext <<_ACEOF
21421/* end confdefs.h. */
21422$ac_includes_default
d589327a 21423 typedef long ac__type_sizeof_;
a848cd7e
SC
21424int
21425main ()
21426{
d589327a 21427static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
21428test_array [0] = 0
21429
21430 ;
21431 return 0;
21432}
21433_ACEOF
21434rm -f conftest.$ac_objext
47964710
VS
21435if { (ac_try="$ac_compile"
21436case "(($ac_try" in
21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21439esac
d589327a 21440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21441 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21442 ac_status=$?
ac1cb8d3
VS
21443 grep -v '^ *+' conftest.er1 >conftest.err
21444 rm -f conftest.er1
21445 cat conftest.err >&5
d589327a 21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21447 (exit $ac_status); } && {
21448 test -z "$ac_c_werror_flag" ||
21449 test ! -s conftest.err
21450 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21451 ac_lo=$ac_mid; break
21452else
d589327a 21453 echo "$as_me: failed program was:" >&5
a848cd7e
SC
21454sed 's/^/| /' conftest.$ac_ext >&5
21455
47964710
VS
21456 ac_hi=`expr '(' $ac_mid ')' - 1`
21457 if test $ac_mid -le $ac_hi; then
21458 ac_lo= ac_hi=
21459 break
21460 fi
21461 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21462fi
47964710
VS
21463
21464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21465 done
21466else
d589327a 21467 echo "$as_me: failed program was:" >&5
a848cd7e
SC
21468sed 's/^/| /' conftest.$ac_ext >&5
21469
47964710 21470 ac_lo= ac_hi=
a848cd7e 21471fi
47964710
VS
21472
21473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21474fi
47964710
VS
21475
21476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21477# Binary search between lo and hi bounds.
21478while test "x$ac_lo" != "x$ac_hi"; do
21479 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21480 cat >conftest.$ac_ext <<_ACEOF
21481/* confdefs.h. */
21482_ACEOF
21483cat confdefs.h >>conftest.$ac_ext
21484cat >>conftest.$ac_ext <<_ACEOF
21485/* end confdefs.h. */
21486$ac_includes_default
d589327a 21487 typedef long ac__type_sizeof_;
a848cd7e
SC
21488int
21489main ()
21490{
d589327a 21491static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
21492test_array [0] = 0
21493
21494 ;
21495 return 0;
21496}
21497_ACEOF
21498rm -f conftest.$ac_objext
47964710
VS
21499if { (ac_try="$ac_compile"
21500case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21503esac
d589327a 21504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21505 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21506 ac_status=$?
ac1cb8d3
VS
21507 grep -v '^ *+' conftest.er1 >conftest.err
21508 rm -f conftest.er1
21509 cat conftest.err >&5
d589327a 21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21511 (exit $ac_status); } && {
21512 test -z "$ac_c_werror_flag" ||
21513 test ! -s conftest.err
21514 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21515 ac_hi=$ac_mid
21516else
d589327a 21517 echo "$as_me: failed program was:" >&5
a848cd7e
SC
21518sed 's/^/| /' conftest.$ac_ext >&5
21519
47964710 21520 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 21521fi
47964710
VS
21522
21523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21524done
21525case $ac_lo in
21526?*) ac_cv_sizeof_long=$ac_lo;;
47964710 21527'') if test "$ac_cv_type_long" = yes; then
d589327a 21528 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
a848cd7e 21529See \`config.log' for more details." >&5
d589327a 21530echo "$as_me: error: cannot compute sizeof (long)
a848cd7e 21531See \`config.log' for more details." >&2;}
d589327a 21532 { (exit 77); exit 77; }; }
47964710
VS
21533 else
21534 ac_cv_sizeof_long=0
21535 fi ;;
a848cd7e 21536esac
a848cd7e
SC
21537else
21538 cat >conftest.$ac_ext <<_ACEOF
21539/* confdefs.h. */
21540_ACEOF
21541cat confdefs.h >>conftest.$ac_ext
21542cat >>conftest.$ac_ext <<_ACEOF
21543/* end confdefs.h. */
21544$ac_includes_default
d589327a
VZ
21545 typedef long ac__type_sizeof_;
21546static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21547static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
21548#include <stdio.h>
21549#include <stdlib.h>
21550int
21551main ()
21552{
21553
21554 FILE *f = fopen ("conftest.val", "w");
21555 if (! f)
47964710 21556 return 1;
d589327a 21557 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 21558 {
47964710 21559 long int i = longval ();
d589327a 21560 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 21561 return 1;
d589327a 21562 fprintf (f, "%ld\n", i);
a848cd7e
SC
21563 }
21564 else
21565 {
47964710 21566 unsigned long int i = ulongval ();
d589327a 21567 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 21568 return 1;
d589327a 21569 fprintf (f, "%lu\n", i);
a848cd7e 21570 }
47964710 21571 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
21572
21573 ;
21574 return 0;
21575}
21576_ACEOF
21577rm -f conftest$ac_exeext
47964710
VS
21578if { (ac_try="$ac_link"
21579case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21582esac
d589327a 21583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21584 (eval "$ac_link") 2>&5
a848cd7e 21585 ac_status=$?
d589327a 21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 21587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
21588 { (case "(($ac_try" in
21589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590 *) ac_try_echo=$ac_try;;
21591esac
d589327a 21592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21593 (eval "$ac_try") 2>&5
a848cd7e 21594 ac_status=$?
d589327a 21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
21596 (exit $ac_status); }; }; then
21597 ac_cv_sizeof_long=`cat conftest.val`
21598else
d589327a
VZ
21599 echo "$as_me: program exited with status $ac_status" >&5
21600echo "$as_me: failed program was:" >&5
a848cd7e
SC
21601sed 's/^/| /' conftest.$ac_ext >&5
21602
21603( exit $ac_status )
47964710 21604if test "$ac_cv_type_long" = yes; then
d589327a 21605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
a848cd7e 21606See \`config.log' for more details." >&5
d589327a 21607echo "$as_me: error: cannot compute sizeof (long)
a848cd7e 21608See \`config.log' for more details." >&2;}
d589327a 21609 { (exit 77); exit 77; }; }
47964710
VS
21610 else
21611 ac_cv_sizeof_long=0
21612 fi
a848cd7e 21613fi
47964710 21614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21615fi
21616rm -f conftest.val
bd8a7646 21617fi
d589327a
VZ
21618{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21619echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
47964710
VS
21620
21621
21622
a848cd7e
SC
21623cat >>confdefs.h <<_ACEOF
21624#define SIZEOF_LONG $ac_cv_sizeof_long
21625_ACEOF
21626
21627
d589327a
VZ
21628{ echo "$as_me:$LINENO: checking for size_t" >&5
21629echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21630if test "${ac_cv_type_size_t+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21632else
21633 cat >conftest.$ac_ext <<_ACEOF
21634/* confdefs.h. */
21635_ACEOF
21636cat confdefs.h >>conftest.$ac_ext
21637cat >>conftest.$ac_ext <<_ACEOF
21638/* end confdefs.h. */
21639$ac_includes_default
21640typedef size_t ac__type_new_;
21641int
21642main ()
21643{
21644if ((ac__type_new_ *) 0)
21645 return 0;
21646if (sizeof (ac__type_new_))
21647 return 0;
21648 ;
21649 return 0;
21650}
21651_ACEOF
21652rm -f conftest.$ac_objext
21653if { (ac_try="$ac_compile"
21654case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21657esac
21658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_compile") 2>conftest.er1
21660 ac_status=$?
21661 grep -v '^ *+' conftest.er1 >conftest.err
21662 rm -f conftest.er1
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } && {
21666 test -z "$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 } && test -s conftest.$ac_objext; then
21669 ac_cv_type_size_t=yes
21670else
21671 echo "$as_me: failed program was:" >&5
21672sed 's/^/| /' conftest.$ac_ext >&5
21673
21674 ac_cv_type_size_t=no
21675fi
21676
21677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678fi
21679{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21680echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21681
47964710
VS
21682# The cast to long int works around a bug in the HP C Compiler
21683# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21684# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21685# This bug is HP SR number 8606223364.
d589327a
VZ
21686{ echo "$as_me:$LINENO: checking size of size_t" >&5
21687echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
a848cd7e 21688if test "${ac_cv_sizeof_size_t+set}" = set; then
d589327a 21689 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 21690else
a848cd7e
SC
21691 if test "$cross_compiling" = yes; then
21692 # Depending upon the size, compute the lo and hi bounds.
21693cat >conftest.$ac_ext <<_ACEOF
21694/* confdefs.h. */
21695_ACEOF
21696cat confdefs.h >>conftest.$ac_ext
21697cat >>conftest.$ac_ext <<_ACEOF
21698/* end confdefs.h. */
21699$ac_includes_default
d589327a 21700 typedef size_t ac__type_sizeof_;
a848cd7e
SC
21701int
21702main ()
21703{
d589327a 21704static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
21705test_array [0] = 0
21706
21707 ;
21708 return 0;
21709}
21710_ACEOF
21711rm -f conftest.$ac_objext
47964710
VS
21712if { (ac_try="$ac_compile"
21713case "(($ac_try" in
21714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21715 *) ac_try_echo=$ac_try;;
21716esac
d589327a 21717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21718 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21719 ac_status=$?
ac1cb8d3
VS
21720 grep -v '^ *+' conftest.er1 >conftest.err
21721 rm -f conftest.er1
21722 cat conftest.err >&5
d589327a 21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21724 (exit $ac_status); } && {
21725 test -z "$ac_c_werror_flag" ||
21726 test ! -s conftest.err
21727 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21728 ac_lo=0 ac_mid=0
21729 while :; do
21730 cat >conftest.$ac_ext <<_ACEOF
21731/* confdefs.h. */
21732_ACEOF
21733cat confdefs.h >>conftest.$ac_ext
21734cat >>conftest.$ac_ext <<_ACEOF
21735/* end confdefs.h. */
21736$ac_includes_default
d589327a 21737 typedef size_t ac__type_sizeof_;
a848cd7e
SC
21738int
21739main ()
21740{
d589327a 21741static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
21742test_array [0] = 0
21743
21744 ;
21745 return 0;
21746}
21747_ACEOF
21748rm -f conftest.$ac_objext
47964710
VS
21749if { (ac_try="$ac_compile"
21750case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21753esac
d589327a 21754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21755 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21756 ac_status=$?
ac1cb8d3
VS
21757 grep -v '^ *+' conftest.er1 >conftest.err
21758 rm -f conftest.er1
21759 cat conftest.err >&5
d589327a 21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21761 (exit $ac_status); } && {
21762 test -z "$ac_c_werror_flag" ||
21763 test ! -s conftest.err
21764 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21765 ac_hi=$ac_mid; break
21766else
d589327a 21767 echo "$as_me: failed program was:" >&5
a848cd7e
SC
21768sed 's/^/| /' conftest.$ac_ext >&5
21769
47964710
VS
21770 ac_lo=`expr $ac_mid + 1`
21771 if test $ac_lo -le $ac_mid; then
21772 ac_lo= ac_hi=
21773 break
21774 fi
21775 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21776fi
47964710
VS
21777
21778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21779 done
21780else
d589327a 21781 echo "$as_me: failed program was:" >&5
a848cd7e
SC
21782sed 's/^/| /' conftest.$ac_ext >&5
21783
47964710 21784 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
21785/* confdefs.h. */
21786_ACEOF
21787cat confdefs.h >>conftest.$ac_ext
21788cat >>conftest.$ac_ext <<_ACEOF
21789/* end confdefs.h. */
21790$ac_includes_default
d589327a 21791 typedef size_t ac__type_sizeof_;
a848cd7e
SC
21792int
21793main ()
21794{
d589327a 21795static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
21796test_array [0] = 0
21797
21798 ;
21799 return 0;
21800}
21801_ACEOF
21802rm -f conftest.$ac_objext
47964710
VS
21803if { (ac_try="$ac_compile"
21804case "(($ac_try" in
21805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806 *) ac_try_echo=$ac_try;;
21807esac
d589327a 21808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21809 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21810 ac_status=$?
ac1cb8d3
VS
21811 grep -v '^ *+' conftest.er1 >conftest.err
21812 rm -f conftest.er1
21813 cat conftest.err >&5
d589327a 21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21815 (exit $ac_status); } && {
21816 test -z "$ac_c_werror_flag" ||
21817 test ! -s conftest.err
21818 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21819 ac_hi=-1 ac_mid=-1
21820 while :; 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$ac_includes_default
d589327a 21828 typedef size_t ac__type_sizeof_;
a848cd7e
SC
21829int
21830main ()
21831{
d589327a 21832static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
21833test_array [0] = 0
21834
21835 ;
21836 return 0;
21837}
21838_ACEOF
21839rm -f conftest.$ac_objext
47964710
VS
21840if { (ac_try="$ac_compile"
21841case "(($ac_try" in
21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843 *) ac_try_echo=$ac_try;;
21844esac
d589327a 21845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21846 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21847 ac_status=$?
ac1cb8d3
VS
21848 grep -v '^ *+' conftest.er1 >conftest.err
21849 rm -f conftest.er1
21850 cat conftest.err >&5
d589327a 21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21852 (exit $ac_status); } && {
21853 test -z "$ac_c_werror_flag" ||
21854 test ! -s conftest.err
21855 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21856 ac_lo=$ac_mid; break
21857else
d589327a 21858 echo "$as_me: failed program was:" >&5
a848cd7e
SC
21859sed 's/^/| /' conftest.$ac_ext >&5
21860
47964710
VS
21861 ac_hi=`expr '(' $ac_mid ')' - 1`
21862 if test $ac_mid -le $ac_hi; then
21863 ac_lo= ac_hi=
21864 break
21865 fi
21866 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21867fi
47964710
VS
21868
21869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21870 done
21871else
d589327a 21872 echo "$as_me: failed program was:" >&5
a848cd7e
SC
21873sed 's/^/| /' conftest.$ac_ext >&5
21874
47964710 21875 ac_lo= ac_hi=
a848cd7e 21876fi
47964710
VS
21877
21878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21879fi
47964710
VS
21880
21881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21882# Binary search between lo and hi bounds.
21883while test "x$ac_lo" != "x$ac_hi"; do
21884 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21885 cat >conftest.$ac_ext <<_ACEOF
21886/* confdefs.h. */
21887_ACEOF
21888cat confdefs.h >>conftest.$ac_ext
21889cat >>conftest.$ac_ext <<_ACEOF
21890/* end confdefs.h. */
21891$ac_includes_default
d589327a 21892 typedef size_t ac__type_sizeof_;
a848cd7e
SC
21893int
21894main ()
21895{
d589327a 21896static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
21897test_array [0] = 0
21898
21899 ;
21900 return 0;
21901}
21902_ACEOF
21903rm -f conftest.$ac_objext
47964710
VS
21904if { (ac_try="$ac_compile"
21905case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21908esac
d589327a 21909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21910 (eval "$ac_compile") 2>conftest.er1
a848cd7e 21911 ac_status=$?
ac1cb8d3
VS
21912 grep -v '^ *+' conftest.er1 >conftest.err
21913 rm -f conftest.er1
21914 cat conftest.err >&5
d589327a 21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
21916 (exit $ac_status); } && {
21917 test -z "$ac_c_werror_flag" ||
21918 test ! -s conftest.err
21919 } && test -s conftest.$ac_objext; then
a848cd7e
SC
21920 ac_hi=$ac_mid
21921else
d589327a 21922 echo "$as_me: failed program was:" >&5
a848cd7e
SC
21923sed 's/^/| /' conftest.$ac_ext >&5
21924
47964710 21925 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 21926fi
47964710
VS
21927
21928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21929done
21930case $ac_lo in
21931?*) ac_cv_sizeof_size_t=$ac_lo;;
47964710 21932'') if test "$ac_cv_type_size_t" = yes; then
d589327a 21933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
a848cd7e 21934See \`config.log' for more details." >&5
d589327a 21935echo "$as_me: error: cannot compute sizeof (size_t)
a848cd7e 21936See \`config.log' for more details." >&2;}
d589327a 21937 { (exit 77); exit 77; }; }
47964710
VS
21938 else
21939 ac_cv_sizeof_size_t=0
21940 fi ;;
a848cd7e 21941esac
a848cd7e
SC
21942else
21943 cat >conftest.$ac_ext <<_ACEOF
21944/* confdefs.h. */
21945_ACEOF
21946cat confdefs.h >>conftest.$ac_ext
21947cat >>conftest.$ac_ext <<_ACEOF
21948/* end confdefs.h. */
21949$ac_includes_default
d589327a
VZ
21950 typedef size_t ac__type_sizeof_;
21951static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21952static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
21953#include <stdio.h>
21954#include <stdlib.h>
21955int
21956main ()
21957{
21958
21959 FILE *f = fopen ("conftest.val", "w");
21960 if (! f)
47964710 21961 return 1;
d589327a 21962 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 21963 {
47964710 21964 long int i = longval ();
d589327a 21965 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 21966 return 1;
d589327a 21967 fprintf (f, "%ld\n", i);
a848cd7e
SC
21968 }
21969 else
21970 {
47964710 21971 unsigned long int i = ulongval ();
d589327a 21972 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 21973 return 1;
d589327a 21974 fprintf (f, "%lu\n", i);
a848cd7e 21975 }
47964710 21976 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
21977
21978 ;
21979 return 0;
21980}
21981_ACEOF
21982rm -f conftest$ac_exeext
47964710
VS
21983if { (ac_try="$ac_link"
21984case "(($ac_try" in
21985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986 *) ac_try_echo=$ac_try;;
21987esac
d589327a 21988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21989 (eval "$ac_link") 2>&5
a848cd7e 21990 ac_status=$?
d589327a 21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 21992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
21993 { (case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21996esac
d589327a 21997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 21998 (eval "$ac_try") 2>&5
a848cd7e 21999 ac_status=$?
d589327a 22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
22001 (exit $ac_status); }; }; then
22002 ac_cv_sizeof_size_t=`cat conftest.val`
22003else
d589327a
VZ
22004 echo "$as_me: program exited with status $ac_status" >&5
22005echo "$as_me: failed program was:" >&5
a848cd7e
SC
22006sed 's/^/| /' conftest.$ac_ext >&5
22007
22008( exit $ac_status )
47964710 22009if test "$ac_cv_type_size_t" = yes; then
d589327a 22010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
a848cd7e 22011See \`config.log' for more details." >&5
d589327a 22012echo "$as_me: error: cannot compute sizeof (size_t)
a848cd7e 22013See \`config.log' for more details." >&2;}
d589327a 22014 { (exit 77); exit 77; }; }
47964710
VS
22015 else
22016 ac_cv_sizeof_size_t=0
22017 fi
a848cd7e 22018fi
47964710 22019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22020fi
22021rm -f conftest.val
4db03d26 22022fi
d589327a
VZ
22023{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22024echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
47964710
VS
22025
22026
22027
a848cd7e
SC
22028cat >>confdefs.h <<_ACEOF
22029#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22030_ACEOF
22031
22032
22033
22034case "${host}" in
22035 arm-*-linux* )
d589327a
VZ
22036 { echo "$as_me:$LINENO: checking for long long" >&5
22037echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22038if test "${ac_cv_type_long_long+set}" = set; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22040else
22041 cat >conftest.$ac_ext <<_ACEOF
22042/* confdefs.h. */
22043_ACEOF
22044cat confdefs.h >>conftest.$ac_ext
22045cat >>conftest.$ac_ext <<_ACEOF
22046/* end confdefs.h. */
22047$ac_includes_default
22048typedef long long ac__type_new_;
22049int
22050main ()
22051{
22052if ((ac__type_new_ *) 0)
22053 return 0;
22054if (sizeof (ac__type_new_))
22055 return 0;
22056 ;
22057 return 0;
22058}
22059_ACEOF
22060rm -f conftest.$ac_objext
22061if { (ac_try="$ac_compile"
22062case "(($ac_try" in
22063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064 *) ac_try_echo=$ac_try;;
22065esac
22066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067 (eval "$ac_compile") 2>conftest.er1
22068 ac_status=$?
22069 grep -v '^ *+' conftest.er1 >conftest.err
22070 rm -f conftest.er1
22071 cat conftest.err >&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); } && {
22074 test -z "$ac_c_werror_flag" ||
22075 test ! -s conftest.err
22076 } && test -s conftest.$ac_objext; then
22077 ac_cv_type_long_long=yes
22078else
22079 echo "$as_me: failed program was:" >&5
22080sed 's/^/| /' conftest.$ac_ext >&5
22081
22082 ac_cv_type_long_long=no
22083fi
22084
22085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22086fi
22087{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22088echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22089
22090# The cast to long int works around a bug in the HP C Compiler
47964710
VS
22091# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22092# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22093# This bug is HP SR number 8606223364.
d589327a
VZ
22094{ echo "$as_me:$LINENO: checking size of long long" >&5
22095echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
a848cd7e 22096if test "${ac_cv_sizeof_long_long+set}" = set; then
d589327a 22097 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 22098else
a848cd7e
SC
22099 if test "$cross_compiling" = yes; then
22100 # Depending upon the size, compute the lo and hi bounds.
22101cat >conftest.$ac_ext <<_ACEOF
22102/* confdefs.h. */
22103_ACEOF
22104cat confdefs.h >>conftest.$ac_ext
22105cat >>conftest.$ac_ext <<_ACEOF
22106/* end confdefs.h. */
22107$ac_includes_default
d589327a 22108 typedef long long ac__type_sizeof_;
a848cd7e
SC
22109int
22110main ()
22111{
d589327a 22112static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
22113test_array [0] = 0
22114
22115 ;
22116 return 0;
22117}
22118_ACEOF
22119rm -f conftest.$ac_objext
47964710
VS
22120if { (ac_try="$ac_compile"
22121case "(($ac_try" in
22122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123 *) ac_try_echo=$ac_try;;
22124esac
d589327a 22125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22126 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22127 ac_status=$?
ac1cb8d3
VS
22128 grep -v '^ *+' conftest.er1 >conftest.err
22129 rm -f conftest.er1
22130 cat conftest.err >&5
d589327a 22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22132 (exit $ac_status); } && {
22133 test -z "$ac_c_werror_flag" ||
22134 test ! -s conftest.err
22135 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22136 ac_lo=0 ac_mid=0
22137 while :; do
22138 cat >conftest.$ac_ext <<_ACEOF
22139/* confdefs.h. */
22140_ACEOF
22141cat confdefs.h >>conftest.$ac_ext
22142cat >>conftest.$ac_ext <<_ACEOF
22143/* end confdefs.h. */
22144$ac_includes_default
d589327a 22145 typedef long long ac__type_sizeof_;
a848cd7e
SC
22146int
22147main ()
22148{
d589327a 22149static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
22150test_array [0] = 0
22151
22152 ;
22153 return 0;
22154}
22155_ACEOF
22156rm -f conftest.$ac_objext
47964710
VS
22157if { (ac_try="$ac_compile"
22158case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22161esac
d589327a 22162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22163 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22164 ac_status=$?
ac1cb8d3
VS
22165 grep -v '^ *+' conftest.er1 >conftest.err
22166 rm -f conftest.er1
22167 cat conftest.err >&5
d589327a 22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22169 (exit $ac_status); } && {
22170 test -z "$ac_c_werror_flag" ||
22171 test ! -s conftest.err
22172 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22173 ac_hi=$ac_mid; break
22174else
d589327a 22175 echo "$as_me: failed program was:" >&5
a848cd7e
SC
22176sed 's/^/| /' conftest.$ac_ext >&5
22177
47964710
VS
22178 ac_lo=`expr $ac_mid + 1`
22179 if test $ac_lo -le $ac_mid; then
22180 ac_lo= ac_hi=
22181 break
22182 fi
22183 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 22184fi
47964710
VS
22185
22186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22187 done
22188else
d589327a 22189 echo "$as_me: failed program was:" >&5
a848cd7e
SC
22190sed 's/^/| /' conftest.$ac_ext >&5
22191
47964710 22192 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
22193/* confdefs.h. */
22194_ACEOF
22195cat confdefs.h >>conftest.$ac_ext
22196cat >>conftest.$ac_ext <<_ACEOF
22197/* end confdefs.h. */
22198$ac_includes_default
d589327a 22199 typedef long long ac__type_sizeof_;
a848cd7e
SC
22200int
22201main ()
22202{
d589327a 22203static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
22204test_array [0] = 0
22205
22206 ;
22207 return 0;
22208}
22209_ACEOF
22210rm -f conftest.$ac_objext
47964710
VS
22211if { (ac_try="$ac_compile"
22212case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22215esac
d589327a 22216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22217 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22218 ac_status=$?
ac1cb8d3
VS
22219 grep -v '^ *+' conftest.er1 >conftest.err
22220 rm -f conftest.er1
22221 cat conftest.err >&5
d589327a 22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22223 (exit $ac_status); } && {
22224 test -z "$ac_c_werror_flag" ||
22225 test ! -s conftest.err
22226 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22227 ac_hi=-1 ac_mid=-1
22228 while :; do
22229 cat >conftest.$ac_ext <<_ACEOF
22230/* confdefs.h. */
22231_ACEOF
22232cat confdefs.h >>conftest.$ac_ext
22233cat >>conftest.$ac_ext <<_ACEOF
22234/* end confdefs.h. */
22235$ac_includes_default
d589327a 22236 typedef long long ac__type_sizeof_;
a848cd7e
SC
22237int
22238main ()
22239{
d589327a 22240static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
22241test_array [0] = 0
22242
22243 ;
22244 return 0;
22245}
22246_ACEOF
22247rm -f conftest.$ac_objext
47964710
VS
22248if { (ac_try="$ac_compile"
22249case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22252esac
d589327a 22253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22254 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22255 ac_status=$?
ac1cb8d3
VS
22256 grep -v '^ *+' conftest.er1 >conftest.err
22257 rm -f conftest.er1
22258 cat conftest.err >&5
d589327a 22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22260 (exit $ac_status); } && {
22261 test -z "$ac_c_werror_flag" ||
22262 test ! -s conftest.err
22263 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22264 ac_lo=$ac_mid; break
22265else
d589327a 22266 echo "$as_me: failed program was:" >&5
a848cd7e
SC
22267sed 's/^/| /' conftest.$ac_ext >&5
22268
47964710
VS
22269 ac_hi=`expr '(' $ac_mid ')' - 1`
22270 if test $ac_mid -le $ac_hi; then
22271 ac_lo= ac_hi=
22272 break
22273 fi
22274 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 22275fi
47964710
VS
22276
22277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22278 done
22279else
d589327a 22280 echo "$as_me: failed program was:" >&5
a848cd7e
SC
22281sed 's/^/| /' conftest.$ac_ext >&5
22282
47964710 22283 ac_lo= ac_hi=
a848cd7e 22284fi
47964710
VS
22285
22286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22287fi
47964710
VS
22288
22289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22290# Binary search between lo and hi bounds.
22291while test "x$ac_lo" != "x$ac_hi"; do
22292 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22293 cat >conftest.$ac_ext <<_ACEOF
22294/* confdefs.h. */
22295_ACEOF
22296cat confdefs.h >>conftest.$ac_ext
22297cat >>conftest.$ac_ext <<_ACEOF
22298/* end confdefs.h. */
22299$ac_includes_default
d589327a 22300 typedef long long ac__type_sizeof_;
a848cd7e
SC
22301int
22302main ()
22303{
d589327a 22304static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
22305test_array [0] = 0
22306
22307 ;
22308 return 0;
22309}
22310_ACEOF
22311rm -f conftest.$ac_objext
47964710
VS
22312if { (ac_try="$ac_compile"
22313case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22316esac
d589327a 22317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22318 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22319 ac_status=$?
ac1cb8d3
VS
22320 grep -v '^ *+' conftest.er1 >conftest.err
22321 rm -f conftest.er1
22322 cat conftest.err >&5
d589327a 22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22324 (exit $ac_status); } && {
22325 test -z "$ac_c_werror_flag" ||
22326 test ! -s conftest.err
22327 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22328 ac_hi=$ac_mid
22329else
d589327a 22330 echo "$as_me: failed program was:" >&5
a848cd7e
SC
22331sed 's/^/| /' conftest.$ac_ext >&5
22332
47964710 22333 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 22334fi
47964710
VS
22335
22336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22337done
22338case $ac_lo in
22339?*) ac_cv_sizeof_long_long=$ac_lo;;
47964710 22340'') if test "$ac_cv_type_long_long" = yes; then
d589327a 22341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
a848cd7e 22342See \`config.log' for more details." >&5
d589327a 22343echo "$as_me: error: cannot compute sizeof (long long)
a848cd7e 22344See \`config.log' for more details." >&2;}
d589327a 22345 { (exit 77); exit 77; }; }
47964710
VS
22346 else
22347 ac_cv_sizeof_long_long=0
22348 fi ;;
a848cd7e 22349esac
a848cd7e
SC
22350else
22351 cat >conftest.$ac_ext <<_ACEOF
22352/* confdefs.h. */
22353_ACEOF
22354cat confdefs.h >>conftest.$ac_ext
22355cat >>conftest.$ac_ext <<_ACEOF
22356/* end confdefs.h. */
22357$ac_includes_default
d589327a
VZ
22358 typedef long long ac__type_sizeof_;
22359static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22360static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
22361#include <stdio.h>
22362#include <stdlib.h>
22363int
22364main ()
22365{
22366
22367 FILE *f = fopen ("conftest.val", "w");
22368 if (! f)
47964710 22369 return 1;
d589327a 22370 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 22371 {
47964710 22372 long int i = longval ();
d589327a 22373 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 22374 return 1;
d589327a 22375 fprintf (f, "%ld\n", i);
a848cd7e
SC
22376 }
22377 else
22378 {
47964710 22379 unsigned long int i = ulongval ();
d589327a 22380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 22381 return 1;
d589327a 22382 fprintf (f, "%lu\n", i);
a848cd7e 22383 }
47964710 22384 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
22385
22386 ;
22387 return 0;
22388}
22389_ACEOF
22390rm -f conftest$ac_exeext
47964710
VS
22391if { (ac_try="$ac_link"
22392case "(($ac_try" in
22393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394 *) ac_try_echo=$ac_try;;
22395esac
d589327a 22396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22397 (eval "$ac_link") 2>&5
a848cd7e 22398 ac_status=$?
d589327a 22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 22400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
22401 { (case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22404esac
d589327a 22405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22406 (eval "$ac_try") 2>&5
a848cd7e 22407 ac_status=$?
d589327a 22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
22409 (exit $ac_status); }; }; then
22410 ac_cv_sizeof_long_long=`cat conftest.val`
22411else
d589327a
VZ
22412 echo "$as_me: program exited with status $ac_status" >&5
22413echo "$as_me: failed program was:" >&5
a848cd7e
SC
22414sed 's/^/| /' conftest.$ac_ext >&5
22415
22416( exit $ac_status )
47964710 22417if test "$ac_cv_type_long_long" = yes; then
d589327a 22418 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
a848cd7e 22419See \`config.log' for more details." >&5
d589327a 22420echo "$as_me: error: cannot compute sizeof (long long)
a848cd7e 22421See \`config.log' for more details." >&2;}
d589327a 22422 { (exit 77); exit 77; }; }
47964710
VS
22423 else
22424 ac_cv_sizeof_long_long=0
22425 fi
a848cd7e 22426fi
47964710 22427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22428fi
22429rm -f conftest.val
bd8a7646 22430fi
d589327a
VZ
22431{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22432echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
47964710
VS
22433
22434
22435
a848cd7e
SC
22436cat >>confdefs.h <<_ACEOF
22437#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22438_ACEOF
22439
22440
22441 ;;
22442 *-hp-hpux* )
d589327a
VZ
22443 { echo "$as_me:$LINENO: checking for long long" >&5
22444echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22445if test "${ac_cv_type_long_long+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22447else
22448 cat >conftest.$ac_ext <<_ACEOF
22449/* confdefs.h. */
22450_ACEOF
22451cat confdefs.h >>conftest.$ac_ext
22452cat >>conftest.$ac_ext <<_ACEOF
22453/* end confdefs.h. */
22454$ac_includes_default
22455typedef long long ac__type_new_;
22456int
22457main ()
22458{
22459if ((ac__type_new_ *) 0)
22460 return 0;
22461if (sizeof (ac__type_new_))
22462 return 0;
22463 ;
22464 return 0;
22465}
22466_ACEOF
22467rm -f conftest.$ac_objext
22468if { (ac_try="$ac_compile"
22469case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472esac
22473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_compile") 2>conftest.er1
22475 ac_status=$?
22476 grep -v '^ *+' conftest.er1 >conftest.err
22477 rm -f conftest.er1
22478 cat conftest.err >&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } && {
22481 test -z "$ac_c_werror_flag" ||
22482 test ! -s conftest.err
22483 } && test -s conftest.$ac_objext; then
22484 ac_cv_type_long_long=yes
22485else
22486 echo "$as_me: failed program was:" >&5
22487sed 's/^/| /' conftest.$ac_ext >&5
22488
22489 ac_cv_type_long_long=no
22490fi
22491
22492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22493fi
22494{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22495echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22496
22497# The cast to long int works around a bug in the HP C Compiler
47964710
VS
22498# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22499# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22500# This bug is HP SR number 8606223364.
d589327a
VZ
22501{ echo "$as_me:$LINENO: checking size of long long" >&5
22502echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
a848cd7e 22503if test "${ac_cv_sizeof_long_long+set}" = set; then
d589327a 22504 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 22505else
a848cd7e
SC
22506 if test "$cross_compiling" = yes; then
22507 # Depending upon the size, compute the lo and hi bounds.
22508cat >conftest.$ac_ext <<_ACEOF
22509/* confdefs.h. */
22510_ACEOF
22511cat confdefs.h >>conftest.$ac_ext
22512cat >>conftest.$ac_ext <<_ACEOF
22513/* end confdefs.h. */
22514$ac_includes_default
d589327a 22515 typedef long long ac__type_sizeof_;
a848cd7e
SC
22516int
22517main ()
22518{
d589327a 22519static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
22520test_array [0] = 0
22521
22522 ;
22523 return 0;
22524}
22525_ACEOF
22526rm -f conftest.$ac_objext
47964710
VS
22527if { (ac_try="$ac_compile"
22528case "(($ac_try" in
22529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22531esac
d589327a 22532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22533 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22534 ac_status=$?
ac1cb8d3
VS
22535 grep -v '^ *+' conftest.er1 >conftest.err
22536 rm -f conftest.er1
22537 cat conftest.err >&5
d589327a 22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22539 (exit $ac_status); } && {
22540 test -z "$ac_c_werror_flag" ||
22541 test ! -s conftest.err
22542 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22543 ac_lo=0 ac_mid=0
22544 while :; do
22545 cat >conftest.$ac_ext <<_ACEOF
22546/* confdefs.h. */
22547_ACEOF
22548cat confdefs.h >>conftest.$ac_ext
22549cat >>conftest.$ac_ext <<_ACEOF
22550/* end confdefs.h. */
22551$ac_includes_default
d589327a 22552 typedef long long ac__type_sizeof_;
a848cd7e
SC
22553int
22554main ()
22555{
d589327a 22556static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
22557test_array [0] = 0
22558
22559 ;
22560 return 0;
22561}
22562_ACEOF
22563rm -f conftest.$ac_objext
47964710
VS
22564if { (ac_try="$ac_compile"
22565case "(($ac_try" in
22566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567 *) ac_try_echo=$ac_try;;
22568esac
d589327a 22569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22570 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22571 ac_status=$?
ac1cb8d3
VS
22572 grep -v '^ *+' conftest.er1 >conftest.err
22573 rm -f conftest.er1
22574 cat conftest.err >&5
d589327a 22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22576 (exit $ac_status); } && {
22577 test -z "$ac_c_werror_flag" ||
22578 test ! -s conftest.err
22579 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22580 ac_hi=$ac_mid; break
22581else
d589327a 22582 echo "$as_me: failed program was:" >&5
a848cd7e
SC
22583sed 's/^/| /' conftest.$ac_ext >&5
22584
47964710
VS
22585 ac_lo=`expr $ac_mid + 1`
22586 if test $ac_lo -le $ac_mid; then
22587 ac_lo= ac_hi=
22588 break
22589 fi
22590 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 22591fi
47964710
VS
22592
22593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22594 done
22595else
d589327a 22596 echo "$as_me: failed program was:" >&5
a848cd7e
SC
22597sed 's/^/| /' conftest.$ac_ext >&5
22598
47964710 22599 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
22600/* confdefs.h. */
22601_ACEOF
22602cat confdefs.h >>conftest.$ac_ext
22603cat >>conftest.$ac_ext <<_ACEOF
22604/* end confdefs.h. */
22605$ac_includes_default
d589327a 22606 typedef long long ac__type_sizeof_;
a848cd7e
SC
22607int
22608main ()
22609{
d589327a 22610static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
22611test_array [0] = 0
22612
22613 ;
22614 return 0;
22615}
22616_ACEOF
22617rm -f conftest.$ac_objext
47964710
VS
22618if { (ac_try="$ac_compile"
22619case "(($ac_try" in
22620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621 *) ac_try_echo=$ac_try;;
22622esac
d589327a 22623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22624 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22625 ac_status=$?
ac1cb8d3
VS
22626 grep -v '^ *+' conftest.er1 >conftest.err
22627 rm -f conftest.er1
22628 cat conftest.err >&5
d589327a 22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22630 (exit $ac_status); } && {
22631 test -z "$ac_c_werror_flag" ||
22632 test ! -s conftest.err
22633 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22634 ac_hi=-1 ac_mid=-1
22635 while :; do
22636 cat >conftest.$ac_ext <<_ACEOF
22637/* confdefs.h. */
22638_ACEOF
22639cat confdefs.h >>conftest.$ac_ext
22640cat >>conftest.$ac_ext <<_ACEOF
22641/* end confdefs.h. */
22642$ac_includes_default
d589327a 22643 typedef long long ac__type_sizeof_;
a848cd7e
SC
22644int
22645main ()
22646{
d589327a 22647static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
22648test_array [0] = 0
22649
22650 ;
22651 return 0;
22652}
22653_ACEOF
22654rm -f conftest.$ac_objext
47964710
VS
22655if { (ac_try="$ac_compile"
22656case "(($ac_try" in
22657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22658 *) ac_try_echo=$ac_try;;
22659esac
d589327a 22660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22661 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22662 ac_status=$?
ac1cb8d3
VS
22663 grep -v '^ *+' conftest.er1 >conftest.err
22664 rm -f conftest.er1
22665 cat conftest.err >&5
d589327a 22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22667 (exit $ac_status); } && {
22668 test -z "$ac_c_werror_flag" ||
22669 test ! -s conftest.err
22670 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22671 ac_lo=$ac_mid; break
22672else
d589327a 22673 echo "$as_me: failed program was:" >&5
a848cd7e
SC
22674sed 's/^/| /' conftest.$ac_ext >&5
22675
47964710
VS
22676 ac_hi=`expr '(' $ac_mid ')' - 1`
22677 if test $ac_mid -le $ac_hi; then
22678 ac_lo= ac_hi=
22679 break
22680 fi
22681 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 22682fi
47964710
VS
22683
22684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22685 done
22686else
d589327a 22687 echo "$as_me: failed program was:" >&5
a848cd7e
SC
22688sed 's/^/| /' conftest.$ac_ext >&5
22689
47964710 22690 ac_lo= ac_hi=
a848cd7e 22691fi
47964710
VS
22692
22693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22694fi
47964710
VS
22695
22696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22697# Binary search between lo and hi bounds.
22698while test "x$ac_lo" != "x$ac_hi"; do
22699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22700 cat >conftest.$ac_ext <<_ACEOF
22701/* confdefs.h. */
22702_ACEOF
22703cat confdefs.h >>conftest.$ac_ext
22704cat >>conftest.$ac_ext <<_ACEOF
22705/* end confdefs.h. */
22706$ac_includes_default
d589327a 22707 typedef long long ac__type_sizeof_;
a848cd7e
SC
22708int
22709main ()
22710{
d589327a 22711static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
22712test_array [0] = 0
22713
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
d589327a 22724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 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
d589327a 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_hi=$ac_mid
22736else
d589327a 22737 echo "$as_me: failed program was:" >&5
a848cd7e
SC
22738sed 's/^/| /' conftest.$ac_ext >&5
22739
47964710 22740 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 22741fi
47964710
VS
22742
22743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22744done
22745case $ac_lo in
22746?*) ac_cv_sizeof_long_long=$ac_lo;;
47964710 22747'') if test "$ac_cv_type_long_long" = yes; then
d589327a 22748 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
a848cd7e 22749See \`config.log' for more details." >&5
d589327a 22750echo "$as_me: error: cannot compute sizeof (long long)
a848cd7e 22751See \`config.log' for more details." >&2;}
d589327a 22752 { (exit 77); exit 77; }; }
47964710
VS
22753 else
22754 ac_cv_sizeof_long_long=0
22755 fi ;;
a848cd7e 22756esac
a848cd7e
SC
22757else
22758 cat >conftest.$ac_ext <<_ACEOF
22759/* confdefs.h. */
22760_ACEOF
22761cat confdefs.h >>conftest.$ac_ext
22762cat >>conftest.$ac_ext <<_ACEOF
22763/* end confdefs.h. */
22764$ac_includes_default
d589327a
VZ
22765 typedef long long ac__type_sizeof_;
22766static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22767static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
22768#include <stdio.h>
22769#include <stdlib.h>
22770int
22771main ()
22772{
22773
22774 FILE *f = fopen ("conftest.val", "w");
22775 if (! f)
47964710 22776 return 1;
d589327a 22777 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 22778 {
47964710 22779 long int i = longval ();
d589327a 22780 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 22781 return 1;
d589327a 22782 fprintf (f, "%ld\n", i);
a848cd7e
SC
22783 }
22784 else
22785 {
47964710 22786 unsigned long int i = ulongval ();
d589327a 22787 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 22788 return 1;
d589327a 22789 fprintf (f, "%lu\n", i);
a848cd7e 22790 }
47964710 22791 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
22792
22793 ;
22794 return 0;
22795}
22796_ACEOF
22797rm -f conftest$ac_exeext
47964710
VS
22798if { (ac_try="$ac_link"
22799case "(($ac_try" in
22800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22801 *) ac_try_echo=$ac_try;;
22802esac
d589327a 22803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22804 (eval "$ac_link") 2>&5
a848cd7e 22805 ac_status=$?
d589327a 22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 22807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
22808 { (case "(($ac_try" in
22809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22810 *) ac_try_echo=$ac_try;;
22811esac
d589327a 22812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22813 (eval "$ac_try") 2>&5
a848cd7e 22814 ac_status=$?
d589327a 22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
22816 (exit $ac_status); }; }; then
22817 ac_cv_sizeof_long_long=`cat conftest.val`
22818else
d589327a
VZ
22819 echo "$as_me: program exited with status $ac_status" >&5
22820echo "$as_me: failed program was:" >&5
a848cd7e
SC
22821sed 's/^/| /' conftest.$ac_ext >&5
22822
22823( exit $ac_status )
47964710 22824if test "$ac_cv_type_long_long" = yes; then
d589327a 22825 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
a848cd7e 22826See \`config.log' for more details." >&5
d589327a 22827echo "$as_me: error: cannot compute sizeof (long long)
a848cd7e 22828See \`config.log' for more details." >&2;}
d589327a 22829 { (exit 77); exit 77; }; }
47964710
VS
22830 else
22831 ac_cv_sizeof_long_long=0
22832 fi
a848cd7e 22833fi
47964710 22834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22835fi
22836rm -f conftest.val
bd8a7646 22837fi
d589327a
VZ
22838{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22839echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
47964710
VS
22840
22841
22842
a848cd7e
SC
22843cat >>confdefs.h <<_ACEOF
22844#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22845_ACEOF
22846
22847
6517fa86 22848 if test "$ac_cv_sizeof_long_long" != 0; then
c92ad099 22849 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
22850 fi
22851 ;;
22852 * )
d589327a
VZ
22853 { echo "$as_me:$LINENO: checking for long long" >&5
22854echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22855if test "${ac_cv_type_long_long+set}" = set; then
22856 echo $ECHO_N "(cached) $ECHO_C" >&6
22857else
22858 cat >conftest.$ac_ext <<_ACEOF
22859/* confdefs.h. */
22860_ACEOF
22861cat confdefs.h >>conftest.$ac_ext
22862cat >>conftest.$ac_ext <<_ACEOF
22863/* end confdefs.h. */
22864$ac_includes_default
22865typedef long long ac__type_new_;
22866int
22867main ()
22868{
22869if ((ac__type_new_ *) 0)
22870 return 0;
22871if (sizeof (ac__type_new_))
22872 return 0;
22873 ;
22874 return 0;
22875}
22876_ACEOF
22877rm -f conftest.$ac_objext
22878if { (ac_try="$ac_compile"
22879case "(($ac_try" in
22880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881 *) ac_try_echo=$ac_try;;
22882esac
22883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22884 (eval "$ac_compile") 2>conftest.er1
22885 ac_status=$?
22886 grep -v '^ *+' conftest.er1 >conftest.err
22887 rm -f conftest.er1
22888 cat conftest.err >&5
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } && {
22891 test -z "$ac_c_werror_flag" ||
22892 test ! -s conftest.err
22893 } && test -s conftest.$ac_objext; then
22894 ac_cv_type_long_long=yes
22895else
22896 echo "$as_me: failed program was:" >&5
22897sed 's/^/| /' conftest.$ac_ext >&5
22898
22899 ac_cv_type_long_long=no
22900fi
22901
22902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903fi
22904{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22905echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22906
22907# The cast to long int works around a bug in the HP C Compiler
47964710
VS
22908# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22909# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22910# This bug is HP SR number 8606223364.
d589327a
VZ
22911{ echo "$as_me:$LINENO: checking size of long long" >&5
22912echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
a848cd7e 22913if test "${ac_cv_sizeof_long_long+set}" = set; then
d589327a 22914 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 22915else
a848cd7e
SC
22916 if test "$cross_compiling" = yes; then
22917 # Depending upon the size, compute the lo and hi bounds.
22918cat >conftest.$ac_ext <<_ACEOF
22919/* confdefs.h. */
22920_ACEOF
22921cat confdefs.h >>conftest.$ac_ext
22922cat >>conftest.$ac_ext <<_ACEOF
22923/* end confdefs.h. */
22924$ac_includes_default
d589327a 22925 typedef long long ac__type_sizeof_;
a848cd7e
SC
22926int
22927main ()
22928{
d589327a 22929static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
a848cd7e
SC
22930test_array [0] = 0
22931
22932 ;
22933 return 0;
22934}
22935_ACEOF
22936rm -f conftest.$ac_objext
47964710
VS
22937if { (ac_try="$ac_compile"
22938case "(($ac_try" in
22939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22940 *) ac_try_echo=$ac_try;;
22941esac
d589327a 22942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22943 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22944 ac_status=$?
ac1cb8d3
VS
22945 grep -v '^ *+' conftest.er1 >conftest.err
22946 rm -f conftest.er1
22947 cat conftest.err >&5
d589327a 22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22949 (exit $ac_status); } && {
22950 test -z "$ac_c_werror_flag" ||
22951 test ! -s conftest.err
22952 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22953 ac_lo=0 ac_mid=0
22954 while :; do
22955 cat >conftest.$ac_ext <<_ACEOF
22956/* confdefs.h. */
22957_ACEOF
22958cat confdefs.h >>conftest.$ac_ext
22959cat >>conftest.$ac_ext <<_ACEOF
22960/* end confdefs.h. */
22961$ac_includes_default
d589327a 22962 typedef long long ac__type_sizeof_;
a848cd7e
SC
22963int
22964main ()
22965{
d589327a 22966static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
22967test_array [0] = 0
22968
22969 ;
22970 return 0;
22971}
22972_ACEOF
22973rm -f conftest.$ac_objext
47964710
VS
22974if { (ac_try="$ac_compile"
22975case "(($ac_try" in
22976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22977 *) ac_try_echo=$ac_try;;
22978esac
d589327a 22979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 22980 (eval "$ac_compile") 2>conftest.er1
a848cd7e 22981 ac_status=$?
ac1cb8d3
VS
22982 grep -v '^ *+' conftest.er1 >conftest.err
22983 rm -f conftest.er1
22984 cat conftest.err >&5
d589327a 22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
22986 (exit $ac_status); } && {
22987 test -z "$ac_c_werror_flag" ||
22988 test ! -s conftest.err
22989 } && test -s conftest.$ac_objext; then
a848cd7e
SC
22990 ac_hi=$ac_mid; break
22991else
d589327a 22992 echo "$as_me: failed program was:" >&5
a848cd7e
SC
22993sed 's/^/| /' conftest.$ac_ext >&5
22994
47964710
VS
22995 ac_lo=`expr $ac_mid + 1`
22996 if test $ac_lo -le $ac_mid; then
22997 ac_lo= ac_hi=
22998 break
22999 fi
23000 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 23001fi
47964710
VS
23002
23003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23004 done
23005else
d589327a 23006 echo "$as_me: failed program was:" >&5
a848cd7e
SC
23007sed 's/^/| /' conftest.$ac_ext >&5
23008
47964710 23009 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23010/* confdefs.h. */
23011_ACEOF
23012cat confdefs.h >>conftest.$ac_ext
23013cat >>conftest.$ac_ext <<_ACEOF
23014/* end confdefs.h. */
23015$ac_includes_default
d589327a 23016 typedef long long ac__type_sizeof_;
a848cd7e
SC
23017int
23018main ()
23019{
d589327a 23020static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
a848cd7e
SC
23021test_array [0] = 0
23022
23023 ;
23024 return 0;
23025}
23026_ACEOF
23027rm -f conftest.$ac_objext
47964710
VS
23028if { (ac_try="$ac_compile"
23029case "(($ac_try" in
23030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031 *) ac_try_echo=$ac_try;;
23032esac
d589327a 23033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23034 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23035 ac_status=$?
ac1cb8d3
VS
23036 grep -v '^ *+' conftest.er1 >conftest.err
23037 rm -f conftest.er1
23038 cat conftest.err >&5
d589327a 23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23040 (exit $ac_status); } && {
23041 test -z "$ac_c_werror_flag" ||
23042 test ! -s conftest.err
23043 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23044 ac_hi=-1 ac_mid=-1
23045 while :; do
23046 cat >conftest.$ac_ext <<_ACEOF
23047/* confdefs.h. */
23048_ACEOF
23049cat confdefs.h >>conftest.$ac_ext
23050cat >>conftest.$ac_ext <<_ACEOF
23051/* end confdefs.h. */
23052$ac_includes_default
d589327a 23053 typedef long long ac__type_sizeof_;
a848cd7e
SC
23054int
23055main ()
23056{
d589327a 23057static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
a848cd7e
SC
23058test_array [0] = 0
23059
23060 ;
23061 return 0;
23062}
23063_ACEOF
23064rm -f conftest.$ac_objext
47964710
VS
23065if { (ac_try="$ac_compile"
23066case "(($ac_try" in
23067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068 *) ac_try_echo=$ac_try;;
23069esac
d589327a 23070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23071 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23072 ac_status=$?
ac1cb8d3
VS
23073 grep -v '^ *+' conftest.er1 >conftest.err
23074 rm -f conftest.er1
23075 cat conftest.err >&5
d589327a 23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23077 (exit $ac_status); } && {
23078 test -z "$ac_c_werror_flag" ||
23079 test ! -s conftest.err
23080 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23081 ac_lo=$ac_mid; break
23082else
d589327a 23083 echo "$as_me: failed program was:" >&5
a848cd7e
SC
23084sed 's/^/| /' conftest.$ac_ext >&5
23085
47964710
VS
23086 ac_hi=`expr '(' $ac_mid ')' - 1`
23087 if test $ac_mid -le $ac_hi; then
23088 ac_lo= ac_hi=
23089 break
23090 fi
23091 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 23092fi
47964710
VS
23093
23094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23095 done
23096else
d589327a 23097 echo "$as_me: failed program was:" >&5
a848cd7e
SC
23098sed 's/^/| /' conftest.$ac_ext >&5
23099
47964710 23100 ac_lo= ac_hi=
a848cd7e 23101fi
47964710
VS
23102
23103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23104fi
47964710
VS
23105
23106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23107# Binary search between lo and hi bounds.
23108while test "x$ac_lo" != "x$ac_hi"; do
23109 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23110 cat >conftest.$ac_ext <<_ACEOF
23111/* confdefs.h. */
23112_ACEOF
23113cat confdefs.h >>conftest.$ac_ext
23114cat >>conftest.$ac_ext <<_ACEOF
23115/* end confdefs.h. */
23116$ac_includes_default
d589327a 23117 typedef long long ac__type_sizeof_;
a848cd7e
SC
23118int
23119main ()
23120{
d589327a 23121static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
a848cd7e
SC
23122test_array [0] = 0
23123
23124 ;
23125 return 0;
23126}
23127_ACEOF
23128rm -f conftest.$ac_objext
47964710
VS
23129if { (ac_try="$ac_compile"
23130case "(($ac_try" in
23131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132 *) ac_try_echo=$ac_try;;
23133esac
d589327a 23134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23135 (eval "$ac_compile") 2>conftest.er1
a848cd7e 23136 ac_status=$?
ac1cb8d3
VS
23137 grep -v '^ *+' conftest.er1 >conftest.err
23138 rm -f conftest.er1
23139 cat conftest.err >&5
d589327a 23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23141 (exit $ac_status); } && {
23142 test -z "$ac_c_werror_flag" ||
23143 test ! -s conftest.err
23144 } && test -s conftest.$ac_objext; then
a848cd7e
SC
23145 ac_hi=$ac_mid
23146else
d589327a 23147 echo "$as_me: failed program was:" >&5
a848cd7e
SC
23148sed 's/^/| /' conftest.$ac_ext >&5
23149
47964710 23150 ac_lo=`expr '(' $ac_mid ')' + 1`
a848cd7e 23151fi
47964710
VS
23152
23153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23154done
23155case $ac_lo in
23156?*) ac_cv_sizeof_long_long=$ac_lo;;
47964710 23157'') if test "$ac_cv_type_long_long" = yes; then
d589327a 23158 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
a848cd7e 23159See \`config.log' for more details." >&5
d589327a 23160echo "$as_me: error: cannot compute sizeof (long long)
a848cd7e 23161See \`config.log' for more details." >&2;}
d589327a 23162 { (exit 77); exit 77; }; }
47964710
VS
23163 else
23164 ac_cv_sizeof_long_long=0
23165 fi ;;
a848cd7e 23166esac
a848cd7e
SC
23167else
23168 cat >conftest.$ac_ext <<_ACEOF
23169/* confdefs.h. */
23170_ACEOF
23171cat confdefs.h >>conftest.$ac_ext
23172cat >>conftest.$ac_ext <<_ACEOF
23173/* end confdefs.h. */
23174$ac_includes_default
d589327a
VZ
23175 typedef long long ac__type_sizeof_;
23176static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23177static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
a848cd7e
SC
23178#include <stdio.h>
23179#include <stdlib.h>
23180int
23181main ()
23182{
23183
23184 FILE *f = fopen ("conftest.val", "w");
23185 if (! f)
47964710 23186 return 1;
d589327a 23187 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
a848cd7e 23188 {
47964710 23189 long int i = longval ();
d589327a 23190 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 23191 return 1;
d589327a 23192 fprintf (f, "%ld\n", i);
a848cd7e
SC
23193 }
23194 else
23195 {
47964710 23196 unsigned long int i = ulongval ();
d589327a 23197 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 23198 return 1;
d589327a 23199 fprintf (f, "%lu\n", i);
a848cd7e 23200 }
47964710 23201 return ferror (f) || fclose (f) != 0;
a848cd7e
SC
23202
23203 ;
23204 return 0;
23205}
23206_ACEOF
23207rm -f conftest$ac_exeext
47964710
VS
23208if { (ac_try="$ac_link"
23209case "(($ac_try" in
23210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211 *) ac_try_echo=$ac_try;;
23212esac
d589327a 23213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23214 (eval "$ac_link") 2>&5
a848cd7e 23215 ac_status=$?
d589327a 23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 23217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
23218 { (case "(($ac_try" in
23219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220 *) ac_try_echo=$ac_try;;
23221esac
d589327a 23222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23223 (eval "$ac_try") 2>&5
a848cd7e 23224 ac_status=$?
d589327a 23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
23226 (exit $ac_status); }; }; then
23227 ac_cv_sizeof_long_long=`cat conftest.val`
23228else
d589327a
VZ
23229 echo "$as_me: program exited with status $ac_status" >&5
23230echo "$as_me: failed program was:" >&5
a848cd7e
SC
23231sed 's/^/| /' conftest.$ac_ext >&5
23232
23233( exit $ac_status )
47964710 23234if test "$ac_cv_type_long_long" = yes; then
d589327a 23235 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
a848cd7e 23236See \`config.log' for more details." >&5
d589327a 23237echo "$as_me: error: cannot compute sizeof (long long)
a848cd7e 23238See \`config.log' for more details." >&2;}
d589327a 23239 { (exit 77); exit 77; }; }
47964710
VS
23240 else
23241 ac_cv_sizeof_long_long=0
23242 fi
a848cd7e 23243fi
47964710 23244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23245fi
23246rm -f conftest.val
4db03d26 23247fi
d589327a
VZ
23248{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23249echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
47964710
VS
23250
23251
23252
a848cd7e
SC
23253cat >>confdefs.h <<_ACEOF
23254#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23255_ACEOF
23256
23257
23258esac
23259
d589327a
VZ
23260{ echo "$as_me:$LINENO: checking for wchar_t" >&5
23261echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23262if test "${ac_cv_type_wchar_t+set}" = set; then
23263 echo $ECHO_N "(cached) $ECHO_C" >&6
23264else
23265 cat >conftest.$ac_ext <<_ACEOF
23266/* confdefs.h. */
23267_ACEOF
23268cat confdefs.h >>conftest.$ac_ext
23269cat >>conftest.$ac_ext <<_ACEOF
23270/* end confdefs.h. */
23271
23272 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23273 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23274 # error "fake wchar_t"
23275 #endif
23276 #ifdef HAVE_WCHAR_H
23277 # ifdef __CYGWIN__
23278 # include <stddef.h>
23279 # endif
23280 # include <wchar.h>
23281 #endif
23282 #ifdef HAVE_STDLIB_H
23283 # include <stdlib.h>
23284 #endif
23285 #include <stdio.h>
23286
23287
23288
23289typedef wchar_t ac__type_new_;
23290int
23291main ()
23292{
23293if ((ac__type_new_ *) 0)
23294 return 0;
23295if (sizeof (ac__type_new_))
23296 return 0;
23297 ;
23298 return 0;
23299}
23300_ACEOF
23301rm -f conftest.$ac_objext
23302if { (ac_try="$ac_compile"
23303case "(($ac_try" in
23304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23305 *) ac_try_echo=$ac_try;;
23306esac
23307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23308 (eval "$ac_compile") 2>conftest.er1
23309 ac_status=$?
23310 grep -v '^ *+' conftest.er1 >conftest.err
23311 rm -f conftest.er1
23312 cat conftest.err >&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } && {
23315 test -z "$ac_c_werror_flag" ||
23316 test ! -s conftest.err
23317 } && test -s conftest.$ac_objext; then
23318 ac_cv_type_wchar_t=yes
23319else
23320 echo "$as_me: failed program was:" >&5
23321sed 's/^/| /' conftest.$ac_ext >&5
23322
23323 ac_cv_type_wchar_t=no
23324fi
23325
23326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23327fi
23328{ echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23329echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23330
47964710
VS
23331# The cast to long int works around a bug in the HP C Compiler
23332# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23333# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23334# This bug is HP SR number 8606223364.
d589327a
VZ
23335{ echo "$as_me:$LINENO: checking size of wchar_t" >&5
23336echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
238ecede 23337if test "${ac_cv_sizeof_wchar_t+set}" = set; then
d589327a 23338 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 23339else
238ecede
MW
23340 if test "$cross_compiling" = yes; then
23341 # Depending upon the size, compute the lo and hi bounds.
23342cat >conftest.$ac_ext <<_ACEOF
23343/* confdefs.h. */
23344_ACEOF
23345cat confdefs.h >>conftest.$ac_ext
23346cat >>conftest.$ac_ext <<_ACEOF
23347/* end confdefs.h. */
23348
83d8eb47
MW
23349 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23350 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
23351 # error "fake wchar_t"
23352 #endif
23353 #ifdef HAVE_WCHAR_H
23354 # ifdef __CYGWIN__
23355 # include <stddef.h>
23356 # endif
23357 # include <wchar.h>
23358 #endif
23359 #ifdef HAVE_STDLIB_H
23360 # include <stdlib.h>
23361 #endif
23362 #include <stdio.h>
23363
23364
23365
d589327a 23366 typedef wchar_t ac__type_sizeof_;
238ecede
MW
23367int
23368main ()
23369{
d589327a 23370static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
238ecede
MW
23371test_array [0] = 0
23372
23373 ;
23374 return 0;
23375}
23376_ACEOF
23377rm -f conftest.$ac_objext
47964710
VS
23378if { (ac_try="$ac_compile"
23379case "(($ac_try" in
23380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381 *) ac_try_echo=$ac_try;;
23382esac
d589327a 23383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23384 (eval "$ac_compile") 2>conftest.er1
238ecede
MW
23385 ac_status=$?
23386 grep -v '^ *+' conftest.er1 >conftest.err
23387 rm -f conftest.er1
23388 cat conftest.err >&5
d589327a 23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23390 (exit $ac_status); } && {
23391 test -z "$ac_c_werror_flag" ||
23392 test ! -s conftest.err
23393 } && test -s conftest.$ac_objext; then
238ecede
MW
23394 ac_lo=0 ac_mid=0
23395 while :; do
23396 cat >conftest.$ac_ext <<_ACEOF
23397/* confdefs.h. */
23398_ACEOF
23399cat confdefs.h >>conftest.$ac_ext
23400cat >>conftest.$ac_ext <<_ACEOF
23401/* end confdefs.h. */
23402
83d8eb47
MW
23403 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23404 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
23405 # error "fake wchar_t"
23406 #endif
23407 #ifdef HAVE_WCHAR_H
23408 # ifdef __CYGWIN__
23409 # include <stddef.h>
23410 # endif
23411 # include <wchar.h>
23412 #endif
23413 #ifdef HAVE_STDLIB_H
23414 # include <stdlib.h>
23415 #endif
23416 #include <stdio.h>
23417
23418
23419
d589327a 23420 typedef wchar_t ac__type_sizeof_;
238ecede
MW
23421int
23422main ()
23423{
d589327a 23424static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4db03d26
VZ
23425test_array [0] = 0
23426
23427 ;
23428 return 0;
23429}
23430_ACEOF
23431rm -f conftest.$ac_objext
47964710
VS
23432if { (ac_try="$ac_compile"
23433case "(($ac_try" in
23434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23435 *) ac_try_echo=$ac_try;;
23436esac
d589327a 23437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23438 (eval "$ac_compile") 2>conftest.er1
4db03d26
VZ
23439 ac_status=$?
23440 grep -v '^ *+' conftest.er1 >conftest.err
23441 rm -f conftest.er1
23442 cat conftest.err >&5
d589327a 23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23444 (exit $ac_status); } && {
23445 test -z "$ac_c_werror_flag" ||
23446 test ! -s conftest.err
23447 } && test -s conftest.$ac_objext; then
4db03d26
VZ
23448 ac_hi=$ac_mid; break
23449else
d589327a 23450 echo "$as_me: failed program was:" >&5
4db03d26
VZ
23451sed 's/^/| /' conftest.$ac_ext >&5
23452
47964710
VS
23453 ac_lo=`expr $ac_mid + 1`
23454 if test $ac_lo -le $ac_mid; then
23455 ac_lo= ac_hi=
23456 break
23457 fi
23458 ac_mid=`expr 2 '*' $ac_mid + 1`
4db03d26 23459fi
47964710
VS
23460
23461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4db03d26
VZ
23462 done
23463else
d589327a 23464 echo "$as_me: failed program was:" >&5
4db03d26
VZ
23465sed 's/^/| /' conftest.$ac_ext >&5
23466
47964710 23467 cat >conftest.$ac_ext <<_ACEOF
4db03d26
VZ
23468/* confdefs.h. */
23469_ACEOF
23470cat confdefs.h >>conftest.$ac_ext
23471cat >>conftest.$ac_ext <<_ACEOF
23472/* end confdefs.h. */
23473
23474 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23475 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23476 # error "fake wchar_t"
23477 #endif
23478 #ifdef HAVE_WCHAR_H
23479 # ifdef __CYGWIN__
23480 # include <stddef.h>
23481 # endif
23482 # include <wchar.h>
23483 #endif
23484 #ifdef HAVE_STDLIB_H
23485 # include <stdlib.h>
23486 #endif
23487 #include <stdio.h>
23488
23489
23490
d589327a 23491 typedef wchar_t ac__type_sizeof_;
4db03d26
VZ
23492int
23493main ()
23494{
d589327a 23495static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
238ecede
MW
23496test_array [0] = 0
23497
23498 ;
23499 return 0;
23500}
23501_ACEOF
23502rm -f conftest.$ac_objext
47964710
VS
23503if { (ac_try="$ac_compile"
23504case "(($ac_try" in
23505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506 *) ac_try_echo=$ac_try;;
23507esac
d589327a 23508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23509 (eval "$ac_compile") 2>conftest.er1
238ecede
MW
23510 ac_status=$?
23511 grep -v '^ *+' conftest.er1 >conftest.err
23512 rm -f conftest.er1
23513 cat conftest.err >&5
d589327a 23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23515 (exit $ac_status); } && {
23516 test -z "$ac_c_werror_flag" ||
23517 test ! -s conftest.err
23518 } && test -s conftest.$ac_objext; then
39b61aa3
VZ
23519 ac_hi=-1 ac_mid=-1
23520 while :; do
23521 cat >conftest.$ac_ext <<_ACEOF
23522/* confdefs.h. */
23523_ACEOF
23524cat confdefs.h >>conftest.$ac_ext
23525cat >>conftest.$ac_ext <<_ACEOF
23526/* end confdefs.h. */
23527
23528 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23529 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23530 # error "fake wchar_t"
23531 #endif
23532 #ifdef HAVE_WCHAR_H
23533 # ifdef __CYGWIN__
23534 # include <stddef.h>
23535 # endif
23536 # include <wchar.h>
23537 #endif
23538 #ifdef HAVE_STDLIB_H
23539 # include <stdlib.h>
23540 #endif
23541 #include <stdio.h>
23542
23543
23544
d589327a 23545 typedef wchar_t ac__type_sizeof_;
39b61aa3
VZ
23546int
23547main ()
23548{
d589327a 23549static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
39b61aa3
VZ
23550test_array [0] = 0
23551
23552 ;
23553 return 0;
23554}
23555_ACEOF
23556rm -f conftest.$ac_objext
47964710
VS
23557if { (ac_try="$ac_compile"
23558case "(($ac_try" in
23559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23560 *) ac_try_echo=$ac_try;;
23561esac
d589327a 23562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23563 (eval "$ac_compile") 2>conftest.er1
238ecede 23564 ac_status=$?
39b61aa3
VZ
23565 grep -v '^ *+' conftest.er1 >conftest.err
23566 rm -f conftest.er1
23567 cat conftest.err >&5
d589327a 23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23569 (exit $ac_status); } && {
23570 test -z "$ac_c_werror_flag" ||
23571 test ! -s conftest.err
23572 } && test -s conftest.$ac_objext; then
39b61aa3
VZ
23573 ac_lo=$ac_mid; break
23574else
d589327a 23575 echo "$as_me: failed program was:" >&5
39b61aa3
VZ
23576sed 's/^/| /' conftest.$ac_ext >&5
23577
47964710
VS
23578 ac_hi=`expr '(' $ac_mid ')' - 1`
23579 if test $ac_mid -le $ac_hi; then
23580 ac_lo= ac_hi=
23581 break
23582 fi
23583 ac_mid=`expr 2 '*' $ac_mid`
39b61aa3 23584fi
47964710
VS
23585
23586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39b61aa3
VZ
23587 done
23588else
d589327a 23589 echo "$as_me: failed program was:" >&5
39b61aa3
VZ
23590sed 's/^/| /' conftest.$ac_ext >&5
23591
47964710 23592 ac_lo= ac_hi=
39b61aa3 23593fi
47964710
VS
23594
23595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39b61aa3 23596fi
47964710
VS
23597
23598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39b61aa3
VZ
23599# Binary search between lo and hi bounds.
23600while test "x$ac_lo" != "x$ac_hi"; do
23601 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23602 cat >conftest.$ac_ext <<_ACEOF
23603/* confdefs.h. */
23604_ACEOF
23605cat confdefs.h >>conftest.$ac_ext
23606cat >>conftest.$ac_ext <<_ACEOF
23607/* end confdefs.h. */
23608
23609 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23610 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23611 # error "fake wchar_t"
23612 #endif
23613 #ifdef HAVE_WCHAR_H
23614 # ifdef __CYGWIN__
23615 # include <stddef.h>
23616 # endif
23617 # include <wchar.h>
23618 #endif
23619 #ifdef HAVE_STDLIB_H
23620 # include <stdlib.h>
23621 #endif
23622 #include <stdio.h>
23623
23624
23625
d589327a 23626 typedef wchar_t ac__type_sizeof_;
39b61aa3
VZ
23627int
23628main ()
23629{
d589327a 23630static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
39b61aa3
VZ
23631test_array [0] = 0
23632
23633 ;
23634 return 0;
23635}
23636_ACEOF
23637rm -f conftest.$ac_objext
47964710
VS
23638if { (ac_try="$ac_compile"
23639case "(($ac_try" in
23640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23641 *) ac_try_echo=$ac_try;;
23642esac
d589327a 23643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23644 (eval "$ac_compile") 2>conftest.er1
238ecede 23645 ac_status=$?
39b61aa3
VZ
23646 grep -v '^ *+' conftest.er1 >conftest.err
23647 rm -f conftest.er1
23648 cat conftest.err >&5
d589327a 23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23650 (exit $ac_status); } && {
23651 test -z "$ac_c_werror_flag" ||
23652 test ! -s conftest.err
23653 } && test -s conftest.$ac_objext; then
39b61aa3
VZ
23654 ac_hi=$ac_mid
23655else
d589327a 23656 echo "$as_me: failed program was:" >&5
39b61aa3
VZ
23657sed 's/^/| /' conftest.$ac_ext >&5
23658
47964710 23659 ac_lo=`expr '(' $ac_mid ')' + 1`
39b61aa3 23660fi
47964710
VS
23661
23662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39b61aa3
VZ
23663done
23664case $ac_lo in
23665?*) ac_cv_sizeof_wchar_t=$ac_lo;;
47964710 23666'') if test "$ac_cv_type_wchar_t" = yes; then
d589327a 23667 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
39b61aa3 23668See \`config.log' for more details." >&5
d589327a 23669echo "$as_me: error: cannot compute sizeof (wchar_t)
39b61aa3 23670See \`config.log' for more details." >&2;}
d589327a 23671 { (exit 77); exit 77; }; }
47964710
VS
23672 else
23673 ac_cv_sizeof_wchar_t=0
23674 fi ;;
39b61aa3
VZ
23675esac
23676else
23677 cat >conftest.$ac_ext <<_ACEOF
238ecede
MW
23678/* confdefs.h. */
23679_ACEOF
23680cat confdefs.h >>conftest.$ac_ext
23681cat >>conftest.$ac_ext <<_ACEOF
23682/* end confdefs.h. */
23683
83d8eb47
MW
23684 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23685 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
23686 # error "fake wchar_t"
23687 #endif
23688 #ifdef HAVE_WCHAR_H
23689 # ifdef __CYGWIN__
23690 # include <stddef.h>
23691 # endif
23692 # include <wchar.h>
23693 #endif
23694 #ifdef HAVE_STDLIB_H
23695 # include <stdlib.h>
23696 #endif
23697 #include <stdio.h>
23698
23699
23700
d589327a
VZ
23701 typedef wchar_t ac__type_sizeof_;
23702static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23703static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
238ecede
MW
23704#include <stdio.h>
23705#include <stdlib.h>
23706int
23707main ()
23708{
a848cd7e 23709
238ecede
MW
23710 FILE *f = fopen ("conftest.val", "w");
23711 if (! f)
47964710 23712 return 1;
d589327a 23713 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
238ecede 23714 {
47964710 23715 long int i = longval ();
d589327a 23716 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 23717 return 1;
d589327a 23718 fprintf (f, "%ld\n", i);
238ecede
MW
23719 }
23720 else
23721 {
47964710 23722 unsigned long int i = ulongval ();
d589327a 23723 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 23724 return 1;
d589327a 23725 fprintf (f, "%lu\n", i);
238ecede 23726 }
47964710 23727 return ferror (f) || fclose (f) != 0;
238ecede
MW
23728
23729 ;
23730 return 0;
23731}
a848cd7e
SC
23732_ACEOF
23733rm -f conftest$ac_exeext
47964710
VS
23734if { (ac_try="$ac_link"
23735case "(($ac_try" in
23736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23737 *) ac_try_echo=$ac_try;;
23738esac
d589327a 23739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23740 (eval "$ac_link") 2>&5
a848cd7e 23741 ac_status=$?
d589327a 23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 23743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
23744 { (case "(($ac_try" in
23745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746 *) ac_try_echo=$ac_try;;
23747esac
d589327a 23748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23749 (eval "$ac_try") 2>&5
a848cd7e 23750 ac_status=$?
d589327a 23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 23752 (exit $ac_status); }; }; then
238ecede 23753 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e 23754else
d589327a
VZ
23755 echo "$as_me: program exited with status $ac_status" >&5
23756echo "$as_me: failed program was:" >&5
a848cd7e
SC
23757sed 's/^/| /' conftest.$ac_ext >&5
23758
23759( exit $ac_status )
47964710 23760if test "$ac_cv_type_wchar_t" = yes; then
d589327a 23761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
238ecede 23762See \`config.log' for more details." >&5
d589327a 23763echo "$as_me: error: cannot compute sizeof (wchar_t)
238ecede 23764See \`config.log' for more details." >&2;}
d589327a 23765 { (exit 77); exit 77; }; }
47964710
VS
23766 else
23767 ac_cv_sizeof_wchar_t=0
23768 fi
a848cd7e 23769fi
47964710 23770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 23771fi
238ecede 23772rm -f conftest.val
238ecede 23773fi
d589327a
VZ
23774{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23775echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
47964710
VS
23776
23777
23778
a848cd7e 23779cat >>confdefs.h <<_ACEOF
238ecede 23780#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
23781_ACEOF
23782
23783
6517fa86 23784if test "$ac_cv_sizeof_wchar_t" != 0; then
47a7e797
MW
23785 wxUSE_WCHAR_T=yes
23786else
23787 wxUSE_WCHAR_T=no
23788fi
238ecede 23789
d589327a
VZ
23790{ echo "$as_me:$LINENO: checking for va_copy" >&5
23791echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
ba3d13e1 23792if test "${wx_cv_func_va_copy+set}" = set; then
d589327a 23793 echo $ECHO_N "(cached) $ECHO_C" >&6
ba3d13e1
VZ
23794else
23795
47964710 23796 ac_ext=cpp
65c11337
VZ
23797ac_cpp='$CXXCPP $CPPFLAGS'
23798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23801
ba3d13e1
VZ
23802 cat >conftest.$ac_ext <<_ACEOF
23803
23804 #include <stdarg.h>
23805 void foo(char *f, ...)
23806 {
23807 va_list ap1, ap2;
23808 va_start(ap1, f);
23809 va_copy(ap2, ap1);
23810 va_end(ap2);
23811 va_end(ap1);
23812 }
5886b072
VZ
23813 int main()
23814 {
b902e639
VZ
23815 foo("hi", 17);
23816 return 0;
5886b072 23817 }
ba3d13e1
VZ
23818_ACEOF
23819rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
23820if { (ac_try="$ac_link"
23821case "(($ac_try" in
23822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823 *) ac_try_echo=$ac_try;;
23824esac
d589327a 23825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23826 (eval "$ac_link") 2>conftest.er1
ba3d13e1
VZ
23827 ac_status=$?
23828 grep -v '^ *+' conftest.er1 >conftest.err
23829 rm -f conftest.er1
23830 cat conftest.err >&5
d589327a 23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23832 (exit $ac_status); } && {
23833 test -z "$ac_cxx_werror_flag" ||
23834 test ! -s conftest.err
d589327a
VZ
23835 } && test -s conftest$ac_exeext &&
23836 $as_test_x conftest$ac_exeext; then
ba3d13e1
VZ
23837 wx_cv_func_va_copy=yes
23838else
d589327a 23839 echo "$as_me: failed program was:" >&5
ba3d13e1
VZ
23840sed 's/^/| /' conftest.$ac_ext >&5
23841
47964710 23842 wx_cv_func_va_copy=no
ba3d13e1
VZ
23843
23844fi
47964710
VS
23845
23846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ba3d13e1 23847 conftest$ac_exeext conftest.$ac_ext
65c11337
VZ
23848 ac_ext=c
23849ac_cpp='$CPP $CPPFLAGS'
23850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23852ac_compiler_gnu=$ac_cv_c_compiler_gnu
23853
ba3d13e1
VZ
23854
23855
23856fi
d589327a
VZ
23857{ echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23858echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
ba3d13e1
VZ
23859
23860if test $wx_cv_func_va_copy = "yes"; then
23861 cat >>confdefs.h <<\_ACEOF
23862#define HAVE_VA_COPY 1
23863_ACEOF
23864
23865else
d589327a
VZ
23866 { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23867echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
ba3d13e1 23868if test "${wx_cv_type_va_list_lvalue+set}" = set; then
d589327a 23869 echo $ECHO_N "(cached) $ECHO_C" >&6
ba3d13e1
VZ
23870else
23871
23872 if test "$cross_compiling" = yes; then
23873 wx_cv_type_va_list_lvalue=yes
23874
23875else
23876 cat >conftest.$ac_ext <<_ACEOF
23877
23878 #include <stdarg.h>
23879 int foo(char *f, ...)
23880 {
23881 va_list ap1, ap2;
23882 va_start(ap1, f);
23883 ap2 = ap1;
23884 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23885 return 1;
23886 va_end(ap2);
23887 va_end(ap1);
23888 return 0;
23889 }
23890 int main()
23891 {
23892 return foo("hi", 17);
23893 }
23894_ACEOF
23895rm -f conftest$ac_exeext
47964710
VS
23896if { (ac_try="$ac_link"
23897case "(($ac_try" in
23898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23899 *) ac_try_echo=$ac_try;;
23900esac
d589327a 23901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23902 (eval "$ac_link") 2>&5
ba3d13e1 23903 ac_status=$?
d589327a 23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ba3d13e1 23905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
23906 { (case "(($ac_try" in
23907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908 *) ac_try_echo=$ac_try;;
23909esac
d589327a 23910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23911 (eval "$ac_try") 2>&5
ba3d13e1 23912 ac_status=$?
d589327a 23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ba3d13e1
VZ
23914 (exit $ac_status); }; }; then
23915 wx_cv_type_va_list_lvalue=yes
23916else
d589327a
VZ
23917 echo "$as_me: program exited with status $ac_status" >&5
23918echo "$as_me: failed program was:" >&5
ba3d13e1
VZ
23919sed 's/^/| /' conftest.$ac_ext >&5
23920
23921( exit $ac_status )
23922wx_cv_type_va_list_lvalue=no
23923fi
47964710 23924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ba3d13e1
VZ
23925fi
23926
23927
47964710
VS
23928
23929
ba3d13e1 23930fi
d589327a
VZ
23931{ echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23932echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
ba3d13e1
VZ
23933
23934 if test $wx_cv_type_va_list_lvalue != "yes"; then
23935 cat >>confdefs.h <<\_ACEOF
23936#define VA_LIST_IS_ARRAY 1
23937_ACEOF
23938
23939 fi
23940fi
23941
70c536f3
VZ
23942if test "$wxUSE_VARARG_MACROS" = "yes"; then
23943
d589327a
VZ
23944{ echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23945echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
ca766534 23946if test "${wx_cv_have_variadic_macros+set}" = set; then
d589327a 23947 echo $ECHO_N "(cached) $ECHO_C" >&6
ca766534
VS
23948else
23949
47964710 23950 ac_ext=cpp
38c6938f
VZ
23951ac_cpp='$CXXCPP $CPPFLAGS'
23952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23955
ca766534
VS
23956 cat >conftest.$ac_ext <<_ACEOF
23957/* confdefs.h. */
23958_ACEOF
23959cat confdefs.h >>conftest.$ac_ext
23960cat >>conftest.$ac_ext <<_ACEOF
23961/* end confdefs.h. */
23962
23963 #include <stdio.h>
23964 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23965
23966int
23967main ()
23968{
23969
23970 test("%s %d %p", "test", 1, 0);
23971
23972
23973 ;
23974 return 0;
23975}
23976_ACEOF
23977rm -f conftest.$ac_objext
47964710
VS
23978if { (ac_try="$ac_compile"
23979case "(($ac_try" in
23980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23981 *) ac_try_echo=$ac_try;;
23982esac
d589327a 23983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 23984 (eval "$ac_compile") 2>conftest.er1
ca766534
VS
23985 ac_status=$?
23986 grep -v '^ *+' conftest.er1 >conftest.err
23987 rm -f conftest.er1
23988 cat conftest.err >&5
d589327a 23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
23990 (exit $ac_status); } && {
23991 test -z "$ac_cxx_werror_flag" ||
23992 test ! -s conftest.err
23993 } && test -s conftest.$ac_objext; then
ca766534
VS
23994 wx_cv_have_variadic_macros=yes
23995else
d589327a 23996 echo "$as_me: failed program was:" >&5
ca766534
VS
23997sed 's/^/| /' conftest.$ac_ext >&5
23998
47964710 23999 wx_cv_have_variadic_macros=no
ca766534
VS
24000
24001fi
47964710
VS
24002
24003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38c6938f
VZ
24004 ac_ext=c
24005ac_cpp='$CPP $CPPFLAGS'
24006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24008ac_compiler_gnu=$ac_cv_c_compiler_gnu
24009
ca766534
VS
24010
24011
24012fi
d589327a
VZ
24013{ echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24014echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
ca766534
VS
24015
24016if test $wx_cv_have_variadic_macros = "yes"; then
24017 cat >>confdefs.h <<\_ACEOF
24018#define HAVE_VARIADIC_MACROS 1
24019_ACEOF
24020
24021fi
24022
70c536f3 24023fi
41148443
VZ
24024
24025LARGEFILE_CPPFLAGS=
47964710 24026# Check whether --enable-largefile was given.
a848cd7e 24027if test "${enable_largefile+set}" = set; then
47964710
VS
24028 enableval=$enable_largefile;
24029fi
a848cd7e 24030
a848cd7e
SC
24031if test "$enable_largefile" != no; then
24032 wx_largefile=no
24033
d589327a
VZ
24034 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24035echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
a848cd7e 24036if test "${ac_cv_sys_file_offset_bits+set}" = set; then
d589327a 24037 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
24038else
24039
24040 cat >conftest.$ac_ext <<_ACEOF
24041/* confdefs.h. */
24042_ACEOF
24043cat confdefs.h >>conftest.$ac_ext
24044cat >>conftest.$ac_ext <<_ACEOF
24045/* end confdefs.h. */
24046#define _FILE_OFFSET_BITS 64
24047 #include <sys/types.h>
24048int
24049main ()
24050{
24051typedef struct {
24052 unsigned int field: sizeof(off_t) == 8;
24053} wxlf;
24054
24055 ;
24056 return 0;
24057}
24058_ACEOF
24059rm -f conftest.$ac_objext
47964710
VS
24060if { (ac_try="$ac_compile"
24061case "(($ac_try" in
24062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24063 *) ac_try_echo=$ac_try;;
24064esac
d589327a 24065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 24066 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24067 ac_status=$?
ac1cb8d3
VS
24068 grep -v '^ *+' conftest.er1 >conftest.err
24069 rm -f conftest.er1
24070 cat conftest.err >&5
d589327a 24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24072 (exit $ac_status); } && {
24073 test -z "$ac_c_werror_flag" ||
24074 test ! -s conftest.err
24075 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24076 ac_cv_sys_file_offset_bits=64
24077else
d589327a 24078 echo "$as_me: failed program was:" >&5
a848cd7e
SC
24079sed 's/^/| /' conftest.$ac_ext >&5
24080
47964710 24081 ac_cv_sys_file_offset_bits=no
a848cd7e 24082fi
47964710
VS
24083
24084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24085
24086
24087fi
d589327a
VZ
24088{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24089echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
a848cd7e
SC
24090
24091 if test "$ac_cv_sys_file_offset_bits" != no; then
24092 wx_largefile=yes
24093 cat >>confdefs.h <<_ACEOF
24094#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24095_ACEOF
24096
24097 fi
24098
24099 if test "x$wx_largefile" != "xyes"; then
24100
d589327a
VZ
24101 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24102echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
a848cd7e 24103if test "${ac_cv_sys_large_files+set}" = set; then
d589327a 24104 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
24105else
24106
24107 cat >conftest.$ac_ext <<_ACEOF
24108/* confdefs.h. */
24109_ACEOF
24110cat confdefs.h >>conftest.$ac_ext
24111cat >>conftest.$ac_ext <<_ACEOF
24112/* end confdefs.h. */
24113#define _LARGE_FILES 1
24114 #include <sys/types.h>
24115int
24116main ()
24117{
24118typedef struct {
24119 unsigned int field: sizeof(off_t) == 8;
24120} wxlf;
24121
24122 ;
24123 return 0;
24124}
24125_ACEOF
24126rm -f conftest.$ac_objext
47964710
VS
24127if { (ac_try="$ac_compile"
24128case "(($ac_try" in
24129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24130 *) ac_try_echo=$ac_try;;
24131esac
d589327a 24132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 24133 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24134 ac_status=$?
ac1cb8d3
VS
24135 grep -v '^ *+' conftest.er1 >conftest.err
24136 rm -f conftest.er1
24137 cat conftest.err >&5
d589327a 24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24139 (exit $ac_status); } && {
24140 test -z "$ac_c_werror_flag" ||
24141 test ! -s conftest.err
24142 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24143 ac_cv_sys_large_files=1
24144else
d589327a 24145 echo "$as_me: failed program was:" >&5
a848cd7e
SC
24146sed 's/^/| /' conftest.$ac_ext >&5
24147
47964710 24148 ac_cv_sys_large_files=no
a848cd7e 24149fi
47964710
VS
24150
24151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24152
24153
24154fi
d589327a
VZ
24155{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24156echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
a848cd7e
SC
24157
24158 if test "$ac_cv_sys_large_files" != no; then
24159 wx_largefile=yes
24160 cat >>confdefs.h <<_ACEOF
24161#define _LARGE_FILES $ac_cv_sys_large_files
24162_ACEOF
24163
24164 fi
24165
24166 fi
24167
d589327a
VZ
24168 { echo "$as_me:$LINENO: checking if large file support is available" >&5
24169echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
a848cd7e
SC
24170 if test "x$wx_largefile" = "xyes"; then
24171 cat >>confdefs.h <<\_ACEOF
24172#define HAVE_LARGEFILE_SUPPORT 1
24173_ACEOF
24174
24175 fi
d589327a
VZ
24176 { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24177echo "${ECHO_T}$wx_largefile" >&6; }
a848cd7e
SC
24178fi
24179
41148443
VZ
24180if test "$ac_cv_sys_file_offset_bits" = "64"; then
24181 LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24182elif test "$ac_cv_sys_large_files" = 1; then
24183 LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
24184fi
5b674b9d 24185
41148443
VZ
24186if test -n "$LARGEFILE_CPPFLAGS"; then
24187 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
00421666 24188
41148443 24189 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
d589327a
VZ
24190 { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24191echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
00421666 24192if test "${wx_cv_STDC_EXT_required+set}" = set; then
d589327a 24193 echo $ECHO_N "(cached) $ECHO_C" >&6
00421666
MW
24194else
24195
41148443 24196 ac_ext=cpp
9b8888f9
VZ
24197ac_cpp='$CXXCPP $CPPFLAGS'
24198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24201
41148443 24202 cat >conftest.$ac_ext <<_ACEOF
00421666
MW
24203/* confdefs.h. */
24204_ACEOF
24205cat confdefs.h >>conftest.$ac_ext
24206cat >>conftest.$ac_ext <<_ACEOF
24207/* end confdefs.h. */
24208
24209int
24210main ()
24211{
24212
41148443
VZ
24213 #ifndef __STDC_EXT__
24214 choke me
24215 #endif
00421666
MW
24216
24217 ;
24218 return 0;
24219}
24220_ACEOF
24221rm -f conftest.$ac_objext
47964710
VS
24222if { (ac_try="$ac_compile"
24223case "(($ac_try" in
24224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24225 *) ac_try_echo=$ac_try;;
24226esac
d589327a 24227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 24228 (eval "$ac_compile") 2>conftest.er1
00421666
MW
24229 ac_status=$?
24230 grep -v '^ *+' conftest.er1 >conftest.err
24231 rm -f conftest.er1
24232 cat conftest.err >&5
d589327a 24233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24234 (exit $ac_status); } && {
24235 test -z "$ac_cxx_werror_flag" ||
24236 test ! -s conftest.err
24237 } && test -s conftest.$ac_objext; then
00421666
MW
24238 wx_cv_STDC_EXT_required=no
24239else
d589327a 24240 echo "$as_me: failed program was:" >&5
00421666
MW
24241sed 's/^/| /' conftest.$ac_ext >&5
24242
47964710 24243 wx_cv_STDC_EXT_required=yes
00421666
MW
24244
24245fi
47964710
VS
24246
24247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41148443 24248 ac_ext=c
9b8888f9
VZ
24249ac_cpp='$CPP $CPPFLAGS'
24250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24252ac_compiler_gnu=$ac_cv_c_compiler_gnu
24253
00421666
MW
24254
24255
24256fi
d589327a
VZ
24257{ echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
24258echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
41148443
VZ
24259 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
24260 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666 24261 fi
5b674b9d 24262 fi
41148443
VZ
24263fi
24264
24265ac_ext=cpp
24266ac_cpp='$CXXCPP $CPPFLAGS'
24267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24270
24271old_CPPFLAGS="$CPPFLAGS"
24272CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
d589327a
VZ
24273{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24274echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5294a27e 24275if test "${ac_cv_sys_largefile_source+set}" = set; then
d589327a 24276 echo $ECHO_N "(cached) $ECHO_C" >&6
5294a27e
VZ
24277else
24278 while :; do
5294a27e
VZ
24279 cat >conftest.$ac_ext <<_ACEOF
24280/* confdefs.h. */
24281_ACEOF
24282cat confdefs.h >>conftest.$ac_ext
24283cat >>conftest.$ac_ext <<_ACEOF
24284/* end confdefs.h. */
47964710
VS
24285#include <sys/types.h> /* for off_t */
24286 #include <stdio.h>
5294a27e
VZ
24287int
24288main ()
24289{
47964710
VS
24290int (*fp) (FILE *, off_t, int) = fseeko;
24291 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5294a27e
VZ
24292 ;
24293 return 0;
24294}
24295_ACEOF
47964710
VS
24296rm -f conftest.$ac_objext conftest$ac_exeext
24297if { (ac_try="$ac_link"
24298case "(($ac_try" in
24299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24300 *) ac_try_echo=$ac_try;;
24301esac
d589327a 24302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 24303 (eval "$ac_link") 2>conftest.er1
5294a27e
VZ
24304 ac_status=$?
24305 grep -v '^ *+' conftest.er1 >conftest.err
24306 rm -f conftest.er1
24307 cat conftest.err >&5
d589327a 24308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710 24309 (exit $ac_status); } && {
41148443 24310 test -z "$ac_cxx_werror_flag" ||
47964710 24311 test ! -s conftest.err
d589327a
VZ
24312 } && test -s conftest$ac_exeext &&
24313 $as_test_x conftest$ac_exeext; then
47964710 24314 ac_cv_sys_largefile_source=no; break
5294a27e 24315else
d589327a 24316 echo "$as_me: failed program was:" >&5
5294a27e
VZ
24317sed 's/^/| /' conftest.$ac_ext >&5
24318
47964710 24319
5294a27e 24320fi
47964710
VS
24321
24322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24323 conftest$ac_exeext conftest.$ac_ext
5294a27e
VZ
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#define _LARGEFILE_SOURCE 1
47964710
VS
24331#include <sys/types.h> /* for off_t */
24332 #include <stdio.h>
5294a27e
VZ
24333int
24334main ()
24335{
47964710
VS
24336int (*fp) (FILE *, off_t, int) = fseeko;
24337 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5294a27e
VZ
24338 ;
24339 return 0;
24340}
24341_ACEOF
47964710
VS
24342rm -f conftest.$ac_objext conftest$ac_exeext
24343if { (ac_try="$ac_link"
24344case "(($ac_try" in
24345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24346 *) ac_try_echo=$ac_try;;
24347esac
d589327a 24348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 24349 (eval "$ac_link") 2>conftest.er1
5294a27e
VZ
24350 ac_status=$?
24351 grep -v '^ *+' conftest.er1 >conftest.err
24352 rm -f conftest.er1
24353 cat conftest.err >&5
d589327a 24354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710 24355 (exit $ac_status); } && {
41148443 24356 test -z "$ac_cxx_werror_flag" ||
47964710 24357 test ! -s conftest.err
d589327a
VZ
24358 } && test -s conftest$ac_exeext &&
24359 $as_test_x conftest$ac_exeext; then
5294a27e
VZ
24360 ac_cv_sys_largefile_source=1; break
24361else
d589327a 24362 echo "$as_me: failed program was:" >&5
5294a27e
VZ
24363sed 's/^/| /' conftest.$ac_ext >&5
24364
47964710 24365
5294a27e 24366fi
47964710
VS
24367
24368rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24369 conftest$ac_exeext conftest.$ac_ext
24370 ac_cv_sys_largefile_source=unknown
5294a27e
VZ
24371 break
24372done
24373fi
d589327a
VZ
24374{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
24375echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
47964710
VS
24376case $ac_cv_sys_largefile_source in #(
24377 no | unknown) ;;
24378 *)
5294a27e
VZ
24379cat >>confdefs.h <<_ACEOF
24380#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24381_ACEOF
47964710
VS
24382;;
24383esac
d9bd1a73 24384rm -f conftest*
5294a27e
VZ
24385
24386# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
24387# in glibc 2.1.3, but that breaks too many other things.
24388# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
47964710 24389if test $ac_cv_sys_largefile_source != unknown; then
5294a27e
VZ
24390
24391cat >>confdefs.h <<\_ACEOF
24392#define HAVE_FSEEKO 1
24393_ACEOF
24394
24395fi
24396
41148443
VZ
24397CPPFLAGS="$old_CPPFLAGS"
24398ac_ext=c
24399ac_cpp='$CPP $CPPFLAGS'
24400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24402ac_compiler_gnu=$ac_cv_c_compiler_gnu
24403
24404if test "$ac_cv_sys_largefile_source" != no; then
24405 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
24406fi
24407
d589327a
VZ
24408{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24409echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
a848cd7e 24410if test "${ac_cv_c_bigendian+set}" = set; then
d589327a 24411 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
24412else
24413 ac_cv_c_bigendian=unknown
24414# See if sys/param.h defines the BYTE_ORDER macro.
24415cat >conftest.$ac_ext <<_ACEOF
24416/* confdefs.h. */
24417_ACEOF
24418cat confdefs.h >>conftest.$ac_ext
24419cat >>conftest.$ac_ext <<_ACEOF
24420/* end confdefs.h. */
24421#include <sys/types.h>
24422#include <sys/param.h>
24423int
24424main ()
24425{
24426
24427#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24428 bogus endian macros
24429#endif
24430 ;
24431 return 0;
24432}
24433_ACEOF
24434rm -f conftest.$ac_objext
47964710
VS
24435if { (ac_try="$ac_compile"
24436case "(($ac_try" in
24437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438 *) ac_try_echo=$ac_try;;
24439esac
d589327a 24440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 24441 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24442 ac_status=$?
ac1cb8d3
VS
24443 grep -v '^ *+' conftest.er1 >conftest.err
24444 rm -f conftest.er1
24445 cat conftest.err >&5
d589327a 24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24447 (exit $ac_status); } && {
24448 test -z "$ac_c_werror_flag" ||
24449 test ! -s conftest.err
24450 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24451 # It does; now see whether it defined to BIG_ENDIAN or not.
24452cat >conftest.$ac_ext <<_ACEOF
24453/* confdefs.h. */
24454_ACEOF
24455cat confdefs.h >>conftest.$ac_ext
24456cat >>conftest.$ac_ext <<_ACEOF
24457/* end confdefs.h. */
24458#include <sys/types.h>
24459#include <sys/param.h>
24460int
24461main ()
24462{
24463
24464#if BYTE_ORDER != BIG_ENDIAN
24465 not big endian
24466#endif
24467 ;
24468 return 0;
24469}
24470_ACEOF
24471rm -f conftest.$ac_objext
47964710
VS
24472if { (ac_try="$ac_compile"
24473case "(($ac_try" in
24474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475 *) ac_try_echo=$ac_try;;
24476esac
d589327a 24477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 24478 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24479 ac_status=$?
ac1cb8d3
VS
24480 grep -v '^ *+' conftest.er1 >conftest.err
24481 rm -f conftest.er1
24482 cat conftest.err >&5
d589327a 24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24484 (exit $ac_status); } && {
24485 test -z "$ac_c_werror_flag" ||
24486 test ! -s conftest.err
24487 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24488 ac_cv_c_bigendian=yes
24489else
d589327a 24490 echo "$as_me: failed program was:" >&5
a848cd7e
SC
24491sed 's/^/| /' conftest.$ac_ext >&5
24492
47964710 24493 ac_cv_c_bigendian=no
a848cd7e 24494fi
47964710
VS
24495
24496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 24497else
d589327a 24498 echo "$as_me: failed program was:" >&5
a848cd7e
SC
24499sed 's/^/| /' conftest.$ac_ext >&5
24500
47964710 24501
a848cd7e 24502fi
47964710
VS
24503
24504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24505if test $ac_cv_c_bigendian = unknown; then
24506if test "$cross_compiling" = yes; then
24507 ac_cv_c_bigendian=unknown
24508else
24509 cat >conftest.$ac_ext <<_ACEOF
24510/* confdefs.h. */
24511_ACEOF
24512cat confdefs.h >>conftest.$ac_ext
24513cat >>conftest.$ac_ext <<_ACEOF
24514/* end confdefs.h. */
24515main () {
24516 /* Are we little or big endian? From Harbison&Steele. */
24517 union
24518 {
24519 long l;
24520 char c[sizeof (long)];
24521 } u;
24522 u.l = 1;
24523 exit (u.c[sizeof (long) - 1] == 1);
24524}
24525_ACEOF
24526rm -f conftest$ac_exeext
47964710
VS
24527if { (ac_try="$ac_link"
24528case "(($ac_try" in
24529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24530 *) ac_try_echo=$ac_try;;
24531esac
d589327a 24532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 24533 (eval "$ac_link") 2>&5
a848cd7e 24534 ac_status=$?
d589327a 24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 24536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
24537 { (case "(($ac_try" in
24538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539 *) ac_try_echo=$ac_try;;
24540esac
d589327a 24541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 24542 (eval "$ac_try") 2>&5
a848cd7e 24543 ac_status=$?
d589327a 24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
24545 (exit $ac_status); }; }; then
24546 ac_cv_c_bigendian=no
24547else
d589327a
VZ
24548 echo "$as_me: program exited with status $ac_status" >&5
24549echo "$as_me: failed program was:" >&5
a848cd7e
SC
24550sed 's/^/| /' conftest.$ac_ext >&5
24551
24552( exit $ac_status )
24553ac_cv_c_bigendian=yes
24554fi
47964710 24555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 24556fi
47964710
VS
24557
24558
a848cd7e
SC
24559fi
24560fi
d589327a
VZ
24561{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24562echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
a848cd7e 24563if test $ac_cv_c_bigendian = unknown; then
d589327a
VZ
24564 { 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
24565echo "$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;}
a848cd7e
SC
24566fi
24567if test $ac_cv_c_bigendian = yes; then
24568 cat >>confdefs.h <<\_ACEOF
24569#define WORDS_BIGENDIAN 1
24570_ACEOF
24571
24572fi
24573
24574
a848cd7e
SC
24575
24576
47964710 24577 ac_ext=cpp
a848cd7e
SC
24578ac_cpp='$CXXCPP $CPPFLAGS'
24579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24582
24583
1f7e12cc
DE
24584
24585for ac_header in iostream
24586do
d589327a
VZ
24587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24588{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47964710 24590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 24591 echo $ECHO_N "(cached) $ECHO_C" >&6
fd5199d6 24592else
6e7b8bcb 24593 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24594/* confdefs.h. */
24595_ACEOF
24596cat confdefs.h >>conftest.$ac_ext
24597cat >>conftest.$ac_ext <<_ACEOF
24598/* end confdefs.h. */
6e7b8bcb
PC
24599
24600
1f7e12cc 24601#include <$ac_header>
a848cd7e
SC
24602_ACEOF
24603rm -f conftest.$ac_objext
47964710
VS
24604if { (ac_try="$ac_compile"
24605case "(($ac_try" in
24606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607 *) ac_try_echo=$ac_try;;
24608esac
d589327a 24609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 24610 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24611 ac_status=$?
ac1cb8d3
VS
24612 grep -v '^ *+' conftest.er1 >conftest.err
24613 rm -f conftest.er1
24614 cat conftest.err >&5
d589327a 24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24616 (exit $ac_status); } && {
24617 test -z "$ac_cxx_werror_flag" ||
24618 test ! -s conftest.err
24619 } && test -s conftest.$ac_objext; then
1f7e12cc 24620 eval "$as_ac_Header=yes"
fd5199d6 24621else
d589327a 24622 echo "$as_me: failed program was:" >&5
fd5199d6 24623sed 's/^/| /' conftest.$ac_ext >&5
a848cd7e 24624
47964710 24625 eval "$as_ac_Header=no"
fd5199d6 24626fi
47964710
VS
24627
24628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6 24629fi
d589327a
VZ
24630ac_res=`eval echo '${'$as_ac_Header'}'`
24631 { echo "$as_me:$LINENO: result: $ac_res" >&5
24632echo "${ECHO_T}$ac_res" >&6; }
24633if test `eval echo '${'$as_ac_Header'}'` = yes; then
1f7e12cc 24634 cat >>confdefs.h <<_ACEOF
d589327a 24635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1f7e12cc 24636_ACEOF
7fd3acaf 24637
1f7e12cc
DE
24638fi
24639
24640done
fd5199d6
VZ
24641
24642
24643 if test "$ac_cv_header_iostream" = "yes" ; then
24644 :
24645 else
24646 cat >>confdefs.h <<\_ACEOF
24647#define wxUSE_IOSTREAMH 1
24648_ACEOF
24649
24650 fi
24651
24652 ac_ext=c
24653ac_cpp='$CPP $CPPFLAGS'
24654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24656ac_compiler_gnu=$ac_cv_c_compiler_gnu
24657
24658
24659
24660
d589327a
VZ
24661 { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
24662echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
a848cd7e 24663if test "${wx_cv_explicit+set}" = set; then
d589327a 24664 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
24665else
24666
24667
47964710 24668 ac_ext=cpp
a848cd7e
SC
24669ac_cpp='$CXXCPP $CPPFLAGS'
24670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24673
24674
24675 cat >conftest.$ac_ext <<_ACEOF
24676/* confdefs.h. */
24677_ACEOF
24678cat confdefs.h >>conftest.$ac_ext
24679cat >>conftest.$ac_ext <<_ACEOF
24680/* end confdefs.h. */
24681
24682 class Foo { public: explicit Foo(int) {} };
24683
24684int
24685main ()
24686{
24687
24688 return 0;
24689
24690 ;
24691 return 0;
24692}
24693_ACEOF
24694rm -f conftest.$ac_objext
47964710
VS
24695if { (ac_try="$ac_compile"
24696case "(($ac_try" in
24697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698 *) ac_try_echo=$ac_try;;
24699esac
d589327a 24700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 24701 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24702 ac_status=$?
ac1cb8d3
VS
24703 grep -v '^ *+' conftest.er1 >conftest.err
24704 rm -f conftest.er1
24705 cat conftest.err >&5
d589327a 24706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24707 (exit $ac_status); } && {
24708 test -z "$ac_cxx_werror_flag" ||
24709 test ! -s conftest.err
24710 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24711
24712 cat >conftest.$ac_ext <<_ACEOF
24713/* confdefs.h. */
24714_ACEOF
24715cat confdefs.h >>conftest.$ac_ext
24716cat >>conftest.$ac_ext <<_ACEOF
24717/* end confdefs.h. */
24718
24719 class Foo { public: explicit Foo(int) {} };
24720 static void TakeFoo(const Foo& foo) { }
24721
24722int
24723main ()
24724{
24725
24726 TakeFoo(17);
24727 return 0;
24728
24729 ;
24730 return 0;
24731}
24732_ACEOF
24733rm -f conftest.$ac_objext
47964710
VS
24734if { (ac_try="$ac_compile"
24735case "(($ac_try" in
24736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737 *) ac_try_echo=$ac_try;;
24738esac
d589327a 24739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 24740 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24741 ac_status=$?
ac1cb8d3
VS
24742 grep -v '^ *+' conftest.er1 >conftest.err
24743 rm -f conftest.er1
24744 cat conftest.err >&5
d589327a 24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24746 (exit $ac_status); } && {
24747 test -z "$ac_cxx_werror_flag" ||
24748 test ! -s conftest.err
24749 } && test -s conftest.$ac_objext; then
a848cd7e
SC
24750 wx_cv_explicit=no
24751else
d589327a 24752 echo "$as_me: failed program was:" >&5
a848cd7e
SC
24753sed 's/^/| /' conftest.$ac_ext >&5
24754
47964710 24755 wx_cv_explicit=yes
a848cd7e
SC
24756
24757fi
47964710
VS
24758
24759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24760
24761else
d589327a 24762 echo "$as_me: failed program was:" >&5
a848cd7e
SC
24763sed 's/^/| /' conftest.$ac_ext >&5
24764
47964710 24765 wx_cv_explicit=no
a848cd7e
SC
24766
24767fi
47964710
VS
24768
24769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 24770
fd5199d6
VZ
24771 ac_ext=c
24772ac_cpp='$CPP $CPPFLAGS'
24773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24775ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
24776
24777
24778fi
d589327a
VZ
24779{ echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24780echo "${ECHO_T}$wx_cv_explicit" >&6; }
a848cd7e
SC
24781
24782 if test "$wx_cv_explicit" = "yes"; then
24783 cat >>confdefs.h <<\_ACEOF
24784#define HAVE_EXPLICIT 1
24785_ACEOF
24786
24787 fi
24788
24789
3c28b7cb 24790if test "x$SUNCXX" = xyes; then
c92ad099 24791 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
24792fi
24793
9122d155 24794if test "x$SUNCC" = xyes; then
c92ad099 24795 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
24796fi
24797
0ad5d837 24798if test "x$SGICC" = "xyes"; then
321f760b
VZ
24799 { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
24800echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
24801if test "${wx_cv_prog_sgicc744+set}" = set; then
24802 echo $ECHO_N "(cached) $ECHO_C" >&6
24803else
24804
24805 cat >conftest.$ac_ext <<_ACEOF
24806/* confdefs.h. */
24807_ACEOF
24808cat confdefs.h >>conftest.$ac_ext
24809cat >>conftest.$ac_ext <<_ACEOF
24810/* end confdefs.h. */
24811
24812int
24813main ()
24814{
24815
24816 #if _SGI_COMPILER_VERSION >= 744
24817 chock me: mipsPro is 7.4.4 or later
24818 #endif
24819
24820 ;
24821 return 0;
24822}
24823_ACEOF
24824rm -f conftest.$ac_objext
24825if { (ac_try="$ac_compile"
24826case "(($ac_try" in
24827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24828 *) ac_try_echo=$ac_try;;
24829esac
24830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24831 (eval "$ac_compile") 2>conftest.er1
24832 ac_status=$?
24833 grep -v '^ *+' conftest.er1 >conftest.err
24834 rm -f conftest.er1
24835 cat conftest.err >&5
24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); } && {
24838 test -z "$ac_c_werror_flag" ||
24839 test ! -s conftest.err
24840 } && test -s conftest.$ac_objext; then
24841 wx_cv_prog_sgicc744=no
24842else
24843 echo "$as_me: failed program was:" >&5
24844sed 's/^/| /' conftest.$ac_ext >&5
24845
24846 wx_cv_prog_sgicc744=yes
24847
24848fi
24849
24850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24851
24852
24853fi
24854{ echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
24855echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
24856
24857 if test "x$wx_cv_prog_sgicc744" = "xyes"; then
24858 CFLAGS="-woff 3970 $CFLAGS"
24859 fi
0ad5d837
VZ
24860fi
24861if test "x$SGICXX" = "xyes"; then
321f760b
VZ
24862 { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
24863echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
24864if test "${wx_cv_prog_sgicxx744+set}" = set; then
24865 echo $ECHO_N "(cached) $ECHO_C" >&6
24866else
24867
24868 ac_ext=cpp
24869ac_cpp='$CXXCPP $CPPFLAGS'
24870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24873
24874 cat >conftest.$ac_ext <<_ACEOF
24875/* confdefs.h. */
24876_ACEOF
24877cat confdefs.h >>conftest.$ac_ext
24878cat >>conftest.$ac_ext <<_ACEOF
24879/* end confdefs.h. */
24880
24881int
24882main ()
24883{
24884
24885 #if _SGI_COMPILER_VERSION >= 744
24886 chock me: mipsPro is 7.4.4 or later
24887 #endif
24888
24889 ;
24890 return 0;
24891}
24892_ACEOF
24893rm -f conftest.$ac_objext
24894if { (ac_try="$ac_compile"
24895case "(($ac_try" in
24896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24897 *) ac_try_echo=$ac_try;;
24898esac
24899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24900 (eval "$ac_compile") 2>conftest.er1
24901 ac_status=$?
24902 grep -v '^ *+' conftest.er1 >conftest.err
24903 rm -f conftest.er1
24904 cat conftest.err >&5
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); } && {
24907 test -z "$ac_cxx_werror_flag" ||
24908 test ! -s conftest.err
24909 } && test -s conftest.$ac_objext; then
24910 wx_cv_prog_sgicxx744=no
24911else
24912 echo "$as_me: failed program was:" >&5
24913sed 's/^/| /' conftest.$ac_ext >&5
24914
24915 wx_cv_prog_sgicxx744=yes
24916
24917fi
24918
24919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24920 ac_ext=c
24921ac_cpp='$CPP $CPPFLAGS'
24922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24924ac_compiler_gnu=$ac_cv_c_compiler_gnu
24925
24926
24927
24928fi
24929{ echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
24930echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
24931
24932 if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
24933 CXXFLAGS="-woff 3970 $CXXFLAGS"
24934 fi
0ad5d837
VZ
24935fi
24936
2eef8513 24937if test "x$HPCC" = "xyes"; then
c92ad099 24938 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
24939fi
24940if test "x$HPCXX" = "xyes"; then
e4513a5e 24941 CXXFLAGS="+W 2340,4232 $CXXFLAGS"
2eef8513
VZ
24942fi
24943
24944if test "x$COMPAQCXX" = "xyes"; then
24945 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24946fi
24947
47964710 24948ac_ext=cpp
9b8888f9
VZ
24949ac_cpp='$CXXCPP $CPPFLAGS'
24950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24953
24954
f56c22b4 24955if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
24956 if test "$wxUSE_UNICODE" = "yes"; then
24957 std_string="std::wstring"
24958 char_type="wchar_t"
24959 else
24960 std_string="std::string"
24961 char_type="char"
24962 fi
24963
d589327a
VZ
24964 { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24965echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
9b8888f9 24966if test "${wx_cv_class_stdstring+set}" = set; then
d589327a 24967 echo $ECHO_N "(cached) $ECHO_C" >&6
9b8888f9
VZ
24968else
24969
24970 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24971/* confdefs.h. */
24972_ACEOF
24973cat confdefs.h >>conftest.$ac_ext
24974cat >>conftest.$ac_ext <<_ACEOF
24975/* end confdefs.h. */
24976#include <string>
a848cd7e
SC
24977int
24978main ()
24979{
f56c22b4 24980$std_string foo;
a848cd7e
SC
24981 ;
24982 return 0;
24983}
24984_ACEOF
24985rm -f conftest.$ac_objext
47964710
VS
24986if { (ac_try="$ac_compile"
24987case "(($ac_try" in
24988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989 *) ac_try_echo=$ac_try;;
24990esac
d589327a 24991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 24992 (eval "$ac_compile") 2>conftest.er1
a848cd7e 24993 ac_status=$?
ac1cb8d3
VS
24994 grep -v '^ *+' conftest.er1 >conftest.err
24995 rm -f conftest.er1
24996 cat conftest.err >&5
d589327a 24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
24998 (exit $ac_status); } && {
24999 test -z "$ac_cxx_werror_flag" ||
25000 test ! -s conftest.err
25001 } && test -s conftest.$ac_objext; then
9b8888f9 25002 wx_cv_class_stdstring=yes
a848cd7e 25003else
d589327a 25004 echo "$as_me: failed program was:" >&5
a848cd7e
SC
25005sed 's/^/| /' conftest.$ac_ext >&5
25006
47964710 25007 wx_cv_class_stdstring=no
9b8888f9
VZ
25008
25009fi
47964710
VS
25010
25011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
25012
25013
25014fi
d589327a
VZ
25015{ echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25016echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
9b8888f9
VZ
25017
25018 if test "$wx_cv_class_stdstring" = yes; then
25019 if test "$wxUSE_UNICODE" = "yes"; then
25020 cat >>confdefs.h <<\_ACEOF
25021#define HAVE_STD_WSTRING 1
25022_ACEOF
25023
25024 fi
25025 else
d589327a
VZ
25026 { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25027echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
9b8888f9 25028if test "${wx_cv_class_stdbasicstring+set}" = set; then
d589327a 25029 echo $ECHO_N "(cached) $ECHO_C" >&6
9b8888f9
VZ
25030else
25031
25032 cat >conftest.$ac_ext <<_ACEOF
0a08f02a
MB
25033/* confdefs.h. */
25034_ACEOF
25035cat confdefs.h >>conftest.$ac_ext
25036cat >>conftest.$ac_ext <<_ACEOF
25037/* end confdefs.h. */
25038
9b8888f9
VZ
25039 #ifdef HAVE_WCHAR_H
25040 # ifdef __CYGWIN__
25041 # include <stddef.h>
25042 # endif
25043 # include <wchar.h>
25044 #endif
25045 #ifdef HAVE_STDLIB_H
25046 # include <stdlib.h>
25047 #endif
25048 #include <stdio.h>
25049 #include <string>
0a08f02a
MB
25050
25051int
25052main ()
25053{
f56c22b4 25054std::basic_string<$char_type> foo;
9b8888f9 25055 const $char_type* dummy = foo.c_str();
0a08f02a
MB
25056 ;
25057 return 0;
25058}
25059_ACEOF
25060rm -f conftest.$ac_objext
47964710
VS
25061if { (ac_try="$ac_compile"
25062case "(($ac_try" in
25063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25064 *) ac_try_echo=$ac_try;;
25065esac
d589327a 25066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 25067 (eval "$ac_compile") 2>conftest.er1
0a08f02a
MB
25068 ac_status=$?
25069 grep -v '^ *+' conftest.er1 >conftest.err
25070 rm -f conftest.er1
25071 cat conftest.err >&5
d589327a 25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25073 (exit $ac_status); } && {
25074 test -z "$ac_cxx_werror_flag" ||
25075 test ! -s conftest.err
25076 } && test -s conftest.$ac_objext; then
9b8888f9 25077 wx_cv_class_stdbasicstring=yes
0a08f02a 25078else
d589327a 25079 echo "$as_me: failed program was:" >&5
0a08f02a
MB
25080sed 's/^/| /' conftest.$ac_ext >&5
25081
47964710 25082 wx_cv_class_stdbasicstring=no
0a08f02a 25083
a848cd7e 25084fi
47964710
VS
25085
25086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 25087
9b8888f9 25088
0a08f02a 25089fi
d589327a
VZ
25090{ echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25091echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
9b8888f9
VZ
25092
25093 if test "$wx_cv_class_stdbasicstring" != yes; then
25094 if test "$wxUSE_STL" = "yes"; then
d589327a
VZ
25095 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25096echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
9b8888f9 25097 { (exit 1); exit 1; }; }
105a81f3 25098 elif test "$wxUSE_STD_STRING" = "yes"; then
d589327a
VZ
25099 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25100echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
9b8888f9
VZ
25101 { (exit 1); exit 1; }; }
25102 else
d589327a
VZ
25103 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25104echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
9b8888f9
VZ
25105 wxUSE_STD_STRING=no
25106 fi
25107 fi
25108 fi
f56c22b4
MW
25109fi
25110
25111if test "$wxUSE_STD_IOSTREAM" = "yes"; then
d589327a
VZ
25112 { echo "$as_me:$LINENO: checking for std::istream" >&5
25113echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
f56c22b4 25114if test "${ac_cv_type_std__istream+set}" = set; then
d589327a 25115 echo $ECHO_N "(cached) $ECHO_C" >&6
f56c22b4 25116else
aa113d87
FM
25117 cat >conftest.$ac_ext <<_ACEOF
25118/* confdefs.h. */
25119_ACEOF
25120cat confdefs.h >>conftest.$ac_ext
25121cat >>conftest.$ac_ext <<_ACEOF
25122/* end confdefs.h. */
25123#include <iostream>
25124
d589327a 25125typedef std::istream ac__type_new_;
aa113d87
FM
25126int
25127main ()
25128{
d589327a
VZ
25129if ((ac__type_new_ *) 0)
25130 return 0;
25131if (sizeof (ac__type_new_))
25132 return 0;
f56c22b4
MW
25133 ;
25134 return 0;
25135}
25136_ACEOF
25137rm -f conftest.$ac_objext
47964710
VS
25138if { (ac_try="$ac_compile"
25139case "(($ac_try" in
25140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25141 *) ac_try_echo=$ac_try;;
25142esac
d589327a 25143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 25144 (eval "$ac_compile") 2>conftest.er1
f56c22b4
MW
25145 ac_status=$?
25146 grep -v '^ *+' conftest.er1 >conftest.err
25147 rm -f conftest.er1
25148 cat conftest.err >&5
d589327a 25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25150 (exit $ac_status); } && {
25151 test -z "$ac_cxx_werror_flag" ||
25152 test ! -s conftest.err
25153 } && test -s conftest.$ac_objext; then
d589327a 25154 ac_cv_type_std__istream=yes
f56c22b4 25155else
d589327a 25156 echo "$as_me: failed program was:" >&5
f56c22b4
MW
25157sed 's/^/| /' conftest.$ac_ext >&5
25158
d589327a 25159 ac_cv_type_std__istream=no
f56c22b4 25160fi
47964710
VS
25161
25162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4 25163fi
d589327a
VZ
25164{ echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25165echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25166if test $ac_cv_type_std__istream = yes; then
f56c22b4
MW
25167
25168cat >>confdefs.h <<_ACEOF
25169#define HAVE_STD__ISTREAM 1
25170_ACEOF
25171
25172
25173else
25174 wxUSE_STD_IOSTREAM=no
25175fi
d589327a
VZ
25176{ echo "$as_me:$LINENO: checking for std::ostream" >&5
25177echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
f56c22b4 25178if test "${ac_cv_type_std__ostream+set}" = set; then
d589327a 25179 echo $ECHO_N "(cached) $ECHO_C" >&6
f56c22b4 25180else
aa113d87
FM
25181 cat >conftest.$ac_ext <<_ACEOF
25182/* confdefs.h. */
25183_ACEOF
25184cat confdefs.h >>conftest.$ac_ext
25185cat >>conftest.$ac_ext <<_ACEOF
25186/* end confdefs.h. */
25187#include <iostream>
25188
d589327a 25189typedef std::ostream ac__type_new_;
aa113d87
FM
25190int
25191main ()
25192{
d589327a
VZ
25193if ((ac__type_new_ *) 0)
25194 return 0;
25195if (sizeof (ac__type_new_))
25196 return 0;
f56c22b4
MW
25197 ;
25198 return 0;
25199}
25200_ACEOF
25201rm -f conftest.$ac_objext
47964710
VS
25202if { (ac_try="$ac_compile"
25203case "(($ac_try" in
25204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25205 *) ac_try_echo=$ac_try;;
25206esac
d589327a 25207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 25208 (eval "$ac_compile") 2>conftest.er1
f56c22b4
MW
25209 ac_status=$?
25210 grep -v '^ *+' conftest.er1 >conftest.err
25211 rm -f conftest.er1
25212 cat conftest.err >&5
d589327a 25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25214 (exit $ac_status); } && {
25215 test -z "$ac_cxx_werror_flag" ||
25216 test ! -s conftest.err
25217 } && test -s conftest.$ac_objext; then
d589327a 25218 ac_cv_type_std__ostream=yes
f56c22b4 25219else
d589327a 25220 echo "$as_me: failed program was:" >&5
f56c22b4
MW
25221sed 's/^/| /' conftest.$ac_ext >&5
25222
d589327a 25223 ac_cv_type_std__ostream=no
f56c22b4 25224fi
47964710
VS
25225
25226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4 25227fi
d589327a
VZ
25228{ echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
25229echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
25230if test $ac_cv_type_std__ostream = yes; then
f56c22b4
MW
25231
25232cat >>confdefs.h <<_ACEOF
25233#define HAVE_STD__OSTREAM 1
25234_ACEOF
25235
25236
25237else
25238 wxUSE_STD_IOSTREAM=no
25239fi
25240
25241
25242 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
105a81f3 25243 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
d589327a
VZ
25244 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
25245echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
4b9918c5
MW
25246 { (exit 1); exit 1; }; }
25247 else
d589327a
VZ
25248 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
25249echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 25250 fi
f56c22b4 25251 fi
0a08f02a
MB
25252fi
25253
25254if test "$wxUSE_STL" = "yes"; then
d589327a
VZ
25255 { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
25256echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
9b8888f9 25257if test "${wx_cv_lib_stl+set}" = set; then
d589327a 25258 echo $ECHO_N "(cached) $ECHO_C" >&6
9b8888f9
VZ
25259else
25260 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25261/* confdefs.h. */
25262_ACEOF
25263cat confdefs.h >>conftest.$ac_ext
25264cat >>conftest.$ac_ext <<_ACEOF
25265/* end confdefs.h. */
25266#include <string>
9b8888f9
VZ
25267 #include <functional>
25268 #include <algorithm>
25269 #include <vector>
25270 #include <list>
a848cd7e
SC
25271int
25272main ()
25273{
0a08f02a 25274std::vector<int> moo;
9b8888f9
VZ
25275 std::list<int> foo;
25276 std::vector<int>::iterator it =
25277 std::find_if(moo.begin(), moo.end(),
25278 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
25279 ;
25280 return 0;
25281}
25282_ACEOF
25283rm -f conftest.$ac_objext
47964710
VS
25284if { (ac_try="$ac_compile"
25285case "(($ac_try" in
25286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287 *) ac_try_echo=$ac_try;;
25288esac
d589327a 25289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 25290 (eval "$ac_compile") 2>conftest.er1
a848cd7e 25291 ac_status=$?
ac1cb8d3
VS
25292 grep -v '^ *+' conftest.er1 >conftest.err
25293 rm -f conftest.er1
25294 cat conftest.err >&5
d589327a 25295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25296 (exit $ac_status); } && {
25297 test -z "$ac_cxx_werror_flag" ||
25298 test ! -s conftest.err
25299 } && test -s conftest.$ac_objext; then
9b8888f9 25300 wx_cv_lib_stl=yes
a848cd7e 25301else
d589327a 25302 echo "$as_me: failed program was:" >&5
a848cd7e
SC
25303sed 's/^/| /' conftest.$ac_ext >&5
25304
47964710 25305 wx_cv_lib_stl=no
9b8888f9 25306
a848cd7e 25307fi
47964710
VS
25308
25309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 25310
9b8888f9 25311fi
d589327a
VZ
25312{ echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
25313echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
9b8888f9
VZ
25314
25315 if test "$wx_cv_lib_stl" != yes; then
d589327a
VZ
25316 { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
25317echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
9b8888f9
VZ
25318 { (exit 1); exit 1; }; }
25319 fi
25320
d589327a
VZ
25321 { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
25322echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
9b8888f9 25323if test "${wx_cv_func_stdstring_compare+set}" = set; then
d589327a 25324 echo $ECHO_N "(cached) $ECHO_C" >&6
9b8888f9
VZ
25325else
25326 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25327/* confdefs.h. */
25328_ACEOF
25329cat confdefs.h >>conftest.$ac_ext
25330cat >>conftest.$ac_ext <<_ACEOF
25331/* end confdefs.h. */
25332#include <string>
25333int
25334main ()
25335{
25336std::string foo, bar;
9b8888f9
VZ
25337 foo.compare(bar);
25338 foo.compare(1, 1, bar);
25339 foo.compare(1, 1, bar, 1, 1);
25340 foo.compare("");
25341 foo.compare(1, 1, "");
25342 foo.compare(1, 1, "", 2);
a848cd7e
SC
25343 ;
25344 return 0;
25345}
25346_ACEOF
25347rm -f conftest.$ac_objext
47964710
VS
25348if { (ac_try="$ac_compile"
25349case "(($ac_try" in
25350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25351 *) ac_try_echo=$ac_try;;
25352esac
d589327a 25353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 25354 (eval "$ac_compile") 2>conftest.er1
a848cd7e 25355 ac_status=$?
ac1cb8d3
VS
25356 grep -v '^ *+' conftest.er1 >conftest.err
25357 rm -f conftest.er1
25358 cat conftest.err >&5
d589327a 25359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25360 (exit $ac_status); } && {
25361 test -z "$ac_cxx_werror_flag" ||
25362 test ! -s conftest.err
25363 } && test -s conftest.$ac_objext; then
9b8888f9 25364 wx_cv_func_stdstring_compare=yes
a848cd7e 25365else
d589327a 25366 echo "$as_me: failed program was:" >&5
a848cd7e
SC
25367sed 's/^/| /' conftest.$ac_ext >&5
25368
47964710 25369 wx_cv_func_stdstring_compare=no
9b8888f9 25370
a848cd7e 25371fi
47964710
VS
25372
25373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 25374
9b8888f9 25375fi
d589327a
VZ
25376{ echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
25377echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
9b8888f9
VZ
25378
25379 if test "$wx_cv_func_stdstring_compare" = yes; then
25380 cat >>confdefs.h <<\_ACEOF
25381#define HAVE_STD_STRING_COMPARE 1
25382_ACEOF
25383
25384 fi
25385
01684023
VZ
25386 if test "$wx_cv_class_gnuhashmapset" = yes; then
25387 cat >>confdefs.h <<\_ACEOF
25388#define HAVE_EXT_HASH_MAP 1
25389_ACEOF
25390
25391 cat >>confdefs.h <<\_ACEOF
25392#define HAVE_GNU_CXX_HASH_MAP 1
25393_ACEOF
25394
25395 fi
25396
d589327a
VZ
25397 { echo "$as_me:$LINENO: checking for unordered_map" >&5
25398echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
01684023 25399if test "${ac_cv_header_unordered_map+set}" = set; then
d589327a 25400 echo $ECHO_N "(cached) $ECHO_C" >&6
bdcade0a 25401else
6e7b8bcb 25402 cat >conftest.$ac_ext <<_ACEOF
bdcade0a
MB
25403/* confdefs.h. */
25404_ACEOF
25405cat confdefs.h >>conftest.$ac_ext
25406cat >>conftest.$ac_ext <<_ACEOF
25407/* end confdefs.h. */
6e7b8bcb
PC
25408
25409
25410
01684023 25411#include <unordered_map>
bdcade0a
MB
25412_ACEOF
25413rm -f conftest.$ac_objext
47964710
VS
25414if { (ac_try="$ac_compile"
25415case "(($ac_try" in
25416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417 *) ac_try_echo=$ac_try;;
25418esac
d589327a 25419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 25420 (eval "$ac_compile") 2>conftest.er1
bdcade0a 25421 ac_status=$?
ac1cb8d3
VS
25422 grep -v '^ *+' conftest.er1 >conftest.err
25423 rm -f conftest.er1
25424 cat conftest.err >&5
d589327a 25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25426 (exit $ac_status); } && {
25427 test -z "$ac_cxx_werror_flag" ||
25428 test ! -s conftest.err
25429 } && test -s conftest.$ac_objext; then
01684023 25430 ac_cv_header_unordered_map=yes
bdcade0a 25431else
d589327a 25432 echo "$as_me: failed program was:" >&5
bdcade0a
MB
25433sed 's/^/| /' conftest.$ac_ext >&5
25434
01684023 25435 ac_cv_header_unordered_map=no
bdcade0a 25436fi
47964710
VS
25437
25438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 25439fi
d589327a
VZ
25440{ echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
25441echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
25442if test $ac_cv_header_unordered_map = yes; then
25443 { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
25444echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
01684023 25445if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
d589327a 25446 echo $ECHO_N "(cached) $ECHO_C" >&6
9b8888f9
VZ
25447else
25448 cat >conftest.$ac_ext <<_ACEOF
bdcade0a
MB
25449/* confdefs.h. */
25450_ACEOF
25451cat confdefs.h >>conftest.$ac_ext
25452cat >>conftest.$ac_ext <<_ACEOF
25453/* end confdefs.h. */
01684023
VZ
25454#include <unordered_map>
25455 #include <unordered_set>
bdcade0a
MB
25456int
25457main ()
25458{
01684023
VZ
25459std::unordered_map<double*, char*> test1;
25460 std::unordered_set<char*> test2;
bdcade0a
MB
25461 ;
25462 return 0;
25463}
25464_ACEOF
25465rm -f conftest.$ac_objext
47964710
VS
25466if { (ac_try="$ac_compile"
25467case "(($ac_try" in
25468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25469 *) ac_try_echo=$ac_try;;
25470esac
d589327a 25471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 25472 (eval "$ac_compile") 2>conftest.er1
bdcade0a 25473 ac_status=$?
ac1cb8d3
VS
25474 grep -v '^ *+' conftest.er1 >conftest.err
25475 rm -f conftest.er1
25476 cat conftest.err >&5
d589327a 25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25478 (exit $ac_status); } && {
25479 test -z "$ac_cxx_werror_flag" ||
25480 test ! -s conftest.err
25481 } && test -s conftest.$ac_objext; then
01684023 25482 wx_cv_class_stdunorderedmapset=yes
bdcade0a 25483else
d589327a 25484 echo "$as_me: failed program was:" >&5
bdcade0a
MB
25485sed 's/^/| /' conftest.$ac_ext >&5
25486
01684023 25487 wx_cv_class_stdunorderedmapset=no
bdcade0a 25488fi
47964710
VS
25489
25490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 25491
9b8888f9
VZ
25492
25493fi
d589327a
VZ
25494{ echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
25495echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
bdcade0a
MB
25496fi
25497
25498
25499
01684023
VZ
25500 if test "$wx_cv_class_stdunorderedmapset" = yes; then
25501 cat >>confdefs.h <<\_ACEOF
25502#define HAVE_STD_UNORDERED_MAP 1
9b8888f9
VZ
25503_ACEOF
25504
01684023
VZ
25505 cat >>confdefs.h <<\_ACEOF
25506#define HAVE_STD_UNORDERED_SET 1
9b8888f9
VZ
25507_ACEOF
25508
01684023 25509 else
d589327a
VZ
25510 { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
25511echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
01684023 25512if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
d589327a 25513 echo $ECHO_N "(cached) $ECHO_C" >&6
bdcade0a 25514else
6e7b8bcb 25515 cat >conftest.$ac_ext <<_ACEOF
bdcade0a
MB
25516/* confdefs.h. */
25517_ACEOF
25518cat confdefs.h >>conftest.$ac_ext
25519cat >>conftest.$ac_ext <<_ACEOF
25520/* end confdefs.h. */
6e7b8bcb
PC
25521
25522
25523
01684023 25524#include <tr1/unordered_map>
bdcade0a
MB
25525_ACEOF
25526rm -f conftest.$ac_objext
47964710
VS
25527if { (ac_try="$ac_compile"
25528case "(($ac_try" in
25529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25530 *) ac_try_echo=$ac_try;;
25531esac
d589327a 25532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 25533 (eval "$ac_compile") 2>conftest.er1
bdcade0a 25534 ac_status=$?
ac1cb8d3
VS
25535 grep -v '^ *+' conftest.er1 >conftest.err
25536 rm -f conftest.er1
25537 cat conftest.err >&5
d589327a 25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25539 (exit $ac_status); } && {
25540 test -z "$ac_cxx_werror_flag" ||
25541 test ! -s conftest.err
25542 } && test -s conftest.$ac_objext; then
01684023 25543 ac_cv_header_tr1_unordered_map=yes
bdcade0a 25544else
d589327a 25545 echo "$as_me: failed program was:" >&5
bdcade0a
MB
25546sed 's/^/| /' conftest.$ac_ext >&5
25547
01684023 25548 ac_cv_header_tr1_unordered_map=no
bdcade0a 25549fi
47964710
VS
25550
25551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 25552fi
d589327a
VZ
25553{ echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
25554echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
25555if test $ac_cv_header_tr1_unordered_map = yes; then
25556 { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
25557echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
01684023 25558if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
d589327a 25559 echo $ECHO_N "(cached) $ECHO_C" >&6
9b8888f9
VZ
25560else
25561 cat >conftest.$ac_ext <<_ACEOF
bdcade0a
MB
25562/* confdefs.h. */
25563_ACEOF
25564cat confdefs.h >>conftest.$ac_ext
25565cat >>conftest.$ac_ext <<_ACEOF
25566/* end confdefs.h. */
01684023
VZ
25567#include <tr1/unordered_map>
25568 #include <tr1/unordered_set>
bdcade0a
MB
25569int
25570main ()
25571{
01684023
VZ
25572std::tr1::unordered_map<double*, char*> test1;
25573 std::tr1::unordered_set<char*> test2;
25574 #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
25575 #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
25576 #endif
bdcade0a
MB
25577 ;
25578 return 0;
25579}
25580_ACEOF
25581rm -f conftest.$ac_objext
47964710
VS
25582if { (ac_try="$ac_compile"
25583case "(($ac_try" in
25584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25585 *) ac_try_echo=$ac_try;;
25586esac
d589327a 25587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 25588 (eval "$ac_compile") 2>conftest.er1
bdcade0a 25589 ac_status=$?
ac1cb8d3
VS
25590 grep -v '^ *+' conftest.er1 >conftest.err
25591 rm -f conftest.er1
25592 cat conftest.err >&5
d589327a 25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25594 (exit $ac_status); } && {
25595 test -z "$ac_cxx_werror_flag" ||
25596 test ! -s conftest.err
25597 } && test -s conftest.$ac_objext; then
01684023 25598 wx_cv_class_tr1unorderedmapset=yes
bdcade0a 25599else
d589327a 25600 echo "$as_me: failed program was:" >&5
bdcade0a
MB
25601sed 's/^/| /' conftest.$ac_ext >&5
25602
01684023 25603 wx_cv_class_tr1unorderedmapset=no
bdcade0a 25604fi
47964710
VS
25605
25606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 25607
9b8888f9 25608
bdcade0a 25609fi
d589327a
VZ
25610{ echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25611echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
9b8888f9
VZ
25612fi
25613
bdcade0a
MB
25614
25615
01684023
VZ
25616 if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25617 cat >>confdefs.h <<\_ACEOF
25618#define HAVE_TR1_UNORDERED_MAP 1
9b8888f9
VZ
25619_ACEOF
25620
01684023
VZ
25621 cat >>confdefs.h <<\_ACEOF
25622#define HAVE_TR1_UNORDERED_SET 1
9b8888f9
VZ
25623_ACEOF
25624
01684023 25625 else
d589327a
VZ
25626 { echo "$as_me:$LINENO: checking for hash_map" >&5
25627echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
01684023 25628if test "${ac_cv_header_hash_map+set}" = set; then
d589327a 25629 echo $ECHO_N "(cached) $ECHO_C" >&6
f380544a
VZ
25630else
25631 cat >conftest.$ac_ext <<_ACEOF
25632/* confdefs.h. */
25633_ACEOF
25634cat confdefs.h >>conftest.$ac_ext
25635cat >>conftest.$ac_ext <<_ACEOF
25636/* end confdefs.h. */
25637
25638
25639
01684023 25640#include <hash_map>
f380544a
VZ
25641_ACEOF
25642rm -f conftest.$ac_objext
25643if { (ac_try="$ac_compile"
25644case "(($ac_try" in
25645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25646 *) ac_try_echo=$ac_try;;
25647esac
d589327a 25648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
f380544a
VZ
25649 (eval "$ac_compile") 2>conftest.er1
25650 ac_status=$?
25651 grep -v '^ *+' conftest.er1 >conftest.err
25652 rm -f conftest.er1
25653 cat conftest.err >&5
d589327a 25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f380544a
VZ
25655 (exit $ac_status); } && {
25656 test -z "$ac_cxx_werror_flag" ||
25657 test ! -s conftest.err
25658 } && test -s conftest.$ac_objext; then
01684023 25659 ac_cv_header_hash_map=yes
f380544a 25660else
d589327a 25661 echo "$as_me: failed program was:" >&5
f380544a
VZ
25662sed 's/^/| /' conftest.$ac_ext >&5
25663
01684023 25664 ac_cv_header_hash_map=no
f380544a
VZ
25665fi
25666
25667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25668fi
d589327a
VZ
25669{ echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25670echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
25671if test $ac_cv_header_hash_map = yes; then
25672 { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25673echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
01684023 25674if test "${wx_cv_class_stdhashmapset+set}" = set; then
d589327a 25675 echo $ECHO_N "(cached) $ECHO_C" >&6
f380544a
VZ
25676else
25677 cat >conftest.$ac_ext <<_ACEOF
25678/* confdefs.h. */
25679_ACEOF
25680cat confdefs.h >>conftest.$ac_ext
25681cat >>conftest.$ac_ext <<_ACEOF
25682/* end confdefs.h. */
01684023
VZ
25683#include <hash_map>
25684 #include <hash_set>
f380544a
VZ
25685int
25686main ()
25687{
01684023
VZ
25688std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25689 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
f380544a
VZ
25690 ;
25691 return 0;
25692}
25693_ACEOF
25694rm -f conftest.$ac_objext
25695if { (ac_try="$ac_compile"
25696case "(($ac_try" in
25697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698 *) ac_try_echo=$ac_try;;
25699esac
d589327a 25700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
f380544a
VZ
25701 (eval "$ac_compile") 2>conftest.er1
25702 ac_status=$?
25703 grep -v '^ *+' conftest.er1 >conftest.err
25704 rm -f conftest.er1
25705 cat conftest.err >&5
d589327a 25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f380544a
VZ
25707 (exit $ac_status); } && {
25708 test -z "$ac_cxx_werror_flag" ||
25709 test ! -s conftest.err
25710 } && test -s conftest.$ac_objext; then
01684023 25711 wx_cv_class_stdhashmapset=yes
f380544a 25712else
d589327a 25713 echo "$as_me: failed program was:" >&5
f380544a
VZ
25714sed 's/^/| /' conftest.$ac_ext >&5
25715
01684023 25716 wx_cv_class_stdhashmapset=no
f380544a
VZ
25717fi
25718
25719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25720
25721
25722fi
d589327a
VZ
25723{ echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25724echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
f380544a
VZ
25725fi
25726
25727
25728
01684023
VZ
25729 if test "$wx_cv_class_stdhashmapset" = yes; then
25730 cat >>confdefs.h <<\_ACEOF
25731#define HAVE_HASH_MAP 1
f380544a
VZ
25732_ACEOF
25733
01684023
VZ
25734 cat >>confdefs.h <<\_ACEOF
25735#define HAVE_STD_HASH_MAP 1
f380544a
VZ
25736_ACEOF
25737
01684023
VZ
25738 fi
25739
d589327a
VZ
25740 { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25741echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
01684023 25742if test "${ac_cv_header_ext_hash_map+set}" = set; then
d589327a 25743 echo $ECHO_N "(cached) $ECHO_C" >&6
f380544a
VZ
25744else
25745 cat >conftest.$ac_ext <<_ACEOF
25746/* confdefs.h. */
25747_ACEOF
25748cat confdefs.h >>conftest.$ac_ext
25749cat >>conftest.$ac_ext <<_ACEOF
25750/* end confdefs.h. */
25751
25752
25753
01684023 25754#include <ext/hash_map>
f380544a
VZ
25755_ACEOF
25756rm -f conftest.$ac_objext
25757if { (ac_try="$ac_compile"
25758case "(($ac_try" in
25759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25760 *) ac_try_echo=$ac_try;;
25761esac
d589327a 25762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
f380544a
VZ
25763 (eval "$ac_compile") 2>conftest.er1
25764 ac_status=$?
25765 grep -v '^ *+' conftest.er1 >conftest.err
25766 rm -f conftest.er1
25767 cat conftest.err >&5
d589327a 25768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f380544a
VZ
25769 (exit $ac_status); } && {
25770 test -z "$ac_cxx_werror_flag" ||
25771 test ! -s conftest.err
25772 } && test -s conftest.$ac_objext; then
01684023 25773 ac_cv_header_ext_hash_map=yes
f380544a 25774else
d589327a 25775 echo "$as_me: failed program was:" >&5
f380544a
VZ
25776sed 's/^/| /' conftest.$ac_ext >&5
25777
01684023 25778 ac_cv_header_ext_hash_map=no
f380544a
VZ
25779fi
25780
25781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25782fi
d589327a
VZ
25783{ echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25784echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25785if test $ac_cv_header_ext_hash_map = yes; then
25786 { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25787echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
01684023 25788if test "${wx_cv_class_gnuhashmapset+set}" = set; then
d589327a 25789 echo $ECHO_N "(cached) $ECHO_C" >&6
f380544a
VZ
25790else
25791 cat >conftest.$ac_ext <<_ACEOF
25792/* confdefs.h. */
25793_ACEOF
25794cat confdefs.h >>conftest.$ac_ext
25795cat >>conftest.$ac_ext <<_ACEOF
25796/* end confdefs.h. */
01684023
VZ
25797#include <ext/hash_map>
25798 #include <ext/hash_set>
f380544a
VZ
25799int
25800main ()
25801{
01684023
VZ
25802__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25803 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
f380544a
VZ
25804 ;
25805 return 0;
25806}
25807_ACEOF
25808rm -f conftest.$ac_objext
25809if { (ac_try="$ac_compile"
25810case "(($ac_try" in
25811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25812 *) ac_try_echo=$ac_try;;
25813esac
d589327a 25814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
f380544a
VZ
25815 (eval "$ac_compile") 2>conftest.er1
25816 ac_status=$?
25817 grep -v '^ *+' conftest.er1 >conftest.err
25818 rm -f conftest.er1
25819 cat conftest.err >&5
d589327a 25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f380544a
VZ
25821 (exit $ac_status); } && {
25822 test -z "$ac_cxx_werror_flag" ||
25823 test ! -s conftest.err
25824 } && test -s conftest.$ac_objext; then
01684023 25825 wx_cv_class_gnuhashmapset=yes
f380544a 25826else
d589327a 25827 echo "$as_me: failed program was:" >&5
f380544a
VZ
25828sed 's/^/| /' conftest.$ac_ext >&5
25829
01684023 25830 wx_cv_class_gnuhashmapset=no
f380544a
VZ
25831fi
25832
25833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25834
25835
25836fi
d589327a
VZ
25837{ echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25838echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
f380544a
VZ
25839fi
25840
25841
25842
f380544a
VZ
25843 fi
25844 fi
a848cd7e
SC
25845fi
25846
47964710
VS
25847
25848
25849 if test -n "$GCC"; then
d589327a
VZ
25850 { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25851echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
47964710 25852 if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
d589327a 25853 echo $ECHO_N "(cached) $ECHO_C" >&6
47964710
VS
25854else
25855
25856 cat >conftest.$ac_ext <<_ACEOF
25857/* confdefs.h. */
25858_ACEOF
25859cat confdefs.h >>conftest.$ac_ext
25860cat >>conftest.$ac_ext <<_ACEOF
25861/* end confdefs.h. */
25862
25863int
25864main ()
25865{
25866
9dcff96b 25867 unsigned int value=0;
9d5507f7
VS
25868 /* wxAtomicInc doesn't use return value here */
25869 __sync_fetch_and_add(&value, 2);
47964710 25870 __sync_sub_and_fetch(&value, 1);
9d5507f7
VS
25871 /* but wxAtomicDec does, so mimic that: */
25872 unsigned int r2 = __sync_sub_and_fetch(&value, 1);
47964710
VS
25873
25874 ;
25875 return 0;
25876}
25877_ACEOF
9dcff96b
VS
25878rm -f conftest.$ac_objext conftest$ac_exeext
25879if { (ac_try="$ac_link"
47964710
VS
25880case "(($ac_try" in
25881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25882 *) ac_try_echo=$ac_try;;
25883esac
d589327a 25884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9dcff96b 25885 (eval "$ac_link") 2>conftest.er1
47964710
VS
25886 ac_status=$?
25887 grep -v '^ *+' conftest.er1 >conftest.err
25888 rm -f conftest.er1
25889 cat conftest.err >&5
d589327a 25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
25891 (exit $ac_status); } && {
25892 test -z "$ac_cxx_werror_flag" ||
25893 test ! -s conftest.err
d589327a
VZ
25894 } && test -s conftest$ac_exeext &&
25895 $as_test_x conftest$ac_exeext; then
47964710
VS
25896 wx_cv_cc_gcc_atomic_builtins=yes
25897else
d589327a 25898 echo "$as_me: failed program was:" >&5
47964710
VS
25899sed 's/^/| /' conftest.$ac_ext >&5
25900
25901 wx_cv_cc_gcc_atomic_builtins=no
25902fi
25903
9dcff96b
VS
25904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25905 conftest$ac_exeext conftest.$ac_ext
47964710
VS
25906
25907fi
25908
d589327a
VZ
25909 { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25910echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
47964710
VS
25911 if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25912 cat >>confdefs.h <<\_ACEOF
25913#define HAVE_GCC_ATOMIC_BUILTINS 1
25914_ACEOF
25915
25916 fi
25917 fi
25918
25919
9b8888f9
VZ
25920ac_ext=c
25921ac_cpp='$CPP $CPPFLAGS'
25922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25924ac_compiler_gnu=$ac_cv_c_compiler_gnu
25925
25926
a848cd7e
SC
25927
25928SEARCH_INCLUDE="\
25929 /usr/local/include \
235cdc6d
VZ
25930 /usr/local/X11/include \
25931 /usr/local/include/X11 \
256cddd7 25932 /usr/local/X11R7/include \
235cdc6d 25933 /usr/local/X11R6/include \
256cddd7 25934 /usr/local/include/X11R7 \
235cdc6d 25935 /usr/local/include/X11R6 \
a848cd7e
SC
25936 \
25937 /usr/Motif-2.1/include \
25938 /usr/Motif-1.2/include \
25939 /usr/include/Motif1.2 \
a848cd7e
SC
25940 \
25941 /usr/dt/include \
25942 /usr/openwin/include \
25943 \
25944 /usr/include/Xm \
25945 \
256cddd7 25946 /usr/X11R7/include \
a848cd7e
SC
25947 /usr/X11R6/include \
25948 /usr/X11R6.4/include \
a848cd7e 25949 \
256cddd7 25950 /usr/include/X11R7 \
a848cd7e 25951 /usr/include/X11R6 \
a848cd7e
SC
25952 \
25953 /usr/X11/include \
25954 /usr/include/X11 \
a848cd7e 25955 \
a848cd7e 25956 /usr/XFree86/include/X11 \
e051b34e
MW
25957 /usr/pkg/include \
25958 \
235cdc6d
VZ
25959 /usr/local/X1R5/include \
25960 /usr/local/include/X11R5 \
25961 /usr/X11R5/include \
25962 /usr/include/X11R5 \
25963 \
25964 /usr/local/X11R4/include \
25965 /usr/local/include/X11R4 \
25966 /usr/X11R4/include \
25967 /usr/include/X11R4 \
25968 \
a848cd7e
SC
25969 /usr/openwin/share/include"
25970
d589327a
VZ
25971{ echo "$as_me:$LINENO: checking for libraries directory" >&5
25972echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
6f9cf1e6
MW
25973
25974case "${host}" in
25975 *-*-irix6* )
25976 if test "${wx_cv_std_libpath+set}" = set; then
d589327a 25977 echo $ECHO_N "(cached) $ECHO_C" >&6
0ad5d837
VZ
25978else
25979
c687b303
VZ
25980 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25981 for e in a so sl dylib dll.a; do
25982 libc="$d/libc.$e"
25983 if test -f $libc; then
25984 save_LIBS="$LIBS"
25985 LIBS="$libc"
25986 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
25987int main() { return 0; }
25988_ACEOF
25989rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
25990if { (ac_try="$ac_link"
25991case "(($ac_try" in
25992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993 *) ac_try_echo=$ac_try;;
25994esac
d589327a 25995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 25996 (eval "$ac_link") 2>conftest.er1
0ad5d837
VZ
25997 ac_status=$?
25998 grep -v '^ *+' conftest.er1 >conftest.err
25999 rm -f conftest.er1
26000 cat conftest.err >&5
d589327a 26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26002 (exit $ac_status); } && {
26003 test -z "$ac_c_werror_flag" ||
26004 test ! -s conftest.err
d589327a
VZ
26005 } && test -s conftest$ac_exeext &&
26006 $as_test_x conftest$ac_exeext; then
0ad5d837
VZ
26007 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
26008else
d589327a 26009 echo "$as_me: failed program was:" >&5
0ad5d837
VZ
26010sed 's/^/| /' conftest.$ac_ext >&5
26011
47964710 26012
0ad5d837 26013fi
47964710
VS
26014
26015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0ad5d837 26016 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
26017 LIBS="$save_LIBS"
26018 if test "x$wx_cv_std_libpath" != "x"; then
26019 break 2
26020 fi
26021 fi
26022 done
26023 done
26024 if test "x$wx_cv_std_libpath" = "x"; then
26025 wx_cv_std_libpath="lib"
0ad5d837 26026 fi
0ad5d837
VZ
26027
26028
26029fi
6f9cf1e6
MW
26030
26031 ;;
26032
26033 *-*-solaris2* )
26034 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
26035 wx_cv_std_libpath="lib/64"
26036 else
26037 wx_cv_std_libpath="lib"
26038 fi
26039 ;;
26040
26041 *-*-linux* )
26042 if test "$ac_cv_sizeof_void_p" = 8 -a \
26043 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
26044 wx_cv_std_libpath="lib64"
26045 else
26046 wx_cv_std_libpath="lib"
26047 fi
c687b303
VZ
26048 ;;
26049
26050 *)
26051 wx_cv_std_libpath="lib";
26052 ;;
26053esac
0ad5d837 26054
d589327a
VZ
26055{ echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
26056echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
6f9cf1e6
MW
26057
26058SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 26059
3eca31dc
MW
26060if test "$build" != "$host" -a "$GCC" = yes; then
26061 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
26062 cross_root=`dirname $cross_root`
26063 cross_root=`dirname $cross_root`
26064
26065 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26066 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 26067 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
26068
26069 if test -z "$PKG_CONFIG_PATH"; then
26070 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
26071 export PKG_CONFIG_PATH
26072 fi
26073
26074 if test -z "$x_includes" -o "$x_includes" = NONE; then
26075
26076ac_find_includes=
26077for ac_dir in $SEARCH_INCLUDE /usr/include;
26078 do
26079 if test -f "$ac_dir/X11/Intrinsic.h"; then
26080 ac_find_includes=$ac_dir
26081 break
26082 fi
26083 done
26084
26085 x_includes=$ac_find_includes
26086 fi
26087 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
26088
0ad5d837
VZ
26089 ac_find_libraries=
26090 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
26091 do
26092 for ac_extension in a so sl dylib dll.a; do
26093 if test -f "$ac_dir/libXt.$ac_extension"; then
26094 ac_find_libraries=$ac_dir
26095 break 2
26096 fi
26097 done
26098 done
26099
26100 x_libraries=$ac_find_libraries
26101 fi
26102 fi
26103fi
26104
a848cd7e
SC
26105
26106cat >confcache <<\_ACEOF
26107# This file is a shell script that caches the results of configure
26108# tests run on this system so they can be shared between configure
26109# scripts and configure runs, see configure's option --config-cache.
26110# It is not useful on other systems. If it contains results you don't
26111# want to keep, you may remove or edit it.
26112#
26113# config.status only pays attention to the cache file if you give it
26114# the --recheck option to rerun configure.
26115#
26116# `ac_cv_env_foo' variables (set or unset) will be overridden when
26117# loading this file, other *unset* `ac_cv_foo' will be assigned the
26118# following values.
26119
26120_ACEOF
26121
26122# The following way of writing the cache mishandles newlines in values,
26123# but we know of no workaround that is simple, portable, and efficient.
47964710 26124# So, we kill variables containing newlines.
a848cd7e
SC
26125# Ultrix sh set writes to stderr and can't be redirected directly,
26126# and sets the high bit in the cache file unless we assign to the vars.
47964710
VS
26127(
26128 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26129 eval ac_val=\$$ac_var
26130 case $ac_val in #(
26131 *${as_nl}*)
26132 case $ac_var in #(
d589327a
VZ
26133 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26134echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
47964710
VS
26135 esac
26136 case $ac_var in #(
26137 _ | IFS | as_nl) ;; #(
26138 *) $as_unset $ac_var ;;
26139 esac ;;
26140 esac
26141 done
26142
a848cd7e 26143 (set) 2>&1 |
47964710
VS
26144 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26145 *${as_nl}ac_space=\ *)
a848cd7e
SC
26146 # `set' does not quote correctly, so add quotes (double-quote
26147 # substitution turns \\\\ into \\, and sed turns \\ into \).
26148 sed -n \
ac1cb8d3
VS
26149 "s/'/'\\\\''/g;
26150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47964710 26151 ;; #(
a848cd7e
SC
26152 *)
26153 # `set' quotes correctly as required by POSIX, so do not add quotes.
47964710 26154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
a848cd7e 26155 ;;
47964710
VS
26156 esac |
26157 sort
26158) |
a848cd7e 26159 sed '
47964710 26160 /^ac_cv_env_/b end
a848cd7e 26161 t clear
47964710 26162 :clear
a848cd7e
SC
26163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26164 t end
47964710
VS
26165 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26166 :end' >>confcache
26167if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26168 if test -w "$cache_file"; then
26169 test "x$cache_file" != "x/dev/null" &&
d589327a
VZ
26170 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26171echo "$as_me: updating cache $cache_file" >&6;}
a848cd7e
SC
26172 cat confcache >$cache_file
26173 else
d589327a
VZ
26174 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26175echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a848cd7e
SC
26176 fi
26177fi
26178rm -f confcache
26179
26180if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
d589327a
VZ
26181 { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
26182echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
a848cd7e 26183if test "${wx_cv_lib_glibc21+set}" = set; then
d589327a 26184 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
26185else
26186
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#include <features.h>
26194int
26195main ()
26196{
26197
26198 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 26199 not glibc 2.1
a848cd7e
SC
26200 #endif
26201
26202 ;
26203 return 0;
26204}
26205_ACEOF
26206rm -f conftest.$ac_objext
47964710
VS
26207if { (ac_try="$ac_compile"
26208case "(($ac_try" in
26209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26210 *) ac_try_echo=$ac_try;;
26211esac
d589327a 26212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 26213 (eval "$ac_compile") 2>conftest.er1
a848cd7e 26214 ac_status=$?
ac1cb8d3
VS
26215 grep -v '^ *+' conftest.er1 >conftest.err
26216 rm -f conftest.er1
26217 cat conftest.err >&5
d589327a 26218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26219 (exit $ac_status); } && {
26220 test -z "$ac_c_werror_flag" ||
26221 test ! -s conftest.err
26222 } && test -s conftest.$ac_objext; then
a848cd7e
SC
26223
26224 wx_cv_lib_glibc21=yes
26225
26226else
d589327a 26227 echo "$as_me: failed program was:" >&5
a848cd7e
SC
26228sed 's/^/| /' conftest.$ac_ext >&5
26229
26230
26231 wx_cv_lib_glibc21=no
26232
26233
26234fi
47964710
VS
26235
26236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26237
26238fi
d589327a
VZ
26239{ echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
26240echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
a848cd7e
SC
26241 if test "$wx_cv_lib_glibc21" = "yes"; then
26242 cat >>confdefs.h <<\_ACEOF
26243#define wxHAVE_GLIBC2 1
26244_ACEOF
26245
26246 fi
26247fi
26248
26249if test "x$wx_cv_lib_glibc21" = "xyes"; then
26250 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
26251 cat >>confdefs.h <<\_ACEOF
26252#define _GNU_SOURCE 1
26253_ACEOF
26254
26255 fi
26256fi
26257
5d7b7554
VZ
26258have_cos=0
26259have_floor=0
a848cd7e 26260
5d7b7554
VZ
26261for ac_func in cos
26262do
d589327a
VZ
26263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26264{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 26266if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 26267 echo $ECHO_N "(cached) $ECHO_C" >&6
5d7b7554
VZ
26268else
26269 cat >conftest.$ac_ext <<_ACEOF
26270/* confdefs.h. */
26271_ACEOF
26272cat confdefs.h >>conftest.$ac_ext
26273cat >>conftest.$ac_ext <<_ACEOF
26274/* end confdefs.h. */
26275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26277#define $ac_func innocuous_$ac_func
26278
26279/* System header to define __stub macros and hopefully few prototypes,
26280 which can conflict with char $ac_func (); below.
26281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26282 <limits.h> exists even on freestanding compilers. */
26283
26284#ifdef __STDC__
26285# include <limits.h>
26286#else
26287# include <assert.h>
26288#endif
26289
26290#undef $ac_func
26291
47964710
VS
26292/* Override any GCC internal prototype to avoid an error.
26293 Use char because int might match the return type of a GCC
26294 builtin and then its argument prototype would still apply. */
5d7b7554
VZ
26295#ifdef __cplusplus
26296extern "C"
7fd3acaf
RD
26297#endif
26298char $ac_func ();
26299/* The GNU C library defines this for functions which it implements
26300 to always fail with ENOSYS. Some functions are actually named
26301 something starting with __ and the normal name is an alias. */
47964710 26302#if defined __stub_$ac_func || defined __stub___$ac_func
7fd3acaf
RD
26303choke me
26304#endif
26305
26306int
26307main ()
f321ab7f 26308{
47964710 26309return $ac_func ();
7fd3acaf
RD
26310 ;
26311 return 0;
26312}
26313_ACEOF
26314rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
26315if { (ac_try="$ac_link"
26316case "(($ac_try" in
26317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26318 *) ac_try_echo=$ac_try;;
26319esac
d589327a 26320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 26321 (eval "$ac_link") 2>conftest.er1
7fd3acaf
RD
26322 ac_status=$?
26323 grep -v '^ *+' conftest.er1 >conftest.err
26324 rm -f conftest.er1
26325 cat conftest.err >&5
d589327a 26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26327 (exit $ac_status); } && {
26328 test -z "$ac_c_werror_flag" ||
26329 test ! -s conftest.err
d589327a
VZ
26330 } && test -s conftest$ac_exeext &&
26331 $as_test_x conftest$ac_exeext; then
7fd3acaf
RD
26332 eval "$as_ac_var=yes"
26333else
d589327a 26334 echo "$as_me: failed program was:" >&5
7fd3acaf
RD
26335sed 's/^/| /' conftest.$ac_ext >&5
26336
47964710 26337 eval "$as_ac_var=no"
7fd3acaf 26338fi
47964710
VS
26339
26340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7fd3acaf
RD
26341 conftest$ac_exeext conftest.$ac_ext
26342fi
d589327a
VZ
26343ac_res=`eval echo '${'$as_ac_var'}'`
26344 { echo "$as_me:$LINENO: result: $ac_res" >&5
26345echo "${ECHO_T}$ac_res" >&6; }
26346if test `eval echo '${'$as_ac_var'}'` = yes; then
7fd3acaf 26347 cat >>confdefs.h <<_ACEOF
d589327a 26348#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7fd3acaf
RD
26349_ACEOF
26350 have_cos=1
26351fi
26352done
26353
26354
26355for ac_func in floor
26356do
d589327a
VZ
26357as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26358{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26359echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 26360if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 26361 echo $ECHO_N "(cached) $ECHO_C" >&6
7fd3acaf
RD
26362else
26363 cat >conftest.$ac_ext <<_ACEOF
26364/* confdefs.h. */
26365_ACEOF
26366cat confdefs.h >>conftest.$ac_ext
26367cat >>conftest.$ac_ext <<_ACEOF
26368/* end confdefs.h. */
26369/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26371#define $ac_func innocuous_$ac_func
26372
26373/* System header to define __stub macros and hopefully few prototypes,
26374 which can conflict with char $ac_func (); below.
26375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26376 <limits.h> exists even on freestanding compilers. */
26377
26378#ifdef __STDC__
26379# include <limits.h>
26380#else
26381# include <assert.h>
5d7b7554 26382#endif
7fd3acaf
RD
26383
26384#undef $ac_func
26385
47964710
VS
26386/* Override any GCC internal prototype to avoid an error.
26387 Use char because int might match the return type of a GCC
26388 builtin and then its argument prototype would still apply. */
7fd3acaf
RD
26389#ifdef __cplusplus
26390extern "C"
26391#endif
5d7b7554
VZ
26392char $ac_func ();
26393/* The GNU C library defines this for functions which it implements
26394 to always fail with ENOSYS. Some functions are actually named
26395 something starting with __ and the normal name is an alias. */
47964710 26396#if defined __stub_$ac_func || defined __stub___$ac_func
5d7b7554 26397choke me
7fd3acaf
RD
26398#endif
26399
26400int
26401main ()
26402{
47964710 26403return $ac_func ();
7fd3acaf
RD
26404 ;
26405 return 0;
26406}
26407_ACEOF
26408rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
26409if { (ac_try="$ac_link"
26410case "(($ac_try" in
26411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412 *) ac_try_echo=$ac_try;;
26413esac
d589327a 26414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 26415 (eval "$ac_link") 2>conftest.er1
7fd3acaf
RD
26416 ac_status=$?
26417 grep -v '^ *+' conftest.er1 >conftest.err
26418 rm -f conftest.er1
26419 cat conftest.err >&5
d589327a 26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26421 (exit $ac_status); } && {
26422 test -z "$ac_c_werror_flag" ||
26423 test ! -s conftest.err
d589327a
VZ
26424 } && test -s conftest$ac_exeext &&
26425 $as_test_x conftest$ac_exeext; then
7fd3acaf
RD
26426 eval "$as_ac_var=yes"
26427else
d589327a 26428 echo "$as_me: failed program was:" >&5
7fd3acaf
RD
26429sed 's/^/| /' conftest.$ac_ext >&5
26430
47964710 26431 eval "$as_ac_var=no"
7fd3acaf 26432fi
47964710
VS
26433
26434rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7fd3acaf
RD
26435 conftest$ac_exeext conftest.$ac_ext
26436fi
d589327a
VZ
26437ac_res=`eval echo '${'$as_ac_var'}'`
26438 { echo "$as_me:$LINENO: result: $ac_res" >&5
26439echo "${ECHO_T}$ac_res" >&6; }
26440if test `eval echo '${'$as_ac_var'}'` = yes; then
7fd3acaf 26441 cat >>confdefs.h <<_ACEOF
d589327a 26442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7fd3acaf
RD
26443_ACEOF
26444 have_floor=1
26445fi
26446done
26447
d589327a
VZ
26448{ echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
26449echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
7fd3acaf 26450if test "$have_cos" = 1 -a "$have_floor" = 1; then
d589327a
VZ
26451 { echo "$as_me:$LINENO: result: yes" >&5
26452echo "${ECHO_T}yes" >&6; }
7fd3acaf 26453else
d589327a
VZ
26454 { echo "$as_me:$LINENO: result: no" >&5
26455echo "${ECHO_T}no" >&6; }
7fd3acaf
RD
26456 LIBS="$LIBS -lm"
26457 # use different functions to avoid configure caching
26458 have_sin=0
26459 have_ceil=0
26460
26461for ac_func in sin
26462do
d589327a
VZ
26463as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26464{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26465echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 26466if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 26467 echo $ECHO_N "(cached) $ECHO_C" >&6
7fd3acaf
RD
26468else
26469 cat >conftest.$ac_ext <<_ACEOF
26470/* confdefs.h. */
26471_ACEOF
26472cat confdefs.h >>conftest.$ac_ext
26473cat >>conftest.$ac_ext <<_ACEOF
26474/* end confdefs.h. */
26475/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26477#define $ac_func innocuous_$ac_func
26478
26479/* System header to define __stub macros and hopefully few prototypes,
26480 which can conflict with char $ac_func (); below.
26481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26482 <limits.h> exists even on freestanding compilers. */
26483
26484#ifdef __STDC__
26485# include <limits.h>
f321ab7f 26486#else
7fd3acaf 26487# include <assert.h>
f321ab7f 26488#endif
7fd3acaf
RD
26489
26490#undef $ac_func
26491
47964710
VS
26492/* Override any GCC internal prototype to avoid an error.
26493 Use char because int might match the return type of a GCC
26494 builtin and then its argument prototype would still apply. */
f321ab7f 26495#ifdef __cplusplus
7fd3acaf
RD
26496extern "C"
26497#endif
26498char $ac_func ();
26499/* The GNU C library defines this for functions which it implements
26500 to always fail with ENOSYS. Some functions are actually named
26501 something starting with __ and the normal name is an alias. */
47964710 26502#if defined __stub_$ac_func || defined __stub___$ac_func
7fd3acaf 26503choke me
5d7b7554
VZ
26504#endif
26505
26506int
26507main ()
26508{
47964710 26509return $ac_func ();
5d7b7554
VZ
26510 ;
26511 return 0;
26512}
26513_ACEOF
26514rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
26515if { (ac_try="$ac_link"
26516case "(($ac_try" in
26517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26518 *) ac_try_echo=$ac_try;;
26519esac
d589327a 26520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 26521 (eval "$ac_link") 2>conftest.er1
5d7b7554
VZ
26522 ac_status=$?
26523 grep -v '^ *+' conftest.er1 >conftest.err
26524 rm -f conftest.er1
26525 cat conftest.err >&5
d589327a 26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26527 (exit $ac_status); } && {
26528 test -z "$ac_c_werror_flag" ||
26529 test ! -s conftest.err
d589327a
VZ
26530 } && test -s conftest$ac_exeext &&
26531 $as_test_x conftest$ac_exeext; then
5d7b7554
VZ
26532 eval "$as_ac_var=yes"
26533else
d589327a 26534 echo "$as_me: failed program was:" >&5
5d7b7554
VZ
26535sed 's/^/| /' conftest.$ac_ext >&5
26536
47964710 26537 eval "$as_ac_var=no"
5d7b7554 26538fi
47964710
VS
26539
26540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5d7b7554
VZ
26541 conftest$ac_exeext conftest.$ac_ext
26542fi
d589327a
VZ
26543ac_res=`eval echo '${'$as_ac_var'}'`
26544 { echo "$as_me:$LINENO: result: $ac_res" >&5
26545echo "${ECHO_T}$ac_res" >&6; }
26546if test `eval echo '${'$as_ac_var'}'` = yes; then
5d7b7554 26547 cat >>confdefs.h <<_ACEOF
d589327a 26548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5d7b7554
VZ
26549_ACEOF
26550 have_sin=1
26551fi
26552done
26553
26554
26555for ac_func in ceil
26556do
d589327a
VZ
26557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26558{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 26560if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 26561 echo $ECHO_N "(cached) $ECHO_C" >&6
5d7b7554
VZ
26562else
26563 cat >conftest.$ac_ext <<_ACEOF
26564/* confdefs.h. */
26565_ACEOF
26566cat confdefs.h >>conftest.$ac_ext
26567cat >>conftest.$ac_ext <<_ACEOF
26568/* end confdefs.h. */
26569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26571#define $ac_func innocuous_$ac_func
26572
26573/* System header to define __stub macros and hopefully few prototypes,
26574 which can conflict with char $ac_func (); below.
26575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26576 <limits.h> exists even on freestanding compilers. */
26577
26578#ifdef __STDC__
26579# include <limits.h>
26580#else
26581# include <assert.h>
26582#endif
26583
26584#undef $ac_func
26585
47964710
VS
26586/* Override any GCC internal prototype to avoid an error.
26587 Use char because int might match the return type of a GCC
26588 builtin and then its argument prototype would still apply. */
5d7b7554
VZ
26589#ifdef __cplusplus
26590extern "C"
5d7b7554 26591#endif
5d7b7554
VZ
26592char $ac_func ();
26593/* The GNU C library defines this for functions which it implements
26594 to always fail with ENOSYS. Some functions are actually named
26595 something starting with __ and the normal name is an alias. */
47964710 26596#if defined __stub_$ac_func || defined __stub___$ac_func
5d7b7554 26597choke me
5d7b7554
VZ
26598#endif
26599
26600int
26601main ()
26602{
47964710 26603return $ac_func ();
5d7b7554
VZ
26604 ;
26605 return 0;
26606}
26607_ACEOF
26608rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
26609if { (ac_try="$ac_link"
26610case "(($ac_try" in
26611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26612 *) ac_try_echo=$ac_try;;
26613esac
d589327a 26614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 26615 (eval "$ac_link") 2>conftest.er1
5d7b7554
VZ
26616 ac_status=$?
26617 grep -v '^ *+' conftest.er1 >conftest.err
26618 rm -f conftest.er1
26619 cat conftest.err >&5
d589327a 26620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26621 (exit $ac_status); } && {
26622 test -z "$ac_c_werror_flag" ||
26623 test ! -s conftest.err
d589327a
VZ
26624 } && test -s conftest$ac_exeext &&
26625 $as_test_x conftest$ac_exeext; then
5d7b7554
VZ
26626 eval "$as_ac_var=yes"
26627else
d589327a 26628 echo "$as_me: failed program was:" >&5
5d7b7554
VZ
26629sed 's/^/| /' conftest.$ac_ext >&5
26630
47964710 26631 eval "$as_ac_var=no"
5d7b7554 26632fi
47964710
VS
26633
26634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5d7b7554
VZ
26635 conftest$ac_exeext conftest.$ac_ext
26636fi
d589327a
VZ
26637ac_res=`eval echo '${'$as_ac_var'}'`
26638 { echo "$as_me:$LINENO: result: $ac_res" >&5
26639echo "${ECHO_T}$ac_res" >&6; }
26640if test `eval echo '${'$as_ac_var'}'` = yes; then
5d7b7554 26641 cat >>confdefs.h <<_ACEOF
d589327a 26642#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5d7b7554
VZ
26643_ACEOF
26644 have_ceil=1
26645fi
26646done
26647
d589327a
VZ
26648 { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26649echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
5d7b7554 26650 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
d589327a
VZ
26651 { echo "$as_me:$LINENO: result: yes" >&5
26652echo "${ECHO_T}yes" >&6; }
5d7b7554 26653 else
d589327a
VZ
26654 { echo "$as_me:$LINENO: result: no" >&5
26655echo "${ECHO_T}no" >&6; }
5d7b7554
VZ
26656 # not sure we should warn the user, crash, etc.
26657 fi
26658fi
26659
47964710 26660ac_ext=cpp
7fd3acaf
RD
26661ac_cpp='$CXXCPP $CPPFLAGS'
26662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26665
ec3edcc9
VZ
26666if test "wxUSE_UNICODE" = "yes"; then
26667
fd5199d6
VZ
26668 for wx_func in wcstoull
26669 do
d589327a
VZ
26670 { echo "$as_me:$LINENO: checking for $wx_func" >&5
26671echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
47964710 26672if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 26673 echo $ECHO_N "(cached) $ECHO_C" >&6
ec3edcc9 26674else
fd5199d6
VZ
26675
26676 cat >conftest.$ac_ext <<_ACEOF
26677
26678 /* confdefs.h. */
ec3edcc9
VZ
26679_ACEOF
26680cat confdefs.h >>conftest.$ac_ext
26681cat >>conftest.$ac_ext <<_ACEOF
26682/* end confdefs.h. */
ec3edcc9 26683
ec3edcc9 26684
fd5199d6 26685 $ac_includes_default
ec3edcc9
VZ
26686
26687int
26688main ()
26689{
fd5199d6
VZ
26690
26691 #ifndef $wx_func
26692 &$wx_func;
26693 #endif
26694
26695
ec3edcc9
VZ
26696 ;
26697 return 0;
26698}
fd5199d6 26699
ec3edcc9
VZ
26700_ACEOF
26701rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
26702if { (ac_try="$ac_link"
26703case "(($ac_try" in
26704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705 *) ac_try_echo=$ac_try;;
26706esac
d589327a 26707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 26708 (eval "$ac_link") 2>conftest.er1
ec3edcc9
VZ
26709 ac_status=$?
26710 grep -v '^ *+' conftest.er1 >conftest.err
26711 rm -f conftest.er1
26712 cat conftest.err >&5
d589327a 26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26714 (exit $ac_status); } && {
26715 test -z "$ac_cxx_werror_flag" ||
26716 test ! -s conftest.err
d589327a
VZ
26717 } && test -s conftest$ac_exeext &&
26718 $as_test_x conftest$ac_exeext; then
fd5199d6 26719 eval wx_cv_func_$wx_func=yes
ec3edcc9 26720else
d589327a 26721 echo "$as_me: failed program was:" >&5
ec3edcc9
VZ
26722sed 's/^/| /' conftest.$ac_ext >&5
26723
47964710 26724 eval wx_cv_func_$wx_func=no
ec3edcc9 26725fi
47964710
VS
26726
26727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54429bb3
RD
26728 conftest$ac_exeext conftest.$ac_ext
26729
26730fi
d589327a
VZ
26731ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26732 { echo "$as_me:$LINENO: result: $ac_res" >&5
26733echo "${ECHO_T}$ac_res" >&6; }
54429bb3
RD
26734
26735 if eval test \$wx_cv_func_$wx_func = yes
26736 then
26737 cat >>confdefs.h <<_ACEOF
d589327a 26738#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
54429bb3
RD
26739_ACEOF
26740
26741
26742 else
26743 :
26744
26745 fi
26746 done
26747
26748else
26749
26750 for wx_func in strtoull
26751 do
d589327a
VZ
26752 { echo "$as_me:$LINENO: checking for $wx_func" >&5
26753echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
47964710 26754if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 26755 echo $ECHO_N "(cached) $ECHO_C" >&6
54429bb3
RD
26756else
26757
26758 cat >conftest.$ac_ext <<_ACEOF
26759
26760 /* confdefs.h. */
26761_ACEOF
26762cat confdefs.h >>conftest.$ac_ext
26763cat >>conftest.$ac_ext <<_ACEOF
26764/* end confdefs.h. */
26765
26766
26767 $ac_includes_default
26768
26769int
26770main ()
26771{
26772
26773 #ifndef $wx_func
26774 &$wx_func;
26775 #endif
26776
26777
26778 ;
26779 return 0;
26780}
26781
26782_ACEOF
26783rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
26784if { (ac_try="$ac_link"
26785case "(($ac_try" in
26786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787 *) ac_try_echo=$ac_try;;
26788esac
d589327a 26789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 26790 (eval "$ac_link") 2>conftest.er1
54429bb3
RD
26791 ac_status=$?
26792 grep -v '^ *+' conftest.er1 >conftest.err
26793 rm -f conftest.er1
26794 cat conftest.err >&5
d589327a 26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26796 (exit $ac_status); } && {
26797 test -z "$ac_cxx_werror_flag" ||
26798 test ! -s conftest.err
d589327a
VZ
26799 } && test -s conftest$ac_exeext &&
26800 $as_test_x conftest$ac_exeext; then
54429bb3
RD
26801 eval wx_cv_func_$wx_func=yes
26802else
d589327a 26803 echo "$as_me: failed program was:" >&5
54429bb3
RD
26804sed 's/^/| /' conftest.$ac_ext >&5
26805
47964710 26806 eval wx_cv_func_$wx_func=no
54429bb3 26807fi
47964710
VS
26808
26809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ec3edcc9 26810 conftest$ac_exeext conftest.$ac_ext
fd5199d6 26811
ec3edcc9 26812fi
d589327a
VZ
26813ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26814 { echo "$as_me:$LINENO: result: $ac_res" >&5
26815echo "${ECHO_T}$ac_res" >&6; }
fd5199d6
VZ
26816
26817 if eval test \$wx_cv_func_$wx_func = yes
26818 then
26819 cat >>confdefs.h <<_ACEOF
d589327a 26820#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
ec3edcc9
VZ
26821_ACEOF
26822
fd5199d6
VZ
26823
26824 else
26825 :
26826
26827 fi
26828 done
ec3edcc9
VZ
26829
26830fi
7fd3acaf
RD
26831ac_ext=c
26832ac_cpp='$CPP $CPPFLAGS'
26833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26835ac_compiler_gnu=$ac_cv_c_compiler_gnu
26836
ec3edcc9 26837
5d7b7554
VZ
26838
26839
26840if test "$wxUSE_REGEX" != "no"; then
26841 cat >>confdefs.h <<\_ACEOF
26842#define wxUSE_REGEX 1
26843_ACEOF
26844
26845
26846 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
d589327a
VZ
26847 { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26848echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
5d7b7554
VZ
26849 wxUSE_REGEX=builtin
26850 fi
26851
26852 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
d589327a
VZ
26853 { echo "$as_me:$LINENO: checking for regex.h" >&5
26854echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
5d7b7554 26855if test "${ac_cv_header_regex_h+set}" = set; then
d589327a 26856 echo $ECHO_N "(cached) $ECHO_C" >&6
5d7b7554 26857else
6e7b8bcb 26858 cat >conftest.$ac_ext <<_ACEOF
5d7b7554
VZ
26859/* confdefs.h. */
26860_ACEOF
26861cat confdefs.h >>conftest.$ac_ext
26862cat >>conftest.$ac_ext <<_ACEOF
26863/* end confdefs.h. */
6e7b8bcb
PC
26864
26865
5d7b7554
VZ
26866#include <regex.h>
26867_ACEOF
26868rm -f conftest.$ac_objext
47964710
VS
26869if { (ac_try="$ac_compile"
26870case "(($ac_try" in
26871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26872 *) ac_try_echo=$ac_try;;
26873esac
d589327a 26874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 26875 (eval "$ac_compile") 2>conftest.er1
5d7b7554
VZ
26876 ac_status=$?
26877 grep -v '^ *+' conftest.er1 >conftest.err
26878 rm -f conftest.er1
26879 cat conftest.err >&5
d589327a 26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26881 (exit $ac_status); } && {
26882 test -z "$ac_c_werror_flag" ||
26883 test ! -s conftest.err
26884 } && test -s conftest.$ac_objext; then
6e7b8bcb 26885 ac_cv_header_regex_h=yes
5d7b7554 26886else
d589327a 26887 echo "$as_me: failed program was:" >&5
5d7b7554
VZ
26888sed 's/^/| /' conftest.$ac_ext >&5
26889
47964710 26890 ac_cv_header_regex_h=no
5d7b7554 26891fi
47964710
VS
26892
26893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554 26894fi
d589327a
VZ
26895{ echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26896echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26897if test $ac_cv_header_regex_h = yes; then
5d7b7554
VZ
26898
26899
26900for ac_func in regcomp re_search
26901do
d589327a
VZ
26902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26903{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 26905if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 26906 echo $ECHO_N "(cached) $ECHO_C" >&6
5d7b7554
VZ
26907else
26908 cat >conftest.$ac_ext <<_ACEOF
26909/* confdefs.h. */
26910_ACEOF
26911cat confdefs.h >>conftest.$ac_ext
26912cat >>conftest.$ac_ext <<_ACEOF
26913/* end confdefs.h. */
26914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26916#define $ac_func innocuous_$ac_func
26917
26918/* System header to define __stub macros and hopefully few prototypes,
26919 which can conflict with char $ac_func (); below.
26920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26921 <limits.h> exists even on freestanding compilers. */
26922
26923#ifdef __STDC__
26924# include <limits.h>
26925#else
26926# include <assert.h>
26927#endif
26928
26929#undef $ac_func
26930
47964710
VS
26931/* Override any GCC internal prototype to avoid an error.
26932 Use char because int might match the return type of a GCC
26933 builtin and then its argument prototype would still apply. */
5d7b7554
VZ
26934#ifdef __cplusplus
26935extern "C"
5d7b7554 26936#endif
5d7b7554
VZ
26937char $ac_func ();
26938/* The GNU C library defines this for functions which it implements
26939 to always fail with ENOSYS. Some functions are actually named
26940 something starting with __ and the normal name is an alias. */
47964710 26941#if defined __stub_$ac_func || defined __stub___$ac_func
5d7b7554 26942choke me
5d7b7554
VZ
26943#endif
26944
26945int
26946main ()
26947{
47964710 26948return $ac_func ();
5d7b7554
VZ
26949 ;
26950 return 0;
26951}
26952_ACEOF
26953rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
26954if { (ac_try="$ac_link"
26955case "(($ac_try" in
26956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26957 *) ac_try_echo=$ac_try;;
26958esac
d589327a 26959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 26960 (eval "$ac_link") 2>conftest.er1
5d7b7554
VZ
26961 ac_status=$?
26962 grep -v '^ *+' conftest.er1 >conftest.err
26963 rm -f conftest.er1
26964 cat conftest.err >&5
d589327a 26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
26966 (exit $ac_status); } && {
26967 test -z "$ac_c_werror_flag" ||
26968 test ! -s conftest.err
d589327a
VZ
26969 } && test -s conftest$ac_exeext &&
26970 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
26971 eval "$as_ac_var=yes"
26972else
d589327a 26973 echo "$as_me: failed program was:" >&5
a848cd7e
SC
26974sed 's/^/| /' conftest.$ac_ext >&5
26975
47964710 26976 eval "$as_ac_var=no"
a848cd7e 26977fi
47964710
VS
26978
26979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 26980 conftest$ac_exeext conftest.$ac_ext
a848cd7e 26981fi
d589327a
VZ
26982ac_res=`eval echo '${'$as_ac_var'}'`
26983 { echo "$as_me:$LINENO: result: $ac_res" >&5
26984echo "${ECHO_T}$ac_res" >&6; }
26985if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 26986 cat >>confdefs.h <<_ACEOF
d589327a 26987#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
26988_ACEOF
26989
26990fi
26991done
26992
26993fi
26994
26995
26996
26997 if test "x$ac_cv_func_regcomp" != "xyes"; then
26998 if test "$wxUSE_REGEX" = "sys" ; then
d589327a
VZ
26999 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
27000echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
a848cd7e
SC
27001 { (exit 1); exit 1; }; }
27002 else
d589327a
VZ
27003 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
27004echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
a848cd7e
SC
27005 wxUSE_REGEX=builtin
27006 fi
27007 else
27008 wxUSE_REGEX=sys
27009 cat >>confdefs.h <<\_ACEOF
27010#define WX_NO_REGEX_ADVANCED 1
27011_ACEOF
27012
27013 fi
27014 fi
27015fi
27016
27017
27018ZLIB_LINK=
27019if test "$wxUSE_ZLIB" != "no" ; then
27020 cat >>confdefs.h <<\_ACEOF
27021#define wxUSE_ZLIB 1
27022_ACEOF
27023
27024
27025 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
27026 if test "$USE_DARWIN" = 1; then
27027 system_zlib_h_ok="yes"
27028 else
d589327a
VZ
27029 { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
27030echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
a848cd7e 27031if test "${ac_cv_header_zlib_h+set}" = set; then
d589327a 27032 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
27033else
27034 if test "$cross_compiling" = yes; then
27035 unset ac_cv_header_zlib_h
27036
27037else
27038 cat >conftest.$ac_ext <<_ACEOF
27039/* confdefs.h. */
27040_ACEOF
27041cat confdefs.h >>conftest.$ac_ext
27042cat >>conftest.$ac_ext <<_ACEOF
27043/* end confdefs.h. */
27044
27045 #include <zlib.h>
27046 #include <stdio.h>
27047
27048 int main()
27049 {
27050 FILE *f=fopen("conftestval", "w");
27051 if (!f) exit(1);
27052 fprintf(f, "%s",
27053 ZLIB_VERSION[0] == '1' &&
27054 (ZLIB_VERSION[2] > '1' ||
27055 (ZLIB_VERSION[2] == '1' &&
27056 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
27057 exit(0);
27058 }
27059
27060_ACEOF
27061rm -f conftest$ac_exeext
47964710
VS
27062if { (ac_try="$ac_link"
27063case "(($ac_try" in
27064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27065 *) ac_try_echo=$ac_try;;
27066esac
d589327a 27067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27068 (eval "$ac_link") 2>&5
a848cd7e 27069 ac_status=$?
d589327a 27070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 27071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
27072 { (case "(($ac_try" in
27073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27074 *) ac_try_echo=$ac_try;;
27075esac
d589327a 27076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27077 (eval "$ac_try") 2>&5
a848cd7e 27078 ac_status=$?
d589327a 27079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
27080 (exit $ac_status); }; }; then
27081 ac_cv_header_zlib_h=`cat conftestval`
27082else
d589327a
VZ
27083 echo "$as_me: program exited with status $ac_status" >&5
27084echo "$as_me: failed program was:" >&5
a848cd7e
SC
27085sed 's/^/| /' conftest.$ac_ext >&5
27086
27087( exit $ac_status )
27088ac_cv_header_zlib_h=no
27089fi
47964710 27090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27091fi
27092
47964710
VS
27093
27094
a848cd7e 27095fi
d589327a
VZ
27096{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27097echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27098 { echo "$as_me:$LINENO: checking for zlib.h" >&5
27099echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
a848cd7e 27100if test "${ac_cv_header_zlib_h+set}" = set; then
d589327a 27101 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 27102else
6e7b8bcb 27103 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27104/* confdefs.h. */
27105_ACEOF
27106cat confdefs.h >>conftest.$ac_ext
27107cat >>conftest.$ac_ext <<_ACEOF
27108/* end confdefs.h. */
6e7b8bcb
PC
27109
27110
a848cd7e
SC
27111#include <zlib.h>
27112_ACEOF
27113rm -f conftest.$ac_objext
47964710
VS
27114if { (ac_try="$ac_compile"
27115case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27118esac
d589327a 27119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27120 (eval "$ac_compile") 2>conftest.er1
a848cd7e 27121 ac_status=$?
ac1cb8d3
VS
27122 grep -v '^ *+' conftest.er1 >conftest.err
27123 rm -f conftest.er1
27124 cat conftest.err >&5
d589327a 27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27126 (exit $ac_status); } && {
27127 test -z "$ac_c_werror_flag" ||
27128 test ! -s conftest.err
27129 } && test -s conftest.$ac_objext; then
6e7b8bcb 27130 ac_cv_header_zlib_h=yes
a848cd7e 27131else
d589327a 27132 echo "$as_me: failed program was:" >&5
a848cd7e
SC
27133sed 's/^/| /' conftest.$ac_ext >&5
27134
47964710 27135 ac_cv_header_zlib_h=no
a848cd7e 27136fi
47964710
VS
27137
27138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 27139fi
d589327a
VZ
27140{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27141echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
a848cd7e 27142
a848cd7e
SC
27143
27144
27145 system_zlib_h_ok=$ac_cv_header_zlib_h
27146 fi
27147
27148 if test "$system_zlib_h_ok" = "yes"; then
d589327a
VZ
27149 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
27150echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
a848cd7e 27151if test "${ac_cv_lib_z_deflate+set}" = set; then
d589327a 27152 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
27153else
27154 ac_check_lib_save_LIBS=$LIBS
27155LIBS="-lz $LIBS"
27156cat >conftest.$ac_ext <<_ACEOF
27157/* confdefs.h. */
27158_ACEOF
27159cat confdefs.h >>conftest.$ac_ext
27160cat >>conftest.$ac_ext <<_ACEOF
27161/* end confdefs.h. */
27162
47964710
VS
27163/* Override any GCC internal prototype to avoid an error.
27164 Use char because int might match the return type of a GCC
27165 builtin and then its argument prototype would still apply. */
a848cd7e
SC
27166#ifdef __cplusplus
27167extern "C"
27168#endif
a848cd7e
SC
27169char deflate ();
27170int
27171main ()
27172{
47964710 27173return deflate ();
a848cd7e
SC
27174 ;
27175 return 0;
27176}
27177_ACEOF
27178rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
27179if { (ac_try="$ac_link"
27180case "(($ac_try" in
27181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27182 *) ac_try_echo=$ac_try;;
27183esac
d589327a 27184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27185 (eval "$ac_link") 2>conftest.er1
a848cd7e 27186 ac_status=$?
ac1cb8d3
VS
27187 grep -v '^ *+' conftest.er1 >conftest.err
27188 rm -f conftest.er1
27189 cat conftest.err >&5
d589327a 27190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27191 (exit $ac_status); } && {
27192 test -z "$ac_c_werror_flag" ||
27193 test ! -s conftest.err
d589327a
VZ
27194 } && test -s conftest$ac_exeext &&
27195 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
27196 ac_cv_lib_z_deflate=yes
27197else
d589327a 27198 echo "$as_me: failed program was:" >&5
a848cd7e
SC
27199sed 's/^/| /' conftest.$ac_ext >&5
27200
47964710 27201 ac_cv_lib_z_deflate=no
a848cd7e 27202fi
47964710
VS
27203
27204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 27205 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27206LIBS=$ac_check_lib_save_LIBS
27207fi
d589327a
VZ
27208{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
27209echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
27210if test $ac_cv_lib_z_deflate = yes; then
a848cd7e
SC
27211 ZLIB_LINK=" -lz"
27212fi
27213
27214 fi
27215
27216 if test "x$ZLIB_LINK" = "x" ; then
27217 if test "$wxUSE_ZLIB" = "sys" ; then
d589327a
VZ
27218 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
27219echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
a848cd7e
SC
27220 { (exit 1); exit 1; }; }
27221 else
d589327a
VZ
27222 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
27223echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
a848cd7e
SC
27224 wxUSE_ZLIB=builtin
27225 fi
27226 else
27227 wxUSE_ZLIB=sys
27228 fi
27229 fi
27230fi
27231
27232
27233PNG_LINK=
27234if test "$wxUSE_LIBPNG" != "no" ; then
27235 cat >>confdefs.h <<\_ACEOF
27236#define wxUSE_LIBPNG 1
27237_ACEOF
27238
27239
27240 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
d589327a
VZ
27241 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
27242echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
a848cd7e
SC
27243 wxUSE_LIBPNG=sys
27244 fi
27245
27246 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
d589327a
VZ
27247 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
27248echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
a848cd7e
SC
27249 wxUSE_LIBPNG=builtin
27250 fi
27251
27252 if test "$wxUSE_MGL" != 1 ; then
27253 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
d589327a
VZ
27254 { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
27255echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
a848cd7e 27256if test "${ac_cv_header_png_h+set}" = set; then
d589327a 27257 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
27258else
27259 if test "$cross_compiling" = yes; then
27260 unset ac_cv_header_png_h
27261
27262else
27263 cat >conftest.$ac_ext <<_ACEOF
27264/* confdefs.h. */
27265_ACEOF
27266cat confdefs.h >>conftest.$ac_ext
27267cat >>conftest.$ac_ext <<_ACEOF
27268/* end confdefs.h. */
27269
27270 #include <png.h>
27271 #include <stdio.h>
27272
27273 int main()
27274 {
27275 FILE *f=fopen("conftestval", "w");
27276 if (!f) exit(1);
27277 fprintf(f, "%s",
27278 PNG_LIBPNG_VER > 90 ? "yes" : "no");
27279 exit(0);
27280 }
27281
27282_ACEOF
27283rm -f conftest$ac_exeext
47964710
VS
27284if { (ac_try="$ac_link"
27285case "(($ac_try" in
27286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27287 *) ac_try_echo=$ac_try;;
27288esac
d589327a 27289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27290 (eval "$ac_link") 2>&5
a848cd7e 27291 ac_status=$?
d589327a 27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 27293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
27294 { (case "(($ac_try" in
27295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296 *) ac_try_echo=$ac_try;;
27297esac
d589327a 27298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27299 (eval "$ac_try") 2>&5
a848cd7e 27300 ac_status=$?
d589327a 27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
27302 (exit $ac_status); }; }; then
27303 ac_cv_header_png_h=`cat conftestval`
27304else
d589327a
VZ
27305 echo "$as_me: program exited with status $ac_status" >&5
27306echo "$as_me: failed program was:" >&5
a848cd7e
SC
27307sed 's/^/| /' conftest.$ac_ext >&5
27308
27309( exit $ac_status )
27310ac_cv_header_png_h=no
27311fi
47964710 27312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27313fi
27314
47964710
VS
27315
27316
a848cd7e 27317fi
d589327a
VZ
27318{ echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27319echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
27320 { echo "$as_me:$LINENO: checking for png.h" >&5
27321echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
a848cd7e 27322if test "${ac_cv_header_png_h+set}" = set; then
d589327a 27323 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 27324else
6e7b8bcb 27325 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27326/* confdefs.h. */
27327_ACEOF
27328cat confdefs.h >>conftest.$ac_ext
27329cat >>conftest.$ac_ext <<_ACEOF
27330/* end confdefs.h. */
6e7b8bcb
PC
27331
27332
a848cd7e
SC
27333#include <png.h>
27334_ACEOF
27335rm -f conftest.$ac_objext
47964710
VS
27336if { (ac_try="$ac_compile"
27337case "(($ac_try" in
27338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27339 *) ac_try_echo=$ac_try;;
27340esac
d589327a 27341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27342 (eval "$ac_compile") 2>conftest.er1
a848cd7e 27343 ac_status=$?
ac1cb8d3
VS
27344 grep -v '^ *+' conftest.er1 >conftest.err
27345 rm -f conftest.er1
27346 cat conftest.err >&5
d589327a 27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27348 (exit $ac_status); } && {
27349 test -z "$ac_c_werror_flag" ||
27350 test ! -s conftest.err
27351 } && test -s conftest.$ac_objext; then
6e7b8bcb 27352 ac_cv_header_png_h=yes
a848cd7e 27353else
d589327a 27354 echo "$as_me: failed program was:" >&5
a848cd7e
SC
27355sed 's/^/| /' conftest.$ac_ext >&5
27356
47964710 27357 ac_cv_header_png_h=no
a848cd7e 27358fi
47964710
VS
27359
27360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 27361fi
d589327a
VZ
27362{ echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27363echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
a848cd7e 27364
a848cd7e
SC
27365
27366
27367 if test "$ac_cv_header_png_h" = "yes"; then
4cdbd8f3
VZ
27368 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
27369echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
27370if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
d589327a 27371 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
27372else
27373 ac_check_lib_save_LIBS=$LIBS
27374LIBS="-lpng -lz -lm $LIBS"
27375cat >conftest.$ac_ext <<_ACEOF
27376/* confdefs.h. */
27377_ACEOF
27378cat confdefs.h >>conftest.$ac_ext
27379cat >>conftest.$ac_ext <<_ACEOF
27380/* end confdefs.h. */
27381
47964710
VS
27382/* Override any GCC internal prototype to avoid an error.
27383 Use char because int might match the return type of a GCC
27384 builtin and then its argument prototype would still apply. */
a848cd7e
SC
27385#ifdef __cplusplus
27386extern "C"
27387#endif
4cdbd8f3 27388char png_sig_cmp ();
a848cd7e
SC
27389int
27390main ()
27391{
4cdbd8f3 27392return png_sig_cmp ();
a848cd7e
SC
27393 ;
27394 return 0;
27395}
27396_ACEOF
27397rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
27398if { (ac_try="$ac_link"
27399case "(($ac_try" in
27400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401 *) ac_try_echo=$ac_try;;
27402esac
d589327a 27403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27404 (eval "$ac_link") 2>conftest.er1
a848cd7e 27405 ac_status=$?
ac1cb8d3
VS
27406 grep -v '^ *+' conftest.er1 >conftest.err
27407 rm -f conftest.er1
27408 cat conftest.err >&5
d589327a 27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27410 (exit $ac_status); } && {
27411 test -z "$ac_c_werror_flag" ||
27412 test ! -s conftest.err
d589327a
VZ
27413 } && test -s conftest$ac_exeext &&
27414 $as_test_x conftest$ac_exeext; then
4cdbd8f3 27415 ac_cv_lib_png_png_sig_cmp=yes
a848cd7e 27416else
d589327a 27417 echo "$as_me: failed program was:" >&5
a848cd7e
SC
27418sed 's/^/| /' conftest.$ac_ext >&5
27419
4cdbd8f3 27420 ac_cv_lib_png_png_sig_cmp=no
a848cd7e 27421fi
47964710
VS
27422
27423rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 27424 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27425LIBS=$ac_check_lib_save_LIBS
27426fi
4cdbd8f3
VZ
27427{ echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
27428echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
27429if test $ac_cv_lib_png_png_sig_cmp = yes; then
a848cd7e
SC
27430 PNG_LINK=" -lpng -lz"
27431fi
27432
27433 fi
27434
27435 if test "x$PNG_LINK" = "x" ; then
27436 if test "$wxUSE_LIBPNG" = "sys" ; then
d589327a
VZ
27437 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
27438echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
a848cd7e
SC
27439 { (exit 1); exit 1; }; }
27440 else
d589327a
VZ
27441 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
27442echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
a848cd7e
SC
27443 wxUSE_LIBPNG=builtin
27444 fi
27445 else
27446 wxUSE_LIBPNG=sys
27447 fi
27448 fi
27449 fi
a848cd7e
SC
27450fi
27451
27452
27453JPEG_LINK=
27454if test "$wxUSE_LIBJPEG" != "no" ; then
27455 cat >>confdefs.h <<\_ACEOF
27456#define wxUSE_LIBJPEG 1
27457_ACEOF
27458
27459
27460 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
d589327a
VZ
27461 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
27462echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
a848cd7e
SC
27463 wxUSE_LIBJPEG=sys
27464 fi
27465
27466 if test "$wxUSE_MGL" != 1 ; then
27467 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
d589327a
VZ
27468 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
27469echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
a848cd7e 27470 if test "${ac_cv_header_jpeglib_h+set}" = set; then
d589327a 27471 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
27472else
27473 cat >conftest.$ac_ext <<_ACEOF
27474/* confdefs.h. */
27475_ACEOF
27476cat confdefs.h >>conftest.$ac_ext
27477cat >>conftest.$ac_ext <<_ACEOF
27478/* end confdefs.h. */
27479
27480 #undef HAVE_STDLIB_H
27481 #include <stdio.h>
27482 #include <jpeglib.h>
27483
27484int
27485main ()
27486{
27487
27488
27489 ;
27490 return 0;
27491}
27492_ACEOF
27493rm -f conftest.$ac_objext
47964710
VS
27494if { (ac_try="$ac_compile"
27495case "(($ac_try" in
27496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27497 *) ac_try_echo=$ac_try;;
27498esac
d589327a 27499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27500 (eval "$ac_compile") 2>conftest.er1
a848cd7e 27501 ac_status=$?
ac1cb8d3
VS
27502 grep -v '^ *+' conftest.er1 >conftest.err
27503 rm -f conftest.er1
27504 cat conftest.err >&5
d589327a 27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27506 (exit $ac_status); } && {
27507 test -z "$ac_c_werror_flag" ||
27508 test ! -s conftest.err
27509 } && test -s conftest.$ac_objext; then
a848cd7e
SC
27510 ac_cv_header_jpeglib_h=yes
27511else
d589327a 27512 echo "$as_me: failed program was:" >&5
a848cd7e
SC
27513sed 's/^/| /' conftest.$ac_ext >&5
27514
47964710 27515 ac_cv_header_jpeglib_h=no
a848cd7e
SC
27516
27517fi
47964710
VS
27518
27519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27520
27521fi
27522
d589327a
VZ
27523 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
27524echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
a848cd7e
SC
27525
27526 if test "$ac_cv_header_jpeglib_h" = "yes"; then
d589327a
VZ
27527 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
27528echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
a848cd7e 27529if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
d589327a 27530 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
27531else
27532 ac_check_lib_save_LIBS=$LIBS
27533LIBS="-ljpeg $LIBS"
27534cat >conftest.$ac_ext <<_ACEOF
27535/* confdefs.h. */
27536_ACEOF
27537cat confdefs.h >>conftest.$ac_ext
27538cat >>conftest.$ac_ext <<_ACEOF
27539/* end confdefs.h. */
27540
47964710
VS
27541/* Override any GCC internal prototype to avoid an error.
27542 Use char because int might match the return type of a GCC
27543 builtin and then its argument prototype would still apply. */
a848cd7e
SC
27544#ifdef __cplusplus
27545extern "C"
27546#endif
a848cd7e
SC
27547char jpeg_read_header ();
27548int
27549main ()
27550{
47964710 27551return jpeg_read_header ();
a848cd7e
SC
27552 ;
27553 return 0;
27554}
27555_ACEOF
27556rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
27557if { (ac_try="$ac_link"
27558case "(($ac_try" in
27559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560 *) ac_try_echo=$ac_try;;
27561esac
d589327a 27562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27563 (eval "$ac_link") 2>conftest.er1
a848cd7e 27564 ac_status=$?
ac1cb8d3
VS
27565 grep -v '^ *+' conftest.er1 >conftest.err
27566 rm -f conftest.er1
27567 cat conftest.err >&5
d589327a 27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27569 (exit $ac_status); } && {
27570 test -z "$ac_c_werror_flag" ||
27571 test ! -s conftest.err
d589327a
VZ
27572 } && test -s conftest$ac_exeext &&
27573 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
27574 ac_cv_lib_jpeg_jpeg_read_header=yes
27575else
d589327a 27576 echo "$as_me: failed program was:" >&5
a848cd7e
SC
27577sed 's/^/| /' conftest.$ac_ext >&5
27578
47964710 27579 ac_cv_lib_jpeg_jpeg_read_header=no
a848cd7e 27580fi
47964710
VS
27581
27582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 27583 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27584LIBS=$ac_check_lib_save_LIBS
27585fi
d589327a
VZ
27586{ echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27587echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27588if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
a848cd7e
SC
27589 JPEG_LINK=" -ljpeg"
27590fi
27591
27592 fi
27593
27594 if test "x$JPEG_LINK" = "x" ; then
27595 if test "$wxUSE_LIBJPEG" = "sys" ; then
d589327a
VZ
27596 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
27597echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
a848cd7e
SC
27598 { (exit 1); exit 1; }; }
27599 else
d589327a
VZ
27600 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
27601echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
a848cd7e
SC
27602 wxUSE_LIBJPEG=builtin
27603 fi
27604 else
27605 wxUSE_LIBJPEG=sys
90eaf433
MW
27606
27607 if test "$wxUSE_MSW" = 1; then
d589327a
VZ
27608 { echo "$as_me:$LINENO: checking for boolean" >&5
27609echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
90eaf433 27610if test "${ac_cv_type_boolean+set}" = set; then
d589327a 27611 echo $ECHO_N "(cached) $ECHO_C" >&6
90eaf433 27612else
d589327a 27613 cat >conftest.$ac_ext <<_ACEOF
90eaf433
MW
27614/* confdefs.h. */
27615_ACEOF
27616cat confdefs.h >>conftest.$ac_ext
27617cat >>conftest.$ac_ext <<_ACEOF
27618/* end confdefs.h. */
27619#include <windows.h>
27620
d589327a 27621typedef boolean ac__type_new_;
90eaf433
MW
27622int
27623main ()
27624{
d589327a
VZ
27625if ((ac__type_new_ *) 0)
27626 return 0;
27627if (sizeof (ac__type_new_))
27628 return 0;
90eaf433
MW
27629 ;
27630 return 0;
27631}
27632_ACEOF
27633rm -f conftest.$ac_objext
47964710
VS
27634if { (ac_try="$ac_compile"
27635case "(($ac_try" in
27636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27637 *) ac_try_echo=$ac_try;;
27638esac
d589327a 27639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27640 (eval "$ac_compile") 2>conftest.er1
90eaf433
MW
27641 ac_status=$?
27642 grep -v '^ *+' conftest.er1 >conftest.err
27643 rm -f conftest.er1
27644 cat conftest.err >&5
d589327a 27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27646 (exit $ac_status); } && {
27647 test -z "$ac_c_werror_flag" ||
27648 test ! -s conftest.err
27649 } && test -s conftest.$ac_objext; then
d589327a
VZ
27650 ac_cv_type_boolean=yes
27651else
27652 echo "$as_me: failed program was:" >&5
27653sed 's/^/| /' conftest.$ac_ext >&5
27654
27655 ac_cv_type_boolean=no
27656fi
27657
27658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27659fi
27660{ echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27661echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27662if test $ac_cv_type_boolean = yes; then
27663
27664cat >>confdefs.h <<_ACEOF
27665#define HAVE_BOOLEAN 1
27666_ACEOF
27667
27668
27669 { echo "$as_me:$LINENO: checking for boolean" >&5
27670echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27671if test "${ac_cv_type_boolean+set}" = set; then
27672 echo $ECHO_N "(cached) $ECHO_C" >&6
27673else
90eaf433
MW
27674 cat >conftest.$ac_ext <<_ACEOF
27675/* confdefs.h. */
27676_ACEOF
27677cat confdefs.h >>conftest.$ac_ext
27678cat >>conftest.$ac_ext <<_ACEOF
27679/* end confdefs.h. */
27680
d589327a
VZ
27681 #undef HAVE_BOOLEAN
27682 #include <stdio.h>
27683 #include <jpeglib.h>
27684
27685
27686typedef boolean ac__type_new_;
90eaf433
MW
27687int
27688main ()
27689{
d589327a
VZ
27690if ((ac__type_new_ *) 0)
27691 return 0;
27692if (sizeof (ac__type_new_))
27693 return 0;
90eaf433
MW
27694 ;
27695 return 0;
27696}
27697_ACEOF
27698rm -f conftest.$ac_objext
47964710
VS
27699if { (ac_try="$ac_compile"
27700case "(($ac_try" in
27701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27702 *) ac_try_echo=$ac_try;;
27703esac
d589327a 27704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27705 (eval "$ac_compile") 2>conftest.er1
90eaf433
MW
27706 ac_status=$?
27707 grep -v '^ *+' conftest.er1 >conftest.err
27708 rm -f conftest.er1
27709 cat conftest.err >&5
d589327a 27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27711 (exit $ac_status); } && {
27712 test -z "$ac_c_werror_flag" ||
27713 test ! -s conftest.err
27714 } && test -s conftest.$ac_objext; then
d589327a 27715 ac_cv_type_boolean=yes
aa113d87 27716else
d589327a 27717 echo "$as_me: failed program was:" >&5
aa113d87
FM
27718sed 's/^/| /' conftest.$ac_ext >&5
27719
d589327a 27720 ac_cv_type_boolean=no
90eaf433 27721fi
90eaf433 27722
aa113d87
FM
27723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27724fi
d589327a
VZ
27725{ echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27726echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
aa113d87 27727
d589327a 27728# The cast to long int works around a bug in the HP C Compiler
47964710
VS
27729# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27730# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27731# This bug is HP SR number 8606223364.
d589327a
VZ
27732{ echo "$as_me:$LINENO: checking size of boolean" >&5
27733echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
90eaf433 27734if test "${ac_cv_sizeof_boolean+set}" = set; then
d589327a 27735 echo $ECHO_N "(cached) $ECHO_C" >&6
90eaf433 27736else
90eaf433
MW
27737 if test "$cross_compiling" = yes; then
27738 # Depending upon the size, compute the lo and hi bounds.
27739cat >conftest.$ac_ext <<_ACEOF
27740/* confdefs.h. */
27741_ACEOF
27742cat confdefs.h >>conftest.$ac_ext
27743cat >>conftest.$ac_ext <<_ACEOF
27744/* end confdefs.h. */
27745
27746 #undef HAVE_BOOLEAN
27747 #include <stdio.h>
27748 #include <jpeglib.h>
27749
27750
d589327a 27751 typedef boolean ac__type_sizeof_;
90eaf433
MW
27752int
27753main ()
27754{
d589327a 27755static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
90eaf433
MW
27756test_array [0] = 0
27757
27758 ;
27759 return 0;
27760}
27761_ACEOF
27762rm -f conftest.$ac_objext
47964710
VS
27763if { (ac_try="$ac_compile"
27764case "(($ac_try" in
27765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766 *) ac_try_echo=$ac_try;;
27767esac
d589327a 27768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27769 (eval "$ac_compile") 2>conftest.er1
90eaf433
MW
27770 ac_status=$?
27771 grep -v '^ *+' conftest.er1 >conftest.err
27772 rm -f conftest.er1
27773 cat conftest.err >&5
d589327a 27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27775 (exit $ac_status); } && {
27776 test -z "$ac_c_werror_flag" ||
27777 test ! -s conftest.err
27778 } && test -s conftest.$ac_objext; then
90eaf433
MW
27779 ac_lo=0 ac_mid=0
27780 while :; do
27781 cat >conftest.$ac_ext <<_ACEOF
27782/* confdefs.h. */
27783_ACEOF
27784cat confdefs.h >>conftest.$ac_ext
27785cat >>conftest.$ac_ext <<_ACEOF
27786/* end confdefs.h. */
27787
27788 #undef HAVE_BOOLEAN
27789 #include <stdio.h>
27790 #include <jpeglib.h>
27791
27792
d589327a 27793 typedef boolean ac__type_sizeof_;
90eaf433
MW
27794int
27795main ()
27796{
d589327a 27797static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
90eaf433
MW
27798test_array [0] = 0
27799
27800 ;
27801 return 0;
27802}
27803_ACEOF
27804rm -f conftest.$ac_objext
47964710
VS
27805if { (ac_try="$ac_compile"
27806case "(($ac_try" in
27807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27808 *) ac_try_echo=$ac_try;;
27809esac
d589327a 27810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27811 (eval "$ac_compile") 2>conftest.er1
90eaf433
MW
27812 ac_status=$?
27813 grep -v '^ *+' conftest.er1 >conftest.err
27814 rm -f conftest.er1
27815 cat conftest.err >&5
d589327a 27816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27817 (exit $ac_status); } && {
27818 test -z "$ac_c_werror_flag" ||
27819 test ! -s conftest.err
27820 } && test -s conftest.$ac_objext; then
90eaf433
MW
27821 ac_hi=$ac_mid; break
27822else
d589327a 27823 echo "$as_me: failed program was:" >&5
90eaf433
MW
27824sed 's/^/| /' conftest.$ac_ext >&5
27825
47964710
VS
27826 ac_lo=`expr $ac_mid + 1`
27827 if test $ac_lo -le $ac_mid; then
27828 ac_lo= ac_hi=
27829 break
27830 fi
27831 ac_mid=`expr 2 '*' $ac_mid + 1`
90eaf433 27832fi
47964710
VS
27833
27834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
27835 done
27836else
d589327a 27837 echo "$as_me: failed program was:" >&5
90eaf433
MW
27838sed 's/^/| /' conftest.$ac_ext >&5
27839
47964710 27840 cat >conftest.$ac_ext <<_ACEOF
90eaf433
MW
27841/* confdefs.h. */
27842_ACEOF
27843cat confdefs.h >>conftest.$ac_ext
27844cat >>conftest.$ac_ext <<_ACEOF
27845/* end confdefs.h. */
27846
27847 #undef HAVE_BOOLEAN
27848 #include <stdio.h>
27849 #include <jpeglib.h>
27850
27851
d589327a 27852 typedef boolean ac__type_sizeof_;
90eaf433
MW
27853int
27854main ()
27855{
d589327a 27856static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
90eaf433
MW
27857test_array [0] = 0
27858
27859 ;
27860 return 0;
27861}
27862_ACEOF
27863rm -f conftest.$ac_objext
47964710
VS
27864if { (ac_try="$ac_compile"
27865case "(($ac_try" in
27866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27867 *) ac_try_echo=$ac_try;;
27868esac
d589327a 27869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27870 (eval "$ac_compile") 2>conftest.er1
90eaf433
MW
27871 ac_status=$?
27872 grep -v '^ *+' conftest.er1 >conftest.err
27873 rm -f conftest.er1
27874 cat conftest.err >&5
d589327a 27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27876 (exit $ac_status); } && {
27877 test -z "$ac_c_werror_flag" ||
27878 test ! -s conftest.err
27879 } && test -s conftest.$ac_objext; then
90eaf433
MW
27880 ac_hi=-1 ac_mid=-1
27881 while :; do
27882 cat >conftest.$ac_ext <<_ACEOF
27883/* confdefs.h. */
27884_ACEOF
27885cat confdefs.h >>conftest.$ac_ext
27886cat >>conftest.$ac_ext <<_ACEOF
27887/* end confdefs.h. */
27888
27889 #undef HAVE_BOOLEAN
27890 #include <stdio.h>
27891 #include <jpeglib.h>
27892
27893
d589327a 27894 typedef boolean ac__type_sizeof_;
90eaf433
MW
27895int
27896main ()
27897{
d589327a 27898static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
90eaf433
MW
27899test_array [0] = 0
27900
27901 ;
27902 return 0;
27903}
27904_ACEOF
27905rm -f conftest.$ac_objext
47964710
VS
27906if { (ac_try="$ac_compile"
27907case "(($ac_try" in
27908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27909 *) ac_try_echo=$ac_try;;
27910esac
d589327a 27911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27912 (eval "$ac_compile") 2>conftest.er1
90eaf433
MW
27913 ac_status=$?
27914 grep -v '^ *+' conftest.er1 >conftest.err
27915 rm -f conftest.er1
27916 cat conftest.err >&5
d589327a 27917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27918 (exit $ac_status); } && {
27919 test -z "$ac_c_werror_flag" ||
27920 test ! -s conftest.err
27921 } && test -s conftest.$ac_objext; then
90eaf433
MW
27922 ac_lo=$ac_mid; break
27923else
d589327a 27924 echo "$as_me: failed program was:" >&5
90eaf433
MW
27925sed 's/^/| /' conftest.$ac_ext >&5
27926
47964710
VS
27927 ac_hi=`expr '(' $ac_mid ')' - 1`
27928 if test $ac_mid -le $ac_hi; then
27929 ac_lo= ac_hi=
27930 break
27931 fi
27932 ac_mid=`expr 2 '*' $ac_mid`
90eaf433 27933fi
47964710
VS
27934
27935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
27936 done
27937else
d589327a 27938 echo "$as_me: failed program was:" >&5
90eaf433
MW
27939sed 's/^/| /' conftest.$ac_ext >&5
27940
47964710 27941 ac_lo= ac_hi=
90eaf433 27942fi
47964710
VS
27943
27944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433 27945fi
47964710
VS
27946
27947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
27948# Binary search between lo and hi bounds.
27949while test "x$ac_lo" != "x$ac_hi"; do
27950 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27951 cat >conftest.$ac_ext <<_ACEOF
27952/* confdefs.h. */
27953_ACEOF
27954cat confdefs.h >>conftest.$ac_ext
27955cat >>conftest.$ac_ext <<_ACEOF
27956/* end confdefs.h. */
27957
27958 #undef HAVE_BOOLEAN
27959 #include <stdio.h>
27960 #include <jpeglib.h>
27961
27962
d589327a 27963 typedef boolean ac__type_sizeof_;
90eaf433
MW
27964int
27965main ()
27966{
d589327a 27967static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
90eaf433
MW
27968test_array [0] = 0
27969
27970 ;
27971 return 0;
27972}
27973_ACEOF
27974rm -f conftest.$ac_objext
47964710
VS
27975if { (ac_try="$ac_compile"
27976case "(($ac_try" in
27977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27978 *) ac_try_echo=$ac_try;;
27979esac
d589327a 27980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 27981 (eval "$ac_compile") 2>conftest.er1
90eaf433
MW
27982 ac_status=$?
27983 grep -v '^ *+' conftest.er1 >conftest.err
27984 rm -f conftest.er1
27985 cat conftest.err >&5
d589327a 27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
27987 (exit $ac_status); } && {
27988 test -z "$ac_c_werror_flag" ||
27989 test ! -s conftest.err
27990 } && test -s conftest.$ac_objext; then
90eaf433
MW
27991 ac_hi=$ac_mid
27992else
d589327a 27993 echo "$as_me: failed program was:" >&5
90eaf433
MW
27994sed 's/^/| /' conftest.$ac_ext >&5
27995
47964710 27996 ac_lo=`expr '(' $ac_mid ')' + 1`
90eaf433 27997fi
47964710
VS
27998
27999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
28000done
28001case $ac_lo in
28002?*) ac_cv_sizeof_boolean=$ac_lo;;
47964710 28003'') if test "$ac_cv_type_boolean" = yes; then
d589327a 28004 { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
90eaf433 28005See \`config.log' for more details." >&5
d589327a 28006echo "$as_me: error: cannot compute sizeof (boolean)
90eaf433 28007See \`config.log' for more details." >&2;}
d589327a 28008 { (exit 77); exit 77; }; }
47964710
VS
28009 else
28010 ac_cv_sizeof_boolean=0
28011 fi ;;
90eaf433 28012esac
90eaf433
MW
28013else
28014 cat >conftest.$ac_ext <<_ACEOF
28015/* confdefs.h. */
28016_ACEOF
28017cat confdefs.h >>conftest.$ac_ext
28018cat >>conftest.$ac_ext <<_ACEOF
28019/* end confdefs.h. */
28020
28021 #undef HAVE_BOOLEAN
28022 #include <stdio.h>
28023 #include <jpeglib.h>
28024
28025
d589327a
VZ
28026 typedef boolean ac__type_sizeof_;
28027static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28028static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
90eaf433
MW
28029#include <stdio.h>
28030#include <stdlib.h>
28031int
28032main ()
28033{
28034
28035 FILE *f = fopen ("conftest.val", "w");
28036 if (! f)
47964710 28037 return 1;
d589327a 28038 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
90eaf433 28039 {
47964710 28040 long int i = longval ();
d589327a 28041 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 28042 return 1;
d589327a 28043 fprintf (f, "%ld\n", i);
90eaf433
MW
28044 }
28045 else
28046 {
47964710 28047 unsigned long int i = ulongval ();
d589327a 28048 if (i != ((long int) (sizeof (ac__type_sizeof_))))
47964710 28049 return 1;
d589327a 28050 fprintf (f, "%lu\n", i);
90eaf433 28051 }
47964710 28052 return ferror (f) || fclose (f) != 0;
90eaf433
MW
28053
28054 ;
28055 return 0;
28056}
28057_ACEOF
28058rm -f conftest$ac_exeext
47964710
VS
28059if { (ac_try="$ac_link"
28060case "(($ac_try" in
28061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062 *) ac_try_echo=$ac_try;;
28063esac
d589327a 28064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 28065 (eval "$ac_link") 2>&5
90eaf433 28066 ac_status=$?
d589327a 28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90eaf433 28068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
28069 { (case "(($ac_try" in
28070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28071 *) ac_try_echo=$ac_try;;
28072esac
d589327a 28073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 28074 (eval "$ac_try") 2>&5
90eaf433 28075 ac_status=$?
d589327a 28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90eaf433
MW
28077 (exit $ac_status); }; }; then
28078 ac_cv_sizeof_boolean=`cat conftest.val`
28079else
d589327a
VZ
28080 echo "$as_me: program exited with status $ac_status" >&5
28081echo "$as_me: failed program was:" >&5
90eaf433
MW
28082sed 's/^/| /' conftest.$ac_ext >&5
28083
28084( exit $ac_status )
47964710 28085if test "$ac_cv_type_boolean" = yes; then
d589327a 28086 { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
90eaf433 28087See \`config.log' for more details." >&5
d589327a 28088echo "$as_me: error: cannot compute sizeof (boolean)
90eaf433 28089See \`config.log' for more details." >&2;}
d589327a 28090 { (exit 77); exit 77; }; }
47964710
VS
28091 else
28092 ac_cv_sizeof_boolean=0
28093 fi
90eaf433 28094fi
47964710 28095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
90eaf433
MW
28096fi
28097rm -f conftest.val
90eaf433 28098fi
d589327a
VZ
28099{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
28100echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
47964710
VS
28101
28102
28103
90eaf433
MW
28104cat >>confdefs.h <<_ACEOF
28105#define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
28106_ACEOF
28107
28108
28109 cat >>confdefs.h <<_ACEOF
28110#define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
28111_ACEOF
28112
28113
28114fi
28115
28116 fi
a848cd7e
SC
28117 fi
28118 fi
28119 fi
2956d9e1
VZ
28120fi
28121
28122
28123TIFF_LINK=
28124TIFF_PREREQ_LINKS=-lm
28125if test "$wxUSE_LIBTIFF" != "no" ; then
28126 cat >>confdefs.h <<\_ACEOF
28127#define wxUSE_LIBTIFF 1
28128_ACEOF
28129
28130
28131 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
28132 if test "$wxUSE_LIBJPEG" = "sys"; then
28133 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
28134 fi
28135 if test "$wxUSE_ZLIB" = "sys"; then
28136 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
28137 fi
d589327a
VZ
28138 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
28139echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
2956d9e1 28140if test "${ac_cv_header_tiffio_h+set}" = set; then
d589327a 28141 echo $ECHO_N "(cached) $ECHO_C" >&6
2956d9e1
VZ
28142else
28143 cat >conftest.$ac_ext <<_ACEOF
28144/* confdefs.h. */
28145_ACEOF
28146cat confdefs.h >>conftest.$ac_ext
28147cat >>conftest.$ac_ext <<_ACEOF
28148/* end confdefs.h. */
28149
28150
28151
28152#include <tiffio.h>
28153_ACEOF
28154rm -f conftest.$ac_objext
28155if { (ac_try="$ac_compile"
28156case "(($ac_try" in
28157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28158 *) ac_try_echo=$ac_try;;
28159esac
d589327a 28160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956d9e1
VZ
28161 (eval "$ac_compile") 2>conftest.er1
28162 ac_status=$?
28163 grep -v '^ *+' conftest.er1 >conftest.err
28164 rm -f conftest.er1
28165 cat conftest.err >&5
d589327a 28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956d9e1
VZ
28167 (exit $ac_status); } && {
28168 test -z "$ac_c_werror_flag" ||
28169 test ! -s conftest.err
28170 } && test -s conftest.$ac_objext; then
28171 ac_cv_header_tiffio_h=yes
28172else
d589327a 28173 echo "$as_me: failed program was:" >&5
2956d9e1
VZ
28174sed 's/^/| /' conftest.$ac_ext >&5
28175
28176 ac_cv_header_tiffio_h=no
28177fi
28178
28179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28180fi
d589327a
VZ
28181{ echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
28182echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
28183if test $ac_cv_header_tiffio_h = yes; then
2956d9e1 28184
d589327a
VZ
28185 { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
28186echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
2956d9e1 28187if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
d589327a 28188 echo $ECHO_N "(cached) $ECHO_C" >&6
2956d9e1
VZ
28189else
28190 ac_check_lib_save_LIBS=$LIBS
28191LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
28192cat >conftest.$ac_ext <<_ACEOF
28193/* confdefs.h. */
28194_ACEOF
28195cat confdefs.h >>conftest.$ac_ext
28196cat >>conftest.$ac_ext <<_ACEOF
28197/* end confdefs.h. */
28198
28199/* Override any GCC internal prototype to avoid an error.
28200 Use char because int might match the return type of a GCC
28201 builtin and then its argument prototype would still apply. */
28202#ifdef __cplusplus
28203extern "C"
28204#endif
28205char TIFFError ();
28206int
28207main ()
28208{
28209return TIFFError ();
28210 ;
28211 return 0;
28212}
28213_ACEOF
28214rm -f conftest.$ac_objext conftest$ac_exeext
28215if { (ac_try="$ac_link"
28216case "(($ac_try" in
28217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218 *) ac_try_echo=$ac_try;;
28219esac
d589327a 28220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956d9e1
VZ
28221 (eval "$ac_link") 2>conftest.er1
28222 ac_status=$?
28223 grep -v '^ *+' conftest.er1 >conftest.err
28224 rm -f conftest.er1
28225 cat conftest.err >&5
d589327a 28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956d9e1
VZ
28227 (exit $ac_status); } && {
28228 test -z "$ac_c_werror_flag" ||
28229 test ! -s conftest.err
d589327a
VZ
28230 } && test -s conftest$ac_exeext &&
28231 $as_test_x conftest$ac_exeext; then
2956d9e1 28232 ac_cv_lib_tiff_TIFFError=yes
bef5e9e5 28233else
d589327a 28234 echo "$as_me: failed program was:" >&5
2956d9e1
VZ
28235sed 's/^/| /' conftest.$ac_ext >&5
28236
28237 ac_cv_lib_tiff_TIFFError=no
28238fi
28239
28240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28241 conftest$ac_exeext conftest.$ac_ext
28242LIBS=$ac_check_lib_save_LIBS
28243fi
d589327a
VZ
28244{ echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
28245echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
28246if test $ac_cv_lib_tiff_TIFFError = yes; then
2956d9e1
VZ
28247 TIFF_LINK=" -ltiff"
28248fi
28249
28250
28251fi
28252
28253
28254
28255 if test "x$TIFF_LINK" = "x" ; then
28256 if test "$wxUSE_LIBTIFF" = "sys" ; then
d589327a
VZ
28257 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
28258echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
2956d9e1
VZ
28259 { (exit 1); exit 1; }; }
28260 else
d589327a
VZ
28261 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
28262echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
2956d9e1
VZ
28263 wxUSE_LIBTIFF=builtin
28264 fi
28265 else
28266 wxUSE_LIBTIFF=sys
28267 fi
28268 fi
28269 if test "$wxUSE_LIBTIFF" = "builtin" ; then
28270 if test "$wxUSE_LIBJPEG" = "no"; then
28271 ac_configure_args="$ac_configure_args --disable-jpeg"
28272 fi
d589327a 28273 subdirs="$subdirs src/tiff"
2956d9e1 28274
a848cd7e
SC
28275 fi
28276fi
28277
28278
47a7e797
MW
28279if test "$wxUSE_WCHAR_T" != "yes"; then
28280 if test "$wxUSE_EXPAT" != "no"; then
d589327a
VZ
28281 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
28282echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
47a7e797
MW
28283 wxUSE_EXPAT=no
28284 fi
28285 if test "$wxUSE_XML" != "no"; then
d589327a
VZ
28286 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
28287echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
47a7e797
MW
28288 wxUSE_XML=no
28289 fi
28290fi
28291
a848cd7e
SC
28292if test "$wxUSE_EXPAT" != "no"; then
28293 wxUSE_XML=yes
28294 cat >>confdefs.h <<\_ACEOF
28295#define wxUSE_EXPAT 1
28296_ACEOF
28297
28298 cat >>confdefs.h <<\_ACEOF
28299#define wxUSE_XML 1
28300_ACEOF
28301
28302
28303 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
d589327a
VZ
28304 { echo "$as_me:$LINENO: checking for expat.h" >&5
28305echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
a848cd7e 28306if test "${ac_cv_header_expat_h+set}" = set; then
d589327a 28307 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 28308else
6e7b8bcb 28309 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28310/* confdefs.h. */
28311_ACEOF
28312cat confdefs.h >>conftest.$ac_ext
28313cat >>conftest.$ac_ext <<_ACEOF
28314/* end confdefs.h. */
6e7b8bcb
PC
28315
28316
a848cd7e
SC
28317#include <expat.h>
28318_ACEOF
28319rm -f conftest.$ac_objext
47964710
VS
28320if { (ac_try="$ac_compile"
28321case "(($ac_try" in
28322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28323 *) ac_try_echo=$ac_try;;
28324esac
d589327a 28325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 28326 (eval "$ac_compile") 2>conftest.er1
a848cd7e 28327 ac_status=$?
ac1cb8d3
VS
28328 grep -v '^ *+' conftest.er1 >conftest.err
28329 rm -f conftest.er1
28330 cat conftest.err >&5
d589327a 28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28332 (exit $ac_status); } && {
28333 test -z "$ac_c_werror_flag" ||
28334 test ! -s conftest.err
28335 } && test -s conftest.$ac_objext; then
6e7b8bcb 28336 ac_cv_header_expat_h=yes
a848cd7e 28337else
d589327a 28338 echo "$as_me: failed program was:" >&5
a848cd7e
SC
28339sed 's/^/| /' conftest.$ac_ext >&5
28340
47964710 28341 ac_cv_header_expat_h=no
a848cd7e 28342fi
47964710
VS
28343
28344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 28345fi
d589327a
VZ
28346{ echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
28347echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
28348if test $ac_cv_header_expat_h = yes; then
a848cd7e
SC
28349 found_expat_h=1
28350fi
28351
28352
28353 if test "x$found_expat_h" = "x1"; then
d589327a
VZ
28354 { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
28355echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
a848cd7e 28356if test "${wx_cv_expat_is_not_broken+set}" = set; then
d589327a 28357 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
28358else
28359
47964710 28360 ac_ext=cpp
9b8888f9
VZ
28361ac_cpp='$CXXCPP $CPPFLAGS'
28362ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28363ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28364ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28365
a848cd7e
SC
28366 cat >conftest.$ac_ext <<_ACEOF
28367/* confdefs.h. */
28368_ACEOF
28369cat confdefs.h >>conftest.$ac_ext
28370cat >>conftest.$ac_ext <<_ACEOF
28371/* end confdefs.h. */
28372#include <expat.h>
28373int
28374main ()
28375{
28376
28377 ;
28378 return 0;
28379}
28380_ACEOF
28381rm -f conftest.$ac_objext
47964710
VS
28382if { (ac_try="$ac_compile"
28383case "(($ac_try" in
28384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385 *) ac_try_echo=$ac_try;;
28386esac
d589327a 28387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 28388 (eval "$ac_compile") 2>conftest.er1
a848cd7e 28389 ac_status=$?
ac1cb8d3
VS
28390 grep -v '^ *+' conftest.er1 >conftest.err
28391 rm -f conftest.er1
28392 cat conftest.err >&5
d589327a 28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28394 (exit $ac_status); } && {
28395 test -z "$ac_cxx_werror_flag" ||
28396 test ! -s conftest.err
28397 } && test -s conftest.$ac_objext; then
a848cd7e
SC
28398 wx_cv_expat_is_not_broken=yes
28399else
d589327a 28400 echo "$as_me: failed program was:" >&5
a848cd7e
SC
28401sed 's/^/| /' conftest.$ac_ext >&5
28402
47964710 28403 wx_cv_expat_is_not_broken=no
a848cd7e
SC
28404
28405fi
47964710
VS
28406
28407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
28408 ac_ext=c
28409ac_cpp='$CPP $CPPFLAGS'
28410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28412ac_compiler_gnu=$ac_cv_c_compiler_gnu
28413
a848cd7e
SC
28414
28415
28416fi
d589327a
VZ
28417{ echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
28418echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
a848cd7e 28419 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
d589327a
VZ
28420 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
28421echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
a848cd7e 28422if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
d589327a 28423 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
28424else
28425 ac_check_lib_save_LIBS=$LIBS
28426LIBS="-lexpat $LIBS"
28427cat >conftest.$ac_ext <<_ACEOF
28428/* confdefs.h. */
28429_ACEOF
28430cat confdefs.h >>conftest.$ac_ext
28431cat >>conftest.$ac_ext <<_ACEOF
28432/* end confdefs.h. */
28433
47964710
VS
28434/* Override any GCC internal prototype to avoid an error.
28435 Use char because int might match the return type of a GCC
28436 builtin and then its argument prototype would still apply. */
a848cd7e
SC
28437#ifdef __cplusplus
28438extern "C"
28439#endif
a848cd7e
SC
28440char XML_ParserCreate ();
28441int
28442main ()
28443{
47964710 28444return XML_ParserCreate ();
a848cd7e
SC
28445 ;
28446 return 0;
28447}
28448_ACEOF
28449rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
28450if { (ac_try="$ac_link"
28451case "(($ac_try" in
28452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28453 *) ac_try_echo=$ac_try;;
28454esac
d589327a 28455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 28456 (eval "$ac_link") 2>conftest.er1
a848cd7e 28457 ac_status=$?
ac1cb8d3
VS
28458 grep -v '^ *+' conftest.er1 >conftest.err
28459 rm -f conftest.er1
28460 cat conftest.err >&5
d589327a 28461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28462 (exit $ac_status); } && {
28463 test -z "$ac_c_werror_flag" ||
28464 test ! -s conftest.err
d589327a
VZ
28465 } && test -s conftest$ac_exeext &&
28466 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
28467 ac_cv_lib_expat_XML_ParserCreate=yes
28468else
d589327a 28469 echo "$as_me: failed program was:" >&5
a848cd7e
SC
28470sed 's/^/| /' conftest.$ac_ext >&5
28471
47964710 28472 ac_cv_lib_expat_XML_ParserCreate=no
a848cd7e 28473fi
47964710
VS
28474
28475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 28476 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28477LIBS=$ac_check_lib_save_LIBS
28478fi
d589327a
VZ
28479{ echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
28480echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
28481if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
a848cd7e
SC
28482 EXPAT_LINK=" -lexpat"
28483fi
28484
28485 fi
28486 fi
28487 if test "x$EXPAT_LINK" = "x" ; then
28488 if test "$wxUSE_EXPAT" = "sys" ; then
d589327a
VZ
28489 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
28490echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
a848cd7e
SC
28491 { (exit 1); exit 1; }; }
28492 else
d589327a
VZ
28493 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
28494echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
a848cd7e
SC
28495 wxUSE_EXPAT=builtin
28496 fi
28497 else
28498 wxUSE_EXPAT=sys
28499 fi
28500 fi
28501 if test "$wxUSE_EXPAT" = "builtin" ; then
47964710 28502 subdirs="$subdirs src/expat"
a848cd7e
SC
28503
28504 fi
28505fi
28506
28507
28508
28509if test "$wxUSE_LIBMSPACK" != "no"; then
d589327a
VZ
28510 { echo "$as_me:$LINENO: checking for mspack.h" >&5
28511echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
a848cd7e 28512if test "${ac_cv_header_mspack_h+set}" = set; then
d589327a 28513 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 28514else
6e7b8bcb 28515 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28516/* confdefs.h. */
28517_ACEOF
28518cat confdefs.h >>conftest.$ac_ext
28519cat >>conftest.$ac_ext <<_ACEOF
28520/* end confdefs.h. */
6e7b8bcb
PC
28521
28522
a848cd7e
SC
28523#include <mspack.h>
28524_ACEOF
28525rm -f conftest.$ac_objext
47964710
VS
28526if { (ac_try="$ac_compile"
28527case "(($ac_try" in
28528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28529 *) ac_try_echo=$ac_try;;
28530esac
d589327a 28531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 28532 (eval "$ac_compile") 2>conftest.er1
a848cd7e 28533 ac_status=$?
ac1cb8d3
VS
28534 grep -v '^ *+' conftest.er1 >conftest.err
28535 rm -f conftest.er1
28536 cat conftest.err >&5
d589327a 28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28538 (exit $ac_status); } && {
28539 test -z "$ac_c_werror_flag" ||
28540 test ! -s conftest.err
28541 } && test -s conftest.$ac_objext; then
6e7b8bcb 28542 ac_cv_header_mspack_h=yes
a848cd7e 28543else
d589327a 28544 echo "$as_me: failed program was:" >&5
a848cd7e
SC
28545sed 's/^/| /' conftest.$ac_ext >&5
28546
47964710 28547 ac_cv_header_mspack_h=no
a848cd7e 28548fi
47964710
VS
28549
28550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 28551fi
d589327a
VZ
28552{ echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
28553echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
28554if test $ac_cv_header_mspack_h = yes; then
a848cd7e
SC
28555 found_mspack_h=1
28556fi
28557
28558
28559 if test "x$found_mspack_h" = "x1"; then
d589327a
VZ
28560 { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
28561echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
a848cd7e 28562if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
d589327a 28563 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
28564else
28565 ac_check_lib_save_LIBS=$LIBS
28566LIBS="-lmspack $LIBS"
28567cat >conftest.$ac_ext <<_ACEOF
28568/* confdefs.h. */
28569_ACEOF
28570cat confdefs.h >>conftest.$ac_ext
28571cat >>conftest.$ac_ext <<_ACEOF
28572/* end confdefs.h. */
28573
47964710
VS
28574/* Override any GCC internal prototype to avoid an error.
28575 Use char because int might match the return type of a GCC
28576 builtin and then its argument prototype would still apply. */
a848cd7e
SC
28577#ifdef __cplusplus
28578extern "C"
28579#endif
a848cd7e
SC
28580char mspack_create_chm_decompressor ();
28581int
28582main ()
28583{
47964710 28584return mspack_create_chm_decompressor ();
a848cd7e
SC
28585 ;
28586 return 0;
28587}
28588_ACEOF
28589rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
28590if { (ac_try="$ac_link"
28591case "(($ac_try" in
28592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593 *) ac_try_echo=$ac_try;;
28594esac
d589327a 28595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 28596 (eval "$ac_link") 2>conftest.er1
a848cd7e 28597 ac_status=$?
ac1cb8d3
VS
28598 grep -v '^ *+' conftest.er1 >conftest.err
28599 rm -f conftest.er1
28600 cat conftest.err >&5
d589327a 28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28602 (exit $ac_status); } && {
28603 test -z "$ac_c_werror_flag" ||
28604 test ! -s conftest.err
d589327a
VZ
28605 } && test -s conftest$ac_exeext &&
28606 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
28607 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
28608else
d589327a 28609 echo "$as_me: failed program was:" >&5
a848cd7e
SC
28610sed 's/^/| /' conftest.$ac_ext >&5
28611
47964710 28612 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
a848cd7e 28613fi
47964710
VS
28614
28615rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 28616 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28617LIBS=$ac_check_lib_save_LIBS
28618fi
d589327a
VZ
28619{ echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28620echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
28621if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
a848cd7e
SC
28622 MSPACK_LINK=" -lmspack"
28623fi
28624
28625 fi
28626 if test "x$MSPACK_LINK" = "x" ; then
28627 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
28628 fi
28629fi
28630
28631if test "$wxUSE_LIBMSPACK" != "no"; then
28632 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28633#define wxUSE_LIBMSPACK 1
28634_ACEOF
28635
a848cd7e
SC
28636fi
28637
28638
28639
28640AFMINSTALL=
28641WIN32INSTALL=
28642
28643TOOLKIT=
28644TOOLKIT_INCLUDE=
28645WIDGET_SET=
28646
28647if test "$USE_WIN32" = 1 ; then
be2ad872
PC
28648
28649for ac_header in w32api.h
28650do
d589327a
VZ
28651as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28652{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47964710 28654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 28655 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 28656else
6e7b8bcb 28657 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28658/* confdefs.h. */
28659_ACEOF
28660cat confdefs.h >>conftest.$ac_ext
28661cat >>conftest.$ac_ext <<_ACEOF
28662/* end confdefs.h. */
6e7b8bcb
PC
28663
28664
be2ad872 28665#include <$ac_header>
a848cd7e
SC
28666_ACEOF
28667rm -f conftest.$ac_objext
47964710
VS
28668if { (ac_try="$ac_compile"
28669case "(($ac_try" in
28670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28671 *) ac_try_echo=$ac_try;;
28672esac
d589327a 28673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 28674 (eval "$ac_compile") 2>conftest.er1
a848cd7e 28675 ac_status=$?
ac1cb8d3
VS
28676 grep -v '^ *+' conftest.er1 >conftest.err
28677 rm -f conftest.er1
28678 cat conftest.err >&5
d589327a 28679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28680 (exit $ac_status); } && {
28681 test -z "$ac_c_werror_flag" ||
28682 test ! -s conftest.err
28683 } && test -s conftest.$ac_objext; then
be2ad872 28684 eval "$as_ac_Header=yes"
a848cd7e 28685else
d589327a 28686 echo "$as_me: failed program was:" >&5
a848cd7e
SC
28687sed 's/^/| /' conftest.$ac_ext >&5
28688
47964710 28689 eval "$as_ac_Header=no"
a848cd7e 28690fi
47964710
VS
28691
28692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 28693fi
d589327a
VZ
28694ac_res=`eval echo '${'$as_ac_Header'}'`
28695 { echo "$as_me:$LINENO: result: $ac_res" >&5
28696echo "${ECHO_T}$ac_res" >&6; }
28697if test `eval echo '${'$as_ac_Header'}'` = yes; then
be2ad872 28698 cat >>confdefs.h <<_ACEOF
d589327a 28699#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
be2ad872
PC
28700_ACEOF
28701
28702fi
7fd3acaf 28703
be2ad872 28704done
f321ab7f 28705
d589327a
VZ
28706 { echo "$as_me:$LINENO: checking for windows.h" >&5
28707echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
f321ab7f 28708if test "${ac_cv_header_windows_h+set}" = set; then
d589327a 28709 echo $ECHO_N "(cached) $ECHO_C" >&6
f321ab7f 28710else
6e7b8bcb 28711 cat >conftest.$ac_ext <<_ACEOF
f321ab7f
VS
28712/* confdefs.h. */
28713_ACEOF
28714cat confdefs.h >>conftest.$ac_ext
28715cat >>conftest.$ac_ext <<_ACEOF
28716/* end confdefs.h. */
6e7b8bcb
PC
28717
28718
f321ab7f
VS
28719#include <windows.h>
28720_ACEOF
28721rm -f conftest.$ac_objext
47964710
VS
28722if { (ac_try="$ac_compile"
28723case "(($ac_try" in
28724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725 *) ac_try_echo=$ac_try;;
28726esac
d589327a 28727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 28728 (eval "$ac_compile") 2>conftest.er1
f321ab7f
VS
28729 ac_status=$?
28730 grep -v '^ *+' conftest.er1 >conftest.err
28731 rm -f conftest.er1
28732 cat conftest.err >&5
d589327a 28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28734 (exit $ac_status); } && {
28735 test -z "$ac_c_werror_flag" ||
28736 test ! -s conftest.err
28737 } && test -s conftest.$ac_objext; then
6e7b8bcb 28738 ac_cv_header_windows_h=yes
f321ab7f 28739else
d589327a 28740 echo "$as_me: failed program was:" >&5
f321ab7f
VS
28741sed 's/^/| /' conftest.$ac_ext >&5
28742
47964710 28743 ac_cv_header_windows_h=no
f321ab7f 28744fi
47964710
VS
28745
28746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 28747fi
d589327a
VZ
28748{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28749echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28750if test $ac_cv_header_windows_h = yes; then
a848cd7e
SC
28751 :
28752else
28753
d589327a
VZ
28754 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28755echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
a848cd7e
SC
28756 { (exit 1); exit 1; }; }
28757
28758fi
28759
28760
28761
f380544a 28762 case "${host}" in
03773e40 28763 x86_64-*-mingw32* )
f380544a 28764 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
da16724e
VZ
28765
28766 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
f380544a
VZ
28767 ;;
28768 * )
a848cd7e 28769 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
f380544a
VZ
28770 ;;
28771 esac
a848cd7e
SC
28772 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28773 LIBS="$LIBS -loleacc"
28774 fi
28775
28776 case "${host}" in
28777 *-*-cygwin* )
28778 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
28779 esac
28780
370d2fd7 28781 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
28782 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28783
004ee6da 28784 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 28785
a848cd7e 28786 WIN32INSTALL=win32install
5f41d1bf 28787
d589327a
VZ
28788 { echo "$as_me:$LINENO: checking for pbt.h" >&5
28789echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
6e7b8bcb 28790if test "${ac_cv_header_pbt_h+set}" = set; then
d589327a 28791 echo $ECHO_N "(cached) $ECHO_C" >&6
dcfd4ac4 28792else
6e7b8bcb 28793 cat >conftest.$ac_ext <<_ACEOF
dcfd4ac4
MW
28794/* confdefs.h. */
28795_ACEOF
28796cat confdefs.h >>conftest.$ac_ext
28797cat >>conftest.$ac_ext <<_ACEOF
28798/* end confdefs.h. */
6e7b8bcb
PC
28799
28800
28801#include <pbt.h>
dcfd4ac4
MW
28802_ACEOF
28803rm -f conftest.$ac_objext
47964710
VS
28804if { (ac_try="$ac_compile"
28805case "(($ac_try" in
28806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28807 *) ac_try_echo=$ac_try;;
28808esac
d589327a 28809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 28810 (eval "$ac_compile") 2>conftest.er1
dcfd4ac4
MW
28811 ac_status=$?
28812 grep -v '^ *+' conftest.er1 >conftest.err
28813 rm -f conftest.er1
28814 cat conftest.err >&5
d589327a 28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
28816 (exit $ac_status); } && {
28817 test -z "$ac_c_werror_flag" ||
28818 test ! -s conftest.err
28819 } && test -s conftest.$ac_objext; then
6e7b8bcb 28820 ac_cv_header_pbt_h=yes
dcfd4ac4 28821else
d589327a 28822 echo "$as_me: failed program was:" >&5
dcfd4ac4
MW
28823sed 's/^/| /' conftest.$ac_ext >&5
28824
47964710 28825 ac_cv_header_pbt_h=no
dcfd4ac4 28826fi
47964710
VS
28827
28828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dcfd4ac4 28829fi
d589327a
VZ
28830{ echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28831echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28832if test $ac_cv_header_pbt_h = yes; then
6e7b8bcb 28833 :
dcfd4ac4
MW
28834else
28835 cat >>confdefs.h <<\_ACEOF
28836#define NEED_PBT_H 1
28837_ACEOF
28838
28839fi
28840
dcfd4ac4 28841
a848cd7e
SC
28842fi
28843
28844if test "$wxUSE_GUI" = "yes"; then
28845 USE_GUI=1
28846
28847 GUI_TK_LIBRARY=
28848
28849 WXGTK12=
28850 WXGTK127=
88262190 28851 WXGTK2=
a848cd7e
SC
28852 WXGPE=
28853
f10f4c87 28854 if test "$wxUSE_OLD_COCOA" = 1 ; then
207bc66c 28855 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
d589327a
VZ
28856 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28857echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
207bc66c
RN
28858 wxUSE_PRINTING_ARCHITECTURE=no
28859 fi
28860 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
d589327a
VZ
28861 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28862echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
207bc66c
RN
28863 wxUSE_DRAG_AND_DROP=no
28864 fi
28865 if test "$wxUSE_DRAGIMAGE" = "yes"; then
d589327a
VZ
28866 { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28867echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
207bc66c
RN
28868 wxUSE_DRAGIMAGE=no
28869 fi
28870 fi
28871
a848cd7e
SC
28872 if test "$wxUSE_MSW" = 1 ; then
28873 TOOLKIT=MSW
28874 GUIDIST=MSW_DIST
28875
ceec2216 28876 case "${host}" in
a848cd7e
SC
28877 *-*-mingw32* )
28878 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28879 esac
28880 fi
28881
28882 if test "$wxUSE_GTK" = 1; then
d589327a
VZ
28883 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28884echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
a848cd7e
SC
28885
28886 gtk_version_cached=1
28887 if test "${wx_cv_lib_gtk+set}" = set; then
d589327a 28888 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
28889else
28890
28891 gtk_version_cached=0
d589327a
VZ
28892 { echo "$as_me:$LINENO: result: " >&5
28893echo "${ECHO_T}" >&6; }
a848cd7e
SC
28894
28895 GTK_MODULES=
28896 if test "$wxUSE_THREADS" = "yes"; then
28897 GTK_MODULES=gthread
28898 fi
28899
f597b41c 28900 wx_cv_lib_gtk=
5001df0d
MW
28901 if test "x$wxGTK_VERSION" != "x1"
28902 then
28903 case "${host}" in
28904 *-*-solaris2* )
28905 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
43a7c679 28906 enable_gtktest=no
5001df0d
MW
28907 fi
28908 esac
28909
47964710 28910 # Check whether --enable-gtktest was given.
a848cd7e 28911if test "${enable_gtktest+set}" = set; then
47964710 28912 enableval=$enable_gtktest;
a848cd7e
SC
28913else
28914 enable_gtktest=yes
47964710
VS
28915fi
28916
a848cd7e
SC
28917
28918 pkg_config_args=gtk+-2.0
28919 for module in . $GTK_MODULES
28920 do
28921 case "$module" in
28922 gthread)
28923 pkg_config_args="$pkg_config_args gthread-2.0"
28924 ;;
28925 esac
28926 done
28927
28928 no_gtk=""
28929
28930 # Extract the first word of "pkg-config", so it can be a program name with args.
28931set dummy pkg-config; ac_word=$2
d589327a
VZ
28932{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 28934if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
d589327a 28935 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
28936else
28937 case $PKG_CONFIG in
28938 [\\/]* | ?:[\\/]*)
28939 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28940 ;;
28941 *)
28942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28943for as_dir in $PATH
28944do
28945 IFS=$as_save_IFS
28946 test -z "$as_dir" && as_dir=.
28947 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 28948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 28949 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
d589327a 28950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
28951 break 2
28952 fi
28953done
28954done
47964710 28955IFS=$as_save_IFS
a848cd7e
SC
28956
28957 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28958 ;;
28959esac
28960fi
28961PKG_CONFIG=$ac_cv_path_PKG_CONFIG
a848cd7e 28962if test -n "$PKG_CONFIG"; then
d589327a
VZ
28963 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28964echo "${ECHO_T}$PKG_CONFIG" >&6; }
a848cd7e 28965else
d589327a
VZ
28966 { echo "$as_me:$LINENO: result: no" >&5
28967echo "${ECHO_T}no" >&6; }
a848cd7e
SC
28968fi
28969
28970
47964710 28971
a848cd7e
SC
28972 if test x$PKG_CONFIG != xno ; then
28973 if pkg-config --atleast-pkgconfig-version 0.7 ; then
28974 :
28975 else
c2218763 28976 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
28977 no_gtk=yes
28978 PKG_CONFIG=no
28979 fi
28980 else
28981 no_gtk=yes
28982 fi
28983
88262190 28984 min_gtk_version=2.4.0
d589327a
VZ
28985 { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28986echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
a848cd7e
SC
28987
28988 if test x$PKG_CONFIG != xno ; then
28989 ## don't try to run the test against uninstalled libtool libs
28990 if $PKG_CONFIG --uninstalled $pkg_config_args; then
28991 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28992 enable_gtktest=no
28993 fi
28994
28995 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28996 :
28997 else
28998 no_gtk=yes
28999 fi
29000 fi
29001
29002 if test x"$no_gtk" = x ; then
29003 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
29004 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
29005 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29006 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29007 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29008 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29009 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29010 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29011 if test "x$enable_gtktest" = "xyes" ; then
29012 ac_save_CFLAGS="$CFLAGS"
29013 ac_save_LIBS="$LIBS"
29014 CFLAGS="$CFLAGS $GTK_CFLAGS"
29015 LIBS="$GTK_LIBS $LIBS"
29016 rm -f conf.gtktest
29017 if test "$cross_compiling" = yes; then
29018 echo $ac_n "cross compiling; assumed OK... $ac_c"
29019else
29020 cat >conftest.$ac_ext <<_ACEOF
29021/* confdefs.h. */
29022_ACEOF
29023cat confdefs.h >>conftest.$ac_ext
29024cat >>conftest.$ac_ext <<_ACEOF
29025/* end confdefs.h. */
29026
29027#include <gtk/gtk.h>
29028#include <stdio.h>
29029#include <stdlib.h>
29030
29031int
29032main ()
29033{
29034 int major, minor, micro;
29035 char *tmp_version;
29036
29037 system ("touch conf.gtktest");
29038
29039 /* HP/UX 9 (%@#!) writes to sscanf strings */
29040 tmp_version = g_strdup("$min_gtk_version");
29041 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29042 printf("%s, bad version string\n", "$min_gtk_version");
29043 exit(1);
29044 }
29045
29046 if ((gtk_major_version != $gtk_config_major_version) ||
29047 (gtk_minor_version != $gtk_config_minor_version) ||
29048 (gtk_micro_version != $gtk_config_micro_version))
29049 {
29050 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29051 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29052 gtk_major_version, gtk_minor_version, gtk_micro_version);
29053 printf ("*** was found! If pkg-config was correct, then it is best\n");
29054 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29055 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29056 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29057 printf("*** required on your system.\n");
29058 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
29059 printf("*** to point to the correct configuration files\n");
29060 }
29061 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29062 (gtk_minor_version != GTK_MINOR_VERSION) ||
29063 (gtk_micro_version != GTK_MICRO_VERSION))
29064 {
29065 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29066 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29067 printf("*** library (version %d.%d.%d)\n",
29068 gtk_major_version, gtk_minor_version, gtk_micro_version);
29069 }
29070 else
29071 {
29072 if ((gtk_major_version > major) ||
29073 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29074 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29075 {
29076 return 0;
29077 }
29078 else
29079 {
29080 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29081 gtk_major_version, gtk_minor_version, gtk_micro_version);
29082 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29083 major, minor, micro);
29084 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29085 printf("***\n");
29086 printf("*** If you have already installed a sufficiently new version, this error\n");
29087 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
29088 printf("*** being found. The easiest way to fix this is to remove the old version\n");
29089 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
29090 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
29091 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29092 printf("*** so that the correct libraries are found at run-time))\n");
29093 }
29094 }
29095 return 1;
29096}
29097
29098_ACEOF
29099rm -f conftest$ac_exeext
47964710
VS
29100if { (ac_try="$ac_link"
29101case "(($ac_try" in
29102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103 *) ac_try_echo=$ac_try;;
29104esac
d589327a 29105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 29106 (eval "$ac_link") 2>&5
a848cd7e 29107 ac_status=$?
d589327a 29108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 29109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
29110 { (case "(($ac_try" in
29111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112 *) ac_try_echo=$ac_try;;
29113esac
d589327a 29114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 29115 (eval "$ac_try") 2>&5
a848cd7e 29116 ac_status=$?
d589327a 29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
29118 (exit $ac_status); }; }; then
29119 :
29120else
d589327a
VZ
29121 echo "$as_me: program exited with status $ac_status" >&5
29122echo "$as_me: failed program was:" >&5
a848cd7e
SC
29123sed 's/^/| /' conftest.$ac_ext >&5
29124
29125( exit $ac_status )
29126no_gtk=yes
29127fi
47964710 29128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 29129fi
47964710
VS
29130
29131
a848cd7e
SC
29132 CFLAGS="$ac_save_CFLAGS"
29133 LIBS="$ac_save_LIBS"
29134 fi
29135 fi
29136 if test "x$no_gtk" = x ; then
d589327a
VZ
29137 { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
29138echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
a848cd7e
SC
29139 wx_cv_lib_gtk=2.0
29140 else
d589327a
VZ
29141 { echo "$as_me:$LINENO: result: no" >&5
29142echo "${ECHO_T}no" >&6; }
a848cd7e
SC
29143 if test "$PKG_CONFIG" = "no" ; then
29144 echo "*** A new enough version of pkg-config was not found."
29145 echo "*** See http://pkgconfig.sourceforge.net"
29146 else
29147 if test -f conf.gtktest ; then
29148 :
29149 else
29150 echo "*** Could not run GTK+ test program, checking why..."
29151 ac_save_CFLAGS="$CFLAGS"
29152 ac_save_LIBS="$LIBS"
29153 CFLAGS="$CFLAGS $GTK_CFLAGS"
29154 LIBS="$LIBS $GTK_LIBS"
29155 cat >conftest.$ac_ext <<_ACEOF
29156/* confdefs.h. */
29157_ACEOF
29158cat confdefs.h >>conftest.$ac_ext
29159cat >>conftest.$ac_ext <<_ACEOF
29160/* end confdefs.h. */
29161
29162#include <gtk/gtk.h>
29163#include <stdio.h>
29164
29165int
29166main ()
29167{
29168 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29169 ;
29170 return 0;
29171}
29172_ACEOF
29173rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
29174if { (ac_try="$ac_link"
29175case "(($ac_try" in
29176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29177 *) ac_try_echo=$ac_try;;
29178esac
d589327a 29179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 29180 (eval "$ac_link") 2>conftest.er1
a848cd7e 29181 ac_status=$?
ac1cb8d3
VS
29182 grep -v '^ *+' conftest.er1 >conftest.err
29183 rm -f conftest.er1
29184 cat conftest.err >&5
d589327a 29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29186 (exit $ac_status); } && {
29187 test -z "$ac_c_werror_flag" ||
29188 test ! -s conftest.err
d589327a
VZ
29189 } && test -s conftest$ac_exeext &&
29190 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
29191 echo "*** The test program compiled, but did not run. This usually means"
29192 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
29193 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
29194 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29195 echo "*** to the installed location Also, make sure you have run ldconfig if that"
29196 echo "*** is required on your system"
29197 echo "***"
29198 echo "*** If you have an old version installed, it is best to remove it, although"
29199 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29200else
d589327a 29201 echo "$as_me: failed program was:" >&5
a848cd7e
SC
29202sed 's/^/| /' conftest.$ac_ext >&5
29203
47964710 29204 echo "*** The test program failed to compile or link. See the file config.log for the"
a848cd7e
SC
29205 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
29206fi
47964710
VS
29207
29208rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 29209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29210 CFLAGS="$ac_save_CFLAGS"
29211 LIBS="$ac_save_LIBS"
29212 fi
29213 fi
29214 GTK_CFLAGS=""
29215 GTK_LIBS=""
29216 :
29217 fi
29218
29219
29220 rm -f conf.gtktest
29221
5001df0d
MW
29222
29223 case "${host}" in
29224 *-*-solaris2* )
43a7c679 29225 if test "$wxUSE_SHARED" != "yes"; then
5001df0d
MW
29226 GTK_LIBS="$GTK_LIBS -lX11"
29227 fi
29228 esac
f597b41c
MW
29229 fi
29230
f34ca037
MW
29231 if test -z "$wx_cv_lib_gtk"; then
29232 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e 29233
47964710 29234# Check whether --with-gtk-prefix was given.
a848cd7e 29235if test "${with_gtk_prefix+set}" = set; then
47964710 29236 withval=$with_gtk_prefix; gtk_config_prefix="$withval"
a848cd7e
SC
29237else
29238 gtk_config_prefix=""
47964710 29239fi
84ebfcbd 29240
47964710
VS
29241
29242# Check whether --with-gtk-exec-prefix was given.
a848cd7e 29243if test "${with_gtk_exec_prefix+set}" = set; then
47964710 29244 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
a848cd7e
SC
29245else
29246 gtk_config_exec_prefix=""
47964710 29247fi
bd8a7646 29248
47964710
VS
29249# Check whether --enable-gtktest was given.
29250if test "${enable_gtktest+set}" = set; then
29251 enableval=$enable_gtktest;
a848cd7e
SC
29252else
29253 enable_gtktest=yes
47964710
VS
29254fi
29255
a848cd7e
SC
29256
29257 for module in . $GTK_MODULES
29258 do
29259 case "$module" in
29260 gthread)
29261 gtk_config_args="$gtk_config_args gthread"
29262 ;;
29263 esac
29264 done
29265
29266 if test x$gtk_config_exec_prefix != x ; then
29267 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
29268 if test x${GTK_CONFIG+set} != xset ; then
29269 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29270 fi
29271 fi
29272 if test x$gtk_config_prefix != x ; then
29273 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29274 if test x${GTK_CONFIG+set} != xset ; then
29275 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29276 fi
29277 fi
29278
29279 # Extract the first word of "gtk-config", so it can be a program name with args.
29280set dummy gtk-config; ac_word=$2
d589327a
VZ
29281{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 29283if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
d589327a 29284 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
29285else
29286 case $GTK_CONFIG in
29287 [\\/]* | ?:[\\/]*)
29288 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29289 ;;
29290 *)
29291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29292for as_dir in $PATH
29293do
29294 IFS=$as_save_IFS
29295 test -z "$as_dir" && as_dir=.
29296 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 29297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 29298 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
d589327a 29299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
29300 break 2
29301 fi
29302done
29303done
47964710 29304IFS=$as_save_IFS
a848cd7e
SC
29305
29306 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29307 ;;
29308esac
29309fi
29310GTK_CONFIG=$ac_cv_path_GTK_CONFIG
a848cd7e 29311if test -n "$GTK_CONFIG"; then
d589327a
VZ
29312 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29313echo "${ECHO_T}$GTK_CONFIG" >&6; }
a848cd7e 29314else
d589327a
VZ
29315 { echo "$as_me:$LINENO: result: no" >&5
29316echo "${ECHO_T}no" >&6; }
a848cd7e
SC
29317fi
29318
47964710 29319
a848cd7e 29320 min_gtk_version=1.2.7
d589327a
VZ
29321 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29322echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
a848cd7e
SC
29323 no_gtk=""
29324 if test "$GTK_CONFIG" = "no" ; then
29325 no_gtk=yes
29326 else
29327 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29328 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29329 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29330 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29331 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29332 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29333 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29334 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29335 if test "x$enable_gtktest" = "xyes" ; then
29336 ac_save_CFLAGS="$CFLAGS"
29337 ac_save_LIBS="$LIBS"
29338 CFLAGS="$CFLAGS $GTK_CFLAGS"
29339 LIBS="$GTK_LIBS $LIBS"
29340 rm -f conf.gtktest
29341 if test "$cross_compiling" = yes; then
29342 echo $ac_n "cross compiling; assumed OK... $ac_c"
29343else
29344 cat >conftest.$ac_ext <<_ACEOF
29345/* confdefs.h. */
29346_ACEOF
29347cat confdefs.h >>conftest.$ac_ext
29348cat >>conftest.$ac_ext <<_ACEOF
29349/* end confdefs.h. */
29350
29351#include <gtk/gtk.h>
29352#include <stdio.h>
29353#include <stdlib.h>
29354
29355int
29356main ()
29357{
29358 int major, minor, micro;
29359 char *tmp_version;
29360
29361 system ("touch conf.gtktest");
29362
29363 /* HP/UX 9 (%@#!) writes to sscanf strings */
29364 tmp_version = g_strdup("$min_gtk_version");
29365 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29366 printf("%s, bad version string\n", "$min_gtk_version");
29367 exit(1);
29368 }
29369
29370 if ((gtk_major_version != $gtk_config_major_version) ||
29371 (gtk_minor_version != $gtk_config_minor_version) ||
29372 (gtk_micro_version != $gtk_config_micro_version))
29373 {
29374 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29375 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29376 gtk_major_version, gtk_minor_version, gtk_micro_version);
29377 printf ("*** was found! If gtk-config was correct, then it is best\n");
29378 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29379 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29380 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29381 printf("*** required on your system.\n");
29382 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29383 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29384 printf("*** before re-running configure\n");
29385 }
29386#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29387 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29388 (gtk_minor_version != GTK_MINOR_VERSION) ||
29389 (gtk_micro_version != GTK_MICRO_VERSION))
29390 {
29391 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29392 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29393 printf("*** library (version %d.%d.%d)\n",
29394 gtk_major_version, gtk_minor_version, gtk_micro_version);
29395 }
29396#endif /* defined (GTK_MAJOR_VERSION) ... */
29397 else
29398 {
29399 if ((gtk_major_version > major) ||
29400 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29401 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29402 {
29403 return 0;
29404 }
29405 else
29406 {
29407 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29408 gtk_major_version, gtk_minor_version, gtk_micro_version);
29409 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29410 major, minor, micro);
29411 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29412 printf("***\n");
29413 printf("*** If you have already installed a sufficiently new version, this error\n");
29414 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29415 printf("*** being found. The easiest way to fix this is to remove the old version\n");
29416 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29417 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29418 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29419 printf("*** so that the correct libraries are found at run-time))\n");
29420 }
29421 }
29422 return 1;
29423}
29424
29425_ACEOF
29426rm -f conftest$ac_exeext
47964710
VS
29427if { (ac_try="$ac_link"
29428case "(($ac_try" in
29429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29430 *) ac_try_echo=$ac_try;;
29431esac
d589327a 29432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 29433 (eval "$ac_link") 2>&5
a848cd7e 29434 ac_status=$?
d589327a 29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 29436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
29437 { (case "(($ac_try" in
29438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439 *) ac_try_echo=$ac_try;;
29440esac
d589327a 29441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 29442 (eval "$ac_try") 2>&5
a848cd7e 29443 ac_status=$?
d589327a 29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
29445 (exit $ac_status); }; }; then
29446 :
29447else
d589327a
VZ
29448 echo "$as_me: program exited with status $ac_status" >&5
29449echo "$as_me: failed program was:" >&5
a848cd7e
SC
29450sed 's/^/| /' conftest.$ac_ext >&5
29451
29452( exit $ac_status )
29453no_gtk=yes
29454fi
47964710 29455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 29456fi
47964710
VS
29457
29458
a848cd7e
SC
29459 CFLAGS="$ac_save_CFLAGS"
29460 LIBS="$ac_save_LIBS"
29461 fi
29462 fi
29463 if test "x$no_gtk" = x ; then
d589327a
VZ
29464 { echo "$as_me:$LINENO: result: yes" >&5
29465echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
29466 wx_cv_lib_gtk=1.2.7
29467 else
d589327a
VZ
29468 { echo "$as_me:$LINENO: result: no" >&5
29469echo "${ECHO_T}no" >&6; }
a848cd7e
SC
29470 if test "$GTK_CONFIG" = "no" ; then
29471 echo "*** The gtk-config script installed by GTK could not be found"
29472 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29473 echo "*** your path, or set the GTK_CONFIG environment variable to the"
29474 echo "*** full path to gtk-config."
29475 else
29476 if test -f conf.gtktest ; then
29477 :
29478 else
29479 echo "*** Could not run GTK test program, checking why..."
29480 CFLAGS="$CFLAGS $GTK_CFLAGS"
29481 LIBS="$LIBS $GTK_LIBS"
29482 cat >conftest.$ac_ext <<_ACEOF
29483/* confdefs.h. */
29484_ACEOF
29485cat confdefs.h >>conftest.$ac_ext
29486cat >>conftest.$ac_ext <<_ACEOF
29487/* end confdefs.h. */
29488
29489#include <gtk/gtk.h>
29490#include <stdio.h>
29491
29492int
29493main ()
29494{
29495 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29496 ;
29497 return 0;
29498}
29499_ACEOF
29500rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
29501if { (ac_try="$ac_link"
29502case "(($ac_try" in
29503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504 *) ac_try_echo=$ac_try;;
29505esac
d589327a 29506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 29507 (eval "$ac_link") 2>conftest.er1
a848cd7e 29508 ac_status=$?
ac1cb8d3
VS
29509 grep -v '^ *+' conftest.er1 >conftest.err
29510 rm -f conftest.er1
29511 cat conftest.err >&5
d589327a 29512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29513 (exit $ac_status); } && {
29514 test -z "$ac_c_werror_flag" ||
29515 test ! -s conftest.err
d589327a
VZ
29516 } && test -s conftest$ac_exeext &&
29517 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
29518 echo "*** The test program compiled, but did not run. This usually means"
29519 echo "*** that the run-time linker is not finding GTK or finding the wrong"
29520 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29521 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29522 echo "*** to the installed location Also, make sure you have run ldconfig if that"
29523 echo "*** is required on your system"
29524 echo "***"
29525 echo "*** If you have an old version installed, it is best to remove it, although"
29526 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29527 echo "***"
29528 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29529 echo "*** came with the system with the command"
29530 echo "***"
29531 echo "*** rpm --erase --nodeps gtk gtk-devel"
29532else
d589327a 29533 echo "$as_me: failed program was:" >&5
a848cd7e
SC
29534sed 's/^/| /' conftest.$ac_ext >&5
29535
47964710 29536 echo "*** The test program failed to compile or link. See the file config.log for the"
a848cd7e
SC
29537 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29538 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29539 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29540fi
47964710
VS
29541
29542rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 29543 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29544 CFLAGS="$ac_save_CFLAGS"
29545 LIBS="$ac_save_LIBS"
29546 fi
29547 fi
29548 GTK_CFLAGS=""
29549 GTK_LIBS=""
29550 :
29551 fi
29552
29553
29554 rm -f conf.gtktest
29555
29556
f34ca037 29557 if test -z "$wx_cv_lib_gtk"; then
a848cd7e 29558
47964710 29559# Check whether --with-gtk-prefix was given.
a848cd7e 29560if test "${with_gtk_prefix+set}" = set; then
47964710 29561 withval=$with_gtk_prefix; gtk_config_prefix="$withval"
a848cd7e
SC
29562else
29563 gtk_config_prefix=""
47964710
VS
29564fi
29565
84ebfcbd 29566
47964710 29567# Check whether --with-gtk-exec-prefix was given.
a848cd7e 29568if test "${with_gtk_exec_prefix+set}" = set; then
47964710 29569 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
a848cd7e
SC
29570else
29571 gtk_config_exec_prefix=""
47964710 29572fi
bd8a7646 29573
47964710
VS
29574# Check whether --enable-gtktest was given.
29575if test "${enable_gtktest+set}" = set; then
29576 enableval=$enable_gtktest;
a848cd7e
SC
29577else
29578 enable_gtktest=yes
47964710
VS
29579fi
29580
a848cd7e
SC
29581
29582 for module in . $GTK_MODULES
29583 do
29584 case "$module" in
29585 gthread)
29586 gtk_config_args="$gtk_config_args gthread"
29587 ;;
29588 esac
29589 done
29590
29591 if test x$gtk_config_exec_prefix != x ; then
29592 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
29593 if test x${GTK_CONFIG+set} != xset ; then
29594 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29595 fi
29596 fi
29597 if test x$gtk_config_prefix != x ; then
29598 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29599 if test x${GTK_CONFIG+set} != xset ; then
29600 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29601 fi
29602 fi
29603
29604 # Extract the first word of "gtk-config", so it can be a program name with args.
29605set dummy gtk-config; ac_word=$2
d589327a
VZ
29606{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 29608if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
d589327a 29609 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
29610else
29611 case $GTK_CONFIG in
29612 [\\/]* | ?:[\\/]*)
29613 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29614 ;;
29615 *)
29616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29617for as_dir in $PATH
29618do
29619 IFS=$as_save_IFS
29620 test -z "$as_dir" && as_dir=.
29621 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 29622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 29623 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
d589327a 29624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
29625 break 2
29626 fi
29627done
29628done
47964710 29629IFS=$as_save_IFS
a848cd7e
SC
29630
29631 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29632 ;;
29633esac
29634fi
29635GTK_CONFIG=$ac_cv_path_GTK_CONFIG
a848cd7e 29636if test -n "$GTK_CONFIG"; then
d589327a
VZ
29637 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29638echo "${ECHO_T}$GTK_CONFIG" >&6; }
a848cd7e 29639else
d589327a
VZ
29640 { echo "$as_me:$LINENO: result: no" >&5
29641echo "${ECHO_T}no" >&6; }
a848cd7e
SC
29642fi
29643
47964710 29644
a848cd7e 29645 min_gtk_version=1.2.3
d589327a
VZ
29646 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29647echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
a848cd7e
SC
29648 no_gtk=""
29649 if test "$GTK_CONFIG" = "no" ; then
29650 no_gtk=yes
29651 else
29652 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29653 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29654 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29655 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29656 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29657 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29658 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29659 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29660 if test "x$enable_gtktest" = "xyes" ; then
29661 ac_save_CFLAGS="$CFLAGS"
29662 ac_save_LIBS="$LIBS"
29663 CFLAGS="$CFLAGS $GTK_CFLAGS"
29664 LIBS="$GTK_LIBS $LIBS"
29665 rm -f conf.gtktest
29666 if test "$cross_compiling" = yes; then
29667 echo $ac_n "cross compiling; assumed OK... $ac_c"
29668else
29669 cat >conftest.$ac_ext <<_ACEOF
29670/* confdefs.h. */
29671_ACEOF
29672cat confdefs.h >>conftest.$ac_ext
29673cat >>conftest.$ac_ext <<_ACEOF
29674/* end confdefs.h. */
29675
29676#include <gtk/gtk.h>
29677#include <stdio.h>
29678#include <stdlib.h>
29679
29680int
29681main ()
29682{
29683 int major, minor, micro;
29684 char *tmp_version;
29685
29686 system ("touch conf.gtktest");
29687
29688 /* HP/UX 9 (%@#!) writes to sscanf strings */
29689 tmp_version = g_strdup("$min_gtk_version");
29690 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29691 printf("%s, bad version string\n", "$min_gtk_version");
29692 exit(1);
29693 }
29694
29695 if ((gtk_major_version != $gtk_config_major_version) ||
29696 (gtk_minor_version != $gtk_config_minor_version) ||
29697 (gtk_micro_version != $gtk_config_micro_version))
29698 {
29699 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29700 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29701 gtk_major_version, gtk_minor_version, gtk_micro_version);
29702 printf ("*** was found! If gtk-config was correct, then it is best\n");
29703 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29704 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29705 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29706 printf("*** required on your system.\n");
29707 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29708 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29709 printf("*** before re-running configure\n");
29710 }
29711#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29712 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29713 (gtk_minor_version != GTK_MINOR_VERSION) ||
29714 (gtk_micro_version != GTK_MICRO_VERSION))
29715 {
29716 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29717 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29718 printf("*** library (version %d.%d.%d)\n",
29719 gtk_major_version, gtk_minor_version, gtk_micro_version);
29720 }
29721#endif /* defined (GTK_MAJOR_VERSION) ... */
29722 else
29723 {
29724 if ((gtk_major_version > major) ||
29725 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29726 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29727 {
29728 return 0;
29729 }
29730 else
29731 {
29732 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29733 gtk_major_version, gtk_minor_version, gtk_micro_version);
29734 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29735 major, minor, micro);
29736 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29737 printf("***\n");
29738 printf("*** If you have already installed a sufficiently new version, this error\n");
29739 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29740 printf("*** being found. The easiest way to fix this is to remove the old version\n");
29741 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29742 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29743 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29744 printf("*** so that the correct libraries are found at run-time))\n");
29745 }
29746 }
29747 return 1;
29748}
29749
29750_ACEOF
29751rm -f conftest$ac_exeext
47964710
VS
29752if { (ac_try="$ac_link"
29753case "(($ac_try" in
29754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755 *) ac_try_echo=$ac_try;;
29756esac
d589327a 29757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 29758 (eval "$ac_link") 2>&5
a848cd7e 29759 ac_status=$?
d589327a 29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 29761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
29762 { (case "(($ac_try" in
29763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29764 *) ac_try_echo=$ac_try;;
29765esac
d589327a 29766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 29767 (eval "$ac_try") 2>&5
a848cd7e 29768 ac_status=$?
d589327a 29769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
29770 (exit $ac_status); }; }; then
29771 :
29772else
d589327a
VZ
29773 echo "$as_me: program exited with status $ac_status" >&5
29774echo "$as_me: failed program was:" >&5
a848cd7e
SC
29775sed 's/^/| /' conftest.$ac_ext >&5
29776
29777( exit $ac_status )
29778no_gtk=yes
29779fi
47964710 29780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 29781fi
47964710
VS
29782
29783
a848cd7e
SC
29784 CFLAGS="$ac_save_CFLAGS"
29785 LIBS="$ac_save_LIBS"
29786 fi
29787 fi
29788 if test "x$no_gtk" = x ; then
d589327a
VZ
29789 { echo "$as_me:$LINENO: result: yes" >&5
29790echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
29791 wx_cv_lib_gtk=1.2.3
29792 else
d589327a
VZ
29793 { echo "$as_me:$LINENO: result: no" >&5
29794echo "${ECHO_T}no" >&6; }
a848cd7e
SC
29795 if test "$GTK_CONFIG" = "no" ; then
29796 echo "*** The gtk-config script installed by GTK could not be found"
29797 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29798 echo "*** your path, or set the GTK_CONFIG environment variable to the"
29799 echo "*** full path to gtk-config."
29800 else
29801 if test -f conf.gtktest ; then
29802 :
29803 else
29804 echo "*** Could not run GTK test program, checking why..."
29805 CFLAGS="$CFLAGS $GTK_CFLAGS"
29806 LIBS="$LIBS $GTK_LIBS"
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#include <gtk/gtk.h>
29815#include <stdio.h>
29816
29817int
29818main ()
29819{
29820 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29821 ;
29822 return 0;
29823}
29824_ACEOF
29825rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
29826if { (ac_try="$ac_link"
29827case "(($ac_try" in
29828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29829 *) ac_try_echo=$ac_try;;
29830esac
d589327a 29831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 29832 (eval "$ac_link") 2>conftest.er1
a848cd7e 29833 ac_status=$?
ac1cb8d3
VS
29834 grep -v '^ *+' conftest.er1 >conftest.err
29835 rm -f conftest.er1
29836 cat conftest.err >&5
d589327a 29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29838 (exit $ac_status); } && {
29839 test -z "$ac_c_werror_flag" ||
29840 test ! -s conftest.err
d589327a
VZ
29841 } && test -s conftest$ac_exeext &&
29842 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
29843 echo "*** The test program compiled, but did not run. This usually means"
29844 echo "*** that the run-time linker is not finding GTK or finding the wrong"
29845 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29846 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29847 echo "*** to the installed location Also, make sure you have run ldconfig if that"
29848 echo "*** is required on your system"
29849 echo "***"
29850 echo "*** If you have an old version installed, it is best to remove it, although"
29851 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29852 echo "***"
29853 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29854 echo "*** came with the system with the command"
29855 echo "***"
29856 echo "*** rpm --erase --nodeps gtk gtk-devel"
29857else
d589327a 29858 echo "$as_me: failed program was:" >&5
a848cd7e
SC
29859sed 's/^/| /' conftest.$ac_ext >&5
29860
47964710 29861 echo "*** The test program failed to compile or link. See the file config.log for the"
a848cd7e
SC
29862 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29863 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29864 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29865fi
47964710
VS
29866
29867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 29868 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29869 CFLAGS="$ac_save_CFLAGS"
29870 LIBS="$ac_save_LIBS"
29871 fi
29872 fi
29873 GTK_CFLAGS=""
29874 GTK_LIBS=""
29875 :
29876 fi
29877
29878
29879 rm -f conf.gtktest
29880
f34ca037 29881 fi
a848cd7e
SC
29882 fi
29883 fi
29884
29885 if test -z "$wx_cv_lib_gtk"; then
29886 wx_cv_lib_gtk=none
29887 else
29888 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 29889 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
29890 fi
29891
29892
29893fi
29894
29895
29896 if test "$gtk_version_cached" = 1; then
d589327a
VZ
29897 { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29898echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
a848cd7e
SC
29899 fi
29900
29901 case "$wx_cv_lib_gtk" in
88262190 29902 2.0) WXGTK2=1
a848cd7e
SC
29903 TOOLKIT_VERSION=2
29904 ;;
29905 1.2.7) WXGTK127=1
29906 WXGTK12=1
29907 ;;
29908 1.2.3) WXGTK12=1
29909 ;;
d589327a 29910 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
29911The development files for GTK+ were not found. For GTK+ 2, please
29912ensure that pkg-config is in the path and that gtk+-2.0.pc is
29913installed. For GTK+ 1.2 please check that gtk-config is in the path,
29914and that the version is 1.2.3 or above. Also check that the
29915libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29916--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e 29917 " >&5
d589327a 29918echo "$as_me: error:
f597b41c
MW
29919The development files for GTK+ were not found. For GTK+ 2, please
29920ensure that pkg-config is in the path and that gtk+-2.0.pc is
29921installed. For GTK+ 1.2 please check that gtk-config is in the path,
29922and that the version is 1.2.3 or above. Also check that the
29923libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29924--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
29925 " >&2;}
29926 { (exit 1); exit 1; }; }
29927 ;;
29928 esac
29929
88262190 29930 if test "$WXGTK2" = 1; then
6954625c 29931 save_CFLAGS="$CFLAGS"
304205f1 29932 save_LIBS="$LIBS"
6954625c 29933 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 29934 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 29935
d85aece1
VZ
29936 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
29937echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
e9263684
VZ
29938 cat >conftest.$ac_ext <<_ACEOF
29939/* confdefs.h. */
29940_ACEOF
29941cat confdefs.h >>conftest.$ac_ext
29942cat >>conftest.$ac_ext <<_ACEOF
29943/* end confdefs.h. */
29944
29945 #include <gtk/gtk.h>
29946
29947int
29948main ()
29949{
29950
d85aece1
VZ
29951 #if !GTK_CHECK_VERSION(2,18,0)
29952 Not GTK+ 2.18
e9263684
VZ
29953 #endif
29954
29955 ;
29956 return 0;
29957}
29958_ACEOF
29959rm -f conftest.$ac_objext
47964710
VS
29960if { (ac_try="$ac_compile"
29961case "(($ac_try" in
29962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29963 *) ac_try_echo=$ac_try;;
29964esac
d589327a 29965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 29966 (eval "$ac_compile") 2>conftest.er1
e9263684
VZ
29967 ac_status=$?
29968 grep -v '^ *+' conftest.er1 >conftest.err
29969 rm -f conftest.er1
29970 cat conftest.err >&5
d589327a 29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
29972 (exit $ac_status); } && {
29973 test -z "$ac_c_werror_flag" ||
29974 test ! -s conftest.err
29975 } && test -s conftest.$ac_objext; then
e9263684 29976
d85aece1
VZ
29977 cat >>confdefs.h <<\_ACEOF
29978#define __WXGTK218__ 1
29979_ACEOF
29980
a48b6595
VZ
29981 cat >>confdefs.h <<\_ACEOF
29982#define __WXGTK210__ 1
29983_ACEOF
29984
e9263684
VZ
29985 cat >>confdefs.h <<\_ACEOF
29986#define __WXGTK26__ 1
e9263684
VZ
29987_ACEOF
29988
d589327a
VZ
29989 { echo "$as_me:$LINENO: result: yes" >&5
29990echo "${ECHO_T}yes" >&6; }
d85aece1 29991 ac_wxgtk218=1
e9263684
VZ
29992
29993else
d589327a 29994 echo "$as_me: failed program was:" >&5
e9263684
VZ
29995sed 's/^/| /' conftest.$ac_ext >&5
29996
29997
d589327a
VZ
29998 { echo "$as_me:$LINENO: result: no" >&5
29999echo "${ECHO_T}no" >&6; }
d85aece1 30000 ac_wxgtk218=0
a48b6595
VZ
30001
30002fi
47964710
VS
30003
30004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a48b6595 30005
d85aece1
VZ
30006 if test "$ac_wxgtk218" = 0; then
30007 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
30008echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
a48b6595
VZ
30009 cat >conftest.$ac_ext <<_ACEOF
30010/* confdefs.h. */
30011_ACEOF
30012cat confdefs.h >>conftest.$ac_ext
30013cat >>conftest.$ac_ext <<_ACEOF
30014/* end confdefs.h. */
30015
30016 #include <gtk/gtk.h>
30017
30018int
30019main ()
30020{
30021
d85aece1
VZ
30022 #if !GTK_CHECK_VERSION(2,10,0)
30023 Not GTK+ 2.10
a48b6595
VZ
30024 #endif
30025
30026 ;
30027 return 0;
30028}
30029_ACEOF
30030rm -f conftest.$ac_objext
47964710
VS
30031if { (ac_try="$ac_compile"
30032case "(($ac_try" in
30033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30034 *) ac_try_echo=$ac_try;;
30035esac
d589327a 30036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 30037 (eval "$ac_compile") 2>conftest.er1
a48b6595
VZ
30038 ac_status=$?
30039 grep -v '^ *+' conftest.er1 >conftest.err
30040 rm -f conftest.er1
30041 cat conftest.err >&5
d589327a 30042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30043 (exit $ac_status); } && {
30044 test -z "$ac_c_werror_flag" ||
30045 test ! -s conftest.err
30046 } && test -s conftest.$ac_objext; then
a48b6595 30047
d85aece1
VZ
30048 cat >>confdefs.h <<\_ACEOF
30049#define __WXGTK210__ 1
30050_ACEOF
30051
a48b6595
VZ
30052 cat >>confdefs.h <<\_ACEOF
30053#define __WXGTK26__ 1
a48b6595
VZ
30054_ACEOF
30055
d589327a
VZ
30056 { echo "$as_me:$LINENO: result: yes" >&5
30057echo "${ECHO_T}yes" >&6; }
d85aece1 30058 ac_wxgtk210=1
a48b6595
VZ
30059
30060else
d589327a 30061 echo "$as_me: failed program was:" >&5
a48b6595
VZ
30062sed 's/^/| /' conftest.$ac_ext >&5
30063
30064
d589327a
VZ
30065 { echo "$as_me:$LINENO: result: no" >&5
30066echo "${ECHO_T}no" >&6; }
d85aece1
VZ
30067 ac_wxgtk210=0
30068
30069fi
30070
30071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30072
30073 if test "$ac_wxgtk210" = 0; then
30074 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
30075echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
30076 cat >conftest.$ac_ext <<_ACEOF
30077/* confdefs.h. */
30078_ACEOF
30079cat confdefs.h >>conftest.$ac_ext
30080cat >>conftest.$ac_ext <<_ACEOF
30081/* end confdefs.h. */
30082
30083 #include <gtk/gtk.h>
30084
30085int
30086main ()
30087{
30088
30089 #if !GTK_CHECK_VERSION(2,6,0)
30090 Not GTK+ 2.6
30091 #endif
30092
30093 ;
30094 return 0;
30095}
30096_ACEOF
30097rm -f conftest.$ac_objext
30098if { (ac_try="$ac_compile"
30099case "(($ac_try" in
30100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30101 *) ac_try_echo=$ac_try;;
30102esac
30103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30104 (eval "$ac_compile") 2>conftest.er1
30105 ac_status=$?
30106 grep -v '^ *+' conftest.er1 >conftest.err
30107 rm -f conftest.er1
30108 cat conftest.err >&5
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); } && {
30111 test -z "$ac_c_werror_flag" ||
30112 test ! -s conftest.err
30113 } && test -s conftest.$ac_objext; then
30114
30115 cat >>confdefs.h <<\_ACEOF
30116#define __WXGTK26__ 1
30117_ACEOF
30118
30119 { echo "$as_me:$LINENO: result: yes" >&5
30120echo "${ECHO_T}yes" >&6; }
30121 ac_wxgtk26=1
30122
30123else
30124 echo "$as_me: failed program was:" >&5
30125sed 's/^/| /' conftest.$ac_ext >&5
30126
30127
30128 { echo "$as_me:$LINENO: result: no" >&5
30129echo "${ECHO_T}no" >&6; }
30130 ac_wxgtk26=0
e9263684
VZ
30131
30132fi
47964710 30133
47964710 30134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d85aece1 30135 fi
e9263684 30136 fi
9755e73b 30137
6954625c 30138 CFLAGS="$save_CFLAGS"
304205f1 30139 LIBS="$save_LIBS"
a848cd7e
SC
30140 else
30141 if test "$wxUSE_UNICODE" = "yes"; then
d589327a
VZ
30142 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
30143echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
a848cd7e
SC
30144 wxUSE_UNICODE=no
30145 fi
64b75e64 30146
d589327a
VZ
30147 { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
30148echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
64b75e64 30149if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
d589327a 30150 echo $ECHO_N "(cached) $ECHO_C" >&6
64b75e64
RD
30151else
30152 ac_check_lib_save_LIBS=$LIBS
30153LIBS="-lgdk $LIBS"
30154cat >conftest.$ac_ext <<_ACEOF
30155/* confdefs.h. */
30156_ACEOF
30157cat confdefs.h >>conftest.$ac_ext
30158cat >>conftest.$ac_ext <<_ACEOF
30159/* end confdefs.h. */
30160
47964710
VS
30161/* Override any GCC internal prototype to avoid an error.
30162 Use char because int might match the return type of a GCC
30163 builtin and then its argument prototype would still apply. */
64b75e64
RD
30164#ifdef __cplusplus
30165extern "C"
30166#endif
64b75e64
RD
30167char gdk_im_open ();
30168int
30169main ()
30170{
47964710 30171return gdk_im_open ();
64b75e64
RD
30172 ;
30173 return 0;
30174}
30175_ACEOF
30176rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
30177if { (ac_try="$ac_link"
30178case "(($ac_try" in
30179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30180 *) ac_try_echo=$ac_try;;
30181esac
d589327a 30182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 30183 (eval "$ac_link") 2>conftest.er1
64b75e64
RD
30184 ac_status=$?
30185 grep -v '^ *+' conftest.er1 >conftest.err
30186 rm -f conftest.er1
30187 cat conftest.err >&5
d589327a 30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30189 (exit $ac_status); } && {
30190 test -z "$ac_c_werror_flag" ||
30191 test ! -s conftest.err
d589327a
VZ
30192 } && test -s conftest$ac_exeext &&
30193 $as_test_x conftest$ac_exeext; then
64b75e64
RD
30194 ac_cv_lib_gdk_gdk_im_open=yes
30195else
d589327a 30196 echo "$as_me: failed program was:" >&5
64b75e64
RD
30197sed 's/^/| /' conftest.$ac_ext >&5
30198
47964710 30199 ac_cv_lib_gdk_gdk_im_open=no
64b75e64 30200fi
47964710
VS
30201
30202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64b75e64
RD
30203 conftest$ac_exeext conftest.$ac_ext
30204LIBS=$ac_check_lib_save_LIBS
30205fi
d589327a
VZ
30206{ echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
30207echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
30208if test $ac_cv_lib_gdk_gdk_im_open = yes; then
64b75e64
RD
30209 cat >>confdefs.h <<\_ACEOF
30210#define HAVE_XIM 1
30211_ACEOF
30212
30213fi
30214
a848cd7e 30215
7fd3acaf 30216 if test "$USE_DARWIN" != 1; then
a848cd7e
SC
30217
30218for ac_func in poll
30219do
d589327a
VZ
30220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30221{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 30223if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 30224 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
30225else
30226 cat >conftest.$ac_ext <<_ACEOF
30227/* confdefs.h. */
30228_ACEOF
30229cat confdefs.h >>conftest.$ac_ext
30230cat >>conftest.$ac_ext <<_ACEOF
30231/* end confdefs.h. */
ac1cb8d3
VS
30232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30234#define $ac_func innocuous_$ac_func
30235
a848cd7e
SC
30236/* System header to define __stub macros and hopefully few prototypes,
30237 which can conflict with char $ac_func (); below.
30238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30239 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30240
a848cd7e
SC
30241#ifdef __STDC__
30242# include <limits.h>
30243#else
30244# include <assert.h>
30245#endif
ac1cb8d3
VS
30246
30247#undef $ac_func
30248
47964710
VS
30249/* Override any GCC internal prototype to avoid an error.
30250 Use char because int might match the return type of a GCC
30251 builtin and then its argument prototype would still apply. */
a848cd7e
SC
30252#ifdef __cplusplus
30253extern "C"
a848cd7e 30254#endif
a848cd7e
SC
30255char $ac_func ();
30256/* The GNU C library defines this for functions which it implements
30257 to always fail with ENOSYS. Some functions are actually named
30258 something starting with __ and the normal name is an alias. */
47964710 30259#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 30260choke me
a848cd7e
SC
30261#endif
30262
30263int
30264main ()
30265{
47964710 30266return $ac_func ();
a848cd7e
SC
30267 ;
30268 return 0;
30269}
30270_ACEOF
30271rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
30272if { (ac_try="$ac_link"
30273case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30276esac
d589327a 30277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 30278 (eval "$ac_link") 2>conftest.er1
a848cd7e 30279 ac_status=$?
ac1cb8d3
VS
30280 grep -v '^ *+' conftest.er1 >conftest.err
30281 rm -f conftest.er1
30282 cat conftest.err >&5
d589327a 30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30284 (exit $ac_status); } && {
30285 test -z "$ac_c_werror_flag" ||
30286 test ! -s conftest.err
d589327a
VZ
30287 } && test -s conftest$ac_exeext &&
30288 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
30289 eval "$as_ac_var=yes"
30290else
d589327a 30291 echo "$as_me: failed program was:" >&5
a848cd7e
SC
30292sed 's/^/| /' conftest.$ac_ext >&5
30293
47964710 30294 eval "$as_ac_var=no"
a848cd7e 30295fi
47964710
VS
30296
30297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 30298 conftest$ac_exeext conftest.$ac_ext
a848cd7e 30299fi
d589327a
VZ
30300ac_res=`eval echo '${'$as_ac_var'}'`
30301 { echo "$as_me:$LINENO: result: $ac_res" >&5
30302echo "${ECHO_T}$ac_res" >&6; }
30303if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 30304 cat >>confdefs.h <<_ACEOF
d589327a 30305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
30306_ACEOF
30307
30308fi
30309done
30310
7fd3acaf 30311 fi
a848cd7e
SC
30312 fi
30313
30314 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
30315 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
30316
a12bd55b
VZ
30317 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -DG_DISABLE_CAST_CHECKS"
30318
a848cd7e
SC
30319 AFMINSTALL=afminstall
30320 TOOLKIT=GTK
30321 GUIDIST=GTK_DIST
30322
a848cd7e 30323 if test "$wxUSE_GPE" = "yes"; then
d589327a
VZ
30324 { echo "$as_me:$LINENO: checking for gpewidget library" >&5
30325echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
a848cd7e 30326
0ad5d837
VZ
30327 ac_find_libraries=
30328 for ac_dir in $SEARCH_LIB;
a848cd7e 30329 do
3eca31dc 30330 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30331 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
30332 ac_find_libraries=$ac_dir
30333 break 2
30334 fi
30335 done
30336 done
30337
30338 if test "$ac_find_libraries" != "" ; then
30339
0ad5d837 30340 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30341 ac_path_to_link=""
30342 else
0ad5d837
VZ
30343 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30344 result=$?
30345 if test $result = 0; then
30346 ac_path_to_link=""
30347 else
30348 ac_path_to_link=" -L$ac_find_libraries"
30349 fi
a848cd7e
SC
30350 fi
30351
30352 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
30353 WXGPE=1
d589327a
VZ
30354 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30355echo "${ECHO_T}found in $ac_find_libraries" >&6; }
a848cd7e 30356 else
d589327a
VZ
30357 { echo "$as_me:$LINENO: result: not found" >&5
30358echo "${ECHO_T}not found" >&6; }
a848cd7e
SC
30359 fi
30360
30361 fi
30362 fi
30363
30364 if test "$wxUSE_MGL" = 1; then
d589327a
VZ
30365 { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
30366echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
a848cd7e 30367 if test "x$MGL_ROOT" = x ; then
d589327a
VZ
30368 { echo "$as_me:$LINENO: result: not found" >&5
30369echo "${ECHO_T}not found" >&6; }
30370 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
30371echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
a848cd7e
SC
30372 { (exit 1); exit 1; }; }
30373 else
d589327a
VZ
30374 { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
30375echo "${ECHO_T}$MGL_ROOT" >&6; }
a848cd7e
SC
30376 fi
30377
d589327a
VZ
30378 { echo "$as_me:$LINENO: checking for libmgl location" >&5
30379echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
a848cd7e
SC
30380 case "${host}" in
30381 *-*-linux* )
30382 if test "x$wxUSE_SHARED" = xyes ; then
30383 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
30384 else
30385 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
30386 fi
30387 ;;
30388 *-pc-msdosdjgpp )
30389 mgl_os_candidates="dos32/dj2"
30390 ;;
30391 *)
d589327a
VZ
30392 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
30393echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
a848cd7e
SC
30394 { (exit 1); exit 1; }; }
30395 esac
30396
30397 mgl_lib_type=""
30398 mgl_os=""
30399
30400 for mgl_os_i in $mgl_os_candidates ; do
30401 if test "x$mgl_os" = x ; then
30402 if test "$wxUSE_DEBUG_FLAG" = yes ; then
30403 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
30404 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
30405 mgl_lib_type=debug
30406 mgl_os=$mgl_os_i
30407 fi
30408 fi
30409 if test "x$mgl_lib_type" = x ; then
30410 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
30411 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
30412 mgl_lib_type=release
30413 mgl_os=$mgl_os_i
30414 fi
30415 fi
30416 fi
30417 done
30418
30419 if test "x$mgl_os" = x ; then
d589327a
VZ
30420 { echo "$as_me:$LINENO: result: not found" >&5
30421echo "${ECHO_T}not found" >&6; }
30422 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
30423echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
a848cd7e
SC
30424 { (exit 1); exit 1; }; }
30425 fi
d589327a
VZ
30426 { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
30427echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
a848cd7e
SC
30428
30429 wxUSE_UNIVERSAL="yes"
30430
30431 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
30432 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
30433
30434 AFMINSTALL=afminstall
30435 TOOLKIT=MGL
30436 GUIDIST=MGL_DIST
30437 fi
30438
b3c86150
VS
30439 if test "$wxUSE_DFB" = 1; then
30440
30441
30442if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30443 if test -n "$ac_tool_prefix"; then
30444 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30445set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
d589327a
VZ
30446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3c86150 30448if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
d589327a 30449 echo $ECHO_N "(cached) $ECHO_C" >&6
b3c86150
VS
30450else
30451 case $PKG_CONFIG in
30452 [\\/]* | ?:[\\/]*)
30453 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30454 ;;
30455 *)
30456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30457for as_dir in $PATH
30458do
30459 IFS=$as_save_IFS
30460 test -z "$as_dir" && as_dir=.
30461 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 30462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3c86150 30463 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
d589327a 30464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b3c86150
VS
30465 break 2
30466 fi
30467done
30468done
47964710 30469IFS=$as_save_IFS
b3c86150
VS
30470
30471 ;;
30472esac
30473fi
30474PKG_CONFIG=$ac_cv_path_PKG_CONFIG
b3c86150 30475if test -n "$PKG_CONFIG"; then
d589327a
VZ
30476 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30477echo "${ECHO_T}$PKG_CONFIG" >&6; }
b3c86150 30478else
d589327a
VZ
30479 { echo "$as_me:$LINENO: result: no" >&5
30480echo "${ECHO_T}no" >&6; }
b3c86150
VS
30481fi
30482
47964710 30483
b3c86150
VS
30484fi
30485if test -z "$ac_cv_path_PKG_CONFIG"; then
30486 ac_pt_PKG_CONFIG=$PKG_CONFIG
30487 # Extract the first word of "pkg-config", so it can be a program name with args.
30488set dummy pkg-config; ac_word=$2
d589327a
VZ
30489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3c86150 30491if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
d589327a 30492 echo $ECHO_N "(cached) $ECHO_C" >&6
b3c86150
VS
30493else
30494 case $ac_pt_PKG_CONFIG in
30495 [\\/]* | ?:[\\/]*)
30496 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30497 ;;
30498 *)
30499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30500for as_dir in $PATH
30501do
30502 IFS=$as_save_IFS
30503 test -z "$as_dir" && as_dir=.
30504 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 30505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3c86150 30506 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
d589327a 30507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b3c86150
VS
30508 break 2
30509 fi
30510done
30511done
47964710 30512IFS=$as_save_IFS
b3c86150
VS
30513
30514 ;;
30515esac
30516fi
30517ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
b3c86150 30518if test -n "$ac_pt_PKG_CONFIG"; then
d589327a
VZ
30519 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30520echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
b3c86150 30521else
d589327a
VZ
30522 { echo "$as_me:$LINENO: result: no" >&5
30523echo "${ECHO_T}no" >&6; }
b3c86150
VS
30524fi
30525
47964710
VS
30526 if test "x$ac_pt_PKG_CONFIG" = x; then
30527 PKG_CONFIG=""
30528 else
30529 case $cross_compiling:$ac_tool_warned in
30530yes:)
d589327a
VZ
30531{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30532whose name does not start with the host triplet. If you think this
30533configuration is useful to you, please write to autoconf@gnu.org." >&5
30534echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30535whose name does not start with the host triplet. If you think this
30536configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47964710
VS
30537ac_tool_warned=yes ;;
30538esac
30539 PKG_CONFIG=$ac_pt_PKG_CONFIG
30540 fi
b3c86150
VS
30541else
30542 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30543fi
30544
30545fi
30546if test -n "$PKG_CONFIG"; then
30547 _pkg_min_version=0.9.0
d589327a
VZ
30548 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30549echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
b3c86150 30550 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
d589327a
VZ
30551 { echo "$as_me:$LINENO: result: yes" >&5
30552echo "${ECHO_T}yes" >&6; }
b3c86150 30553 else
d589327a
VZ
30554 { echo "$as_me:$LINENO: result: no" >&5
30555echo "${ECHO_T}no" >&6; }
b3c86150
VS
30556 PKG_CONFIG=""
30557 fi
30558
30559fi
30560
479c790c 30561
b3c86150 30562pkg_failed=no
d589327a
VZ
30563{ echo "$as_me:$LINENO: checking for DIRECTFB" >&5
30564echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
b3c86150
VS
30565
30566if test -n "$PKG_CONFIG"; then
30567 if test -n "$DIRECTFB_CFLAGS"; then
30568 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
30569 else
30570 if test -n "$PKG_CONFIG" && \
d589327a 30571 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
d7ae4a62 30572 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
b3c86150 30573 ac_status=$?
d589327a 30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b3c86150 30575 (exit $ac_status); }; then
d7ae4a62 30576 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
b3c86150
VS
30577else
30578 pkg_failed=yes
30579fi
30580 fi
30581else
30582 pkg_failed=untried
30583fi
30584if test -n "$PKG_CONFIG"; then
30585 if test -n "$DIRECTFB_LIBS"; then
30586 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
30587 else
30588 if test -n "$PKG_CONFIG" && \
d589327a 30589 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
d7ae4a62 30590 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
b3c86150 30591 ac_status=$?
d589327a 30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b3c86150 30593 (exit $ac_status); }; then
d7ae4a62 30594 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
b3c86150
VS
30595else
30596 pkg_failed=yes
30597fi
30598 fi
30599else
30600 pkg_failed=untried
30601fi
30602
30603
30604
30605if test $pkg_failed = yes; then
30606
30607if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30608 _pkg_short_errors_supported=yes
30609else
30610 _pkg_short_errors_supported=no
30611fi
30612 if test $_pkg_short_errors_supported = yes; then
d7ae4a62 30613 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
b3c86150 30614 else
d7ae4a62 30615 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
b3c86150
VS
30616 fi
30617 # Put the nasty error message in config.log where it belongs
30618 echo "$DIRECTFB_PKG_ERRORS" >&5
30619
30620
d589327a
VZ
30621 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
30622echo "$as_me: error: DirectFB not found." >&2;}
b3c86150
VS
30623 { (exit 1); exit 1; }; }
30624
30625
30626elif test $pkg_failed = untried; then
30627
d589327a
VZ
30628 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
30629echo "$as_me: error: DirectFB not found." >&2;}
b3c86150
VS
30630 { (exit 1); exit 1; }; }
30631
30632
30633else
30634 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
30635 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
d589327a
VZ
30636 { echo "$as_me:$LINENO: result: yes" >&5
30637echo "${ECHO_T}yes" >&6; }
b3c86150
VS
30638
30639 wxUSE_UNIVERSAL="yes"
30640 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
30641 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
30642 TOOLKIT=DFB
30643 GUIDIST=DFB_DIST
30644
30645fi
30646 fi
30647
a848cd7e 30648 if test "$wxUSE_MICROWIN" = 1; then
d589327a
VZ
30649 { echo "$as_me:$LINENO: checking for MicroWindows" >&5
30650echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
a848cd7e 30651 if test "x$MICROWINDOWS" = x ; then
d589327a
VZ
30652 { echo "$as_me:$LINENO: result: not found" >&5
30653echo "${ECHO_T}not found" >&6; }
30654 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
30655echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
a848cd7e
SC
30656 { (exit 1); exit 1; }; }
30657 else
d589327a
VZ
30658 { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
30659echo "${ECHO_T}$MICROWINDOWS" >&6; }
a848cd7e
SC
30660 fi
30661
30662 if test -f $MICROWINDOWS/lib/libmwin.a; then
d589327a
VZ
30663 { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
30664echo "${ECHO_T}MicroWindows' libraries found." >&6; }
a848cd7e 30665 else
d589327a
VZ
30666 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
30667echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
a848cd7e
SC
30668 { (exit 1); exit 1; }; }
30669 fi
30670
30671 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
30672 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
30673
30674 wxUSE_UNIVERSAL="yes"
30675
30676 AFMINSTALL=afminstall
30677 TOOLKIT=MICROWIN
30678 GUIDIST=MICROWIN_DIST
30679
30680 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
30681 fi
30682
74b84332 30683 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
d589327a
VZ
30684 { echo "$as_me:$LINENO: checking for X" >&5
30685echo $ECHO_N "checking for X... $ECHO_C" >&6; }
bb9e79c0 30686
f321ab7f 30687
47964710 30688# Check whether --with-x was given.
a848cd7e 30689if test "${with_x+set}" = set; then
47964710
VS
30690 withval=$with_x;
30691fi
a848cd7e 30692
a848cd7e
SC
30693# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30694if test "x$with_x" = xno; then
30695 # The user explicitly disabled X.
30696 have_x=disabled
30697else
47964710 30698 case $x_includes,$x_libraries in #(
d589327a
VZ
30699 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
30700echo "$as_me: error: Cannot use X directory names containing '" >&2;}
47964710
VS
30701 { (exit 1); exit 1; }; };; #(
30702 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
d589327a 30703 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
30704else
30705 # One or both of the vars are not set, and there is no cached value.
30706ac_x_includes=no ac_x_libraries=no
47964710 30707rm -f -r conftest.dir
a848cd7e
SC
30708if mkdir conftest.dir; then
30709 cd conftest.dir
a848cd7e 30710 cat >Imakefile <<'_ACEOF'
47964710
VS
30711incroot:
30712 @echo incroot='${INCROOT}'
30713usrlibdir:
30714 @echo usrlibdir='${USRLIBDIR}'
30715libdir:
30716 @echo libdir='${LIBDIR}'
30717_ACEOF
30718 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
a848cd7e 30719 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47964710
VS
30720 for ac_var in incroot usrlibdir libdir; do
30721 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30722 done
a848cd7e 30723 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
d589327a 30724 for ac_extension in a so sl; do
47964710
VS
30725 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30726 test -f "$ac_im_libdir/libX11.$ac_extension"; then
ac1cb8d3 30727 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
30728 fi
30729 done
30730 # Screen out bogus values from the imake configuration. They are
30731 # bogus both because they are the default anyway, and because
30732 # using them would break gcc on systems where it needs fixed includes.
30733 case $ac_im_incroot in
47964710 30734 /usr/include) ac_x_includes= ;;
a848cd7e
SC
30735 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30736 esac
30737 case $ac_im_usrlibdir in
d589327a 30738 /usr/lib | /lib) ;;
a848cd7e
SC
30739 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30740 esac
30741 fi
30742 cd ..
47964710 30743 rm -f -r conftest.dir
a848cd7e
SC
30744fi
30745
30746# Standard set of common directories for X headers.
30747# Check X11 before X11Rn because it is often a symlink to the current release.
30748ac_x_header_dirs='
30749/usr/X11/include
30750/usr/X11R6/include
30751/usr/X11R5/include
30752/usr/X11R4/include
30753
30754/usr/include/X11
30755/usr/include/X11R6
30756/usr/include/X11R5
30757/usr/include/X11R4
30758
30759/usr/local/X11/include
30760/usr/local/X11R6/include
30761/usr/local/X11R5/include
30762/usr/local/X11R4/include
30763
30764/usr/local/include/X11
30765/usr/local/include/X11R6
30766/usr/local/include/X11R5
30767/usr/local/include/X11R4
30768
30769/usr/X386/include
30770/usr/x386/include
30771/usr/XFree86/include/X11
30772
30773/usr/include
30774/usr/local/include
30775/usr/unsupported/include
30776/usr/athena/include
30777/usr/local/x11r5/include
30778/usr/lpp/Xamples/include
30779
30780/usr/openwin/include
30781/usr/openwin/share/include'
30782
30783if test "$ac_x_includes" = no; then
47964710 30784 # Guess where to find include files, by looking for Xlib.h.
a848cd7e
SC
30785 # First, try using that file with no special directory specified.
30786 cat >conftest.$ac_ext <<_ACEOF
30787/* confdefs.h. */
30788_ACEOF
30789cat confdefs.h >>conftest.$ac_ext
30790cat >>conftest.$ac_ext <<_ACEOF
30791/* end confdefs.h. */
47964710 30792#include <X11/Xlib.h>
a848cd7e 30793_ACEOF
47964710
VS
30794if { (ac_try="$ac_cpp conftest.$ac_ext"
30795case "(($ac_try" in
30796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797 *) ac_try_echo=$ac_try;;
30798esac
d589327a 30799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 30800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a848cd7e
SC
30801 ac_status=$?
30802 grep -v '^ *+' conftest.er1 >conftest.err
30803 rm -f conftest.er1
30804 cat conftest.err >&5
d589327a 30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30806 (exit $ac_status); } >/dev/null && {
30807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30808 test ! -s conftest.err
30809 }; then
a848cd7e
SC
30810 # We can compile using X headers with no special include directory.
30811ac_x_includes=
30812else
d589327a 30813 echo "$as_me: failed program was:" >&5
a848cd7e
SC
30814sed 's/^/| /' conftest.$ac_ext >&5
30815
30816 for ac_dir in $ac_x_header_dirs; do
47964710 30817 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
30818 ac_x_includes=$ac_dir
30819 break
30820 fi
30821done
30822fi
47964710 30823
a848cd7e
SC
30824rm -f conftest.err conftest.$ac_ext
30825fi # $ac_x_includes = no
30826
30827if test "$ac_x_libraries" = no; then
30828 # Check for the libraries.
30829 # See if we find them without any special options.
30830 # Don't add to $LIBS permanently.
30831 ac_save_LIBS=$LIBS
47964710 30832 LIBS="-lX11 $LIBS"
a848cd7e
SC
30833 cat >conftest.$ac_ext <<_ACEOF
30834/* confdefs.h. */
30835_ACEOF
30836cat confdefs.h >>conftest.$ac_ext
30837cat >>conftest.$ac_ext <<_ACEOF
30838/* end confdefs.h. */
47964710 30839#include <X11/Xlib.h>
a848cd7e
SC
30840int
30841main ()
30842{
47964710 30843XrmInitialize ()
a848cd7e
SC
30844 ;
30845 return 0;
30846}
30847_ACEOF
30848rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
30849if { (ac_try="$ac_link"
30850case "(($ac_try" in
30851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30852 *) ac_try_echo=$ac_try;;
30853esac
d589327a 30854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 30855 (eval "$ac_link") 2>conftest.er1
a848cd7e 30856 ac_status=$?
ac1cb8d3
VS
30857 grep -v '^ *+' conftest.er1 >conftest.err
30858 rm -f conftest.er1
30859 cat conftest.err >&5
d589327a 30860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30861 (exit $ac_status); } && {
30862 test -z "$ac_c_werror_flag" ||
30863 test ! -s conftest.err
d589327a
VZ
30864 } && test -s conftest$ac_exeext &&
30865 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
30866 LIBS=$ac_save_LIBS
30867# We can link X programs with no special library path.
30868ac_x_libraries=
30869else
d589327a 30870 echo "$as_me: failed program was:" >&5
a848cd7e
SC
30871sed 's/^/| /' conftest.$ac_ext >&5
30872
47964710 30873 LIBS=$ac_save_LIBS
d589327a 30874for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
a848cd7e
SC
30875do
30876 # Don't even attempt the hair of trying to link an X program!
d589327a 30877 for ac_extension in a so sl; do
47964710 30878 if test -r "$ac_dir/libX11.$ac_extension"; then
a848cd7e
SC
30879 ac_x_libraries=$ac_dir
30880 break 2
30881 fi
30882 done
30883done
30884fi
47964710
VS
30885
30886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 30887 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30888fi # $ac_x_libraries = no
30889
47964710
VS
30890case $ac_x_includes,$ac_x_libraries in #(
30891 no,* | *,no | *\'*)
30892 # Didn't find X, or a directory has "'" in its name.
30893 ac_cv_have_x="have_x=no";; #(
30894 *)
30895 # Record where we found X for the cache.
30896 ac_cv_have_x="have_x=yes\
30897 ac_x_includes='$ac_x_includes'\
30898 ac_x_libraries='$ac_x_libraries'"
30899esac
bd8a7646 30900fi
47964710
VS
30901;; #(
30902 *) have_x=yes;;
30903 esac
a848cd7e
SC
30904 eval "$ac_cv_have_x"
30905fi # $with_x != no
30906
30907if test "$have_x" != yes; then
d589327a
VZ
30908 { echo "$as_me:$LINENO: result: $have_x" >&5
30909echo "${ECHO_T}$have_x" >&6; }
a848cd7e
SC
30910 no_x=yes
30911else
30912 # If each of the values was on the command line, it overrides each guess.
30913 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30914 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30915 # Update the cache value to reflect the command line values.
47964710
VS
30916 ac_cv_have_x="have_x=yes\
30917 ac_x_includes='$x_includes'\
30918 ac_x_libraries='$x_libraries'"
d589327a
VZ
30919 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30920echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
a848cd7e
SC
30921fi
30922
30923if test "$no_x" = yes; then
30924 # Not all programs may use this symbol, but it does not hurt to define it.
30925
30926cat >>confdefs.h <<\_ACEOF
30927#define X_DISPLAY_MISSING 1
30928_ACEOF
30929
30930 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30931else
30932 if test -n "$x_includes"; then
30933 X_CFLAGS="$X_CFLAGS -I$x_includes"
30934 fi
30935
30936 # It would also be nice to do this for all -L options, not just this one.
30937 if test -n "$x_libraries"; then
30938 X_LIBS="$X_LIBS -L$x_libraries"
30939 # For Solaris; some versions of Sun CC require a space after -R and
30940 # others require no space. Words are not sufficient . . . .
d589327a
VZ
30941 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30942echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
47964710
VS
30943 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30944 ac_xsave_c_werror_flag=$ac_c_werror_flag
30945 ac_c_werror_flag=yes
30946 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30947/* confdefs.h. */
30948_ACEOF
30949cat confdefs.h >>conftest.$ac_ext
30950cat >>conftest.$ac_ext <<_ACEOF
30951/* end confdefs.h. */
30952
30953int
30954main ()
30955{
30956
30957 ;
30958 return 0;
30959}
30960_ACEOF
30961rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
30962if { (ac_try="$ac_link"
30963case "(($ac_try" in
30964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30965 *) ac_try_echo=$ac_try;;
30966esac
d589327a 30967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 30968 (eval "$ac_link") 2>conftest.er1
a848cd7e 30969 ac_status=$?
ac1cb8d3
VS
30970 grep -v '^ *+' conftest.er1 >conftest.err
30971 rm -f conftest.er1
30972 cat conftest.err >&5
d589327a 30973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
30974 (exit $ac_status); } && {
30975 test -z "$ac_c_werror_flag" ||
30976 test ! -s conftest.err
d589327a
VZ
30977 } && test -s conftest$ac_exeext &&
30978 $as_test_x conftest$ac_exeext; then
30979 { echo "$as_me:$LINENO: result: no" >&5
30980echo "${ECHO_T}no" >&6; }
47964710 30981 X_LIBS="$X_LIBS -R$x_libraries"
a848cd7e 30982else
d589327a 30983 echo "$as_me: failed program was:" >&5
a848cd7e
SC
30984sed 's/^/| /' conftest.$ac_ext >&5
30985
a848cd7e 30986 LIBS="$ac_xsave_LIBS -R $x_libraries"
47964710 30987 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30988/* confdefs.h. */
30989_ACEOF
30990cat confdefs.h >>conftest.$ac_ext
30991cat >>conftest.$ac_ext <<_ACEOF
30992/* end confdefs.h. */
30993
30994int
30995main ()
30996{
30997
30998 ;
30999 return 0;
31000}
31001_ACEOF
31002rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31003if { (ac_try="$ac_link"
31004case "(($ac_try" in
31005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31006 *) ac_try_echo=$ac_try;;
31007esac
d589327a 31008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 31009 (eval "$ac_link") 2>conftest.er1
a848cd7e 31010 ac_status=$?
ac1cb8d3
VS
31011 grep -v '^ *+' conftest.er1 >conftest.err
31012 rm -f conftest.er1
31013 cat conftest.err >&5
d589327a 31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31015 (exit $ac_status); } && {
31016 test -z "$ac_c_werror_flag" ||
31017 test ! -s conftest.err
d589327a
VZ
31018 } && test -s conftest$ac_exeext &&
31019 $as_test_x conftest$ac_exeext; then
31020 { echo "$as_me:$LINENO: result: yes" >&5
31021echo "${ECHO_T}yes" >&6; }
47964710 31022 X_LIBS="$X_LIBS -R $x_libraries"
a848cd7e 31023else
d589327a 31024 echo "$as_me: failed program was:" >&5
a848cd7e
SC
31025sed 's/^/| /' conftest.$ac_ext >&5
31026
d589327a
VZ
31027 { echo "$as_me:$LINENO: result: neither works" >&5
31028echo "${ECHO_T}neither works" >&6; }
faa5c14f 31029fi
47964710
VS
31030
31031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
faa5c14f 31032 conftest$ac_exeext conftest.$ac_ext
47964710
VS
31033fi
31034
31035rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31036 conftest$ac_exeext conftest.$ac_ext
31037 ac_c_werror_flag=$ac_xsave_c_werror_flag
31038 LIBS=$ac_xsave_LIBS
a848cd7e
SC
31039 fi
31040
31041 # Check for system-dependent libraries X programs must link with.
31042 # Do this before checking for the system-independent R6 libraries
31043 # (-lICE), since we may need -lsocket or whatever for X linking.
31044
31045 if test "$ISC" = yes; then
31046 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
31047 else
31048 # Martyn Johnson says this is needed for Ultrix, if the X
31049 # libraries were built with DECnet support. And Karl Berry says
31050 # the Alpha needs dnet_stub (dnet does not exist).
31051 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
31052 cat >conftest.$ac_ext <<_ACEOF
31053/* confdefs.h. */
31054_ACEOF
31055cat confdefs.h >>conftest.$ac_ext
31056cat >>conftest.$ac_ext <<_ACEOF
31057/* end confdefs.h. */
31058
47964710
VS
31059/* Override any GCC internal prototype to avoid an error.
31060 Use char because int might match the return type of a GCC
31061 builtin and then its argument prototype would still apply. */
a848cd7e
SC
31062#ifdef __cplusplus
31063extern "C"
31064#endif
a848cd7e
SC
31065char XOpenDisplay ();
31066int
31067main ()
31068{
47964710 31069return XOpenDisplay ();
a848cd7e
SC
31070 ;
31071 return 0;
31072}
31073_ACEOF
31074rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31075if { (ac_try="$ac_link"
31076case "(($ac_try" in
31077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31078 *) ac_try_echo=$ac_try;;
31079esac
d589327a 31080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 31081 (eval "$ac_link") 2>conftest.er1
a848cd7e 31082 ac_status=$?
ac1cb8d3
VS
31083 grep -v '^ *+' conftest.er1 >conftest.err
31084 rm -f conftest.er1
31085 cat conftest.err >&5
d589327a 31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31087 (exit $ac_status); } && {
31088 test -z "$ac_c_werror_flag" ||
31089 test ! -s conftest.err
d589327a
VZ
31090 } && test -s conftest$ac_exeext &&
31091 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
31092 :
31093else
d589327a 31094 echo "$as_me: failed program was:" >&5
a848cd7e
SC
31095sed 's/^/| /' conftest.$ac_ext >&5
31096
d589327a
VZ
31097 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
31098echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
a848cd7e 31099if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
d589327a 31100 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
31101else
31102 ac_check_lib_save_LIBS=$LIBS
31103LIBS="-ldnet $LIBS"
31104cat >conftest.$ac_ext <<_ACEOF
31105/* confdefs.h. */
31106_ACEOF
31107cat confdefs.h >>conftest.$ac_ext
31108cat >>conftest.$ac_ext <<_ACEOF
31109/* end confdefs.h. */
31110
47964710
VS
31111/* Override any GCC internal prototype to avoid an error.
31112 Use char because int might match the return type of a GCC
31113 builtin and then its argument prototype would still apply. */
a848cd7e
SC
31114#ifdef __cplusplus
31115extern "C"
31116#endif
a848cd7e
SC
31117char dnet_ntoa ();
31118int
31119main ()
31120{
47964710 31121return dnet_ntoa ();
a848cd7e
SC
31122 ;
31123 return 0;
31124}
31125_ACEOF
31126rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31127if { (ac_try="$ac_link"
31128case "(($ac_try" in
31129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130 *) ac_try_echo=$ac_try;;
31131esac
d589327a 31132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 31133 (eval "$ac_link") 2>conftest.er1
a848cd7e 31134 ac_status=$?
ac1cb8d3
VS
31135 grep -v '^ *+' conftest.er1 >conftest.err
31136 rm -f conftest.er1
31137 cat conftest.err >&5
d589327a 31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31139 (exit $ac_status); } && {
31140 test -z "$ac_c_werror_flag" ||
31141 test ! -s conftest.err
d589327a
VZ
31142 } && test -s conftest$ac_exeext &&
31143 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
31144 ac_cv_lib_dnet_dnet_ntoa=yes
31145else
d589327a 31146 echo "$as_me: failed program was:" >&5
a848cd7e
SC
31147sed 's/^/| /' conftest.$ac_ext >&5
31148
47964710 31149 ac_cv_lib_dnet_dnet_ntoa=no
a848cd7e 31150fi
47964710
VS
31151
31152rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31153 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31154LIBS=$ac_check_lib_save_LIBS
31155fi
d589327a
VZ
31156{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
31157echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
31158if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
a848cd7e
SC
31159 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
31160fi
31161
31162 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
d589327a
VZ
31163 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
31164echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
a848cd7e 31165if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
d589327a 31166 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
31167else
31168 ac_check_lib_save_LIBS=$LIBS
31169LIBS="-ldnet_stub $LIBS"
31170cat >conftest.$ac_ext <<_ACEOF
31171/* confdefs.h. */
31172_ACEOF
31173cat confdefs.h >>conftest.$ac_ext
31174cat >>conftest.$ac_ext <<_ACEOF
31175/* end confdefs.h. */
31176
47964710
VS
31177/* Override any GCC internal prototype to avoid an error.
31178 Use char because int might match the return type of a GCC
31179 builtin and then its argument prototype would still apply. */
a848cd7e
SC
31180#ifdef __cplusplus
31181extern "C"
31182#endif
a848cd7e
SC
31183char dnet_ntoa ();
31184int
31185main ()
31186{
47964710 31187return dnet_ntoa ();
a848cd7e
SC
31188 ;
31189 return 0;
31190}
31191_ACEOF
31192rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31193if { (ac_try="$ac_link"
31194case "(($ac_try" in
31195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31196 *) ac_try_echo=$ac_try;;
31197esac
d589327a 31198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 31199 (eval "$ac_link") 2>conftest.er1
a848cd7e 31200 ac_status=$?
ac1cb8d3
VS
31201 grep -v '^ *+' conftest.er1 >conftest.err
31202 rm -f conftest.er1
31203 cat conftest.err >&5
d589327a 31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31205 (exit $ac_status); } && {
31206 test -z "$ac_c_werror_flag" ||
31207 test ! -s conftest.err
d589327a
VZ
31208 } && test -s conftest$ac_exeext &&
31209 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
31210 ac_cv_lib_dnet_stub_dnet_ntoa=yes
31211else
d589327a 31212 echo "$as_me: failed program was:" >&5
a848cd7e
SC
31213sed 's/^/| /' conftest.$ac_ext >&5
31214
47964710 31215 ac_cv_lib_dnet_stub_dnet_ntoa=no
a848cd7e 31216fi
47964710
VS
31217
31218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31219 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31220LIBS=$ac_check_lib_save_LIBS
31221fi
d589327a
VZ
31222{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
31223echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
31224if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
a848cd7e
SC
31225 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
31226fi
31227
31228 fi
31229fi
47964710
VS
31230
31231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31233 LIBS="$ac_xsave_LIBS"
31234
31235 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
31236 # to get the SysV transport functions.
31237 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
31238 # needs -lnsl.
31239 # The nsl library prevents programs from opening the X display
31240 # on Irix 5.2, according to T.E. Dickey.
31241 # The functions gethostbyname, getservbyname, and inet_addr are
31242 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
d589327a
VZ
31243 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
31244echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
a848cd7e 31245if test "${ac_cv_func_gethostbyname+set}" = set; then
d589327a 31246 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
31247else
31248 cat >conftest.$ac_ext <<_ACEOF
31249/* confdefs.h. */
31250_ACEOF
31251cat confdefs.h >>conftest.$ac_ext
31252cat >>conftest.$ac_ext <<_ACEOF
31253/* end confdefs.h. */
ac1cb8d3
VS
31254/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
31255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31256#define gethostbyname innocuous_gethostbyname
31257
a848cd7e
SC
31258/* System header to define __stub macros and hopefully few prototypes,
31259 which can conflict with char gethostbyname (); below.
31260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31261 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31262
a848cd7e
SC
31263#ifdef __STDC__
31264# include <limits.h>
31265#else
31266# include <assert.h>
31267#endif
ac1cb8d3
VS
31268
31269#undef gethostbyname
31270
47964710
VS
31271/* Override any GCC internal prototype to avoid an error.
31272 Use char because int might match the return type of a GCC
31273 builtin and then its argument prototype would still apply. */
a848cd7e
SC
31274#ifdef __cplusplus
31275extern "C"
a848cd7e 31276#endif
a848cd7e
SC
31277char gethostbyname ();
31278/* The GNU C library defines this for functions which it implements
31279 to always fail with ENOSYS. Some functions are actually named
31280 something starting with __ and the normal name is an alias. */
47964710 31281#if defined __stub_gethostbyname || defined __stub___gethostbyname
a848cd7e 31282choke me
a848cd7e
SC
31283#endif
31284
31285int
31286main ()
31287{
47964710 31288return gethostbyname ();
a848cd7e
SC
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
d589327a 31299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 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
d589327a 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
d589327a
VZ
31309 } && test -s conftest$ac_exeext &&
31310 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
31311 ac_cv_func_gethostbyname=yes
31312else
d589327a 31313 echo "$as_me: failed program was:" >&5
a848cd7e
SC
31314sed 's/^/| /' conftest.$ac_ext >&5
31315
47964710 31316 ac_cv_func_gethostbyname=no
a848cd7e 31317fi
47964710
VS
31318
31319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31320 conftest$ac_exeext conftest.$ac_ext
a848cd7e 31321fi
d589327a
VZ
31322{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
31323echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
a848cd7e
SC
31324
31325 if test $ac_cv_func_gethostbyname = no; then
d589327a
VZ
31326 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
31327echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
a848cd7e 31328if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
d589327a 31329 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
31330else
31331 ac_check_lib_save_LIBS=$LIBS
31332LIBS="-lnsl $LIBS"
31333cat >conftest.$ac_ext <<_ACEOF
31334/* confdefs.h. */
31335_ACEOF
31336cat confdefs.h >>conftest.$ac_ext
31337cat >>conftest.$ac_ext <<_ACEOF
31338/* end confdefs.h. */
31339
47964710
VS
31340/* Override any GCC internal prototype to avoid an error.
31341 Use char because int might match the return type of a GCC
31342 builtin and then its argument prototype would still apply. */
a848cd7e
SC
31343#ifdef __cplusplus
31344extern "C"
31345#endif
a848cd7e
SC
31346char gethostbyname ();
31347int
31348main ()
31349{
47964710 31350return gethostbyname ();
a848cd7e
SC
31351 ;
31352 return 0;
31353}
31354_ACEOF
31355rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31356if { (ac_try="$ac_link"
31357case "(($ac_try" in
31358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31359 *) ac_try_echo=$ac_try;;
31360esac
d589327a 31361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 31362 (eval "$ac_link") 2>conftest.er1
ac1cb8d3
VS
31363 ac_status=$?
31364 grep -v '^ *+' conftest.er1 >conftest.err
31365 rm -f conftest.er1
31366 cat conftest.err >&5
d589327a 31367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31368 (exit $ac_status); } && {
31369 test -z "$ac_c_werror_flag" ||
31370 test ! -s conftest.err
d589327a
VZ
31371 } && test -s conftest$ac_exeext &&
31372 $as_test_x conftest$ac_exeext; then
ac1cb8d3
VS
31373 ac_cv_lib_nsl_gethostbyname=yes
31374else
d589327a 31375 echo "$as_me: failed program was:" >&5
ac1cb8d3
VS
31376sed 's/^/| /' conftest.$ac_ext >&5
31377
47964710 31378 ac_cv_lib_nsl_gethostbyname=no
ac1cb8d3 31379fi
47964710
VS
31380
31381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3
VS
31382 conftest$ac_exeext conftest.$ac_ext
31383LIBS=$ac_check_lib_save_LIBS
31384fi
d589327a
VZ
31385{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
31386echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
31387if test $ac_cv_lib_nsl_gethostbyname = yes; then
ac1cb8d3
VS
31388 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
31389fi
31390
31391 if test $ac_cv_lib_nsl_gethostbyname = no; then
d589327a
VZ
31392 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
31393echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
ac1cb8d3 31394if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
d589327a 31395 echo $ECHO_N "(cached) $ECHO_C" >&6
ac1cb8d3
VS
31396else
31397 ac_check_lib_save_LIBS=$LIBS
31398LIBS="-lbsd $LIBS"
31399cat >conftest.$ac_ext <<_ACEOF
31400/* confdefs.h. */
31401_ACEOF
31402cat confdefs.h >>conftest.$ac_ext
31403cat >>conftest.$ac_ext <<_ACEOF
31404/* end confdefs.h. */
31405
47964710
VS
31406/* Override any GCC internal prototype to avoid an error.
31407 Use char because int might match the return type of a GCC
31408 builtin and then its argument prototype would still apply. */
ac1cb8d3
VS
31409#ifdef __cplusplus
31410extern "C"
31411#endif
ac1cb8d3
VS
31412char gethostbyname ();
31413int
31414main ()
31415{
47964710 31416return gethostbyname ();
ac1cb8d3
VS
31417 ;
31418 return 0;
31419}
31420_ACEOF
31421rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31422if { (ac_try="$ac_link"
31423case "(($ac_try" in
31424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425 *) ac_try_echo=$ac_try;;
31426esac
d589327a 31427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 31428 (eval "$ac_link") 2>conftest.er1
a848cd7e 31429 ac_status=$?
ac1cb8d3
VS
31430 grep -v '^ *+' conftest.er1 >conftest.err
31431 rm -f conftest.er1
31432 cat conftest.err >&5
d589327a 31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31434 (exit $ac_status); } && {
31435 test -z "$ac_c_werror_flag" ||
31436 test ! -s conftest.err
d589327a
VZ
31437 } && test -s conftest$ac_exeext &&
31438 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
31439 ac_cv_lib_bsd_gethostbyname=yes
31440else
d589327a 31441 echo "$as_me: failed program was:" >&5
a848cd7e
SC
31442sed 's/^/| /' conftest.$ac_ext >&5
31443
47964710 31444 ac_cv_lib_bsd_gethostbyname=no
a848cd7e 31445fi
47964710
VS
31446
31447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31449LIBS=$ac_check_lib_save_LIBS
31450fi
d589327a
VZ
31451{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
31452echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
31453if test $ac_cv_lib_bsd_gethostbyname = yes; then
a848cd7e
SC
31454 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
31455fi
31456
31457 fi
31458 fi
31459
31460 # lieder@skyler.mavd.honeywell.com says without -lsocket,
31461 # socket/setsockopt and other routines are undefined under SCO ODT
31462 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
31463 # on later versions), says Simon Leinen: it contains gethostby*
31464 # variants that don't use the name server (or something). -lsocket
31465 # must be given before -lnsl if both are needed. We assume that
31466 # if connect needs -lnsl, so does gethostbyname.
d589327a
VZ
31467 { echo "$as_me:$LINENO: checking for connect" >&5
31468echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
a848cd7e 31469if test "${ac_cv_func_connect+set}" = set; then
d589327a 31470 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
31471else
31472 cat >conftest.$ac_ext <<_ACEOF
31473/* confdefs.h. */
31474_ACEOF
31475cat confdefs.h >>conftest.$ac_ext
31476cat >>conftest.$ac_ext <<_ACEOF
31477/* end confdefs.h. */
ac1cb8d3
VS
31478/* Define connect to an innocuous variant, in case <limits.h> declares connect.
31479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31480#define connect innocuous_connect
31481
a848cd7e
SC
31482/* System header to define __stub macros and hopefully few prototypes,
31483 which can conflict with char connect (); below.
31484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31485 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31486
a848cd7e
SC
31487#ifdef __STDC__
31488# include <limits.h>
31489#else
31490# include <assert.h>
31491#endif
ac1cb8d3
VS
31492
31493#undef connect
31494
47964710
VS
31495/* Override any GCC internal prototype to avoid an error.
31496 Use char because int might match the return type of a GCC
31497 builtin and then its argument prototype would still apply. */
a848cd7e
SC
31498#ifdef __cplusplus
31499extern "C"
a848cd7e 31500#endif
a848cd7e
SC
31501char connect ();
31502/* The GNU C library defines this for functions which it implements
31503 to always fail with ENOSYS. Some functions are actually named
31504 something starting with __ and the normal name is an alias. */
47964710 31505#if defined __stub_connect || defined __stub___connect
a848cd7e 31506choke me
a848cd7e
SC
31507#endif
31508
31509int
31510main ()
31511{
47964710 31512return connect ();
a848cd7e
SC
31513 ;
31514 return 0;
31515}
31516_ACEOF
31517rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31518if { (ac_try="$ac_link"
31519case "(($ac_try" in
31520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521 *) ac_try_echo=$ac_try;;
31522esac
d589327a 31523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 31524 (eval "$ac_link") 2>conftest.er1
a848cd7e 31525 ac_status=$?
ac1cb8d3
VS
31526 grep -v '^ *+' conftest.er1 >conftest.err
31527 rm -f conftest.er1
31528 cat conftest.err >&5
d589327a 31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31530 (exit $ac_status); } && {
31531 test -z "$ac_c_werror_flag" ||
31532 test ! -s conftest.err
d589327a
VZ
31533 } && test -s conftest$ac_exeext &&
31534 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
31535 ac_cv_func_connect=yes
31536else
d589327a 31537 echo "$as_me: failed program was:" >&5
a848cd7e
SC
31538sed 's/^/| /' conftest.$ac_ext >&5
31539
47964710 31540 ac_cv_func_connect=no
a848cd7e 31541fi
47964710
VS
31542
31543rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31544 conftest$ac_exeext conftest.$ac_ext
a848cd7e 31545fi
d589327a
VZ
31546{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
31547echo "${ECHO_T}$ac_cv_func_connect" >&6; }
a848cd7e
SC
31548
31549 if test $ac_cv_func_connect = no; then
d589327a
VZ
31550 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
31551echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
a848cd7e 31552if test "${ac_cv_lib_socket_connect+set}" = set; then
d589327a 31553 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
31554else
31555 ac_check_lib_save_LIBS=$LIBS
31556LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31557cat >conftest.$ac_ext <<_ACEOF
31558/* confdefs.h. */
31559_ACEOF
31560cat confdefs.h >>conftest.$ac_ext
31561cat >>conftest.$ac_ext <<_ACEOF
31562/* end confdefs.h. */
31563
47964710
VS
31564/* Override any GCC internal prototype to avoid an error.
31565 Use char because int might match the return type of a GCC
31566 builtin and then its argument prototype would still apply. */
a848cd7e
SC
31567#ifdef __cplusplus
31568extern "C"
31569#endif
a848cd7e
SC
31570char connect ();
31571int
31572main ()
31573{
47964710 31574return connect ();
a848cd7e
SC
31575 ;
31576 return 0;
31577}
31578_ACEOF
31579rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31580if { (ac_try="$ac_link"
31581case "(($ac_try" in
31582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583 *) ac_try_echo=$ac_try;;
31584esac
d589327a 31585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 31586 (eval "$ac_link") 2>conftest.er1
a848cd7e 31587 ac_status=$?
ac1cb8d3
VS
31588 grep -v '^ *+' conftest.er1 >conftest.err
31589 rm -f conftest.er1
31590 cat conftest.err >&5
d589327a 31591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31592 (exit $ac_status); } && {
31593 test -z "$ac_c_werror_flag" ||
31594 test ! -s conftest.err
d589327a
VZ
31595 } && test -s conftest$ac_exeext &&
31596 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
31597 ac_cv_lib_socket_connect=yes
31598else
d589327a 31599 echo "$as_me: failed program was:" >&5
a848cd7e
SC
31600sed 's/^/| /' conftest.$ac_ext >&5
31601
47964710 31602 ac_cv_lib_socket_connect=no
a848cd7e 31603fi
47964710
VS
31604
31605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31606 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31607LIBS=$ac_check_lib_save_LIBS
31608fi
d589327a
VZ
31609{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
31610echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
31611if test $ac_cv_lib_socket_connect = yes; then
a848cd7e
SC
31612 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31613fi
31614
31615 fi
31616
31617 # Guillermo Gomez says -lposix is necessary on A/UX.
d589327a
VZ
31618 { echo "$as_me:$LINENO: checking for remove" >&5
31619echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
a848cd7e 31620if test "${ac_cv_func_remove+set}" = set; then
d589327a 31621 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
31622else
31623 cat >conftest.$ac_ext <<_ACEOF
31624/* confdefs.h. */
31625_ACEOF
31626cat confdefs.h >>conftest.$ac_ext
31627cat >>conftest.$ac_ext <<_ACEOF
31628/* end confdefs.h. */
ac1cb8d3
VS
31629/* Define remove to an innocuous variant, in case <limits.h> declares remove.
31630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31631#define remove innocuous_remove
31632
a848cd7e
SC
31633/* System header to define __stub macros and hopefully few prototypes,
31634 which can conflict with char remove (); below.
31635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31636 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31637
a848cd7e
SC
31638#ifdef __STDC__
31639# include <limits.h>
31640#else
31641# include <assert.h>
31642#endif
ac1cb8d3
VS
31643
31644#undef remove
31645
47964710
VS
31646/* Override any GCC internal prototype to avoid an error.
31647 Use char because int might match the return type of a GCC
31648 builtin and then its argument prototype would still apply. */
a848cd7e
SC
31649#ifdef __cplusplus
31650extern "C"
a848cd7e 31651#endif
a848cd7e
SC
31652char remove ();
31653/* The GNU C library defines this for functions which it implements
31654 to always fail with ENOSYS. Some functions are actually named
31655 something starting with __ and the normal name is an alias. */
47964710 31656#if defined __stub_remove || defined __stub___remove
a848cd7e 31657choke me
a848cd7e
SC
31658#endif
31659
31660int
31661main ()
31662{
47964710 31663return remove ();
a848cd7e
SC
31664 ;
31665 return 0;
31666}
31667_ACEOF
31668rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31669if { (ac_try="$ac_link"
31670case "(($ac_try" in
31671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31672 *) ac_try_echo=$ac_try;;
31673esac
d589327a 31674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 31675 (eval "$ac_link") 2>conftest.er1
a848cd7e 31676 ac_status=$?
ac1cb8d3
VS
31677 grep -v '^ *+' conftest.er1 >conftest.err
31678 rm -f conftest.er1
31679 cat conftest.err >&5
d589327a 31680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31681 (exit $ac_status); } && {
31682 test -z "$ac_c_werror_flag" ||
31683 test ! -s conftest.err
d589327a
VZ
31684 } && test -s conftest$ac_exeext &&
31685 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
31686 ac_cv_func_remove=yes
31687else
d589327a 31688 echo "$as_me: failed program was:" >&5
a848cd7e
SC
31689sed 's/^/| /' conftest.$ac_ext >&5
31690
47964710 31691 ac_cv_func_remove=no
a848cd7e 31692fi
47964710
VS
31693
31694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31695 conftest$ac_exeext conftest.$ac_ext
a848cd7e 31696fi
d589327a
VZ
31697{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31698echo "${ECHO_T}$ac_cv_func_remove" >&6; }
a848cd7e
SC
31699
31700 if test $ac_cv_func_remove = no; then
d589327a
VZ
31701 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31702echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
a848cd7e 31703if test "${ac_cv_lib_posix_remove+set}" = set; then
d589327a 31704 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
31705else
31706 ac_check_lib_save_LIBS=$LIBS
31707LIBS="-lposix $LIBS"
31708cat >conftest.$ac_ext <<_ACEOF
31709/* confdefs.h. */
31710_ACEOF
31711cat confdefs.h >>conftest.$ac_ext
31712cat >>conftest.$ac_ext <<_ACEOF
31713/* end confdefs.h. */
31714
47964710
VS
31715/* Override any GCC internal prototype to avoid an error.
31716 Use char because int might match the return type of a GCC
31717 builtin and then its argument prototype would still apply. */
a848cd7e
SC
31718#ifdef __cplusplus
31719extern "C"
31720#endif
a848cd7e
SC
31721char remove ();
31722int
31723main ()
31724{
47964710 31725return remove ();
a848cd7e
SC
31726 ;
31727 return 0;
31728}
31729_ACEOF
31730rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31731if { (ac_try="$ac_link"
31732case "(($ac_try" in
31733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31734 *) ac_try_echo=$ac_try;;
31735esac
d589327a 31736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 31737 (eval "$ac_link") 2>conftest.er1
a848cd7e 31738 ac_status=$?
ac1cb8d3
VS
31739 grep -v '^ *+' conftest.er1 >conftest.err
31740 rm -f conftest.er1
31741 cat conftest.err >&5
d589327a 31742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31743 (exit $ac_status); } && {
31744 test -z "$ac_c_werror_flag" ||
31745 test ! -s conftest.err
d589327a
VZ
31746 } && test -s conftest$ac_exeext &&
31747 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
31748 ac_cv_lib_posix_remove=yes
31749else
d589327a 31750 echo "$as_me: failed program was:" >&5
a848cd7e
SC
31751sed 's/^/| /' conftest.$ac_ext >&5
31752
47964710 31753 ac_cv_lib_posix_remove=no
a848cd7e 31754fi
47964710
VS
31755
31756rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31757 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31758LIBS=$ac_check_lib_save_LIBS
31759fi
d589327a
VZ
31760{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31761echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
31762if test $ac_cv_lib_posix_remove = yes; then
a848cd7e
SC
31763 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31764fi
31765
31766 fi
31767
31768 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
d589327a
VZ
31769 { echo "$as_me:$LINENO: checking for shmat" >&5
31770echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
a848cd7e 31771if test "${ac_cv_func_shmat+set}" = set; then
d589327a 31772 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
31773else
31774 cat >conftest.$ac_ext <<_ACEOF
31775/* confdefs.h. */
31776_ACEOF
31777cat confdefs.h >>conftest.$ac_ext
31778cat >>conftest.$ac_ext <<_ACEOF
31779/* end confdefs.h. */
ac1cb8d3
VS
31780/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31782#define shmat innocuous_shmat
31783
a848cd7e
SC
31784/* System header to define __stub macros and hopefully few prototypes,
31785 which can conflict with char shmat (); below.
31786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31787 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31788
a848cd7e
SC
31789#ifdef __STDC__
31790# include <limits.h>
31791#else
31792# include <assert.h>
31793#endif
ac1cb8d3
VS
31794
31795#undef shmat
31796
47964710
VS
31797/* Override any GCC internal prototype to avoid an error.
31798 Use char because int might match the return type of a GCC
31799 builtin and then its argument prototype would still apply. */
a848cd7e
SC
31800#ifdef __cplusplus
31801extern "C"
a848cd7e 31802#endif
a848cd7e
SC
31803char shmat ();
31804/* The GNU C library defines this for functions which it implements
31805 to always fail with ENOSYS. Some functions are actually named
31806 something starting with __ and the normal name is an alias. */
47964710 31807#if defined __stub_shmat || defined __stub___shmat
a848cd7e 31808choke me
a848cd7e
SC
31809#endif
31810
31811int
31812main ()
31813{
47964710 31814return shmat ();
a848cd7e
SC
31815 ;
31816 return 0;
31817}
31818_ACEOF
31819rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31820if { (ac_try="$ac_link"
31821case "(($ac_try" in
31822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823 *) ac_try_echo=$ac_try;;
31824esac
d589327a 31825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 31826 (eval "$ac_link") 2>conftest.er1
a848cd7e 31827 ac_status=$?
ac1cb8d3
VS
31828 grep -v '^ *+' conftest.er1 >conftest.err
31829 rm -f conftest.er1
31830 cat conftest.err >&5
d589327a 31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31832 (exit $ac_status); } && {
31833 test -z "$ac_c_werror_flag" ||
31834 test ! -s conftest.err
d589327a
VZ
31835 } && test -s conftest$ac_exeext &&
31836 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
31837 ac_cv_func_shmat=yes
31838else
d589327a 31839 echo "$as_me: failed program was:" >&5
a848cd7e
SC
31840sed 's/^/| /' conftest.$ac_ext >&5
31841
47964710 31842 ac_cv_func_shmat=no
a848cd7e 31843fi
47964710
VS
31844
31845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31846 conftest$ac_exeext conftest.$ac_ext
a848cd7e 31847fi
d589327a
VZ
31848{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31849echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
a848cd7e
SC
31850
31851 if test $ac_cv_func_shmat = no; then
d589327a
VZ
31852 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31853echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
a848cd7e 31854if test "${ac_cv_lib_ipc_shmat+set}" = set; then
d589327a 31855 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
31856else
31857 ac_check_lib_save_LIBS=$LIBS
31858LIBS="-lipc $LIBS"
31859cat >conftest.$ac_ext <<_ACEOF
31860/* confdefs.h. */
31861_ACEOF
31862cat confdefs.h >>conftest.$ac_ext
31863cat >>conftest.$ac_ext <<_ACEOF
31864/* end confdefs.h. */
31865
47964710
VS
31866/* Override any GCC internal prototype to avoid an error.
31867 Use char because int might match the return type of a GCC
31868 builtin and then its argument prototype would still apply. */
a848cd7e
SC
31869#ifdef __cplusplus
31870extern "C"
31871#endif
a848cd7e
SC
31872char shmat ();
31873int
31874main ()
31875{
47964710 31876return shmat ();
a848cd7e
SC
31877 ;
31878 return 0;
31879}
31880_ACEOF
31881rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31882if { (ac_try="$ac_link"
31883case "(($ac_try" in
31884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31885 *) ac_try_echo=$ac_try;;
31886esac
d589327a 31887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 31888 (eval "$ac_link") 2>conftest.er1
a848cd7e 31889 ac_status=$?
ac1cb8d3
VS
31890 grep -v '^ *+' conftest.er1 >conftest.err
31891 rm -f conftest.er1
31892 cat conftest.err >&5
d589327a 31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31894 (exit $ac_status); } && {
31895 test -z "$ac_c_werror_flag" ||
31896 test ! -s conftest.err
d589327a
VZ
31897 } && test -s conftest$ac_exeext &&
31898 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
31899 ac_cv_lib_ipc_shmat=yes
31900else
d589327a 31901 echo "$as_me: failed program was:" >&5
a848cd7e
SC
31902sed 's/^/| /' conftest.$ac_ext >&5
31903
47964710 31904 ac_cv_lib_ipc_shmat=no
a848cd7e 31905fi
47964710
VS
31906
31907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31909LIBS=$ac_check_lib_save_LIBS
31910fi
d589327a
VZ
31911{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31912echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31913if test $ac_cv_lib_ipc_shmat = yes; then
a848cd7e
SC
31914 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31915fi
31916
31917 fi
31918 fi
31919
31920 # Check for libraries that X11R6 Xt/Xaw programs need.
31921 ac_save_LDFLAGS=$LDFLAGS
31922 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31923 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31924 # check for ICE first), but we must link in the order -lSM -lICE or
31925 # we get undefined symbols. So assume we have SM if we have ICE.
31926 # These have to be linked with before -lX11, unlike the other
31927 # libraries we check for below, so use a different variable.
31928 # John Interrante, Karl Berry
d589327a
VZ
31929 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31930echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
a848cd7e 31931if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
d589327a 31932 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
31933else
31934 ac_check_lib_save_LIBS=$LIBS
31935LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31936cat >conftest.$ac_ext <<_ACEOF
31937/* confdefs.h. */
31938_ACEOF
31939cat confdefs.h >>conftest.$ac_ext
31940cat >>conftest.$ac_ext <<_ACEOF
31941/* end confdefs.h. */
31942
47964710
VS
31943/* Override any GCC internal prototype to avoid an error.
31944 Use char because int might match the return type of a GCC
31945 builtin and then its argument prototype would still apply. */
a848cd7e
SC
31946#ifdef __cplusplus
31947extern "C"
31948#endif
a848cd7e
SC
31949char IceConnectionNumber ();
31950int
31951main ()
31952{
47964710 31953return IceConnectionNumber ();
a848cd7e
SC
31954 ;
31955 return 0;
31956}
31957_ACEOF
31958rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
31959if { (ac_try="$ac_link"
31960case "(($ac_try" in
31961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31962 *) ac_try_echo=$ac_try;;
31963esac
d589327a 31964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 31965 (eval "$ac_link") 2>conftest.er1
a848cd7e 31966 ac_status=$?
ac1cb8d3
VS
31967 grep -v '^ *+' conftest.er1 >conftest.err
31968 rm -f conftest.er1
31969 cat conftest.err >&5
d589327a 31970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
31971 (exit $ac_status); } && {
31972 test -z "$ac_c_werror_flag" ||
31973 test ! -s conftest.err
d589327a
VZ
31974 } && test -s conftest$ac_exeext &&
31975 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
31976 ac_cv_lib_ICE_IceConnectionNumber=yes
31977else
d589327a 31978 echo "$as_me: failed program was:" >&5
a848cd7e
SC
31979sed 's/^/| /' conftest.$ac_ext >&5
31980
47964710 31981 ac_cv_lib_ICE_IceConnectionNumber=no
a848cd7e 31982fi
47964710
VS
31983
31984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 31985 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31986LIBS=$ac_check_lib_save_LIBS
31987fi
d589327a
VZ
31988{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31989echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31990if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
a848cd7e
SC
31991 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31992fi
31993
31994 LDFLAGS=$ac_save_LDFLAGS
31995
31996fi
31997
31998
31999 if test "$no_x" = "yes"; then
d589327a
VZ
32000 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
32001echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
89d90d6d 32002 { (exit 1); exit 1; }; }
a848cd7e
SC
32003 fi
32004
74b84332
VS
32005 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
32006 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
32007 AFMINSTALL=afminstall
32008 COMPILED_X_PROGRAM=0
32009
74b84332
VS
32010 fi
32011
32012 if test "$wxUSE_X11" = 1; then
a848cd7e 32013 if test "$wxUSE_NANOX" = "yes"; then
d589327a
VZ
32014 { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
32015echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
a848cd7e 32016 if test "x$MICROWIN" = x ; then
d589327a
VZ
32017 { echo "$as_me:$LINENO: result: not found" >&5
32018echo "${ECHO_T}not found" >&6; }
32019 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
32020echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
a848cd7e
SC
32021 { (exit 1); exit 1; }; }
32022 else
d589327a
VZ
32023 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
32024echo "${ECHO_T}$MICROWIN" >&6; }
a848cd7e
SC
32025 cat >>confdefs.h <<\_ACEOF
32026#define wxUSE_NANOX 1
32027_ACEOF
32028
32029 fi
32030 fi
32031
32032 if test "$wxUSE_UNICODE" = "yes"; then
32033
479c790c
VZ
32034
32035if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32036 if test -n "$ac_tool_prefix"; then
32037 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32038set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
d589327a
VZ
32039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
32040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
479c790c 32041if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
d589327a 32042 echo $ECHO_N "(cached) $ECHO_C" >&6
479c790c
VZ
32043else
32044 case $PKG_CONFIG in
32045 [\\/]* | ?:[\\/]*)
32046 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32047 ;;
32048 *)
32049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32050for as_dir in $PATH
32051do
32052 IFS=$as_save_IFS
32053 test -z "$as_dir" && as_dir=.
32054 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 32055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
479c790c 32056 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
d589327a 32057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
479c790c
VZ
32058 break 2
32059 fi
32060done
32061done
47964710 32062IFS=$as_save_IFS
479c790c
VZ
32063
32064 ;;
32065esac
32066fi
32067PKG_CONFIG=$ac_cv_path_PKG_CONFIG
479c790c 32068if test -n "$PKG_CONFIG"; then
d589327a
VZ
32069 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32070echo "${ECHO_T}$PKG_CONFIG" >&6; }
479c790c 32071else
d589327a
VZ
32072 { echo "$as_me:$LINENO: result: no" >&5
32073echo "${ECHO_T}no" >&6; }
479c790c
VZ
32074fi
32075
47964710 32076
479c790c
VZ
32077fi
32078if test -z "$ac_cv_path_PKG_CONFIG"; then
32079 ac_pt_PKG_CONFIG=$PKG_CONFIG
32080 # Extract the first word of "pkg-config", so it can be a program name with args.
32081set dummy pkg-config; ac_word=$2
d589327a
VZ
32082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
32083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
479c790c 32084if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
d589327a 32085 echo $ECHO_N "(cached) $ECHO_C" >&6
479c790c
VZ
32086else
32087 case $ac_pt_PKG_CONFIG in
32088 [\\/]* | ?:[\\/]*)
32089 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32090 ;;
32091 *)
32092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32093for as_dir in $PATH
32094do
32095 IFS=$as_save_IFS
32096 test -z "$as_dir" && as_dir=.
32097 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 32098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
479c790c 32099 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
d589327a 32100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
479c790c
VZ
32101 break 2
32102 fi
32103done
32104done
47964710 32105IFS=$as_save_IFS
479c790c
VZ
32106
32107 ;;
32108esac
32109fi
32110ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
479c790c 32111if test -n "$ac_pt_PKG_CONFIG"; then
d589327a
VZ
32112 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32113echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
479c790c 32114else
d589327a
VZ
32115 { echo "$as_me:$LINENO: result: no" >&5
32116echo "${ECHO_T}no" >&6; }
479c790c
VZ
32117fi
32118
47964710
VS
32119 if test "x$ac_pt_PKG_CONFIG" = x; then
32120 PKG_CONFIG=""
32121 else
32122 case $cross_compiling:$ac_tool_warned in
32123yes:)
d589327a
VZ
32124{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32125whose name does not start with the host triplet. If you think this
32126configuration is useful to you, please write to autoconf@gnu.org." >&5
32127echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32128whose name does not start with the host triplet. If you think this
32129configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47964710
VS
32130ac_tool_warned=yes ;;
32131esac
32132 PKG_CONFIG=$ac_pt_PKG_CONFIG
32133 fi
479c790c
VZ
32134else
32135 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32136fi
32137
32138fi
32139if test -n "$PKG_CONFIG"; then
32140 _pkg_min_version=0.9.0
d589327a
VZ
32141 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32142echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
479c790c 32143 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
d589327a
VZ
32144 { echo "$as_me:$LINENO: result: yes" >&5
32145echo "${ECHO_T}yes" >&6; }
479c790c 32146 else
d589327a
VZ
32147 { echo "$as_me:$LINENO: result: no" >&5
32148echo "${ECHO_T}no" >&6; }
479c790c
VZ
32149 PKG_CONFIG=""
32150 fi
32151
32152fi
32153
32154
3ecd9f92 32155pkg_failed=no
d589327a
VZ
32156{ echo "$as_me:$LINENO: checking for PANGOX" >&5
32157echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
a848cd7e 32158
3ecd9f92
MW
32159if test -n "$PKG_CONFIG"; then
32160 if test -n "$PANGOX_CFLAGS"; then
32161 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
32162 else
32163 if test -n "$PKG_CONFIG" && \
d589327a 32164 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
3ecd9f92
MW
32165 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
32166 ac_status=$?
d589327a 32167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
32168 (exit $ac_status); }; then
32169 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
32170else
32171 pkg_failed=yes
32172fi
32173 fi
32174else
32175 pkg_failed=untried
32176fi
32177if test -n "$PKG_CONFIG"; then
32178 if test -n "$PANGOX_LIBS"; then
32179 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
32180 else
32181 if test -n "$PKG_CONFIG" && \
d589327a 32182 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
3ecd9f92
MW
32183 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
32184 ac_status=$?
d589327a 32185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
32186 (exit $ac_status); }; then
32187 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
32188else
32189 pkg_failed=yes
32190fi
32191 fi
32192else
32193 pkg_failed=untried
32194fi
32195
32196
32197
32198if test $pkg_failed = yes; then
32199
32200if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32201 _pkg_short_errors_supported=yes
32202else
32203 _pkg_short_errors_supported=no
32204fi
32205 if test $_pkg_short_errors_supported = yes; then
32206 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
32207 else
32208 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 32209 fi
3ecd9f92
MW
32210 # Put the nasty error message in config.log where it belongs
32211 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
32212
32213
d589327a
VZ
32214 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
32215echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
3ecd9f92 32216 { (exit 1); exit 1; }; }
a848cd7e 32217
a848cd7e 32218
3ecd9f92 32219elif test $pkg_failed = untried; then
a848cd7e 32220
d589327a
VZ
32221 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
32222echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
3ecd9f92
MW
32223 { (exit 1); exit 1; }; }
32224
32225
32226else
32227 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
32228 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
d589327a
VZ
32229 { echo "$as_me:$LINENO: result: yes" >&5
32230echo "${ECHO_T}yes" >&6; }
3ecd9f92 32231
9b8888f9 32232 CFLAGS="$PANGOX_CFLAGS $CFLAGS"
479c790c
VZ
32233 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
32234 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
3ecd9f92
MW
32235
32236fi
32237
32238pkg_failed=no
d589327a
VZ
32239{ echo "$as_me:$LINENO: checking for PANGOFT2" >&5
32240echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
3ecd9f92
MW
32241
32242if test -n "$PKG_CONFIG"; then
32243 if test -n "$PANGOFT2_CFLAGS"; then
32244 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
32245 else
32246 if test -n "$PKG_CONFIG" && \
d589327a 32247 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
3ecd9f92
MW
32248 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
32249 ac_status=$?
d589327a 32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
32251 (exit $ac_status); }; then
32252 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
32253else
32254 pkg_failed=yes
32255fi
32256 fi
32257else
32258 pkg_failed=untried
32259fi
32260if test -n "$PKG_CONFIG"; then
32261 if test -n "$PANGOFT2_LIBS"; then
32262 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
32263 else
32264 if test -n "$PKG_CONFIG" && \
d589327a 32265 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
3ecd9f92
MW
32266 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
32267 ac_status=$?
d589327a 32268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
32269 (exit $ac_status); }; then
32270 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
32271else
32272 pkg_failed=yes
32273fi
32274 fi
32275else
32276 pkg_failed=untried
32277fi
32278
32279
32280
32281if test $pkg_failed = yes; then
32282
32283if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32284 _pkg_short_errors_supported=yes
32285else
32286 _pkg_short_errors_supported=no
32287fi
32288 if test $_pkg_short_errors_supported = yes; then
32289 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
32290 else
32291 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
32292 fi
32293 # Put the nasty error message in config.log where it belongs
32294 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 32295
a848cd7e 32296
d589327a
VZ
32297 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
32298echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 32299 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e
SC
32300
32301
3ecd9f92 32302elif test $pkg_failed = untried; then
a848cd7e 32303
d589327a
VZ
32304 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
32305echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 32306 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 32307
a848cd7e 32308
a848cd7e 32309else
3ecd9f92
MW
32310 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
32311 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
d589327a
VZ
32312 { echo "$as_me:$LINENO: result: yes" >&5
32313echo "${ECHO_T}yes" >&6; }
3ecd9f92 32314
9b8888f9 32315 CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
479c790c
VZ
32316 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
32317 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 32318
a848cd7e 32319fi
3ecd9f92
MW
32320
32321pkg_failed=no
d589327a
VZ
32322{ echo "$as_me:$LINENO: checking for PANGOXFT" >&5
32323echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
a848cd7e
SC
32324
32325if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
32326 if test -n "$PANGOXFT_CFLAGS"; then
32327 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
32328 else
32329 if test -n "$PKG_CONFIG" && \
d589327a 32330 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
3ecd9f92
MW
32331 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
32332 ac_status=$?
d589327a 32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
32334 (exit $ac_status); }; then
32335 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 32336else
3ecd9f92
MW
32337 pkg_failed=yes
32338fi
32339 fi
32340else
32341 pkg_failed=untried
32342fi
32343if test -n "$PKG_CONFIG"; then
32344 if test -n "$PANGOXFT_LIBS"; then
32345 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
32346 else
32347 if test -n "$PKG_CONFIG" && \
d589327a 32348 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
3ecd9f92
MW
32349 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
32350 ac_status=$?
d589327a 32351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
32352 (exit $ac_status); }; then
32353 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
32354else
32355 pkg_failed=yes
32356fi
32357 fi
32358else
32359 pkg_failed=untried
a848cd7e
SC
32360fi
32361
a848cd7e 32362
a848cd7e 32363
3ecd9f92 32364if test $pkg_failed = yes; then
a848cd7e 32365
3ecd9f92
MW
32366if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32367 _pkg_short_errors_supported=yes
32368else
32369 _pkg_short_errors_supported=no
32370fi
32371 if test $_pkg_short_errors_supported = yes; then
32372 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
32373 else
32374 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 32375 fi
3ecd9f92
MW
32376 # Put the nasty error message in config.log where it belongs
32377 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
32378
32379
d589327a
VZ
32380 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
32381echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
3ecd9f92 32382
a848cd7e 32383
3ecd9f92 32384elif test $pkg_failed = untried; then
a848cd7e 32385
d589327a
VZ
32386 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
32387echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
3ecd9f92
MW
32388
32389
32390else
32391 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
32392 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
d589327a
VZ
32393 { echo "$as_me:$LINENO: result: yes" >&5
32394echo "${ECHO_T}yes" >&6; }
a848cd7e 32395
479c790c 32396 cat >>confdefs.h <<\_ACEOF
4ae1af05
MB
32397#define HAVE_PANGO_XFT 1
32398_ACEOF
32399
9b8888f9 32400 CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
479c790c
VZ
32401 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
32402 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
a848cd7e 32403
3ecd9f92 32404fi
479c790c 32405 save_LIBS="$LIBS"
479c790c 32406 LIBS="$LIBS $PANGOX_LIBS"
304205f1
VS
32407
32408for ac_func in pango_font_family_is_monospace
32409do
d589327a
VZ
32410as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32411{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32412echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 32413if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 32414 echo $ECHO_N "(cached) $ECHO_C" >&6
304205f1
VS
32415else
32416 cat >conftest.$ac_ext <<_ACEOF
32417/* confdefs.h. */
32418_ACEOF
32419cat confdefs.h >>conftest.$ac_ext
32420cat >>conftest.$ac_ext <<_ACEOF
32421/* end confdefs.h. */
32422/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32424#define $ac_func innocuous_$ac_func
32425
32426/* System header to define __stub macros and hopefully few prototypes,
32427 which can conflict with char $ac_func (); below.
32428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32429 <limits.h> exists even on freestanding compilers. */
32430
32431#ifdef __STDC__
32432# include <limits.h>
32433#else
32434# include <assert.h>
32435#endif
32436
32437#undef $ac_func
32438
47964710
VS
32439/* Override any GCC internal prototype to avoid an error.
32440 Use char because int might match the return type of a GCC
32441 builtin and then its argument prototype would still apply. */
304205f1
VS
32442#ifdef __cplusplus
32443extern "C"
304205f1 32444#endif
304205f1
VS
32445char $ac_func ();
32446/* The GNU C library defines this for functions which it implements
32447 to always fail with ENOSYS. Some functions are actually named
32448 something starting with __ and the normal name is an alias. */
47964710 32449#if defined __stub_$ac_func || defined __stub___$ac_func
304205f1 32450choke me
304205f1
VS
32451#endif
32452
32453int
32454main ()
32455{
47964710 32456return $ac_func ();
304205f1
VS
32457 ;
32458 return 0;
32459}
32460_ACEOF
32461rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
32462if { (ac_try="$ac_link"
32463case "(($ac_try" in
32464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32465 *) ac_try_echo=$ac_try;;
32466esac
d589327a 32467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 32468 (eval "$ac_link") 2>conftest.er1
304205f1
VS
32469 ac_status=$?
32470 grep -v '^ *+' conftest.er1 >conftest.err
32471 rm -f conftest.er1
32472 cat conftest.err >&5
d589327a 32473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
32474 (exit $ac_status); } && {
32475 test -z "$ac_c_werror_flag" ||
32476 test ! -s conftest.err
d589327a
VZ
32477 } && test -s conftest$ac_exeext &&
32478 $as_test_x conftest$ac_exeext; then
304205f1
VS
32479 eval "$as_ac_var=yes"
32480else
d589327a 32481 echo "$as_me: failed program was:" >&5
304205f1
VS
32482sed 's/^/| /' conftest.$ac_ext >&5
32483
47964710 32484 eval "$as_ac_var=no"
304205f1 32485fi
47964710
VS
32486
32487rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
304205f1
VS
32488 conftest$ac_exeext conftest.$ac_ext
32489fi
d589327a
VZ
32490ac_res=`eval echo '${'$as_ac_var'}'`
32491 { echo "$as_me:$LINENO: result: $ac_res" >&5
32492echo "${ECHO_T}$ac_res" >&6; }
32493if test `eval echo '${'$as_ac_var'}'` = yes; then
304205f1 32494 cat >>confdefs.h <<_ACEOF
d589327a 32495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
304205f1
VS
32496_ACEOF
32497
32498fi
32499done
32500
479c790c 32501 LIBS="$save_LIBS"
a848cd7e
SC
32502 fi
32503
32504 wxUSE_UNIVERSAL="yes"
32505
32506 if test "$wxUSE_NANOX" = "yes"; then
32507 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
32508 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"
32509 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
32510 else
32511 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
32512 fi
32513
a848cd7e
SC
32514 TOOLKIT=X11
32515 GUIDIST=X11_DIST
32516 fi
32517
32518 if test "$wxUSE_MOTIF" = 1; then
d589327a
VZ
32519 { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
32520echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
a848cd7e 32521
74b84332
VS
32522ac_find_includes=
32523for ac_dir in $SEARCH_INCLUDE /usr/include;
32524 do
32525 if test -f "$ac_dir/Xm/Xm.h"; then
32526 ac_find_includes=$ac_dir
32527 break
32528 fi
32529 done
a848cd7e 32530
74b84332 32531 if test "$ac_find_includes" != "" ; then
d589327a
VZ
32532 { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32533echo "${ECHO_T}found in $ac_find_includes" >&6; }
74b84332
VS
32534
32535 if test "x$ac_find_includes" = "x/usr/include"; then
32536 ac_path_to_include=""
32537 else
32538 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
32539 result=$?
32540 if test $result = 0; then
32541 ac_path_to_include=""
32542 else
32543 ac_path_to_include=" -I$ac_find_includes"
32544 fi
a848cd7e
SC
32545 fi
32546
74b84332
VS
32547 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
32548 else
9b8888f9
VZ
32549 save_CFLAGS=$CFLAGS
32550 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
e051b34e 32551
74b84332 32552 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32553/* confdefs.h. */
32554_ACEOF
32555cat confdefs.h >>conftest.$ac_ext
32556cat >>conftest.$ac_ext <<_ACEOF
32557/* end confdefs.h. */
32558
74b84332
VS
32559 #include <Xm/Xm.h>
32560
a848cd7e
SC
32561int
32562main ()
32563{
32564
74b84332
VS
32565 int version;
32566 version = xmUseVersion;
32567
a848cd7e
SC
32568 ;
32569 return 0;
32570}
32571_ACEOF
74b84332 32572rm -f conftest.$ac_objext
47964710
VS
32573if { (ac_try="$ac_compile"
32574case "(($ac_try" in
32575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576 *) ac_try_echo=$ac_try;;
32577esac
d589327a 32578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 32579 (eval "$ac_compile") 2>conftest.er1
a848cd7e 32580 ac_status=$?
ac1cb8d3
VS
32581 grep -v '^ *+' conftest.er1 >conftest.err
32582 rm -f conftest.er1
32583 cat conftest.err >&5
d589327a 32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
32585 (exit $ac_status); } && {
32586 test -z "$ac_c_werror_flag" ||
32587 test ! -s conftest.err
32588 } && test -s conftest.$ac_objext; then
74b84332 32589
d589327a
VZ
32590 { echo "$as_me:$LINENO: result: found in default search path" >&5
32591echo "${ECHO_T}found in default search path" >&6; }
74b84332
VS
32592 COMPILED_X_PROGRAM=1
32593
a848cd7e 32594else
d589327a 32595 echo "$as_me: failed program was:" >&5
a848cd7e
SC
32596sed 's/^/| /' conftest.$ac_ext >&5
32597
a848cd7e 32598
d589327a
VZ
32599 { echo "$as_me:$LINENO: result: no" >&5
32600echo "${ECHO_T}no" >&6; }
32601 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
32602echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 32603 { (exit 1); exit 1; }; }
a848cd7e 32604
a848cd7e 32605
a848cd7e 32606fi
47964710
VS
32607
32608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 32609
9b8888f9 32610 CFLAGS=$save_CFLAGS
74b84332
VS
32611 fi
32612
0ad5d837 32613
d589327a
VZ
32614 { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
32615echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
74b84332 32616
0ad5d837
VZ
32617 ac_find_libraries=
32618 for ac_dir in $SEARCH_LIB;
74b84332 32619 do
3eca31dc 32620 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
32621 if test -f "$ac_dir/libXm.$ac_extension"; then
32622 ac_find_libraries=$ac_dir
32623 break 2
a848cd7e 32624 fi
74b84332
VS
32625 done
32626 done
a848cd7e 32627
0ad5d837
VZ
32628
32629 if test "x$ac_find_libraries" != "x" ; then
d589327a
VZ
32630 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32631echo "${ECHO_T}found in $ac_find_libraries" >&6; }
a848cd7e 32632
74b84332 32633
0ad5d837 32634 if test "$ac_find_libraries" = "default location"; then
74b84332 32635 ac_path_to_link=""
a848cd7e 32636 else
0ad5d837
VZ
32637 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32638 result=$?
32639 if test $result = 0; then
32640 ac_path_to_link=""
32641 else
32642 ac_path_to_link=" -L$ac_find_libraries"
32643 fi
74b84332
VS
32644 fi
32645
0ad5d837
VZ
32646 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32647 else
9b8888f9
VZ
32648 save_CFLAGS=$CFLAGS
32649 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
6f9cf1e6
MW
32650 save_LIBS="$LIBS"
32651 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 32652
0ad5d837 32653 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32654/* confdefs.h. */
32655_ACEOF
32656cat confdefs.h >>conftest.$ac_ext
32657cat >>conftest.$ac_ext <<_ACEOF
32658/* end confdefs.h. */
32659
0ad5d837 32660 #include <Xm/Xm.h>
74b84332 32661
a848cd7e
SC
32662int
32663main ()
32664{
74b84332 32665
0ad5d837
VZ
32666 int version;
32667 version = xmUseVersion;
74b84332 32668
a848cd7e
SC
32669 ;
32670 return 0;
32671}
32672_ACEOF
0ad5d837 32673rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
32674if { (ac_try="$ac_link"
32675case "(($ac_try" in
32676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32677 *) ac_try_echo=$ac_try;;
32678esac
d589327a 32679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 32680 (eval "$ac_link") 2>conftest.er1
a848cd7e 32681 ac_status=$?
ac1cb8d3
VS
32682 grep -v '^ *+' conftest.er1 >conftest.err
32683 rm -f conftest.er1
32684 cat conftest.err >&5
d589327a 32685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
32686 (exit $ac_status); } && {
32687 test -z "$ac_c_werror_flag" ||
32688 test ! -s conftest.err
d589327a
VZ
32689 } && test -s conftest$ac_exeext &&
32690 $as_test_x conftest$ac_exeext; then
74b84332 32691
d589327a
VZ
32692 { echo "$as_me:$LINENO: result: found in default search path" >&5
32693echo "${ECHO_T}found in default search path" >&6; }
0ad5d837 32694 COMPILED_X_PROGRAM=1
74b84332 32695
a848cd7e 32696else
d589327a 32697 echo "$as_me: failed program was:" >&5
a848cd7e
SC
32698sed 's/^/| /' conftest.$ac_ext >&5
32699
74b84332 32700
d589327a
VZ
32701 { echo "$as_me:$LINENO: result: no" >&5
32702echo "${ECHO_T}no" >&6; }
32703 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32704echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
74b84332
VS
32705 { (exit 1); exit 1; }; }
32706
32707
32708fi
47964710
VS
32709
32710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0ad5d837 32711 conftest$ac_exeext conftest.$ac_ext
74b84332 32712
9b8888f9 32713 CFLAGS=$save_CFLAGS
6f9cf1e6 32714 LIBS="$save_LIBS"
74b84332
VS
32715 fi
32716
d589327a
VZ
32717 { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32718echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
74b84332
VS
32719 libp_link=""
32720 libsm_ice_link=""
32721 libs_found=0
32722 for libp in "" " -lXp"; do
6517fa86 32723 if test "$libs_found" = 0; then
74b84332 32724 for libsm_ice in "" " -lSM -lICE"; do
6517fa86 32725 if test "$libs_found" = 0; then
74b84332
VS
32726 save_LIBS="$LIBS"
32727 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
9b8888f9
VZ
32728 save_CFLAGS=$CFLAGS
32729 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
74b84332
VS
32730
32731 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32732/* confdefs.h. */
32733_ACEOF
32734cat confdefs.h >>conftest.$ac_ext
32735cat >>conftest.$ac_ext <<_ACEOF
32736/* end confdefs.h. */
32737
74b84332
VS
32738 #include <Xm/Xm.h>
32739 #include <Xm/List.h>
32740
a848cd7e
SC
32741int
32742main ()
32743{
74b84332
VS
32744
32745 XmString string = NULL;
32746 Widget w = NULL;
32747 int position = 0;
32748 XmListAddItem(w, string, position);
32749
a848cd7e
SC
32750 ;
32751 return 0;
32752}
32753_ACEOF
32754rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
32755if { (ac_try="$ac_link"
32756case "(($ac_try" in
32757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32758 *) ac_try_echo=$ac_try;;
32759esac
d589327a 32760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 32761 (eval "$ac_link") 2>conftest.er1
a848cd7e 32762 ac_status=$?
ac1cb8d3
VS
32763 grep -v '^ *+' conftest.er1 >conftest.err
32764 rm -f conftest.er1
32765 cat conftest.err >&5
d589327a 32766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
32767 (exit $ac_status); } && {
32768 test -z "$ac_c_werror_flag" ||
32769 test ! -s conftest.err
d589327a
VZ
32770 } && test -s conftest$ac_exeext &&
32771 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
32772
32773 libp_link="$libp"
32774 libsm_ice_link="$libsm_ice"
d589327a
VZ
32775 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32776echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
a848cd7e
SC
32777 libs_found=1
32778
32779else
d589327a 32780 echo "$as_me: failed program was:" >&5
a848cd7e
SC
32781sed 's/^/| /' conftest.$ac_ext >&5
32782
32783
32784
32785fi
47964710
VS
32786
32787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 32788 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32789
32790 LIBS="$save_LIBS"
9b8888f9 32791 CFLAGS=$save_CFLAGS
a848cd7e
SC
32792 fi
32793 done
32794 fi
32795 done
32796
6517fa86 32797 if test "$libs_found" = 0; then
d589327a
VZ
32798 { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32799echo "${ECHO_T}can't find the right libraries" >&6; }
32800 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32801echo "$as_me: error: can't link a simple motif program" >&2;}
a848cd7e
SC
32802 { (exit 1); exit 1; }; }
32803 fi
32804
d589327a
VZ
32805 { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32806echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
62fa8b3a 32807if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
d589327a 32808 echo $ECHO_N "(cached) $ECHO_C" >&6
62fa8b3a
MW
32809else
32810 ac_check_lib_save_LIBS=$LIBS
32811LIBS="-lSgm $LIBS"
32812cat >conftest.$ac_ext <<_ACEOF
32813/* confdefs.h. */
32814_ACEOF
32815cat confdefs.h >>conftest.$ac_ext
32816cat >>conftest.$ac_ext <<_ACEOF
32817/* end confdefs.h. */
32818
47964710
VS
32819/* Override any GCC internal prototype to avoid an error.
32820 Use char because int might match the return type of a GCC
32821 builtin and then its argument prototype would still apply. */
62fa8b3a
MW
32822#ifdef __cplusplus
32823extern "C"
32824#endif
62fa8b3a
MW
32825char SgCreateList ();
32826int
32827main ()
32828{
47964710 32829return SgCreateList ();
62fa8b3a
MW
32830 ;
32831 return 0;
32832}
32833_ACEOF
32834rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
32835if { (ac_try="$ac_link"
32836case "(($ac_try" in
32837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838 *) ac_try_echo=$ac_try;;
32839esac
d589327a 32840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 32841 (eval "$ac_link") 2>conftest.er1
62fa8b3a
MW
32842 ac_status=$?
32843 grep -v '^ *+' conftest.er1 >conftest.err
32844 rm -f conftest.er1
32845 cat conftest.err >&5
d589327a 32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
32847 (exit $ac_status); } && {
32848 test -z "$ac_c_werror_flag" ||
32849 test ! -s conftest.err
d589327a
VZ
32850 } && test -s conftest$ac_exeext &&
32851 $as_test_x conftest$ac_exeext; then
62fa8b3a
MW
32852 ac_cv_lib_Sgm_SgCreateList=yes
32853else
d589327a 32854 echo "$as_me: failed program was:" >&5
62fa8b3a
MW
32855sed 's/^/| /' conftest.$ac_ext >&5
32856
47964710 32857 ac_cv_lib_Sgm_SgCreateList=no
62fa8b3a 32858fi
47964710
VS
32859
32860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62fa8b3a
MW
32861 conftest$ac_exeext conftest.$ac_ext
32862LIBS=$ac_check_lib_save_LIBS
32863fi
d589327a
VZ
32864{ echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32865echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32866if test $ac_cv_lib_Sgm_SgCreateList = yes; then
62fa8b3a
MW
32867 libsgm_link=" -lSgm"
32868fi
32869
32870
9b8888f9
VZ
32871 save_CFLAGS=$CFLAGS
32872 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
0ad5d837 32873
d589327a
VZ
32874 { echo "$as_me:$LINENO: checking for Motif 2" >&5
32875echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
0ad5d837 32876if test "${wx_cv_lib_motif2+set}" = set; then
d589327a 32877 echo $ECHO_N "(cached) $ECHO_C" >&6
0ad5d837
VZ
32878else
32879 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32880/* confdefs.h. */
32881_ACEOF
32882cat confdefs.h >>conftest.$ac_ext
32883cat >>conftest.$ac_ext <<_ACEOF
32884/* end confdefs.h. */
32885
0ad5d837 32886 #include <Xm/Xm.h>
a848cd7e
SC
32887
32888int
32889main ()
32890{
32891
0ad5d837
VZ
32892 #if XmVersion < 2000
32893 Not Motif 2
32894 #endif
a848cd7e
SC
32895
32896 ;
32897 return 0;
32898}
32899_ACEOF
32900rm -f conftest.$ac_objext
47964710
VS
32901if { (ac_try="$ac_compile"
32902case "(($ac_try" in
32903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32904 *) ac_try_echo=$ac_try;;
32905esac
d589327a 32906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 32907 (eval "$ac_compile") 2>conftest.er1
a848cd7e 32908 ac_status=$?
ac1cb8d3
VS
32909 grep -v '^ *+' conftest.er1 >conftest.err
32910 rm -f conftest.er1
32911 cat conftest.err >&5
d589327a 32912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
32913 (exit $ac_status); } && {
32914 test -z "$ac_c_werror_flag" ||
32915 test ! -s conftest.err
32916 } && test -s conftest.$ac_objext; then
0ad5d837 32917 wx_cv_lib_motif2="yes"
a848cd7e 32918else
d589327a 32919 echo "$as_me: failed program was:" >&5
a848cd7e
SC
32920sed 's/^/| /' conftest.$ac_ext >&5
32921
47964710 32922 wx_cv_lib_motif2="no"
0ad5d837 32923fi
47964710
VS
32924
32925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0ad5d837 32926fi
d589327a
VZ
32927{ echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32928echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
0ad5d837
VZ
32929 if test "$wx_cv_lib_motif2" = "yes"; then
32930 cat >>confdefs.h <<\_ACEOF
32931#define __WXMOTIF20__ 1
32932_ACEOF
a848cd7e 32933
0ad5d837
VZ
32934 else
32935 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32936#define __WXMOTIF20__ 0
32937_ACEOF
32938
0ad5d837 32939 fi
2113bc77 32940
d589327a
VZ
32941 { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32942echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
0ad5d837 32943if test "${wx_cv_lib_lesstif+set}" = set; then
d589327a 32944 echo $ECHO_N "(cached) $ECHO_C" >&6
0ad5d837
VZ
32945else
32946 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
32947/* confdefs.h. */
32948_ACEOF
32949cat confdefs.h >>conftest.$ac_ext
32950cat >>conftest.$ac_ext <<_ACEOF
32951/* end confdefs.h. */
32952
0ad5d837 32953 #include <Xm/Xm.h>
2113bc77
MW
32954
32955int
32956main ()
32957{
32958
0ad5d837
VZ
32959 #if !defined(LesstifVersion) || LesstifVersion <= 0
32960 Not Lesstif
32961 #endif
2113bc77
MW
32962
32963 ;
32964 return 0;
32965}
32966_ACEOF
32967rm -f conftest.$ac_objext
47964710
VS
32968if { (ac_try="$ac_compile"
32969case "(($ac_try" in
32970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32971 *) ac_try_echo=$ac_try;;
32972esac
d589327a 32973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 32974 (eval "$ac_compile") 2>conftest.er1
2113bc77
MW
32975 ac_status=$?
32976 grep -v '^ *+' conftest.er1 >conftest.err
32977 rm -f conftest.er1
32978 cat conftest.err >&5
d589327a 32979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
32980 (exit $ac_status); } && {
32981 test -z "$ac_c_werror_flag" ||
32982 test ! -s conftest.err
32983 } && test -s conftest.$ac_objext; then
0ad5d837 32984 wx_cv_lib_lesstif="yes"
2113bc77 32985else
d589327a 32986 echo "$as_me: failed program was:" >&5
2113bc77
MW
32987sed 's/^/| /' conftest.$ac_ext >&5
32988
47964710 32989 wx_cv_lib_lesstif="no"
0ad5d837 32990fi
47964710
VS
32991
32992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 32993
0ad5d837 32994fi
d589327a
VZ
32995{ echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32996echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
0ad5d837
VZ
32997 if test "$wx_cv_lib_lesstif" = "yes"; then
32998 cat >>confdefs.h <<\_ACEOF
32999#define __WXLESSTIF__ 1
33000_ACEOF
33001
33002 else
33003 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
33004#define __WXLESSTIF__ 0
33005_ACEOF
33006
0ad5d837 33007 fi
2113bc77 33008
9b8888f9 33009 CFLAGS=$save_CFLAGS
a848cd7e 33010
62fa8b3a 33011 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
33012 TOOLKIT=MOTIF
33013 GUIDIST=MOTIF_DIST
33014 fi
33015
74b84332 33016 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e 33017 if test "$wxUSE_LIBXPM" = "sys"; then
d589327a
VZ
33018 { echo "$as_me:$LINENO: checking for Xpm library" >&5
33019echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
a848cd7e 33020
0ad5d837
VZ
33021 ac_find_libraries=
33022 for ac_dir in $SEARCH_LIB;
a848cd7e 33023 do
3eca31dc 33024 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33025 if test -f "$ac_dir/libXpm.$ac_extension"; then
33026 ac_find_libraries=$ac_dir
33027 break 2
33028 fi
33029 done
33030 done
33031
33032 if test "$ac_find_libraries" != "" ; then
33033
0ad5d837 33034 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33035 ac_path_to_link=""
33036 else
0ad5d837
VZ
33037 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33038 result=$?
33039 if test $result = 0; then
33040 ac_path_to_link=""
33041 else
33042 ac_path_to_link=" -L$ac_find_libraries"
33043 fi
a848cd7e
SC
33044 fi
33045
33046 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
d589327a
VZ
33047 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33048echo "${ECHO_T}found in $ac_find_libraries" >&6; }
a848cd7e 33049
d589327a
VZ
33050 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
33051echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
a848cd7e 33052if test "${wx_cv_x11_xpm_h+set}" = set; then
d589327a 33053 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
33054else
33055
9b8888f9
VZ
33056 save_CFLAGS=$CFLAGS
33057 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
33058
33059 cat >conftest.$ac_ext <<_ACEOF
33060/* confdefs.h. */
33061_ACEOF
33062cat confdefs.h >>conftest.$ac_ext
33063cat >>conftest.$ac_ext <<_ACEOF
33064/* end confdefs.h. */
33065
33066 #include <X11/xpm.h>
33067
33068int
33069main ()
33070{
33071
33072 int version;
33073 version = XpmLibraryVersion();
33074
33075 ;
33076 return 0;
33077}
33078_ACEOF
33079rm -f conftest.$ac_objext
47964710
VS
33080if { (ac_try="$ac_compile"
33081case "(($ac_try" in
33082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33083 *) ac_try_echo=$ac_try;;
33084esac
d589327a 33085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 33086 (eval "$ac_compile") 2>conftest.er1
a848cd7e 33087 ac_status=$?
ac1cb8d3
VS
33088 grep -v '^ *+' conftest.er1 >conftest.err
33089 rm -f conftest.er1
33090 cat conftest.err >&5
d589327a 33091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33092 (exit $ac_status); } && {
33093 test -z "$ac_c_werror_flag" ||
33094 test ! -s conftest.err
33095 } && test -s conftest.$ac_objext; then
a848cd7e
SC
33096 wx_cv_x11_xpm_h=yes
33097else
d589327a 33098 echo "$as_me: failed program was:" >&5
a848cd7e
SC
33099sed 's/^/| /' conftest.$ac_ext >&5
33100
47964710 33101 wx_cv_x11_xpm_h=no
a848cd7e
SC
33102
33103fi
47964710
VS
33104
33105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 33106
9b8888f9 33107 CFLAGS=$save_CFLAGS
a848cd7e
SC
33108
33109
33110fi
d589327a
VZ
33111{ echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
33112echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
a848cd7e
SC
33113
33114 if test $wx_cv_x11_xpm_h = "yes"; then
33115 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
33116 cat >>confdefs.h <<\_ACEOF
33117#define wxHAVE_LIB_XPM 1
33118_ACEOF
33119
33120 else
d589327a
VZ
33121 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
33122echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
a848cd7e
SC
33123 fi
33124 fi
33125
33126 fi
33127
d589327a
VZ
33128 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
33129echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
a848cd7e 33130if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
d589327a 33131 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
33132else
33133 ac_check_lib_save_LIBS=$LIBS
33134LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
33135cat >conftest.$ac_ext <<_ACEOF
33136/* confdefs.h. */
33137_ACEOF
33138cat confdefs.h >>conftest.$ac_ext
33139cat >>conftest.$ac_ext <<_ACEOF
33140/* end confdefs.h. */
33141
47964710
VS
33142/* Override any GCC internal prototype to avoid an error.
33143 Use char because int might match the return type of a GCC
33144 builtin and then its argument prototype would still apply. */
a848cd7e
SC
33145#ifdef __cplusplus
33146extern "C"
33147#endif
a848cd7e
SC
33148char XShapeQueryExtension ();
33149int
33150main ()
33151{
47964710 33152return XShapeQueryExtension ();
a848cd7e
SC
33153 ;
33154 return 0;
33155}
33156_ACEOF
33157rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
33158if { (ac_try="$ac_link"
33159case "(($ac_try" in
33160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33161 *) ac_try_echo=$ac_try;;
33162esac
d589327a 33163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 33164 (eval "$ac_link") 2>conftest.er1
a848cd7e 33165 ac_status=$?
ac1cb8d3
VS
33166 grep -v '^ *+' conftest.er1 >conftest.err
33167 rm -f conftest.er1
33168 cat conftest.err >&5
d589327a 33169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33170 (exit $ac_status); } && {
33171 test -z "$ac_c_werror_flag" ||
33172 test ! -s conftest.err
d589327a
VZ
33173 } && test -s conftest$ac_exeext &&
33174 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
33175 ac_cv_lib_Xext_XShapeQueryExtension=yes
33176else
d589327a 33177 echo "$as_me: failed program was:" >&5
a848cd7e
SC
33178sed 's/^/| /' conftest.$ac_ext >&5
33179
47964710 33180 ac_cv_lib_Xext_XShapeQueryExtension=no
a848cd7e 33181fi
47964710
VS
33182
33183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 33184 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33185LIBS=$ac_check_lib_save_LIBS
33186fi
d589327a
VZ
33187{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
33188echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
33189if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
a848cd7e
SC
33190
33191 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
33192 wxHAVE_XEXT_LIB=1
33193
33194fi
33195
33196
33197 if test "$wxHAVE_XEXT_LIB" = 1; then
9b8888f9
VZ
33198 save_CFLAGS="$CFLAGS"
33199 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e 33200
d589327a
VZ
33201 { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
33202echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
a848cd7e
SC
33203 cat >conftest.$ac_ext <<_ACEOF
33204/* confdefs.h. */
33205_ACEOF
33206cat confdefs.h >>conftest.$ac_ext
33207cat >>conftest.$ac_ext <<_ACEOF
33208/* end confdefs.h. */
33209
33210 #include <X11/Xlib.h>
33211 #include <X11/extensions/shape.h>
33212
33213int
33214main ()
33215{
33216
33217 int dummy1, dummy2;
33218 XShapeQueryExtension((Display*)NULL,
33219 (int*)NULL, (int*)NULL);
33220
33221 ;
33222 return 0;
33223}
33224_ACEOF
33225rm -f conftest.$ac_objext
47964710
VS
33226if { (ac_try="$ac_compile"
33227case "(($ac_try" in
33228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33229 *) ac_try_echo=$ac_try;;
33230esac
d589327a 33231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 33232 (eval "$ac_compile") 2>conftest.er1
a848cd7e 33233 ac_status=$?
ac1cb8d3
VS
33234 grep -v '^ *+' conftest.er1 >conftest.err
33235 rm -f conftest.er1
33236 cat conftest.err >&5
d589327a 33237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33238 (exit $ac_status); } && {
33239 test -z "$ac_c_werror_flag" ||
33240 test ! -s conftest.err
33241 } && test -s conftest.$ac_objext; then
a848cd7e
SC
33242
33243 cat >>confdefs.h <<\_ACEOF
33244#define HAVE_XSHAPE 1
33245_ACEOF
33246
d589327a
VZ
33247 { echo "$as_me:$LINENO: result: found" >&5
33248echo "${ECHO_T}found" >&6; }
a848cd7e
SC
33249
33250else
d589327a 33251 echo "$as_me: failed program was:" >&5
a848cd7e
SC
33252sed 's/^/| /' conftest.$ac_ext >&5
33253
33254
d589327a
VZ
33255 { echo "$as_me:$LINENO: result: not found" >&5
33256echo "${ECHO_T}not found" >&6; }
a848cd7e
SC
33257
33258fi
47964710
VS
33259
33260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9 33261 CFLAGS="$save_CFLAGS"
a848cd7e
SC
33262
33263 fi
33264 fi
33265
2ea057f9 33266 if test "$wxUSE_OSX_CARBON" = 1; then
d589327a
VZ
33267 { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
33268echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
a848cd7e 33269 if test "$GCC" = yes; then
d589327a
VZ
33270 { echo "$as_me:$LINENO: result: gcc" >&5
33271echo "${ECHO_T}gcc" >&6; }
a848cd7e
SC
33272 CPPFLAGS_PASCAL="-fpascal-strings"
33273 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
d589327a
VZ
33274 { echo "$as_me:$LINENO: result: xlc" >&5
33275echo "${ECHO_T}xlc" >&6; }
a848cd7e
SC
33276 CPPFLAGS_PASCAL="-qmacpstr"
33277 else
d589327a
VZ
33278 { echo "$as_me:$LINENO: result: none" >&5
33279echo "${ECHO_T}none" >&6; }
a848cd7e
SC
33280 fi
33281
1e9e8aba 33282 if test "x$wxUSE_UNIX" = "xyes"; then
9ed154da 33283 CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 33284 else
9ed154da 33285 CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 33286 fi
a848cd7e 33287
2ea057f9
SC
33288 TOOLKIT=OSX_CARBON
33289 GUIDIST=OSX_CARBON_DIST
dd21ced8 33290 WXBASEPORT="_carbon"
17005cd7
VZ
33291
33292 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
a848cd7e
SC
33293 fi
33294
2ea057f9
SC
33295 if test "$wxUSE_OSX_COCOA" = 1; then
33296 TOOLKIT=OSX_COCOA
33297 GUIDIST=OSX_COCOA_DIST
17005cd7
VZ
33298
33299 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
2ea057f9
SC
33300 fi
33301
80aa2a2f
VZ
33302 if test "$wxUSE_OSX_IPHONE" = 1; then
33303 TOOLKIT=OSX_IPHONE
33304 fi
33305
f10f4c87 33306 if test "$wxUSE_OLD_COCOA" = 1; then
a848cd7e
SC
33307 TOOLKIT=COCOA
33308 GUIDIST=COCOA_DIST
33309 fi
33310
33311 if test "$wxUSE_PM" = 1; then
33312 TOOLKIT=PM
de59c161 33313 GUIDIST=PM_DIST
d589327a
VZ
33314 { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
33315echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
de59c161 33316if test "${wx_cv_spbcdata+set}" = set; then
d589327a 33317 echo $ECHO_N "(cached) $ECHO_C" >&6
de59c161
RD
33318else
33319
33320 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
33321/* confdefs.h. */
33322_ACEOF
33323cat confdefs.h >>conftest.$ac_ext
33324cat >>conftest.$ac_ext <<_ACEOF
33325/* end confdefs.h. */
33326
33327 #define INCL_PM
33328 #include <os2.h>
33329
33330int
33331main ()
33332{
33333
33334 SPBCDATA test;
33335
33336 ;
33337 return 0;
33338}
33339_ACEOF
33340rm -f conftest.$ac_objext
47964710
VS
33341if { (ac_try="$ac_compile"
33342case "(($ac_try" in
33343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33344 *) ac_try_echo=$ac_try;;
33345esac
d589327a 33346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 33347 (eval "$ac_compile") 2>conftest.er1
de59c161 33348 ac_status=$?
ac1cb8d3
VS
33349 grep -v '^ *+' conftest.er1 >conftest.err
33350 rm -f conftest.er1
33351 cat conftest.err >&5
d589327a 33352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33353 (exit $ac_status); } && {
33354 test -z "$ac_c_werror_flag" ||
33355 test ! -s conftest.err
33356 } && test -s conftest.$ac_objext; then
de59c161
RD
33357 wx_cv_spbcdata=yes
33358else
d589327a 33359 echo "$as_me: failed program was:" >&5
de59c161
RD
33360sed 's/^/| /' conftest.$ac_ext >&5
33361
47964710 33362 wx_cv_spbcdata=no
de59c161
RD
33363
33364fi
47964710
VS
33365
33366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
33367
33368
33369fi
d589327a
VZ
33370{ echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
33371echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
de59c161
RD
33372
33373 if test $wx_cv_spbcdata = "yes"; then
33374 cat >>confdefs.h <<\_ACEOF
33375#define HAVE_SPBCDATA 1
33376_ACEOF
33377
33378 fi
a848cd7e
SC
33379 fi
33380
33381 if test "$TOOLKIT" = "PM" ; then
33382 TOOLKIT_DIR="os2"
33383 else
435a5ad0 33384 TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
a848cd7e
SC
33385 fi
33386
a848cd7e 33387 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
33388 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
33389 WIDGET_SET=univ
a848cd7e
SC
33390 fi
33391
33392 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
33393 DISTDIR="wx\$(TOOLKIT)"
33394else
33395 USE_GUI=0
33396
33397 TOOLKIT_DIR="base"
33398
33399 if test "$USE_WIN32" = 1 ; then
a848cd7e 33400 TOOLKIT="MSW"
a848cd7e
SC
33401 fi
33402
a848cd7e
SC
33403 GUIDIST="BASE_DIST"
33404 DISTDIR="wxBase"
33405fi
33406
33407
ca4c9b7e
VS
33408
33409if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
6517fa86 33410 if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
ca4c9b7e 33411 wxUSE_UNICODE_UTF8=yes
6517fa86 33412 elif test "$USE_OS2" = 1 ; then
63a09523 33413 wxUSE_UNICODE_UTF8=yes
ca4c9b7e
VS
33414 else
33415 wxUSE_UNICODE_UTF8=no
33416 fi
33417fi
33418
33419
d12aef51
VZ
33420if test "$wxUSE_GUI" = "yes"; then
33421 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
1f7e12cc
DE
33422
33423for ac_header in X11/Xlib.h
33424do
d589327a
VZ
33425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33426{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47964710 33428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 33429 echo $ECHO_N "(cached) $ECHO_C" >&6
d12aef51 33430else
6e7b8bcb 33431 cat >conftest.$ac_ext <<_ACEOF
d12aef51
VZ
33432/* confdefs.h. */
33433_ACEOF
33434cat confdefs.h >>conftest.$ac_ext
33435cat >>conftest.$ac_ext <<_ACEOF
33436/* end confdefs.h. */
6e7b8bcb
PC
33437
33438
1f7e12cc 33439#include <$ac_header>
d12aef51
VZ
33440_ACEOF
33441rm -f conftest.$ac_objext
47964710
VS
33442if { (ac_try="$ac_compile"
33443case "(($ac_try" in
33444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33445 *) ac_try_echo=$ac_try;;
33446esac
d589327a 33447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 33448 (eval "$ac_compile") 2>conftest.er1
d12aef51
VZ
33449 ac_status=$?
33450 grep -v '^ *+' conftest.er1 >conftest.err
33451 rm -f conftest.er1
33452 cat conftest.err >&5
d589327a 33453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33454 (exit $ac_status); } && {
33455 test -z "$ac_c_werror_flag" ||
33456 test ! -s conftest.err
33457 } && test -s conftest.$ac_objext; then
1f7e12cc 33458 eval "$as_ac_Header=yes"
d12aef51 33459else
d589327a 33460 echo "$as_me: failed program was:" >&5
d12aef51
VZ
33461sed 's/^/| /' conftest.$ac_ext >&5
33462
47964710 33463 eval "$as_ac_Header=no"
d12aef51 33464fi
47964710
VS
33465
33466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d12aef51 33467fi
d589327a
VZ
33468ac_res=`eval echo '${'$as_ac_Header'}'`
33469 { echo "$as_me:$LINENO: result: $ac_res" >&5
33470echo "${ECHO_T}$ac_res" >&6; }
33471if test `eval echo '${'$as_ac_Header'}'` = yes; then
1f7e12cc 33472 cat >>confdefs.h <<_ACEOF
d589327a 33473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1f7e12cc
DE
33474_ACEOF
33475
33476fi
7fd3acaf 33477
1f7e12cc 33478done
d12aef51 33479
1f7e12cc
DE
33480
33481for ac_header in X11/XKBlib.h
33482do
d589327a
VZ
33483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33484{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47964710 33486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 33487 echo $ECHO_N "(cached) $ECHO_C" >&6
d12aef51
VZ
33488else
33489 cat >conftest.$ac_ext <<_ACEOF
33490/* confdefs.h. */
33491_ACEOF
33492cat confdefs.h >>conftest.$ac_ext
33493cat >>conftest.$ac_ext <<_ACEOF
33494/* end confdefs.h. */
33495
33496 #if HAVE_X11_XLIB_H
33497 #include <X11/Xlib.h>
33498 #endif
33499
33500
1f7e12cc 33501#include <$ac_header>
d12aef51
VZ
33502_ACEOF
33503rm -f conftest.$ac_objext
47964710
VS
33504if { (ac_try="$ac_compile"
33505case "(($ac_try" in
33506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33507 *) ac_try_echo=$ac_try;;
33508esac
d589327a 33509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 33510 (eval "$ac_compile") 2>conftest.er1
d12aef51
VZ
33511 ac_status=$?
33512 grep -v '^ *+' conftest.er1 >conftest.err
33513 rm -f conftest.er1
33514 cat conftest.err >&5
d589327a 33515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33516 (exit $ac_status); } && {
33517 test -z "$ac_c_werror_flag" ||
33518 test ! -s conftest.err
33519 } && test -s conftest.$ac_objext; then
1f7e12cc 33520 eval "$as_ac_Header=yes"
d12aef51 33521else
d589327a 33522 echo "$as_me: failed program was:" >&5
d12aef51
VZ
33523sed 's/^/| /' conftest.$ac_ext >&5
33524
47964710 33525 eval "$as_ac_Header=no"
d12aef51 33526fi
47964710
VS
33527
33528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d12aef51 33529fi
d589327a
VZ
33530ac_res=`eval echo '${'$as_ac_Header'}'`
33531 { echo "$as_me:$LINENO: result: $ac_res" >&5
33532echo "${ECHO_T}$ac_res" >&6; }
33533if test `eval echo '${'$as_ac_Header'}'` = yes; then
1f7e12cc 33534 cat >>confdefs.h <<_ACEOF
d589327a 33535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1f7e12cc
DE
33536_ACEOF
33537
33538fi
d12aef51 33539
1f7e12cc 33540done
d12aef51
VZ
33541
33542 fi
33543fi
33544
a848cd7e
SC
33545
33546
bfd62c8c 33547USE_XINERAMA=0
a848cd7e 33548if test "$wxUSE_DISPLAY" = "yes"; then
bfd62c8c 33549 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
d589327a
VZ
33550 { echo "$as_me:$LINENO: checking for Xinerama" >&5
33551echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
a848cd7e 33552
0ad5d837
VZ
33553 ac_find_libraries=
33554 for ac_dir in $SEARCH_LIB;
33555 do
33556 for ac_extension in a so sl dylib dll.a; do
33557 if test -f "$ac_dir/libXinerama.$ac_extension"; then
33558 ac_find_libraries=$ac_dir
33559 break 2
33560 fi
33561 done
33562 done
33563
a848cd7e
SC
33564 if test "$ac_find_libraries" != "" ; then
33565
0ad5d837 33566 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33567 ac_path_to_link=""
33568 else
0ad5d837
VZ
33569 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33570 result=$?
33571 if test $result = 0; then
33572 ac_path_to_link=""
33573 else
33574 ac_path_to_link=" -L$ac_find_libraries"
33575 fi
a848cd7e
SC
33576 fi
33577
33578 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33579 LDFLAGS="$LDFLAGS $ac_path_to_link"
33580 fi
bfd62c8c 33581 USE_XINERAMA=1
a848cd7e 33582 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
d589327a
VZ
33583 { echo "$as_me:$LINENO: result: yes" >&5
33584echo "${ECHO_T}yes" >&6; }
bfd62c8c
VZ
33585 else
33586 { echo "$as_me:$LINENO: result: no" >&5
33587echo "${ECHO_T}no" >&6; }
33588 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33589echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
33590 wxUSE_DISPLAY="no"
33591 fi
33592 elif test "$wxUSE_MSW" = 1; then
33593 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
33594echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
33595if test "${ac_cv_header_ddraw_h+set}" = set; then
33596 echo $ECHO_N "(cached) $ECHO_C" >&6
33597else
33598 cat >conftest.$ac_ext <<_ACEOF
33599/* confdefs.h. */
33600_ACEOF
33601cat confdefs.h >>conftest.$ac_ext
33602cat >>conftest.$ac_ext <<_ACEOF
33603/* end confdefs.h. */
33604#include <windows.h>
a848cd7e 33605
bfd62c8c
VZ
33606#include <ddraw.h>
33607_ACEOF
33608rm -f conftest.$ac_objext
33609if { (ac_try="$ac_compile"
33610case "(($ac_try" in
33611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33612 *) ac_try_echo=$ac_try;;
33613esac
33614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33615 (eval "$ac_compile") 2>conftest.er1
33616 ac_status=$?
33617 grep -v '^ *+' conftest.er1 >conftest.err
33618 rm -f conftest.er1
33619 cat conftest.err >&5
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); } && {
33622 test -z "$ac_c_werror_flag" ||
33623 test ! -s conftest.err
33624 } && test -s conftest.$ac_objext; then
33625 ac_cv_header_ddraw_h=yes
33626else
33627 echo "$as_me: failed program was:" >&5
33628sed 's/^/| /' conftest.$ac_ext >&5
33629
33630 ac_cv_header_ddraw_h=no
33631fi
33632
33633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33634fi
33635{ echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33636echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
33637
33638
33639 fi
33640fi
33641
33642if test "$wxUSE_DISPLAY" = "yes"; then
33643 if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
33644 { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
d589327a 33645echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
a848cd7e 33646
0ad5d837
VZ
33647 ac_find_libraries=
33648 for ac_dir in $SEARCH_LIB;
a848cd7e 33649 do
3eca31dc 33650 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33651 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
33652 ac_find_libraries=$ac_dir
33653 break 2
33654 fi
33655 done
33656 done
33657
bfd62c8c
VZ
33658 if test "$ac_find_libraries" != "" ; then
33659 { echo "$as_me:$LINENO: result: yes" >&5
d589327a 33660echo "${ECHO_T}yes" >&6; }
1f7e12cc
DE
33661
33662for ac_header in X11/extensions/xf86vmode.h
33663do
d589327a
VZ
33664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33665{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47964710 33667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 33668 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
33669else
33670 cat >conftest.$ac_ext <<_ACEOF
33671/* confdefs.h. */
33672_ACEOF
33673cat confdefs.h >>conftest.$ac_ext
33674cat >>conftest.$ac_ext <<_ACEOF
33675/* end confdefs.h. */
33676
bfd62c8c
VZ
33677 #if HAVE_X11_XLIB_H
33678 #include <X11/Xlib.h>
33679 #endif
a848cd7e
SC
33680
33681
1f7e12cc 33682#include <$ac_header>
a848cd7e
SC
33683_ACEOF
33684rm -f conftest.$ac_objext
47964710
VS
33685if { (ac_try="$ac_compile"
33686case "(($ac_try" in
33687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33688 *) ac_try_echo=$ac_try;;
33689esac
d589327a 33690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 33691 (eval "$ac_compile") 2>conftest.er1
a848cd7e 33692 ac_status=$?
ac1cb8d3
VS
33693 grep -v '^ *+' conftest.er1 >conftest.err
33694 rm -f conftest.er1
33695 cat conftest.err >&5
d589327a 33696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33697 (exit $ac_status); } && {
33698 test -z "$ac_c_werror_flag" ||
33699 test ! -s conftest.err
33700 } && test -s conftest.$ac_objext; then
1f7e12cc 33701 eval "$as_ac_Header=yes"
a848cd7e 33702else
d589327a 33703 echo "$as_me: failed program was:" >&5
a848cd7e
SC
33704sed 's/^/| /' conftest.$ac_ext >&5
33705
47964710 33706 eval "$as_ac_Header=no"
a848cd7e 33707fi
47964710
VS
33708
33709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 33710fi
d589327a
VZ
33711ac_res=`eval echo '${'$as_ac_Header'}'`
33712 { echo "$as_me:$LINENO: result: $ac_res" >&5
33713echo "${ECHO_T}$ac_res" >&6; }
33714if test `eval echo '${'$as_ac_Header'}'` = yes; then
1f7e12cc 33715 cat >>confdefs.h <<_ACEOF
d589327a 33716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1f7e12cc 33717_ACEOF
a848cd7e 33718
bfd62c8c 33719 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
a848cd7e
SC
33720
33721fi
33722
1f7e12cc 33723done
a848cd7e 33724
a848cd7e 33725 else
d589327a
VZ
33726 { echo "$as_me:$LINENO: result: no" >&5
33727echo "${ECHO_T}no" >&6; }
a848cd7e
SC
33728 fi
33729 fi
33730fi
33731
88bbc332 33732if test "$wxUSE_DETECT_SM" = "yes"; then
f10f4c87 33733 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
d589327a
VZ
33734 { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33735echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
88bbc332
RR
33736
33737 ac_find_libraries=
33738 for ac_dir in $SEARCH_LIB;
33739 do
33740 for ac_extension in a so sl dylib dll.a; do
33741 if test -f "$ac_dir/libSM.$ac_extension"; then
33742 ac_find_libraries=$ac_dir
33743 break 2
33744 fi
33745 done
33746 done
33747
33748 if test "$ac_find_libraries" != "" ; then
33749
33750 if test "$ac_find_libraries" = "default location"; then
33751 ac_path_to_link=""
33752 else
33753 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33754 result=$?
33755 if test $result = 0; then
33756 ac_path_to_link=""
33757 else
33758 ac_path_to_link=" -L$ac_find_libraries"
33759 fi
33760 fi
33761
33762 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33763 LDFLAGS="$LDFLAGS $ac_path_to_link"
33764 fi
33765 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
d589327a
VZ
33766 { echo "$as_me:$LINENO: result: yes" >&5
33767echo "${ECHO_T}yes" >&6; }
88bbc332 33768 else
d589327a
VZ
33769 { echo "$as_me:$LINENO: result: no" >&5
33770echo "${ECHO_T}no" >&6; }
33771 { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33772echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
88bbc332
RR
33773 wxUSE_DETECT_SM="no"
33774 fi
33775 else
33776 wxUSE_DETECT_SM="no"
33777 fi
33778fi
33779
33780
a848cd7e
SC
33781
33782USE_OPENGL=0
f03637a2 33783if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
0dd9646e
FM
33784
33785
f10f4c87 33786 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
a848cd7e
SC
33787 OPENGL_LIBS="-framework OpenGL -framework AGL"
33788 elif test "$wxUSE_MSW" = 1; then
33789 OPENGL_LIBS="-lopengl32 -lglu32"
0dd9646e
FM
33790 elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
33791
d589327a
VZ
33792 { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33793echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
a848cd7e 33794
a848cd7e 33795ac_find_includes=
02b05020 33796for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
a848cd7e
SC
33797 do
33798 if test -f "$ac_dir/GL/gl.h"; then
33799 ac_find_includes=$ac_dir
33800 break
33801 fi
33802 done
33803
33804 if test "$ac_find_includes" != "" ; then
d589327a
VZ
33805 { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33806echo "${ECHO_T}found in $ac_find_includes" >&6; }
a848cd7e
SC
33807
33808 if test "x$ac_find_includes" = "x/usr/include"; then
33809 ac_path_to_include=""
33810 else
33811 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33812 result=$?
33813 if test $result = 0; then
33814 ac_path_to_include=""
33815 else
33816 ac_path_to_include=" -I$ac_find_includes"
33817 fi
33818 fi
33819
c92ad099 33820 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
e541dae0 33821 else
d589327a
VZ
33822 { echo "$as_me:$LINENO: result: not found" >&5
33823echo "${ECHO_T}not found" >&6; }
a848cd7e
SC
33824 fi
33825
d589327a
VZ
33826 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33827echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
a848cd7e 33828if test "${ac_cv_header_GL_gl_h+set}" = set; then
d589327a 33829 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 33830else
6e7b8bcb 33831 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33832/* confdefs.h. */
33833_ACEOF
33834cat confdefs.h >>conftest.$ac_ext
33835cat >>conftest.$ac_ext <<_ACEOF
33836/* end confdefs.h. */
6e7b8bcb
PC
33837
33838
a848cd7e
SC
33839#include <GL/gl.h>
33840_ACEOF
33841rm -f conftest.$ac_objext
47964710
VS
33842if { (ac_try="$ac_compile"
33843case "(($ac_try" in
33844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33845 *) ac_try_echo=$ac_try;;
33846esac
d589327a 33847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 33848 (eval "$ac_compile") 2>conftest.er1
a848cd7e 33849 ac_status=$?
ac1cb8d3
VS
33850 grep -v '^ *+' conftest.er1 >conftest.err
33851 rm -f conftest.er1
33852 cat conftest.err >&5
d589327a 33853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33854 (exit $ac_status); } && {
33855 test -z "$ac_c_werror_flag" ||
33856 test ! -s conftest.err
33857 } && test -s conftest.$ac_objext; then
6e7b8bcb 33858 ac_cv_header_GL_gl_h=yes
a848cd7e 33859else
d589327a 33860 echo "$as_me: failed program was:" >&5
a848cd7e
SC
33861sed 's/^/| /' conftest.$ac_ext >&5
33862
47964710 33863 ac_cv_header_GL_gl_h=no
a848cd7e 33864fi
47964710
VS
33865
33866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 33867fi
d589327a
VZ
33868{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33869echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33870if test $ac_cv_header_GL_gl_h = yes; then
a848cd7e 33871
d589327a
VZ
33872 { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33873echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
5dfc7e56 33874if test "${ac_cv_header_GL_glu_h+set}" = set; then
d589327a 33875 echo $ECHO_N "(cached) $ECHO_C" >&6
5dfc7e56 33876else
b55e1842 33877 cat >conftest.$ac_ext <<_ACEOF
5dfc7e56
VZ
33878/* confdefs.h. */
33879_ACEOF
33880cat confdefs.h >>conftest.$ac_ext
33881cat >>conftest.$ac_ext <<_ACEOF
33882/* end confdefs.h. */
b55e1842
VZ
33883
33884
5dfc7e56
VZ
33885#include <GL/glu.h>
33886_ACEOF
33887rm -f conftest.$ac_objext
47964710
VS
33888if { (ac_try="$ac_compile"
33889case "(($ac_try" in
33890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33891 *) ac_try_echo=$ac_try;;
33892esac
d589327a 33893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 33894 (eval "$ac_compile") 2>conftest.er1
5dfc7e56
VZ
33895 ac_status=$?
33896 grep -v '^ *+' conftest.er1 >conftest.err
33897 rm -f conftest.er1
33898 cat conftest.err >&5
d589327a 33899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
33900 (exit $ac_status); } && {
33901 test -z "$ac_c_werror_flag" ||
33902 test ! -s conftest.err
33903 } && test -s conftest.$ac_objext; then
b55e1842 33904 ac_cv_header_GL_glu_h=yes
5dfc7e56 33905else
d589327a 33906 echo "$as_me: failed program was:" >&5
5dfc7e56
VZ
33907sed 's/^/| /' conftest.$ac_ext >&5
33908
47964710 33909 ac_cv_header_GL_glu_h=no
5dfc7e56 33910fi
47964710
VS
33911
33912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5dfc7e56 33913fi
d589327a
VZ
33914{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33915echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33916if test $ac_cv_header_GL_glu_h = yes; then
5dfc7e56 33917
a848cd7e
SC
33918 found_gl=0
33919
d589327a
VZ
33920 { echo "$as_me:$LINENO: checking for -lGL" >&5
33921echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
a848cd7e 33922
0ad5d837 33923 ac_find_libraries=
02b05020 33924 for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
a848cd7e 33925 do
3eca31dc 33926 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33927 if test -f "$ac_dir/libGL.$ac_extension"; then
33928 ac_find_libraries=$ac_dir
33929 break 2
33930 fi
33931 done
33932 done
33933
33934 if test "$ac_find_libraries" != "" ; then
d589327a
VZ
33935 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33936echo "${ECHO_T}found in $ac_find_libraries" >&6; }
69120ee4 33937
a848cd7e 33938
0ad5d837 33939 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33940 ac_path_to_link=""
33941 else
0ad5d837
VZ
33942 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33943 result=$?
33944 if test $result = 0; then
33945 ac_path_to_link=""
33946 else
33947 ac_path_to_link=" -L$ac_find_libraries"
33948 fi
a848cd7e
SC
33949 fi
33950
33951 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33952 LDFLAGS_GL="$ac_path_to_link"
33953 fi
33954
d589327a
VZ
33955 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33956echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
a848cd7e 33957
0ad5d837
VZ
33958 ac_find_libraries=
33959 for ac_dir in $SEARCH_LIB;
33960 do
33961 for ac_extension in a so sl dylib dll.a; do
33962 if test -f "$ac_dir/libGLU.$ac_extension"; then
33963 ac_find_libraries=$ac_dir
33964 break 2
33965 fi
33966 done
33967 done
33968
a848cd7e
SC
33969 if test "$ac_find_libraries" != "" ; then
33970
0ad5d837 33971 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33972 ac_path_to_link=""
33973 else
0ad5d837
VZ
33974 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33975 result=$?
33976 if test $result = 0; then
33977 ac_path_to_link=""
33978 else
33979 ac_path_to_link=" -L$ac_find_libraries"
33980 fi
a848cd7e
SC
33981 fi
33982
33983 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33984 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33985 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33986 fi
33987
33988 found_gl=1
33989 OPENGL_LIBS="-lGL -lGLU"
d589327a
VZ
33990 { echo "$as_me:$LINENO: result: yes" >&5
33991echo "${ECHO_T}yes" >&6; }
69120ee4 33992 else
d589327a
VZ
33993 { echo "$as_me:$LINENO: result: no" >&5
33994echo "${ECHO_T}no" >&6; }
a848cd7e 33995 fi
69120ee4 33996 else
d589327a
VZ
33997 { echo "$as_me:$LINENO: result: no" >&5
33998echo "${ECHO_T}no" >&6; }
a848cd7e
SC
33999 fi
34000
34001 if test "$found_gl" != 1; then
d589327a
VZ
34002 { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
34003echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
a848cd7e 34004
0ad5d837
VZ
34005 ac_find_libraries=
34006 for ac_dir in $SEARCH_LIB;
a848cd7e 34007 do
3eca31dc 34008 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
34009 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
34010 ac_find_libraries=$ac_dir
34011 break 2
34012 fi
34013 done
34014 done
34015
34016 if test "$ac_find_libraries" != "" ; then
34017
0ad5d837 34018 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
34019 ac_path_to_link=""
34020 else
0ad5d837
VZ
34021 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34022 result=$?
34023 if test $result = 0; then
34024 ac_path_to_link=""
34025 else
34026 ac_path_to_link=" -L$ac_find_libraries"
34027 fi
a848cd7e
SC
34028 fi
34029
34030 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
34031 OPENGL_LIBS="-lMesaGL -lMesaGLU"
d589327a
VZ
34032 { echo "$as_me:$LINENO: result: yes" >&5
34033echo "${ECHO_T}yes" >&6; }
a848cd7e 34034 else
d589327a
VZ
34035 { echo "$as_me:$LINENO: result: no" >&5
34036echo "${ECHO_T}no" >&6; }
a848cd7e
SC
34037 fi
34038 fi
34039
34040fi
34041
34042
34043
5dfc7e56
VZ
34044fi
34045
34046
34047
a848cd7e 34048 if test "x$OPENGL_LIBS" = "x"; then
f03637a2 34049 if test "$wxUSE_OPENGL" = "yes"; then
d589327a
VZ
34050 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
34051echo "$as_me: error: OpenGL libraries not available" >&2;}
f03637a2
FM
34052 { (exit 1); exit 1; }; }
34053 else
d589327a
VZ
34054 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
34055echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
f03637a2
FM
34056 wxUSE_OPENGL=no
34057 USE_OPENGL=0
34058 fi
a848cd7e 34059 fi
0dd9646e 34060 else
d589327a
VZ
34061 { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
34062echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
0dd9646e 34063 wxUSE_OPENGL="no"
a848cd7e
SC
34064 fi
34065
3dd63e02
VZ
34066 if test "$wxUSE_OPENGL" = "auto"; then
34067 wxUSE_OPENGL=yes
34068 fi
34069
a848cd7e
SC
34070 if test "$wxUSE_OPENGL" = "yes"; then
34071 USE_OPENGL=1
34072 cat >>confdefs.h <<\_ACEOF
34073#define wxUSE_OPENGL 1
34074_ACEOF
34075
34076 cat >>confdefs.h <<\_ACEOF
34077#define wxUSE_GLCANVAS 1
34078_ACEOF
34079
34080 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
34081 fi
34082fi
34083
a848cd7e
SC
34084
34085if test -n "$TOOLKIT" ; then
34086 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
34087fi
34088
a848cd7e
SC
34089
34090
34091if test "$wxUSE_SHARED" = "yes"; then
34092 case "${host}" in
34093 *-pc-msdosdjgpp )
34094 wxUSE_SHARED=no
d589327a
VZ
34095 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
34096echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
a848cd7e
SC
34097 ;;
34098 esac
34099fi
34100
a848cd7e 34101if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
34102
34103
077c7880
VZ
34104 case "${host}" in
34105 *-*-cygwin* | *-*-mingw* )
2dbd07cb 34106 wx_cv_version_script=no
077c7880 34107 ;;
a848cd7e 34108
077c7880 34109 *)
d589327a
VZ
34110 { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
34111echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
a848cd7e 34112if test "${wx_cv_version_script+set}" = set; then
d589327a 34113 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
34114else
34115
077c7880
VZ
34116 echo "VER_1 { *; };" >conftest.sym
34117 echo "int main() { return 0; }" >conftest.cpp
a848cd7e 34118
077c7880
VZ
34119 if { ac_try='
34120 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34121 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
a848cd7e
SC
34122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34123 (eval $ac_try) 2>&5
34124 ac_status=$?
d589327a 34125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 34126 (exit $ac_status); }; } ; then
077c7880
VZ
34127 if test -s conftest.stderr ; then
34128 wx_cv_version_script=no
34129 else
34130 wx_cv_version_script=yes
34131 fi
34132 else
34133 wx_cv_version_script=no
34134 fi
e5d4b470 34135
077c7880
VZ
34136 if test $wx_cv_version_script = yes
34137 then
34138 echo "struct B { virtual ~B() { } }; \
34139 struct D : public B { }; \
34140 void F() { D d; }" > conftest.cpp
e5d4b470 34141
077c7880
VZ
34142 if { ac_try='
34143 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34144 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
e5d4b470
MW
34145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34146 (eval $ac_try) 2>&5
34147 ac_status=$?
d589327a 34148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
e5d4b470 34149 (exit $ac_status); }; } &&
077c7880
VZ
34150 { ac_try='
34151 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34152 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
e5d4b470
MW
34153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34154 (eval $ac_try) 2>&5
34155 ac_status=$?
d589327a 34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
e5d4b470 34157 (exit $ac_status); }; }
077c7880
VZ
34158 then
34159 if { ac_try='
34160 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34161 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
e5d4b470
MW
34162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34163 (eval $ac_try) 2>&5
34164 ac_status=$?
d589327a 34165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
e5d4b470 34166 (exit $ac_status); }; }
077c7880
VZ
34167 then
34168 wx_cv_version_script=yes
34169 else
34170 wx_cv_version_script=no
34171 fi
34172 fi
34173 fi
e5d4b470 34174
077c7880
VZ
34175 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
34176 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
34177
34178fi
d589327a
VZ
34179{ echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
34180echo "${ECHO_T}$wx_cv_version_script" >&6; }
077c7880
VZ
34181
34182 if test $wx_cv_version_script = yes ; then
34183 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
34184 fi
34185 ;;
34186 esac
a848cd7e
SC
34187
34188
a2bd84a5 34189 if test "$wxUSE_VISIBILITY" != "no"; then
0ff20b9f
VS
34190
34191
34192 if test -n "$GCC"; then
34193 CFLAGS_VISIBILITY="-fvisibility=hidden"
34194 CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
d589327a
VZ
34195 { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
34196echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
0ff20b9f 34197 if test "${wx_cv_cc_visibility+set}" = set; then
d589327a 34198 echo $ECHO_N "(cached) $ECHO_C" >&6
0ff20b9f
VS
34199else
34200
34201 wx_save_CXXFLAGS="$CXXFLAGS"
34202 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
47964710 34203 ac_ext=cpp
0ff20b9f
VS
34204ac_cpp='$CXXCPP $CPPFLAGS'
34205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34208
34209 cat >conftest.$ac_ext <<_ACEOF
34210/* confdefs.h. */
34211_ACEOF
34212cat confdefs.h >>conftest.$ac_ext
34213cat >>conftest.$ac_ext <<_ACEOF
34214/* end confdefs.h. */
34215
34216 /* we need gcc >= 4.0, older versions with visibility support
34217 didn't have class visibility: */
34218 #if defined(__GNUC__) && __GNUC__ < 4
34219 error this gcc is too old;
34220 #endif
34221
b9d4eff6
VS
34222 /* visibility only makes sense for ELF shared libs: */
34223 #if !defined(__ELF__) && !defined(__APPLE__)
34224 error this platform has no visibility;
34225 #endif
34226
0ff20b9f
VS
34227 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
34228 extern __attribute__((__visibility__("default"))) int exportedvar;
34229 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
34230 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
34231 class __attribute__((__visibility__("default"))) Foo {
34232 Foo() {}
34233 };
34234
34235int
34236main ()
34237{
34238
34239 ;
34240 return 0;
34241}
34242_ACEOF
34243rm -f conftest.$ac_objext
47964710
VS
34244if { (ac_try="$ac_compile"
34245case "(($ac_try" in
34246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34247 *) ac_try_echo=$ac_try;;
34248esac
d589327a 34249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 34250 (eval "$ac_compile") 2>conftest.er1
0ff20b9f
VS
34251 ac_status=$?
34252 grep -v '^ *+' conftest.er1 >conftest.err
34253 rm -f conftest.er1
34254 cat conftest.err >&5
d589327a 34255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34256 (exit $ac_status); } && {
34257 test -z "$ac_cxx_werror_flag" ||
34258 test ! -s conftest.err
34259 } && test -s conftest.$ac_objext; then
0ff20b9f
VS
34260 wx_cv_cc_visibility=yes
34261else
d589327a 34262 echo "$as_me: failed program was:" >&5
0ff20b9f
VS
34263sed 's/^/| /' conftest.$ac_ext >&5
34264
47964710 34265 wx_cv_cc_visibility=no
0ff20b9f 34266fi
47964710
VS
34267
34268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0ff20b9f
VS
34269 ac_ext=c
34270ac_cpp='$CPP $CPPFLAGS'
34271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34273ac_compiler_gnu=$ac_cv_c_compiler_gnu
34274
34275 CXXFLAGS="$wx_save_CXXFLAGS"
34276fi
34277
d589327a
VZ
34278 { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
34279echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
0ff20b9f 34280 if test $wx_cv_cc_visibility = yes; then
d589327a
VZ
34281 { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
34282echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
d6f513f8 34283 if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
d589327a 34284 echo $ECHO_N "(cached) $ECHO_C" >&6
d6f513f8
VS
34285else
34286
34287 wx_save_CXXFLAGS="$CXXFLAGS"
34b340a0 34288 wx_save_LDFLAGS="$LDFLAGS"
d6f513f8 34289 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
34b340a0 34290 LDFLAGS="$LDFLAGS -shared -fPIC"
47964710 34291 ac_ext=cpp
d6f513f8
VS
34292ac_cpp='$CXXCPP $CPPFLAGS'
34293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34296
34297 cat >conftest.$ac_ext <<_ACEOF
34298/* confdefs.h. */
34299_ACEOF
34300cat confdefs.h >>conftest.$ac_ext
34301cat >>conftest.$ac_ext <<_ACEOF
34302/* end confdefs.h. */
34303
34304 #include <string>
34305
34306int
34307main ()
34308{
34309
34b340a0
VS
34310 std::string s("hello");
34311 return s.length();
d6f513f8
VS
34312
34313 ;
34314 return 0;
34315}
34316_ACEOF
34317rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
34318if { (ac_try="$ac_link"
34319case "(($ac_try" in
34320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34321 *) ac_try_echo=$ac_try;;
34322esac
d589327a 34323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 34324 (eval "$ac_link") 2>conftest.er1
d6f513f8
VS
34325 ac_status=$?
34326 grep -v '^ *+' conftest.er1 >conftest.err
34327 rm -f conftest.er1
34328 cat conftest.err >&5
d589327a 34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34330 (exit $ac_status); } && {
34331 test -z "$ac_cxx_werror_flag" ||
34332 test ! -s conftest.err
d589327a
VZ
34333 } && test -s conftest$ac_exeext &&
34334 $as_test_x conftest$ac_exeext; then
d6f513f8
VS
34335 wx_cv_cc_broken_libstdcxx_visibility=no
34336else
d589327a 34337 echo "$as_me: failed program was:" >&5
d6f513f8
VS
34338sed 's/^/| /' conftest.$ac_ext >&5
34339
47964710 34340 wx_cv_cc_broken_libstdcxx_visibility=yes
d6f513f8 34341fi
47964710
VS
34342
34343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d6f513f8
VS
34344 conftest$ac_exeext conftest.$ac_ext
34345 ac_ext=c
34346ac_cpp='$CPP $CPPFLAGS'
34347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34349ac_compiler_gnu=$ac_cv_c_compiler_gnu
34350
34351 CXXFLAGS="$wx_save_CXXFLAGS"
34b340a0 34352 LDFLAGS="$wx_save_LDFLAGS"
d6f513f8
VS
34353fi
34354
d589327a
VZ
34355 { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
34356echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
c9bd045b
VZ
34357
34358 if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
d589327a
VZ
34359 { echo "$as_me:$LINENO: checking whether we can work around it" >&5
34360echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
c9bd045b 34361 if test "${wx_cv_cc_visibility_workaround+set}" = set; then
d589327a 34362 echo $ECHO_N "(cached) $ECHO_C" >&6
c9bd045b
VZ
34363else
34364
34365 ac_ext=cpp
34366ac_cpp='$CXXCPP $CPPFLAGS'
34367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34370
34371 cat >conftest.$ac_ext <<_ACEOF
34372/* confdefs.h. */
34373_ACEOF
34374cat confdefs.h >>conftest.$ac_ext
34375cat >>conftest.$ac_ext <<_ACEOF
34376/* end confdefs.h. */
34377
34378 #pragma GCC visibility push(default)
34379 #include <string>
34380 #pragma GCC visibility pop
34381
34382int
34383main ()
34384{
34385
34386 std::string s("hello");
34387 return s.length();
34388
34389 ;
34390 return 0;
34391}
34392_ACEOF
34393rm -f conftest.$ac_objext conftest$ac_exeext
34394if { (ac_try="$ac_link"
34395case "(($ac_try" in
34396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34397 *) ac_try_echo=$ac_try;;
34398esac
d589327a 34399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
c9bd045b
VZ
34400 (eval "$ac_link") 2>conftest.er1
34401 ac_status=$?
34402 grep -v '^ *+' conftest.er1 >conftest.err
34403 rm -f conftest.er1
34404 cat conftest.err >&5
d589327a 34405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
c9bd045b
VZ
34406 (exit $ac_status); } && {
34407 test -z "$ac_cxx_werror_flag" ||
34408 test ! -s conftest.err
d589327a
VZ
34409 } && test -s conftest$ac_exeext &&
34410 $as_test_x conftest$ac_exeext; then
c9bd045b
VZ
34411 wx_cv_cc_visibility_workaround=no
34412else
d589327a 34413 echo "$as_me: failed program was:" >&5
c9bd045b
VZ
34414sed 's/^/| /' conftest.$ac_ext >&5
34415
34416 wx_cv_cc_visibility_workaround=yes
34417fi
34418
34419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34420 conftest$ac_exeext conftest.$ac_ext
34421 ac_ext=c
34422ac_cpp='$CPP $CPPFLAGS'
34423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34425ac_compiler_gnu=$ac_cv_c_compiler_gnu
34426
34427
34428fi
34429
d589327a
VZ
34430 { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
34431echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
c9bd045b
VZ
34432
34433 if test $wx_cv_cc_visibility_workaround = no; then
34434 wx_cv_cc_visibility=no
34435 fi
34436 fi
34437 fi
34438
34439 if test $wx_cv_cc_visibility = yes; then
34440 cat >>confdefs.h <<\_ACEOF
34441#define HAVE_VISIBILITY 1
34442_ACEOF
34443
d6f513f8
VS
34444 if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
34445 cat >>confdefs.h <<\_ACEOF
34446#define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
34447_ACEOF
34448
34449 fi
0ff20b9f
VS
34450 else
34451 CFLAGS_VISIBILITY=""
34452 CXXFLAGS_VISIBILITY=""
34453 fi
34454
34455
34456 fi
34457
a2bd84a5 34458 fi
0ff20b9f 34459
43a7c679
VZ
34460 if test "x$SUNCXX" = xyes; then
34461 SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
34462 WXCONFIG_RPATH="-R\$libdir"
34463 else
a848cd7e
SC
34464 case "${host}" in
34465 *-*-linux* | *-*-gnu* )
02b05020 34466 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
ffa0583f 34467 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 34468 ;;
a848cd7e
SC
34469
34470 *-*-solaris2* )
a848cd7e 34471
43a7c679
VZ
34472 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
34473
34474 saveLdflags="$LDFLAGS"
34475 LDFLAGS="$saveLdflags -Wl,-rpath,/"
d589327a
VZ
34476 { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
34477echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
43a7c679 34478 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34479/* confdefs.h. */
34480_ACEOF
34481cat confdefs.h >>conftest.$ac_ext
34482cat >>conftest.$ac_ext <<_ACEOF
34483/* end confdefs.h. */
34484
34485int
34486main ()
34487{
34488
34489 ;
34490 return 0;
34491}
34492_ACEOF
34493rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
34494if { (ac_try="$ac_link"
34495case "(($ac_try" in
34496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34497 *) ac_try_echo=$ac_try;;
34498esac
d589327a 34499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 34500 (eval "$ac_link") 2>conftest.er1
a848cd7e 34501 ac_status=$?
ac1cb8d3
VS
34502 grep -v '^ *+' conftest.er1 >conftest.err
34503 rm -f conftest.er1
34504 cat conftest.err >&5
d589327a 34505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34506 (exit $ac_status); } && {
34507 test -z "$ac_c_werror_flag" ||
34508 test ! -s conftest.err
d589327a
VZ
34509 } && test -s conftest$ac_exeext &&
34510 $as_test_x conftest$ac_exeext; then
a848cd7e 34511
d589327a
VZ
34512 { echo "$as_me:$LINENO: result: yes" >&5
34513echo "${ECHO_T}yes" >&6; }
43a7c679
VZ
34514 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
34515 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
34516
34517else
d589327a 34518 echo "$as_me: failed program was:" >&5
a848cd7e
SC
34519sed 's/^/| /' conftest.$ac_ext >&5
34520
34521
d589327a
VZ
34522 { echo "$as_me:$LINENO: result: no" >&5
34523echo "${ECHO_T}no" >&6; }
34524 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
34525echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
43a7c679
VZ
34526 LDFLAGS="$saveLdflags -Wl,-R,/"
34527 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34528/* confdefs.h. */
34529_ACEOF
34530cat confdefs.h >>conftest.$ac_ext
34531cat >>conftest.$ac_ext <<_ACEOF
34532/* end confdefs.h. */
34533
34534int
34535main ()
34536{
34537
34538 ;
34539 return 0;
34540}
34541_ACEOF
34542rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
34543if { (ac_try="$ac_link"
34544case "(($ac_try" in
34545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34546 *) ac_try_echo=$ac_try;;
34547esac
d589327a 34548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 34549 (eval "$ac_link") 2>conftest.er1
a848cd7e 34550 ac_status=$?
ac1cb8d3
VS
34551 grep -v '^ *+' conftest.er1 >conftest.err
34552 rm -f conftest.er1
34553 cat conftest.err >&5
d589327a 34554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34555 (exit $ac_status); } && {
34556 test -z "$ac_c_werror_flag" ||
34557 test ! -s conftest.err
d589327a
VZ
34558 } && test -s conftest$ac_exeext &&
34559 $as_test_x conftest$ac_exeext; then
a848cd7e 34560
d589327a
VZ
34561 { echo "$as_me:$LINENO: result: yes" >&5
34562echo "${ECHO_T}yes" >&6; }
43a7c679
VZ
34563 SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
34564 WXCONFIG_RPATH="-Wl,-R,\$libdir"
ffa0583f 34565
a848cd7e 34566else
d589327a 34567 echo "$as_me: failed program was:" >&5
a848cd7e
SC
34568sed 's/^/| /' conftest.$ac_ext >&5
34569
34570
d589327a
VZ
34571 { echo "$as_me:$LINENO: result: no" >&5
34572echo "${ECHO_T}no" >&6; }
a848cd7e
SC
34573
34574fi
47964710
VS
34575
34576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 34577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34578
34579fi
47964710
VS
34580
34581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 34582 conftest$ac_exeext conftest.$ac_ext
43a7c679 34583 LDFLAGS="$saveLdflags"
a848cd7e
SC
34584 ;;
34585
cfda0ea8 34586 *-*-darwin* )
ddd121d7 34587 install_name_tool=`which ${HOST_PREFIX}install_name_tool`
0caebc27 34588 if test "$install_name_tool" -a -x "$install_name_tool"; then
2fd71613 34589 DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
0caebc27 34590 cat <<EOF >change-install-names
a848cd7e
SC
34591#!/bin/sh
34592libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
a848cd7e 34593for i in \${libnames} ; do
2fd71613
KO
34594 ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i}
34595 for dep in \${libnames} ; do
34596 ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i}
34597 done
a848cd7e 34598done
a848cd7e 34599EOF
0caebc27 34600 chmod +x change-install-names
2fd71613 34601 DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${libdir} \$(wx_top_builddir)/lib"
0caebc27 34602 fi
516cf181
FM
34603
34604 HEADER_PAD_OPTION="-headerpad_max_install_names"
a848cd7e
SC
34605 ;;
34606
34607 *-*-cygwin* | *-*-mingw32* )
5ff751d6 34608 ;;
a848cd7e 34609
81f90336 34610 *-*-hpux* )
02b05020 34611 SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
81f90336 34612 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 34613 ;;
81f90336 34614
a848cd7e 34615 esac
43a7c679 34616 fi
ceec2216 34617
d3b8fe10
VZ
34618 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
34619
ffa0583f
RL
34620 if test $wxUSE_RPATH = "no"; then
34621 SAMPLES_RPATH_FLAG=''
2fd71613 34622 DYLIB_PATH_POSTLINK=''
ffa0583f
RL
34623 WXCONFIG_RPATH=''
34624 fi
34625
34626 SHARED=1
34627
34628else
34629
ceec2216
RL
34630 config_linkage_component="-static"
34631 SHARED=0
ffa0583f 34632
ceec2216 34633fi
a848cd7e 34634
a848cd7e 34635
ceec2216
RL
34636UNICODE=0
34637lib_unicode_suffix=
34638WX_CHARTYPE="ansi"
34639if test "$wxUSE_UNICODE" = "yes"; then
34640 lib_unicode_suffix=u
34641 WX_CHARTYPE="unicode"
34642 UNICODE=1
a848cd7e
SC
34643fi
34644
ceec2216
RL
34645WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
34646WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 34647
ceec2216
RL
34648DEBUG_INFO=0
34649if test "$wxUSE_DEBUG_INFO" = "yes"; then
34650 DEBUG_INFO=1
34651fi
a848cd7e 34652
89b1afb4 34653WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
a848cd7e 34654
89b1afb4 34655TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e 34656
89b1afb4 34657TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 34658
f0bb342f 34659
f10f4c87 34660if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
89b1afb4 34661 WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
f0bb342f 34662else
89b1afb4 34663 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
f0bb342f 34664fi
abc736fd 34665if test "${TOOLKIT_DIR}" = "os2"; then
89b1afb4 34666 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
abc736fd 34667else
89b1afb4 34668 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
abc736fd 34669fi
ceec2216
RL
34670
34671
34672
f10f4c87 34673if test "$wxUSE_OLD_COCOA" = 1; then
1d1af5ea 34674
1d1af5ea
DE
34675 ac_ext=c
34676ac_cpp='$CPP $CPPFLAGS'
34677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34679ac_compiler_gnu=$ac_cv_c_compiler_gnu
34680
34681ac_ext=m
34682
d589327a
VZ
34683 { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34684echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
1d1af5ea
DE
34685 cat >conftest.$ac_ext <<_ACEOF
34686/* confdefs.h. */
34687_ACEOF
34688cat confdefs.h >>conftest.$ac_ext
34689cat >>conftest.$ac_ext <<_ACEOF
34690/* end confdefs.h. */
34691#include <AppKit/NSEvent.h>
34692#include <CoreFoundation/CoreFoundation.h>
34693
34694int
34695main ()
34696{
34697
34698 ;
34699 return 0;
34700}
34701_ACEOF
34702rm -f conftest.$ac_objext
47964710
VS
34703if { (ac_try="$ac_compile"
34704case "(($ac_try" in
34705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34706 *) ac_try_echo=$ac_try;;
34707esac
d589327a 34708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 34709 (eval "$ac_compile") 2>conftest.er1
1d1af5ea
DE
34710 ac_status=$?
34711 grep -v '^ *+' conftest.er1 >conftest.err
34712 rm -f conftest.er1
34713 cat conftest.err >&5
d589327a 34714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34715 (exit $ac_status); } && {
34716 test -z "$ac_c_werror_flag" ||
34717 test ! -s conftest.err
34718 } && test -s conftest.$ac_objext; then
d589327a
VZ
34719 { echo "$as_me:$LINENO: result: no" >&5
34720echo "${ECHO_T}no" >&6; }
1d1af5ea 34721else
d589327a 34722 echo "$as_me: failed program was:" >&5
1d1af5ea
DE
34723sed 's/^/| /' conftest.$ac_ext >&5
34724
d589327a
VZ
34725 { echo "$as_me:$LINENO: result: yes" >&5
34726echo "${ECHO_T}yes" >&6; }
34727 { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34728echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
1d1af5ea
DE
34729 cat >conftest.$ac_ext <<_ACEOF
34730/* confdefs.h. */
34731_ACEOF
34732cat confdefs.h >>conftest.$ac_ext
34733cat >>conftest.$ac_ext <<_ACEOF
34734/* end confdefs.h. */
34735#define __Point__ 1
34736#include <AppKit/NSEvent.h>
34737#include <CoreFoundation/CoreFoundation.h>
34738
34739int
34740main ()
34741{
34742
34743 ;
34744 return 0;
34745}
34746_ACEOF
34747rm -f conftest.$ac_objext
47964710
VS
34748if { (ac_try="$ac_compile"
34749case "(($ac_try" in
34750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34751 *) ac_try_echo=$ac_try;;
34752esac
d589327a 34753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 34754 (eval "$ac_compile") 2>conftest.er1
1d1af5ea
DE
34755 ac_status=$?
34756 grep -v '^ *+' conftest.er1 >conftest.err
34757 rm -f conftest.er1
34758 cat conftest.err >&5
d589327a 34759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34760 (exit $ac_status); } && {
34761 test -z "$ac_c_werror_flag" ||
34762 test ! -s conftest.err
34763 } && test -s conftest.$ac_objext; then
d589327a
VZ
34764 { echo "$as_me:$LINENO: result: yes" >&5
34765echo "${ECHO_T}yes" >&6; }
1d1af5ea
DE
34766 cat >>confdefs.h <<\_ACEOF
34767#define __Point__ 1
34768_ACEOF
34769
34770
34771else
d589327a 34772 echo "$as_me: failed program was:" >&5
1d1af5ea
DE
34773sed 's/^/| /' conftest.$ac_ext >&5
34774
d589327a 34775 { { echo "$as_me:$LINENO: error: no
1d1af5ea 34776See \`config.log' for more details." >&5
d589327a 34777echo "$as_me: error: no
1d1af5ea 34778See \`config.log' for more details." >&2;}
d589327a 34779 { (exit 1); exit 1; }; }
1d1af5ea
DE
34780
34781fi
47964710
VS
34782
34783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d1af5ea
DE
34784
34785fi
47964710
VS
34786
34787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
34788 ac_ext=c
34789ac_cpp='$CPP $CPPFLAGS'
34790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34792ac_compiler_gnu=$ac_cv_c_compiler_gnu
1d1af5ea
DE
34793
34794fi
34795
a848cd7e 34796
d589327a
VZ
34797{ echo "$as_me:$LINENO: checking for mode_t" >&5
34798echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
a848cd7e 34799if test "${ac_cv_type_mode_t+set}" = set; then
d589327a 34800 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 34801else
aa113d87
FM
34802 cat >conftest.$ac_ext <<_ACEOF
34803/* confdefs.h. */
34804_ACEOF
34805cat confdefs.h >>conftest.$ac_ext
34806cat >>conftest.$ac_ext <<_ACEOF
34807/* end confdefs.h. */
34808$ac_includes_default
d589327a 34809typedef mode_t ac__type_new_;
aa113d87
FM
34810int
34811main ()
34812{
d589327a
VZ
34813if ((ac__type_new_ *) 0)
34814 return 0;
34815if (sizeof (ac__type_new_))
34816 return 0;
a848cd7e
SC
34817 ;
34818 return 0;
34819}
34820_ACEOF
34821rm -f conftest.$ac_objext
47964710
VS
34822if { (ac_try="$ac_compile"
34823case "(($ac_try" in
34824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34825 *) ac_try_echo=$ac_try;;
34826esac
d589327a 34827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 34828 (eval "$ac_compile") 2>conftest.er1
a848cd7e 34829 ac_status=$?
ac1cb8d3
VS
34830 grep -v '^ *+' conftest.er1 >conftest.err
34831 rm -f conftest.er1
34832 cat conftest.err >&5
d589327a 34833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34834 (exit $ac_status); } && {
34835 test -z "$ac_c_werror_flag" ||
34836 test ! -s conftest.err
34837 } && test -s conftest.$ac_objext; then
d589327a 34838 ac_cv_type_mode_t=yes
a848cd7e 34839else
d589327a 34840 echo "$as_me: failed program was:" >&5
a848cd7e
SC
34841sed 's/^/| /' conftest.$ac_ext >&5
34842
d589327a 34843 ac_cv_type_mode_t=no
a848cd7e 34844fi
47964710
VS
34845
34846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 34847fi
d589327a
VZ
34848{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34849echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34850if test $ac_cv_type_mode_t = yes; then
a848cd7e
SC
34851 :
34852else
34853
34854cat >>confdefs.h <<_ACEOF
34855#define mode_t int
34856_ACEOF
34857
34858fi
34859
d589327a
VZ
34860{ echo "$as_me:$LINENO: checking for off_t" >&5
34861echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
a848cd7e 34862if test "${ac_cv_type_off_t+set}" = set; then
d589327a 34863 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 34864else
aa113d87
FM
34865 cat >conftest.$ac_ext <<_ACEOF
34866/* confdefs.h. */
34867_ACEOF
34868cat confdefs.h >>conftest.$ac_ext
34869cat >>conftest.$ac_ext <<_ACEOF
34870/* end confdefs.h. */
34871$ac_includes_default
d589327a 34872typedef off_t ac__type_new_;
aa113d87
FM
34873int
34874main ()
34875{
d589327a
VZ
34876if ((ac__type_new_ *) 0)
34877 return 0;
34878if (sizeof (ac__type_new_))
34879 return 0;
a848cd7e
SC
34880 ;
34881 return 0;
34882}
34883_ACEOF
34884rm -f conftest.$ac_objext
47964710
VS
34885if { (ac_try="$ac_compile"
34886case "(($ac_try" in
34887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34888 *) ac_try_echo=$ac_try;;
34889esac
d589327a 34890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 34891 (eval "$ac_compile") 2>conftest.er1
a848cd7e 34892 ac_status=$?
ac1cb8d3
VS
34893 grep -v '^ *+' conftest.er1 >conftest.err
34894 rm -f conftest.er1
34895 cat conftest.err >&5
d589327a 34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34897 (exit $ac_status); } && {
34898 test -z "$ac_c_werror_flag" ||
34899 test ! -s conftest.err
34900 } && test -s conftest.$ac_objext; then
d589327a 34901 ac_cv_type_off_t=yes
a848cd7e 34902else
d589327a 34903 echo "$as_me: failed program was:" >&5
a848cd7e
SC
34904sed 's/^/| /' conftest.$ac_ext >&5
34905
d589327a 34906 ac_cv_type_off_t=no
a848cd7e 34907fi
47964710
VS
34908
34909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 34910fi
d589327a
VZ
34911{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34912echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34913if test $ac_cv_type_off_t = yes; then
a848cd7e
SC
34914 :
34915else
34916
34917cat >>confdefs.h <<_ACEOF
47964710 34918#define off_t long int
a848cd7e
SC
34919_ACEOF
34920
34921fi
34922
d589327a
VZ
34923{ echo "$as_me:$LINENO: checking for pid_t" >&5
34924echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
a848cd7e 34925if test "${ac_cv_type_pid_t+set}" = set; then
d589327a 34926 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 34927else
aa113d87
FM
34928 cat >conftest.$ac_ext <<_ACEOF
34929/* confdefs.h. */
34930_ACEOF
34931cat confdefs.h >>conftest.$ac_ext
34932cat >>conftest.$ac_ext <<_ACEOF
34933/* end confdefs.h. */
34934$ac_includes_default
d589327a 34935typedef pid_t ac__type_new_;
aa113d87
FM
34936int
34937main ()
34938{
d589327a
VZ
34939if ((ac__type_new_ *) 0)
34940 return 0;
34941if (sizeof (ac__type_new_))
34942 return 0;
a848cd7e
SC
34943 ;
34944 return 0;
34945}
34946_ACEOF
34947rm -f conftest.$ac_objext
47964710
VS
34948if { (ac_try="$ac_compile"
34949case "(($ac_try" in
34950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34951 *) ac_try_echo=$ac_try;;
34952esac
d589327a 34953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 34954 (eval "$ac_compile") 2>conftest.er1
a848cd7e 34955 ac_status=$?
ac1cb8d3
VS
34956 grep -v '^ *+' conftest.er1 >conftest.err
34957 rm -f conftest.er1
34958 cat conftest.err >&5
d589327a 34959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
34960 (exit $ac_status); } && {
34961 test -z "$ac_c_werror_flag" ||
34962 test ! -s conftest.err
34963 } && test -s conftest.$ac_objext; then
d589327a 34964 ac_cv_type_pid_t=yes
a848cd7e 34965else
d589327a 34966 echo "$as_me: failed program was:" >&5
a848cd7e
SC
34967sed 's/^/| /' conftest.$ac_ext >&5
34968
d589327a 34969 ac_cv_type_pid_t=no
a848cd7e 34970fi
47964710
VS
34971
34972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 34973fi
d589327a
VZ
34974{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34975echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34976if test $ac_cv_type_pid_t = yes; then
a848cd7e
SC
34977 :
34978else
34979
34980cat >>confdefs.h <<_ACEOF
34981#define pid_t int
34982_ACEOF
34983
34984fi
34985
d589327a
VZ
34986{ echo "$as_me:$LINENO: checking for size_t" >&5
34987echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
a848cd7e 34988if test "${ac_cv_type_size_t+set}" = set; then
d589327a 34989 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 34990else
aa113d87
FM
34991 cat >conftest.$ac_ext <<_ACEOF
34992/* confdefs.h. */
34993_ACEOF
34994cat confdefs.h >>conftest.$ac_ext
34995cat >>conftest.$ac_ext <<_ACEOF
34996/* end confdefs.h. */
34997$ac_includes_default
d589327a 34998typedef size_t ac__type_new_;
aa113d87
FM
34999int
35000main ()
35001{
d589327a
VZ
35002if ((ac__type_new_ *) 0)
35003 return 0;
35004if (sizeof (ac__type_new_))
35005 return 0;
a848cd7e
SC
35006 ;
35007 return 0;
35008}
35009_ACEOF
35010rm -f conftest.$ac_objext
47964710
VS
35011if { (ac_try="$ac_compile"
35012case "(($ac_try" in
35013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35014 *) ac_try_echo=$ac_try;;
35015esac
d589327a 35016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 35017 (eval "$ac_compile") 2>conftest.er1
a848cd7e 35018 ac_status=$?
ac1cb8d3
VS
35019 grep -v '^ *+' conftest.er1 >conftest.err
35020 rm -f conftest.er1
35021 cat conftest.err >&5
d589327a 35022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35023 (exit $ac_status); } && {
35024 test -z "$ac_c_werror_flag" ||
35025 test ! -s conftest.err
35026 } && test -s conftest.$ac_objext; then
d589327a 35027 ac_cv_type_size_t=yes
a848cd7e 35028else
d589327a 35029 echo "$as_me: failed program was:" >&5
a848cd7e
SC
35030sed 's/^/| /' conftest.$ac_ext >&5
35031
d589327a 35032 ac_cv_type_size_t=no
a848cd7e 35033fi
47964710
VS
35034
35035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 35036fi
d589327a
VZ
35037{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35038echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
35039if test $ac_cv_type_size_t = yes; then
a848cd7e
SC
35040 :
35041else
35042
35043cat >>confdefs.h <<_ACEOF
47964710 35044#define size_t unsigned int
a848cd7e
SC
35045_ACEOF
35046
35047fi
35048
a848cd7e 35049
d589327a
VZ
35050{ echo "$as_me:$LINENO: checking for ssize_t" >&5
35051echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
d51253e8 35052if test "${ac_cv_type_ssize_t+set}" = set; then
d589327a 35053 echo $ECHO_N "(cached) $ECHO_C" >&6
d51253e8 35054else
aa113d87
FM
35055 cat >conftest.$ac_ext <<_ACEOF
35056/* confdefs.h. */
35057_ACEOF
35058cat confdefs.h >>conftest.$ac_ext
35059cat >>conftest.$ac_ext <<_ACEOF
35060/* end confdefs.h. */
35061$ac_includes_default
d589327a 35062typedef ssize_t ac__type_new_;
aa113d87
FM
35063int
35064main ()
35065{
d589327a
VZ
35066if ((ac__type_new_ *) 0)
35067 return 0;
35068if (sizeof (ac__type_new_))
35069 return 0;
d51253e8
RL
35070 ;
35071 return 0;
35072}
35073_ACEOF
35074rm -f conftest.$ac_objext
47964710
VS
35075if { (ac_try="$ac_compile"
35076case "(($ac_try" in
35077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35078 *) ac_try_echo=$ac_try;;
35079esac
d589327a 35080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 35081 (eval "$ac_compile") 2>conftest.er1
d51253e8
RL
35082 ac_status=$?
35083 grep -v '^ *+' conftest.er1 >conftest.err
35084 rm -f conftest.er1
35085 cat conftest.err >&5
d589327a 35086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35087 (exit $ac_status); } && {
35088 test -z "$ac_c_werror_flag" ||
35089 test ! -s conftest.err
35090 } && test -s conftest.$ac_objext; then
d589327a 35091 ac_cv_type_ssize_t=yes
d51253e8 35092else
d589327a 35093 echo "$as_me: failed program was:" >&5
d51253e8
RL
35094sed 's/^/| /' conftest.$ac_ext >&5
35095
d589327a 35096 ac_cv_type_ssize_t=no
d51253e8 35097fi
47964710
VS
35098
35099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d51253e8 35100fi
d589327a
VZ
35101{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
35102echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
35103if test $ac_cv_type_ssize_t = yes; then
d51253e8
RL
35104
35105cat >>confdefs.h <<_ACEOF
35106#define HAVE_SSIZE_T 1
35107_ACEOF
35108
35109
35110fi
35111
35112
47964710 35113ac_ext=cpp
9b8888f9
VZ
35114ac_cpp='$CXXCPP $CPPFLAGS'
35115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
d589327a
VZ
35118 { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
35119echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
a848cd7e 35120if test "${wx_cv_size_t_is_uint+set}" = set; then
d589327a 35121 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
35122else
35123
35124 cat >conftest.$ac_ext <<_ACEOF
35125/* confdefs.h. */
35126_ACEOF
35127cat confdefs.h >>conftest.$ac_ext
35128cat >>conftest.$ac_ext <<_ACEOF
35129/* end confdefs.h. */
35130#include <stddef.h>
35131int
35132main ()
35133{
35134
35135 return 0; }
35136
35137 struct Foo { void foo(size_t); void foo(unsigned int); };
35138
35139 int bar() {
35140
35141 ;
35142 return 0;
35143}
35144_ACEOF
35145rm -f conftest.$ac_objext
47964710
VS
35146if { (ac_try="$ac_compile"
35147case "(($ac_try" in
35148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35149 *) ac_try_echo=$ac_try;;
35150esac
d589327a 35151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 35152 (eval "$ac_compile") 2>conftest.er1
a848cd7e 35153 ac_status=$?
ac1cb8d3
VS
35154 grep -v '^ *+' conftest.er1 >conftest.err
35155 rm -f conftest.er1
35156 cat conftest.err >&5
d589327a 35157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35158 (exit $ac_status); } && {
35159 test -z "$ac_cxx_werror_flag" ||
35160 test ! -s conftest.err
35161 } && test -s conftest.$ac_objext; then
a848cd7e
SC
35162 wx_cv_size_t_is_uint=no
35163else
d589327a 35164 echo "$as_me: failed program was:" >&5
a848cd7e
SC
35165sed 's/^/| /' conftest.$ac_ext >&5
35166
47964710 35167 wx_cv_size_t_is_uint=yes
a848cd7e
SC
35168
35169fi
47964710
VS
35170
35171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35172
35173
35174fi
d589327a
VZ
35175{ echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
35176echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
a848cd7e
SC
35177
35178if test "$wx_cv_size_t_is_uint" = "yes"; then
35179 cat >>confdefs.h <<\_ACEOF
35180#define wxSIZE_T_IS_UINT 1
35181_ACEOF
35182
35183else
d589327a
VZ
35184 { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
35185echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
a848cd7e 35186if test "${wx_cv_size_t_is_ulong+set}" = set; then
d589327a 35187 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
35188else
35189 cat >conftest.$ac_ext <<_ACEOF
35190/* confdefs.h. */
35191_ACEOF
35192cat confdefs.h >>conftest.$ac_ext
35193cat >>conftest.$ac_ext <<_ACEOF
35194/* end confdefs.h. */
35195#include <stddef.h>
35196int
35197main ()
35198{
35199
35200 return 0; }
35201
35202 struct Foo { void foo(size_t); void foo(unsigned long); };
35203
35204 int bar() {
35205
35206 ;
35207 return 0;
35208}
35209_ACEOF
35210rm -f conftest.$ac_objext
47964710
VS
35211if { (ac_try="$ac_compile"
35212case "(($ac_try" in
35213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35214 *) ac_try_echo=$ac_try;;
35215esac
d589327a 35216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 35217 (eval "$ac_compile") 2>conftest.er1
a848cd7e 35218 ac_status=$?
ac1cb8d3
VS
35219 grep -v '^ *+' conftest.er1 >conftest.err
35220 rm -f conftest.er1
35221 cat conftest.err >&5
d589327a 35222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35223 (exit $ac_status); } && {
35224 test -z "$ac_cxx_werror_flag" ||
35225 test ! -s conftest.err
35226 } && test -s conftest.$ac_objext; then
a848cd7e
SC
35227 wx_cv_size_t_is_ulong=no
35228else
d589327a 35229 echo "$as_me: failed program was:" >&5
a848cd7e
SC
35230sed 's/^/| /' conftest.$ac_ext >&5
35231
47964710 35232 wx_cv_size_t_is_ulong=yes
a848cd7e
SC
35233
35234fi
47964710
VS
35235
35236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35237
35238fi
d589327a
VZ
35239{ echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
35240echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
a848cd7e
SC
35241
35242 if test "$wx_cv_size_t_is_ulong" = "yes"; then
35243 cat >>confdefs.h <<\_ACEOF
35244#define wxSIZE_T_IS_ULONG 1
35245_ACEOF
35246
35247 fi
35248fi
35249
d589327a
VZ
35250{ echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
35251echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
21f0762a 35252if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
d589327a 35253 echo $ECHO_N "(cached) $ECHO_C" >&6
21f0762a
VS
35254else
35255 cat >conftest.$ac_ext <<_ACEOF
35256/* confdefs.h. */
35257_ACEOF
35258cat confdefs.h >>conftest.$ac_ext
35259cat >>conftest.$ac_ext <<_ACEOF
35260/* end confdefs.h. */
35261#include <wchar.h>
35262int
35263main ()
35264{
35265
35266 return 0; }
35267
35268 struct Foo { void foo(wchar_t);
35269 void foo(unsigned short);
35270 void foo(unsigned int);
35271 void foo(unsigned long); };
35272
35273 int bar() {
35274
35275 ;
35276 return 0;
35277}
35278_ACEOF
35279rm -f conftest.$ac_objext
47964710
VS
35280if { (ac_try="$ac_compile"
35281case "(($ac_try" in
35282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35283 *) ac_try_echo=$ac_try;;
35284esac
d589327a 35285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 35286 (eval "$ac_compile") 2>conftest.er1
21f0762a
VS
35287 ac_status=$?
35288 grep -v '^ *+' conftest.er1 >conftest.err
35289 rm -f conftest.er1
35290 cat conftest.err >&5
d589327a 35291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35292 (exit $ac_status); } && {
35293 test -z "$ac_cxx_werror_flag" ||
35294 test ! -s conftest.err
35295 } && test -s conftest.$ac_objext; then
21f0762a
VS
35296 wx_cv_wchar_t_is_separate_type=yes
35297else
d589327a 35298 echo "$as_me: failed program was:" >&5
21f0762a
VS
35299sed 's/^/| /' conftest.$ac_ext >&5
35300
47964710 35301 wx_cv_wchar_t_is_separate_type=no
21f0762a
VS
35302
35303fi
47964710
VS
35304
35305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21f0762a
VS
35306
35307fi
d589327a
VZ
35308{ echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
35309echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
21f0762a
VS
35310
35311if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
35312 cat >>confdefs.h <<\_ACEOF
c5cf8663 35313#define wxWCHAR_T_IS_REAL_TYPE 1
21f0762a
VS
35314_ACEOF
35315
4d62edfb
VS
35316else
35317 cat >>confdefs.h <<\_ACEOF
c5cf8663 35318#define wxWCHAR_T_IS_REAL_TYPE 0
4d62edfb
VS
35319_ACEOF
35320
21f0762a
VS
35321fi
35322
9b8888f9
VZ
35323ac_ext=c
35324ac_cpp='$CPP $CPPFLAGS'
35325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35327ac_compiler_gnu=$ac_cv_c_compiler_gnu
35328
a848cd7e 35329
d589327a
VZ
35330{ echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
35331echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
a848cd7e 35332if test "${wx_cv_struct_pw_gecos+set}" = set; then
d589327a 35333 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
35334else
35335
35336 cat >conftest.$ac_ext <<_ACEOF
35337/* confdefs.h. */
35338_ACEOF
35339cat confdefs.h >>conftest.$ac_ext
35340cat >>conftest.$ac_ext <<_ACEOF
35341/* end confdefs.h. */
35342#include <pwd.h>
35343int
35344main ()
35345{
35346
35347 char *p;
35348 struct passwd *pw;
35349 p = pw->pw_gecos;
35350
35351 ;
35352 return 0;
35353}
35354_ACEOF
35355rm -f conftest.$ac_objext
47964710
VS
35356if { (ac_try="$ac_compile"
35357case "(($ac_try" in
35358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35359 *) ac_try_echo=$ac_try;;
35360esac
d589327a 35361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 35362 (eval "$ac_compile") 2>conftest.er1
a848cd7e 35363 ac_status=$?
ac1cb8d3
VS
35364 grep -v '^ *+' conftest.er1 >conftest.err
35365 rm -f conftest.er1
35366 cat conftest.err >&5
d589327a 35367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35368 (exit $ac_status); } && {
35369 test -z "$ac_c_werror_flag" ||
35370 test ! -s conftest.err
35371 } && test -s conftest.$ac_objext; then
a848cd7e
SC
35372
35373 wx_cv_struct_pw_gecos=yes
35374
35375else
d589327a 35376 echo "$as_me: failed program was:" >&5
a848cd7e
SC
35377sed 's/^/| /' conftest.$ac_ext >&5
35378
35379
35380 wx_cv_struct_pw_gecos=no
35381
35382
35383fi
47964710
VS
35384
35385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35386
35387
35388fi
d589327a
VZ
35389{ echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
35390echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
a848cd7e
SC
35391
35392if test "$wx_cv_struct_pw_gecos" = "yes"; then
35393 cat >>confdefs.h <<\_ACEOF
35394#define HAVE_PW_GECOS 1
35395_ACEOF
35396
35397fi
35398
35399
47a7e797 35400if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
35401 cat >>confdefs.h <<\_ACEOF
35402#define wxUSE_WCHAR_T 1
35403_ACEOF
35404
35405
35406 WCSLEN_FOUND=0
35407 WCHAR_LINK=
35408
35409for ac_func in wcslen
35410do
d589327a
VZ
35411as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35412{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35413echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 35414if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 35415 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
35416else
35417 cat >conftest.$ac_ext <<_ACEOF
35418/* confdefs.h. */
35419_ACEOF
35420cat confdefs.h >>conftest.$ac_ext
35421cat >>conftest.$ac_ext <<_ACEOF
35422/* end confdefs.h. */
ac1cb8d3
VS
35423/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35425#define $ac_func innocuous_$ac_func
35426
a848cd7e
SC
35427/* System header to define __stub macros and hopefully few prototypes,
35428 which can conflict with char $ac_func (); below.
35429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35430 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35431
a848cd7e
SC
35432#ifdef __STDC__
35433# include <limits.h>
35434#else
35435# include <assert.h>
35436#endif
ac1cb8d3
VS
35437
35438#undef $ac_func
35439
47964710
VS
35440/* Override any GCC internal prototype to avoid an error.
35441 Use char because int might match the return type of a GCC
35442 builtin and then its argument prototype would still apply. */
a848cd7e
SC
35443#ifdef __cplusplus
35444extern "C"
a848cd7e 35445#endif
a848cd7e
SC
35446char $ac_func ();
35447/* The GNU C library defines this for functions which it implements
35448 to always fail with ENOSYS. Some functions are actually named
35449 something starting with __ and the normal name is an alias. */
47964710 35450#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 35451choke me
a848cd7e
SC
35452#endif
35453
35454int
35455main ()
35456{
47964710 35457return $ac_func ();
a848cd7e
SC
35458 ;
35459 return 0;
35460}
35461_ACEOF
35462rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
35463if { (ac_try="$ac_link"
35464case "(($ac_try" in
35465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35466 *) ac_try_echo=$ac_try;;
35467esac
d589327a 35468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 35469 (eval "$ac_link") 2>conftest.er1
a848cd7e 35470 ac_status=$?
ac1cb8d3
VS
35471 grep -v '^ *+' conftest.er1 >conftest.err
35472 rm -f conftest.er1
35473 cat conftest.err >&5
d589327a 35474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35475 (exit $ac_status); } && {
35476 test -z "$ac_c_werror_flag" ||
35477 test ! -s conftest.err
d589327a
VZ
35478 } && test -s conftest$ac_exeext &&
35479 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
35480 eval "$as_ac_var=yes"
35481else
d589327a 35482 echo "$as_me: failed program was:" >&5
a848cd7e
SC
35483sed 's/^/| /' conftest.$ac_ext >&5
35484
47964710 35485 eval "$as_ac_var=no"
a848cd7e 35486fi
47964710
VS
35487
35488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 35489 conftest$ac_exeext conftest.$ac_ext
a848cd7e 35490fi
d589327a
VZ
35491ac_res=`eval echo '${'$as_ac_var'}'`
35492 { echo "$as_me:$LINENO: result: $ac_res" >&5
35493echo "${ECHO_T}$ac_res" >&6; }
35494if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 35495 cat >>confdefs.h <<_ACEOF
d589327a 35496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
35497_ACEOF
35498 WCSLEN_FOUND=1
35499fi
35500done
35501
35502
35503 if test "$WCSLEN_FOUND" = 0; then
35504 if test "$TOOLKIT" = "MSW"; then
d589327a
VZ
35505 { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
35506echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
a848cd7e 35507if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
d589327a 35508 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
35509else
35510 ac_check_lib_save_LIBS=$LIBS
35511LIBS="-lmsvcrt $LIBS"
35512cat >conftest.$ac_ext <<_ACEOF
35513/* confdefs.h. */
35514_ACEOF
35515cat confdefs.h >>conftest.$ac_ext
35516cat >>conftest.$ac_ext <<_ACEOF
35517/* end confdefs.h. */
35518
47964710
VS
35519/* Override any GCC internal prototype to avoid an error.
35520 Use char because int might match the return type of a GCC
35521 builtin and then its argument prototype would still apply. */
a848cd7e
SC
35522#ifdef __cplusplus
35523extern "C"
35524#endif
a848cd7e
SC
35525char wcslen ();
35526int
35527main ()
35528{
47964710 35529return wcslen ();
a848cd7e
SC
35530 ;
35531 return 0;
35532}
35533_ACEOF
35534rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
35535if { (ac_try="$ac_link"
35536case "(($ac_try" in
35537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35538 *) ac_try_echo=$ac_try;;
35539esac
d589327a 35540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 35541 (eval "$ac_link") 2>conftest.er1
a848cd7e 35542 ac_status=$?
ac1cb8d3
VS
35543 grep -v '^ *+' conftest.er1 >conftest.err
35544 rm -f conftest.er1
35545 cat conftest.err >&5
d589327a 35546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35547 (exit $ac_status); } && {
35548 test -z "$ac_c_werror_flag" ||
35549 test ! -s conftest.err
d589327a
VZ
35550 } && test -s conftest$ac_exeext &&
35551 $as_test_x conftest$ac_exeext; then
39b61aa3
VZ
35552 ac_cv_lib_msvcrt_wcslen=yes
35553else
d589327a 35554 echo "$as_me: failed program was:" >&5
39b61aa3
VZ
35555sed 's/^/| /' conftest.$ac_ext >&5
35556
47964710 35557 ac_cv_lib_msvcrt_wcslen=no
39b61aa3 35558fi
47964710
VS
35559
35560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39b61aa3
VZ
35561 conftest$ac_exeext conftest.$ac_ext
35562LIBS=$ac_check_lib_save_LIBS
35563fi
d589327a
VZ
35564{ echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
35565echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
35566if test $ac_cv_lib_msvcrt_wcslen = yes; then
39b61aa3
VZ
35567 WCHAR_OK=1
35568fi
35569
35570 else
d589327a
VZ
35571 { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
35572echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
39b61aa3 35573if test "${ac_cv_lib_w_wcslen+set}" = set; then
d589327a 35574 echo $ECHO_N "(cached) $ECHO_C" >&6
39b61aa3
VZ
35575else
35576 ac_check_lib_save_LIBS=$LIBS
35577LIBS="-lw $LIBS"
35578cat >conftest.$ac_ext <<_ACEOF
35579/* confdefs.h. */
35580_ACEOF
35581cat confdefs.h >>conftest.$ac_ext
35582cat >>conftest.$ac_ext <<_ACEOF
35583/* end confdefs.h. */
35584
47964710
VS
35585/* Override any GCC internal prototype to avoid an error.
35586 Use char because int might match the return type of a GCC
35587 builtin and then its argument prototype would still apply. */
39b61aa3
VZ
35588#ifdef __cplusplus
35589extern "C"
35590#endif
35591char wcslen ();
35592int
35593main ()
35594{
47964710 35595return wcslen ();
39b61aa3
VZ
35596 ;
35597 return 0;
35598}
35599_ACEOF
35600rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
35601if { (ac_try="$ac_link"
35602case "(($ac_try" in
35603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35604 *) ac_try_echo=$ac_try;;
35605esac
d589327a 35606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 35607 (eval "$ac_link") 2>conftest.er1
a848cd7e 35608 ac_status=$?
39b61aa3
VZ
35609 grep -v '^ *+' conftest.er1 >conftest.err
35610 rm -f conftest.er1
35611 cat conftest.err >&5
d589327a 35612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35613 (exit $ac_status); } && {
35614 test -z "$ac_c_werror_flag" ||
35615 test ! -s conftest.err
d589327a
VZ
35616 } && test -s conftest$ac_exeext &&
35617 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
35618 ac_cv_lib_w_wcslen=yes
35619else
d589327a 35620 echo "$as_me: failed program was:" >&5
a848cd7e
SC
35621sed 's/^/| /' conftest.$ac_ext >&5
35622
47964710 35623 ac_cv_lib_w_wcslen=no
a848cd7e 35624fi
47964710
VS
35625
35626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 35627 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35628LIBS=$ac_check_lib_save_LIBS
35629fi
d589327a
VZ
35630{ echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
35631echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
35632if test $ac_cv_lib_w_wcslen = yes; then
a848cd7e
SC
35633
35634 WCHAR_LINK=" -lw"
35635 WCSLEN_FOUND=1
35636
35637fi
35638
35639 fi
35640 fi
35641
35642 if test "$WCSLEN_FOUND" = 1; then
35643 cat >>confdefs.h <<\_ACEOF
35644#define HAVE_WCSLEN 1
35645_ACEOF
35646
35647 fi
35648
8a02058a 35649
f1b63efe
FM
35650
35651
6689960c
VZ
35652
35653
35654for ac_func in wcsdup strnlen wcsnlen wcscasecmp wcsncasecmp
f1b63efe 35655do
d589327a
VZ
35656as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35657{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35658echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 35659if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 35660 echo $ECHO_N "(cached) $ECHO_C" >&6
8a02058a
VS
35661else
35662 cat >conftest.$ac_ext <<_ACEOF
35663/* confdefs.h. */
35664_ACEOF
35665cat confdefs.h >>conftest.$ac_ext
35666cat >>conftest.$ac_ext <<_ACEOF
35667/* end confdefs.h. */
35668/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35670#define $ac_func innocuous_$ac_func
35671
35672/* System header to define __stub macros and hopefully few prototypes,
35673 which can conflict with char $ac_func (); below.
35674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35675 <limits.h> exists even on freestanding compilers. */
35676
35677#ifdef __STDC__
35678# include <limits.h>
35679#else
35680# include <assert.h>
35681#endif
35682
35683#undef $ac_func
35684
47964710
VS
35685/* Override any GCC internal prototype to avoid an error.
35686 Use char because int might match the return type of a GCC
35687 builtin and then its argument prototype would still apply. */
8a02058a
VS
35688#ifdef __cplusplus
35689extern "C"
35690#endif
35691char $ac_func ();
35692/* The GNU C library defines this for functions which it implements
35693 to always fail with ENOSYS. Some functions are actually named
35694 something starting with __ and the normal name is an alias. */
47964710 35695#if defined __stub_$ac_func || defined __stub___$ac_func
8a02058a
VS
35696choke me
35697#endif
35698
35699int
35700main ()
35701{
47964710 35702return $ac_func ();
8a02058a
VS
35703 ;
35704 return 0;
35705}
35706_ACEOF
35707rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
35708if { (ac_try="$ac_link"
35709case "(($ac_try" in
35710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35711 *) ac_try_echo=$ac_try;;
35712esac
d589327a 35713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 35714 (eval "$ac_link") 2>conftest.er1
8a02058a
VS
35715 ac_status=$?
35716 grep -v '^ *+' conftest.er1 >conftest.err
35717 rm -f conftest.er1
35718 cat conftest.err >&5
d589327a 35719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35720 (exit $ac_status); } && {
35721 test -z "$ac_c_werror_flag" ||
35722 test ! -s conftest.err
d589327a
VZ
35723 } && test -s conftest$ac_exeext &&
35724 $as_test_x conftest$ac_exeext; then
8a02058a
VS
35725 eval "$as_ac_var=yes"
35726else
d589327a 35727 echo "$as_me: failed program was:" >&5
8a02058a
VS
35728sed 's/^/| /' conftest.$ac_ext >&5
35729
47964710 35730 eval "$as_ac_var=no"
8a02058a 35731fi
47964710
VS
35732
35733rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a02058a
VS
35734 conftest$ac_exeext conftest.$ac_ext
35735fi
d589327a
VZ
35736ac_res=`eval echo '${'$as_ac_var'}'`
35737 { echo "$as_me:$LINENO: result: $ac_res" >&5
35738echo "${ECHO_T}$ac_res" >&6; }
35739if test `eval echo '${'$as_ac_var'}'` = yes; then
8a02058a 35740 cat >>confdefs.h <<_ACEOF
d589327a 35741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8a02058a
VS
35742_ACEOF
35743
35744fi
35745done
35746
35747
efdf6afe 35748 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 35749 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
35750 fi
35751
d589327a
VZ
35752 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35753echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
efdf6afe 35754if test "${ac_cv_type_mbstate_t+set}" = set; then
d589327a 35755 echo $ECHO_N "(cached) $ECHO_C" >&6
efdf6afe 35756else
aa113d87
FM
35757 cat >conftest.$ac_ext <<_ACEOF
35758/* confdefs.h. */
35759_ACEOF
35760cat confdefs.h >>conftest.$ac_ext
35761cat >>conftest.$ac_ext <<_ACEOF
35762/* end confdefs.h. */
35763#include <wchar.h>
35764
d589327a 35765typedef mbstate_t ac__type_new_;
aa113d87
FM
35766int
35767main ()
35768{
d589327a
VZ
35769if ((ac__type_new_ *) 0)
35770 return 0;
35771if (sizeof (ac__type_new_))
35772 return 0;
efdf6afe
VZ
35773 ;
35774 return 0;
35775}
35776_ACEOF
35777rm -f conftest.$ac_objext
47964710
VS
35778if { (ac_try="$ac_compile"
35779case "(($ac_try" in
35780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35781 *) ac_try_echo=$ac_try;;
35782esac
d589327a 35783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 35784 (eval "$ac_compile") 2>conftest.er1
efdf6afe
VZ
35785 ac_status=$?
35786 grep -v '^ *+' conftest.er1 >conftest.err
35787 rm -f conftest.er1
35788 cat conftest.err >&5
d589327a 35789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35790 (exit $ac_status); } && {
35791 test -z "$ac_c_werror_flag" ||
35792 test ! -s conftest.err
35793 } && test -s conftest.$ac_objext; then
d589327a 35794 ac_cv_type_mbstate_t=yes
efdf6afe 35795else
d589327a 35796 echo "$as_me: failed program was:" >&5
efdf6afe
VZ
35797sed 's/^/| /' conftest.$ac_ext >&5
35798
d589327a 35799 ac_cv_type_mbstate_t=no
efdf6afe 35800fi
47964710
VS
35801
35802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
efdf6afe 35803fi
d589327a
VZ
35804{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35805echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35806if test $ac_cv_type_mbstate_t = yes; then
efdf6afe
VZ
35807
35808cat >>confdefs.h <<_ACEOF
35809#define HAVE_MBSTATE_T 1
35810_ACEOF
35811
a848cd7e
SC
35812
35813for ac_func in wcsrtombs
35814do
d589327a
VZ
35815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35816{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 35818if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 35819 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
35820else
35821 cat >conftest.$ac_ext <<_ACEOF
35822/* confdefs.h. */
35823_ACEOF
35824cat confdefs.h >>conftest.$ac_ext
35825cat >>conftest.$ac_ext <<_ACEOF
35826/* end confdefs.h. */
ac1cb8d3
VS
35827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35829#define $ac_func innocuous_$ac_func
35830
a848cd7e
SC
35831/* System header to define __stub macros and hopefully few prototypes,
35832 which can conflict with char $ac_func (); below.
35833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35834 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35835
a848cd7e
SC
35836#ifdef __STDC__
35837# include <limits.h>
35838#else
35839# include <assert.h>
35840#endif
ac1cb8d3
VS
35841
35842#undef $ac_func
35843
47964710
VS
35844/* Override any GCC internal prototype to avoid an error.
35845 Use char because int might match the return type of a GCC
35846 builtin and then its argument prototype would still apply. */
a848cd7e
SC
35847#ifdef __cplusplus
35848extern "C"
a848cd7e 35849#endif
a848cd7e
SC
35850char $ac_func ();
35851/* The GNU C library defines this for functions which it implements
35852 to always fail with ENOSYS. Some functions are actually named
35853 something starting with __ and the normal name is an alias. */
47964710 35854#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 35855choke me
a848cd7e
SC
35856#endif
35857
35858int
35859main ()
35860{
47964710 35861return $ac_func ();
a848cd7e
SC
35862 ;
35863 return 0;
35864}
35865_ACEOF
35866rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
35867if { (ac_try="$ac_link"
35868case "(($ac_try" in
35869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35870 *) ac_try_echo=$ac_try;;
35871esac
d589327a 35872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 35873 (eval "$ac_link") 2>conftest.er1
a848cd7e 35874 ac_status=$?
ac1cb8d3
VS
35875 grep -v '^ *+' conftest.er1 >conftest.err
35876 rm -f conftest.er1
35877 cat conftest.err >&5
d589327a 35878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35879 (exit $ac_status); } && {
35880 test -z "$ac_c_werror_flag" ||
35881 test ! -s conftest.err
d589327a
VZ
35882 } && test -s conftest$ac_exeext &&
35883 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
35884 eval "$as_ac_var=yes"
35885else
d589327a 35886 echo "$as_me: failed program was:" >&5
a848cd7e
SC
35887sed 's/^/| /' conftest.$ac_ext >&5
35888
47964710 35889 eval "$as_ac_var=no"
a848cd7e 35890fi
47964710
VS
35891
35892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 35893 conftest$ac_exeext conftest.$ac_ext
a848cd7e 35894fi
d589327a
VZ
35895ac_res=`eval echo '${'$as_ac_var'}'`
35896 { echo "$as_me:$LINENO: result: $ac_res" >&5
35897echo "${ECHO_T}$ac_res" >&6; }
35898if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 35899 cat >>confdefs.h <<_ACEOF
d589327a 35900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
35901_ACEOF
35902
35903fi
35904done
35905
efdf6afe
VZ
35906fi
35907
a848cd7e 35908else
d589327a
VZ
35909 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35910echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
a848cd7e
SC
35911fi
35912
a848cd7e 35913
4a767dd5 35914
d7bf6c20
VZ
35915
35916for ac_func in snprintf vsnprintf vsscanf
a848cd7e 35917do
d589327a
VZ
35918as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35919{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35920echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 35921if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 35922 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
35923else
35924 cat >conftest.$ac_ext <<_ACEOF
35925/* confdefs.h. */
35926_ACEOF
35927cat confdefs.h >>conftest.$ac_ext
35928cat >>conftest.$ac_ext <<_ACEOF
35929/* end confdefs.h. */
ac1cb8d3
VS
35930/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35932#define $ac_func innocuous_$ac_func
35933
a848cd7e
SC
35934/* System header to define __stub macros and hopefully few prototypes,
35935 which can conflict with char $ac_func (); below.
35936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35937 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35938
a848cd7e
SC
35939#ifdef __STDC__
35940# include <limits.h>
35941#else
35942# include <assert.h>
35943#endif
ac1cb8d3
VS
35944
35945#undef $ac_func
35946
47964710
VS
35947/* Override any GCC internal prototype to avoid an error.
35948 Use char because int might match the return type of a GCC
35949 builtin and then its argument prototype would still apply. */
a848cd7e
SC
35950#ifdef __cplusplus
35951extern "C"
a848cd7e 35952#endif
a848cd7e
SC
35953char $ac_func ();
35954/* The GNU C library defines this for functions which it implements
35955 to always fail with ENOSYS. Some functions are actually named
35956 something starting with __ and the normal name is an alias. */
47964710 35957#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 35958choke me
a848cd7e
SC
35959#endif
35960
35961int
35962main ()
35963{
47964710 35964return $ac_func ();
a848cd7e
SC
35965 ;
35966 return 0;
35967}
35968_ACEOF
35969rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
35970if { (ac_try="$ac_link"
35971case "(($ac_try" in
35972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35973 *) ac_try_echo=$ac_try;;
35974esac
d589327a 35975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 35976 (eval "$ac_link") 2>conftest.er1
a848cd7e 35977 ac_status=$?
ac1cb8d3
VS
35978 grep -v '^ *+' conftest.er1 >conftest.err
35979 rm -f conftest.er1
35980 cat conftest.err >&5
d589327a 35981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
35982 (exit $ac_status); } && {
35983 test -z "$ac_c_werror_flag" ||
35984 test ! -s conftest.err
d589327a
VZ
35985 } && test -s conftest$ac_exeext &&
35986 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
35987 eval "$as_ac_var=yes"
35988else
d589327a 35989 echo "$as_me: failed program was:" >&5
a848cd7e
SC
35990sed 's/^/| /' conftest.$ac_ext >&5
35991
47964710 35992 eval "$as_ac_var=no"
a848cd7e 35993fi
47964710
VS
35994
35995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 35996 conftest$ac_exeext conftest.$ac_ext
a848cd7e 35997fi
d589327a
VZ
35998ac_res=`eval echo '${'$as_ac_var'}'`
35999 { echo "$as_me:$LINENO: result: $ac_res" >&5
36000echo "${ECHO_T}$ac_res" >&6; }
36001if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 36002 cat >>confdefs.h <<_ACEOF
d589327a 36003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
36004_ACEOF
36005
36006fi
36007done
36008
36009
5cfbef2a 36010ac_ext=cpp
e203535f
SN
36011ac_cpp='$CXXCPP $CPPFLAGS'
36012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36015
a848cd7e 36016if test "$ac_cv_func_vsnprintf" = "yes"; then
d589327a
VZ
36017 { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
36018echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
a848cd7e 36019if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
d589327a 36020 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
36021else
36022
efdf6afe 36023 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
36024/* confdefs.h. */
36025_ACEOF
36026cat confdefs.h >>conftest.$ac_ext
36027cat >>conftest.$ac_ext <<_ACEOF
36028/* end confdefs.h. */
36029
36030 #include <stdio.h>
36031 #include <stdarg.h>
efdf6afe
VZ
36032 #ifdef __MSL__
36033 #if __MSL__ >= 0x6000
36034 namespace std {}
36035 using namespace std;
36036 #endif
36037 #endif
a848cd7e
SC
36038
36039int
36040main ()
36041{
36042
36043 char *buf;
36044 va_list ap;
62fa8b3a 36045 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
36046
36047 ;
36048 return 0;
36049}
36050_ACEOF
36051rm -f conftest.$ac_objext
47964710
VS
36052if { (ac_try="$ac_compile"
36053case "(($ac_try" in
36054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36055 *) ac_try_echo=$ac_try;;
36056esac
d589327a 36057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 36058 (eval "$ac_compile") 2>conftest.er1
c122b164
DE
36059 ac_status=$?
36060 grep -v '^ *+' conftest.er1 >conftest.err
36061 rm -f conftest.er1
36062 cat conftest.err >&5
d589327a 36063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710 36064 (exit $ac_status); } && {
5cfbef2a 36065 test -z "$ac_cxx_werror_flag" ||
47964710
VS
36066 test ! -s conftest.err
36067 } && test -s conftest.$ac_objext; then
c122b164
DE
36068 wx_cv_func_vsnprintf_decl=yes
36069else
d589327a 36070 echo "$as_me: failed program was:" >&5
c122b164
DE
36071sed 's/^/| /' conftest.$ac_ext >&5
36072
47964710 36073 wx_cv_func_vsnprintf_decl=no
a848cd7e
SC
36074
36075fi
47964710
VS
36076
36077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36078
36079
36080fi
d589327a
VZ
36081{ echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
36082echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
a848cd7e
SC
36083
36084 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
36085 cat >>confdefs.h <<\_ACEOF
36086#define HAVE_VSNPRINTF_DECL 1
36087_ACEOF
36088
62fa8b3a 36089
d589327a
VZ
36090 { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
36091echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
62fa8b3a 36092if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
d589327a 36093 echo $ECHO_N "(cached) $ECHO_C" >&6
62fa8b3a
MW
36094else
36095
36096 cat >conftest.$ac_ext <<_ACEOF
36097/* confdefs.h. */
36098_ACEOF
36099cat confdefs.h >>conftest.$ac_ext
36100cat >>conftest.$ac_ext <<_ACEOF
36101/* end confdefs.h. */
36102
36103 #include <stdio.h>
36104 #include <stdarg.h>
36105 #ifdef __MSL__
36106 #if __MSL__ >= 0x6000
36107 namespace std {}
36108 using namespace std;
36109 #endif
36110 #endif
36111
36112int
36113main ()
36114{
36115
36116 char *buf;
36117 va_list ap;
36118 const char *fmt = "%s";
36119 vsnprintf(buf, 10u, fmt, ap);
36120
36121 ;
36122 return 0;
36123}
36124_ACEOF
36125rm -f conftest.$ac_objext
47964710
VS
36126if { (ac_try="$ac_compile"
36127case "(($ac_try" in
36128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36129 *) ac_try_echo=$ac_try;;
36130esac
d589327a 36131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 36132 (eval "$ac_compile") 2>conftest.er1
62fa8b3a
MW
36133 ac_status=$?
36134 grep -v '^ *+' conftest.er1 >conftest.err
36135 rm -f conftest.er1
36136 cat conftest.err >&5
d589327a 36137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710 36138 (exit $ac_status); } && {
5cfbef2a 36139 test -z "$ac_cxx_werror_flag" ||
47964710
VS
36140 test ! -s conftest.err
36141 } && test -s conftest.$ac_objext; then
62fa8b3a
MW
36142 wx_cv_func_broken_vsnprintf_decl=no
36143else
d589327a 36144 echo "$as_me: failed program was:" >&5
62fa8b3a
MW
36145sed 's/^/| /' conftest.$ac_ext >&5
36146
47964710 36147 wx_cv_func_broken_vsnprintf_decl=yes
62fa8b3a
MW
36148
36149fi
47964710
VS
36150
36151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62fa8b3a
MW
36152
36153
36154fi
d589327a
VZ
36155{ echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
36156echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
62fa8b3a
MW
36157
36158 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
36159 cat >>confdefs.h <<\_ACEOF
36160#define HAVE_BROKEN_VSNPRINTF_DECL 1
36161_ACEOF
36162
36163 fi
a848cd7e
SC
36164 fi
36165fi
36166
4a767dd5 36167if test "$ac_cv_func_snprintf" = "yes"; then
d589327a
VZ
36168 { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
36169echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
4a767dd5 36170if test "${wx_cv_func_snprintf_decl+set}" = set; then
d589327a 36171 echo $ECHO_N "(cached) $ECHO_C" >&6
4a767dd5
VZ
36172else
36173
36174 cat >conftest.$ac_ext <<_ACEOF
36175/* confdefs.h. */
36176_ACEOF
36177cat confdefs.h >>conftest.$ac_ext
36178cat >>conftest.$ac_ext <<_ACEOF
36179/* end confdefs.h. */
36180
36181 #include <stdio.h>
36182 #include <stdarg.h>
36183 #ifdef __MSL__
36184 #if __MSL__ >= 0x6000
36185 namespace std {}
36186 using namespace std;
36187 #endif
36188 #endif
36189
36190int
36191main ()
36192{
36193
36194 char *buf;
62fa8b3a 36195 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
36196
36197 ;
36198 return 0;
36199}
36200_ACEOF
36201rm -f conftest.$ac_objext
47964710
VS
36202if { (ac_try="$ac_compile"
36203case "(($ac_try" in
36204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36205 *) ac_try_echo=$ac_try;;
36206esac
d589327a 36207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 36208 (eval "$ac_compile") 2>conftest.er1
4a767dd5
VZ
36209 ac_status=$?
36210 grep -v '^ *+' conftest.er1 >conftest.err
36211 rm -f conftest.er1
36212 cat conftest.err >&5
d589327a 36213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710 36214 (exit $ac_status); } && {
5cfbef2a 36215 test -z "$ac_cxx_werror_flag" ||
47964710
VS
36216 test ! -s conftest.err
36217 } && test -s conftest.$ac_objext; then
4a767dd5
VZ
36218 wx_cv_func_snprintf_decl=yes
36219else
d589327a 36220 echo "$as_me: failed program was:" >&5
4a767dd5
VZ
36221sed 's/^/| /' conftest.$ac_ext >&5
36222
47964710 36223 wx_cv_func_snprintf_decl=no
4a767dd5
VZ
36224
36225fi
47964710
VS
36226
36227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4a767dd5
VZ
36228
36229
36230fi
d589327a
VZ
36231{ echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
36232echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
4a767dd5
VZ
36233
36234 if test "$wx_cv_func_snprintf_decl" = "yes"; then
36235 cat >>confdefs.h <<\_ACEOF
36236#define HAVE_SNPRINTF_DECL 1
36237_ACEOF
36238
8b6682b9
JS
36239 fi
36240
36241 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
36242
d589327a
VZ
36243 { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
36244echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
8b6682b9 36245if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
d589327a 36246 echo $ECHO_N "(cached) $ECHO_C" >&6
8b6682b9
JS
36247else
36248
36249 if test "$cross_compiling" = yes; then
5039a2df 36250
d589327a 36251 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
5039a2df 36252define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
d589327a 36253echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
5039a2df
VZ
36254define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
36255 wx_cv_func_snprintf_pos_params=no
36256
36257
8b6682b9
JS
36258else
36259 cat >conftest.$ac_ext <<_ACEOF
36260/* confdefs.h. */
36261_ACEOF
36262cat confdefs.h >>conftest.$ac_ext
36263cat >>conftest.$ac_ext <<_ACEOF
36264/* end confdefs.h. */
36265
36266 #include <stdio.h>
36267
36268 int main (void)
36269 {
36270 char buffer[128];
f321ab7f 36271 snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
8b6682b9
JS
36272 if (strcmp ("2 3 1", buffer) == 0)
36273 exit (0);
36274 exit (1);
36275 }
36276
36277_ACEOF
36278rm -f conftest$ac_exeext
47964710
VS
36279if { (ac_try="$ac_link"
36280case "(($ac_try" in
36281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36282 *) ac_try_echo=$ac_try;;
36283esac
d589327a 36284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 36285 (eval "$ac_link") 2>&5
8b6682b9 36286 ac_status=$?
d589327a 36287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8b6682b9 36288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
36289 { (case "(($ac_try" in
36290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36291 *) ac_try_echo=$ac_try;;
36292esac
d589327a 36293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 36294 (eval "$ac_try") 2>&5
8b6682b9 36295 ac_status=$?
d589327a 36296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8b6682b9
JS
36297 (exit $ac_status); }; }; then
36298 wx_cv_func_snprintf_pos_params=no
36299else
d589327a
VZ
36300 echo "$as_me: program exited with status $ac_status" >&5
36301echo "$as_me: failed program was:" >&5
8b6682b9
JS
36302sed 's/^/| /' conftest.$ac_ext >&5
36303
36304( exit $ac_status )
36305wx_cv_func_snprintf_pos_params=yes
8b6682b9 36306fi
47964710 36307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8b6682b9
JS
36308fi
36309
36310
47964710
VS
36311
36312
8b6682b9 36313fi
d589327a
VZ
36314{ echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
36315echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
8b6682b9
JS
36316
36317 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
36318 cat >>confdefs.h <<\_ACEOF
36319#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
36320_ACEOF
36321
36322 fi
4a767dd5
VZ
36323 fi
36324fi
36325
d7bf6c20 36326if test "$ac_cv_func_vsscanf" = "yes"; then
d589327a
VZ
36327 { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
36328echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
d7bf6c20 36329if test "${wx_cv_func_vsscanf_decl+set}" = set; then
d589327a 36330 echo $ECHO_N "(cached) $ECHO_C" >&6
d7bf6c20
VZ
36331else
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 #include <stdio.h>
36341 #include <stdarg.h>
36342 #ifdef __MSL__
36343 #if __MSL__ >= 0x6000
36344 namespace std {}
36345 using namespace std;
36346 #endif
36347 #endif
36348
36349int
36350main ()
36351{
36352
efce184b
VZ
36353 char *buf;
36354 va_list args;
36355 vsscanf(buf, "%s", args);
d7bf6c20
VZ
36356
36357 ;
36358 return 0;
36359}
36360_ACEOF
36361rm -f conftest.$ac_objext
36362if { (ac_try="$ac_compile"
36363case "(($ac_try" in
36364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36365 *) ac_try_echo=$ac_try;;
36366esac
d589327a 36367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d7bf6c20
VZ
36368 (eval "$ac_compile") 2>conftest.er1
36369 ac_status=$?
36370 grep -v '^ *+' conftest.er1 >conftest.err
36371 rm -f conftest.er1
36372 cat conftest.err >&5
d589327a 36373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7bf6c20 36374 (exit $ac_status); } && {
5cfbef2a 36375 test -z "$ac_cxx_werror_flag" ||
d7bf6c20
VZ
36376 test ! -s conftest.err
36377 } && test -s conftest.$ac_objext; then
36378 wx_cv_func_vsscanf_decl=yes
36379else
d589327a 36380 echo "$as_me: failed program was:" >&5
d7bf6c20
VZ
36381sed 's/^/| /' conftest.$ac_ext >&5
36382
36383 wx_cv_func_vsscanf_decl=no
36384
36385fi
36386
36387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36388
36389
36390fi
d589327a
VZ
36391{ echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
36392echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
d7bf6c20
VZ
36393
36394 if test "$wx_cv_func_vsscanf_decl" = "yes"; then
36395 cat >>confdefs.h <<\_ACEOF
36396#define HAVE_VSSCANF_DECL 1
36397_ACEOF
36398
36399 fi
36400fi
5cfbef2a 36401ac_ext=c
e203535f
SN
36402ac_cpp='$CPP $CPPFLAGS'
36403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36405ac_compiler_gnu=$ac_cv_c_compiler_gnu
36406
d7bf6c20 36407
a848cd7e
SC
36408if test "$wxUSE_UNICODE" = yes; then
36409
a49ffb32
VZ
36410 wchar_headers="#include <stdio.h>
36411#include <wchar.h>"
36412 case "${host}" in
36413 *-*-solaris2* )
be2ad872
PC
36414
36415for ac_header in widec.h
36416do
d589327a
VZ
36417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36418{ echo "$as_me:$LINENO: checking for $ac_header" >&5
36419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47964710 36420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 36421 echo $ECHO_N "(cached) $ECHO_C" >&6
a49ffb32 36422else
6e7b8bcb 36423 cat >conftest.$ac_ext <<_ACEOF
a49ffb32
VZ
36424/* confdefs.h. */
36425_ACEOF
36426cat confdefs.h >>conftest.$ac_ext
36427cat >>conftest.$ac_ext <<_ACEOF
36428/* end confdefs.h. */
36429$ac_includes_default
6e7b8bcb 36430
be2ad872 36431#include <$ac_header>
a49ffb32
VZ
36432_ACEOF
36433rm -f conftest.$ac_objext
47964710
VS
36434if { (ac_try="$ac_compile"
36435case "(($ac_try" in
36436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36437 *) ac_try_echo=$ac_try;;
36438esac
d589327a 36439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 36440 (eval "$ac_compile") 2>conftest.er1
a49ffb32
VZ
36441 ac_status=$?
36442 grep -v '^ *+' conftest.er1 >conftest.err
36443 rm -f conftest.er1
36444 cat conftest.err >&5
d589327a 36445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36446 (exit $ac_status); } && {
36447 test -z "$ac_c_werror_flag" ||
36448 test ! -s conftest.err
36449 } && test -s conftest.$ac_objext; then
be2ad872 36450 eval "$as_ac_Header=yes"
a49ffb32 36451else
d589327a 36452 echo "$as_me: failed program was:" >&5
a49ffb32
VZ
36453sed 's/^/| /' conftest.$ac_ext >&5
36454
47964710 36455 eval "$as_ac_Header=no"
a49ffb32 36456fi
47964710
VS
36457
36458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a49ffb32 36459fi
d589327a
VZ
36460ac_res=`eval echo '${'$as_ac_Header'}'`
36461 { echo "$as_me:$LINENO: result: $ac_res" >&5
36462echo "${ECHO_T}$ac_res" >&6; }
36463if test `eval echo '${'$as_ac_Header'}'` = yes; then
be2ad872 36464 cat >>confdefs.h <<_ACEOF
d589327a 36465#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
be2ad872 36466_ACEOF
7fd3acaf 36467
be2ad872
PC
36468fi
36469
36470done
a49ffb32
VZ
36471
36472 if test "$ac_cv_header_widec_h" = "yes"; then
36473 wchar_headers="$wchar_headers
36474#include <widec.h>"
36475 fi
36476 esac
36477
6a5c9b3f 36478
ccd96bfe 36479 for wx_func in putws fputws wprintf vswprintf vswscanf
fd5199d6 36480 do
d589327a
VZ
36481 { echo "$as_me:$LINENO: checking for $wx_func" >&5
36482echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
47964710 36483if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 36484 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 36485else
fd5199d6
VZ
36486
36487 cat >conftest.$ac_ext <<_ACEOF
36488
36489 /* confdefs.h. */
a848cd7e
SC
36490_ACEOF
36491cat confdefs.h >>conftest.$ac_ext
36492cat >>conftest.$ac_ext <<_ACEOF
36493/* end confdefs.h. */
ac1cb8d3 36494
a49ffb32 36495 $wchar_headers
fd5199d6 36496 $ac_includes_default
a848cd7e
SC
36497
36498int
36499main ()
36500{
fd5199d6
VZ
36501
36502 #ifndef $wx_func
36503 &$wx_func;
36504 #endif
36505
36506
a848cd7e
SC
36507 ;
36508 return 0;
36509}
fd5199d6 36510
a848cd7e
SC
36511_ACEOF
36512rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
36513if { (ac_try="$ac_link"
36514case "(($ac_try" in
36515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36516 *) ac_try_echo=$ac_try;;
36517esac
d589327a 36518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 36519 (eval "$ac_link") 2>conftest.er1
a848cd7e 36520 ac_status=$?
ac1cb8d3
VS
36521 grep -v '^ *+' conftest.er1 >conftest.err
36522 rm -f conftest.er1
36523 cat conftest.err >&5
d589327a 36524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36525 (exit $ac_status); } && {
36526 test -z "$ac_c_werror_flag" ||
36527 test ! -s conftest.err
d589327a
VZ
36528 } && test -s conftest$ac_exeext &&
36529 $as_test_x conftest$ac_exeext; then
fd5199d6 36530 eval wx_cv_func_$wx_func=yes
a848cd7e 36531else
d589327a 36532 echo "$as_me: failed program was:" >&5
a848cd7e
SC
36533sed 's/^/| /' conftest.$ac_ext >&5
36534
47964710 36535 eval wx_cv_func_$wx_func=no
a848cd7e 36536fi
47964710
VS
36537
36538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 36539 conftest$ac_exeext conftest.$ac_ext
fd5199d6 36540
a848cd7e 36541fi
d589327a
VZ
36542ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36543 { echo "$as_me:$LINENO: result: $ac_res" >&5
36544echo "${ECHO_T}$ac_res" >&6; }
fd5199d6
VZ
36545
36546 if eval test \$wx_cv_func_$wx_func = yes
36547 then
36548 cat >>confdefs.h <<_ACEOF
d589327a 36549#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
a848cd7e
SC
36550_ACEOF
36551
fd5199d6
VZ
36552
36553 else
36554 :
36555
36556 fi
36557 done
a848cd7e
SC
36558
36559
d589327a
VZ
36560 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
36561echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
a848cd7e
SC
36562 cat >conftest.$ac_ext <<_ACEOF
36563/* confdefs.h. */
36564_ACEOF
36565cat confdefs.h >>conftest.$ac_ext
36566cat >>conftest.$ac_ext <<_ACEOF
36567/* end confdefs.h. */
36568#include <wchar.h>
36569int
36570main ()
36571{
36572&_vsnwprintf;
36573 ;
36574 return 0;
36575}
36576_ACEOF
36577rm -f conftest.$ac_objext
47964710
VS
36578if { (ac_try="$ac_compile"
36579case "(($ac_try" in
36580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36581 *) ac_try_echo=$ac_try;;
36582esac
d589327a 36583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 36584 (eval "$ac_compile") 2>conftest.er1
a848cd7e 36585 ac_status=$?
ac1cb8d3
VS
36586 grep -v '^ *+' conftest.er1 >conftest.err
36587 rm -f conftest.er1
36588 cat conftest.err >&5
d589327a 36589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36590 (exit $ac_status); } && {
36591 test -z "$ac_c_werror_flag" ||
36592 test ! -s conftest.err
36593 } && test -s conftest.$ac_objext; then
d589327a
VZ
36594 { echo "$as_me:$LINENO: result: yes" >&5
36595echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
36596 cat >>confdefs.h <<\_ACEOF
36597#define HAVE__VSNWPRINTF 1
36598_ACEOF
36599
36600else
d589327a 36601 echo "$as_me: failed program was:" >&5
a848cd7e
SC
36602sed 's/^/| /' conftest.$ac_ext >&5
36603
d589327a
VZ
36604 { echo "$as_me:$LINENO: result: no" >&5
36605echo "${ECHO_T}no" >&6; }
a848cd7e 36606fi
47964710
VS
36607
36608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
36609fi
36610
6ebeb4c7
VZ
36611if test "$wxUSE_FILE" = "yes"; then
36612
fd5199d6
VZ
36613 for wx_func in fsync
36614 do
d589327a
VZ
36615 { echo "$as_me:$LINENO: checking for $wx_func" >&5
36616echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
47964710 36617if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 36618 echo $ECHO_N "(cached) $ECHO_C" >&6
6ebeb4c7 36619else
fd5199d6
VZ
36620
36621 cat >conftest.$ac_ext <<_ACEOF
36622
36623 /* confdefs.h. */
6ebeb4c7
VZ
36624_ACEOF
36625cat confdefs.h >>conftest.$ac_ext
36626cat >>conftest.$ac_ext <<_ACEOF
36627/* end confdefs.h. */
6ebeb4c7 36628
6ebeb4c7 36629
fd5199d6 36630 $ac_includes_default
6ebeb4c7
VZ
36631
36632int
36633main ()
36634{
fd5199d6
VZ
36635
36636 #ifndef $wx_func
36637 &$wx_func;
36638 #endif
36639
36640
6ebeb4c7
VZ
36641 ;
36642 return 0;
36643}
fd5199d6 36644
6ebeb4c7
VZ
36645_ACEOF
36646rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
36647if { (ac_try="$ac_link"
36648case "(($ac_try" in
36649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36650 *) ac_try_echo=$ac_try;;
36651esac
d589327a 36652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 36653 (eval "$ac_link") 2>conftest.er1
6ebeb4c7
VZ
36654 ac_status=$?
36655 grep -v '^ *+' conftest.er1 >conftest.err
36656 rm -f conftest.er1
36657 cat conftest.err >&5
d589327a 36658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36659 (exit $ac_status); } && {
36660 test -z "$ac_c_werror_flag" ||
36661 test ! -s conftest.err
d589327a
VZ
36662 } && test -s conftest$ac_exeext &&
36663 $as_test_x conftest$ac_exeext; then
fd5199d6 36664 eval wx_cv_func_$wx_func=yes
6ebeb4c7 36665else
d589327a 36666 echo "$as_me: failed program was:" >&5
6ebeb4c7
VZ
36667sed 's/^/| /' conftest.$ac_ext >&5
36668
47964710 36669 eval wx_cv_func_$wx_func=no
6ebeb4c7 36670fi
47964710
VS
36671
36672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6ebeb4c7 36673 conftest$ac_exeext conftest.$ac_ext
fd5199d6 36674
6ebeb4c7 36675fi
d589327a
VZ
36676ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36677 { echo "$as_me:$LINENO: result: $ac_res" >&5
36678echo "${ECHO_T}$ac_res" >&6; }
fd5199d6
VZ
36679
36680 if eval test \$wx_cv_func_$wx_func = yes
36681 then
36682 cat >>confdefs.h <<_ACEOF
d589327a 36683#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
6ebeb4c7
VZ
36684_ACEOF
36685
fd5199d6
VZ
36686
36687 else
36688 :
36689
36690 fi
36691 done
6ebeb4c7
VZ
36692
36693fi
a848cd7e 36694
47964710 36695ac_ext=cpp
371bc2f7
VZ
36696ac_cpp='$CXXCPP $CPPFLAGS'
36697ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36698ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36699ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36700
a848cd7e 36701
fd5199d6
VZ
36702 for wx_func in round
36703 do
d589327a
VZ
36704 { echo "$as_me:$LINENO: checking for $wx_func" >&5
36705echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
47964710 36706if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 36707 echo $ECHO_N "(cached) $ECHO_C" >&6
c2e9ada4 36708else
fd5199d6
VZ
36709
36710 cat >conftest.$ac_ext <<_ACEOF
36711
36712 /* confdefs.h. */
c2e9ada4
VZ
36713_ACEOF
36714cat confdefs.h >>conftest.$ac_ext
36715cat >>conftest.$ac_ext <<_ACEOF
36716/* end confdefs.h. */
c2e9ada4 36717
fd5199d6
VZ
36718 #include <math.h>
36719 $ac_includes_default
c2e9ada4
VZ
36720
36721int
36722main ()
36723{
fd5199d6
VZ
36724
36725 #ifndef $wx_func
36726 &$wx_func;
36727 #endif
36728
36729
c2e9ada4
VZ
36730 ;
36731 return 0;
36732}
fd5199d6 36733
c2e9ada4
VZ
36734_ACEOF
36735rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
36736if { (ac_try="$ac_link"
36737case "(($ac_try" in
36738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36739 *) ac_try_echo=$ac_try;;
36740esac
d589327a 36741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 36742 (eval "$ac_link") 2>conftest.er1
c2e9ada4
VZ
36743 ac_status=$?
36744 grep -v '^ *+' conftest.er1 >conftest.err
36745 rm -f conftest.er1
36746 cat conftest.err >&5
d589327a 36747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36748 (exit $ac_status); } && {
36749 test -z "$ac_cxx_werror_flag" ||
36750 test ! -s conftest.err
d589327a
VZ
36751 } && test -s conftest$ac_exeext &&
36752 $as_test_x conftest$ac_exeext; then
fd5199d6 36753 eval wx_cv_func_$wx_func=yes
c2e9ada4 36754else
d589327a 36755 echo "$as_me: failed program was:" >&5
c2e9ada4
VZ
36756sed 's/^/| /' conftest.$ac_ext >&5
36757
47964710 36758 eval wx_cv_func_$wx_func=no
c2e9ada4 36759fi
47964710
VS
36760
36761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
c2e9ada4 36762 conftest$ac_exeext conftest.$ac_ext
c2e9ada4 36763
c2e9ada4 36764fi
d589327a
VZ
36765ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36766 { echo "$as_me:$LINENO: result: $ac_res" >&5
36767echo "${ECHO_T}$ac_res" >&6; }
c2e9ada4 36768
fd5199d6
VZ
36769 if eval test \$wx_cv_func_$wx_func = yes
36770 then
36771 cat >>confdefs.h <<_ACEOF
d589327a 36772#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
c2e9ada4
VZ
36773_ACEOF
36774
36775
fd5199d6
VZ
36776 else
36777 :
c2e9ada4 36778
fd5199d6
VZ
36779 fi
36780 done
c2e9ada4 36781
371bc2f7
VZ
36782ac_ext=c
36783ac_cpp='$CPP $CPPFLAGS'
36784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36786ac_compiler_gnu=$ac_cv_c_compiler_gnu
36787
c2e9ada4 36788
a848cd7e
SC
36789if test "$TOOLKIT" != "MSW"; then
36790
e9efd9f1 36791if test "$wxUSE_LIBICONV" != "no" ; then
a848cd7e
SC
36792
36793
36794
47964710 36795# Check whether --with-libiconv-prefix was given.
a848cd7e 36796if test "${with_libiconv_prefix+set}" = set; then
47964710 36797 withval=$with_libiconv_prefix;
a848cd7e
SC
36798 for dir in `echo "$withval" | tr : ' '`; do
36799 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36800 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36801 done
36802
47964710 36803fi
faa5c14f 36804
47964710 36805
d589327a
VZ
36806 { echo "$as_me:$LINENO: checking for iconv" >&5
36807echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
a848cd7e 36808if test "${am_cv_func_iconv+set}" = set; then
d589327a 36809 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
36810else
36811
36812 am_cv_func_iconv="no, consider installing GNU libiconv"
36813 am_cv_lib_iconv=no
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 <stdlib.h>
36821#include <iconv.h>
36822int
36823main ()
36824{
36825iconv_t cd = iconv_open("","");
36826 iconv(cd,NULL,NULL,NULL,NULL);
36827 iconv_close(cd);
36828 ;
36829 return 0;
36830}
36831_ACEOF
36832rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
36833if { (ac_try="$ac_link"
36834case "(($ac_try" in
36835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36836 *) ac_try_echo=$ac_try;;
36837esac
d589327a 36838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 36839 (eval "$ac_link") 2>conftest.er1
a848cd7e 36840 ac_status=$?
ac1cb8d3
VS
36841 grep -v '^ *+' conftest.er1 >conftest.err
36842 rm -f conftest.er1
36843 cat conftest.err >&5
d589327a 36844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36845 (exit $ac_status); } && {
36846 test -z "$ac_c_werror_flag" ||
36847 test ! -s conftest.err
d589327a
VZ
36848 } && test -s conftest$ac_exeext &&
36849 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
36850 am_cv_func_iconv=yes
36851else
d589327a 36852 echo "$as_me: failed program was:" >&5
a848cd7e
SC
36853sed 's/^/| /' conftest.$ac_ext >&5
36854
47964710 36855
a848cd7e 36856fi
47964710
VS
36857
36858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 36859 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36860 if test "$am_cv_func_iconv" != yes; then
36861 am_save_LIBS="$LIBS"
36862 LIBS="$LIBS -liconv"
36863 cat >conftest.$ac_ext <<_ACEOF
36864/* confdefs.h. */
36865_ACEOF
36866cat confdefs.h >>conftest.$ac_ext
36867cat >>conftest.$ac_ext <<_ACEOF
36868/* end confdefs.h. */
36869#include <stdlib.h>
36870#include <iconv.h>
36871int
36872main ()
36873{
36874iconv_t cd = iconv_open("","");
36875 iconv(cd,NULL,NULL,NULL,NULL);
36876 iconv_close(cd);
36877 ;
36878 return 0;
36879}
36880_ACEOF
36881rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
36882if { (ac_try="$ac_link"
36883case "(($ac_try" in
36884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36885 *) ac_try_echo=$ac_try;;
36886esac
d589327a 36887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 36888 (eval "$ac_link") 2>conftest.er1
a848cd7e 36889 ac_status=$?
ac1cb8d3
VS
36890 grep -v '^ *+' conftest.er1 >conftest.err
36891 rm -f conftest.er1
36892 cat conftest.err >&5
d589327a 36893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36894 (exit $ac_status); } && {
36895 test -z "$ac_c_werror_flag" ||
36896 test ! -s conftest.err
d589327a
VZ
36897 } && test -s conftest$ac_exeext &&
36898 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
36899 am_cv_lib_iconv=yes
36900 am_cv_func_iconv=yes
36901else
d589327a 36902 echo "$as_me: failed program was:" >&5
a848cd7e
SC
36903sed 's/^/| /' conftest.$ac_ext >&5
36904
47964710 36905
a848cd7e 36906fi
47964710
VS
36907
36908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 36909 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36910 LIBS="$am_save_LIBS"
36911 fi
36912
36913fi
d589327a
VZ
36914{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36915echo "${ECHO_T}$am_cv_func_iconv" >&6; }
a848cd7e
SC
36916 if test "$am_cv_func_iconv" = yes; then
36917
36918cat >>confdefs.h <<\_ACEOF
36919#define HAVE_ICONV 1
36920_ACEOF
36921
d589327a
VZ
36922 { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36923echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
a848cd7e 36924if test "${wx_cv_func_iconv_const+set}" = set; then
d589327a 36925 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
36926else
36927 cat >conftest.$ac_ext <<_ACEOF
36928/* confdefs.h. */
36929_ACEOF
36930cat confdefs.h >>conftest.$ac_ext
36931cat >>conftest.$ac_ext <<_ACEOF
36932/* end confdefs.h. */
36933
36934#include <stdlib.h>
36935#include <iconv.h>
36936extern
36937#ifdef __cplusplus
36938"C"
36939#endif
36940#if defined(__STDC__) || defined(__cplusplus)
36941size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36942#else
36943size_t iconv();
36944#endif
36945
36946int
36947main ()
36948{
36949
36950 ;
36951 return 0;
36952}
36953_ACEOF
36954rm -f conftest.$ac_objext
47964710
VS
36955if { (ac_try="$ac_compile"
36956case "(($ac_try" in
36957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36958 *) ac_try_echo=$ac_try;;
36959esac
d589327a 36960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 36961 (eval "$ac_compile") 2>conftest.er1
a848cd7e 36962 ac_status=$?
ac1cb8d3
VS
36963 grep -v '^ *+' conftest.er1 >conftest.err
36964 rm -f conftest.er1
36965 cat conftest.err >&5
d589327a 36966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
36967 (exit $ac_status); } && {
36968 test -z "$ac_c_werror_flag" ||
36969 test ! -s conftest.err
36970 } && test -s conftest.$ac_objext; then
a848cd7e
SC
36971 wx_cv_func_iconv_const="no"
36972else
d589327a 36973 echo "$as_me: failed program was:" >&5
a848cd7e
SC
36974sed 's/^/| /' conftest.$ac_ext >&5
36975
47964710 36976 wx_cv_func_iconv_const="yes"
a848cd7e
SC
36977
36978fi
47964710
VS
36979
36980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36981
36982fi
d589327a
VZ
36983{ echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36984echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
a848cd7e
SC
36985
36986 iconv_const=
36987 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36988 iconv_const="const"
36989 fi
36990
36991
36992cat >>confdefs.h <<_ACEOF
36993#define ICONV_CONST $iconv_const
36994_ACEOF
36995
36996 fi
36997 LIBICONV=
36998 if test "$am_cv_lib_iconv" = yes; then
36999 LIBICONV="-liconv"
37000 fi
37001
37002
e9efd9f1
VZ
37003 LIBS="$LIBICONV $LIBS"
37004fi
a848cd7e
SC
37005
37006if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37007
37008for ac_func in sigaction
37009do
d589327a
VZ
37010as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37011{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37012echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 37013if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 37014 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
37015else
37016 cat >conftest.$ac_ext <<_ACEOF
37017/* confdefs.h. */
37018_ACEOF
37019cat confdefs.h >>conftest.$ac_ext
37020cat >>conftest.$ac_ext <<_ACEOF
37021/* end confdefs.h. */
ac1cb8d3
VS
37022/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37024#define $ac_func innocuous_$ac_func
37025
a848cd7e
SC
37026/* System header to define __stub macros and hopefully few prototypes,
37027 which can conflict with char $ac_func (); below.
37028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37029 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37030
a848cd7e
SC
37031#ifdef __STDC__
37032# include <limits.h>
37033#else
37034# include <assert.h>
37035#endif
ac1cb8d3
VS
37036
37037#undef $ac_func
37038
47964710
VS
37039/* Override any GCC internal prototype to avoid an error.
37040 Use char because int might match the return type of a GCC
37041 builtin and then its argument prototype would still apply. */
a848cd7e
SC
37042#ifdef __cplusplus
37043extern "C"
a848cd7e 37044#endif
a848cd7e
SC
37045char $ac_func ();
37046/* The GNU C library defines this for functions which it implements
37047 to always fail with ENOSYS. Some functions are actually named
37048 something starting with __ and the normal name is an alias. */
47964710 37049#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 37050choke me
a848cd7e
SC
37051#endif
37052
37053int
37054main ()
37055{
47964710 37056return $ac_func ();
a848cd7e
SC
37057 ;
37058 return 0;
37059}
37060_ACEOF
37061rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
37062if { (ac_try="$ac_link"
37063case "(($ac_try" in
37064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37065 *) ac_try_echo=$ac_try;;
37066esac
d589327a 37067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 37068 (eval "$ac_link") 2>conftest.er1
a848cd7e 37069 ac_status=$?
ac1cb8d3
VS
37070 grep -v '^ *+' conftest.er1 >conftest.err
37071 rm -f conftest.er1
37072 cat conftest.err >&5
d589327a 37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37074 (exit $ac_status); } && {
37075 test -z "$ac_c_werror_flag" ||
37076 test ! -s conftest.err
d589327a
VZ
37077 } && test -s conftest$ac_exeext &&
37078 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
37079 eval "$as_ac_var=yes"
37080else
d589327a 37081 echo "$as_me: failed program was:" >&5
a848cd7e
SC
37082sed 's/^/| /' conftest.$ac_ext >&5
37083
47964710 37084 eval "$as_ac_var=no"
a848cd7e 37085fi
47964710
VS
37086
37087rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 37088 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37089fi
d589327a
VZ
37090ac_res=`eval echo '${'$as_ac_var'}'`
37091 { echo "$as_me:$LINENO: result: $ac_res" >&5
37092echo "${ECHO_T}$ac_res" >&6; }
37093if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 37094 cat >>confdefs.h <<_ACEOF
d589327a 37095#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
37096_ACEOF
37097
37098fi
37099done
37100
37101
37102 if test "$ac_cv_func_sigaction" = "no"; then
d589327a
VZ
37103 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
37104echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
a848cd7e
SC
37105 wxUSE_ON_FATAL_EXCEPTION=no
37106 fi
37107
37108 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
d589327a
VZ
37109 { echo "$as_me:$LINENO: checking for sa_handler type" >&5
37110echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
a848cd7e 37111if test "${wx_cv_type_sa_handler+set}" = set; then
d589327a 37112 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
37113else
37114
47964710 37115 ac_ext=cpp
9b8888f9
VZ
37116ac_cpp='$CXXCPP $CPPFLAGS'
37117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37120
a848cd7e
SC
37121 cat >conftest.$ac_ext <<_ACEOF
37122/* confdefs.h. */
37123_ACEOF
37124cat confdefs.h >>conftest.$ac_ext
37125cat >>conftest.$ac_ext <<_ACEOF
37126/* end confdefs.h. */
37127#include <signal.h>
37128int
37129main ()
37130{
37131
37132 extern void testSigHandler(int);
37133
37134 struct sigaction sa;
37135 sa.sa_handler = testSigHandler;
37136
37137 ;
37138 return 0;
37139}
37140_ACEOF
37141rm -f conftest.$ac_objext
47964710
VS
37142if { (ac_try="$ac_compile"
37143case "(($ac_try" in
37144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37145 *) ac_try_echo=$ac_try;;
37146esac
d589327a 37147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 37148 (eval "$ac_compile") 2>conftest.er1
a848cd7e 37149 ac_status=$?
ac1cb8d3
VS
37150 grep -v '^ *+' conftest.er1 >conftest.err
37151 rm -f conftest.er1
37152 cat conftest.err >&5
d589327a 37153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37154 (exit $ac_status); } && {
37155 test -z "$ac_cxx_werror_flag" ||
37156 test ! -s conftest.err
37157 } && test -s conftest.$ac_objext; then
a848cd7e
SC
37158
37159 wx_cv_type_sa_handler=int
37160
37161else
d589327a 37162 echo "$as_me: failed program was:" >&5
a848cd7e
SC
37163sed 's/^/| /' conftest.$ac_ext >&5
37164
37165
37166 wx_cv_type_sa_handler=void
37167
37168fi
47964710
VS
37169
37170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
37171 ac_ext=c
37172ac_cpp='$CPP $CPPFLAGS'
37173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37175ac_compiler_gnu=$ac_cv_c_compiler_gnu
37176
a848cd7e
SC
37177
37178fi
d589327a
VZ
37179{ echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
37180echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
a848cd7e 37181
a848cd7e
SC
37182 cat >>confdefs.h <<_ACEOF
37183#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
37184_ACEOF
37185
37186 fi
37187fi
37188
eaff0f0d 37189if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
a12bd55b
VZ
37190 { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
37191echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
37192if test "${wx_cv_func_backtrace+set}" = set; then
37193 echo $ECHO_N "(cached) $ECHO_C" >&6
37194else
37195
37196 ac_ext=cpp
9b8888f9
VZ
37197ac_cpp='$CXXCPP $CPPFLAGS'
37198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37201
a12bd55b 37202 cat >conftest.$ac_ext <<_ACEOF
eaff0f0d
VZ
37203/* confdefs.h. */
37204_ACEOF
37205cat confdefs.h >>conftest.$ac_ext
37206cat >>conftest.$ac_ext <<_ACEOF
37207/* end confdefs.h. */
37208#include <execinfo.h>
37209int
37210main ()
37211{
37212
37213 void *trace[1];
37214 char **messages;
a12bd55b 37215
eaff0f0d
VZ
37216 backtrace(trace, 1);
37217 messages = backtrace_symbols(trace, 1);
37218
37219 ;
37220 return 0;
37221}
37222_ACEOF
a12bd55b
VZ
37223rm -f conftest.$ac_objext
37224if { (ac_try="$ac_compile"
47964710
VS
37225case "(($ac_try" in
37226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37227 *) ac_try_echo=$ac_try;;
37228esac
d589327a 37229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a12bd55b 37230 (eval "$ac_compile") 2>conftest.er1
eaff0f0d
VZ
37231 ac_status=$?
37232 grep -v '^ *+' conftest.er1 >conftest.err
37233 rm -f conftest.er1
37234 cat conftest.err >&5
d589327a 37235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37236 (exit $ac_status); } && {
37237 test -z "$ac_cxx_werror_flag" ||
37238 test ! -s conftest.err
a12bd55b 37239 } && test -s conftest.$ac_objext; then
eaff0f0d
VZ
37240 wx_cv_func_backtrace=yes
37241else
d589327a 37242 echo "$as_me: failed program was:" >&5
eaff0f0d
VZ
37243sed 's/^/| /' conftest.$ac_ext >&5
37244
47964710 37245 wx_cv_func_backtrace=no
eaff0f0d
VZ
37246
37247fi
47964710 37248
a12bd55b
VZ
37249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37250 ac_ext=c
37251ac_cpp='$CPP $CPPFLAGS'
37252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37254ac_compiler_gnu=$ac_cv_c_compiler_gnu
37255
37256
eaff0f0d
VZ
37257
37258fi
d589327a
VZ
37259{ echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
37260echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
eaff0f0d
VZ
37261
37262
37263 if test "$wx_cv_func_backtrace" = "no"; then
d589327a
VZ
37264 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
37265echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
eaff0f0d
VZ
37266 wxUSE_STACKWALKER=no
37267 else
d589327a
VZ
37268 { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
37269echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
eaff0f0d 37270if test "${wx_cv_func_cxa_demangle+set}" = set; then
d589327a 37271 echo $ECHO_N "(cached) $ECHO_C" >&6
eaff0f0d
VZ
37272else
37273
a12bd55b
VZ
37274 ac_ext=cpp
37275ac_cpp='$CXXCPP $CPPFLAGS'
37276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37279
eaff0f0d
VZ
37280 cat >conftest.$ac_ext <<_ACEOF
37281/* confdefs.h. */
37282_ACEOF
37283cat confdefs.h >>conftest.$ac_ext
37284cat >>conftest.$ac_ext <<_ACEOF
37285/* end confdefs.h. */
37286#include <cxxabi.h>
37287int
37288main ()
37289{
37290
37291 int rc;
37292 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
37293
37294 ;
37295 return 0;
37296}
37297_ACEOF
dfe0c803 37298rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
37299if { (ac_try="$ac_link"
37300case "(($ac_try" in
37301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37302 *) ac_try_echo=$ac_try;;
37303esac
d589327a 37304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 37305 (eval "$ac_link") 2>conftest.er1
eaff0f0d
VZ
37306 ac_status=$?
37307 grep -v '^ *+' conftest.er1 >conftest.err
37308 rm -f conftest.er1
37309 cat conftest.err >&5
d589327a 37310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37311 (exit $ac_status); } && {
37312 test -z "$ac_cxx_werror_flag" ||
37313 test ! -s conftest.err
d589327a
VZ
37314 } && test -s conftest$ac_exeext &&
37315 $as_test_x conftest$ac_exeext; then
eaff0f0d
VZ
37316 wx_cv_func_cxa_demangle=yes
37317else
d589327a 37318 echo "$as_me: failed program was:" >&5
eaff0f0d
VZ
37319sed 's/^/| /' conftest.$ac_ext >&5
37320
47964710 37321 wx_cv_func_cxa_demangle=no
eaff0f0d
VZ
37322
37323fi
47964710
VS
37324
37325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
dfe0c803 37326 conftest$ac_exeext conftest.$ac_ext
a12bd55b
VZ
37327 ac_ext=c
37328ac_cpp='$CPP $CPPFLAGS'
37329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37331ac_compiler_gnu=$ac_cv_c_compiler_gnu
37332
eaff0f0d
VZ
37333
37334
37335fi
d589327a
VZ
37336{ echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
37337echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
eaff0f0d
VZ
37338
37339 if test "$wx_cv_func_cxa_demangle" = "yes"; then
37340 cat >>confdefs.h <<\_ACEOF
37341#define HAVE_CXA_DEMANGLE 1
37342_ACEOF
37343
37344 fi
37345 fi
eaff0f0d
VZ
37346fi
37347
6517fa86 37348if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
d589327a
VZ
37349 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
37350echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
898beab1
DE
37351 wxUSE_STACKWALKER=no
37352fi
37353
37354
a848cd7e
SC
37355
37356
37357for ac_func in mkstemp mktemp
37358do
d589327a
VZ
37359as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37360{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37361echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 37362if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 37363 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
37364else
37365 cat >conftest.$ac_ext <<_ACEOF
37366/* confdefs.h. */
37367_ACEOF
37368cat confdefs.h >>conftest.$ac_ext
37369cat >>conftest.$ac_ext <<_ACEOF
37370/* end confdefs.h. */
ac1cb8d3
VS
37371/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37373#define $ac_func innocuous_$ac_func
37374
a848cd7e
SC
37375/* System header to define __stub macros and hopefully few prototypes,
37376 which can conflict with char $ac_func (); below.
37377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37378 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37379
a848cd7e
SC
37380#ifdef __STDC__
37381# include <limits.h>
37382#else
37383# include <assert.h>
37384#endif
ac1cb8d3
VS
37385
37386#undef $ac_func
37387
47964710
VS
37388/* Override any GCC internal prototype to avoid an error.
37389 Use char because int might match the return type of a GCC
37390 builtin and then its argument prototype would still apply. */
a848cd7e
SC
37391#ifdef __cplusplus
37392extern "C"
a848cd7e 37393#endif
a848cd7e
SC
37394char $ac_func ();
37395/* The GNU C library defines this for functions which it implements
37396 to always fail with ENOSYS. Some functions are actually named
37397 something starting with __ and the normal name is an alias. */
47964710 37398#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 37399choke me
a848cd7e
SC
37400#endif
37401
37402int
37403main ()
37404{
47964710 37405return $ac_func ();
a848cd7e
SC
37406 ;
37407 return 0;
37408}
37409_ACEOF
37410rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
37411if { (ac_try="$ac_link"
37412case "(($ac_try" in
37413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37414 *) ac_try_echo=$ac_try;;
37415esac
d589327a 37416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 37417 (eval "$ac_link") 2>conftest.er1
a848cd7e 37418 ac_status=$?
ac1cb8d3
VS
37419 grep -v '^ *+' conftest.er1 >conftest.err
37420 rm -f conftest.er1
37421 cat conftest.err >&5
d589327a 37422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37423 (exit $ac_status); } && {
37424 test -z "$ac_c_werror_flag" ||
37425 test ! -s conftest.err
d589327a
VZ
37426 } && test -s conftest$ac_exeext &&
37427 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
37428 eval "$as_ac_var=yes"
37429else
d589327a 37430 echo "$as_me: failed program was:" >&5
a848cd7e
SC
37431sed 's/^/| /' conftest.$ac_ext >&5
37432
47964710 37433 eval "$as_ac_var=no"
a848cd7e 37434fi
47964710
VS
37435
37436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 37437 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37438fi
d589327a
VZ
37439ac_res=`eval echo '${'$as_ac_var'}'`
37440 { echo "$as_me:$LINENO: result: $ac_res" >&5
37441echo "${ECHO_T}$ac_res" >&6; }
37442if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 37443 cat >>confdefs.h <<_ACEOF
d589327a 37444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
37445_ACEOF
37446 break
37447fi
37448done
37449
37450
d589327a
VZ
37451{ echo "$as_me:$LINENO: checking for statfs" >&5
37452echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
a848cd7e 37453if test "${wx_cv_func_statfs+set}" = set; then
d589327a 37454 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
37455else
37456 cat >conftest.$ac_ext <<_ACEOF
37457/* confdefs.h. */
37458_ACEOF
37459cat confdefs.h >>conftest.$ac_ext
37460cat >>conftest.$ac_ext <<_ACEOF
37461/* end confdefs.h. */
37462
37463 #if defined(__BSD__)
84ae7ca4
VZ
37464 #include <sys/param.h>
37465 #include <sys/mount.h>
a848cd7e 37466 #else
84ae7ca4 37467 #include <sys/vfs.h>
a848cd7e
SC
37468 #endif
37469
37470int
37471main ()
37472{
37473
37474 long l;
37475 struct statfs fs;
37476 statfs("/", &fs);
37477 l = fs.f_bsize;
37478 l += fs.f_blocks;
37479 l += fs.f_bavail;
37480
37481 ;
37482 return 0;
37483}
37484_ACEOF
37485rm -f conftest.$ac_objext
47964710
VS
37486if { (ac_try="$ac_compile"
37487case "(($ac_try" in
37488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37489 *) ac_try_echo=$ac_try;;
37490esac
d589327a 37491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 37492 (eval "$ac_compile") 2>conftest.er1
a848cd7e 37493 ac_status=$?
ac1cb8d3
VS
37494 grep -v '^ *+' conftest.er1 >conftest.err
37495 rm -f conftest.er1
37496 cat conftest.err >&5
d589327a 37497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37498 (exit $ac_status); } && {
37499 test -z "$ac_c_werror_flag" ||
37500 test ! -s conftest.err
37501 } && test -s conftest.$ac_objext; then
84ae7ca4 37502 wx_cv_func_statfs=yes
a848cd7e 37503else
d589327a 37504 echo "$as_me: failed program was:" >&5
a848cd7e
SC
37505sed 's/^/| /' conftest.$ac_ext >&5
37506
47964710 37507 wx_cv_func_statfs=no
a848cd7e
SC
37508
37509fi
47964710
VS
37510
37511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37512
37513fi
d589327a
VZ
37514{ echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
37515echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
a848cd7e
SC
37516
37517if test "$wx_cv_func_statfs" = "yes"; then
d589327a
VZ
37518 { echo "$as_me:$LINENO: checking for statfs declaration" >&5
37519echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
84ae7ca4 37520if test "${wx_cv_func_statfs_decl+set}" = set; then
d589327a 37521 echo $ECHO_N "(cached) $ECHO_C" >&6
84ae7ca4 37522else
47964710 37523 ac_ext=cpp
9b8888f9
VZ
37524ac_cpp='$CXXCPP $CPPFLAGS'
37525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37528
37529 cat >conftest.$ac_ext <<_ACEOF
0683aca6
VZ
37530/* confdefs.h. */
37531_ACEOF
37532cat confdefs.h >>conftest.$ac_ext
37533cat >>conftest.$ac_ext <<_ACEOF
37534/* end confdefs.h. */
84ae7ca4 37535
0683aca6
VZ
37536 #if defined(__BSD__)
37537 #include <sys/param.h>
37538 #include <sys/mount.h>
37539 #else
37540 #include <sys/vfs.h>
37541 #endif
37542
37543int
37544main ()
37545{
37546
37547 struct statfs fs;
37548 statfs("", &fs);
37549
37550 ;
37551 return 0;
37552}
37553_ACEOF
37554rm -f conftest.$ac_objext
47964710
VS
37555if { (ac_try="$ac_compile"
37556case "(($ac_try" in
37557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37558 *) ac_try_echo=$ac_try;;
37559esac
d589327a 37560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 37561 (eval "$ac_compile") 2>conftest.er1
0683aca6
VZ
37562 ac_status=$?
37563 grep -v '^ *+' conftest.er1 >conftest.err
37564 rm -f conftest.er1
37565 cat conftest.err >&5
d589327a 37566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37567 (exit $ac_status); } && {
37568 test -z "$ac_cxx_werror_flag" ||
37569 test ! -s conftest.err
37570 } && test -s conftest.$ac_objext; then
0683aca6
VZ
37571 wx_cv_func_statfs_decl=yes
37572else
d589327a 37573 echo "$as_me: failed program was:" >&5
0683aca6
VZ
37574sed 's/^/| /' conftest.$ac_ext >&5
37575
47964710 37576 wx_cv_func_statfs_decl=no
0683aca6
VZ
37577
37578fi
47964710
VS
37579
37580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
37581 ac_ext=c
37582ac_cpp='$CPP $CPPFLAGS'
37583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37585ac_compiler_gnu=$ac_cv_c_compiler_gnu
37586
84ae7ca4
VZ
37587
37588fi
d589327a
VZ
37589{ echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37590echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
84ae7ca4
VZ
37591
37592 if test "$wx_cv_func_statfs_decl" = "yes"; then
37593 cat >>confdefs.h <<\_ACEOF
37594#define HAVE_STATFS_DECL 1
37595_ACEOF
37596
37597 fi
37598
a848cd7e
SC
37599 wx_cv_type_statvfs_t="struct statfs"
37600 cat >>confdefs.h <<\_ACEOF
37601#define HAVE_STATFS 1
37602_ACEOF
37603
37604else
d589327a
VZ
37605 { echo "$as_me:$LINENO: checking for statvfs" >&5
37606echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
a848cd7e 37607if test "${wx_cv_func_statvfs+set}" = set; then
d589327a 37608 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
37609else
37610 cat >conftest.$ac_ext <<_ACEOF
37611/* confdefs.h. */
37612_ACEOF
37613cat confdefs.h >>conftest.$ac_ext
37614cat >>conftest.$ac_ext <<_ACEOF
37615/* end confdefs.h. */
37616
37617 #include <stddef.h>
37618 #include <sys/statvfs.h>
37619
37620int
37621main ()
37622{
37623
37624 statvfs("/", NULL);
37625
37626 ;
37627 return 0;
37628}
37629_ACEOF
37630rm -f conftest.$ac_objext
47964710
VS
37631if { (ac_try="$ac_compile"
37632case "(($ac_try" in
37633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37634 *) ac_try_echo=$ac_try;;
37635esac
d589327a 37636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 37637 (eval "$ac_compile") 2>conftest.er1
a848cd7e 37638 ac_status=$?
ac1cb8d3
VS
37639 grep -v '^ *+' conftest.er1 >conftest.err
37640 rm -f conftest.er1
37641 cat conftest.err >&5
d589327a 37642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37643 (exit $ac_status); } && {
37644 test -z "$ac_c_werror_flag" ||
37645 test ! -s conftest.err
37646 } && test -s conftest.$ac_objext; then
a848cd7e
SC
37647 wx_cv_func_statvfs=yes
37648else
d589327a 37649 echo "$as_me: failed program was:" >&5
a848cd7e
SC
37650sed 's/^/| /' conftest.$ac_ext >&5
37651
47964710 37652 wx_cv_func_statvfs=no
a848cd7e
SC
37653
37654fi
47964710
VS
37655
37656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37657
37658fi
d589327a
VZ
37659{ echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37660echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
a848cd7e
SC
37661
37662 if test "$wx_cv_func_statvfs" = "yes"; then
d589327a
VZ
37663 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
37664echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
a848cd7e 37665if test "${wx_cv_type_statvfs_t+set}" = set; then
d589327a 37666 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 37667else
47964710 37668 ac_ext=cpp
9b8888f9
VZ
37669ac_cpp='$CXXCPP $CPPFLAGS'
37670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37673
37674 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
37675/* confdefs.h. */
37676_ACEOF
37677cat confdefs.h >>conftest.$ac_ext
37678cat >>conftest.$ac_ext <<_ACEOF
37679/* end confdefs.h. */
37680
37681 #include <sys/statvfs.h>
37682
37683int
37684main ()
37685{
37686
37687 long l;
37688 statvfs_t fs;
37689 statvfs("/", &fs);
37690 l = fs.f_bsize;
37691 l += fs.f_blocks;
37692 l += fs.f_bavail;
37693
37694 ;
37695 return 0;
37696}
37697_ACEOF
37698rm -f conftest.$ac_objext
47964710
VS
37699if { (ac_try="$ac_compile"
37700case "(($ac_try" in
37701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37702 *) ac_try_echo=$ac_try;;
37703esac
d589327a 37704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 37705 (eval "$ac_compile") 2>conftest.er1
a848cd7e 37706 ac_status=$?
ac1cb8d3
VS
37707 grep -v '^ *+' conftest.er1 >conftest.err
37708 rm -f conftest.er1
37709 cat conftest.err >&5
d589327a 37710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37711 (exit $ac_status); } && {
37712 test -z "$ac_cxx_werror_flag" ||
37713 test ! -s conftest.err
37714 } && test -s conftest.$ac_objext; then
a848cd7e
SC
37715 wx_cv_type_statvfs_t=statvfs_t
37716else
d589327a 37717 echo "$as_me: failed program was:" >&5
a848cd7e
SC
37718sed 's/^/| /' conftest.$ac_ext >&5
37719
37720
37721 cat >conftest.$ac_ext <<_ACEOF
37722/* confdefs.h. */
37723_ACEOF
37724cat confdefs.h >>conftest.$ac_ext
37725cat >>conftest.$ac_ext <<_ACEOF
37726/* end confdefs.h. */
37727
37728 #include <sys/statvfs.h>
37729
37730int
37731main ()
37732{
37733
37734 long l;
37735 struct statvfs fs;
37736 statvfs("/", &fs);
37737 l = fs.f_bsize;
37738 l += fs.f_blocks;
37739 l += fs.f_bavail;
37740
37741 ;
37742 return 0;
37743}
37744_ACEOF
37745rm -f conftest.$ac_objext
47964710
VS
37746if { (ac_try="$ac_compile"
37747case "(($ac_try" in
37748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37749 *) ac_try_echo=$ac_try;;
37750esac
d589327a 37751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 37752 (eval "$ac_compile") 2>conftest.er1
a848cd7e 37753 ac_status=$?
ac1cb8d3
VS
37754 grep -v '^ *+' conftest.er1 >conftest.err
37755 rm -f conftest.er1
37756 cat conftest.err >&5
d589327a 37757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37758 (exit $ac_status); } && {
37759 test -z "$ac_cxx_werror_flag" ||
37760 test ! -s conftest.err
37761 } && test -s conftest.$ac_objext; then
a848cd7e
SC
37762 wx_cv_type_statvfs_t="struct statvfs"
37763else
d589327a 37764 echo "$as_me: failed program was:" >&5
a848cd7e
SC
37765sed 's/^/| /' conftest.$ac_ext >&5
37766
47964710 37767 wx_cv_type_statvfs_t="unknown"
a848cd7e
SC
37768
37769fi
47964710
VS
37770
37771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37772
37773
37774fi
47964710
VS
37775
37776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
37777 ac_ext=c
37778ac_cpp='$CPP $CPPFLAGS'
37779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37781ac_compiler_gnu=$ac_cv_c_compiler_gnu
37782
a848cd7e
SC
37783
37784fi
d589327a
VZ
37785{ echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37786echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
a848cd7e 37787
a848cd7e
SC
37788 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37789 cat >>confdefs.h <<\_ACEOF
37790#define HAVE_STATVFS 1
37791_ACEOF
37792
37793 fi
37794 else
37795 wx_cv_type_statvfs_t="unknown"
37796 fi
37797fi
37798
37799if test "$wx_cv_type_statvfs_t" != "unknown"; then
37800 cat >>confdefs.h <<_ACEOF
37801#define WX_STATFS_T $wx_cv_type_statvfs_t
37802_ACEOF
37803
37804else
d589327a
VZ
37805 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37806echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
a848cd7e
SC
37807fi
37808
37809if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37810
37811
37812for ac_func in fcntl flock
37813do
d589327a
VZ
37814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37815{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 37817if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 37818 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
37819else
37820 cat >conftest.$ac_ext <<_ACEOF
37821/* confdefs.h. */
37822_ACEOF
37823cat confdefs.h >>conftest.$ac_ext
37824cat >>conftest.$ac_ext <<_ACEOF
37825/* end confdefs.h. */
ac1cb8d3
VS
37826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37828#define $ac_func innocuous_$ac_func
37829
a848cd7e
SC
37830/* System header to define __stub macros and hopefully few prototypes,
37831 which can conflict with char $ac_func (); below.
37832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37833 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37834
a848cd7e
SC
37835#ifdef __STDC__
37836# include <limits.h>
37837#else
37838# include <assert.h>
37839#endif
ac1cb8d3
VS
37840
37841#undef $ac_func
37842
47964710
VS
37843/* Override any GCC internal prototype to avoid an error.
37844 Use char because int might match the return type of a GCC
37845 builtin and then its argument prototype would still apply. */
a848cd7e
SC
37846#ifdef __cplusplus
37847extern "C"
a848cd7e 37848#endif
a848cd7e
SC
37849char $ac_func ();
37850/* The GNU C library defines this for functions which it implements
37851 to always fail with ENOSYS. Some functions are actually named
37852 something starting with __ and the normal name is an alias. */
47964710 37853#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 37854choke me
a848cd7e
SC
37855#endif
37856
37857int
37858main ()
37859{
47964710 37860return $ac_func ();
a848cd7e
SC
37861 ;
37862 return 0;
37863}
37864_ACEOF
37865rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
37866if { (ac_try="$ac_link"
37867case "(($ac_try" in
37868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37869 *) ac_try_echo=$ac_try;;
37870esac
d589327a 37871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 37872 (eval "$ac_link") 2>conftest.er1
a848cd7e 37873 ac_status=$?
ac1cb8d3
VS
37874 grep -v '^ *+' conftest.er1 >conftest.err
37875 rm -f conftest.er1
37876 cat conftest.err >&5
d589327a 37877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37878 (exit $ac_status); } && {
37879 test -z "$ac_c_werror_flag" ||
37880 test ! -s conftest.err
d589327a
VZ
37881 } && test -s conftest$ac_exeext &&
37882 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
37883 eval "$as_ac_var=yes"
37884else
d589327a 37885 echo "$as_me: failed program was:" >&5
a848cd7e
SC
37886sed 's/^/| /' conftest.$ac_ext >&5
37887
47964710 37888 eval "$as_ac_var=no"
a848cd7e 37889fi
47964710
VS
37890
37891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 37892 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37893fi
d589327a
VZ
37894ac_res=`eval echo '${'$as_ac_var'}'`
37895 { echo "$as_me:$LINENO: result: $ac_res" >&5
37896echo "${ECHO_T}$ac_res" >&6; }
37897if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 37898 cat >>confdefs.h <<_ACEOF
d589327a 37899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
37900_ACEOF
37901 break
37902fi
37903done
37904
37905
37906 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
d589327a
VZ
37907 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37908echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
a848cd7e
SC
37909 wxUSE_SNGLINST_CHECKER=no
37910 fi
37911fi
37912
37913
7fd3acaf 37914
c225b981 37915for ac_func in setenv putenv
7fd3acaf 37916do
d589327a
VZ
37917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37918{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 37920if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 37921 echo $ECHO_N "(cached) $ECHO_C" >&6
7fd3acaf
RD
37922else
37923 cat >conftest.$ac_ext <<_ACEOF
37924/* confdefs.h. */
37925_ACEOF
37926cat confdefs.h >>conftest.$ac_ext
37927cat >>conftest.$ac_ext <<_ACEOF
37928/* end confdefs.h. */
37929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37931#define $ac_func innocuous_$ac_func
37932
37933/* System header to define __stub macros and hopefully few prototypes,
37934 which can conflict with char $ac_func (); below.
37935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37936 <limits.h> exists even on freestanding compilers. */
37937
37938#ifdef __STDC__
37939# include <limits.h>
f321ab7f 37940#else
7fd3acaf 37941# include <assert.h>
f321ab7f 37942#endif
7fd3acaf
RD
37943
37944#undef $ac_func
37945
47964710
VS
37946/* Override any GCC internal prototype to avoid an error.
37947 Use char because int might match the return type of a GCC
37948 builtin and then its argument prototype would still apply. */
f321ab7f 37949#ifdef __cplusplus
7fd3acaf
RD
37950extern "C"
37951#endif
37952char $ac_func ();
37953/* The GNU C library defines this for functions which it implements
37954 to always fail with ENOSYS. Some functions are actually named
37955 something starting with __ and the normal name is an alias. */
47964710 37956#if defined __stub_$ac_func || defined __stub___$ac_func
7fd3acaf 37957choke me
a848cd7e
SC
37958#endif
37959
37960int
37961main ()
37962{
47964710 37963return $ac_func ();
a848cd7e
SC
37964 ;
37965 return 0;
37966}
37967_ACEOF
37968rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
37969if { (ac_try="$ac_link"
37970case "(($ac_try" in
37971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37972 *) ac_try_echo=$ac_try;;
37973esac
d589327a 37974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 37975 (eval "$ac_link") 2>conftest.er1
a848cd7e 37976 ac_status=$?
ac1cb8d3
VS
37977 grep -v '^ *+' conftest.er1 >conftest.err
37978 rm -f conftest.er1
37979 cat conftest.err >&5
d589327a 37980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
37981 (exit $ac_status); } && {
37982 test -z "$ac_c_werror_flag" ||
37983 test ! -s conftest.err
d589327a
VZ
37984 } && test -s conftest$ac_exeext &&
37985 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
37986 eval "$as_ac_var=yes"
37987else
d589327a 37988 echo "$as_me: failed program was:" >&5
a848cd7e
SC
37989sed 's/^/| /' conftest.$ac_ext >&5
37990
47964710 37991 eval "$as_ac_var=no"
a848cd7e 37992fi
47964710
VS
37993
37994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 37995 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37996fi
d589327a
VZ
37997ac_res=`eval echo '${'$as_ac_var'}'`
37998 { echo "$as_me:$LINENO: result: $ac_res" >&5
37999echo "${ECHO_T}$ac_res" >&6; }
38000if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 38001 cat >>confdefs.h <<_ACEOF
d589327a 38002#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
38003_ACEOF
38004 break
38005fi
38006done
38007
a1353ea4
VZ
38008if test "$ac_cv_func_setenv" = "yes"; then
38009
38010for ac_func in unsetenv
38011do
d589327a
VZ
38012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38013{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 38015if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 38016 echo $ECHO_N "(cached) $ECHO_C" >&6
a1353ea4
VZ
38017else
38018 cat >conftest.$ac_ext <<_ACEOF
38019/* confdefs.h. */
38020_ACEOF
38021cat confdefs.h >>conftest.$ac_ext
38022cat >>conftest.$ac_ext <<_ACEOF
38023/* end confdefs.h. */
38024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38026#define $ac_func innocuous_$ac_func
38027
38028/* System header to define __stub macros and hopefully few prototypes,
38029 which can conflict with char $ac_func (); below.
38030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38031 <limits.h> exists even on freestanding compilers. */
38032
38033#ifdef __STDC__
38034# include <limits.h>
38035#else
38036# include <assert.h>
38037#endif
38038
38039#undef $ac_func
38040
47964710
VS
38041/* Override any GCC internal prototype to avoid an error.
38042 Use char because int might match the return type of a GCC
38043 builtin and then its argument prototype would still apply. */
a1353ea4
VZ
38044#ifdef __cplusplus
38045extern "C"
38046#endif
38047char $ac_func ();
38048/* The GNU C library defines this for functions which it implements
38049 to always fail with ENOSYS. Some functions are actually named
38050 something starting with __ and the normal name is an alias. */
47964710 38051#if defined __stub_$ac_func || defined __stub___$ac_func
a1353ea4
VZ
38052choke me
38053#endif
38054
38055int
38056main ()
38057{
47964710 38058return $ac_func ();
a1353ea4
VZ
38059 ;
38060 return 0;
38061}
38062_ACEOF
38063rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38064if { (ac_try="$ac_link"
38065case "(($ac_try" in
38066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38067 *) ac_try_echo=$ac_try;;
38068esac
d589327a 38069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 38070 (eval "$ac_link") 2>conftest.er1
a1353ea4
VZ
38071 ac_status=$?
38072 grep -v '^ *+' conftest.er1 >conftest.err
38073 rm -f conftest.er1
38074 cat conftest.err >&5
d589327a 38075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38076 (exit $ac_status); } && {
38077 test -z "$ac_c_werror_flag" ||
38078 test ! -s conftest.err
d589327a
VZ
38079 } && test -s conftest$ac_exeext &&
38080 $as_test_x conftest$ac_exeext; then
a1353ea4
VZ
38081 eval "$as_ac_var=yes"
38082else
d589327a 38083 echo "$as_me: failed program was:" >&5
a1353ea4
VZ
38084sed 's/^/| /' conftest.$ac_ext >&5
38085
47964710 38086 eval "$as_ac_var=no"
a1353ea4 38087fi
47964710
VS
38088
38089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a1353ea4
VZ
38090 conftest$ac_exeext conftest.$ac_ext
38091fi
d589327a
VZ
38092ac_res=`eval echo '${'$as_ac_var'}'`
38093 { echo "$as_me:$LINENO: result: $ac_res" >&5
38094echo "${ECHO_T}$ac_res" >&6; }
38095if test `eval echo '${'$as_ac_var'}'` = yes; then
a1353ea4 38096 cat >>confdefs.h <<_ACEOF
d589327a 38097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a1353ea4
VZ
38098_ACEOF
38099
38100fi
38101done
38102
38103fi
a848cd7e
SC
38104
38105HAVE_SOME_SLEEP_FUNC=0
38106if test "$USE_BEOS" = 1; then
38107 cat >>confdefs.h <<\_ACEOF
38108#define HAVE_SLEEP 1
38109_ACEOF
38110
38111 HAVE_SOME_SLEEP_FUNC=1
38112fi
38113
38114if test "$USE_DARWIN" = 1; then
38115 cat >>confdefs.h <<\_ACEOF
38116#define HAVE_USLEEP 1
38117_ACEOF
38118
38119 HAVE_SOME_SLEEP_FUNC=1
38120fi
38121
38122if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
38123 POSIX4_LINK=
38124
38125for ac_func in nanosleep
38126do
d589327a
VZ
38127as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38128{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38129echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 38130if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 38131 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
38132else
38133 cat >conftest.$ac_ext <<_ACEOF
38134/* confdefs.h. */
38135_ACEOF
38136cat confdefs.h >>conftest.$ac_ext
38137cat >>conftest.$ac_ext <<_ACEOF
38138/* end confdefs.h. */
ac1cb8d3
VS
38139/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38141#define $ac_func innocuous_$ac_func
38142
a848cd7e
SC
38143/* System header to define __stub macros and hopefully few prototypes,
38144 which can conflict with char $ac_func (); below.
38145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38146 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38147
a848cd7e
SC
38148#ifdef __STDC__
38149# include <limits.h>
38150#else
38151# include <assert.h>
38152#endif
ac1cb8d3
VS
38153
38154#undef $ac_func
38155
47964710
VS
38156/* Override any GCC internal prototype to avoid an error.
38157 Use char because int might match the return type of a GCC
38158 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38159#ifdef __cplusplus
38160extern "C"
a848cd7e 38161#endif
a848cd7e
SC
38162char $ac_func ();
38163/* The GNU C library defines this for functions which it implements
38164 to always fail with ENOSYS. Some functions are actually named
38165 something starting with __ and the normal name is an alias. */
47964710 38166#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 38167choke me
a848cd7e
SC
38168#endif
38169
38170int
38171main ()
38172{
47964710 38173return $ac_func ();
a848cd7e
SC
38174 ;
38175 return 0;
38176}
38177_ACEOF
38178rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38179if { (ac_try="$ac_link"
38180case "(($ac_try" in
38181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38182 *) ac_try_echo=$ac_try;;
38183esac
d589327a 38184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 38185 (eval "$ac_link") 2>conftest.er1
a848cd7e 38186 ac_status=$?
ac1cb8d3
VS
38187 grep -v '^ *+' conftest.er1 >conftest.err
38188 rm -f conftest.er1
38189 cat conftest.err >&5
d589327a 38190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38191 (exit $ac_status); } && {
38192 test -z "$ac_c_werror_flag" ||
38193 test ! -s conftest.err
d589327a
VZ
38194 } && test -s conftest$ac_exeext &&
38195 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
38196 eval "$as_ac_var=yes"
38197else
d589327a 38198 echo "$as_me: failed program was:" >&5
a848cd7e
SC
38199sed 's/^/| /' conftest.$ac_ext >&5
38200
47964710 38201 eval "$as_ac_var=no"
a848cd7e 38202fi
47964710
VS
38203
38204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 38205 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38206fi
d589327a
VZ
38207ac_res=`eval echo '${'$as_ac_var'}'`
38208 { echo "$as_me:$LINENO: result: $ac_res" >&5
38209echo "${ECHO_T}$ac_res" >&6; }
38210if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 38211 cat >>confdefs.h <<_ACEOF
d589327a 38212#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
38213_ACEOF
38214 cat >>confdefs.h <<\_ACEOF
38215#define HAVE_NANOSLEEP 1
38216_ACEOF
38217
38218else
38219
d589327a
VZ
38220 { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
38221echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
a848cd7e 38222if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
d589327a 38223 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
38224else
38225 ac_check_lib_save_LIBS=$LIBS
38226LIBS="-lposix4 $LIBS"
38227cat >conftest.$ac_ext <<_ACEOF
38228/* confdefs.h. */
38229_ACEOF
38230cat confdefs.h >>conftest.$ac_ext
38231cat >>conftest.$ac_ext <<_ACEOF
38232/* end confdefs.h. */
38233
47964710
VS
38234/* Override any GCC internal prototype to avoid an error.
38235 Use char because int might match the return type of a GCC
38236 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38237#ifdef __cplusplus
38238extern "C"
38239#endif
a848cd7e
SC
38240char nanosleep ();
38241int
38242main ()
38243{
47964710 38244return nanosleep ();
a848cd7e
SC
38245 ;
38246 return 0;
38247}
38248_ACEOF
38249rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38250if { (ac_try="$ac_link"
38251case "(($ac_try" in
38252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38253 *) ac_try_echo=$ac_try;;
38254esac
d589327a 38255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 38256 (eval "$ac_link") 2>conftest.er1
a848cd7e 38257 ac_status=$?
ac1cb8d3
VS
38258 grep -v '^ *+' conftest.er1 >conftest.err
38259 rm -f conftest.er1
38260 cat conftest.err >&5
d589327a 38261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38262 (exit $ac_status); } && {
38263 test -z "$ac_c_werror_flag" ||
38264 test ! -s conftest.err
d589327a
VZ
38265 } && test -s conftest$ac_exeext &&
38266 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
38267 ac_cv_lib_posix4_nanosleep=yes
38268else
d589327a 38269 echo "$as_me: failed program was:" >&5
a848cd7e
SC
38270sed 's/^/| /' conftest.$ac_ext >&5
38271
47964710 38272 ac_cv_lib_posix4_nanosleep=no
a848cd7e 38273fi
47964710
VS
38274
38275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 38276 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38277LIBS=$ac_check_lib_save_LIBS
38278fi
d589327a
VZ
38279{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
38280echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
38281if test $ac_cv_lib_posix4_nanosleep = yes; then
a848cd7e
SC
38282
38283 cat >>confdefs.h <<\_ACEOF
38284#define HAVE_NANOSLEEP 1
38285_ACEOF
38286
38287 POSIX4_LINK=" -lposix4"
38288
38289else
38290
38291
fd5199d6
VZ
38292 for wx_func in usleep
38293 do
d589327a
VZ
38294 { echo "$as_me:$LINENO: checking for $wx_func" >&5
38295echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
47964710 38296if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 38297 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38298else
fd5199d6
VZ
38299
38300 cat >conftest.$ac_ext <<_ACEOF
38301
38302 /* confdefs.h. */
a848cd7e
SC
38303_ACEOF
38304cat confdefs.h >>conftest.$ac_ext
38305cat >>conftest.$ac_ext <<_ACEOF
38306/* end confdefs.h. */
ac1cb8d3 38307
ac1cb8d3 38308
fd5199d6 38309 $ac_includes_default
a848cd7e
SC
38310
38311int
38312main ()
38313{
fd5199d6
VZ
38314
38315 #ifndef $wx_func
38316 &$wx_func;
38317 #endif
38318
38319
a848cd7e
SC
38320 ;
38321 return 0;
38322}
fd5199d6 38323
a848cd7e
SC
38324_ACEOF
38325rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38326if { (ac_try="$ac_link"
38327case "(($ac_try" in
38328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38329 *) ac_try_echo=$ac_try;;
38330esac
d589327a 38331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 38332 (eval "$ac_link") 2>conftest.er1
a848cd7e 38333 ac_status=$?
ac1cb8d3
VS
38334 grep -v '^ *+' conftest.er1 >conftest.err
38335 rm -f conftest.er1
38336 cat conftest.err >&5
d589327a 38337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38338 (exit $ac_status); } && {
38339 test -z "$ac_c_werror_flag" ||
38340 test ! -s conftest.err
d589327a
VZ
38341 } && test -s conftest$ac_exeext &&
38342 $as_test_x conftest$ac_exeext; then
fd5199d6 38343 eval wx_cv_func_$wx_func=yes
a848cd7e 38344else
d589327a 38345 echo "$as_me: failed program was:" >&5
a848cd7e
SC
38346sed 's/^/| /' conftest.$ac_ext >&5
38347
47964710 38348 eval wx_cv_func_$wx_func=no
a848cd7e 38349fi
47964710
VS
38350
38351rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 38352 conftest$ac_exeext conftest.$ac_ext
fd5199d6 38353
a848cd7e 38354fi
d589327a
VZ
38355ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38356 { echo "$as_me:$LINENO: result: $ac_res" >&5
38357echo "${ECHO_T}$ac_res" >&6; }
fd5199d6
VZ
38358
38359 if eval test \$wx_cv_func_$wx_func = yes
38360 then
38361 cat >>confdefs.h <<_ACEOF
d589327a 38362#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
a848cd7e
SC
38363_ACEOF
38364
fd5199d6
VZ
38365
38366 else
38367 :
d589327a
VZ
38368 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
38369echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
a848cd7e 38370
fd5199d6
VZ
38371 fi
38372 done
a848cd7e
SC
38373
38374
38375
38376fi
38377
38378
38379
38380fi
38381done
38382
38383fi
38384
38385
9b8888f9
VZ
38386 for wx_func in uname
38387 do
d589327a
VZ
38388 { echo "$as_me:$LINENO: checking for $wx_func" >&5
38389echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
47964710 38390if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 38391 echo $ECHO_N "(cached) $ECHO_C" >&6
9b8888f9
VZ
38392else
38393
38394 cat >conftest.$ac_ext <<_ACEOF
38395
38396 /* confdefs.h. */
38397_ACEOF
38398cat confdefs.h >>conftest.$ac_ext
38399cat >>conftest.$ac_ext <<_ACEOF
38400/* end confdefs.h. */
38401
38402 #include <sys/utsname.h>
38403 $ac_includes_default
38404
38405int
38406main ()
38407{
38408
38409 #ifndef $wx_func
38410 &$wx_func;
38411 #endif
38412
38413
38414 ;
38415 return 0;
38416}
38417
38418_ACEOF
38419rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38420if { (ac_try="$ac_link"
38421case "(($ac_try" in
38422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38423 *) ac_try_echo=$ac_try;;
38424esac
d589327a 38425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 38426 (eval "$ac_link") 2>conftest.er1
9b8888f9
VZ
38427 ac_status=$?
38428 grep -v '^ *+' conftest.er1 >conftest.err
38429 rm -f conftest.er1
38430 cat conftest.err >&5
d589327a 38431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38432 (exit $ac_status); } && {
38433 test -z "$ac_c_werror_flag" ||
38434 test ! -s conftest.err
d589327a
VZ
38435 } && test -s conftest$ac_exeext &&
38436 $as_test_x conftest$ac_exeext; then
9b8888f9
VZ
38437 eval wx_cv_func_$wx_func=yes
38438else
d589327a 38439 echo "$as_me: failed program was:" >&5
9b8888f9
VZ
38440sed 's/^/| /' conftest.$ac_ext >&5
38441
47964710 38442 eval wx_cv_func_$wx_func=no
9b8888f9 38443fi
47964710
VS
38444
38445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9b8888f9
VZ
38446 conftest$ac_exeext conftest.$ac_ext
38447
38448fi
d589327a
VZ
38449ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38450 { echo "$as_me:$LINENO: result: $ac_res" >&5
38451echo "${ECHO_T}$ac_res" >&6; }
9b8888f9
VZ
38452
38453 if eval test \$wx_cv_func_$wx_func = yes
38454 then
38455 cat >>confdefs.h <<_ACEOF
d589327a 38456#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
9b8888f9
VZ
38457_ACEOF
38458
38459
38460 else
38461 :
38462
38463 fi
38464 done
38465
38466if test "$wx_cv_func_uname" != yes; then
38467
38468 for wx_func in gethostname
fd5199d6 38469 do
d589327a
VZ
38470 { echo "$as_me:$LINENO: checking for $wx_func" >&5
38471echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
47964710 38472if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 38473 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38474else
fd5199d6
VZ
38475
38476 cat >conftest.$ac_ext <<_ACEOF
38477
38478 /* confdefs.h. */
a848cd7e
SC
38479_ACEOF
38480cat confdefs.h >>conftest.$ac_ext
38481cat >>conftest.$ac_ext <<_ACEOF
38482/* end confdefs.h. */
ac1cb8d3 38483
ac1cb8d3 38484
fd5199d6 38485 $ac_includes_default
a848cd7e
SC
38486
38487int
38488main ()
38489{
fd5199d6
VZ
38490
38491 #ifndef $wx_func
38492 &$wx_func;
38493 #endif
38494
38495
a848cd7e
SC
38496 ;
38497 return 0;
38498}
fd5199d6 38499
a848cd7e
SC
38500_ACEOF
38501rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38502if { (ac_try="$ac_link"
38503case "(($ac_try" in
38504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38505 *) ac_try_echo=$ac_try;;
38506esac
d589327a 38507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 38508 (eval "$ac_link") 2>conftest.er1
a848cd7e 38509 ac_status=$?
ac1cb8d3
VS
38510 grep -v '^ *+' conftest.er1 >conftest.err
38511 rm -f conftest.er1
38512 cat conftest.err >&5
d589327a 38513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38514 (exit $ac_status); } && {
38515 test -z "$ac_c_werror_flag" ||
38516 test ! -s conftest.err
d589327a
VZ
38517 } && test -s conftest$ac_exeext &&
38518 $as_test_x conftest$ac_exeext; then
fd5199d6 38519 eval wx_cv_func_$wx_func=yes
a848cd7e 38520else
d589327a 38521 echo "$as_me: failed program was:" >&5
a848cd7e
SC
38522sed 's/^/| /' conftest.$ac_ext >&5
38523
47964710 38524 eval wx_cv_func_$wx_func=no
a848cd7e 38525fi
47964710
VS
38526
38527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 38528 conftest$ac_exeext conftest.$ac_ext
fd5199d6 38529
a848cd7e 38530fi
d589327a
VZ
38531ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38532 { echo "$as_me:$LINENO: result: $ac_res" >&5
38533echo "${ECHO_T}$ac_res" >&6; }
fd5199d6
VZ
38534
38535 if eval test \$wx_cv_func_$wx_func = yes
38536 then
38537 cat >>confdefs.h <<_ACEOF
d589327a 38538#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
a848cd7e 38539_ACEOF
fd5199d6 38540
9b8888f9 38541
fd5199d6
VZ
38542 else
38543 :
38544
38545 fi
38546 done
a848cd7e 38547
9b8888f9 38548fi
a848cd7e 38549
56632e81
MW
38550
38551 for wx_func in strtok_r
38552 do
d589327a
VZ
38553 { echo "$as_me:$LINENO: checking for $wx_func" >&5
38554echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
47964710 38555if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 38556 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38557else
56632e81
MW
38558
38559 cat >conftest.$ac_ext <<_ACEOF
38560
38561 /* confdefs.h. */
a848cd7e
SC
38562_ACEOF
38563cat confdefs.h >>conftest.$ac_ext
38564cat >>conftest.$ac_ext <<_ACEOF
38565/* end confdefs.h. */
56632e81
MW
38566
38567 #define _REENTRANT
38568 $ac_includes_default
38569
a848cd7e
SC
38570int
38571main ()
38572{
56632e81
MW
38573
38574 #ifndef $wx_func
38575 &$wx_func;
38576 #endif
38577
5acfd58d 38578
a848cd7e
SC
38579 ;
38580 return 0;
38581}
56632e81 38582
a848cd7e 38583_ACEOF
56632e81 38584rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38585if { (ac_try="$ac_link"
38586case "(($ac_try" in
38587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38588 *) ac_try_echo=$ac_try;;
38589esac
d589327a 38590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 38591 (eval "$ac_link") 2>conftest.er1
a848cd7e 38592 ac_status=$?
ac1cb8d3
VS
38593 grep -v '^ *+' conftest.er1 >conftest.err
38594 rm -f conftest.er1
38595 cat conftest.err >&5
d589327a 38596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38597 (exit $ac_status); } && {
38598 test -z "$ac_c_werror_flag" ||
38599 test ! -s conftest.err
d589327a
VZ
38600 } && test -s conftest$ac_exeext &&
38601 $as_test_x conftest$ac_exeext; then
56632e81 38602 eval wx_cv_func_$wx_func=yes
a848cd7e 38603else
d589327a 38604 echo "$as_me: failed program was:" >&5
a848cd7e
SC
38605sed 's/^/| /' conftest.$ac_ext >&5
38606
47964710 38607 eval wx_cv_func_$wx_func=no
a848cd7e 38608fi
47964710
VS
38609
38610rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56632e81 38611 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38612
56632e81 38613fi
d589327a
VZ
38614ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38615 { echo "$as_me:$LINENO: result: $ac_res" >&5
38616echo "${ECHO_T}$ac_res" >&6; }
a848cd7e 38617
56632e81
MW
38618 if eval test \$wx_cv_func_$wx_func = yes
38619 then
38620 cat >>confdefs.h <<_ACEOF
d589327a 38621#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
82a2636b
MW
38622_ACEOF
38623
38624
56632e81
MW
38625 else
38626 :
5acfd58d 38627
56632e81
MW
38628 fi
38629 done
5acfd58d 38630
a848cd7e 38631
a848cd7e
SC
38632INET_LINK=
38633
38634for ac_func in inet_addr
38635do
d589327a
VZ
38636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38637{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 38639if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 38640 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
38641else
38642 cat >conftest.$ac_ext <<_ACEOF
38643/* confdefs.h. */
38644_ACEOF
38645cat confdefs.h >>conftest.$ac_ext
38646cat >>conftest.$ac_ext <<_ACEOF
38647/* end confdefs.h. */
ac1cb8d3
VS
38648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38650#define $ac_func innocuous_$ac_func
38651
a848cd7e
SC
38652/* System header to define __stub macros and hopefully few prototypes,
38653 which can conflict with char $ac_func (); below.
38654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38655 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38656
a848cd7e
SC
38657#ifdef __STDC__
38658# include <limits.h>
38659#else
38660# include <assert.h>
38661#endif
ac1cb8d3
VS
38662
38663#undef $ac_func
38664
47964710
VS
38665/* Override any GCC internal prototype to avoid an error.
38666 Use char because int might match the return type of a GCC
38667 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38668#ifdef __cplusplus
38669extern "C"
a848cd7e 38670#endif
a848cd7e
SC
38671char $ac_func ();
38672/* The GNU C library defines this for functions which it implements
38673 to always fail with ENOSYS. Some functions are actually named
38674 something starting with __ and the normal name is an alias. */
47964710 38675#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 38676choke me
a848cd7e
SC
38677#endif
38678
38679int
38680main ()
38681{
47964710 38682return $ac_func ();
a848cd7e
SC
38683 ;
38684 return 0;
38685}
38686_ACEOF
38687rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38688if { (ac_try="$ac_link"
38689case "(($ac_try" in
38690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38691 *) ac_try_echo=$ac_try;;
38692esac
d589327a 38693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 38694 (eval "$ac_link") 2>conftest.er1
a848cd7e 38695 ac_status=$?
ac1cb8d3
VS
38696 grep -v '^ *+' conftest.er1 >conftest.err
38697 rm -f conftest.er1
38698 cat conftest.err >&5
d589327a 38699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38700 (exit $ac_status); } && {
38701 test -z "$ac_c_werror_flag" ||
38702 test ! -s conftest.err
d589327a
VZ
38703 } && test -s conftest$ac_exeext &&
38704 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
38705 eval "$as_ac_var=yes"
38706else
d589327a 38707 echo "$as_me: failed program was:" >&5
a848cd7e
SC
38708sed 's/^/| /' conftest.$ac_ext >&5
38709
47964710 38710 eval "$as_ac_var=no"
a848cd7e 38711fi
47964710
VS
38712
38713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 38714 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38715fi
d589327a
VZ
38716ac_res=`eval echo '${'$as_ac_var'}'`
38717 { echo "$as_me:$LINENO: result: $ac_res" >&5
38718echo "${ECHO_T}$ac_res" >&6; }
38719if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 38720 cat >>confdefs.h <<_ACEOF
d589327a 38721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
38722_ACEOF
38723 cat >>confdefs.h <<\_ACEOF
38724#define HAVE_INET_ADDR 1
38725_ACEOF
38726
38727else
38728
d589327a
VZ
38729 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38730echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
a848cd7e 38731if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
d589327a 38732 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
38733else
38734 ac_check_lib_save_LIBS=$LIBS
38735LIBS="-lnsl $LIBS"
38736cat >conftest.$ac_ext <<_ACEOF
38737/* confdefs.h. */
38738_ACEOF
38739cat confdefs.h >>conftest.$ac_ext
38740cat >>conftest.$ac_ext <<_ACEOF
38741/* end confdefs.h. */
38742
47964710
VS
38743/* Override any GCC internal prototype to avoid an error.
38744 Use char because int might match the return type of a GCC
38745 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38746#ifdef __cplusplus
38747extern "C"
38748#endif
a848cd7e
SC
38749char inet_addr ();
38750int
38751main ()
38752{
47964710 38753return inet_addr ();
a848cd7e
SC
38754 ;
38755 return 0;
38756}
38757_ACEOF
38758rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38759if { (ac_try="$ac_link"
38760case "(($ac_try" in
38761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38762 *) ac_try_echo=$ac_try;;
38763esac
d589327a 38764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 38765 (eval "$ac_link") 2>conftest.er1
a848cd7e 38766 ac_status=$?
ac1cb8d3
VS
38767 grep -v '^ *+' conftest.er1 >conftest.err
38768 rm -f conftest.er1
38769 cat conftest.err >&5
d589327a 38770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38771 (exit $ac_status); } && {
38772 test -z "$ac_c_werror_flag" ||
38773 test ! -s conftest.err
d589327a
VZ
38774 } && test -s conftest$ac_exeext &&
38775 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
38776 ac_cv_lib_nsl_inet_addr=yes
38777else
d589327a 38778 echo "$as_me: failed program was:" >&5
a848cd7e
SC
38779sed 's/^/| /' conftest.$ac_ext >&5
38780
47964710 38781 ac_cv_lib_nsl_inet_addr=no
a848cd7e 38782fi
47964710
VS
38783
38784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 38785 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38786LIBS=$ac_check_lib_save_LIBS
38787fi
d589327a
VZ
38788{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38789echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
38790if test $ac_cv_lib_nsl_inet_addr = yes; then
a848cd7e
SC
38791 INET_LINK="nsl"
38792else
38793
d589327a
VZ
38794 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38795echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
a848cd7e 38796if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
d589327a 38797 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
38798else
38799 ac_check_lib_save_LIBS=$LIBS
38800LIBS="-lresolv $LIBS"
38801cat >conftest.$ac_ext <<_ACEOF
38802/* confdefs.h. */
38803_ACEOF
38804cat confdefs.h >>conftest.$ac_ext
38805cat >>conftest.$ac_ext <<_ACEOF
38806/* end confdefs.h. */
38807
47964710
VS
38808/* Override any GCC internal prototype to avoid an error.
38809 Use char because int might match the return type of a GCC
38810 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38811#ifdef __cplusplus
38812extern "C"
38813#endif
a848cd7e
SC
38814char inet_addr ();
38815int
38816main ()
38817{
47964710 38818return inet_addr ();
a848cd7e
SC
38819 ;
38820 return 0;
38821}
38822_ACEOF
38823rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38824if { (ac_try="$ac_link"
38825case "(($ac_try" in
38826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38827 *) ac_try_echo=$ac_try;;
38828esac
d589327a 38829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 38830 (eval "$ac_link") 2>conftest.er1
a848cd7e 38831 ac_status=$?
ac1cb8d3
VS
38832 grep -v '^ *+' conftest.er1 >conftest.err
38833 rm -f conftest.er1
38834 cat conftest.err >&5
d589327a 38835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38836 (exit $ac_status); } && {
38837 test -z "$ac_c_werror_flag" ||
38838 test ! -s conftest.err
d589327a
VZ
38839 } && test -s conftest$ac_exeext &&
38840 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
38841 ac_cv_lib_resolv_inet_addr=yes
38842else
d589327a 38843 echo "$as_me: failed program was:" >&5
a848cd7e
SC
38844sed 's/^/| /' conftest.$ac_ext >&5
38845
47964710 38846 ac_cv_lib_resolv_inet_addr=no
a848cd7e 38847fi
47964710
VS
38848
38849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 38850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38851LIBS=$ac_check_lib_save_LIBS
38852fi
d589327a
VZ
38853{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38854echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38855if test $ac_cv_lib_resolv_inet_addr = yes; then
a848cd7e
SC
38856 INET_LINK="resolv"
38857else
38858
d589327a
VZ
38859 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38860echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
a848cd7e 38861if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
d589327a 38862 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
38863else
38864 ac_check_lib_save_LIBS=$LIBS
38865LIBS="-lsocket $LIBS"
38866cat >conftest.$ac_ext <<_ACEOF
38867/* confdefs.h. */
38868_ACEOF
38869cat confdefs.h >>conftest.$ac_ext
38870cat >>conftest.$ac_ext <<_ACEOF
38871/* end confdefs.h. */
38872
47964710
VS
38873/* Override any GCC internal prototype to avoid an error.
38874 Use char because int might match the return type of a GCC
38875 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38876#ifdef __cplusplus
38877extern "C"
38878#endif
a848cd7e
SC
38879char inet_addr ();
38880int
38881main ()
38882{
47964710 38883return inet_addr ();
a848cd7e
SC
38884 ;
38885 return 0;
38886}
38887_ACEOF
38888rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38889if { (ac_try="$ac_link"
38890case "(($ac_try" in
38891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38892 *) ac_try_echo=$ac_try;;
38893esac
d589327a 38894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 38895 (eval "$ac_link") 2>conftest.er1
a848cd7e 38896 ac_status=$?
ac1cb8d3
VS
38897 grep -v '^ *+' conftest.er1 >conftest.err
38898 rm -f conftest.er1
38899 cat conftest.err >&5
d589327a 38900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
38901 (exit $ac_status); } && {
38902 test -z "$ac_c_werror_flag" ||
38903 test ! -s conftest.err
d589327a
VZ
38904 } && test -s conftest$ac_exeext &&
38905 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
38906 ac_cv_lib_socket_inet_addr=yes
38907else
d589327a 38908 echo "$as_me: failed program was:" >&5
a848cd7e
SC
38909sed 's/^/| /' conftest.$ac_ext >&5
38910
47964710 38911 ac_cv_lib_socket_inet_addr=no
a848cd7e 38912fi
47964710
VS
38913
38914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 38915 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38916LIBS=$ac_check_lib_save_LIBS
38917fi
d589327a
VZ
38918{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38919echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38920if test $ac_cv_lib_socket_inet_addr = yes; then
a848cd7e
SC
38921 INET_LINK="socket"
38922
38923fi
38924
38925
38926
38927fi
38928
38929
38930
38931fi
38932
38933
38934
38935fi
38936done
38937
38938
38939
38940for ac_func in inet_aton
38941do
d589327a
VZ
38942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38943{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 38945if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 38946 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
38947else
38948 cat >conftest.$ac_ext <<_ACEOF
38949/* confdefs.h. */
38950_ACEOF
38951cat confdefs.h >>conftest.$ac_ext
38952cat >>conftest.$ac_ext <<_ACEOF
38953/* end confdefs.h. */
ac1cb8d3
VS
38954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38956#define $ac_func innocuous_$ac_func
38957
a848cd7e
SC
38958/* System header to define __stub macros and hopefully few prototypes,
38959 which can conflict with char $ac_func (); below.
38960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38961 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38962
a848cd7e
SC
38963#ifdef __STDC__
38964# include <limits.h>
38965#else
38966# include <assert.h>
38967#endif
ac1cb8d3
VS
38968
38969#undef $ac_func
38970
47964710
VS
38971/* Override any GCC internal prototype to avoid an error.
38972 Use char because int might match the return type of a GCC
38973 builtin and then its argument prototype would still apply. */
a848cd7e
SC
38974#ifdef __cplusplus
38975extern "C"
a848cd7e 38976#endif
a848cd7e
SC
38977char $ac_func ();
38978/* The GNU C library defines this for functions which it implements
38979 to always fail with ENOSYS. Some functions are actually named
38980 something starting with __ and the normal name is an alias. */
47964710 38981#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 38982choke me
a848cd7e
SC
38983#endif
38984
38985int
38986main ()
38987{
47964710 38988return $ac_func ();
a848cd7e
SC
38989 ;
38990 return 0;
38991}
38992_ACEOF
38993rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
38994if { (ac_try="$ac_link"
38995case "(($ac_try" in
38996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38997 *) ac_try_echo=$ac_try;;
38998esac
d589327a 38999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 39000 (eval "$ac_link") 2>conftest.er1
a848cd7e 39001 ac_status=$?
ac1cb8d3
VS
39002 grep -v '^ *+' conftest.er1 >conftest.err
39003 rm -f conftest.er1
39004 cat conftest.err >&5
d589327a 39005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39006 (exit $ac_status); } && {
39007 test -z "$ac_c_werror_flag" ||
39008 test ! -s conftest.err
d589327a
VZ
39009 } && test -s conftest$ac_exeext &&
39010 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
39011 eval "$as_ac_var=yes"
39012else
d589327a 39013 echo "$as_me: failed program was:" >&5
a848cd7e
SC
39014sed 's/^/| /' conftest.$ac_ext >&5
39015
47964710 39016 eval "$as_ac_var=no"
a848cd7e 39017fi
47964710
VS
39018
39019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 39020 conftest$ac_exeext conftest.$ac_ext
a848cd7e 39021fi
d589327a
VZ
39022ac_res=`eval echo '${'$as_ac_var'}'`
39023 { echo "$as_me:$LINENO: result: $ac_res" >&5
39024echo "${ECHO_T}$ac_res" >&6; }
39025if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 39026 cat >>confdefs.h <<_ACEOF
d589327a 39027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
39028_ACEOF
39029 cat >>confdefs.h <<\_ACEOF
39030#define HAVE_INET_ATON 1
39031_ACEOF
39032
39033else
39034
d589327a
VZ
39035 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
39036{ echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
39037echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
47964710 39038if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 39039 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
39040else
39041 ac_check_lib_save_LIBS=$LIBS
39042LIBS="-l$INET_LINK $LIBS"
39043cat >conftest.$ac_ext <<_ACEOF
39044/* confdefs.h. */
39045_ACEOF
39046cat confdefs.h >>conftest.$ac_ext
39047cat >>conftest.$ac_ext <<_ACEOF
39048/* end confdefs.h. */
39049
47964710
VS
39050/* Override any GCC internal prototype to avoid an error.
39051 Use char because int might match the return type of a GCC
39052 builtin and then its argument prototype would still apply. */
a848cd7e
SC
39053#ifdef __cplusplus
39054extern "C"
39055#endif
a848cd7e
SC
39056char inet_aton ();
39057int
39058main ()
39059{
47964710 39060return inet_aton ();
a848cd7e
SC
39061 ;
39062 return 0;
39063}
39064_ACEOF
39065rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
39066if { (ac_try="$ac_link"
39067case "(($ac_try" in
39068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39069 *) ac_try_echo=$ac_try;;
39070esac
d589327a 39071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 39072 (eval "$ac_link") 2>conftest.er1
a848cd7e 39073 ac_status=$?
ac1cb8d3
VS
39074 grep -v '^ *+' conftest.er1 >conftest.err
39075 rm -f conftest.er1
39076 cat conftest.err >&5
d589327a 39077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39078 (exit $ac_status); } && {
39079 test -z "$ac_c_werror_flag" ||
39080 test ! -s conftest.err
d589327a
VZ
39081 } && test -s conftest$ac_exeext &&
39082 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
39083 eval "$as_ac_Lib=yes"
39084else
d589327a 39085 echo "$as_me: failed program was:" >&5
a848cd7e
SC
39086sed 's/^/| /' conftest.$ac_ext >&5
39087
47964710 39088 eval "$as_ac_Lib=no"
a848cd7e 39089fi
47964710
VS
39090
39091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 39092 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39093LIBS=$ac_check_lib_save_LIBS
39094fi
d589327a
VZ
39095ac_res=`eval echo '${'$as_ac_Lib'}'`
39096 { echo "$as_me:$LINENO: result: $ac_res" >&5
39097echo "${ECHO_T}$ac_res" >&6; }
39098if test `eval echo '${'$as_ac_Lib'}'` = yes; then
a848cd7e
SC
39099 cat >>confdefs.h <<\_ACEOF
39100#define HAVE_INET_ATON 1
39101_ACEOF
39102
39103fi
39104
39105
39106fi
39107done
39108
39109
39110if test "x$INET_LINK" != "x"; then
39111 cat >>confdefs.h <<\_ACEOF
39112#define HAVE_INET_ADDR 1
39113_ACEOF
39114
39115 INET_LINK=" -l$INET_LINK"
39116fi
39117
f8f6c91a
MW
39118
39119 for wx_func in fdopen
39120 do
d589327a
VZ
39121 { echo "$as_me:$LINENO: checking for $wx_func" >&5
39122echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
47964710 39123if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 39124 echo $ECHO_N "(cached) $ECHO_C" >&6
f8f6c91a
MW
39125else
39126
39127 cat >conftest.$ac_ext <<_ACEOF
39128
39129 /* confdefs.h. */
39130_ACEOF
39131cat confdefs.h >>conftest.$ac_ext
39132cat >>conftest.$ac_ext <<_ACEOF
39133/* end confdefs.h. */
39134
39135
39136 $ac_includes_default
39137
39138int
39139main ()
39140{
39141
39142 #ifndef $wx_func
39143 &$wx_func;
39144 #endif
39145
39146
39147 ;
39148 return 0;
39149}
39150
39151_ACEOF
39152rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
39153if { (ac_try="$ac_link"
39154case "(($ac_try" in
39155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39156 *) ac_try_echo=$ac_try;;
39157esac
d589327a 39158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 39159 (eval "$ac_link") 2>conftest.er1
f8f6c91a
MW
39160 ac_status=$?
39161 grep -v '^ *+' conftest.er1 >conftest.err
39162 rm -f conftest.er1
39163 cat conftest.err >&5
d589327a 39164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39165 (exit $ac_status); } && {
39166 test -z "$ac_c_werror_flag" ||
39167 test ! -s conftest.err
d589327a
VZ
39168 } && test -s conftest$ac_exeext &&
39169 $as_test_x conftest$ac_exeext; then
f8f6c91a
MW
39170 eval wx_cv_func_$wx_func=yes
39171else
d589327a 39172 echo "$as_me: failed program was:" >&5
f8f6c91a
MW
39173sed 's/^/| /' conftest.$ac_ext >&5
39174
47964710 39175 eval wx_cv_func_$wx_func=no
a848cd7e 39176fi
47964710
VS
39177
39178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
f8f6c91a
MW
39179 conftest$ac_exeext conftest.$ac_ext
39180
39181fi
d589327a
VZ
39182ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39183 { echo "$as_me:$LINENO: result: $ac_res" >&5
39184echo "${ECHO_T}$ac_res" >&6; }
f8f6c91a
MW
39185
39186 if eval test \$wx_cv_func_$wx_func = yes
39187 then
39188 cat >>confdefs.h <<_ACEOF
d589327a 39189#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
f8f6c91a
MW
39190_ACEOF
39191
39192
39193 else
39194 :
39195
39196 fi
39197 done
39198
39199
d3b8fe10
VZ
39200if test "$wxUSE_TARSTREAM" = "yes"; then
39201
39202 for wx_func in sysconf
39203 do
d589327a
VZ
39204 { echo "$as_me:$LINENO: checking for $wx_func" >&5
39205echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
d3b8fe10 39206if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 39207 echo $ECHO_N "(cached) $ECHO_C" >&6
d3b8fe10
VZ
39208else
39209
39210 cat >conftest.$ac_ext <<_ACEOF
39211
39212 /* confdefs.h. */
39213_ACEOF
39214cat confdefs.h >>conftest.$ac_ext
39215cat >>conftest.$ac_ext <<_ACEOF
39216/* end confdefs.h. */
39217
39218
39219 $ac_includes_default
39220
39221int
39222main ()
39223{
39224
39225 #ifndef $wx_func
39226 &$wx_func;
39227 #endif
39228
39229
39230 ;
39231 return 0;
39232}
39233
39234_ACEOF
39235rm -f conftest.$ac_objext conftest$ac_exeext
39236if { (ac_try="$ac_link"
39237case "(($ac_try" in
39238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39239 *) ac_try_echo=$ac_try;;
39240esac
d589327a 39241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d3b8fe10
VZ
39242 (eval "$ac_link") 2>conftest.er1
39243 ac_status=$?
39244 grep -v '^ *+' conftest.er1 >conftest.err
39245 rm -f conftest.er1
39246 cat conftest.err >&5
d589327a 39247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3b8fe10
VZ
39248 (exit $ac_status); } && {
39249 test -z "$ac_c_werror_flag" ||
39250 test ! -s conftest.err
d589327a
VZ
39251 } && test -s conftest$ac_exeext &&
39252 $as_test_x conftest$ac_exeext; then
d3b8fe10
VZ
39253 eval wx_cv_func_$wx_func=yes
39254else
d589327a 39255 echo "$as_me: failed program was:" >&5
d3b8fe10
VZ
39256sed 's/^/| /' conftest.$ac_ext >&5
39257
39258 eval wx_cv_func_$wx_func=no
39259fi
39260
39261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39262 conftest$ac_exeext conftest.$ac_ext
39263
39264fi
d589327a
VZ
39265ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39266 { echo "$as_me:$LINENO: result: $ac_res" >&5
39267echo "${ECHO_T}$ac_res" >&6; }
d3b8fe10
VZ
39268
39269 if eval test \$wx_cv_func_$wx_func = yes
39270 then
39271 cat >>confdefs.h <<_ACEOF
d589327a 39272#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
d3b8fe10
VZ
39273_ACEOF
39274
39275
39276 else
39277 :
39278
39279 fi
39280 done
39281
39282
85d2919f 39283
d3b8fe10
VZ
39284 for wx_func in getpwuid_r
39285 do
d589327a
VZ
39286 { echo "$as_me:$LINENO: checking for $wx_func" >&5
39287echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
d3b8fe10 39288if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 39289 echo $ECHO_N "(cached) $ECHO_C" >&6
d3b8fe10
VZ
39290else
39291
39292 cat >conftest.$ac_ext <<_ACEOF
39293
39294 /* confdefs.h. */
39295_ACEOF
39296cat confdefs.h >>conftest.$ac_ext
39297cat >>conftest.$ac_ext <<_ACEOF
39298/* end confdefs.h. */
39299
85d2919f
MW
39300
39301 #define _REENTRANT
39302 #include <pwd.h>
39303
d3b8fe10
VZ
39304 $ac_includes_default
39305
39306int
39307main ()
39308{
39309
39310 #ifndef $wx_func
39311 &$wx_func;
39312 #endif
39313
85d2919f
MW
39314 struct passwd pw, *ppw;
39315 char buf[1024];
39316 getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
39317
d3b8fe10
VZ
39318
39319 ;
39320 return 0;
39321}
39322
39323_ACEOF
39324rm -f conftest.$ac_objext conftest$ac_exeext
39325if { (ac_try="$ac_link"
39326case "(($ac_try" in
39327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39328 *) ac_try_echo=$ac_try;;
39329esac
d589327a 39330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d3b8fe10
VZ
39331 (eval "$ac_link") 2>conftest.er1
39332 ac_status=$?
39333 grep -v '^ *+' conftest.er1 >conftest.err
39334 rm -f conftest.er1
39335 cat conftest.err >&5
d589327a 39336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3b8fe10
VZ
39337 (exit $ac_status); } && {
39338 test -z "$ac_c_werror_flag" ||
39339 test ! -s conftest.err
d589327a
VZ
39340 } && test -s conftest$ac_exeext &&
39341 $as_test_x conftest$ac_exeext; then
d3b8fe10
VZ
39342 eval wx_cv_func_$wx_func=yes
39343else
d589327a 39344 echo "$as_me: failed program was:" >&5
d3b8fe10
VZ
39345sed 's/^/| /' conftest.$ac_ext >&5
39346
39347 eval wx_cv_func_$wx_func=no
39348fi
39349
39350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39351 conftest$ac_exeext conftest.$ac_ext
39352
39353fi
d589327a
VZ
39354ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39355 { echo "$as_me:$LINENO: result: $ac_res" >&5
39356echo "${ECHO_T}$ac_res" >&6; }
d3b8fe10
VZ
39357
39358 if eval test \$wx_cv_func_$wx_func = yes
39359 then
39360 cat >>confdefs.h <<_ACEOF
d589327a 39361#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
d3b8fe10
VZ
39362_ACEOF
39363
39364
39365 else
39366 :
39367
39368 fi
39369 done
39370
39371
85d2919f 39372
d3b8fe10
VZ
39373 for wx_func in getgrgid_r
39374 do
d589327a
VZ
39375 { echo "$as_me:$LINENO: checking for $wx_func" >&5
39376echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
d3b8fe10 39377if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 39378 echo $ECHO_N "(cached) $ECHO_C" >&6
d3b8fe10
VZ
39379else
39380
39381 cat >conftest.$ac_ext <<_ACEOF
39382
39383 /* confdefs.h. */
39384_ACEOF
39385cat confdefs.h >>conftest.$ac_ext
39386cat >>conftest.$ac_ext <<_ACEOF
39387/* end confdefs.h. */
39388
85d2919f
MW
39389
39390 #define _REENTRANT
39391 #include <grp.h>
39392
d3b8fe10
VZ
39393 $ac_includes_default
39394
39395int
39396main ()
39397{
39398
39399 #ifndef $wx_func
39400 &$wx_func;
39401 #endif
39402
85d2919f
MW
39403 struct group grp, *pgrp;
39404 char buf[1024];
39405 getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
39406
d3b8fe10
VZ
39407
39408 ;
39409 return 0;
39410}
39411
39412_ACEOF
39413rm -f conftest.$ac_objext conftest$ac_exeext
39414if { (ac_try="$ac_link"
39415case "(($ac_try" in
39416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39417 *) ac_try_echo=$ac_try;;
39418esac
d589327a 39419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d3b8fe10
VZ
39420 (eval "$ac_link") 2>conftest.er1
39421 ac_status=$?
39422 grep -v '^ *+' conftest.er1 >conftest.err
39423 rm -f conftest.er1
39424 cat conftest.err >&5
d589327a 39425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3b8fe10
VZ
39426 (exit $ac_status); } && {
39427 test -z "$ac_c_werror_flag" ||
39428 test ! -s conftest.err
d589327a
VZ
39429 } && test -s conftest$ac_exeext &&
39430 $as_test_x conftest$ac_exeext; then
d3b8fe10
VZ
39431 eval wx_cv_func_$wx_func=yes
39432else
d589327a 39433 echo "$as_me: failed program was:" >&5
d3b8fe10
VZ
39434sed 's/^/| /' conftest.$ac_ext >&5
39435
39436 eval wx_cv_func_$wx_func=no
39437fi
39438
39439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39440 conftest$ac_exeext conftest.$ac_ext
39441
39442fi
d589327a
VZ
39443ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39444 { echo "$as_me:$LINENO: result: $ac_res" >&5
39445echo "${ECHO_T}$ac_res" >&6; }
d3b8fe10
VZ
39446
39447 if eval test \$wx_cv_func_$wx_func = yes
39448 then
39449 cat >>confdefs.h <<_ACEOF
d589327a 39450#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
d3b8fe10
VZ
39451_ACEOF
39452
39453
39454 else
39455 :
39456
39457 fi
39458 done
39459
39460fi
39461
f8f6c91a
MW
39462fi
39463
a848cd7e
SC
39464
39465
a848cd7e
SC
39466cat >confcache <<\_ACEOF
39467# This file is a shell script that caches the results of configure
39468# tests run on this system so they can be shared between configure
39469# scripts and configure runs, see configure's option --config-cache.
39470# It is not useful on other systems. If it contains results you don't
39471# want to keep, you may remove or edit it.
39472#
39473# config.status only pays attention to the cache file if you give it
39474# the --recheck option to rerun configure.
39475#
39476# `ac_cv_env_foo' variables (set or unset) will be overridden when
39477# loading this file, other *unset* `ac_cv_foo' will be assigned the
39478# following values.
39479
39480_ACEOF
39481
39482# The following way of writing the cache mishandles newlines in values,
39483# but we know of no workaround that is simple, portable, and efficient.
47964710 39484# So, we kill variables containing newlines.
a848cd7e
SC
39485# Ultrix sh set writes to stderr and can't be redirected directly,
39486# and sets the high bit in the cache file unless we assign to the vars.
47964710
VS
39487(
39488 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39489 eval ac_val=\$$ac_var
39490 case $ac_val in #(
39491 *${as_nl}*)
39492 case $ac_var in #(
d589327a
VZ
39493 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
39494echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
47964710
VS
39495 esac
39496 case $ac_var in #(
39497 _ | IFS | as_nl) ;; #(
39498 *) $as_unset $ac_var ;;
39499 esac ;;
39500 esac
39501 done
39502
a848cd7e 39503 (set) 2>&1 |
47964710
VS
39504 case $as_nl`(ac_space=' '; set) 2>&1` in #(
39505 *${as_nl}ac_space=\ *)
a848cd7e
SC
39506 # `set' does not quote correctly, so add quotes (double-quote
39507 # substitution turns \\\\ into \\, and sed turns \\ into \).
39508 sed -n \
ac1cb8d3
VS
39509 "s/'/'\\\\''/g;
39510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47964710 39511 ;; #(
a848cd7e
SC
39512 *)
39513 # `set' quotes correctly as required by POSIX, so do not add quotes.
47964710 39514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
a848cd7e 39515 ;;
47964710
VS
39516 esac |
39517 sort
39518) |
a848cd7e 39519 sed '
47964710 39520 /^ac_cv_env_/b end
a848cd7e 39521 t clear
47964710 39522 :clear
a848cd7e
SC
39523 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39524 t end
47964710
VS
39525 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39526 :end' >>confcache
39527if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39528 if test -w "$cache_file"; then
39529 test "x$cache_file" != "x/dev/null" &&
d589327a
VZ
39530 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
39531echo "$as_me: updating cache $cache_file" >&6;}
a848cd7e
SC
39532 cat confcache >$cache_file
39533 else
d589327a
VZ
39534 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39535echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a848cd7e
SC
39536 fi
39537fi
39538rm -f confcache
39539
39540
a848cd7e
SC
39541if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39542
39543
39544 THREADS_LINK=
9b8888f9 39545 THREADS_CFLAGS=
a848cd7e
SC
39546
39547 if test "$wxUSE_THREADS" = "yes" ; then
39548 if test "$USE_BEOS" = 1; then
d589327a
VZ
39549 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
39550echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
a848cd7e
SC
39551 wxUSE_THREADS="no"
39552 fi
39553 fi
39554
39555 if test "$wxUSE_THREADS" = "yes" ; then
39556
39557
39558 THREAD_OPTS="-pthread"
43a7c679
VZ
39559 if test "x$SUNCXX" = xyes; then
39560 THREAD_OPTS="-mt lthread $THREAD_OPTS"
39561 fi
39562
a848cd7e
SC
39563 case "${host}" in
39564 *-*-solaris2* | *-*-sunos4* )
39565 if test "x$GCC" = "xyes"; then
39566 THREAD_OPTS="-pthreads $THREAD_OPTS"
a848cd7e
SC
39567 fi
39568 ;;
39569 *-*-freebsd*)
39570 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
39571 ;;
39572 *-*-darwin* | *-*-cygwin* )
39573 THREAD_OPTS=""
39574 ;;
39575 *-*-aix*)
39576 THREAD_OPTS="pthreads"
39577 ;;
39578 *-hp-hpux* )
00421666
MW
39579 if test "x$GCC" = "xyes"; then
39580 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39581 THREAD_OPTS=""
39582 else
0093c2fc 39583 THREAD_OPTS="-mt"
a848cd7e
SC
39584 fi
39585 ;;
39586
39587 *-*-irix* )
39588 if test "x$GCC" = "xyes"; then
39589 THREAD_OPTS=""
39590 fi
39591 ;;
39592
229251af
VZ
39593 *-*-qnx*)
39594 THREAD_OPTS=""
39595 ;;
39596
a848cd7e
SC
39597 *-*-*UnixWare*)
39598 if test "x$GCC" != "xyes"; then
39599 THREAD_OPTS="-Ethread"
39600 fi
39601 ;;
39602 esac
39603
229251af
VZ
39604 case "${host}" in
39605 *-*-qnx*)
39606 THREAD_OPTS="none pthread"
39607 ;;
39608
39609 *)
39610 THREAD_OPTS="$THREAD_OPTS pthread none"
39611 ;;
39612 esac
a848cd7e
SC
39613
39614 THREADS_OK=no
39615 for flag in $THREAD_OPTS; do
39616 case $flag in
39617 none)
d589327a
VZ
39618 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39619echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
a848cd7e
SC
39620 ;;
39621
39622 -*)
d589327a
VZ
39623 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39624echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
9b8888f9 39625 THREADS_CFLAGS="$flag"
a848cd7e
SC
39626 ;;
39627
39628 *)
d589327a
VZ
39629 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39630echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
a848cd7e
SC
39631 THREADS_LINK="-l$flag"
39632 ;;
39633 esac
39634
39635 save_LIBS="$LIBS"
9b8888f9 39636 save_CFLAGS="$CFLAGS"
a848cd7e 39637 LIBS="$THREADS_LINK $LIBS"
9b8888f9 39638 CFLAGS="$THREADS_CFLAGS $CFLAGS"
a848cd7e
SC
39639
39640 cat >conftest.$ac_ext <<_ACEOF
39641/* confdefs.h. */
39642_ACEOF
39643cat confdefs.h >>conftest.$ac_ext
39644cat >>conftest.$ac_ext <<_ACEOF
39645/* end confdefs.h. */
39646#include <pthread.h>
39647int
39648main ()
39649{
39650pthread_create(0,0,0,0);
39651 ;
39652 return 0;
39653}
39654_ACEOF
39655rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
39656if { (ac_try="$ac_link"
39657case "(($ac_try" in
39658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39659 *) ac_try_echo=$ac_try;;
39660esac
d589327a 39661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 39662 (eval "$ac_link") 2>conftest.er1
a848cd7e 39663 ac_status=$?
ac1cb8d3
VS
39664 grep -v '^ *+' conftest.er1 >conftest.err
39665 rm -f conftest.er1
39666 cat conftest.err >&5
d589327a 39667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39668 (exit $ac_status); } && {
39669 test -z "$ac_c_werror_flag" ||
39670 test ! -s conftest.err
d589327a
VZ
39671 } && test -s conftest$ac_exeext &&
39672 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
39673 THREADS_OK=yes
39674else
d589327a 39675 echo "$as_me: failed program was:" >&5
a848cd7e
SC
39676sed 's/^/| /' conftest.$ac_ext >&5
39677
47964710 39678
a848cd7e 39679fi
47964710
VS
39680
39681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 39682 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39683
39684 LIBS="$save_LIBS"
9b8888f9 39685 CFLAGS="$save_CFLAGS"
a848cd7e 39686
d589327a
VZ
39687 { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39688echo "${ECHO_T}$THREADS_OK" >&6; }
a848cd7e
SC
39689 if test "x$THREADS_OK" = "xyes"; then
39690 break;
39691 fi
39692
39693 THREADS_LINK=""
9b8888f9 39694 THREADS_CFLAGS=""
a848cd7e
SC
39695 done
39696
39697 if test "x$THREADS_OK" != "xyes"; then
39698 wxUSE_THREADS=no
d589327a
VZ
39699 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39700echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
a848cd7e 39701 else
d4fbe1d8
VZ
39702 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
39703 WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
a848cd7e
SC
39704 LIBS="$THREADS_LINK $LIBS"
39705
d589327a
VZ
39706 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39707echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
a848cd7e
SC
39708 flag=no
39709 case "${host}" in
39710 *-aix*)
39711 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
d4fbe1d8 39712 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
a848cd7e
SC
39713 flag="-D_THREAD_SAFE"
39714 ;;
39715 *-freebsd*)
39716 flag="-D_THREAD_SAFE"
39717 ;;
39718 *-hp-hpux* )
39719 flag="-D_REENTRANT"
39720 if test "x$GCC" != "xyes"; then
39721 flag="$flag -D_RWSTD_MULTI_THREAD"
39722 fi
39723 ;;
39724 *solaris* | alpha*-osf*)
39725 flag="-D_REENTRANT"
39726 ;;
39727 esac
d589327a
VZ
39728 { echo "$as_me:$LINENO: result: ${flag}" >&5
39729echo "${ECHO_T}${flag}" >&6; }
a848cd7e 39730 if test "x$flag" != xno; then
9b8888f9 39731 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
a848cd7e
SC
39732 fi
39733
9b8888f9 39734 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
39735 fi
39736 fi
39737
39738 if test "$wxUSE_THREADS" = "yes" ; then
39739
39740for ac_func in thr_setconcurrency
39741do
d589327a
VZ
39742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39743{ echo "$as_me:$LINENO: checking for $ac_func" >&5
39744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 39745if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 39746 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
39747else
39748 cat >conftest.$ac_ext <<_ACEOF
39749/* confdefs.h. */
39750_ACEOF
39751cat confdefs.h >>conftest.$ac_ext
39752cat >>conftest.$ac_ext <<_ACEOF
39753/* end confdefs.h. */
ac1cb8d3
VS
39754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39756#define $ac_func innocuous_$ac_func
39757
a848cd7e
SC
39758/* System header to define __stub macros and hopefully few prototypes,
39759 which can conflict with char $ac_func (); below.
39760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39761 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39762
a848cd7e
SC
39763#ifdef __STDC__
39764# include <limits.h>
39765#else
39766# include <assert.h>
39767#endif
ac1cb8d3
VS
39768
39769#undef $ac_func
39770
47964710
VS
39771/* Override any GCC internal prototype to avoid an error.
39772 Use char because int might match the return type of a GCC
39773 builtin and then its argument prototype would still apply. */
a848cd7e
SC
39774#ifdef __cplusplus
39775extern "C"
a848cd7e 39776#endif
a848cd7e
SC
39777char $ac_func ();
39778/* The GNU C library defines this for functions which it implements
39779 to always fail with ENOSYS. Some functions are actually named
39780 something starting with __ and the normal name is an alias. */
47964710 39781#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 39782choke me
a848cd7e
SC
39783#endif
39784
39785int
39786main ()
39787{
47964710 39788return $ac_func ();
a848cd7e
SC
39789 ;
39790 return 0;
39791}
39792_ACEOF
39793rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
39794if { (ac_try="$ac_link"
39795case "(($ac_try" in
39796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39797 *) ac_try_echo=$ac_try;;
39798esac
d589327a 39799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 39800 (eval "$ac_link") 2>conftest.er1
a848cd7e 39801 ac_status=$?
ac1cb8d3
VS
39802 grep -v '^ *+' conftest.er1 >conftest.err
39803 rm -f conftest.er1
39804 cat conftest.err >&5
d589327a 39805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39806 (exit $ac_status); } && {
39807 test -z "$ac_c_werror_flag" ||
39808 test ! -s conftest.err
d589327a
VZ
39809 } && test -s conftest$ac_exeext &&
39810 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
39811 eval "$as_ac_var=yes"
39812else
d589327a 39813 echo "$as_me: failed program was:" >&5
a848cd7e
SC
39814sed 's/^/| /' conftest.$ac_ext >&5
39815
47964710 39816 eval "$as_ac_var=no"
a848cd7e 39817fi
47964710
VS
39818
39819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 39820 conftest$ac_exeext conftest.$ac_ext
a848cd7e 39821fi
d589327a
VZ
39822ac_res=`eval echo '${'$as_ac_var'}'`
39823 { echo "$as_me:$LINENO: result: $ac_res" >&5
39824echo "${ECHO_T}$ac_res" >&6; }
39825if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 39826 cat >>confdefs.h <<_ACEOF
d589327a 39827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
39828_ACEOF
39829
39830fi
39831done
39832
39833
d589327a
VZ
39834 { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39835echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
6ebeb4c7 39836if test "${wx_cv_func_pthread_cleanup+set}" = set; then
d589327a 39837 echo $ECHO_N "(cached) $ECHO_C" >&6
6ebeb4c7
VZ
39838else
39839
47964710 39840 ac_ext=cpp
43a7c679
VZ
39841ac_cpp='$CXXCPP $CPPFLAGS'
39842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39845
6ebeb4c7
VZ
39846 cat >conftest.$ac_ext <<_ACEOF
39847/* confdefs.h. */
39848_ACEOF
39849cat confdefs.h >>conftest.$ac_ext
39850cat >>conftest.$ac_ext <<_ACEOF
39851/* end confdefs.h. */
39852#include <pthread.h>
39853 void ThreadCleanupFunc(void *p);
39854
39855int
39856main ()
39857{
39858
39859 void *p;
39860 pthread_cleanup_push(ThreadCleanupFunc, p);
39861 pthread_cleanup_pop(0);
39862
39863 ;
39864 return 0;
39865}
39866_ACEOF
39867rm -f conftest.$ac_objext
47964710
VS
39868if { (ac_try="$ac_compile"
39869case "(($ac_try" in
39870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39871 *) ac_try_echo=$ac_try;;
39872esac
d589327a 39873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 39874 (eval "$ac_compile") 2>conftest.er1
6ebeb4c7
VZ
39875 ac_status=$?
39876 grep -v '^ *+' conftest.er1 >conftest.err
39877 rm -f conftest.er1
39878 cat conftest.err >&5
d589327a 39879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39880 (exit $ac_status); } && {
39881 test -z "$ac_cxx_werror_flag" ||
39882 test ! -s conftest.err
39883 } && test -s conftest.$ac_objext; then
6ebeb4c7
VZ
39884
39885 wx_cv_func_pthread_cleanup=yes
39886
39887else
d589327a 39888 echo "$as_me: failed program was:" >&5
6ebeb4c7
VZ
39889sed 's/^/| /' conftest.$ac_ext >&5
39890
39891
39892 wx_cv_func_pthread_cleanup=no
39893
39894
39895fi
47964710
VS
39896
39897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43a7c679
VZ
39898 ac_ext=c
39899ac_cpp='$CPP $CPPFLAGS'
39900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39902ac_compiler_gnu=$ac_cv_c_compiler_gnu
39903
6ebeb4c7
VZ
39904
39905fi
d589327a
VZ
39906{ echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39907echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
6ebeb4c7
VZ
39908 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39909 cat >>confdefs.h <<\_ACEOF
39910#define wxHAVE_PTHREAD_CLEANUP 1
39911_ACEOF
39912
39913 fi
39914
1f7e12cc
DE
39915
39916for ac_header in sched.h
39917do
d589327a
VZ
39918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39919{ echo "$as_me:$LINENO: checking for $ac_header" >&5
39920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47964710 39921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 39922 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 39923else
6e7b8bcb 39924 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
39925/* confdefs.h. */
39926_ACEOF
39927cat confdefs.h >>conftest.$ac_ext
39928cat >>conftest.$ac_ext <<_ACEOF
39929/* end confdefs.h. */
39930$ac_includes_default
6e7b8bcb 39931
1f7e12cc 39932#include <$ac_header>
a848cd7e
SC
39933_ACEOF
39934rm -f conftest.$ac_objext
47964710
VS
39935if { (ac_try="$ac_compile"
39936case "(($ac_try" in
39937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39938 *) ac_try_echo=$ac_try;;
39939esac
d589327a 39940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 39941 (eval "$ac_compile") 2>conftest.er1
a848cd7e 39942 ac_status=$?
ac1cb8d3
VS
39943 grep -v '^ *+' conftest.er1 >conftest.err
39944 rm -f conftest.er1
39945 cat conftest.err >&5
d589327a 39946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
39947 (exit $ac_status); } && {
39948 test -z "$ac_c_werror_flag" ||
39949 test ! -s conftest.err
39950 } && test -s conftest.$ac_objext; then
1f7e12cc 39951 eval "$as_ac_Header=yes"
a848cd7e 39952else
d589327a 39953 echo "$as_me: failed program was:" >&5
a848cd7e
SC
39954sed 's/^/| /' conftest.$ac_ext >&5
39955
47964710 39956 eval "$as_ac_Header=no"
a848cd7e 39957fi
47964710
VS
39958
39959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 39960fi
d589327a
VZ
39961ac_res=`eval echo '${'$as_ac_Header'}'`
39962 { echo "$as_me:$LINENO: result: $ac_res" >&5
39963echo "${ECHO_T}$ac_res" >&6; }
39964if test `eval echo '${'$as_ac_Header'}'` = yes; then
1f7e12cc 39965 cat >>confdefs.h <<_ACEOF
d589327a 39966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1f7e12cc 39967_ACEOF
7fd3acaf 39968
1f7e12cc
DE
39969fi
39970
39971done
a848cd7e
SC
39972
39973 if test "$ac_cv_header_sched_h" = "yes"; then
d589327a
VZ
39974 { echo "$as_me:$LINENO: checking for sched_yield" >&5
39975echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
a848cd7e 39976if test "${ac_cv_func_sched_yield+set}" = set; then
d589327a 39977 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
39978else
39979 cat >conftest.$ac_ext <<_ACEOF
39980/* confdefs.h. */
39981_ACEOF
39982cat confdefs.h >>conftest.$ac_ext
39983cat >>conftest.$ac_ext <<_ACEOF
39984/* end confdefs.h. */
ac1cb8d3
VS
39985/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39987#define sched_yield innocuous_sched_yield
39988
a848cd7e
SC
39989/* System header to define __stub macros and hopefully few prototypes,
39990 which can conflict with char sched_yield (); below.
39991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39992 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39993
a848cd7e
SC
39994#ifdef __STDC__
39995# include <limits.h>
39996#else
39997# include <assert.h>
39998#endif
ac1cb8d3
VS
39999
40000#undef sched_yield
40001
47964710
VS
40002/* Override any GCC internal prototype to avoid an error.
40003 Use char because int might match the return type of a GCC
40004 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40005#ifdef __cplusplus
40006extern "C"
a848cd7e 40007#endif
a848cd7e
SC
40008char sched_yield ();
40009/* The GNU C library defines this for functions which it implements
40010 to always fail with ENOSYS. Some functions are actually named
40011 something starting with __ and the normal name is an alias. */
47964710 40012#if defined __stub_sched_yield || defined __stub___sched_yield
a848cd7e 40013choke me
a848cd7e
SC
40014#endif
40015
40016int
40017main ()
40018{
47964710 40019return sched_yield ();
a848cd7e
SC
40020 ;
40021 return 0;
40022}
40023_ACEOF
40024rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40025if { (ac_try="$ac_link"
40026case "(($ac_try" in
40027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40028 *) ac_try_echo=$ac_try;;
40029esac
d589327a 40030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 40031 (eval "$ac_link") 2>conftest.er1
a848cd7e 40032 ac_status=$?
ac1cb8d3
VS
40033 grep -v '^ *+' conftest.er1 >conftest.err
40034 rm -f conftest.er1
40035 cat conftest.err >&5
d589327a 40036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40037 (exit $ac_status); } && {
40038 test -z "$ac_c_werror_flag" ||
40039 test ! -s conftest.err
d589327a
VZ
40040 } && test -s conftest$ac_exeext &&
40041 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
40042 ac_cv_func_sched_yield=yes
40043else
d589327a 40044 echo "$as_me: failed program was:" >&5
a848cd7e
SC
40045sed 's/^/| /' conftest.$ac_ext >&5
40046
47964710 40047 ac_cv_func_sched_yield=no
a848cd7e 40048fi
47964710
VS
40049
40050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40051 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40052fi
d589327a
VZ
40053{ echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
40054echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
40055if test $ac_cv_func_sched_yield = yes; then
a848cd7e
SC
40056 cat >>confdefs.h <<\_ACEOF
40057#define HAVE_SCHED_YIELD 1
40058_ACEOF
40059
40060else
40061
d589327a
VZ
40062 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
40063echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
a848cd7e 40064if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
d589327a 40065 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
40066else
40067 ac_check_lib_save_LIBS=$LIBS
40068LIBS="-lposix4 $LIBS"
40069cat >conftest.$ac_ext <<_ACEOF
40070/* confdefs.h. */
40071_ACEOF
40072cat confdefs.h >>conftest.$ac_ext
40073cat >>conftest.$ac_ext <<_ACEOF
40074/* end confdefs.h. */
40075
47964710
VS
40076/* Override any GCC internal prototype to avoid an error.
40077 Use char because int might match the return type of a GCC
40078 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40079#ifdef __cplusplus
40080extern "C"
40081#endif
a848cd7e
SC
40082char sched_yield ();
40083int
40084main ()
40085{
47964710 40086return sched_yield ();
a848cd7e
SC
40087 ;
40088 return 0;
40089}
40090_ACEOF
40091rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40092if { (ac_try="$ac_link"
40093case "(($ac_try" in
40094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40095 *) ac_try_echo=$ac_try;;
40096esac
d589327a 40097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 40098 (eval "$ac_link") 2>conftest.er1
a848cd7e 40099 ac_status=$?
ac1cb8d3
VS
40100 grep -v '^ *+' conftest.er1 >conftest.err
40101 rm -f conftest.er1
40102 cat conftest.err >&5
d589327a 40103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40104 (exit $ac_status); } && {
40105 test -z "$ac_c_werror_flag" ||
40106 test ! -s conftest.err
d589327a
VZ
40107 } && test -s conftest$ac_exeext &&
40108 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
40109 ac_cv_lib_posix4_sched_yield=yes
40110else
d589327a 40111 echo "$as_me: failed program was:" >&5
a848cd7e
SC
40112sed 's/^/| /' conftest.$ac_ext >&5
40113
47964710 40114 ac_cv_lib_posix4_sched_yield=no
a848cd7e 40115fi
47964710
VS
40116
40117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40118 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40119LIBS=$ac_check_lib_save_LIBS
40120fi
d589327a
VZ
40121{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40122echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
40123if test $ac_cv_lib_posix4_sched_yield = yes; then
a848cd7e
SC
40124 cat >>confdefs.h <<\_ACEOF
40125#define HAVE_SCHED_YIELD 1
40126_ACEOF
40127 POSIX4_LINK=" -lposix4"
40128else
d589327a
VZ
40129 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40130echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
a848cd7e
SC
40131
40132fi
40133
40134
40135
40136fi
40137
40138 fi
40139
40140 HAVE_PRIOR_FUNCS=0
d589327a
VZ
40141 { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
40142echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
a848cd7e 40143if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
d589327a 40144 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
40145else
40146 cat >conftest.$ac_ext <<_ACEOF
40147/* confdefs.h. */
40148_ACEOF
40149cat confdefs.h >>conftest.$ac_ext
40150cat >>conftest.$ac_ext <<_ACEOF
40151/* end confdefs.h. */
ac1cb8d3
VS
40152/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40154#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40155
a848cd7e
SC
40156/* System header to define __stub macros and hopefully few prototypes,
40157 which can conflict with char pthread_attr_getschedpolicy (); below.
40158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40159 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40160
a848cd7e
SC
40161#ifdef __STDC__
40162# include <limits.h>
40163#else
40164# include <assert.h>
40165#endif
ac1cb8d3
VS
40166
40167#undef pthread_attr_getschedpolicy
40168
47964710
VS
40169/* Override any GCC internal prototype to avoid an error.
40170 Use char because int might match the return type of a GCC
40171 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40172#ifdef __cplusplus
40173extern "C"
a848cd7e 40174#endif
a848cd7e
SC
40175char pthread_attr_getschedpolicy ();
40176/* The GNU C library defines this for functions which it implements
40177 to always fail with ENOSYS. Some functions are actually named
40178 something starting with __ and the normal name is an alias. */
47964710 40179#if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
a848cd7e 40180choke me
a848cd7e
SC
40181#endif
40182
40183int
40184main ()
40185{
47964710 40186return pthread_attr_getschedpolicy ();
a848cd7e
SC
40187 ;
40188 return 0;
40189}
40190_ACEOF
40191rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40192if { (ac_try="$ac_link"
40193case "(($ac_try" in
40194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40195 *) ac_try_echo=$ac_try;;
40196esac
d589327a 40197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 40198 (eval "$ac_link") 2>conftest.er1
a848cd7e 40199 ac_status=$?
ac1cb8d3
VS
40200 grep -v '^ *+' conftest.er1 >conftest.err
40201 rm -f conftest.er1
40202 cat conftest.err >&5
d589327a 40203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40204 (exit $ac_status); } && {
40205 test -z "$ac_c_werror_flag" ||
40206 test ! -s conftest.err
d589327a
VZ
40207 } && test -s conftest$ac_exeext &&
40208 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
40209 ac_cv_func_pthread_attr_getschedpolicy=yes
40210else
d589327a 40211 echo "$as_me: failed program was:" >&5
a848cd7e
SC
40212sed 's/^/| /' conftest.$ac_ext >&5
40213
47964710 40214 ac_cv_func_pthread_attr_getschedpolicy=no
a848cd7e 40215fi
47964710
VS
40216
40217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40218 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40219fi
d589327a
VZ
40220{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40221echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
40222if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
40223 { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40224echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
a848cd7e 40225if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
d589327a 40226 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
40227else
40228 cat >conftest.$ac_ext <<_ACEOF
40229/* confdefs.h. */
40230_ACEOF
40231cat confdefs.h >>conftest.$ac_ext
40232cat >>conftest.$ac_ext <<_ACEOF
40233/* end confdefs.h. */
ac1cb8d3
VS
40234/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
40235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40236#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
40237
a848cd7e
SC
40238/* System header to define __stub macros and hopefully few prototypes,
40239 which can conflict with char pthread_attr_setschedparam (); below.
40240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40241 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40242
a848cd7e
SC
40243#ifdef __STDC__
40244# include <limits.h>
40245#else
40246# include <assert.h>
40247#endif
ac1cb8d3
VS
40248
40249#undef pthread_attr_setschedparam
40250
47964710
VS
40251/* Override any GCC internal prototype to avoid an error.
40252 Use char because int might match the return type of a GCC
40253 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40254#ifdef __cplusplus
40255extern "C"
a848cd7e 40256#endif
a848cd7e
SC
40257char pthread_attr_setschedparam ();
40258/* The GNU C library defines this for functions which it implements
40259 to always fail with ENOSYS. Some functions are actually named
40260 something starting with __ and the normal name is an alias. */
47964710 40261#if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
a848cd7e 40262choke me
a848cd7e
SC
40263#endif
40264
40265int
40266main ()
40267{
47964710 40268return pthread_attr_setschedparam ();
a848cd7e
SC
40269 ;
40270 return 0;
40271}
40272_ACEOF
40273rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40274if { (ac_try="$ac_link"
40275case "(($ac_try" in
40276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40277 *) ac_try_echo=$ac_try;;
40278esac
d589327a 40279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 40280 (eval "$ac_link") 2>conftest.er1
a848cd7e 40281 ac_status=$?
ac1cb8d3
VS
40282 grep -v '^ *+' conftest.er1 >conftest.err
40283 rm -f conftest.er1
40284 cat conftest.err >&5
d589327a 40285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40286 (exit $ac_status); } && {
40287 test -z "$ac_c_werror_flag" ||
40288 test ! -s conftest.err
d589327a
VZ
40289 } && test -s conftest$ac_exeext &&
40290 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
40291 ac_cv_func_pthread_attr_setschedparam=yes
40292else
d589327a 40293 echo "$as_me: failed program was:" >&5
a848cd7e
SC
40294sed 's/^/| /' conftest.$ac_ext >&5
40295
47964710 40296 ac_cv_func_pthread_attr_setschedparam=no
a848cd7e 40297fi
47964710
VS
40298
40299rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40300 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40301fi
d589327a
VZ
40302{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
40303echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
40304if test $ac_cv_func_pthread_attr_setschedparam = yes; then
40305 { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
40306echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
a848cd7e 40307if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
d589327a 40308 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
40309else
40310 cat >conftest.$ac_ext <<_ACEOF
40311/* confdefs.h. */
40312_ACEOF
40313cat confdefs.h >>conftest.$ac_ext
40314cat >>conftest.$ac_ext <<_ACEOF
40315/* end confdefs.h. */
ac1cb8d3
VS
40316/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
40317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40318#define sched_get_priority_max innocuous_sched_get_priority_max
40319
a848cd7e
SC
40320/* System header to define __stub macros and hopefully few prototypes,
40321 which can conflict with char sched_get_priority_max (); below.
40322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40323 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40324
a848cd7e
SC
40325#ifdef __STDC__
40326# include <limits.h>
40327#else
40328# include <assert.h>
40329#endif
ac1cb8d3
VS
40330
40331#undef sched_get_priority_max
40332
47964710
VS
40333/* Override any GCC internal prototype to avoid an error.
40334 Use char because int might match the return type of a GCC
40335 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40336#ifdef __cplusplus
40337extern "C"
a848cd7e 40338#endif
a848cd7e
SC
40339char sched_get_priority_max ();
40340/* The GNU C library defines this for functions which it implements
40341 to always fail with ENOSYS. Some functions are actually named
40342 something starting with __ and the normal name is an alias. */
47964710 40343#if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
a848cd7e 40344choke me
a848cd7e
SC
40345#endif
40346
40347int
40348main ()
40349{
47964710 40350return sched_get_priority_max ();
a848cd7e
SC
40351 ;
40352 return 0;
40353}
40354_ACEOF
40355rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40356if { (ac_try="$ac_link"
40357case "(($ac_try" in
40358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40359 *) ac_try_echo=$ac_try;;
40360esac
d589327a 40361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 40362 (eval "$ac_link") 2>conftest.er1
a848cd7e 40363 ac_status=$?
ac1cb8d3
VS
40364 grep -v '^ *+' conftest.er1 >conftest.err
40365 rm -f conftest.er1
40366 cat conftest.err >&5
d589327a 40367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40368 (exit $ac_status); } && {
40369 test -z "$ac_c_werror_flag" ||
40370 test ! -s conftest.err
d589327a
VZ
40371 } && test -s conftest$ac_exeext &&
40372 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
40373 ac_cv_func_sched_get_priority_max=yes
40374else
d589327a 40375 echo "$as_me: failed program was:" >&5
a848cd7e
SC
40376sed 's/^/| /' conftest.$ac_ext >&5
40377
47964710 40378 ac_cv_func_sched_get_priority_max=no
a848cd7e 40379fi
47964710
VS
40380
40381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40382 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40383fi
d589327a
VZ
40384{ echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
40385echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
40386if test $ac_cv_func_sched_get_priority_max = yes; then
a848cd7e
SC
40387 HAVE_PRIOR_FUNCS=1
40388else
d589327a
VZ
40389 { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
40390echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
a848cd7e 40391if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
d589327a 40392 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
40393else
40394 ac_check_lib_save_LIBS=$LIBS
40395LIBS="-lposix4 $LIBS"
40396cat >conftest.$ac_ext <<_ACEOF
40397/* confdefs.h. */
40398_ACEOF
40399cat confdefs.h >>conftest.$ac_ext
40400cat >>conftest.$ac_ext <<_ACEOF
40401/* end confdefs.h. */
40402
47964710
VS
40403/* Override any GCC internal prototype to avoid an error.
40404 Use char because int might match the return type of a GCC
40405 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40406#ifdef __cplusplus
40407extern "C"
40408#endif
a848cd7e
SC
40409char sched_get_priority_max ();
40410int
40411main ()
40412{
47964710 40413return sched_get_priority_max ();
a848cd7e
SC
40414 ;
40415 return 0;
40416}
40417_ACEOF
40418rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40419if { (ac_try="$ac_link"
40420case "(($ac_try" in
40421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40422 *) ac_try_echo=$ac_try;;
40423esac
d589327a 40424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 40425 (eval "$ac_link") 2>conftest.er1
a848cd7e 40426 ac_status=$?
ac1cb8d3
VS
40427 grep -v '^ *+' conftest.er1 >conftest.err
40428 rm -f conftest.er1
40429 cat conftest.err >&5
d589327a 40430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40431 (exit $ac_status); } && {
40432 test -z "$ac_c_werror_flag" ||
40433 test ! -s conftest.err
d589327a
VZ
40434 } && test -s conftest$ac_exeext &&
40435 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
40436 ac_cv_lib_posix4_sched_get_priority_max=yes
40437else
d589327a 40438 echo "$as_me: failed program was:" >&5
a848cd7e
SC
40439sed 's/^/| /' conftest.$ac_ext >&5
40440
47964710 40441 ac_cv_lib_posix4_sched_get_priority_max=no
a848cd7e 40442fi
47964710
VS
40443
40444rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40445 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40446LIBS=$ac_check_lib_save_LIBS
40447fi
d589327a
VZ
40448{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
40449echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
40450if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
a848cd7e
SC
40451
40452 HAVE_PRIOR_FUNCS=1
40453 POSIX4_LINK=" -lposix4"
40454
40455fi
40456
40457
40458fi
40459
40460
40461fi
40462
40463
40464fi
40465
40466
40467 if test "$HAVE_PRIOR_FUNCS" = 1; then
40468 cat >>confdefs.h <<\_ACEOF
40469#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
40470_ACEOF
40471
40472 else
d589327a
VZ
40473 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40474echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
a848cd7e
SC
40475 fi
40476
d589327a
VZ
40477 { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40478echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
a848cd7e 40479if test "${ac_cv_func_pthread_cancel+set}" = set; then
d589327a 40480 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
40481else
40482 cat >conftest.$ac_ext <<_ACEOF
40483/* confdefs.h. */
40484_ACEOF
40485cat confdefs.h >>conftest.$ac_ext
40486cat >>conftest.$ac_ext <<_ACEOF
40487/* end confdefs.h. */
ac1cb8d3
VS
40488/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40490#define pthread_cancel innocuous_pthread_cancel
40491
a848cd7e
SC
40492/* System header to define __stub macros and hopefully few prototypes,
40493 which can conflict with char pthread_cancel (); below.
40494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40495 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40496
a848cd7e
SC
40497#ifdef __STDC__
40498# include <limits.h>
40499#else
40500# include <assert.h>
40501#endif
ac1cb8d3
VS
40502
40503#undef pthread_cancel
40504
47964710
VS
40505/* Override any GCC internal prototype to avoid an error.
40506 Use char because int might match the return type of a GCC
40507 builtin and then its argument prototype would still apply. */
a848cd7e
SC
40508#ifdef __cplusplus
40509extern "C"
a848cd7e 40510#endif
a848cd7e
SC
40511char pthread_cancel ();
40512/* The GNU C library defines this for functions which it implements
40513 to always fail with ENOSYS. Some functions are actually named
40514 something starting with __ and the normal name is an alias. */
47964710 40515#if defined __stub_pthread_cancel || defined __stub___pthread_cancel
a848cd7e 40516choke me
a848cd7e
SC
40517#endif
40518
40519int
40520main ()
40521{
47964710 40522return pthread_cancel ();
a848cd7e
SC
40523 ;
40524 return 0;
40525}
40526_ACEOF
40527rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40528if { (ac_try="$ac_link"
40529case "(($ac_try" in
40530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40531 *) ac_try_echo=$ac_try;;
40532esac
d589327a 40533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 40534 (eval "$ac_link") 2>conftest.er1
a848cd7e 40535 ac_status=$?
ac1cb8d3
VS
40536 grep -v '^ *+' conftest.er1 >conftest.err
40537 rm -f conftest.er1
40538 cat conftest.err >&5
d589327a 40539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40540 (exit $ac_status); } && {
40541 test -z "$ac_c_werror_flag" ||
40542 test ! -s conftest.err
d589327a
VZ
40543 } && test -s conftest$ac_exeext &&
40544 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
40545 ac_cv_func_pthread_cancel=yes
40546else
d589327a 40547 echo "$as_me: failed program was:" >&5
a848cd7e
SC
40548sed 's/^/| /' conftest.$ac_ext >&5
40549
47964710 40550 ac_cv_func_pthread_cancel=no
a848cd7e 40551fi
47964710
VS
40552
40553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 40554 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40555fi
d589327a
VZ
40556{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40557echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
40558if test $ac_cv_func_pthread_cancel = yes; then
a848cd7e
SC
40559 cat >>confdefs.h <<\_ACEOF
40560#define HAVE_PTHREAD_CANCEL 1
40561_ACEOF
40562
40563else
d589327a
VZ
40564 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40565echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
a848cd7e
SC
40566fi
40567
40568
d589327a
VZ
40569 { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
40570echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
e55a667c 40571if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
d589327a 40572 echo $ECHO_N "(cached) $ECHO_C" >&6
e55a667c
VZ
40573else
40574 cat >conftest.$ac_ext <<_ACEOF
40575/* confdefs.h. */
40576_ACEOF
40577cat confdefs.h >>conftest.$ac_ext
40578cat >>conftest.$ac_ext <<_ACEOF
40579/* end confdefs.h. */
40580/* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
40581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40582#define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
40583
40584/* System header to define __stub macros and hopefully few prototypes,
40585 which can conflict with char pthread_mutex_timedlock (); below.
40586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40587 <limits.h> exists even on freestanding compilers. */
40588
40589#ifdef __STDC__
40590# include <limits.h>
40591#else
40592# include <assert.h>
40593#endif
40594
40595#undef pthread_mutex_timedlock
40596
47964710
VS
40597/* Override any GCC internal prototype to avoid an error.
40598 Use char because int might match the return type of a GCC
40599 builtin and then its argument prototype would still apply. */
e55a667c
VZ
40600#ifdef __cplusplus
40601extern "C"
40602#endif
40603char pthread_mutex_timedlock ();
40604/* The GNU C library defines this for functions which it implements
40605 to always fail with ENOSYS. Some functions are actually named
40606 something starting with __ and the normal name is an alias. */
47964710 40607#if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
e55a667c
VZ
40608choke me
40609#endif
40610
40611int
40612main ()
40613{
47964710 40614return pthread_mutex_timedlock ();
e55a667c
VZ
40615 ;
40616 return 0;
40617}
40618_ACEOF
40619rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40620if { (ac_try="$ac_link"
40621case "(($ac_try" in
40622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40623 *) ac_try_echo=$ac_try;;
40624esac
d589327a 40625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 40626 (eval "$ac_link") 2>conftest.er1
e55a667c
VZ
40627 ac_status=$?
40628 grep -v '^ *+' conftest.er1 >conftest.err
40629 rm -f conftest.er1
40630 cat conftest.err >&5
d589327a 40631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40632 (exit $ac_status); } && {
40633 test -z "$ac_c_werror_flag" ||
40634 test ! -s conftest.err
d589327a
VZ
40635 } && test -s conftest$ac_exeext &&
40636 $as_test_x conftest$ac_exeext; then
e55a667c
VZ
40637 ac_cv_func_pthread_mutex_timedlock=yes
40638else
d589327a 40639 echo "$as_me: failed program was:" >&5
e55a667c
VZ
40640sed 's/^/| /' conftest.$ac_ext >&5
40641
47964710 40642 ac_cv_func_pthread_mutex_timedlock=no
e55a667c 40643fi
47964710
VS
40644
40645rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
e55a667c
VZ
40646 conftest$ac_exeext conftest.$ac_ext
40647fi
d589327a
VZ
40648{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
40649echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
40650if test $ac_cv_func_pthread_mutex_timedlock = yes; then
e55a667c
VZ
40651 cat >>confdefs.h <<\_ACEOF
40652#define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
40653_ACEOF
40654
40655else
d589327a
VZ
40656 { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
40657echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
e55a667c
VZ
40658fi
40659
40660
d589327a
VZ
40661 { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40662echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
abc736fd 40663if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
d589327a 40664 echo $ECHO_N "(cached) $ECHO_C" >&6
abc736fd
MW
40665else
40666 cat >conftest.$ac_ext <<_ACEOF
40667/* confdefs.h. */
40668_ACEOF
40669cat confdefs.h >>conftest.$ac_ext
40670cat >>conftest.$ac_ext <<_ACEOF
40671/* end confdefs.h. */
40672/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40674#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40675
40676/* System header to define __stub macros and hopefully few prototypes,
40677 which can conflict with char pthread_attr_setstacksize (); below.
40678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40679 <limits.h> exists even on freestanding compilers. */
40680
40681#ifdef __STDC__
40682# include <limits.h>
40683#else
40684# include <assert.h>
40685#endif
40686
40687#undef pthread_attr_setstacksize
40688
47964710
VS
40689/* Override any GCC internal prototype to avoid an error.
40690 Use char because int might match the return type of a GCC
40691 builtin and then its argument prototype would still apply. */
abc736fd
MW
40692#ifdef __cplusplus
40693extern "C"
abc736fd 40694#endif
abc736fd
MW
40695char pthread_attr_setstacksize ();
40696/* The GNU C library defines this for functions which it implements
40697 to always fail with ENOSYS. Some functions are actually named
40698 something starting with __ and the normal name is an alias. */
47964710 40699#if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
abc736fd 40700choke me
abc736fd
MW
40701#endif
40702
40703int
40704main ()
40705{
47964710 40706return pthread_attr_setstacksize ();
abc736fd
MW
40707 ;
40708 return 0;
40709}
40710_ACEOF
40711rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
40712if { (ac_try="$ac_link"
40713case "(($ac_try" in
40714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40715 *) ac_try_echo=$ac_try;;
40716esac
d589327a 40717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 40718 (eval "$ac_link") 2>conftest.er1
abc736fd
MW
40719 ac_status=$?
40720 grep -v '^ *+' conftest.er1 >conftest.err
40721 rm -f conftest.er1
40722 cat conftest.err >&5
d589327a 40723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40724 (exit $ac_status); } && {
40725 test -z "$ac_c_werror_flag" ||
40726 test ! -s conftest.err
d589327a
VZ
40727 } && test -s conftest$ac_exeext &&
40728 $as_test_x conftest$ac_exeext; then
abc736fd
MW
40729 ac_cv_func_pthread_attr_setstacksize=yes
40730else
d589327a 40731 echo "$as_me: failed program was:" >&5
abc736fd
MW
40732sed 's/^/| /' conftest.$ac_ext >&5
40733
47964710 40734 ac_cv_func_pthread_attr_setstacksize=no
abc736fd 40735fi
47964710
VS
40736
40737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
abc736fd
MW
40738 conftest$ac_exeext conftest.$ac_ext
40739fi
d589327a
VZ
40740{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40741echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
40742if test $ac_cv_func_pthread_attr_setstacksize = yes; then
abc736fd
MW
40743 cat >>confdefs.h <<\_ACEOF
40744#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40745_ACEOF
40746
40747fi
40748
a848cd7e
SC
40749
40750
d589327a
VZ
40751 { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40752echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
a848cd7e 40753if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
d589327a 40754 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
40755else
40756
40757 cat >conftest.$ac_ext <<_ACEOF
40758/* confdefs.h. */
40759_ACEOF
40760cat confdefs.h >>conftest.$ac_ext
40761cat >>conftest.$ac_ext <<_ACEOF
40762/* end confdefs.h. */
40763#include <pthread.h>
40764int
40765main ()
40766{
40767
40768 pthread_mutexattr_t attr;
40769 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40770
40771 ;
40772 return 0;
40773}
40774_ACEOF
40775rm -f conftest.$ac_objext
47964710
VS
40776if { (ac_try="$ac_compile"
40777case "(($ac_try" in
40778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40779 *) ac_try_echo=$ac_try;;
40780esac
d589327a 40781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 40782 (eval "$ac_compile") 2>conftest.er1
a848cd7e 40783 ac_status=$?
ac1cb8d3
VS
40784 grep -v '^ *+' conftest.er1 >conftest.err
40785 rm -f conftest.er1
40786 cat conftest.err >&5
d589327a 40787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40788 (exit $ac_status); } && {
40789 test -z "$ac_c_werror_flag" ||
40790 test ! -s conftest.err
40791 } && test -s conftest.$ac_objext; then
123dca7d 40792 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e 40793else
d589327a 40794 echo "$as_me: failed program was:" >&5
a848cd7e
SC
40795sed 's/^/| /' conftest.$ac_ext >&5
40796
47964710 40797 wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
40798
40799fi
47964710
VS
40800
40801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40802
40803fi
d589327a
VZ
40804{ echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40805echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
a848cd7e
SC
40806
40807 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40808 cat >>confdefs.h <<\_ACEOF
40809#define HAVE_PTHREAD_MUTEXATTR_T 1
40810_ACEOF
40811
123dca7d 40812
d589327a
VZ
40813 { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40814echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
123dca7d 40815if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
d589327a 40816 echo $ECHO_N "(cached) $ECHO_C" >&6
123dca7d
VZ
40817else
40818
40819 cat >conftest.$ac_ext <<_ACEOF
40820/* confdefs.h. */
40821_ACEOF
40822cat confdefs.h >>conftest.$ac_ext
40823cat >>conftest.$ac_ext <<_ACEOF
40824/* end confdefs.h. */
40825#include <pthread.h>
40826int
40827main ()
40828{
40829
40830 pthread_mutexattr_t attr;
40831 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40832
40833 ;
40834 return 0;
40835}
40836_ACEOF
40837rm -f conftest.$ac_objext
47964710
VS
40838if { (ac_try="$ac_compile"
40839case "(($ac_try" in
40840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40841 *) ac_try_echo=$ac_try;;
40842esac
d589327a 40843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 40844 (eval "$ac_compile") 2>conftest.er1
123dca7d
VZ
40845 ac_status=$?
40846 grep -v '^ *+' conftest.er1 >conftest.err
40847 rm -f conftest.er1
40848 cat conftest.err >&5
d589327a 40849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40850 (exit $ac_status); } && {
40851 test -z "$ac_c_werror_flag" ||
40852 test ! -s conftest.err
40853 } && test -s conftest.$ac_objext; then
123dca7d
VZ
40854 wx_cv_func_pthread_mutexattr_settype_decl=yes
40855else
d589327a 40856 echo "$as_me: failed program was:" >&5
123dca7d
VZ
40857sed 's/^/| /' conftest.$ac_ext >&5
40858
47964710 40859 wx_cv_func_pthread_mutexattr_settype_decl=no
123dca7d
VZ
40860
40861fi
47964710
VS
40862
40863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
123dca7d
VZ
40864
40865fi
d589327a
VZ
40866{ echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40867echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
123dca7d
VZ
40868 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40869 cat >>confdefs.h <<\_ACEOF
40870#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40871_ACEOF
40872
40873 fi
a848cd7e 40874 else
d589327a
VZ
40875 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40876echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
a848cd7e 40877if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
d589327a 40878 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
40879else
40880
40881 cat >conftest.$ac_ext <<_ACEOF
40882/* confdefs.h. */
40883_ACEOF
40884cat confdefs.h >>conftest.$ac_ext
40885cat >>conftest.$ac_ext <<_ACEOF
40886/* end confdefs.h. */
40887#include <pthread.h>
40888int
40889main ()
40890{
40891
40892 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40893
40894 ;
40895 return 0;
40896}
40897_ACEOF
40898rm -f conftest.$ac_objext
47964710
VS
40899if { (ac_try="$ac_compile"
40900case "(($ac_try" in
40901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40902 *) ac_try_echo=$ac_try;;
40903esac
d589327a 40904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 40905 (eval "$ac_compile") 2>conftest.er1
a848cd7e 40906 ac_status=$?
ac1cb8d3
VS
40907 grep -v '^ *+' conftest.er1 >conftest.err
40908 rm -f conftest.er1
40909 cat conftest.err >&5
d589327a 40910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
40911 (exit $ac_status); } && {
40912 test -z "$ac_c_werror_flag" ||
40913 test ! -s conftest.err
40914 } && test -s conftest.$ac_objext; then
a848cd7e
SC
40915
40916 wx_cv_type_pthread_rec_mutex_init=yes
40917
40918else
d589327a 40919 echo "$as_me: failed program was:" >&5
a848cd7e
SC
40920sed 's/^/| /' conftest.$ac_ext >&5
40921
40922
40923 wx_cv_type_pthread_rec_mutex_init=no
40924
40925
40926fi
47964710
VS
40927
40928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40929
40930fi
d589327a
VZ
40931{ echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40932echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
a848cd7e
SC
40933 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40934 cat >>confdefs.h <<\_ACEOF
40935#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40936_ACEOF
40937
40938 else
d589327a
VZ
40939 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40940echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
a848cd7e 40941 fi
64a044d5
VZ
40942 fi
40943
7beff712
VZ
40944 if test "$wxUSE_COMPILER_TLS" = "auto"; then
40945 if test "$USE_NETBSD" = 1; then
40946 { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
40947echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
40948 wxUSE_COMPILER_TLS=no
40949 else
40950 wxUSE_COMPILER_TLS=yes
40951 fi
40952 fi
40953
40954 if test "$wxUSE_COMPILER_TLS" = "yes"; then
40955 { echo "$as_me:$LINENO: checking for __thread keyword" >&5
d589327a 40956echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
d3dcef01 40957if test "${wx_cv_cc___thread+set}" = set; then
d589327a 40958 echo $ECHO_N "(cached) $ECHO_C" >&6
d3dcef01
VZ
40959else
40960
7beff712 40961 cat >conftest.$ac_ext <<_ACEOF
d3dcef01
VZ
40962/* confdefs.h. */
40963_ACEOF
40964cat confdefs.h >>conftest.$ac_ext
40965cat >>conftest.$ac_ext <<_ACEOF
40966/* end confdefs.h. */
40967#include <pthread.h>
40968int
40969main ()
40970{
40971
7beff712
VZ
40972 static __thread int n = 0;
40973 static __thread int *p = 0;
d3dcef01
VZ
40974
40975 ;
40976 return 0;
40977}
40978_ACEOF
40979rm -f conftest.$ac_objext
40980if { (ac_try="$ac_compile"
40981case "(($ac_try" in
40982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40983 *) ac_try_echo=$ac_try;;
40984esac
d589327a 40985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d3dcef01
VZ
40986 (eval "$ac_compile") 2>conftest.er1
40987 ac_status=$?
40988 grep -v '^ *+' conftest.er1 >conftest.err
40989 rm -f conftest.er1
40990 cat conftest.err >&5
d589327a 40991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3dcef01
VZ
40992 (exit $ac_status); } && {
40993 test -z "$ac_c_werror_flag" ||
40994 test ! -s conftest.err
40995 } && test -s conftest.$ac_objext; then
40996 wx_cv_cc___thread=yes
40997else
d589327a 40998 echo "$as_me: failed program was:" >&5
d3dcef01
VZ
40999sed 's/^/| /' conftest.$ac_ext >&5
41000
41001 wx_cv_cc___thread=no
41002
41003fi
41004
41005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41006
41007
41008fi
d589327a
VZ
41009{ echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
41010echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
d3dcef01 41011
7beff712 41012 if test "$wx_cv_cc___thread" = "yes"; then
eb6a8d69
VZ
41013
41014 GXX_VERSION=""
41015
41016
41017
d589327a
VZ
41018 { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
41019echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
eb6a8d69
VZ
41020
41021 if test "x$GCC" = "xyes" ; then
41022
41023 if test -z "" ; then
41024
41025 ax_gcc_option_test="int main()
41026{
41027 return 0;
41028}"
41029
41030else
41031
41032 ax_gcc_option_test=""
41033
41034fi
41035
41036
41037 # Dump the test program to file
41038 cat <<EOF > conftest.c
41039$ax_gcc_option_test
41040EOF
41041
41042 # Dump back the file to the log, useful for debugging purposes
41043 { ac_try='cat conftest.c 1>&5'
41044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41045 (eval $ac_try) 2>&5
41046 ac_status=$?
d589327a 41047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
eb6a8d69
VZ
41048 (exit $ac_status); }; }
41049
41050 if { ac_try='$CC -dumpversion -c conftest.c 1>&5'
41051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41052 (eval $ac_try) 2>&5
41053 ac_status=$?
d589327a 41054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
eb6a8d69
VZ
41055 (exit $ac_status); }; } ; then
41056
d589327a
VZ
41057 { echo "$as_me:$LINENO: result: yes" >&5
41058echo "${ECHO_T}yes" >&6; }
eb6a8d69
VZ
41059
41060 ax_gcc_version_option=yes
41061
41062
41063else
41064
d589327a
VZ
41065 { echo "$as_me:$LINENO: result: no" >&5
41066echo "${ECHO_T}no" >&6; }
eb6a8d69
VZ
41067
41068 ax_gcc_version_option=no
41069
41070
41071fi
41072
41073
41074else
41075
d589327a
VZ
41076 { echo "$as_me:$LINENO: result: no gcc available" >&5
41077echo "${ECHO_T}no gcc available" >&6; }
eb6a8d69
VZ
41078
41079fi
41080
41081
41082 if test "x$GXX" = "xyes"; then
41083
41084 if test "x$ax_gxx_version_option" != "no"; then
41085
d589327a
VZ
41086 { echo "$as_me:$LINENO: checking gxx version" >&5
41087echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
eb6a8d69 41088if test "${ax_cv_gxx_version+set}" = set; then
d589327a 41089 echo $ECHO_N "(cached) $ECHO_C" >&6
eb6a8d69
VZ
41090else
41091
41092 ax_cv_gxx_version="`$CXX -dumpversion`"
41093 if test "x$ax_cv_gxx_version" = "x"; then
41094
41095 ax_cv_gxx_version=""
41096
41097fi
41098
41099
41100fi
d589327a
VZ
41101{ echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
41102echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
eb6a8d69
VZ
41103 GXX_VERSION=$ax_cv_gxx_version
41104
41105fi
41106
41107
41108fi
41109
41110
41111
7beff712
VZ
41112 if test -n "$ax_cv_gxx_version"; then
41113 { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
d589327a 41114echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
7beff712
VZ
41115 case "$ax_cv_gxx_version" in
41116 1.* | 2.* | 3.* )
41117 { echo "$as_me:$LINENO: result: no, it's broken" >&5
d589327a 41118echo "${ECHO_T}no, it's broken" >&6; }
7beff712
VZ
41119 wx_cv_cc___thread=no
41120 ;;
41121 *)
41122 { echo "$as_me:$LINENO: result: yes, it works" >&5
d589327a 41123echo "${ECHO_T}yes, it works" >&6; }
7beff712
VZ
41124 ;;
41125 esac
41126 fi
d3dcef01 41127 fi
64a044d5 41128
7beff712
VZ
41129 if test "$wx_cv_cc___thread" = "yes"; then
41130 cat >>confdefs.h <<\_ACEOF
64a044d5
VZ
41131#define HAVE___THREAD_KEYWORD 1
41132_ACEOF
41133
7beff712
VZ
41134 fi
41135 fi
a848cd7e
SC
41136 fi
41137
41138else
41139 if test "$wxUSE_THREADS" = "yes" ; then
41140 case "${host}" in
64a044d5 41141 x86_64-*-mingw32* )
f380544a 41142 ;;
a848cd7e 41143 *-*-mingw32* )
d589327a
VZ
41144 { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
41145echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
a848cd7e 41146if test "${wx_cv_cflags_mthread+set}" = set; then
d589327a 41147 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
41148else
41149
9b8888f9
VZ
41150 CFLAGS_OLD="$CFLAGS"
41151 CFLAGS="-mthreads $CFLAGS"
a848cd7e
SC
41152 cat >conftest.$ac_ext <<_ACEOF
41153/* confdefs.h. */
41154_ACEOF
41155cat confdefs.h >>conftest.$ac_ext
41156cat >>conftest.$ac_ext <<_ACEOF
41157/* end confdefs.h. */
41158
41159int
41160main ()
41161{
41162
41163 ;
41164 return 0;
41165}
41166_ACEOF
41167rm -f conftest.$ac_objext
47964710
VS
41168if { (ac_try="$ac_compile"
41169case "(($ac_try" in
41170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41171 *) ac_try_echo=$ac_try;;
41172esac
d589327a 41173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 41174 (eval "$ac_compile") 2>conftest.er1
a848cd7e 41175 ac_status=$?
ac1cb8d3
VS
41176 grep -v '^ *+' conftest.er1 >conftest.err
41177 rm -f conftest.er1
41178 cat conftest.err >&5
d589327a 41179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41180 (exit $ac_status); } && {
41181 test -z "$ac_c_werror_flag" ||
41182 test ! -s conftest.err
41183 } && test -s conftest.$ac_objext; then
a848cd7e
SC
41184 wx_cv_cflags_mthread=yes
41185else
d589327a 41186 echo "$as_me: failed program was:" >&5
a848cd7e
SC
41187sed 's/^/| /' conftest.$ac_ext >&5
41188
47964710 41189 wx_cv_cflags_mthread=no
a848cd7e
SC
41190
41191fi
47964710
VS
41192
41193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41194
41195
41196fi
d589327a
VZ
41197{ echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
41198echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
a848cd7e
SC
41199
41200 if test "$wx_cv_cflags_mthread" = "yes"; then
9b8888f9 41201 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
41202 LDFLAGS="$LDFLAGS -mthreads"
41203 else
9b8888f9 41204 CFLAGS="$CFLAGS_OLD"
a848cd7e
SC
41205 fi
41206 ;;
41207 *-pc-os2*emx )
5ff751d6 41208 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
41209 LDFLAGS="$LDFLAGS -Zmt"
41210 ;;
41211 esac
41212 fi
41213fi
41214
d589327a
VZ
41215{ echo "$as_me:$LINENO: checking for localtime_r" >&5
41216echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
004ee6da 41217if test "${ac_cv_func_localtime_r+set}" = set; then
d589327a 41218 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
41219else
41220 cat >conftest.$ac_ext <<_ACEOF
41221/* confdefs.h. */
41222_ACEOF
41223cat confdefs.h >>conftest.$ac_ext
41224cat >>conftest.$ac_ext <<_ACEOF
41225/* end confdefs.h. */
004ee6da 41226/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 41227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 41228#define localtime_r innocuous_localtime_r
ac1cb8d3 41229
a848cd7e 41230/* System header to define __stub macros and hopefully few prototypes,
004ee6da 41231 which can conflict with char localtime_r (); below.
a848cd7e
SC
41232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41233 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41234
a848cd7e
SC
41235#ifdef __STDC__
41236# include <limits.h>
41237#else
41238# include <assert.h>
41239#endif
ac1cb8d3 41240
004ee6da 41241#undef localtime_r
ac1cb8d3 41242
47964710
VS
41243/* Override any GCC internal prototype to avoid an error.
41244 Use char because int might match the return type of a GCC
41245 builtin and then its argument prototype would still apply. */
a848cd7e
SC
41246#ifdef __cplusplus
41247extern "C"
a848cd7e 41248#endif
004ee6da 41249char localtime_r ();
a848cd7e
SC
41250/* The GNU C library defines this for functions which it implements
41251 to always fail with ENOSYS. Some functions are actually named
41252 something starting with __ and the normal name is an alias. */
47964710 41253#if defined __stub_localtime_r || defined __stub___localtime_r
a848cd7e 41254choke me
a848cd7e
SC
41255#endif
41256
41257int
41258main ()
41259{
47964710 41260return localtime_r ();
004ee6da
RL
41261 ;
41262 return 0;
41263}
41264_ACEOF
41265rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
41266if { (ac_try="$ac_link"
41267case "(($ac_try" in
41268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41269 *) ac_try_echo=$ac_try;;
41270esac
d589327a 41271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 41272 (eval "$ac_link") 2>conftest.er1
004ee6da
RL
41273 ac_status=$?
41274 grep -v '^ *+' conftest.er1 >conftest.err
41275 rm -f conftest.er1
41276 cat conftest.err >&5
d589327a 41277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41278 (exit $ac_status); } && {
41279 test -z "$ac_c_werror_flag" ||
41280 test ! -s conftest.err
d589327a
VZ
41281 } && test -s conftest$ac_exeext &&
41282 $as_test_x conftest$ac_exeext; then
004ee6da
RL
41283 ac_cv_func_localtime_r=yes
41284else
d589327a 41285 echo "$as_me: failed program was:" >&5
004ee6da
RL
41286sed 's/^/| /' conftest.$ac_ext >&5
41287
47964710 41288 ac_cv_func_localtime_r=no
004ee6da 41289fi
47964710
VS
41290
41291rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
004ee6da
RL
41292 conftest$ac_exeext conftest.$ac_ext
41293fi
d589327a
VZ
41294{ echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
41295echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
41296if test $ac_cv_func_localtime_r = yes; then
004ee6da
RL
41297 cat >>confdefs.h <<\_ACEOF
41298#define HAVE_LOCALTIME_R 1
41299_ACEOF
41300
41301fi
41302
d589327a
VZ
41303{ echo "$as_me:$LINENO: checking for gmtime_r" >&5
41304echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
004ee6da 41305if test "${ac_cv_func_gmtime_r+set}" = set; then
d589327a 41306 echo $ECHO_N "(cached) $ECHO_C" >&6
004ee6da
RL
41307else
41308 cat >conftest.$ac_ext <<_ACEOF
41309/* confdefs.h. */
41310_ACEOF
41311cat confdefs.h >>conftest.$ac_ext
41312cat >>conftest.$ac_ext <<_ACEOF
41313/* end confdefs.h. */
41314/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
41315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41316#define gmtime_r innocuous_gmtime_r
41317
41318/* System header to define __stub macros and hopefully few prototypes,
41319 which can conflict with char gmtime_r (); below.
41320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41321 <limits.h> exists even on freestanding compilers. */
41322
41323#ifdef __STDC__
41324# include <limits.h>
41325#else
41326# include <assert.h>
41327#endif
41328
41329#undef gmtime_r
41330
47964710
VS
41331/* Override any GCC internal prototype to avoid an error.
41332 Use char because int might match the return type of a GCC
41333 builtin and then its argument prototype would still apply. */
004ee6da
RL
41334#ifdef __cplusplus
41335extern "C"
004ee6da 41336#endif
004ee6da
RL
41337char gmtime_r ();
41338/* The GNU C library defines this for functions which it implements
41339 to always fail with ENOSYS. Some functions are actually named
41340 something starting with __ and the normal name is an alias. */
47964710 41341#if defined __stub_gmtime_r || defined __stub___gmtime_r
004ee6da 41342choke me
004ee6da
RL
41343#endif
41344
41345int
41346main ()
41347{
47964710 41348return gmtime_r ();
004ee6da
RL
41349 ;
41350 return 0;
41351}
41352_ACEOF
41353rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
41354if { (ac_try="$ac_link"
41355case "(($ac_try" in
41356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41357 *) ac_try_echo=$ac_try;;
41358esac
d589327a 41359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 41360 (eval "$ac_link") 2>conftest.er1
004ee6da
RL
41361 ac_status=$?
41362 grep -v '^ *+' conftest.er1 >conftest.err
41363 rm -f conftest.er1
41364 cat conftest.err >&5
d589327a 41365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41366 (exit $ac_status); } && {
41367 test -z "$ac_c_werror_flag" ||
41368 test ! -s conftest.err
d589327a
VZ
41369 } && test -s conftest$ac_exeext &&
41370 $as_test_x conftest$ac_exeext; then
004ee6da
RL
41371 ac_cv_func_gmtime_r=yes
41372else
d589327a 41373 echo "$as_me: failed program was:" >&5
004ee6da
RL
41374sed 's/^/| /' conftest.$ac_ext >&5
41375
47964710 41376 ac_cv_func_gmtime_r=no
004ee6da 41377fi
47964710
VS
41378
41379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
004ee6da
RL
41380 conftest$ac_exeext conftest.$ac_ext
41381fi
d589327a
VZ
41382{ echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
41383echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
41384if test $ac_cv_func_gmtime_r = yes; then
004ee6da
RL
41385 cat >>confdefs.h <<\_ACEOF
41386#define HAVE_GMTIME_R 1
41387_ACEOF
41388
41389fi
41390
004ee6da 41391
004ee6da
RL
41392
41393
41394 ac_ext=c
41395ac_cpp='$CPP $CPPFLAGS'
41396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41398ac_compiler_gnu=$ac_cv_c_compiler_gnu
41399
d589327a
VZ
41400 { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
41401echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
004ee6da
RL
41402
41403 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
d589327a 41404 echo $ECHO_N "(cached) $ECHO_C" >&6
004ee6da
RL
41405else
41406
41407
43a7c679 41408################################################################
004ee6da
RL
41409
41410ac_cv_func_which_gethostbyname_r=unknown
41411
41412#
41413# ONE ARGUMENT (sanity check)
41414#
41415
41416# This should fail, as there is no variant of gethostbyname_r() that takes
41417# a single argument. If it actually compiles, then we can assume that
41418# netdb.h is not declaring the function, and the compiler is thereby
41419# assuming an implicit prototype. In which case, we're out of luck.
41420#
41421cat >conftest.$ac_ext <<_ACEOF
41422/* confdefs.h. */
41423_ACEOF
41424cat confdefs.h >>conftest.$ac_ext
41425cat >>conftest.$ac_ext <<_ACEOF
41426/* end confdefs.h. */
41427#include <netdb.h>
41428int
41429main ()
41430{
41431
41432 char *name = "www.gnu.org";
41433 (void)gethostbyname_r(name) /* ; */
41434
41435 ;
41436 return 0;
41437}
41438_ACEOF
41439rm -f conftest.$ac_objext
47964710
VS
41440if { (ac_try="$ac_compile"
41441case "(($ac_try" in
41442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41443 *) ac_try_echo=$ac_try;;
41444esac
d589327a 41445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 41446 (eval "$ac_compile") 2>conftest.er1
004ee6da
RL
41447 ac_status=$?
41448 grep -v '^ *+' conftest.er1 >conftest.err
41449 rm -f conftest.er1
41450 cat conftest.err >&5
d589327a 41451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41452 (exit $ac_status); } && {
41453 test -z "$ac_c_werror_flag" ||
41454 test ! -s conftest.err
41455 } && test -s conftest.$ac_objext; then
004ee6da
RL
41456 ac_cv_func_which_gethostbyname_r=no
41457else
d589327a 41458 echo "$as_me: failed program was:" >&5
004ee6da
RL
41459sed 's/^/| /' conftest.$ac_ext >&5
41460
47964710 41461
004ee6da 41462fi
47964710
VS
41463
41464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
41465
41466#
41467# SIX ARGUMENTS
41468# (e.g. Linux)
41469#
41470
41471if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41472
41473cat >conftest.$ac_ext <<_ACEOF
41474/* confdefs.h. */
41475_ACEOF
41476cat confdefs.h >>conftest.$ac_ext
41477cat >>conftest.$ac_ext <<_ACEOF
41478/* end confdefs.h. */
41479#include <netdb.h>
41480int
41481main ()
41482{
41483
41484 char *name = "www.gnu.org";
41485 struct hostent ret, *retp;
41486 char buf[1024];
41487 int buflen = 1024;
41488 int my_h_errno;
41489 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
41490
41491 ;
41492 return 0;
41493}
41494_ACEOF
41495rm -f conftest.$ac_objext
47964710
VS
41496if { (ac_try="$ac_compile"
41497case "(($ac_try" in
41498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41499 *) ac_try_echo=$ac_try;;
41500esac
d589327a 41501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 41502 (eval "$ac_compile") 2>conftest.er1
004ee6da
RL
41503 ac_status=$?
41504 grep -v '^ *+' conftest.er1 >conftest.err
41505 rm -f conftest.er1
41506 cat conftest.err >&5
d589327a 41507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41508 (exit $ac_status); } && {
41509 test -z "$ac_c_werror_flag" ||
41510 test ! -s conftest.err
41511 } && test -s conftest.$ac_objext; then
004ee6da
RL
41512 ac_cv_func_which_gethostbyname_r=six
41513else
d589327a 41514 echo "$as_me: failed program was:" >&5
004ee6da
RL
41515sed 's/^/| /' conftest.$ac_ext >&5
41516
47964710 41517
004ee6da 41518fi
47964710
VS
41519
41520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
41521
41522fi
41523
41524#
41525# FIVE ARGUMENTS
41526# (e.g. Solaris)
41527#
41528
41529if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41530
41531cat >conftest.$ac_ext <<_ACEOF
41532/* confdefs.h. */
41533_ACEOF
41534cat confdefs.h >>conftest.$ac_ext
41535cat >>conftest.$ac_ext <<_ACEOF
41536/* end confdefs.h. */
41537#include <netdb.h>
41538int
41539main ()
41540{
41541
41542 char *name = "www.gnu.org";
41543 struct hostent ret;
41544 char buf[1024];
41545 int buflen = 1024;
41546 int my_h_errno;
41547 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
41548
41549 ;
41550 return 0;
41551}
41552_ACEOF
41553rm -f conftest.$ac_objext
47964710
VS
41554if { (ac_try="$ac_compile"
41555case "(($ac_try" in
41556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41557 *) ac_try_echo=$ac_try;;
41558esac
d589327a 41559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 41560 (eval "$ac_compile") 2>conftest.er1
004ee6da
RL
41561 ac_status=$?
41562 grep -v '^ *+' conftest.er1 >conftest.err
41563 rm -f conftest.er1
41564 cat conftest.err >&5
d589327a 41565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41566 (exit $ac_status); } && {
41567 test -z "$ac_c_werror_flag" ||
41568 test ! -s conftest.err
41569 } && test -s conftest.$ac_objext; then
004ee6da
RL
41570 ac_cv_func_which_gethostbyname_r=five
41571else
d589327a 41572 echo "$as_me: failed program was:" >&5
004ee6da
RL
41573sed 's/^/| /' conftest.$ac_ext >&5
41574
47964710 41575
004ee6da 41576fi
47964710
VS
41577
41578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
41579
41580fi
41581
41582#
41583# THREE ARGUMENTS
41584# (e.g. AIX, HP-UX, Tru64)
41585#
41586
41587if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41588
41589cat >conftest.$ac_ext <<_ACEOF
41590/* confdefs.h. */
41591_ACEOF
41592cat confdefs.h >>conftest.$ac_ext
41593cat >>conftest.$ac_ext <<_ACEOF
41594/* end confdefs.h. */
41595#include <netdb.h>
41596int
41597main ()
41598{
41599
41600 char *name = "www.gnu.org";
41601 struct hostent ret;
41602 struct hostent_data data;
41603 (void)gethostbyname_r(name, &ret, &data) /* ; */
41604
41605 ;
41606 return 0;
41607}
41608_ACEOF
41609rm -f conftest.$ac_objext
47964710
VS
41610if { (ac_try="$ac_compile"
41611case "(($ac_try" in
41612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41613 *) ac_try_echo=$ac_try;;
41614esac
d589327a 41615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 41616 (eval "$ac_compile") 2>conftest.er1
004ee6da
RL
41617 ac_status=$?
41618 grep -v '^ *+' conftest.er1 >conftest.err
41619 rm -f conftest.er1
41620 cat conftest.err >&5
d589327a 41621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41622 (exit $ac_status); } && {
41623 test -z "$ac_c_werror_flag" ||
41624 test ! -s conftest.err
41625 } && test -s conftest.$ac_objext; then
004ee6da
RL
41626 ac_cv_func_which_gethostbyname_r=three
41627else
d589327a 41628 echo "$as_me: failed program was:" >&5
004ee6da
RL
41629sed 's/^/| /' conftest.$ac_ext >&5
41630
47964710 41631
004ee6da 41632fi
47964710
VS
41633
41634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
41635
41636fi
41637
43a7c679 41638################################################################
004ee6da
RL
41639
41640
41641fi
41642
41643case "$ac_cv_func_which_gethostbyname_r" in
41644 three)
d589327a
VZ
41645 { echo "$as_me:$LINENO: result: three" >&5
41646echo "${ECHO_T}three" >&6; }
004ee6da
RL
41647 cat >>confdefs.h <<\_ACEOF
41648#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41649_ACEOF
41650
41651 ;;
41652
41653 five)
d589327a
VZ
41654 { echo "$as_me:$LINENO: result: five" >&5
41655echo "${ECHO_T}five" >&6; }
004ee6da
RL
41656 cat >>confdefs.h <<\_ACEOF
41657#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41658_ACEOF
41659
41660 ;;
41661
41662 six)
d589327a
VZ
41663 { echo "$as_me:$LINENO: result: six" >&5
41664echo "${ECHO_T}six" >&6; }
004ee6da
RL
41665 cat >>confdefs.h <<\_ACEOF
41666#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41667_ACEOF
41668
41669 ;;
41670
41671 no)
d589327a
VZ
41672 { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41673echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
004ee6da
RL
41674 ;;
41675
41676 unknown)
d589327a
VZ
41677 { echo "$as_me:$LINENO: result: can't tell" >&5
41678echo "${ECHO_T}can't tell" >&6; }
004ee6da
RL
41679 ;;
41680
41681 *)
d589327a
VZ
41682 { { echo "$as_me:$LINENO: error: internal error" >&5
41683echo "$as_me: error: internal error" >&2;}
004ee6da
RL
41684 { (exit 1); exit 1; }; }
41685 ;;
41686esac
41687
fd5199d6
VZ
41688ac_ext=c
41689ac_cpp='$CPP $CPPFLAGS'
41690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41692ac_compiler_gnu=$ac_cv_c_compiler_gnu
004ee6da
RL
41693
41694
41695
41696 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
ec3edcc9 41697 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
d589327a
VZ
41698 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
41699echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
004ee6da 41700if test "${ac_cv_func_gethostbyname+set}" = set; then
d589327a 41701 echo $ECHO_N "(cached) $ECHO_C" >&6
004ee6da
RL
41702else
41703 cat >conftest.$ac_ext <<_ACEOF
41704/* confdefs.h. */
41705_ACEOF
41706cat confdefs.h >>conftest.$ac_ext
41707cat >>conftest.$ac_ext <<_ACEOF
41708/* end confdefs.h. */
41709/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41711#define gethostbyname innocuous_gethostbyname
41712
41713/* System header to define __stub macros and hopefully few prototypes,
41714 which can conflict with char gethostbyname (); below.
41715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41716 <limits.h> exists even on freestanding compilers. */
41717
41718#ifdef __STDC__
41719# include <limits.h>
41720#else
41721# include <assert.h>
41722#endif
41723
41724#undef gethostbyname
41725
47964710
VS
41726/* Override any GCC internal prototype to avoid an error.
41727 Use char because int might match the return type of a GCC
41728 builtin and then its argument prototype would still apply. */
004ee6da
RL
41729#ifdef __cplusplus
41730extern "C"
004ee6da 41731#endif
004ee6da
RL
41732char gethostbyname ();
41733/* The GNU C library defines this for functions which it implements
41734 to always fail with ENOSYS. Some functions are actually named
41735 something starting with __ and the normal name is an alias. */
47964710 41736#if defined __stub_gethostbyname || defined __stub___gethostbyname
004ee6da 41737choke me
004ee6da
RL
41738#endif
41739
41740int
41741main ()
41742{
47964710 41743return gethostbyname ();
004ee6da
RL
41744 ;
41745 return 0;
41746}
41747_ACEOF
41748rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
41749if { (ac_try="$ac_link"
41750case "(($ac_try" in
41751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41752 *) ac_try_echo=$ac_try;;
41753esac
d589327a 41754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 41755 (eval "$ac_link") 2>conftest.er1
004ee6da
RL
41756 ac_status=$?
41757 grep -v '^ *+' conftest.er1 >conftest.err
41758 rm -f conftest.er1
41759 cat conftest.err >&5
d589327a 41760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41761 (exit $ac_status); } && {
41762 test -z "$ac_c_werror_flag" ||
41763 test ! -s conftest.err
d589327a
VZ
41764 } && test -s conftest$ac_exeext &&
41765 $as_test_x conftest$ac_exeext; then
004ee6da
RL
41766 ac_cv_func_gethostbyname=yes
41767else
d589327a 41768 echo "$as_me: failed program was:" >&5
004ee6da
RL
41769sed 's/^/| /' conftest.$ac_ext >&5
41770
47964710 41771 ac_cv_func_gethostbyname=no
004ee6da 41772fi
47964710
VS
41773
41774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
004ee6da
RL
41775 conftest$ac_exeext conftest.$ac_ext
41776fi
d589327a
VZ
41777{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41778echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
41779if test $ac_cv_func_gethostbyname = yes; then
004ee6da
RL
41780 cat >>confdefs.h <<\_ACEOF
41781#define HAVE_GETHOSTBYNAME 1
41782_ACEOF
41783
41784fi
41785
41786 fi
111d9948 41787
d589327a
VZ
41788{ echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41789echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
43a7c679 41790if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
d589327a 41791 echo $ECHO_N "(cached) $ECHO_C" >&6
4fc1c0f0 41792else
4fc1c0f0 41793
47964710 41794 ac_ext=cpp
43a7c679
VZ
41795ac_cpp='$CXXCPP $CPPFLAGS'
41796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4fc1c0f0 41799
fd5199d6 41800
3ecd9f92 41801 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41802/* confdefs.h. */
41803_ACEOF
41804cat confdefs.h >>conftest.$ac_ext
41805cat >>conftest.$ac_ext <<_ACEOF
41806/* end confdefs.h. */
43a7c679 41807#include <netdb.h>
004ee6da
RL
41808int
41809main ()
41810{
41811
43a7c679
VZ
41812 char *name;
41813 char *proto;
41814 struct servent *se, *res;
41815 char buffer[2048];
41816 int buflen = 2048;
41817 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
41818
41819 ;
41820 return 0;
41821}
41822_ACEOF
41823rm -f conftest.$ac_objext
47964710
VS
41824if { (ac_try="$ac_compile"
41825case "(($ac_try" in
41826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41827 *) ac_try_echo=$ac_try;;
41828esac
d589327a 41829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 41830 (eval "$ac_compile") 2>conftest.er1
004ee6da
RL
41831 ac_status=$?
41832 grep -v '^ *+' conftest.er1 >conftest.err
41833 rm -f conftest.er1
41834 cat conftest.err >&5
d589327a 41835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41836 (exit $ac_status); } && {
41837 test -z "$ac_cxx_werror_flag" ||
41838 test ! -s conftest.err
41839 } && test -s conftest.$ac_objext; then
43a7c679 41840 ac_cv_func_which_getservbyname_r=six
004ee6da 41841else
d589327a 41842 echo "$as_me: failed program was:" >&5
004ee6da
RL
41843sed 's/^/| /' conftest.$ac_ext >&5
41844
3ecd9f92 41845
43a7c679 41846 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41847/* confdefs.h. */
41848_ACEOF
41849cat confdefs.h >>conftest.$ac_ext
41850cat >>conftest.$ac_ext <<_ACEOF
41851/* end confdefs.h. */
43a7c679 41852#include <netdb.h>
004ee6da
RL
41853int
41854main ()
41855{
41856
43a7c679
VZ
41857 char *name;
41858 char *proto;
41859 struct servent *se;
41860 char buffer[2048];
41861 int buflen = 2048;
41862 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
41863
41864 ;
41865 return 0;
41866}
41867_ACEOF
41868rm -f conftest.$ac_objext
47964710
VS
41869if { (ac_try="$ac_compile"
41870case "(($ac_try" in
41871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41872 *) ac_try_echo=$ac_try;;
41873esac
d589327a 41874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 41875 (eval "$ac_compile") 2>conftest.er1
004ee6da
RL
41876 ac_status=$?
41877 grep -v '^ *+' conftest.er1 >conftest.err
41878 rm -f conftest.er1
41879 cat conftest.err >&5
d589327a 41880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41881 (exit $ac_status); } && {
41882 test -z "$ac_cxx_werror_flag" ||
41883 test ! -s conftest.err
41884 } && test -s conftest.$ac_objext; then
43a7c679 41885 ac_cv_func_which_getservbyname_r=five
004ee6da 41886else
d589327a 41887 echo "$as_me: failed program was:" >&5
004ee6da
RL
41888sed 's/^/| /' conftest.$ac_ext >&5
41889
3ecd9f92 41890
43a7c679 41891 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41892/* confdefs.h. */
41893_ACEOF
41894cat confdefs.h >>conftest.$ac_ext
41895cat >>conftest.$ac_ext <<_ACEOF
41896/* end confdefs.h. */
43a7c679 41897#include <netdb.h>
004ee6da
RL
41898int
41899main ()
41900{
41901
43a7c679
VZ
41902 char *name;
41903 char *proto;
41904 struct servent *se;
41905 struct servent_data data;
41906 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
41907
41908 ;
41909 return 0;
41910}
41911_ACEOF
41912rm -f conftest.$ac_objext
47964710
VS
41913if { (ac_try="$ac_compile"
41914case "(($ac_try" in
41915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41916 *) ac_try_echo=$ac_try;;
41917esac
d589327a 41918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 41919 (eval "$ac_compile") 2>conftest.er1
004ee6da
RL
41920 ac_status=$?
41921 grep -v '^ *+' conftest.er1 >conftest.err
41922 rm -f conftest.er1
41923 cat conftest.err >&5
d589327a 41924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
41925 (exit $ac_status); } && {
41926 test -z "$ac_cxx_werror_flag" ||
41927 test ! -s conftest.err
41928 } && test -s conftest.$ac_objext; then
43a7c679 41929 ac_cv_func_which_getservbyname_r=four
004ee6da 41930else
d589327a 41931 echo "$as_me: failed program was:" >&5
004ee6da
RL
41932sed 's/^/| /' conftest.$ac_ext >&5
41933
47964710 41934 ac_cv_func_which_getservbyname_r=no
43a7c679 41935
faa5c14f 41936fi
47964710
VS
41937
41938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
111d9948
VS
41939
41940
004ee6da 41941fi
47964710
VS
41942
41943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 41944
3ecd9f92 41945
111d9948 41946fi
47964710
VS
41947
41948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43a7c679
VZ
41949 ac_ext=c
41950ac_cpp='$CPP $CPPFLAGS'
41951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41953ac_compiler_gnu=$ac_cv_c_compiler_gnu
41954
faa5c14f
VZ
41955
41956
3ecd9f92 41957fi
d589327a
VZ
41958{ echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41959echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
004ee6da
RL
41960
41961if test $ac_cv_func_which_getservbyname_r = six; then
41962 cat >>confdefs.h <<\_ACEOF
41963#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41964_ACEOF
41965
41966elif test $ac_cv_func_which_getservbyname_r = five; then
41967 cat >>confdefs.h <<\_ACEOF
41968#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41969_ACEOF
41970
41971elif test $ac_cv_func_which_getservbyname_r = four; then
41972 cat >>confdefs.h <<\_ACEOF
41973#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41974_ACEOF
41975
004ee6da
RL
41976fi
41977
41978
41979 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
ec3edcc9 41980 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
004ee6da
RL
41981
41982for ac_func in getservbyname
41983do
d589327a
VZ
41984as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41985{ echo "$as_me:$LINENO: checking for $ac_func" >&5
41986echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 41987if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 41988 echo $ECHO_N "(cached) $ECHO_C" >&6
004ee6da
RL
41989else
41990 cat >conftest.$ac_ext <<_ACEOF
41991/* confdefs.h. */
41992_ACEOF
41993cat confdefs.h >>conftest.$ac_ext
41994cat >>conftest.$ac_ext <<_ACEOF
41995/* end confdefs.h. */
41996/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41998#define $ac_func innocuous_$ac_func
41999
42000/* System header to define __stub macros and hopefully few prototypes,
42001 which can conflict with char $ac_func (); below.
42002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42003 <limits.h> exists even on freestanding compilers. */
42004
42005#ifdef __STDC__
42006# include <limits.h>
42007#else
42008# include <assert.h>
42009#endif
42010
42011#undef $ac_func
42012
47964710
VS
42013/* Override any GCC internal prototype to avoid an error.
42014 Use char because int might match the return type of a GCC
42015 builtin and then its argument prototype would still apply. */
004ee6da
RL
42016#ifdef __cplusplus
42017extern "C"
004ee6da 42018#endif
004ee6da
RL
42019char $ac_func ();
42020/* The GNU C library defines this for functions which it implements
42021 to always fail with ENOSYS. Some functions are actually named
42022 something starting with __ and the normal name is an alias. */
47964710 42023#if defined __stub_$ac_func || defined __stub___$ac_func
004ee6da 42024choke me
004ee6da
RL
42025#endif
42026
42027int
42028main ()
42029{
47964710 42030return $ac_func ();
004ee6da
RL
42031 ;
42032 return 0;
42033}
42034_ACEOF
42035rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42036if { (ac_try="$ac_link"
42037case "(($ac_try" in
42038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42039 *) ac_try_echo=$ac_try;;
42040esac
d589327a 42041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 42042 (eval "$ac_link") 2>conftest.er1
004ee6da
RL
42043 ac_status=$?
42044 grep -v '^ *+' conftest.er1 >conftest.err
42045 rm -f conftest.er1
42046 cat conftest.err >&5
d589327a 42047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42048 (exit $ac_status); } && {
42049 test -z "$ac_c_werror_flag" ||
42050 test ! -s conftest.err
d589327a
VZ
42051 } && test -s conftest$ac_exeext &&
42052 $as_test_x conftest$ac_exeext; then
004ee6da
RL
42053 eval "$as_ac_var=yes"
42054else
d589327a 42055 echo "$as_me: failed program was:" >&5
004ee6da
RL
42056sed 's/^/| /' conftest.$ac_ext >&5
42057
47964710 42058 eval "$as_ac_var=no"
004ee6da 42059fi
47964710
VS
42060
42061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
004ee6da
RL
42062 conftest$ac_exeext conftest.$ac_ext
42063fi
d589327a
VZ
42064ac_res=`eval echo '${'$as_ac_var'}'`
42065 { echo "$as_me:$LINENO: result: $ac_res" >&5
42066echo "${ECHO_T}$ac_res" >&6; }
42067if test `eval echo '${'$as_ac_var'}'` = yes; then
004ee6da 42068 cat >>confdefs.h <<_ACEOF
d589327a 42069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
004ee6da
RL
42070_ACEOF
42071 cat >>confdefs.h <<\_ACEOF
42072#define HAVE_GETSERVBYNAME 1
42073_ACEOF
42074
42075fi
42076done
42077
42078 fi
42079
004ee6da
RL
42080if test "$wxUSE_THREADS" = "yes"; then
42081 cat >>confdefs.h <<\_ACEOF
42082#define wxUSE_THREADS 1
42083_ACEOF
42084
42085
42086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
42087else
56632e81 42088 if test "$wx_cv_func_strtok_r" = "yes"; then
d589327a
VZ
42089 { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
42090echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
004ee6da
RL
42091 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
42092 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
d589327a
VZ
42093 { echo "$as_me:$LINENO: result: yes" >&5
42094echo "${ECHO_T}yes" >&6; }
004ee6da 42095 else
d589327a
VZ
42096 { echo "$as_me:$LINENO: result: no" >&5
42097echo "${ECHO_T}no" >&6; }
004ee6da
RL
42098 fi
42099 fi
42100fi
42101
88262190 42102if test "$WXGTK2" = 1 ; then
004ee6da 42103 cat >>confdefs.h <<_ACEOF
88262190 42104#define __WXGTK20__ $WXGTK2
004ee6da
RL
42105_ACEOF
42106
42107 WXGTK12=1
42108fi
42109
42110if test "$WXGTK12" = 1 ; then
42111 cat >>confdefs.h <<_ACEOF
42112#define __WXGTK12__ $WXGTK12
42113_ACEOF
42114
42115fi
42116
42117if test "$WXGTK127" = 1 ; then
42118 cat >>confdefs.h <<_ACEOF
42119#define __WXGTK127__ $WXGTK127
42120_ACEOF
42121
42122fi
42123
42124if test "$WXGPE" = 1 ; then
42125 cat >>confdefs.h <<_ACEOF
42126#define __WXGPE__ $WXGPE
42127_ACEOF
42128
42129fi
42130
42131DEBUG_CFLAGS=
6ad6ba21 42132if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
d589327a
VZ
42133 { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
42134echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
6ad6ba21 42135elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
004ee6da 42136 DEBUG_CFLAGS="-g"
004ee6da
RL
42137fi
42138
42139if test "$wxUSE_DEBUG_GDB" = "yes" ; then
42140 wxUSE_DEBUG_INFO=yes
42141 if test "$GCC" = yes; then
42142 DEBUG_CFLAGS="-ggdb"
42143 fi
42144fi
42145
89b1afb4 42146if test "$wxUSE_DEBUG_FLAG" = "no" ; then
004ee6da 42147 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
42148 if test "x$wxGTK_VERSION" = "x1" ; then
42149 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
42150 fi
004ee6da
RL
42151 fi
42152fi
42153
42154if test "$wxUSE_MEM_TRACING" = "yes" ; then
42155 cat >>confdefs.h <<\_ACEOF
42156#define wxUSE_MEMORY_TRACING 1
42157_ACEOF
42158
42159 cat >>confdefs.h <<\_ACEOF
42160#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
42161_ACEOF
42162
42163 cat >>confdefs.h <<\_ACEOF
42164#define wxUSE_DEBUG_NEW_ALWAYS 1
42165_ACEOF
42166
42167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
42168fi
42169
42170if test "$wxUSE_DMALLOC" = "yes" ; then
42171 DMALLOC_LIBS="-ldmallocthcxx"
42172fi
42173
42174PROFILE_FLAGS=
42175if test "$wxUSE_PROFILE" = "yes" ; then
42176 PROFILE_FLAGS=" -pg"
42177fi
42178
42179if test "$GCC" = "yes" ; then
42180 if test "$wxUSE_NO_RTTI" = "yes" ; then
3017880e 42181 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
004ee6da
RL
42182 fi
42183 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42184 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
42185 fi
42186 if test "$wxUSE_PERMISSIVE" = "yes" ; then
42187 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
42188 fi
42189
42190 case "${host}" in
42191 powerpc*-*-aix* )
42192 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
42193 ;;
42194 *-hppa* )
42195 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
42196 ;;
42197 esac
42198fi
42199
42200OPTIMISE_CFLAGS=
6ad6ba21 42201if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
d589327a
VZ
42202 { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
42203echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
004ee6da 42204else
6ad6ba21
FM
42205 if test "$wxUSE_OPTIMISE" = "no" ; then
42206 if test "$GCC" = yes ; then
42207 OPTIMISE_CFLAGS="-O0"
42208 fi
004ee6da 42209 else
6ad6ba21
FM
42210 if test "$GCC" = yes ; then
42211 case "${host}" in
42212 *-pc-os2_emx | *-pc-os2-emx )
42213 OPTIMISE_CFLAGS="-O2"
42214 ;;
42215 *)
42216 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
42217 ;;
42218 esac
42219 else
42220 OPTIMISE_CFLAGS="-O"
42221 fi
004ee6da
RL
42222 fi
42223fi
42224
42225
abb6edd1 42226if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
004ee6da
RL
42227 cat >>confdefs.h <<\_ACEOF
42228#define WXWIN_COMPATIBILITY_2_6 1
42229_ACEOF
42230
abb6edd1
VS
42231
42232 WXWIN_COMPATIBILITY_2_8="yes"
42233fi
42234
42235if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
42236 cat >>confdefs.h <<\_ACEOF
42237#define WXWIN_COMPATIBILITY_2_8 1
42238_ACEOF
42239
004ee6da
RL
42240fi
42241
42242
42243if test "$wxUSE_GUI" = "yes"; then
42244 cat >>confdefs.h <<\_ACEOF
42245#define wxUSE_GUI 1
42246_ACEOF
42247
42248
42249 fi
42250
42251
42252if test "$wxUSE_UNIX" = "yes"; then
42253 cat >>confdefs.h <<\_ACEOF
42254#define wxUSE_UNIX 1
42255_ACEOF
42256
42257fi
42258
42259
42260if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42261
42262 HAVE_DL_FUNCS=0
42263 HAVE_SHL_FUNCS=0
42264 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3e654768 42265 if test "$USE_DOS" = 1; then
004ee6da
RL
42266 HAVE_DL_FUNCS=0
42267 else
42268
42269for ac_func in dlopen
42270do
d589327a
VZ
42271as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42272{ echo "$as_me:$LINENO: checking for $ac_func" >&5
42273echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 42274if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 42275 echo $ECHO_N "(cached) $ECHO_C" >&6
004ee6da
RL
42276else
42277 cat >conftest.$ac_ext <<_ACEOF
42278/* confdefs.h. */
42279_ACEOF
42280cat confdefs.h >>conftest.$ac_ext
42281cat >>conftest.$ac_ext <<_ACEOF
42282/* end confdefs.h. */
42283/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42285#define $ac_func innocuous_$ac_func
42286
42287/* System header to define __stub macros and hopefully few prototypes,
42288 which can conflict with char $ac_func (); below.
42289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42290 <limits.h> exists even on freestanding compilers. */
42291
42292#ifdef __STDC__
42293# include <limits.h>
42294#else
42295# include <assert.h>
42296#endif
42297
42298#undef $ac_func
42299
47964710
VS
42300/* Override any GCC internal prototype to avoid an error.
42301 Use char because int might match the return type of a GCC
42302 builtin and then its argument prototype would still apply. */
004ee6da
RL
42303#ifdef __cplusplus
42304extern "C"
004ee6da 42305#endif
004ee6da
RL
42306char $ac_func ();
42307/* The GNU C library defines this for functions which it implements
42308 to always fail with ENOSYS. Some functions are actually named
42309 something starting with __ and the normal name is an alias. */
47964710 42310#if defined __stub_$ac_func || defined __stub___$ac_func
004ee6da 42311choke me
004ee6da
RL
42312#endif
42313
42314int
42315main ()
42316{
47964710 42317return $ac_func ();
a848cd7e
SC
42318 ;
42319 return 0;
42320}
42321_ACEOF
42322rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42323if { (ac_try="$ac_link"
42324case "(($ac_try" in
42325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42326 *) ac_try_echo=$ac_try;;
42327esac
d589327a 42328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 42329 (eval "$ac_link") 2>conftest.er1
a848cd7e 42330 ac_status=$?
ac1cb8d3
VS
42331 grep -v '^ *+' conftest.er1 >conftest.err
42332 rm -f conftest.er1
42333 cat conftest.err >&5
d589327a 42334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42335 (exit $ac_status); } && {
42336 test -z "$ac_c_werror_flag" ||
42337 test ! -s conftest.err
d589327a
VZ
42338 } && test -s conftest$ac_exeext &&
42339 $as_test_x conftest$ac_exeext; then
54429bb3
RD
42340 eval "$as_ac_var=yes"
42341else
d589327a 42342 echo "$as_me: failed program was:" >&5
54429bb3
RD
42343sed 's/^/| /' conftest.$ac_ext >&5
42344
47964710 42345 eval "$as_ac_var=no"
54429bb3 42346fi
47964710
VS
42347
42348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54429bb3
RD
42349 conftest$ac_exeext conftest.$ac_ext
42350fi
d589327a
VZ
42351ac_res=`eval echo '${'$as_ac_var'}'`
42352 { echo "$as_me:$LINENO: result: $ac_res" >&5
42353echo "${ECHO_T}$ac_res" >&6; }
42354if test `eval echo '${'$as_ac_var'}'` = yes; then
54429bb3 42355 cat >>confdefs.h <<_ACEOF
d589327a 42356#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54429bb3
RD
42357_ACEOF
42358
42359 cat >>confdefs.h <<\_ACEOF
42360#define HAVE_DLOPEN 1
42361_ACEOF
42362
42363 HAVE_DL_FUNCS=1
42364
42365else
42366
d589327a
VZ
42367 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
42368echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
54429bb3 42369if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d589327a 42370 echo $ECHO_N "(cached) $ECHO_C" >&6
54429bb3
RD
42371else
42372 ac_check_lib_save_LIBS=$LIBS
42373LIBS="-ldl $LIBS"
42374cat >conftest.$ac_ext <<_ACEOF
42375/* confdefs.h. */
42376_ACEOF
42377cat confdefs.h >>conftest.$ac_ext
42378cat >>conftest.$ac_ext <<_ACEOF
42379/* end confdefs.h. */
42380
47964710
VS
42381/* Override any GCC internal prototype to avoid an error.
42382 Use char because int might match the return type of a GCC
42383 builtin and then its argument prototype would still apply. */
54429bb3
RD
42384#ifdef __cplusplus
42385extern "C"
42386#endif
42387char dlopen ();
42388int
42389main ()
42390{
47964710 42391return dlopen ();
54429bb3
RD
42392 ;
42393 return 0;
42394}
42395_ACEOF
42396rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42397if { (ac_try="$ac_link"
42398case "(($ac_try" in
42399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42400 *) ac_try_echo=$ac_try;;
42401esac
d589327a 42402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 42403 (eval "$ac_link") 2>conftest.er1
54429bb3
RD
42404 ac_status=$?
42405 grep -v '^ *+' conftest.er1 >conftest.err
42406 rm -f conftest.er1
42407 cat conftest.err >&5
d589327a 42408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42409 (exit $ac_status); } && {
42410 test -z "$ac_c_werror_flag" ||
42411 test ! -s conftest.err
d589327a
VZ
42412 } && test -s conftest$ac_exeext &&
42413 $as_test_x conftest$ac_exeext; then
54429bb3
RD
42414 ac_cv_lib_dl_dlopen=yes
42415else
d589327a 42416 echo "$as_me: failed program was:" >&5
54429bb3
RD
42417sed 's/^/| /' conftest.$ac_ext >&5
42418
47964710 42419 ac_cv_lib_dl_dlopen=no
54429bb3 42420fi
47964710
VS
42421
42422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54429bb3
RD
42423 conftest$ac_exeext conftest.$ac_ext
42424LIBS=$ac_check_lib_save_LIBS
42425fi
d589327a
VZ
42426{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
42427echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
42428if test $ac_cv_lib_dl_dlopen = yes; then
54429bb3
RD
42429
42430 cat >>confdefs.h <<\_ACEOF
42431#define HAVE_DLOPEN 1
42432_ACEOF
42433
42434 HAVE_DL_FUNCS=1
42435 DL_LINK=" -ldl$DL_LINK"
42436
42437else
42438
42439
42440for ac_func in shl_load
42441do
d589327a
VZ
42442as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42443{ echo "$as_me:$LINENO: checking for $ac_func" >&5
42444echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 42445if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 42446 echo $ECHO_N "(cached) $ECHO_C" >&6
54429bb3
RD
42447else
42448 cat >conftest.$ac_ext <<_ACEOF
42449/* confdefs.h. */
42450_ACEOF
42451cat confdefs.h >>conftest.$ac_ext
42452cat >>conftest.$ac_ext <<_ACEOF
42453/* end confdefs.h. */
42454/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42456#define $ac_func innocuous_$ac_func
42457
42458/* System header to define __stub macros and hopefully few prototypes,
42459 which can conflict with char $ac_func (); below.
42460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42461 <limits.h> exists even on freestanding compilers. */
42462
42463#ifdef __STDC__
42464# include <limits.h>
42465#else
42466# include <assert.h>
42467#endif
42468
42469#undef $ac_func
42470
47964710
VS
42471/* Override any GCC internal prototype to avoid an error.
42472 Use char because int might match the return type of a GCC
42473 builtin and then its argument prototype would still apply. */
54429bb3
RD
42474#ifdef __cplusplus
42475extern "C"
42476#endif
42477char $ac_func ();
42478/* The GNU C library defines this for functions which it implements
42479 to always fail with ENOSYS. Some functions are actually named
42480 something starting with __ and the normal name is an alias. */
47964710 42481#if defined __stub_$ac_func || defined __stub___$ac_func
54429bb3
RD
42482choke me
42483#endif
42484
42485int
42486main ()
42487{
47964710 42488return $ac_func ();
54429bb3
RD
42489 ;
42490 return 0;
42491}
42492_ACEOF
42493rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42494if { (ac_try="$ac_link"
42495case "(($ac_try" in
42496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42497 *) ac_try_echo=$ac_try;;
42498esac
d589327a 42499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 42500 (eval "$ac_link") 2>conftest.er1
54429bb3
RD
42501 ac_status=$?
42502 grep -v '^ *+' conftest.er1 >conftest.err
42503 rm -f conftest.er1
42504 cat conftest.err >&5
d589327a 42505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42506 (exit $ac_status); } && {
42507 test -z "$ac_c_werror_flag" ||
42508 test ! -s conftest.err
d589327a
VZ
42509 } && test -s conftest$ac_exeext &&
42510 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
42511 eval "$as_ac_var=yes"
42512else
d589327a 42513 echo "$as_me: failed program was:" >&5
a848cd7e
SC
42514sed 's/^/| /' conftest.$ac_ext >&5
42515
47964710 42516 eval "$as_ac_var=no"
a848cd7e 42517fi
47964710
VS
42518
42519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 42520 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42521fi
d589327a
VZ
42522ac_res=`eval echo '${'$as_ac_var'}'`
42523 { echo "$as_me:$LINENO: result: $ac_res" >&5
42524echo "${ECHO_T}$ac_res" >&6; }
42525if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 42526 cat >>confdefs.h <<_ACEOF
d589327a 42527#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
42528_ACEOF
42529
42530 cat >>confdefs.h <<\_ACEOF
42531#define HAVE_SHL_LOAD 1
42532_ACEOF
42533
42534 HAVE_SHL_FUNCS=1
42535
42536else
42537
d589327a
VZ
42538 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
42539echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
a848cd7e 42540if test "${ac_cv_lib_shl_load_dld+set}" = set; then
d589327a 42541 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
42542else
42543 ac_check_lib_save_LIBS=$LIBS
42544LIBS="-lshl_load $LIBS"
42545cat >conftest.$ac_ext <<_ACEOF
42546/* confdefs.h. */
42547_ACEOF
42548cat confdefs.h >>conftest.$ac_ext
42549cat >>conftest.$ac_ext <<_ACEOF
42550/* end confdefs.h. */
42551
47964710
VS
42552/* Override any GCC internal prototype to avoid an error.
42553 Use char because int might match the return type of a GCC
42554 builtin and then its argument prototype would still apply. */
a848cd7e
SC
42555#ifdef __cplusplus
42556extern "C"
42557#endif
a848cd7e
SC
42558char dld ();
42559int
42560main ()
42561{
47964710 42562return dld ();
a848cd7e
SC
42563 ;
42564 return 0;
42565}
42566_ACEOF
42567rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42568if { (ac_try="$ac_link"
42569case "(($ac_try" in
42570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42571 *) ac_try_echo=$ac_try;;
42572esac
d589327a 42573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 42574 (eval "$ac_link") 2>conftest.er1
a848cd7e 42575 ac_status=$?
ac1cb8d3
VS
42576 grep -v '^ *+' conftest.er1 >conftest.err
42577 rm -f conftest.er1
42578 cat conftest.err >&5
d589327a 42579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42580 (exit $ac_status); } && {
42581 test -z "$ac_c_werror_flag" ||
42582 test ! -s conftest.err
d589327a
VZ
42583 } && test -s conftest$ac_exeext &&
42584 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
42585 ac_cv_lib_shl_load_dld=yes
42586else
d589327a 42587 echo "$as_me: failed program was:" >&5
a848cd7e
SC
42588sed 's/^/| /' conftest.$ac_ext >&5
42589
47964710 42590 ac_cv_lib_shl_load_dld=no
a848cd7e 42591fi
47964710
VS
42592
42593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 42594 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42595LIBS=$ac_check_lib_save_LIBS
42596fi
d589327a
VZ
42597{ echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42598echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
42599if test $ac_cv_lib_shl_load_dld = yes; then
a848cd7e
SC
42600
42601 HAVE_SHL_FUNCS=1
42602 DL_LINK=" -ldld$DL_LINK"
42603
42604fi
42605
42606
42607fi
42608done
42609
42610
42611fi
42612
42613
42614fi
42615done
42616
42617
3e654768 42618 if test "$HAVE_DL_FUNCS" = 1; then
a848cd7e
SC
42619
42620for ac_func in dlerror
42621do
d589327a
VZ
42622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42623{ echo "$as_me:$LINENO: checking for $ac_func" >&5
42624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 42625if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 42626 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
42627else
42628 cat >conftest.$ac_ext <<_ACEOF
42629/* confdefs.h. */
42630_ACEOF
42631cat confdefs.h >>conftest.$ac_ext
42632cat >>conftest.$ac_ext <<_ACEOF
42633/* end confdefs.h. */
ac1cb8d3
VS
42634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42636#define $ac_func innocuous_$ac_func
42637
a848cd7e
SC
42638/* System header to define __stub macros and hopefully few prototypes,
42639 which can conflict with char $ac_func (); below.
42640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42641 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42642
a848cd7e
SC
42643#ifdef __STDC__
42644# include <limits.h>
42645#else
42646# include <assert.h>
42647#endif
ac1cb8d3
VS
42648
42649#undef $ac_func
42650
47964710
VS
42651/* Override any GCC internal prototype to avoid an error.
42652 Use char because int might match the return type of a GCC
42653 builtin and then its argument prototype would still apply. */
a848cd7e
SC
42654#ifdef __cplusplus
42655extern "C"
a848cd7e 42656#endif
a848cd7e
SC
42657char $ac_func ();
42658/* The GNU C library defines this for functions which it implements
42659 to always fail with ENOSYS. Some functions are actually named
42660 something starting with __ and the normal name is an alias. */
47964710 42661#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 42662choke me
a848cd7e
SC
42663#endif
42664
42665int
42666main ()
42667{
47964710 42668return $ac_func ();
a848cd7e
SC
42669 ;
42670 return 0;
42671}
42672_ACEOF
42673rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42674if { (ac_try="$ac_link"
42675case "(($ac_try" in
42676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42677 *) ac_try_echo=$ac_try;;
42678esac
d589327a 42679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 42680 (eval "$ac_link") 2>conftest.er1
a848cd7e 42681 ac_status=$?
ac1cb8d3
VS
42682 grep -v '^ *+' conftest.er1 >conftest.err
42683 rm -f conftest.er1
42684 cat conftest.err >&5
d589327a 42685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42686 (exit $ac_status); } && {
42687 test -z "$ac_c_werror_flag" ||
42688 test ! -s conftest.err
d589327a
VZ
42689 } && test -s conftest$ac_exeext &&
42690 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
42691 eval "$as_ac_var=yes"
42692else
d589327a 42693 echo "$as_me: failed program was:" >&5
a848cd7e
SC
42694sed 's/^/| /' conftest.$ac_ext >&5
42695
47964710 42696 eval "$as_ac_var=no"
a848cd7e 42697fi
47964710
VS
42698
42699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 42700 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42701fi
d589327a
VZ
42702ac_res=`eval echo '${'$as_ac_var'}'`
42703 { echo "$as_me:$LINENO: result: $ac_res" >&5
42704echo "${ECHO_T}$ac_res" >&6; }
42705if test `eval echo '${'$as_ac_var'}'` = yes; then
a848cd7e 42706 cat >>confdefs.h <<_ACEOF
d589327a 42707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a848cd7e
SC
42708_ACEOF
42709 cat >>confdefs.h <<\_ACEOF
42710#define HAVE_DLERROR 1
42711_ACEOF
42712
42713else
42714
d589327a
VZ
42715 { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42716echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
a848cd7e 42717if test "${ac_cv_lib_dl_dlerror+set}" = set; then
d589327a 42718 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
42719else
42720 ac_check_lib_save_LIBS=$LIBS
42721LIBS="-ldl $LIBS"
42722cat >conftest.$ac_ext <<_ACEOF
42723/* confdefs.h. */
42724_ACEOF
42725cat confdefs.h >>conftest.$ac_ext
42726cat >>conftest.$ac_ext <<_ACEOF
42727/* end confdefs.h. */
42728
47964710
VS
42729/* Override any GCC internal prototype to avoid an error.
42730 Use char because int might match the return type of a GCC
42731 builtin and then its argument prototype would still apply. */
a848cd7e
SC
42732#ifdef __cplusplus
42733extern "C"
42734#endif
a848cd7e
SC
42735char dlerror ();
42736int
42737main ()
42738{
47964710 42739return dlerror ();
a848cd7e
SC
42740 ;
42741 return 0;
42742}
42743_ACEOF
42744rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
42745if { (ac_try="$ac_link"
42746case "(($ac_try" in
42747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42748 *) ac_try_echo=$ac_try;;
42749esac
d589327a 42750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 42751 (eval "$ac_link") 2>conftest.er1
a848cd7e 42752 ac_status=$?
ac1cb8d3
VS
42753 grep -v '^ *+' conftest.er1 >conftest.err
42754 rm -f conftest.er1
42755 cat conftest.err >&5
d589327a 42756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
42757 (exit $ac_status); } && {
42758 test -z "$ac_c_werror_flag" ||
42759 test ! -s conftest.err
d589327a
VZ
42760 } && test -s conftest$ac_exeext &&
42761 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
42762 ac_cv_lib_dl_dlerror=yes
42763else
d589327a 42764 echo "$as_me: failed program was:" >&5
a848cd7e
SC
42765sed 's/^/| /' conftest.$ac_ext >&5
42766
47964710 42767 ac_cv_lib_dl_dlerror=no
a848cd7e 42768fi
47964710
VS
42769
42770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 42771 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42772LIBS=$ac_check_lib_save_LIBS
42773fi
d589327a
VZ
42774{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42775echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
42776if test $ac_cv_lib_dl_dlerror = yes; then
a848cd7e
SC
42777 cat >>confdefs.h <<\_ACEOF
42778#define HAVE_DLERROR 1
42779_ACEOF
42780
42781fi
42782
42783
42784
42785fi
42786done
42787
3e654768 42788 fi
a848cd7e 42789 fi
3e654768
DE
42790
42791 if test "$USE_DARWIN" = 1; then
42792 HAVE_DL_FUNCS=1
a848cd7e
SC
42793 fi
42794
42795 if test "$HAVE_DL_FUNCS" = 0; then
42796 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 42797 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
d589327a
VZ
42798 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42799echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
a848cd7e
SC
42800 wxUSE_DYNAMIC_LOADER=no
42801 wxUSE_DYNLIB_CLASS=no
42802 else
d589327a
VZ
42803 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42804echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
a848cd7e
SC
42805 fi
42806 fi
42807 fi
42808 fi
42809fi
42810
42811if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42812 cat >>confdefs.h <<\_ACEOF
42813#define wxUSE_DYNAMIC_LOADER 1
42814_ACEOF
42815
42816fi
42817if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42818 cat >>confdefs.h <<\_ACEOF
42819#define wxUSE_DYNLIB_CLASS 1
42820_ACEOF
42821
42822fi
42823
42824
42825
42826if test "$wxUSE_PLUGINS" = "yes" ; then
42827 if test "$wxUSE_SHARED" = "no" ; then
d589327a
VZ
42828 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42829echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
a848cd7e
SC
42830 wxUSE_PLUGINS=no
42831 fi
42832 if test "$wxUSE_MONOLITHIC" = "yes" ; then
d589327a
VZ
42833 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42834echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
a848cd7e
SC
42835 wxUSE_PLUGINS=no
42836 fi
42837 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
d589327a
VZ
42838 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42839echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
a848cd7e
SC
42840 wxUSE_PLUGINS=no
42841 fi
42842 if test "$wxUSE_PLUGINS" = "yes" ; then
42843 cat >>confdefs.h <<\_ACEOF
42844#define wxUSE_PLUGINS 1
42845_ACEOF
42846
42847 fi
42848fi
42849
42850
6b8ef0b3 42851if test "$wxUSE_FSWATCHER" = "yes"; then
96e790a5
VZ
42852 if test "$wxUSE_MSW" != "1"; then
42853 if test "$wxUSE_UNIX" = "yes"; then
6b8ef0b3
VZ
42854
42855for ac_header in sys/inotify.h
42856do
42857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42858{ echo "$as_me:$LINENO: checking for $ac_header" >&5
42859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42861 echo $ECHO_N "(cached) $ECHO_C" >&6
42862else
42863 cat >conftest.$ac_ext <<_ACEOF
42864/* confdefs.h. */
42865_ACEOF
42866cat confdefs.h >>conftest.$ac_ext
42867cat >>conftest.$ac_ext <<_ACEOF
42868/* end confdefs.h. */
42869$ac_includes_default
42870
42871#include <$ac_header>
42872_ACEOF
42873rm -f conftest.$ac_objext
42874if { (ac_try="$ac_compile"
42875case "(($ac_try" in
42876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42877 *) ac_try_echo=$ac_try;;
42878esac
42879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42880 (eval "$ac_compile") 2>conftest.er1
42881 ac_status=$?
42882 grep -v '^ *+' conftest.er1 >conftest.err
42883 rm -f conftest.er1
42884 cat conftest.err >&5
42885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42886 (exit $ac_status); } && {
42887 test -z "$ac_c_werror_flag" ||
42888 test ! -s conftest.err
42889 } && test -s conftest.$ac_objext; then
42890 eval "$as_ac_Header=yes"
42891else
42892 echo "$as_me: failed program was:" >&5
42893sed 's/^/| /' conftest.$ac_ext >&5
42894
42895 eval "$as_ac_Header=no"
42896fi
42897
42898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42899fi
42900ac_res=`eval echo '${'$as_ac_Header'}'`
42901 { echo "$as_me:$LINENO: result: $ac_res" >&5
42902echo "${ECHO_T}$ac_res" >&6; }
42903if test `eval echo '${'$as_ac_Header'}'` = yes; then
42904 cat >>confdefs.h <<_ACEOF
42905#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42906_ACEOF
42907
42908fi
42909
42910done
42911
96e790a5
VZ
42912 if test "$ac_cv_header_sys_inotify_h" = "yes"; then
42913 cat >>confdefs.h <<\_ACEOF
6b8ef0b3
VZ
42914#define wxHAS_INOTIFY 1
42915_ACEOF
42916
96e790a5 42917 else
6b8ef0b3
VZ
42918
42919for ac_header in sys/event.h
42920do
42921as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42922{ echo "$as_me:$LINENO: checking for $ac_header" >&5
42923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42925 echo $ECHO_N "(cached) $ECHO_C" >&6
42926else
42927 cat >conftest.$ac_ext <<_ACEOF
42928/* confdefs.h. */
42929_ACEOF
42930cat confdefs.h >>conftest.$ac_ext
42931cat >>conftest.$ac_ext <<_ACEOF
42932/* end confdefs.h. */
42933$ac_includes_default
42934
42935#include <$ac_header>
42936_ACEOF
42937rm -f conftest.$ac_objext
42938if { (ac_try="$ac_compile"
42939case "(($ac_try" in
42940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42941 *) ac_try_echo=$ac_try;;
42942esac
42943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42944 (eval "$ac_compile") 2>conftest.er1
42945 ac_status=$?
42946 grep -v '^ *+' conftest.er1 >conftest.err
42947 rm -f conftest.er1
42948 cat conftest.err >&5
42949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42950 (exit $ac_status); } && {
42951 test -z "$ac_c_werror_flag" ||
42952 test ! -s conftest.err
42953 } && test -s conftest.$ac_objext; then
42954 eval "$as_ac_Header=yes"
42955else
42956 echo "$as_me: failed program was:" >&5
42957sed 's/^/| /' conftest.$ac_ext >&5
42958
42959 eval "$as_ac_Header=no"
42960fi
42961
42962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42963fi
42964ac_res=`eval echo '${'$as_ac_Header'}'`
42965 { echo "$as_me:$LINENO: result: $ac_res" >&5
42966echo "${ECHO_T}$ac_res" >&6; }
42967if test `eval echo '${'$as_ac_Header'}'` = yes; then
42968 cat >>confdefs.h <<_ACEOF
42969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42970_ACEOF
42971
42972fi
42973
42974done
42975
96e790a5
VZ
42976 if test "$ac_cv_header_sys_event_h" = "yes"; then
42977 cat >>confdefs.h <<\_ACEOF
6b8ef0b3
VZ
42978#define wxHAS_KQUEUE 1
42979_ACEOF
42980
96e790a5
VZ
42981 else
42982 wxUSE_FSWATCHER=no
42983 fi
6b8ef0b3 42984 fi
96e790a5
VZ
42985 else
42986 wxUSE_FSWATCHER=no
6b8ef0b3
VZ
42987 fi
42988 fi
96e790a5
VZ
42989
42990 if test "$wxUSE_FSWATCHER" = "yes"; then
42991 cat >>confdefs.h <<\_ACEOF
42992#define wxUSE_FSWATCHER 1
42993_ACEOF
42994
42995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
42996 else
42997 { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
42998echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
42999 fi
6b8ef0b3
VZ
43000fi
43001
43002
a848cd7e
SC
43003if test "$wxUSE_STL" = "yes"; then
43004 cat >>confdefs.h <<\_ACEOF
43005#define wxUSE_STL 1
43006_ACEOF
43007
43008fi
43009
81727065
VS
43010if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
43011 cat >>confdefs.h <<\_ACEOF
43012#define wxUSE_EXTENDED_RTTI 1
43013_ACEOF
43014
43015fi
43016
178c7760
JS
43017if test "$wxUSE_ANY" = "yes"; then
43018 cat >>confdefs.h <<\_ACEOF
43019#define wxUSE_ANY 1
43020_ACEOF
43021
43022fi
43023
a848cd7e
SC
43024if test "$wxUSE_APPLE_IEEE" = "yes"; then
43025 cat >>confdefs.h <<\_ACEOF
43026#define wxUSE_APPLE_IEEE 1
43027_ACEOF
43028
43029fi
43030
43031if test "$wxUSE_TIMER" = "yes"; then
43032 cat >>confdefs.h <<\_ACEOF
43033#define wxUSE_TIMER 1
43034_ACEOF
43035
43036fi
43037
6517fa86 43038if test "$USE_UNIX" = 1 ; then
a1b1cf33 43039 if test "$wxUSE_MGL" != 1; then
d589327a
VZ
43040 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
43041echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
d12aef51 43042if test "${ac_cv_header_sys_soundcard+set}" = set; then
d589327a 43043 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 43044else
d12aef51 43045
a1b1cf33 43046 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
43047/* confdefs.h. */
43048_ACEOF
43049cat confdefs.h >>conftest.$ac_ext
43050cat >>conftest.$ac_ext <<_ACEOF
43051/* end confdefs.h. */
d12aef51 43052
a1b1cf33
VZ
43053 #include <sys/ioctl.h>
43054 #include <sys/soundcard.h>
d12aef51
VZ
43055
43056int
43057main ()
43058{
43059
a1b1cf33 43060 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
43061
43062 ;
43063 return 0;
43064}
a848cd7e 43065_ACEOF
d12aef51 43066rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
43067if { (ac_try="$ac_link"
43068case "(($ac_try" in
43069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43070 *) ac_try_echo=$ac_try;;
43071esac
d589327a 43072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 43073 (eval "$ac_link") 2>conftest.er1
a848cd7e 43074 ac_status=$?
ac1cb8d3
VS
43075 grep -v '^ *+' conftest.er1 >conftest.err
43076 rm -f conftest.er1
43077 cat conftest.err >&5
d589327a 43078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
43079 (exit $ac_status); } && {
43080 test -z "$ac_c_werror_flag" ||
43081 test ! -s conftest.err
d589327a
VZ
43082 } && test -s conftest$ac_exeext &&
43083 $as_test_x conftest$ac_exeext; then
d12aef51 43084 ac_cv_header_sys_soundcard=yes
a848cd7e 43085else
d589327a 43086 echo "$as_me: failed program was:" >&5
a848cd7e
SC
43087sed 's/^/| /' conftest.$ac_ext >&5
43088
a848cd7e 43089
a1b1cf33
VZ
43090 saveLibs="$LIBS"
43091 LIBS="$saveLibs -lossaudio"
43092 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
43093/* confdefs.h. */
43094_ACEOF
43095cat confdefs.h >>conftest.$ac_ext
43096cat >>conftest.$ac_ext <<_ACEOF
43097/* end confdefs.h. */
d12aef51 43098
a1b1cf33
VZ
43099 #include <sys/ioctl.h>
43100 #include <sys/soundcard.h>
d12aef51
VZ
43101
43102int
43103main ()
43104{
43105
a1b1cf33 43106 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
43107
43108 ;
43109 return 0;
43110}
a848cd7e 43111_ACEOF
d12aef51 43112rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
43113if { (ac_try="$ac_link"
43114case "(($ac_try" in
43115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43116 *) ac_try_echo=$ac_try;;
43117esac
d589327a 43118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 43119 (eval "$ac_link") 2>conftest.er1
a848cd7e
SC
43120 ac_status=$?
43121 grep -v '^ *+' conftest.er1 >conftest.err
43122 rm -f conftest.er1
43123 cat conftest.err >&5
d589327a 43124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
43125 (exit $ac_status); } && {
43126 test -z "$ac_c_werror_flag" ||
43127 test ! -s conftest.err
d589327a
VZ
43128 } && test -s conftest$ac_exeext &&
43129 $as_test_x conftest$ac_exeext; then
d12aef51 43130 ac_cv_header_sys_soundcard=yes
a848cd7e 43131else
d589327a 43132 echo "$as_me: failed program was:" >&5
a848cd7e
SC
43133sed 's/^/| /' conftest.$ac_ext >&5
43134
a848cd7e 43135
a1b1cf33
VZ
43136 LIBS="$saveLibs"
43137 ac_cv_header_sys_soundcard=no
d12aef51
VZ
43138
43139
a848cd7e 43140fi
47964710
VS
43141
43142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d12aef51
VZ
43143 conftest$ac_exeext conftest.$ac_ext
43144
a848cd7e
SC
43145
43146fi
47964710
VS
43147
43148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d12aef51 43149 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43150
43151fi
d589327a
VZ
43152{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
43153echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
a1b1cf33 43154 fi
a848cd7e 43155
d12aef51
VZ
43156 if test "$ac_cv_header_sys_soundcard" = "yes"; then
43157 cat >>confdefs.h <<\_ACEOF
43158#define HAVE_SYS_SOUNDCARD_H 1
43159_ACEOF
a848cd7e 43160
d12aef51 43161 fi
9c112555 43162fi
a1b1cf33 43163
9c112555
MW
43164WITH_PLUGIN_SDL=0
43165if test "$wxUSE_SOUND" = "yes"; then
6517fa86 43166 if test "$USE_UNIX" = 1 ; then
a848cd7e
SC
43167 if test "$wxUSE_LIBSDL" != "no"; then
43168
47964710 43169# Check whether --with-sdl-prefix was given.
a848cd7e 43170if test "${with_sdl_prefix+set}" = set; then
47964710 43171 withval=$with_sdl_prefix; sdl_prefix="$withval"
a848cd7e
SC
43172else
43173 sdl_prefix=""
47964710
VS
43174fi
43175
3f7f284d 43176
47964710 43177# Check whether --with-sdl-exec-prefix was given.
a848cd7e 43178if test "${with_sdl_exec_prefix+set}" = set; then
47964710 43179 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
a848cd7e
SC
43180else
43181 sdl_exec_prefix=""
47964710 43182fi
bd8a7646 43183
47964710
VS
43184# Check whether --enable-sdltest was given.
43185if test "${enable_sdltest+set}" = set; then
43186 enableval=$enable_sdltest;
a848cd7e
SC
43187else
43188 enable_sdltest=yes
47964710
VS
43189fi
43190
a848cd7e
SC
43191
43192 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
43193 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
43194 if test x${SDL_CONFIG+set} != xset ; then
43195 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
43196 fi
a848cd7e
SC
43197 fi
43198 if test x$sdl_prefix != x ; then
3ecd9f92
MW
43199 sdl_args="$sdl_args --prefix=$sdl_prefix"
43200 if test x${SDL_CONFIG+set} != xset ; then
43201 SDL_CONFIG=$sdl_prefix/bin/sdl-config
43202 fi
a848cd7e
SC
43203 fi
43204
3ecd9f92
MW
43205 if test "x$prefix" != xNONE; then
43206 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
43207 fi
a848cd7e
SC
43208 # Extract the first word of "sdl-config", so it can be a program name with args.
43209set dummy sdl-config; ac_word=$2
d589327a
VZ
43210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
43211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 43212if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
d589327a 43213 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
43214else
43215 case $SDL_CONFIG in
43216 [\\/]* | ?:[\\/]*)
43217 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
43218 ;;
43219 *)
43220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43221for as_dir in $PATH
43222do
43223 IFS=$as_save_IFS
43224 test -z "$as_dir" && as_dir=.
43225 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 43226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 43227 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
d589327a 43228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
43229 break 2
43230 fi
43231done
43232done
47964710 43233IFS=$as_save_IFS
a848cd7e
SC
43234
43235 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
43236 ;;
43237esac
43238fi
43239SDL_CONFIG=$ac_cv_path_SDL_CONFIG
a848cd7e 43240if test -n "$SDL_CONFIG"; then
d589327a
VZ
43241 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
43242echo "${ECHO_T}$SDL_CONFIG" >&6; }
a848cd7e 43243else
d589327a
VZ
43244 { echo "$as_me:$LINENO: result: no" >&5
43245echo "${ECHO_T}no" >&6; }
a848cd7e
SC
43246fi
43247
47964710 43248
a848cd7e 43249 min_sdl_version=1.2.0
d589327a
VZ
43250 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
43251echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
a848cd7e
SC
43252 no_sdl=""
43253 if test "$SDL_CONFIG" = "no" ; then
43254 no_sdl=yes
43255 else
43256 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
43257 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
43258
43259 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
43260 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43261 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
43262 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43263 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
43264 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43265 if test "x$enable_sdltest" = "xyes" ; then
43266 ac_save_CFLAGS="$CFLAGS"
94acd38e 43267 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
43268 ac_save_LIBS="$LIBS"
43269 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 43270 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
43271 LIBS="$LIBS $SDL_LIBS"
43272 rm -f conf.sdltest
43273 if test "$cross_compiling" = yes; then
43274 echo $ac_n "cross compiling; assumed OK... $ac_c"
43275else
43276 cat >conftest.$ac_ext <<_ACEOF
43277/* confdefs.h. */
43278_ACEOF
43279cat confdefs.h >>conftest.$ac_ext
43280cat >>conftest.$ac_ext <<_ACEOF
43281/* end confdefs.h. */
43282
43283#include <stdio.h>
43284#include <stdlib.h>
43285#include <string.h>
43286#include "SDL.h"
43287
43288char*
43289my_strdup (char *str)
43290{
43291 char *new_str;
43292
43293 if (str)
43294 {
43295 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
43296 strcpy (new_str, str);
43297 }
43298 else
43299 new_str = NULL;
43300
43301 return new_str;
43302}
43303
43304int main (int argc, char *argv[])
43305{
43306 int major, minor, micro;
43307 char *tmp_version;
43308
43309 /* This hangs on some systems (?)
43310 system ("touch conf.sdltest");
43311 */
43312 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
43313
43314 /* HP/UX 9 (%@#!) writes to sscanf strings */
43315 tmp_version = my_strdup("$min_sdl_version");
43316 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
43317 printf("%s, bad version string\n", "$min_sdl_version");
43318 exit(1);
43319 }
43320
43321 if (($sdl_major_version > major) ||
43322 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
43323 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
43324 {
43325 return 0;
43326 }
43327 else
43328 {
43329 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
43330 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
43331 printf("*** best to upgrade to the required version.\n");
43332 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
43333 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
43334 printf("*** config.cache before re-running configure\n");
43335 return 1;
43336 }
43337}
43338
43339
43340_ACEOF
43341rm -f conftest$ac_exeext
47964710
VS
43342if { (ac_try="$ac_link"
43343case "(($ac_try" in
43344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43345 *) ac_try_echo=$ac_try;;
43346esac
d589327a 43347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 43348 (eval "$ac_link") 2>&5
a848cd7e 43349 ac_status=$?
d589327a 43350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e 43351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47964710
VS
43352 { (case "(($ac_try" in
43353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43354 *) ac_try_echo=$ac_try;;
43355esac
d589327a 43356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 43357 (eval "$ac_try") 2>&5
a848cd7e 43358 ac_status=$?
d589327a 43359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a848cd7e
SC
43360 (exit $ac_status); }; }; then
43361 :
43362else
d589327a
VZ
43363 echo "$as_me: program exited with status $ac_status" >&5
43364echo "$as_me: failed program was:" >&5
a848cd7e
SC
43365sed 's/^/| /' conftest.$ac_ext >&5
43366
43367( exit $ac_status )
43368no_sdl=yes
43369fi
47964710 43370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 43371fi
47964710
VS
43372
43373
a848cd7e 43374 CFLAGS="$ac_save_CFLAGS"
94acd38e 43375 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
43376 LIBS="$ac_save_LIBS"
43377 fi
43378 fi
43379 if test "x$no_sdl" = x ; then
d589327a
VZ
43380 { echo "$as_me:$LINENO: result: yes" >&5
43381echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
43382
43383 EXTRALIBS_SDL="$SDL_LIBS"
9b8888f9 43384 CFLAGS="$SDL_CFLAGS $CFLAGS"
c92ad099 43385 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
43386 cat >>confdefs.h <<\_ACEOF
43387#define wxUSE_LIBSDL 1
43388_ACEOF
43389
43390
43391 else
d589327a
VZ
43392 { echo "$as_me:$LINENO: result: no" >&5
43393echo "${ECHO_T}no" >&6; }
a848cd7e
SC
43394 if test "$SDL_CONFIG" = "no" ; then
43395 echo "*** The sdl-config script installed by SDL could not be found"
43396 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
43397 echo "*** your path, or set the SDL_CONFIG environment variable to the"
43398 echo "*** full path to sdl-config."
43399 else
43400 if test -f conf.sdltest ; then
43401 :
43402 else
43403 echo "*** Could not run SDL test program, checking why..."
43404 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 43405 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
43406 LIBS="$LIBS $SDL_LIBS"
43407 cat >conftest.$ac_ext <<_ACEOF
43408/* confdefs.h. */
43409_ACEOF
43410cat confdefs.h >>conftest.$ac_ext
43411cat >>conftest.$ac_ext <<_ACEOF
43412/* end confdefs.h. */
43413
43414#include <stdio.h>
43415#include "SDL.h"
43416
43417int main(int argc, char *argv[])
43418{ return 0; }
43419#undef main
43420#define main K_and_R_C_main
43421
43422int
43423main ()
43424{
43425 return 0;
43426 ;
43427 return 0;
43428}
43429_ACEOF
43430rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
43431if { (ac_try="$ac_link"
43432case "(($ac_try" in
43433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43434 *) ac_try_echo=$ac_try;;
43435esac
d589327a 43436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 43437 (eval "$ac_link") 2>conftest.er1
a848cd7e 43438 ac_status=$?
ac1cb8d3
VS
43439 grep -v '^ *+' conftest.er1 >conftest.err
43440 rm -f conftest.er1
43441 cat conftest.err >&5
d589327a 43442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
43443 (exit $ac_status); } && {
43444 test -z "$ac_c_werror_flag" ||
43445 test ! -s conftest.err
d589327a
VZ
43446 } && test -s conftest$ac_exeext &&
43447 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
43448 echo "*** The test program compiled, but did not run. This usually means"
43449 echo "*** that the run-time linker is not finding SDL or finding the wrong"
43450 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
43451 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
43452 echo "*** to the installed location Also, make sure you have run ldconfig if that"
43453 echo "*** is required on your system"
43454 echo "***"
43455 echo "*** If you have an old version installed, it is best to remove it, although"
43456 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
43457else
d589327a 43458 echo "$as_me: failed program was:" >&5
a848cd7e
SC
43459sed 's/^/| /' conftest.$ac_ext >&5
43460
47964710 43461 echo "*** The test program failed to compile or link. See the file config.log for the"
a848cd7e
SC
43462 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
43463 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
43464 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
43465fi
47964710
VS
43466
43467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 43468 conftest$ac_exeext conftest.$ac_ext
a848cd7e 43469 CFLAGS="$ac_save_CFLAGS"
94acd38e 43470 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
43471 LIBS="$ac_save_LIBS"
43472 fi
43473 fi
43474 SDL_CFLAGS=""
43475 SDL_LIBS=""
43476 wxUSE_LIBSDL="no"
43477 fi
43478
43479
43480 rm -f conf.sdltest
43481
43482 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
43483 WITH_PLUGIN_SDL=1
43484 fi
43485 fi
480b9f18
VZ
43486 else
43487 if test "$wxUSE_MGL" = 1; then
d589327a
VZ
43488 { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
43489echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
480b9f18
VZ
43490 wxUSE_SOUND="no"
43491 fi
a848cd7e 43492 fi
480b9f18 43493fi
a848cd7e 43494
480b9f18 43495if test "$wxUSE_SOUND" = "yes"; then
a848cd7e
SC
43496 cat >>confdefs.h <<\_ACEOF
43497#define wxUSE_SOUND 1
43498_ACEOF
43499
43500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
43501fi
43502
88262190 43503if test "$WXGTK2" = 1; then
d6fb5527
VZ
43504
43505
43506if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
43507 if test -n "$ac_tool_prefix"; then
43508 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43509set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
d589327a
VZ
43510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
43511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d6fb5527 43512if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
d589327a 43513 echo $ECHO_N "(cached) $ECHO_C" >&6
d6fb5527
VZ
43514else
43515 case $PKG_CONFIG in
43516 [\\/]* | ?:[\\/]*)
43517 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
43518 ;;
43519 *)
43520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43521for as_dir in $PATH
43522do
43523 IFS=$as_save_IFS
43524 test -z "$as_dir" && as_dir=.
43525 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 43526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d6fb5527 43527 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
d589327a 43528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d6fb5527
VZ
43529 break 2
43530 fi
43531done
43532done
47964710 43533IFS=$as_save_IFS
d6fb5527
VZ
43534
43535 ;;
43536esac
43537fi
43538PKG_CONFIG=$ac_cv_path_PKG_CONFIG
d6fb5527 43539if test -n "$PKG_CONFIG"; then
d589327a
VZ
43540 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
43541echo "${ECHO_T}$PKG_CONFIG" >&6; }
d6fb5527 43542else
d589327a
VZ
43543 { echo "$as_me:$LINENO: result: no" >&5
43544echo "${ECHO_T}no" >&6; }
d6fb5527
VZ
43545fi
43546
47964710 43547
d6fb5527
VZ
43548fi
43549if test -z "$ac_cv_path_PKG_CONFIG"; then
43550 ac_pt_PKG_CONFIG=$PKG_CONFIG
43551 # Extract the first word of "pkg-config", so it can be a program name with args.
43552set dummy pkg-config; ac_word=$2
d589327a
VZ
43553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
43554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d6fb5527 43555if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
d589327a 43556 echo $ECHO_N "(cached) $ECHO_C" >&6
d6fb5527
VZ
43557else
43558 case $ac_pt_PKG_CONFIG in
43559 [\\/]* | ?:[\\/]*)
43560 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
43561 ;;
43562 *)
43563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43564for as_dir in $PATH
43565do
43566 IFS=$as_save_IFS
43567 test -z "$as_dir" && as_dir=.
43568 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 43569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d6fb5527 43570 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
d589327a 43571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d6fb5527
VZ
43572 break 2
43573 fi
43574done
43575done
47964710 43576IFS=$as_save_IFS
d6fb5527
VZ
43577
43578 ;;
43579esac
43580fi
43581ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
d6fb5527 43582if test -n "$ac_pt_PKG_CONFIG"; then
d589327a
VZ
43583 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
43584echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
d6fb5527 43585else
d589327a
VZ
43586 { echo "$as_me:$LINENO: result: no" >&5
43587echo "${ECHO_T}no" >&6; }
d6fb5527
VZ
43588fi
43589
47964710
VS
43590 if test "x$ac_pt_PKG_CONFIG" = x; then
43591 PKG_CONFIG=""
43592 else
43593 case $cross_compiling:$ac_tool_warned in
43594yes:)
d589327a
VZ
43595{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
43596whose name does not start with the host triplet. If you think this
43597configuration is useful to you, please write to autoconf@gnu.org." >&5
43598echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
43599whose name does not start with the host triplet. If you think this
43600configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47964710
VS
43601ac_tool_warned=yes ;;
43602esac
43603 PKG_CONFIG=$ac_pt_PKG_CONFIG
43604 fi
d6fb5527
VZ
43605else
43606 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43607fi
43608
43609fi
43610if test -n "$PKG_CONFIG"; then
43611 _pkg_min_version=0.9.0
d589327a
VZ
43612 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
43613echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
d6fb5527 43614 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
d589327a
VZ
43615 { echo "$as_me:$LINENO: result: yes" >&5
43616echo "${ECHO_T}yes" >&6; }
d6fb5527 43617 else
d589327a
VZ
43618 { echo "$as_me:$LINENO: result: no" >&5
43619echo "${ECHO_T}no" >&6; }
d6fb5527
VZ
43620 PKG_CONFIG=""
43621 fi
43622
43623fi
43624
d1c38808 43625 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
bd8a7646
RR
43626
43627 if test "$wxUSE_GTKPRINT" = "yes" ; then
43628
43629
43630pkg_failed=no
d589327a
VZ
43631{ echo "$as_me:$LINENO: checking for GTKPRINT" >&5
43632echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
bd8a7646
RR
43633
43634if test -n "$PKG_CONFIG"; then
43635 if test -n "$GTKPRINT_CFLAGS"; then
43636 pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
43637 else
43638 if test -n "$PKG_CONFIG" && \
d589327a 43639 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
bd8a7646
RR
43640 ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
43641 ac_status=$?
d589327a 43642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
bd8a7646
RR
43643 (exit $ac_status); }; then
43644 pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
43645else
43646 pkg_failed=yes
43647fi
43648 fi
43649else
43650 pkg_failed=untried
43651fi
43652if test -n "$PKG_CONFIG"; then
43653 if test -n "$GTKPRINT_LIBS"; then
43654 pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
43655 else
43656 if test -n "$PKG_CONFIG" && \
d589327a 43657 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
bd8a7646
RR
43658 ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
43659 ac_status=$?
d589327a 43660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
bd8a7646
RR
43661 (exit $ac_status); }; then
43662 pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
43663else
43664 pkg_failed=yes
43665fi
43666 fi
43667else
43668 pkg_failed=untried
43669fi
43670
43671
43672
43673if test $pkg_failed = yes; then
43674
43675if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43676 _pkg_short_errors_supported=yes
43677else
43678 _pkg_short_errors_supported=no
43679fi
43680 if test $_pkg_short_errors_supported = yes; then
43681 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
43682 else
43683 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
43684 fi
43685 # Put the nasty error message in config.log where it belongs
43686 echo "$GTKPRINT_PKG_ERRORS" >&5
43687
43688
d589327a
VZ
43689 { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
43690echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
bd8a7646
RR
43691 wxUSE_GTKPRINT="no"
43692
43693
43694elif test $pkg_failed = untried; then
43695
d589327a
VZ
43696 { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
43697echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
bd8a7646
RR
43698 wxUSE_GTKPRINT="no"
43699
43700
43701else
43702 GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
43703 GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
d589327a
VZ
43704 { echo "$as_me:$LINENO: result: yes" >&5
43705echo "${ECHO_T}yes" >&6; }
bd8a7646
RR
43706
43707 CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
43708 CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
43709 cat >>confdefs.h <<\_ACEOF
43710#define wxUSE_GTKPRINT 1
43711_ACEOF
43712
43713
43714fi
43715 fi
43716
d1c38808
VZ
43717 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
43718
43719
3ecd9f92 43720pkg_failed=no
d589327a
VZ
43721{ echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
43722echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
d1c38808 43723
3ecd9f92
MW
43724if test -n "$PKG_CONFIG"; then
43725 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
43726 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
43727 else
43728 if test -n "$PKG_CONFIG" && \
d589327a 43729 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
3ecd9f92
MW
43730 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43731 ac_status=$?
d589327a 43732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
43733 (exit $ac_status); }; then
43734 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 43735else
3ecd9f92
MW
43736 pkg_failed=yes
43737fi
43738 fi
43739else
43740 pkg_failed=untried
d1c38808 43741fi
d1c38808 43742if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43743 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
43744 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
43745 else
43746 if test -n "$PKG_CONFIG" && \
d589327a 43747 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
3ecd9f92
MW
43748 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43749 ac_status=$?
d589327a 43750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
43751 (exit $ac_status); }; then
43752 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 43753else
3ecd9f92
MW
43754 pkg_failed=yes
43755fi
43756 fi
43757else
43758 pkg_failed=untried
d1c38808
VZ
43759fi
43760
d1c38808 43761
d1c38808 43762
3ecd9f92 43763if test $pkg_failed = yes; then
d1c38808 43764
3ecd9f92
MW
43765if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43766 _pkg_short_errors_supported=yes
43767else
43768 _pkg_short_errors_supported=no
43769fi
43770 if test $_pkg_short_errors_supported = yes; then
43771 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43772 else
43773 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 43774 fi
3ecd9f92
MW
43775 # Put the nasty error message in config.log where it belongs
43776 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
43777
43778
d589327a
VZ
43779 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43780echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
3ecd9f92 43781 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
43782
43783
3ecd9f92 43784elif test $pkg_failed = untried; then
d1c38808 43785
d589327a
VZ
43786 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43787echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
d1c38808
VZ
43788 wxUSE_LIBGNOMEPRINT="no"
43789
43790
3ecd9f92
MW
43791else
43792 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
43793 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
d589327a
VZ
43794 { echo "$as_me:$LINENO: result: yes" >&5
43795echo "${ECHO_T}yes" >&6; }
d1c38808 43796
9b8888f9 43797 CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
3ecd9f92
MW
43798 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
43799 cat >>confdefs.h <<\_ACEOF
43800#define wxUSE_LIBGNOMEPRINT 1
43801_ACEOF
43802
43803
43804fi
d1c38808
VZ
43805 fi
43806 fi
d1c38808 43807
2b850ae1
RR
43808 if test "$wxUSE_MIMETYPE" = "yes" ; then
43809 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
43810
43811
3ecd9f92 43812pkg_failed=no
d589327a
VZ
43813{ echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
43814echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
2b850ae1 43815
3ecd9f92
MW
43816if test -n "$PKG_CONFIG"; then
43817 if test -n "$GNOMEVFS_CFLAGS"; then
43818 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43819 else
43820 if test -n "$PKG_CONFIG" && \
d589327a 43821 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
3ecd9f92
MW
43822 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43823 ac_status=$?
d589327a 43824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
43825 (exit $ac_status); }; then
43826 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43827else
3ecd9f92
MW
43828 pkg_failed=yes
43829fi
43830 fi
43831else
43832 pkg_failed=untried
2b850ae1 43833fi
2b850ae1 43834if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43835 if test -n "$GNOMEVFS_LIBS"; then
43836 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43837 else
43838 if test -n "$PKG_CONFIG" && \
d589327a 43839 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
3ecd9f92
MW
43840 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43841 ac_status=$?
d589327a 43842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
43843 (exit $ac_status); }; then
43844 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43845else
3ecd9f92
MW
43846 pkg_failed=yes
43847fi
43848 fi
43849else
43850 pkg_failed=untried
2b850ae1
RR
43851fi
43852
2b850ae1 43853
2b850ae1 43854
3ecd9f92 43855if test $pkg_failed = yes; then
2b850ae1 43856
3ecd9f92
MW
43857if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43858 _pkg_short_errors_supported=yes
43859else
43860 _pkg_short_errors_supported=no
43861fi
43862 if test $_pkg_short_errors_supported = yes; then
43863 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43864 else
43865 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 43866 fi
3ecd9f92
MW
43867 # Put the nasty error message in config.log where it belongs
43868 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
43869
43870
d589327a
VZ
43871 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43872echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
3ecd9f92 43873 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
43874
43875
3ecd9f92 43876elif test $pkg_failed = untried; then
2b850ae1 43877
d589327a
VZ
43878 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43879echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
2b850ae1
RR
43880 wxUSE_LIBGNOMEVFS="no"
43881
43882
3ecd9f92
MW
43883else
43884 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43885 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
d589327a
VZ
43886 { echo "$as_me:$LINENO: result: yes" >&5
43887echo "${ECHO_T}yes" >&6; }
2b850ae1 43888
9b8888f9 43889 CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
3ecd9f92
MW
43890 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43891 cat >>confdefs.h <<\_ACEOF
43892#define wxUSE_LIBGNOMEVFS 1
43893_ACEOF
43894
43895
43896fi
2b850ae1
RR
43897 fi
43898 fi
2b850ae1 43899
3565d135
RR
43900 if test "$wxUSE_LIBHILDON" = "yes" ; then
43901
3ecd9f92 43902pkg_failed=no
d589327a
VZ
43903{ echo "$as_me:$LINENO: checking for HILDON" >&5
43904echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
3565d135 43905
3ecd9f92
MW
43906if test -n "$PKG_CONFIG"; then
43907 if test -n "$HILDON_CFLAGS"; then
43908 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43909 else
43910 if test -n "$PKG_CONFIG" && \
d589327a 43911 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
3ecd9f92
MW
43912 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43913 ac_status=$?
d589327a 43914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
43915 (exit $ac_status); }; then
43916 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43917else
3ecd9f92
MW
43918 pkg_failed=yes
43919fi
43920 fi
43921else
43922 pkg_failed=untried
3565d135 43923fi
3565d135 43924if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43925 if test -n "$HILDON_LIBS"; then
43926 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43927 else
43928 if test -n "$PKG_CONFIG" && \
d589327a 43929 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
3ecd9f92
MW
43930 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43931 ac_status=$?
d589327a 43932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
43933 (exit $ac_status); }; then
43934 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43935else
3ecd9f92
MW
43936 pkg_failed=yes
43937fi
43938 fi
43939else
43940 pkg_failed=untried
3565d135
RR
43941fi
43942
3565d135 43943
3565d135 43944
3ecd9f92 43945if test $pkg_failed = yes; then
3565d135 43946
3ecd9f92
MW
43947if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43948 _pkg_short_errors_supported=yes
43949else
43950 _pkg_short_errors_supported=no
43951fi
43952 if test $_pkg_short_errors_supported = yes; then
43953 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43954 else
43955 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 43956 fi
3ecd9f92
MW
43957 # Put the nasty error message in config.log where it belongs
43958 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
43959
43960
d589327a
VZ
43961 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43962echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
3ecd9f92 43963 wxUSE_LIBHILDON="no"
426d19f1 43964 ac_hildon_lgpl=0
3565d135 43965
3565d135 43966
3ecd9f92
MW
43967elif test $pkg_failed = untried; then
43968
d589327a
VZ
43969 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43970echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
3ecd9f92 43971 wxUSE_LIBHILDON="no"
426d19f1 43972 ac_hildon_lgpl=0
3ecd9f92
MW
43973
43974
43975else
43976 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43977 HILDON_LIBS=$pkg_cv_HILDON_LIBS
d589327a
VZ
43978 { echo "$as_me:$LINENO: result: yes" >&5
43979echo "${ECHO_T}yes" >&6; }
3565d135
RR
43980
43981 EXTRALIBS_HILDON="$HILDON_LIBS"
9b8888f9 43982 CFLAGS="$CFLAGS $HILDON_CFLAGS"
3565d135
RR
43983 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43984 cat >>confdefs.h <<\_ACEOF
43985#define wxUSE_LIBHILDON 1
43986_ACEOF
43987
426d19f1 43988 ac_hildon_lgpl=1
3565d135 43989
3ecd9f92 43990fi
426d19f1
JS
43991
43992 if test "$ac_hildon_lgpl" = 0 ; then
43993
43994pkg_failed=no
43995{ echo "$as_me:$LINENO: checking for HILDON2" >&5
43996echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
43997
43998if test -n "$PKG_CONFIG"; then
43999 if test -n "$HILDON2_CFLAGS"; then
44000 pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
44001 else
44002 if test -n "$PKG_CONFIG" && \
44003 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
44004 ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
44005 ac_status=$?
44006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44007 (exit $ac_status); }; then
44008 pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
44009else
44010 pkg_failed=yes
44011fi
44012 fi
44013else
44014 pkg_failed=untried
44015fi
44016if test -n "$PKG_CONFIG"; then
44017 if test -n "$HILDON2_LIBS"; then
44018 pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
44019 else
44020 if test -n "$PKG_CONFIG" && \
44021 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
44022 ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
44023 ac_status=$?
44024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44025 (exit $ac_status); }; then
44026 pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
44027else
44028 pkg_failed=yes
44029fi
44030 fi
44031else
44032 pkg_failed=untried
44033fi
44034
44035
44036
44037if test $pkg_failed = yes; then
44038
44039if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44040 _pkg_short_errors_supported=yes
44041else
44042 _pkg_short_errors_supported=no
44043fi
44044 if test $_pkg_short_errors_supported = yes; then
44045 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
44046 else
44047 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
44048 fi
44049 # Put the nasty error message in config.log where it belongs
44050 echo "$HILDON2_PKG_ERRORS" >&5
44051
44052
44053 { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44054echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44055 wxUSE_LIBHILDON2="no"
44056
44057
44058elif test $pkg_failed = untried; then
44059
44060 { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44061echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44062 wxUSE_LIBHILDON2="no"
44063
44064
44065else
44066 HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
44067 HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
44068 { echo "$as_me:$LINENO: result: yes" >&5
44069echo "${ECHO_T}yes" >&6; }
44070
44071 EXTRALIBS_HILDON="$HILDON2_LIBS"
44072 CFLAGS="$CFLAGS $HILDON2_CFLAGS"
44073 CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
44074 cat >>confdefs.h <<\_ACEOF
44075#define wxUSE_LIBHILDON2 1
44076_ACEOF
44077
44078
44079fi
44080 fi
3565d135
RR
44081 fi
44082fi
d1c38808 44083
a848cd7e
SC
44084if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
44085 cat >>confdefs.h <<\_ACEOF
44086#define wxUSE_CMDLINE_PARSER 1
44087_ACEOF
44088
44089fi
44090
44091if test "$wxUSE_STOPWATCH" = "yes"; then
44092 cat >>confdefs.h <<\_ACEOF
44093#define wxUSE_STOPWATCH 1
44094_ACEOF
44095
44096fi
44097
44098if test "$wxUSE_DATETIME" = "yes"; then
44099 cat >>confdefs.h <<\_ACEOF
44100#define wxUSE_DATETIME 1
44101_ACEOF
44102
44103fi
44104
44105if test "$wxUSE_FILE" = "yes"; then
44106 cat >>confdefs.h <<\_ACEOF
44107#define wxUSE_FILE 1
44108_ACEOF
44109
44110fi
44111
44112if test "$wxUSE_FFILE" = "yes"; then
44113 cat >>confdefs.h <<\_ACEOF
44114#define wxUSE_FFILE 1
44115_ACEOF
44116
44117fi
44118
9e8e867f 44119if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
26e422a9 44120 if test "$wxUSE_STREAMS" != yes; then
d589327a
VZ
44121 { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
44122echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
916af76f 44123 wxUSE_ARCHIVE_STREAMS=no
26e422a9
MW
44124 else
44125 cat >>confdefs.h <<\_ACEOF
9e8e867f 44126#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
44127_ACEOF
44128
26e422a9 44129 fi
81f90336
MW
44130fi
44131
44132if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 44133 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
d589327a
VZ
44134 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
44135echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
81f90336 44136 elif test "$wxUSE_ZLIB" = "no"; then
d589327a
VZ
44137 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
44138echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
81f90336
MW
44139 else
44140 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44141#define wxUSE_ZIPSTREAM 1
44142_ACEOF
44143
81f90336 44144 fi
a848cd7e
SC
44145fi
44146
26e422a9
MW
44147if test "$wxUSE_TARSTREAM" = "yes"; then
44148 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
d589327a
VZ
44149 { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
44150echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
26e422a9
MW
44151 else
44152 cat >>confdefs.h <<\_ACEOF
44153#define wxUSE_TARSTREAM 1
44154_ACEOF
44155
44156 fi
44157fi
44158
a0219e45
VS
44159if test "$wxUSE_FILE_HISTORY" = "yes"; then
44160 cat >>confdefs.h <<\_ACEOF
44161#define wxUSE_FILE_HISTORY 1
44162_ACEOF
44163
44164fi
44165
916af76f 44166if test "$wxUSE_FILESYSTEM" = "yes"; then
f8f6c91a 44167 if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
d589327a
VZ
44168 { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
44169echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
916af76f 44170 wxUSE_FILESYSTEM=no
f8f6c91a
MW
44171 else
44172 cat >>confdefs.h <<\_ACEOF
916af76f 44173#define wxUSE_FILESYSTEM 1
f8f6c91a
MW
44174_ACEOF
44175
44176 fi
44177fi
44178
26e422a9 44179if test "$wxUSE_FS_ARCHIVE" = "yes"; then
916af76f 44180 if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
d589327a
VZ
44181 { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
44182echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
26e422a9
MW
44183 else
44184 cat >>confdefs.h <<\_ACEOF
44185#define wxUSE_FS_ARCHIVE 1
44186_ACEOF
44187
44188 fi
44189fi
44190
916af76f
MW
44191if test "$wxUSE_FS_ZIP" = "yes"; then
44192 if test "$wxUSE_FS_ARCHIVE" != yes; then
d589327a
VZ
44193 { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
44194echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
916af76f
MW
44195 else
44196 cat >>confdefs.h <<\_ACEOF
44197#define wxUSE_FS_ZIP 1
44198_ACEOF
44199
44200 fi
44201fi
44202
a848cd7e 44203if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4 44204 if test "$USE_UNIX" != 1; then
d589327a
VZ
44205 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
44206echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
18228ab4
MW
44207 wxUSE_ON_FATAL_EXCEPTION=no
44208 else
44209 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44210#define wxUSE_ON_FATAL_EXCEPTION 1
44211_ACEOF
44212
18228ab4 44213 fi
a848cd7e
SC
44214fi
44215
eaff0f0d
VZ
44216if test "$wxUSE_STACKWALKER" = "yes"; then
44217 cat >>confdefs.h <<\_ACEOF
44218#define wxUSE_STACKWALKER 1
44219_ACEOF
44220
44221fi
44222
36b6448c 44223if test "$wxUSE_DEBUGREPORT" = "yes"; then
6517fa86 44224 if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
d589327a
VZ
44225 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
44226echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
44227 wxUSE_DEBUGREPORT=no
44228 else
44229 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
44230#define wxUSE_DEBUGREPORT 1
44231_ACEOF
44232
21dfc162
MW
44233 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
44234 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
44235 fi
dfe0c803 44236 fi
36b6448c
VZ
44237fi
44238
a848cd7e
SC
44239if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
44240 cat >>confdefs.h <<\_ACEOF
44241#define wxUSE_SNGLINST_CHECKER 1
44242_ACEOF
44243
44244fi
44245
44246if test "$wxUSE_BUSYINFO" = "yes"; then
44247 cat >>confdefs.h <<\_ACEOF
44248#define wxUSE_BUSYINFO 1
44249_ACEOF
44250
44251fi
44252
44253if test "$wxUSE_STD_IOSTREAM" = "yes"; then
44254 cat >>confdefs.h <<\_ACEOF
44255#define wxUSE_STD_IOSTREAM 1
44256_ACEOF
44257
44258fi
44259
59746b65
MW
44260if test "$wxUSE_STD_STRING" = "yes"; then
44261 cat >>confdefs.h <<\_ACEOF
44262#define wxUSE_STD_STRING 1
44263_ACEOF
44264
44265fi
44266
07158944
VZ
44267if test "$wxUSE_STDPATHS" = "yes"; then
44268 cat >>confdefs.h <<\_ACEOF
44269#define wxUSE_STDPATHS 1
44270_ACEOF
44271
44272fi
44273
a848cd7e
SC
44274if test "$wxUSE_TEXTBUFFER" = "yes"; then
44275 cat >>confdefs.h <<\_ACEOF
44276#define wxUSE_TEXTBUFFER 1
44277_ACEOF
44278
44279fi
44280
44281if test "$wxUSE_TEXTFILE" = "yes"; then
44282 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
d589327a
VZ
44283 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
44284echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
a848cd7e
SC
44285 else
44286 cat >>confdefs.h <<\_ACEOF
44287#define wxUSE_TEXTFILE 1
44288_ACEOF
44289
44290 fi
44291fi
44292
44293if test "$wxUSE_CONFIG" = "yes" ; then
44294 if test "$wxUSE_TEXTFILE" != "yes"; then
d589327a
VZ
44295 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
44296echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
a848cd7e
SC
44297 else
44298 cat >>confdefs.h <<\_ACEOF
44299#define wxUSE_CONFIG 1
89be85c2
VS
44300_ACEOF
44301
44302 cat >>confdefs.h <<\_ACEOF
44303#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
44304_ACEOF
44305
44306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
44307 fi
44308fi
44309
44310if test "$wxUSE_INTL" = "yes" ; then
44311 if test "$wxUSE_FILE" != "yes"; then
d589327a
VZ
44312 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
44313echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
a848cd7e
SC
44314 else
44315 cat >>confdefs.h <<\_ACEOF
44316#define wxUSE_INTL 1
44317_ACEOF
44318
44319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
44320 GUIDIST="$GUIDIST INTL_DIST"
44321 fi
44322fi
44323
41148443 44324if test "$wxUSE_XLOCALE" = "yes" ; then
6e4ae332
VZ
44325 cat >>confdefs.h <<\_ACEOF
44326#define wxUSE_XLOCALE 1
44327_ACEOF
44328
d589327a
VZ
44329 { echo "$as_me:$LINENO: checking for locale_t" >&5
44330echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
6e4ae332 44331if test "${ac_cv_type_locale_t+set}" = set; then
d589327a 44332 echo $ECHO_N "(cached) $ECHO_C" >&6
6e4ae332 44333else
aa113d87
FM
44334 cat >conftest.$ac_ext <<_ACEOF
44335/* confdefs.h. */
44336_ACEOF
44337cat confdefs.h >>conftest.$ac_ext
44338cat >>conftest.$ac_ext <<_ACEOF
44339/* end confdefs.h. */
44340#include <xlocale.h>
44341 #include <locale.h>
44342
d589327a 44343typedef locale_t ac__type_new_;
aa113d87
FM
44344int
44345main ()
44346{
d589327a
VZ
44347if ((ac__type_new_ *) 0)
44348 return 0;
44349if (sizeof (ac__type_new_))
44350 return 0;
6e4ae332
VZ
44351 ;
44352 return 0;
44353}
44354_ACEOF
44355rm -f conftest.$ac_objext
44356if { (ac_try="$ac_compile"
44357case "(($ac_try" in
44358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44359 *) ac_try_echo=$ac_try;;
44360esac
d589327a 44361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6e4ae332
VZ
44362 (eval "$ac_compile") 2>conftest.er1
44363 ac_status=$?
44364 grep -v '^ *+' conftest.er1 >conftest.err
44365 rm -f conftest.er1
44366 cat conftest.err >&5
d589327a 44367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6e4ae332
VZ
44368 (exit $ac_status); } && {
44369 test -z "$ac_c_werror_flag" ||
44370 test ! -s conftest.err
44371 } && test -s conftest.$ac_objext; then
d589327a 44372 ac_cv_type_locale_t=yes
6e4ae332 44373else
d589327a 44374 echo "$as_me: failed program was:" >&5
6e4ae332
VZ
44375sed 's/^/| /' conftest.$ac_ext >&5
44376
d589327a 44377 ac_cv_type_locale_t=no
6e4ae332
VZ
44378fi
44379
44380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44381fi
d589327a
VZ
44382{ echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
44383echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
44384if test $ac_cv_type_locale_t = yes; then
6e4ae332
VZ
44385
44386cat >>confdefs.h <<_ACEOF
44387#define HAVE_LOCALE_T 1
44388_ACEOF
44389
44390
44391fi
44392
44393fi
44394
a848cd7e
SC
44395if test "$wxUSE_LOG" = "yes"; then
44396 cat >>confdefs.h <<\_ACEOF
44397#define wxUSE_LOG 1
44398_ACEOF
44399
44400
44401 if test "$wxUSE_LOGGUI" = "yes"; then
44402 cat >>confdefs.h <<\_ACEOF
44403#define wxUSE_LOGGUI 1
44404_ACEOF
44405
44406 fi
44407
44408 if test "$wxUSE_LOGWINDOW" = "yes"; then
44409 cat >>confdefs.h <<\_ACEOF
44410#define wxUSE_LOGWINDOW 1
44411_ACEOF
44412
44413 fi
44414
44415 if test "$wxUSE_LOGDIALOG" = "yes"; then
44416 cat >>confdefs.h <<\_ACEOF
44417#define wxUSE_LOG_DIALOG 1
44418_ACEOF
44419
44420 fi
0b78747f
MW
44421
44422 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
44423fi
44424
44425if test "$wxUSE_LONGLONG" = "yes"; then
44426 cat >>confdefs.h <<\_ACEOF
44427#define wxUSE_LONGLONG 1
44428_ACEOF
44429
44430fi
44431
44432if test "$wxUSE_GEOMETRY" = "yes"; then
44433 cat >>confdefs.h <<\_ACEOF
44434#define wxUSE_GEOMETRY 1
44435_ACEOF
44436
44437fi
44438
4db03d26
VZ
44439if test "$wxUSE_BASE64" = "yes"; then
44440 cat >>confdefs.h <<\_ACEOF
44441#define wxUSE_BASE64 1
44442_ACEOF
44443
44444fi
44445
a848cd7e
SC
44446if test "$wxUSE_STREAMS" = "yes" ; then
44447 cat >>confdefs.h <<\_ACEOF
44448#define wxUSE_STREAMS 1
44449_ACEOF
44450
44451fi
44452
8b6682b9
JS
44453if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
44454 cat >>confdefs.h <<\_ACEOF
44455#define wxUSE_PRINTF_POS_PARAMS 1
44456_ACEOF
44457
44458fi
44459
931d7698
DE
44460if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
44461 cat >>confdefs.h <<\_ACEOF
44462#define wxUSE_OBJC_UNIQUIFYING 1
44463_ACEOF
44464
44465fi
8b6682b9 44466
a848cd7e 44467
39931206
VZ
44468if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
44469 cat >>confdefs.h <<\_ACEOF
44470#define wxUSE_CONSOLE_EVENTLOOP 1
44471_ACEOF
44472
44473
44474 if test "$wxUSE_UNIX" = "yes"; then
44475 if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
44476 cat >>confdefs.h <<\_ACEOF
44477#define wxUSE_SELECT_DISPATCHER 1
44478_ACEOF
44479
44480 fi
44481
44482 if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
44483
44484for ac_header in sys/epoll.h
44485do
d589327a
VZ
44486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44487{ echo "$as_me:$LINENO: checking for $ac_header" >&5
44488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47964710 44489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 44490 echo $ECHO_N "(cached) $ECHO_C" >&6
39931206 44491else
b55e1842 44492 cat >conftest.$ac_ext <<_ACEOF
39931206
VZ
44493/* confdefs.h. */
44494_ACEOF
44495cat confdefs.h >>conftest.$ac_ext
44496cat >>conftest.$ac_ext <<_ACEOF
44497/* end confdefs.h. */
44498$ac_includes_default
b55e1842 44499
39931206
VZ
44500#include <$ac_header>
44501_ACEOF
44502rm -f conftest.$ac_objext
47964710
VS
44503if { (ac_try="$ac_compile"
44504case "(($ac_try" in
44505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44506 *) ac_try_echo=$ac_try;;
44507esac
d589327a 44508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 44509 (eval "$ac_compile") 2>conftest.er1
39931206
VZ
44510 ac_status=$?
44511 grep -v '^ *+' conftest.er1 >conftest.err
44512 rm -f conftest.er1
44513 cat conftest.err >&5
d589327a 44514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44515 (exit $ac_status); } && {
44516 test -z "$ac_c_werror_flag" ||
44517 test ! -s conftest.err
44518 } && test -s conftest.$ac_objext; then
b55e1842 44519 eval "$as_ac_Header=yes"
39931206 44520else
d589327a 44521 echo "$as_me: failed program was:" >&5
39931206
VZ
44522sed 's/^/| /' conftest.$ac_ext >&5
44523
47964710 44524 eval "$as_ac_Header=no"
39931206 44525fi
47964710
VS
44526
44527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39931206 44528fi
d589327a
VZ
44529ac_res=`eval echo '${'$as_ac_Header'}'`
44530 { echo "$as_me:$LINENO: result: $ac_res" >&5
44531echo "${ECHO_T}$ac_res" >&6; }
44532if test `eval echo '${'$as_ac_Header'}'` = yes; then
39931206 44533 cat >>confdefs.h <<_ACEOF
d589327a 44534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39931206
VZ
44535_ACEOF
44536
44537fi
44538
44539done
44540
44541 if test "$ac_cv_header_sys_epoll_h" = "yes"; then
44542 cat >>confdefs.h <<\_ACEOF
44543#define wxUSE_EPOLL_DISPATCHER 1
44544_ACEOF
44545
44546 else
d589327a
VZ
44547 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
44548echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
39931206
VZ
44549 fi
44550 fi
44551 fi
44552fi
44553
44554
5f6cafd1
VZ
44555
44556
44557for ac_func in gettimeofday ftime
44558do
d589327a
VZ
44559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44560{ echo "$as_me:$LINENO: checking for $ac_func" >&5
44561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 44562if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 44563 echo $ECHO_N "(cached) $ECHO_C" >&6
5f6cafd1
VZ
44564else
44565 cat >conftest.$ac_ext <<_ACEOF
44566/* confdefs.h. */
44567_ACEOF
44568cat confdefs.h >>conftest.$ac_ext
44569cat >>conftest.$ac_ext <<_ACEOF
44570/* end confdefs.h. */
44571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44573#define $ac_func innocuous_$ac_func
44574
44575/* System header to define __stub macros and hopefully few prototypes,
44576 which can conflict with char $ac_func (); below.
44577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44578 <limits.h> exists even on freestanding compilers. */
44579
44580#ifdef __STDC__
44581# include <limits.h>
44582#else
44583# include <assert.h>
44584#endif
44585
44586#undef $ac_func
44587
47964710
VS
44588/* Override any GCC internal prototype to avoid an error.
44589 Use char because int might match the return type of a GCC
44590 builtin and then its argument prototype would still apply. */
5f6cafd1
VZ
44591#ifdef __cplusplus
44592extern "C"
44593#endif
44594char $ac_func ();
44595/* The GNU C library defines this for functions which it implements
44596 to always fail with ENOSYS. Some functions are actually named
44597 something starting with __ and the normal name is an alias. */
47964710 44598#if defined __stub_$ac_func || defined __stub___$ac_func
5f6cafd1
VZ
44599choke me
44600#endif
44601
44602int
44603main ()
44604{
47964710 44605return $ac_func ();
5f6cafd1
VZ
44606 ;
44607 return 0;
44608}
44609_ACEOF
44610rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
44611if { (ac_try="$ac_link"
44612case "(($ac_try" in
44613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44614 *) ac_try_echo=$ac_try;;
44615esac
d589327a 44616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 44617 (eval "$ac_link") 2>conftest.er1
5f6cafd1
VZ
44618 ac_status=$?
44619 grep -v '^ *+' conftest.er1 >conftest.err
44620 rm -f conftest.er1
44621 cat conftest.err >&5
d589327a 44622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44623 (exit $ac_status); } && {
44624 test -z "$ac_c_werror_flag" ||
44625 test ! -s conftest.err
d589327a
VZ
44626 } && test -s conftest$ac_exeext &&
44627 $as_test_x conftest$ac_exeext; then
5f6cafd1
VZ
44628 eval "$as_ac_var=yes"
44629else
d589327a 44630 echo "$as_me: failed program was:" >&5
5f6cafd1
VZ
44631sed 's/^/| /' conftest.$ac_ext >&5
44632
47964710 44633 eval "$as_ac_var=no"
5f6cafd1 44634fi
47964710
VS
44635
44636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5f6cafd1
VZ
44637 conftest$ac_exeext conftest.$ac_ext
44638fi
d589327a
VZ
44639ac_res=`eval echo '${'$as_ac_var'}'`
44640 { echo "$as_me:$LINENO: result: $ac_res" >&5
44641echo "${ECHO_T}$ac_res" >&6; }
44642if test `eval echo '${'$as_ac_var'}'` = yes; then
5f6cafd1 44643 cat >>confdefs.h <<_ACEOF
d589327a 44644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5f6cafd1
VZ
44645_ACEOF
44646 break
44647fi
44648done
44649
44650
44651if test "$ac_cv_func_gettimeofday" = "yes"; then
d589327a
VZ
44652 { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
44653echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
5f6cafd1 44654if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
d589327a 44655 echo $ECHO_N "(cached) $ECHO_C" >&6
5f6cafd1
VZ
44656else
44657
44658 cat >conftest.$ac_ext <<_ACEOF
44659/* confdefs.h. */
44660_ACEOF
44661cat confdefs.h >>conftest.$ac_ext
44662cat >>conftest.$ac_ext <<_ACEOF
44663/* end confdefs.h. */
44664
44665 #include <sys/time.h>
44666 #include <unistd.h>
44667
44668int
44669main ()
44670{
44671
44672 struct timeval tv;
44673 gettimeofday(&tv, NULL);
44674
44675 ;
44676 return 0;
44677}
44678_ACEOF
44679rm -f conftest.$ac_objext
47964710
VS
44680if { (ac_try="$ac_compile"
44681case "(($ac_try" in
44682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44683 *) ac_try_echo=$ac_try;;
44684esac
d589327a 44685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 44686 (eval "$ac_compile") 2>conftest.er1
5f6cafd1
VZ
44687 ac_status=$?
44688 grep -v '^ *+' conftest.er1 >conftest.err
44689 rm -f conftest.er1
44690 cat conftest.err >&5
d589327a 44691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44692 (exit $ac_status); } && {
44693 test -z "$ac_c_werror_flag" ||
44694 test ! -s conftest.err
44695 } && test -s conftest.$ac_objext; then
5f6cafd1
VZ
44696 wx_cv_func_gettimeofday_has_2_args=yes
44697else
d589327a 44698 echo "$as_me: failed program was:" >&5
5f6cafd1
VZ
44699sed 's/^/| /' conftest.$ac_ext >&5
44700
47964710 44701 cat >conftest.$ac_ext <<_ACEOF
5f6cafd1
VZ
44702/* confdefs.h. */
44703_ACEOF
44704cat confdefs.h >>conftest.$ac_ext
44705cat >>conftest.$ac_ext <<_ACEOF
44706/* end confdefs.h. */
44707
44708 #include <sys/time.h>
44709 #include <unistd.h>
44710
44711int
44712main ()
44713{
44714
44715 struct timeval tv;
44716 gettimeofday(&tv);
44717
44718 ;
44719 return 0;
44720}
44721_ACEOF
44722rm -f conftest.$ac_objext
47964710
VS
44723if { (ac_try="$ac_compile"
44724case "(($ac_try" in
44725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44726 *) ac_try_echo=$ac_try;;
44727esac
d589327a 44728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 44729 (eval "$ac_compile") 2>conftest.er1
5f6cafd1
VZ
44730 ac_status=$?
44731 grep -v '^ *+' conftest.er1 >conftest.err
44732 rm -f conftest.er1
44733 cat conftest.err >&5
d589327a 44734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44735 (exit $ac_status); } && {
44736 test -z "$ac_c_werror_flag" ||
44737 test ! -s conftest.err
44738 } && test -s conftest.$ac_objext; then
5f6cafd1
VZ
44739 wx_cv_func_gettimeofday_has_2_args=no
44740else
d589327a 44741 echo "$as_me: failed program was:" >&5
5f6cafd1
VZ
44742sed 's/^/| /' conftest.$ac_ext >&5
44743
44744
d589327a
VZ
44745 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44746echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
5f6cafd1
VZ
44747 wx_cv_func_gettimeofday_has_2_args=unknown
44748
44749
44750fi
47964710
VS
44751
44752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5f6cafd1
VZ
44753
44754fi
47964710
VS
44755
44756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5f6cafd1
VZ
44757
44758fi
d589327a
VZ
44759{ echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44760echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
5f6cafd1
VZ
44761
44762 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44763 cat >>confdefs.h <<\_ACEOF
44764#define WX_GETTIMEOFDAY_NO_TZ 1
44765_ACEOF
44766
44767 fi
44768fi
44769
a848cd7e 44770if test "$wxUSE_DATETIME" = "yes"; then
d589327a
VZ
44771 { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
44772echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
a848cd7e 44773if test "${wx_cv_var_timezone+set}" = set; then
d589327a 44774 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
44775else
44776
47964710 44777 ac_ext=cpp
715d53e4
VZ
44778ac_cpp='$CXXCPP $CPPFLAGS'
44779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44782
a848cd7e
SC
44783 cat >conftest.$ac_ext <<_ACEOF
44784/* confdefs.h. */
44785_ACEOF
44786cat confdefs.h >>conftest.$ac_ext
44787cat >>conftest.$ac_ext <<_ACEOF
44788/* end confdefs.h. */
44789
44790 #include <time.h>
44791
44792int
44793main ()
44794{
44795
44796 int tz;
44797 tz = timezone;
44798
44799 ;
44800 return 0;
44801}
44802_ACEOF
44803rm -f conftest.$ac_objext
47964710
VS
44804if { (ac_try="$ac_compile"
44805case "(($ac_try" in
44806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44807 *) ac_try_echo=$ac_try;;
44808esac
d589327a 44809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 44810 (eval "$ac_compile") 2>conftest.er1
a848cd7e 44811 ac_status=$?
ac1cb8d3
VS
44812 grep -v '^ *+' conftest.er1 >conftest.err
44813 rm -f conftest.er1
44814 cat conftest.err >&5
d589327a 44815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44816 (exit $ac_status); } && {
44817 test -z "$ac_cxx_werror_flag" ||
44818 test ! -s conftest.err
44819 } && test -s conftest.$ac_objext; then
a848cd7e
SC
44820
44821 wx_cv_var_timezone=timezone
44822
44823else
d589327a 44824 echo "$as_me: failed program was:" >&5
a848cd7e
SC
44825sed 's/^/| /' conftest.$ac_ext >&5
44826
44827
44828 cat >conftest.$ac_ext <<_ACEOF
44829/* confdefs.h. */
44830_ACEOF
44831cat confdefs.h >>conftest.$ac_ext
44832cat >>conftest.$ac_ext <<_ACEOF
44833/* end confdefs.h. */
44834
44835 #include <time.h>
44836
44837int
44838main ()
44839{
44840
44841 int tz;
44842 tz = _timezone;
44843
44844 ;
44845 return 0;
44846}
44847_ACEOF
44848rm -f conftest.$ac_objext
47964710
VS
44849if { (ac_try="$ac_compile"
44850case "(($ac_try" in
44851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44852 *) ac_try_echo=$ac_try;;
44853esac
d589327a 44854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 44855 (eval "$ac_compile") 2>conftest.er1
a848cd7e 44856 ac_status=$?
ac1cb8d3
VS
44857 grep -v '^ *+' conftest.er1 >conftest.err
44858 rm -f conftest.er1
44859 cat conftest.err >&5
d589327a 44860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44861 (exit $ac_status); } && {
44862 test -z "$ac_cxx_werror_flag" ||
44863 test ! -s conftest.err
44864 } && test -s conftest.$ac_objext; then
a848cd7e
SC
44865
44866 wx_cv_var_timezone=_timezone
44867
44868else
d589327a 44869 echo "$as_me: failed program was:" >&5
a848cd7e
SC
44870sed 's/^/| /' conftest.$ac_ext >&5
44871
44872
44873 cat >conftest.$ac_ext <<_ACEOF
44874/* confdefs.h. */
44875_ACEOF
44876cat confdefs.h >>conftest.$ac_ext
44877cat >>conftest.$ac_ext <<_ACEOF
44878/* end confdefs.h. */
44879
44880 #include <time.h>
44881
44882int
44883main ()
44884{
44885
44886 int tz;
44887 tz = __timezone;
44888
44889 ;
44890 return 0;
44891}
44892_ACEOF
44893rm -f conftest.$ac_objext
47964710
VS
44894if { (ac_try="$ac_compile"
44895case "(($ac_try" in
44896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44897 *) ac_try_echo=$ac_try;;
44898esac
d589327a 44899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 44900 (eval "$ac_compile") 2>conftest.er1
a848cd7e 44901 ac_status=$?
ac1cb8d3
VS
44902 grep -v '^ *+' conftest.er1 >conftest.err
44903 rm -f conftest.er1
44904 cat conftest.err >&5
d589327a 44905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
44906 (exit $ac_status); } && {
44907 test -z "$ac_cxx_werror_flag" ||
44908 test ! -s conftest.err
44909 } && test -s conftest.$ac_objext; then
a848cd7e
SC
44910
44911 wx_cv_var_timezone=__timezone
44912
44913else
d589327a 44914 echo "$as_me: failed program was:" >&5
a848cd7e
SC
44915sed 's/^/| /' conftest.$ac_ext >&5
44916
44917
44918 if test "$USE_DOS" = 0 ; then
d589327a
VZ
44919 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44920echo "$as_me: WARNING: no timezone variable" >&2;}
a848cd7e
SC
44921 fi
44922
44923
44924fi
47964710
VS
44925
44926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44927
44928
44929fi
47964710
VS
44930
44931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44932
44933
44934fi
47964710
VS
44935
44936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
715d53e4
VZ
44937 ac_ext=c
44938ac_cpp='$CPP $CPPFLAGS'
44939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44941ac_compiler_gnu=$ac_cv_c_compiler_gnu
44942
a848cd7e
SC
44943
44944
44945fi
d589327a
VZ
44946{ echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44947echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
a848cd7e
SC
44948
44949 if test "x$wx_cv_var_timezone" != x ; then
44950 cat >>confdefs.h <<_ACEOF
44951#define WX_TIMEZONE $wx_cv_var_timezone
44952_ACEOF
44953
44954 fi
44955
44956
44957for ac_func in localtime
44958do
d589327a
VZ
44959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44960{ echo "$as_me:$LINENO: checking for $ac_func" >&5
44961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47964710 44962if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 44963 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
44964else
44965 cat >conftest.$ac_ext <<_ACEOF
44966/* confdefs.h. */
44967_ACEOF
44968cat confdefs.h >>conftest.$ac_ext
44969cat >>conftest.$ac_ext <<_ACEOF
44970/* end confdefs.h. */
ac1cb8d3
VS
44971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44973#define $ac_func innocuous_$ac_func
44974
a848cd7e
SC
44975/* System header to define __stub macros and hopefully few prototypes,
44976 which can conflict with char $ac_func (); below.
44977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44978 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44979
a848cd7e
SC
44980#ifdef __STDC__
44981# include <limits.h>
44982#else
44983# include <assert.h>
44984#endif
ac1cb8d3
VS
44985
44986#undef $ac_func
44987
47964710
VS
44988/* Override any GCC internal prototype to avoid an error.
44989 Use char because int might match the return type of a GCC
44990 builtin and then its argument prototype would still apply. */
a848cd7e
SC
44991#ifdef __cplusplus
44992extern "C"
a848cd7e 44993#endif
a848cd7e
SC
44994char $ac_func ();
44995/* The GNU C library defines this for functions which it implements
44996 to always fail with ENOSYS. Some functions are actually named
44997 something starting with __ and the normal name is an alias. */
47964710 44998#if defined __stub_$ac_func || defined __stub___$ac_func
a848cd7e 44999choke me
a848cd7e
SC
45000#endif
45001
45002int
45003main ()
45004{
47964710 45005return $ac_func ();
a848cd7e
SC
45006 ;
45007 return 0;
45008}
45009_ACEOF
45010rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
45011if { (ac_try="$ac_link"
45012case "(($ac_try" in
45013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45014 *) ac_try_echo=$ac_try;;
45015esac
d589327a 45016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 45017 (eval "$ac_link") 2>conftest.er1
a848cd7e 45018 ac_status=$?
ac1cb8d3
VS
45019 grep -v '^ *+' conftest.er1 >conftest.err
45020 rm -f conftest.er1
45021 cat conftest.err >&5
d589327a 45022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45023 (exit $ac_status); } && {
45024 test -z "$ac_c_werror_flag" ||
45025 test ! -s conftest.err
d589327a
VZ
45026 } && test -s conftest$ac_exeext &&
45027 $as_test_x conftest$ac_exeext; then
39b61aa3
VZ
45028 eval "$as_ac_var=yes"
45029else
d589327a 45030 echo "$as_me: failed program was:" >&5
39b61aa3
VZ
45031sed 's/^/| /' conftest.$ac_ext >&5
45032
47964710 45033 eval "$as_ac_var=no"
39b61aa3 45034fi
47964710
VS
45035
45036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39b61aa3
VZ
45037 conftest$ac_exeext conftest.$ac_ext
45038fi
d589327a
VZ
45039ac_res=`eval echo '${'$as_ac_var'}'`
45040 { echo "$as_me:$LINENO: result: $ac_res" >&5
45041echo "${ECHO_T}$ac_res" >&6; }
45042if test `eval echo '${'$as_ac_var'}'` = yes; then
39b61aa3 45043 cat >>confdefs.h <<_ACEOF
d589327a 45044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39b61aa3
VZ
45045_ACEOF
45046
45047fi
45048done
45049
45050
45051 if test "$ac_cv_func_localtime" = "yes"; then
d589327a
VZ
45052 { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
45053echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
39b61aa3 45054if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
d589327a 45055 echo $ECHO_N "(cached) $ECHO_C" >&6
39b61aa3
VZ
45056else
45057
45058 cat >conftest.$ac_ext <<_ACEOF
45059/* confdefs.h. */
45060_ACEOF
45061cat confdefs.h >>conftest.$ac_ext
45062cat >>conftest.$ac_ext <<_ACEOF
45063/* end confdefs.h. */
45064
45065 #include <time.h>
45066
45067int
45068main ()
45069{
45070
45071 struct tm tm;
45072 tm.tm_gmtoff++;
45073
45074 ;
45075 return 0;
45076}
45077_ACEOF
45078rm -f conftest.$ac_objext
47964710
VS
45079if { (ac_try="$ac_compile"
45080case "(($ac_try" in
45081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45082 *) ac_try_echo=$ac_try;;
45083esac
d589327a 45084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 45085 (eval "$ac_compile") 2>conftest.er1
ac1cb8d3 45086 ac_status=$?
39b61aa3
VZ
45087 grep -v '^ *+' conftest.er1 >conftest.err
45088 rm -f conftest.er1
45089 cat conftest.err >&5
d589327a 45090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45091 (exit $ac_status); } && {
45092 test -z "$ac_c_werror_flag" ||
45093 test ! -s conftest.err
45094 } && test -s conftest.$ac_objext; then
39b61aa3
VZ
45095
45096 wx_cv_struct_tm_has_gmtoff=yes
45097
45098else
d589327a 45099 echo "$as_me: failed program was:" >&5
39b61aa3
VZ
45100sed 's/^/| /' conftest.$ac_ext >&5
45101
47964710 45102 wx_cv_struct_tm_has_gmtoff=no
39b61aa3
VZ
45103
45104fi
47964710
VS
45105
45106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39b61aa3
VZ
45107
45108fi
d589327a
VZ
45109{ echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
45110echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
39b61aa3
VZ
45111 fi
45112
45113 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
45114 cat >>confdefs.h <<\_ACEOF
45115#define WX_GMTOFF_IN_TM 1
45116_ACEOF
45117
45118 fi
45119
a848cd7e
SC
45120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
45121fi
45122
45123
45124if test "$wxUSE_SOCKETS" = "yes"; then
6517fa86 45125 if test "$wxUSE_MGL" = 1; then
d589327a
VZ
45126 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
45127echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
a848cd7e
SC
45128 wxUSE_SOCKETS="no"
45129 fi
45130fi
45131
45132if test "$wxUSE_SOCKETS" = "yes"; then
45133 if test "$TOOLKIT" != "MSW"; then
d589327a
VZ
45134 { echo "$as_me:$LINENO: checking for socket" >&5
45135echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
a848cd7e 45136if test "${ac_cv_func_socket+set}" = set; then
d589327a 45137 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
45138else
45139 cat >conftest.$ac_ext <<_ACEOF
45140/* confdefs.h. */
45141_ACEOF
45142cat confdefs.h >>conftest.$ac_ext
45143cat >>conftest.$ac_ext <<_ACEOF
45144/* end confdefs.h. */
ac1cb8d3
VS
45145/* Define socket to an innocuous variant, in case <limits.h> declares socket.
45146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45147#define socket innocuous_socket
45148
a848cd7e
SC
45149/* System header to define __stub macros and hopefully few prototypes,
45150 which can conflict with char socket (); below.
45151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45152 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 45153
a848cd7e
SC
45154#ifdef __STDC__
45155# include <limits.h>
45156#else
45157# include <assert.h>
45158#endif
ac1cb8d3
VS
45159
45160#undef socket
45161
47964710
VS
45162/* Override any GCC internal prototype to avoid an error.
45163 Use char because int might match the return type of a GCC
45164 builtin and then its argument prototype would still apply. */
a848cd7e
SC
45165#ifdef __cplusplus
45166extern "C"
a848cd7e 45167#endif
a848cd7e
SC
45168char socket ();
45169/* The GNU C library defines this for functions which it implements
45170 to always fail with ENOSYS. Some functions are actually named
45171 something starting with __ and the normal name is an alias. */
47964710 45172#if defined __stub_socket || defined __stub___socket
a848cd7e 45173choke me
a848cd7e
SC
45174#endif
45175
45176int
45177main ()
45178{
47964710 45179return socket ();
a848cd7e
SC
45180 ;
45181 return 0;
45182}
45183_ACEOF
45184rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
45185if { (ac_try="$ac_link"
45186case "(($ac_try" in
45187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45188 *) ac_try_echo=$ac_try;;
45189esac
d589327a 45190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 45191 (eval "$ac_link") 2>conftest.er1
a848cd7e 45192 ac_status=$?
ac1cb8d3
VS
45193 grep -v '^ *+' conftest.er1 >conftest.err
45194 rm -f conftest.er1
45195 cat conftest.err >&5
d589327a 45196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45197 (exit $ac_status); } && {
45198 test -z "$ac_c_werror_flag" ||
45199 test ! -s conftest.err
d589327a
VZ
45200 } && test -s conftest$ac_exeext &&
45201 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
45202 ac_cv_func_socket=yes
45203else
d589327a 45204 echo "$as_me: failed program was:" >&5
a848cd7e
SC
45205sed 's/^/| /' conftest.$ac_ext >&5
45206
47964710 45207 ac_cv_func_socket=no
a848cd7e 45208fi
47964710
VS
45209
45210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 45211 conftest$ac_exeext conftest.$ac_ext
a848cd7e 45212fi
d589327a
VZ
45213{ echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
45214echo "${ECHO_T}$ac_cv_func_socket" >&6; }
45215if test $ac_cv_func_socket = yes; then
a848cd7e
SC
45216 :
45217else
45218
d589327a
VZ
45219 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
45220echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
a848cd7e 45221if test "${ac_cv_lib_socket_socket+set}" = set; then
d589327a 45222 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
45223else
45224 ac_check_lib_save_LIBS=$LIBS
45225LIBS="-lsocket $LIBS"
45226cat >conftest.$ac_ext <<_ACEOF
45227/* confdefs.h. */
45228_ACEOF
45229cat confdefs.h >>conftest.$ac_ext
45230cat >>conftest.$ac_ext <<_ACEOF
45231/* end confdefs.h. */
45232
47964710
VS
45233/* Override any GCC internal prototype to avoid an error.
45234 Use char because int might match the return type of a GCC
45235 builtin and then its argument prototype would still apply. */
a848cd7e
SC
45236#ifdef __cplusplus
45237extern "C"
45238#endif
a848cd7e
SC
45239char socket ();
45240int
45241main ()
45242{
47964710 45243return socket ();
a848cd7e
SC
45244 ;
45245 return 0;
45246}
45247_ACEOF
45248rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
45249if { (ac_try="$ac_link"
45250case "(($ac_try" in
45251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45252 *) ac_try_echo=$ac_try;;
45253esac
d589327a 45254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 45255 (eval "$ac_link") 2>conftest.er1
a848cd7e 45256 ac_status=$?
ac1cb8d3
VS
45257 grep -v '^ *+' conftest.er1 >conftest.err
45258 rm -f conftest.er1
45259 cat conftest.err >&5
d589327a 45260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45261 (exit $ac_status); } && {
45262 test -z "$ac_c_werror_flag" ||
45263 test ! -s conftest.err
d589327a
VZ
45264 } && test -s conftest$ac_exeext &&
45265 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
45266 ac_cv_lib_socket_socket=yes
45267else
d589327a 45268 echo "$as_me: failed program was:" >&5
a848cd7e
SC
45269sed 's/^/| /' conftest.$ac_ext >&5
45270
47964710 45271 ac_cv_lib_socket_socket=no
a848cd7e 45272fi
47964710
VS
45273
45274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 45275 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45276LIBS=$ac_check_lib_save_LIBS
45277fi
d589327a
VZ
45278{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
45279echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
45280if test $ac_cv_lib_socket_socket = yes; then
a848cd7e
SC
45281 if test "$INET_LINK" != " -lsocket"; then
45282 INET_LINK="$INET_LINK -lsocket"
45283 fi
45284else
45285
d589327a
VZ
45286 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
45287echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
a848cd7e
SC
45288 wxUSE_SOCKETS=no
45289
45290
45291fi
45292
45293
45294
45295fi
45296
45297 fi
45298fi
45299
45300if test "$wxUSE_SOCKETS" = "yes" ; then
45301 if test "$TOOLKIT" != "MSW"; then
d589327a
VZ
45302 { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
45303echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
a848cd7e 45304if test "${wx_cv_type_getsockname3+set}" = set; then
d589327a 45305 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
45306else
45307
47964710 45308 ac_ext=cpp
9b8888f9
VZ
45309ac_cpp='$CXXCPP $CPPFLAGS'
45310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45313
a848cd7e
SC
45314 cat >conftest.$ac_ext <<_ACEOF
45315/* confdefs.h. */
45316_ACEOF
45317cat confdefs.h >>conftest.$ac_ext
45318cat >>conftest.$ac_ext <<_ACEOF
45319/* end confdefs.h. */
45320
45321 #include <sys/types.h>
45322 #include <sys/socket.h>
45323
45324int
45325main ()
45326{
45327
45328 socklen_t len;
45329 getsockname(0, 0, &len);
45330
45331 ;
45332 return 0;
45333}
45334_ACEOF
45335rm -f conftest.$ac_objext
47964710
VS
45336if { (ac_try="$ac_compile"
45337case "(($ac_try" in
45338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45339 *) ac_try_echo=$ac_try;;
45340esac
d589327a 45341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 45342 (eval "$ac_compile") 2>conftest.er1
a848cd7e 45343 ac_status=$?
ac1cb8d3
VS
45344 grep -v '^ *+' conftest.er1 >conftest.err
45345 rm -f conftest.er1
45346 cat conftest.err >&5
d589327a 45347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45348 (exit $ac_status); } && {
45349 test -z "$ac_cxx_werror_flag" ||
45350 test ! -s conftest.err
45351 } && test -s conftest.$ac_objext; then
a848cd7e
SC
45352 wx_cv_type_getsockname3=socklen_t
45353else
d589327a 45354 echo "$as_me: failed program was:" >&5
a848cd7e
SC
45355sed 's/^/| /' conftest.$ac_ext >&5
45356
45357
9b8888f9 45358 CFLAGS_OLD="$CFLAGS"
a848cd7e 45359 if test "$GCC" = yes ; then
9b8888f9 45360 CFLAGS="-Werror $CFLAGS"
a848cd7e
SC
45361 fi
45362
45363 cat >conftest.$ac_ext <<_ACEOF
45364/* confdefs.h. */
45365_ACEOF
45366cat confdefs.h >>conftest.$ac_ext
45367cat >>conftest.$ac_ext <<_ACEOF
45368/* end confdefs.h. */
45369
45370 #include <sys/types.h>
45371 #include <sys/socket.h>
45372
45373int
45374main ()
45375{
45376
45377 size_t len;
45378 getsockname(0, 0, &len);
45379
45380 ;
45381 return 0;
45382}
45383_ACEOF
45384rm -f conftest.$ac_objext
47964710
VS
45385if { (ac_try="$ac_compile"
45386case "(($ac_try" in
45387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45388 *) ac_try_echo=$ac_try;;
45389esac
d589327a 45390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 45391 (eval "$ac_compile") 2>conftest.er1
a848cd7e 45392 ac_status=$?
ac1cb8d3
VS
45393 grep -v '^ *+' conftest.er1 >conftest.err
45394 rm -f conftest.er1
45395 cat conftest.err >&5
d589327a 45396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45397 (exit $ac_status); } && {
45398 test -z "$ac_cxx_werror_flag" ||
45399 test ! -s conftest.err
45400 } && test -s conftest.$ac_objext; then
a848cd7e
SC
45401 wx_cv_type_getsockname3=size_t
45402else
d589327a 45403 echo "$as_me: failed program was:" >&5
a848cd7e
SC
45404sed 's/^/| /' conftest.$ac_ext >&5
45405
47964710 45406 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
45407/* confdefs.h. */
45408_ACEOF
45409cat confdefs.h >>conftest.$ac_ext
45410cat >>conftest.$ac_ext <<_ACEOF
45411/* end confdefs.h. */
45412
45413 #include <sys/types.h>
45414 #include <sys/socket.h>
45415
45416int
45417main ()
45418{
45419
45420 int len;
45421 getsockname(0, 0, &len);
45422
45423 ;
45424 return 0;
45425}
45426_ACEOF
45427rm -f conftest.$ac_objext
47964710
VS
45428if { (ac_try="$ac_compile"
45429case "(($ac_try" in
45430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45431 *) ac_try_echo=$ac_try;;
45432esac
d589327a 45433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 45434 (eval "$ac_compile") 2>conftest.er1
a848cd7e 45435 ac_status=$?
ac1cb8d3
VS
45436 grep -v '^ *+' conftest.er1 >conftest.err
45437 rm -f conftest.er1
45438 cat conftest.err >&5
d589327a 45439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45440 (exit $ac_status); } && {
45441 test -z "$ac_cxx_werror_flag" ||
45442 test ! -s conftest.err
45443 } && test -s conftest.$ac_objext; then
a848cd7e
SC
45444 wx_cv_type_getsockname3=int
45445else
d589327a 45446 echo "$as_me: failed program was:" >&5
a848cd7e
SC
45447sed 's/^/| /' conftest.$ac_ext >&5
45448
47964710 45449 wx_cv_type_getsockname3=unknown
a848cd7e
SC
45450
45451fi
47964710
VS
45452
45453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45454
45455fi
47964710
VS
45456
45457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45458
9b8888f9 45459 CFLAGS="$CFLAGS_OLD"
a848cd7e
SC
45460
45461
45462fi
47964710
VS
45463
45464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
45465 ac_ext=c
45466ac_cpp='$CPP $CPPFLAGS'
45467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45469ac_compiler_gnu=$ac_cv_c_compiler_gnu
45470
a848cd7e
SC
45471
45472fi
d589327a
VZ
45473{ echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
45474echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
a848cd7e
SC
45475
45476 if test "$wx_cv_type_getsockname3" = "unknown"; then
45477 wxUSE_SOCKETS=no
d589327a
VZ
45478 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45479echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
a848cd7e
SC
45480 else
45481 cat >>confdefs.h <<_ACEOF
9e03e02d 45482#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
45483_ACEOF
45484
45485 fi
d589327a
VZ
45486 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
45487echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
5b674b9d 45488if test "${wx_cv_type_getsockopt5+set}" = set; then
d589327a 45489 echo $ECHO_N "(cached) $ECHO_C" >&6
5b674b9d
DE
45490else
45491
47964710 45492 ac_ext=cpp
ebe1d157
VZ
45493ac_cpp='$CXXCPP $CPPFLAGS'
45494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45497
5b674b9d
DE
45498 cat >conftest.$ac_ext <<_ACEOF
45499/* confdefs.h. */
45500_ACEOF
45501cat confdefs.h >>conftest.$ac_ext
45502cat >>conftest.$ac_ext <<_ACEOF
45503/* end confdefs.h. */
45504
45505 #include <sys/types.h>
45506 #include <sys/socket.h>
45507
45508int
45509main ()
45510{
45511
45512 socklen_t len;
45513 getsockopt(0, 0, 0, 0, &len);
45514
45515 ;
45516 return 0;
45517}
45518_ACEOF
45519rm -f conftest.$ac_objext
47964710
VS
45520if { (ac_try="$ac_compile"
45521case "(($ac_try" in
45522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45523 *) ac_try_echo=$ac_try;;
45524esac
d589327a 45525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 45526 (eval "$ac_compile") 2>conftest.er1
5b674b9d
DE
45527 ac_status=$?
45528 grep -v '^ *+' conftest.er1 >conftest.err
45529 rm -f conftest.er1
45530 cat conftest.err >&5
d589327a 45531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45532 (exit $ac_status); } && {
45533 test -z "$ac_cxx_werror_flag" ||
45534 test ! -s conftest.err
45535 } && test -s conftest.$ac_objext; then
5b674b9d
DE
45536 wx_cv_type_getsockopt5=socklen_t
45537else
d589327a 45538 echo "$as_me: failed program was:" >&5
5b674b9d
DE
45539sed 's/^/| /' conftest.$ac_ext >&5
45540
45541
5b674b9d
DE
45542 cat >conftest.$ac_ext <<_ACEOF
45543/* confdefs.h. */
45544_ACEOF
45545cat confdefs.h >>conftest.$ac_ext
45546cat >>conftest.$ac_ext <<_ACEOF
45547/* end confdefs.h. */
45548
45549 #include <sys/types.h>
45550 #include <sys/socket.h>
45551
45552int
45553main ()
45554{
45555
45556 size_t len;
45557 getsockopt(0, 0, 0, 0, &len);
45558
45559 ;
45560 return 0;
45561}
45562_ACEOF
45563rm -f conftest.$ac_objext
47964710
VS
45564if { (ac_try="$ac_compile"
45565case "(($ac_try" in
45566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45567 *) ac_try_echo=$ac_try;;
45568esac
d589327a 45569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 45570 (eval "$ac_compile") 2>conftest.er1
5b674b9d
DE
45571 ac_status=$?
45572 grep -v '^ *+' conftest.er1 >conftest.err
45573 rm -f conftest.er1
45574 cat conftest.err >&5
d589327a 45575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45576 (exit $ac_status); } && {
45577 test -z "$ac_cxx_werror_flag" ||
45578 test ! -s conftest.err
45579 } && test -s conftest.$ac_objext; then
5b674b9d
DE
45580 wx_cv_type_getsockopt5=size_t
45581else
d589327a 45582 echo "$as_me: failed program was:" >&5
5b674b9d
DE
45583sed 's/^/| /' conftest.$ac_ext >&5
45584
47964710 45585 cat >conftest.$ac_ext <<_ACEOF
5b674b9d
DE
45586/* confdefs.h. */
45587_ACEOF
45588cat confdefs.h >>conftest.$ac_ext
45589cat >>conftest.$ac_ext <<_ACEOF
45590/* end confdefs.h. */
45591
45592 #include <sys/types.h>
45593 #include <sys/socket.h>
45594
45595int
45596main ()
45597{
45598
45599 int len;
45600 getsockopt(0, 0, 0, 0, &len);
45601
45602 ;
45603 return 0;
45604}
45605_ACEOF
45606rm -f conftest.$ac_objext
47964710
VS
45607if { (ac_try="$ac_compile"
45608case "(($ac_try" in
45609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45610 *) ac_try_echo=$ac_try;;
45611esac
d589327a 45612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 45613 (eval "$ac_compile") 2>conftest.er1
5b674b9d
DE
45614 ac_status=$?
45615 grep -v '^ *+' conftest.er1 >conftest.err
45616 rm -f conftest.er1
45617 cat conftest.err >&5
d589327a 45618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45619 (exit $ac_status); } && {
45620 test -z "$ac_cxx_werror_flag" ||
45621 test ! -s conftest.err
45622 } && test -s conftest.$ac_objext; then
5b674b9d
DE
45623 wx_cv_type_getsockopt5=int
45624else
d589327a 45625 echo "$as_me: failed program was:" >&5
5b674b9d
DE
45626sed 's/^/| /' conftest.$ac_ext >&5
45627
47964710 45628 wx_cv_type_getsockopt5=unknown
5b674b9d
DE
45629
45630fi
47964710
VS
45631
45632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5b674b9d
DE
45633
45634fi
47964710
VS
45635
45636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5b674b9d
DE
45637
45638
45639fi
47964710
VS
45640
45641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ebe1d157
VZ
45642 ac_ext=c
45643ac_cpp='$CPP $CPPFLAGS'
45644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45646ac_compiler_gnu=$ac_cv_c_compiler_gnu
45647
5b674b9d
DE
45648
45649fi
d589327a
VZ
45650{ echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
45651echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
5b674b9d
DE
45652
45653 if test "$wx_cv_type_getsockopt5" = "unknown"; then
45654 wxUSE_SOCKETS=no
d589327a
VZ
45655 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45656echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
5b674b9d
DE
45657 else
45658 cat >>confdefs.h <<_ACEOF
45659#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
45660_ACEOF
45661
45662 fi
45663 fi
45664fi
45665
45666if test "$wxUSE_SOCKETS" = "yes" ; then
8575ff50 45667 if test "$wxUSE_IPV6" = "yes"; then
d589327a
VZ
45668 { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
45669echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
8575ff50 45670if test "${wx_cv_type_sockaddr_in6+set}" = set; then
d589327a 45671 echo $ECHO_N "(cached) $ECHO_C" >&6
8575ff50
VZ
45672else
45673
45674 cat >conftest.$ac_ext <<_ACEOF
45675/* confdefs.h. */
45676_ACEOF
45677cat confdefs.h >>conftest.$ac_ext
45678cat >>conftest.$ac_ext <<_ACEOF
45679/* end confdefs.h. */
45680
45681 #include <sys/types.h>
45682 #include <sys/socket.h>
45683 #include <netinet/in.h>
45684
45685int
45686main ()
45687{
45688
45689 struct sockaddr_in6 sa6;
45690
45691 ;
45692 return 0;
45693}
45694_ACEOF
45695rm -f conftest.$ac_objext
45696if { (ac_try="$ac_compile"
45697case "(($ac_try" in
45698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45699 *) ac_try_echo=$ac_try;;
45700esac
d589327a 45701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575ff50
VZ
45702 (eval "$ac_compile") 2>conftest.er1
45703 ac_status=$?
45704 grep -v '^ *+' conftest.er1 >conftest.err
45705 rm -f conftest.er1
45706 cat conftest.err >&5
d589327a 45707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575ff50
VZ
45708 (exit $ac_status); } && {
45709 test -z "$ac_c_werror_flag" ||
45710 test ! -s conftest.err
45711 } && test -s conftest.$ac_objext; then
45712 wx_cv_type_sockaddr_in6=yes
45713else
d589327a 45714 echo "$as_me: failed program was:" >&5
8575ff50
VZ
45715sed 's/^/| /' conftest.$ac_ext >&5
45716
45717 wx_cv_type_sockaddr_in6=no
45718
45719fi
45720
45721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45722
45723
45724fi
d589327a
VZ
45725{ echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
45726echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
8575ff50
VZ
45727
45728 if test "$wx_cv_type_sockaddr_in6"="yes"; then
45729 cat >>confdefs.h <<\_ACEOF
45730#define wxUSE_IPV6 1
45731_ACEOF
45732
45733 else
d589327a
VZ
45734 { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
45735echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
8575ff50
VZ
45736 fi
45737 fi
45738
a848cd7e
SC
45739 cat >>confdefs.h <<\_ACEOF
45740#define wxUSE_SOCKETS 1
45741_ACEOF
45742
45743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
45744fi
45745
45746if test "$wxUSE_PROTOCOL" = "yes"; then
45747 if test "$wxUSE_SOCKETS" != "yes"; then
d589327a
VZ
45748 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
45749echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
a848cd7e
SC
45750 wxUSE_PROTOCOL=no
45751 fi
45752fi
45753
45754if test "$wxUSE_PROTOCOL" = "yes"; then
45755 cat >>confdefs.h <<\_ACEOF
45756#define wxUSE_PROTOCOL 1
45757_ACEOF
45758
45759
45760 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
45761 cat >>confdefs.h <<\_ACEOF
45762#define wxUSE_PROTOCOL_HTTP 1
45763_ACEOF
45764
45765 fi
45766 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45767 cat >>confdefs.h <<\_ACEOF
45768#define wxUSE_PROTOCOL_FTP 1
45769_ACEOF
45770
45771 fi
45772 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45773 cat >>confdefs.h <<\_ACEOF
45774#define wxUSE_PROTOCOL_FILE 1
45775_ACEOF
45776
45777 fi
45778else
45779 if test "$wxUSE_FS_INET" = "yes"; then
d589327a
VZ
45780 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45781echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
a848cd7e
SC
45782 wxUSE_FS_INET="no"
45783 fi
45784fi
45785
45786if test "$wxUSE_URL" = "yes"; then
45787 if test "$wxUSE_PROTOCOL" != "yes"; then
d589327a
VZ
45788 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45789echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
a848cd7e
SC
45790 wxUSE_URL=no
45791 fi
45792 if test "$wxUSE_URL" = "yes"; then
45793 cat >>confdefs.h <<\_ACEOF
45794#define wxUSE_URL 1
45795_ACEOF
45796
45797 fi
45798fi
45799
ca5c6ac3
VZ
45800if test "$wxUSE_VARIANT" = "yes"; then
45801 cat >>confdefs.h <<\_ACEOF
45802#define wxUSE_VARIANT 1
45803_ACEOF
45804
45805fi
45806
a848cd7e
SC
45807if test "$wxUSE_FS_INET" = "yes"; then
45808 cat >>confdefs.h <<\_ACEOF
45809#define wxUSE_FS_INET 1
45810_ACEOF
45811
45812fi
45813
45814
ee45c548
MW
45815if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45816 wxUSE_JOYSTICK=no
45817
45818 if test "$TOOLKIT" = "MSW"; then
45819 wxUSE_JOYSTICK=yes
45820
2ea057f9 45821 elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
ee45c548 45822 if test "$USE_DARWIN" = 1; then
d589327a
VZ
45823 { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45824echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
47964710 45825 ac_ext=cpp
9b8888f9
VZ
45826ac_cpp='$CXXCPP $CPPFLAGS'
45827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45830
ee45c548
MW
45831 cat >conftest.$ac_ext <<_ACEOF
45832/* confdefs.h. */
45833_ACEOF
45834cat confdefs.h >>conftest.$ac_ext
45835cat >>conftest.$ac_ext <<_ACEOF
45836/* end confdefs.h. */
45837 #include <IOKit/hid/IOHIDLib.h>
45838int
45839main ()
45840{
45841 IOHIDQueueInterface *qi = NULL;
45842 IOHIDCallbackFunction cb = NULL;
45843 qi->setEventCallout(NULL, cb, NULL, NULL);
45844 ;
45845 return 0;
45846}
45847_ACEOF
45848rm -f conftest.$ac_objext
47964710
VS
45849if { (ac_try="$ac_compile"
45850case "(($ac_try" in
45851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45852 *) ac_try_echo=$ac_try;;
45853esac
d589327a 45854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 45855 (eval "$ac_compile") 2>conftest.er1
ee45c548
MW
45856 ac_status=$?
45857 grep -v '^ *+' conftest.er1 >conftest.err
45858 rm -f conftest.er1
45859 cat conftest.err >&5
d589327a 45860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45861 (exit $ac_status); } && {
45862 test -z "$ac_cxx_werror_flag" ||
45863 test ! -s conftest.err
45864 } && test -s conftest.$ac_objext; then
ee45c548 45865 wxUSE_JOYSTICK=yes
a848cd7e 45866
ee45c548 45867else
d589327a 45868 echo "$as_me: failed program was:" >&5
ee45c548
MW
45869sed 's/^/| /' conftest.$ac_ext >&5
45870
47964710 45871
ee45c548 45872fi
47964710
VS
45873
45874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
45875 ac_ext=c
45876ac_cpp='$CPP $CPPFLAGS'
45877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45879ac_compiler_gnu=$ac_cv_c_compiler_gnu
45880
d589327a
VZ
45881 { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45882echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
ee45c548
MW
45883 fi
45884
45885 else
6517fa86 45886 if test "$wxUSE_MGL" != 1; then
1f7e12cc
DE
45887
45888for ac_header in linux/joystick.h
45889do
d589327a
VZ
45890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45891{ echo "$as_me:$LINENO: checking for $ac_header" >&5
45892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47964710 45893if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 45894 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 45895else
ddbd3cd5 45896 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
45897/* confdefs.h. */
45898_ACEOF
45899cat confdefs.h >>conftest.$ac_ext
45900cat >>conftest.$ac_ext <<_ACEOF
45901/* end confdefs.h. */
6e7b8bcb 45902$ac_includes_default
ddbd3cd5 45903
1f7e12cc 45904#include <$ac_header>
a848cd7e
SC
45905_ACEOF
45906rm -f conftest.$ac_objext
47964710
VS
45907if { (ac_try="$ac_compile"
45908case "(($ac_try" in
45909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45910 *) ac_try_echo=$ac_try;;
45911esac
d589327a 45912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 45913 (eval "$ac_compile") 2>conftest.er1
a848cd7e 45914 ac_status=$?
ac1cb8d3
VS
45915 grep -v '^ *+' conftest.er1 >conftest.err
45916 rm -f conftest.er1
45917 cat conftest.err >&5
d589327a 45918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
45919 (exit $ac_status); } && {
45920 test -z "$ac_c_werror_flag" ||
45921 test ! -s conftest.err
45922 } && test -s conftest.$ac_objext; then
1f7e12cc 45923 eval "$as_ac_Header=yes"
a848cd7e 45924else
d589327a 45925 echo "$as_me: failed program was:" >&5
a848cd7e
SC
45926sed 's/^/| /' conftest.$ac_ext >&5
45927
47964710 45928 eval "$as_ac_Header=no"
a848cd7e 45929fi
47964710
VS
45930
45931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45932fi
d589327a
VZ
45933ac_res=`eval echo '${'$as_ac_Header'}'`
45934 { echo "$as_me:$LINENO: result: $ac_res" >&5
45935echo "${ECHO_T}$ac_res" >&6; }
45936if test `eval echo '${'$as_ac_Header'}'` = yes; then
1f7e12cc 45937 cat >>confdefs.h <<_ACEOF
d589327a 45938#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1f7e12cc
DE
45939_ACEOF
45940 wxUSE_JOYSTICK=yes
a848cd7e 45941fi
a848cd7e 45942
1f7e12cc 45943done
a848cd7e 45944
b6814e24 45945 fi
ee45c548 45946 fi
4cb1d3da 45947
ee45c548
MW
45948 if test "$wxUSE_JOYSTICK" = "yes"; then
45949 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45950#define wxUSE_JOYSTICK 1
45951_ACEOF
45952
ee45c548
MW
45953 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45954 else
d589327a
VZ
45955 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45956echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
45957 fi
45958fi
45959
45960
45961
9795e0db
VZ
45962if test "$wxUSE_FONTENUM" = "yes" ; then
45963 cat >>confdefs.h <<\_ACEOF
45964#define wxUSE_FONTENUM 1
45965_ACEOF
45966
45967fi
45968
a848cd7e
SC
45969if test "$wxUSE_FONTMAP" = "yes" ; then
45970 cat >>confdefs.h <<\_ACEOF
45971#define wxUSE_FONTMAP 1
45972_ACEOF
45973
45974fi
45975
45976if test "$wxUSE_UNICODE" = "yes" ; then
45977 cat >>confdefs.h <<\_ACEOF
45978#define wxUSE_UNICODE 1
45979_ACEOF
45980
45981
45982 if test "$USE_WIN32" != 1; then
45983 wxUSE_UNICODE_MSLU=no
45984 fi
45985
45986 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
d589327a
VZ
45987 { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45988echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
a848cd7e 45989if test "${ac_cv_lib_unicows_main+set}" = set; then
d589327a 45990 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
45991else
45992 ac_check_lib_save_LIBS=$LIBS
45993LIBS="-lunicows $LIBS"
45994cat >conftest.$ac_ext <<_ACEOF
45995/* confdefs.h. */
45996_ACEOF
45997cat confdefs.h >>conftest.$ac_ext
45998cat >>conftest.$ac_ext <<_ACEOF
45999/* end confdefs.h. */
46000
46001
46002int
46003main ()
46004{
47964710 46005return main ();
a848cd7e
SC
46006 ;
46007 return 0;
46008}
46009_ACEOF
46010rm -f conftest.$ac_objext conftest$ac_exeext
47964710
VS
46011if { (ac_try="$ac_link"
46012case "(($ac_try" in
46013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46014 *) ac_try_echo=$ac_try;;
46015esac
d589327a 46016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 46017 (eval "$ac_link") 2>conftest.er1
a848cd7e 46018 ac_status=$?
ac1cb8d3
VS
46019 grep -v '^ *+' conftest.er1 >conftest.err
46020 rm -f conftest.er1
46021 cat conftest.err >&5
d589327a 46022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46023 (exit $ac_status); } && {
46024 test -z "$ac_c_werror_flag" ||
46025 test ! -s conftest.err
d589327a
VZ
46026 } && test -s conftest$ac_exeext &&
46027 $as_test_x conftest$ac_exeext; then
a848cd7e
SC
46028 ac_cv_lib_unicows_main=yes
46029else
d589327a 46030 echo "$as_me: failed program was:" >&5
a848cd7e
SC
46031sed 's/^/| /' conftest.$ac_ext >&5
46032
47964710 46033 ac_cv_lib_unicows_main=no
a848cd7e 46034fi
47964710
VS
46035
46036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ac1cb8d3 46037 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
46038LIBS=$ac_check_lib_save_LIBS
46039fi
d589327a
VZ
46040{ echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
46041echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
46042if test $ac_cv_lib_unicows_main = yes; then
a848cd7e
SC
46043
46044 cat >>confdefs.h <<\_ACEOF
46045#define wxUSE_UNICODE_MSLU 1
46046_ACEOF
46047
46048
46049else
46050
d589327a 46051 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
a848cd7e 46052 Applications will only run on Windows NT/2000/XP!" >&5
d589327a 46053echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
a848cd7e
SC
46054 Applications will only run on Windows NT/2000/XP!" >&2;}
46055 wxUSE_UNICODE_MSLU=no
46056
46057fi
46058
46059 fi
46060fi
46061
81727065
VS
46062if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
46063 cat >>confdefs.h <<\_ACEOF
46064#define wxUSE_UNICODE_UTF8 1
46065_ACEOF
46066
111d9948
VS
46067
46068 if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
46069 cat >>confdefs.h <<\_ACEOF
46070#define wxUSE_UTF8_LOCALE_ONLY 1
46071_ACEOF
46072
46073 fi
81727065
VS
46074fi
46075
a848cd7e 46076
a848cd7e
SC
46077if test "$wxUSE_CONSTRAINTS" = "yes"; then
46078 cat >>confdefs.h <<\_ACEOF
46079#define wxUSE_CONSTRAINTS 1
46080_ACEOF
46081
46082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
46083fi
46084
8a7b1113
VZ
46085if test "$wxUSE_MDI" = "yes"; then
46086 cat >>confdefs.h <<\_ACEOF
46087#define wxUSE_MDI 1
46088_ACEOF
46089
46090
46091 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
46092 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46093#define wxUSE_MDI_ARCHITECTURE 1
46094_ACEOF
46095
8a7b1113
VZ
46096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
46097 fi
a848cd7e
SC
46098fi
46099
46100if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
46101 cat >>confdefs.h <<\_ACEOF
46102#define wxUSE_DOC_VIEW_ARCHITECTURE 1
46103_ACEOF
46104
46105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
a848cd7e
SC
46106fi
46107
46108if test "$wxUSE_HELP" = "yes"; then
46109 cat >>confdefs.h <<\_ACEOF
46110#define wxUSE_HELP 1
46111_ACEOF
46112
46113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
46114
46115 if test "$wxUSE_MSW" = 1; then
46116 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
46117 cat >>confdefs.h <<\_ACEOF
46118#define wxUSE_MS_HTML_HELP 1
46119_ACEOF
46120
46121 fi
46122 fi
46123
46124 if test "$wxUSE_WXHTML_HELP" = "yes"; then
46125 if test "$wxUSE_HTML" = "yes"; then
46126 cat >>confdefs.h <<\_ACEOF
46127#define wxUSE_WXHTML_HELP 1
46128_ACEOF
46129
46130 else
d589327a
VZ
46131 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
46132echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
a848cd7e
SC
46133 wxUSE_WXHTML_HELP=no
46134 fi
46135 fi
46136fi
46137
46138if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
c74aaca2 46139 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46140#define wxUSE_PRINTING_ARCHITECTURE 1
46141_ACEOF
46142
a848cd7e
SC
46143 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
46144fi
46145
b0fc907f
VZ
46146if test "$wxUSE_POSTSCRIPT" = "yes" ; then
46147 cat >>confdefs.h <<\_ACEOF
46148#define wxUSE_POSTSCRIPT 1
46149_ACEOF
46150
46151fi
46152
46153cat >>confdefs.h <<\_ACEOF
46154#define wxUSE_AFM_FOR_POSTSCRIPT 1
46155_ACEOF
46156
46157
b0fc907f
VZ
46158if test "$wxUSE_SVG" = "yes"; then
46159 cat >>confdefs.h <<\_ACEOF
46160#define wxUSE_SVG 1
46161_ACEOF
46162
46163fi
a848cd7e
SC
46164
46165
efdf6afe
VZ
46166if test "$wxUSE_METAFILE" = "yes"; then
46167 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
d589327a
VZ
46168 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
46169echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
efdf6afe
VZ
46170 wxUSE_METAFILE=no
46171 fi
46172fi
46173
46174
a848cd7e
SC
46175if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
46176 -o "$wxUSE_CLIPBOARD" = "yes" \
46177 -o "$wxUSE_OLE" = "yes" \
46178 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
d589327a
VZ
46179 { echo "$as_me:$LINENO: checking for ole2.h" >&5
46180echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
6e7b8bcb 46181if test "${ac_cv_header_ole2_h+set}" = set; then
d589327a 46182 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 46183else
6e7b8bcb 46184 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
46185/* confdefs.h. */
46186_ACEOF
46187cat confdefs.h >>conftest.$ac_ext
46188cat >>conftest.$ac_ext <<_ACEOF
46189/* end confdefs.h. */
6e7b8bcb
PC
46190
46191
46192#include <ole2.h>
a848cd7e
SC
46193_ACEOF
46194rm -f conftest.$ac_objext
47964710
VS
46195if { (ac_try="$ac_compile"
46196case "(($ac_try" in
46197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46198 *) ac_try_echo=$ac_try;;
46199esac
d589327a 46200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 46201 (eval "$ac_compile") 2>conftest.er1
a848cd7e 46202 ac_status=$?
ac1cb8d3
VS
46203 grep -v '^ *+' conftest.er1 >conftest.err
46204 rm -f conftest.er1
46205 cat conftest.err >&5
d589327a 46206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46207 (exit $ac_status); } && {
46208 test -z "$ac_c_werror_flag" ||
46209 test ! -s conftest.err
46210 } && test -s conftest.$ac_objext; then
6e7b8bcb 46211 ac_cv_header_ole2_h=yes
a848cd7e 46212else
d589327a 46213 echo "$as_me: failed program was:" >&5
a848cd7e
SC
46214sed 's/^/| /' conftest.$ac_ext >&5
46215
47964710 46216 ac_cv_header_ole2_h=no
a848cd7e 46217fi
47964710
VS
46218
46219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 46220fi
d589327a
VZ
46221{ echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
46222echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
a848cd7e 46223
a848cd7e
SC
46224
46225
46226 if test "$ac_cv_header_ole2_h" = "yes" ; then
46227 if test "$GCC" = yes ; then
d589327a
VZ
46228 { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
46229echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
a848cd7e
SC
46230 cat >conftest.$ac_ext <<_ACEOF
46231/* confdefs.h. */
46232_ACEOF
46233cat confdefs.h >>conftest.$ac_ext
46234cat >>conftest.$ac_ext <<_ACEOF
46235/* end confdefs.h. */
46236#include <windows.h>
46237 #include <ole2.h>
46238int
46239main ()
46240{
46241
46242 ;
46243 return 0;
46244}
46245_ACEOF
46246rm -f conftest.$ac_objext
47964710
VS
46247if { (ac_try="$ac_compile"
46248case "(($ac_try" in
46249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46250 *) ac_try_echo=$ac_try;;
46251esac
d589327a 46252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 46253 (eval "$ac_compile") 2>conftest.er1
a848cd7e 46254 ac_status=$?
ac1cb8d3
VS
46255 grep -v '^ *+' conftest.er1 >conftest.err
46256 rm -f conftest.er1
46257 cat conftest.err >&5
d589327a 46258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
46259 (exit $ac_status); } && {
46260 test -z "$ac_c_werror_flag" ||
46261 test ! -s conftest.err
46262 } && test -s conftest.$ac_objext; then
d589327a
VZ
46263 { echo "$as_me:$LINENO: result: no" >&5
46264echo "${ECHO_T}no" >&6; }
a848cd7e 46265else
d589327a 46266 echo "$as_me: failed program was:" >&5
a848cd7e
SC
46267sed 's/^/| /' conftest.$ac_ext >&5
46268
d589327a
VZ
46269 { echo "$as_me:$LINENO: result: yes" >&5
46270echo "${ECHO_T}yes" >&6; }
5ff751d6 46271 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 46272fi
47964710
VS
46273
46274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46275 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
46276 if test "$wxUSE_OLE" = "yes" ; then
46277 cat >>confdefs.h <<\_ACEOF
46278#define wxUSE_OLE 1
f43426c1
RD
46279_ACEOF
46280
46281 cat >>confdefs.h <<\_ACEOF
46282#define wxUSE_OLE_AUTOMATION 1
46283_ACEOF
46284
46285 cat >>confdefs.h <<\_ACEOF
9c49977b 46286#define wxUSE_ACTIVEX 1
a848cd7e
SC
46287_ACEOF
46288
0b78747f 46289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
46290 fi
46291 fi
46292
46293 if test "$wxUSE_DATAOBJ" = "yes" ; then
46294 cat >>confdefs.h <<\_ACEOF
46295#define wxUSE_DATAOBJ 1
46296_ACEOF
46297
46298 fi
46299 else
d589327a
VZ
46300 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
46301echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
a848cd7e
SC
46302
46303 wxUSE_CLIPBOARD=no
46304 wxUSE_DRAG_AND_DROP=no
46305 wxUSE_DATAOBJ=no
46306 wxUSE_OLE=no
46307 fi
46308
46309 if test "$wxUSE_METAFILE" = "yes"; then
46310 cat >>confdefs.h <<\_ACEOF
46311#define wxUSE_METAFILE 1
46312_ACEOF
46313
46314
46315 cat >>confdefs.h <<\_ACEOF
46316#define wxUSE_ENH_METAFILE 1
46317_ACEOF
46318
46319 fi
46320fi
46321
46322if test "$wxUSE_IPC" = "yes"; then
0b78747f 46323 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
d589327a
VZ
46324 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
46325echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 46326 wxUSE_IPC=no
a848cd7e
SC
46327 fi
46328
0b78747f
MW
46329 if test "$wxUSE_IPC" = "yes"; then
46330 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46331#define wxUSE_IPC 1
46332_ACEOF
46333
0b78747f
MW
46334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46335 fi
a848cd7e
SC
46336fi
46337
eb730a0c 46338if test "$wxUSE_DATAOBJ" = "yes"; then
f321ab7f 46339 if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
d589327a
VZ
46340 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
46341echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
2113bc77
MW
46342 wxUSE_DATAOBJ=no
46343 else
46344 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
46345#define wxUSE_DATAOBJ 1
46346_ACEOF
46347
2113bc77 46348 fi
eb730a0c 46349else
d589327a
VZ
46350 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
46351echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
eb730a0c
JS
46352 wxUSE_CLIPBOARD=no
46353 wxUSE_DRAG_AND_DROP=no
46354fi
46355
a848cd7e 46356if test "$wxUSE_CLIPBOARD" = "yes"; then
f321ab7f 46357 if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
d589327a
VZ
46358 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
46359echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
a848cd7e
SC
46360 wxUSE_CLIPBOARD=no
46361 fi
46362
46363 if test "$wxUSE_CLIPBOARD" = "yes"; then
46364 cat >>confdefs.h <<\_ACEOF
46365#define wxUSE_CLIPBOARD 1
46366_ACEOF
46367
a848cd7e
SC
46368 fi
46369fi
46370
46371if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
46372 if test "$wxUSE_GTK" = 1; then
46373 if test "$WXGTK12" != 1; then
d589327a
VZ
46374 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
46375echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
a848cd7e
SC
46376 wxUSE_DRAG_AND_DROP=no
46377 fi
46378 fi
46379
f321ab7f
VS
46380 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
46381 "$wxUSE_DFB" = 1; then
d589327a
VZ
46382 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
46383echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
a848cd7e
SC
46384 wxUSE_DRAG_AND_DROP=no
46385 fi
46386
46387 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
46388 cat >>confdefs.h <<\_ACEOF
46389#define wxUSE_DRAG_AND_DROP 1
46390_ACEOF
46391
46392 fi
46393
46394fi
46395
46396if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
46397 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
46398fi
46399
6a5a7fba
VZ
46400if test "$wxUSE_CLIPBOARD" = "yes"; then
46401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
46402fi
46403
a848cd7e
SC
46404if test "$wxUSE_SPLINES" = "yes" ; then
46405 cat >>confdefs.h <<\_ACEOF
46406#define wxUSE_SPLINES 1
46407_ACEOF
46408
46409fi
46410
fbe2ca43
SN
46411if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
46412 cat >>confdefs.h <<\_ACEOF
46413#define wxUSE_MOUSEWHEEL 1
46414_ACEOF
46415
46416fi
46417
9b7e0226
VZ
46418if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
46419 cat >>confdefs.h <<\_ACEOF
46420#define wxUSE_UIACTIONSIMULATOR 1
46421_ACEOF
46422
c24309da 46423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
9b7e0226
VZ
46424fi
46425
a848cd7e
SC
46426
46427USES_CONTROLS=0
46428if test "$wxUSE_CONTROLS" = "yes"; then
46429 USES_CONTROLS=1
46430fi
46431
46432if test "$wxUSE_ACCEL" = "yes"; then
46433 cat >>confdefs.h <<\_ACEOF
46434#define wxUSE_ACCEL 1
46435_ACEOF
46436
46437 USES_CONTROLS=1
46438fi
46439
7067783d 46440if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
3ea50042
VZ
46441 cat >>confdefs.h <<\_ACEOF
46442#define wxUSE_ANIMATIONCTRL 1
46443_ACEOF
46444
46445 USES_CONTROLS=1
46446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
46447fi
46448
a848cd7e
SC
46449if test "$wxUSE_BUTTON" = "yes"; then
46450 cat >>confdefs.h <<\_ACEOF
46451#define wxUSE_BUTTON 1
46452_ACEOF
46453
46454 USES_CONTROLS=1
46455fi
46456
46457if test "$wxUSE_BMPBUTTON" = "yes"; then
46458 cat >>confdefs.h <<\_ACEOF
46459#define wxUSE_BMPBUTTON 1
46460_ACEOF
46461
46462 USES_CONTROLS=1
46463fi
46464
46465if test "$wxUSE_CALCTRL" = "yes"; then
46466 cat >>confdefs.h <<\_ACEOF
46467#define wxUSE_CALENDARCTRL 1
46468_ACEOF
46469
46470 USES_CONTROLS=1
46471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
46472fi
46473
46474if test "$wxUSE_CARET" = "yes"; then
46475 cat >>confdefs.h <<\_ACEOF
46476#define wxUSE_CARET 1
46477_ACEOF
46478
46479 USES_CONTROLS=1
46480 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
46481fi
46482
bd915ace
RR
46483if test "$wxUSE_COLLPANE" = "yes"; then
46484 cat >>confdefs.h <<\_ACEOF
46485#define wxUSE_COLLPANE 1
46486_ACEOF
46487
46488 USES_CONTROLS=1
46489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
46490fi
46491
a848cd7e
SC
46492if test "$wxUSE_COMBOBOX" = "yes"; then
46493 cat >>confdefs.h <<\_ACEOF
46494#define wxUSE_COMBOBOX 1
46495_ACEOF
46496
46497 USES_CONTROLS=1
46498fi
46499
a57d600f 46500if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 46501 cat >>confdefs.h <<\_ACEOF
a57d600f 46502#define wxUSE_COMBOCTRL 1
642bcba9
VZ
46503_ACEOF
46504
46505 USES_CONTROLS=1
46506fi
46507
a848cd7e
SC
46508if test "$wxUSE_CHOICE" = "yes"; then
46509 cat >>confdefs.h <<\_ACEOF
46510#define wxUSE_CHOICE 1
46511_ACEOF
46512
46513 USES_CONTROLS=1
46514fi
46515
92bbdbcd
WS
46516if test "$wxUSE_CHOICEBOOK" = "yes"; then
46517 cat >>confdefs.h <<\_ACEOF
46518#define wxUSE_CHOICEBOOK 1
46519_ACEOF
46520
46521 USES_CONTROLS=1
46522fi
46523
a848cd7e
SC
46524if test "$wxUSE_CHECKBOX" = "yes"; then
46525 cat >>confdefs.h <<\_ACEOF
46526#define wxUSE_CHECKBOX 1
46527_ACEOF
46528
46529 USES_CONTROLS=1
46530fi
46531
46532if test "$wxUSE_CHECKLST" = "yes"; then
46533 cat >>confdefs.h <<\_ACEOF
46534#define wxUSE_CHECKLISTBOX 1
46535_ACEOF
46536
46537 USES_CONTROLS=1
a848cd7e
SC
46538fi
46539
e9263684
VZ
46540if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
46541 cat >>confdefs.h <<\_ACEOF
46542#define wxUSE_COLOURPICKERCTRL 1
46543_ACEOF
46544
46545 USES_CONTROLS=1
46546fi
46547
da98e9be
VZ
46548if test "$wxUSE_DATEPICKCTRL" = "yes"; then
46549 cat >>confdefs.h <<\_ACEOF
46550#define wxUSE_DATEPICKCTRL 1
46551_ACEOF
46552
46553 USES_CONTROLS=1
46554fi
46555
e9263684
VZ
46556if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
46557 cat >>confdefs.h <<\_ACEOF
46558#define wxUSE_DIRPICKERCTRL 1
46559_ACEOF
46560
46561 USES_CONTROLS=1
46562fi
46563
0cf3e587
VZ
46564if test "$wxUSE_FILECTRL" = "yes"; then
46565 cat >>confdefs.h <<\_ACEOF
46566#define wxUSE_FILECTRL 1
46567_ACEOF
46568
46569 USES_CONTROLS=1
46570fi
46571
e9263684
VZ
46572if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
46573 cat >>confdefs.h <<\_ACEOF
46574#define wxUSE_FILEPICKERCTRL 1
46575_ACEOF
46576
46577 USES_CONTROLS=1
46578fi
46579
46580if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
46581 cat >>confdefs.h <<\_ACEOF
46582#define wxUSE_FONTPICKERCTRL 1
46583_ACEOF
46584
46585 USES_CONTROLS=1
46586fi
46587
a848cd7e 46588if test "$wxUSE_DISPLAY" = "yes"; then
f321ab7f 46589 if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
d589327a
VZ
46590 { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
46591echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
f321ab7f
VS
46592 wxUSE_DISPLAY=no
46593 else
46594 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46595#define wxUSE_DISPLAY 1
46596_ACEOF
46597
39d66339 46598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
f321ab7f 46599 fi
a848cd7e
SC
46600fi
46601
88bbc332
RR
46602if test "$wxUSE_DETECT_SM" = "yes"; then
46603 cat >>confdefs.h <<\_ACEOF
46604#define wxUSE_DETECT_SM 1
46605_ACEOF
46606
46607fi
46608
a848cd7e
SC
46609if test "$wxUSE_GAUGE" = "yes"; then
46610 cat >>confdefs.h <<\_ACEOF
46611#define wxUSE_GAUGE 1
46612_ACEOF
46613
46614 USES_CONTROLS=1
46615fi
46616
46617if test "$wxUSE_GRID" = "yes"; then
46618 cat >>confdefs.h <<\_ACEOF
46619#define wxUSE_GRID 1
46620_ACEOF
46621
46622 USES_CONTROLS=1
46623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
46624fi
46625
e721a2a2
VZ
46626if test "$wxUSE_HEADERCTRL" = "yes"; then
46627 cat >>confdefs.h <<\_ACEOF
46628#define wxUSE_HEADERCTRL 1
46629_ACEOF
46630
46631 USES_CONTROLS=1
46632fi
46633
6954625c
VZ
46634if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
46635 cat >>confdefs.h <<\_ACEOF
46636#define wxUSE_HYPERLINKCTRL 1
46637_ACEOF
46638
46639 USES_CONTROLS=1
46640fi
46641
95a46303
RR
46642if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
46643 cat >>confdefs.h <<\_ACEOF
46644#define wxUSE_BITMAPCOMBOBOX 1
46645_ACEOF
46646
46647 USES_CONTROLS=1
46648fi
46649
20e34ecc
RR
46650if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
46651 cat >>confdefs.h <<\_ACEOF
46652#define wxUSE_DATAVIEWCTRL 1
46653_ACEOF
46654
46655 USES_CONTROLS=1
46656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
46657fi
46658
a848cd7e
SC
46659if test "$wxUSE_IMAGLIST" = "yes"; then
46660 cat >>confdefs.h <<\_ACEOF
46661#define wxUSE_IMAGLIST 1
46662_ACEOF
46663
46664fi
46665
a92b5dfe
VZ
46666if test "$wxUSE_INFOBAR" = "yes"; then
46667 cat >>confdefs.h <<\_ACEOF
46668#define wxUSE_INFOBAR 1
46669_ACEOF
46670
46671fi
46672
a848cd7e
SC
46673if test "$wxUSE_LISTBOOK" = "yes"; then
46674 cat >>confdefs.h <<\_ACEOF
46675#define wxUSE_LISTBOOK 1
46676_ACEOF
46677
46678 USES_CONTROLS=1
46679fi
46680
46681if test "$wxUSE_LISTBOX" = "yes"; then
46682 cat >>confdefs.h <<\_ACEOF
46683#define wxUSE_LISTBOX 1
46684_ACEOF
46685
46686 USES_CONTROLS=1
46687fi
46688
46689if test "$wxUSE_LISTCTRL" = "yes"; then
46690 if test "$wxUSE_IMAGLIST" = "yes"; then
46691 cat >>confdefs.h <<\_ACEOF
46692#define wxUSE_LISTCTRL 1
46693_ACEOF
46694
46695 USES_CONTROLS=1
46696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
46697 else
d589327a
VZ
46698 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
46699echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
a848cd7e
SC
46700 fi
46701fi
46702
23575150
RR
46703if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
46704 cat >>confdefs.h <<\_ACEOF
46705#define wxUSE_EDITABLELISTBOX 1
46706_ACEOF
46707
46708 USES_CONTROLS=1
23575150
RR
46709fi
46710
a848cd7e
SC
46711if test "$wxUSE_NOTEBOOK" = "yes"; then
46712 cat >>confdefs.h <<\_ACEOF
46713#define wxUSE_NOTEBOOK 1
46714_ACEOF
46715
46716 USES_CONTROLS=1
46717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
46718fi
46719
e36a1739
VZ
46720if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
46721 cat >>confdefs.h <<\_ACEOF
46722#define wxUSE_NOTIFICATION_MESSAGE 1
46723_ACEOF
46724
46725fi
46726
a57d600f 46727if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 46728 cat >>confdefs.h <<\_ACEOF
a57d600f 46729#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
46730_ACEOF
46731
46732 USES_CONTROLS=1
46733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
46734fi
46735
a848cd7e
SC
46736if test "$wxUSE_RADIOBOX" = "yes"; then
46737 cat >>confdefs.h <<\_ACEOF
46738#define wxUSE_RADIOBOX 1
46739_ACEOF
46740
46741 USES_CONTROLS=1
46742fi
46743
46744if test "$wxUSE_RADIOBTN" = "yes"; then
46745 cat >>confdefs.h <<\_ACEOF
46746#define wxUSE_RADIOBTN 1
46747_ACEOF
46748
46749 USES_CONTROLS=1
46750fi
46751
f0bb342f
VZ
46752if test "$wxUSE_REARRANGECTRL" = "yes"; then
46753 cat >>confdefs.h <<\_ACEOF
46754#define wxUSE_REARRANGECTRL 1
46755_ACEOF
46756
46757fi
46758
a848cd7e
SC
46759if test "$wxUSE_SASH" = "yes"; then
46760 cat >>confdefs.h <<\_ACEOF
46761#define wxUSE_SASH 1
46762_ACEOF
46763
46764 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46765fi
46766
46767if test "$wxUSE_SCROLLBAR" = "yes"; then
46768 cat >>confdefs.h <<\_ACEOF
46769#define wxUSE_SCROLLBAR 1
46770_ACEOF
46771
46772 USES_CONTROLS=1
6a5a7fba 46773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
a848cd7e
SC
46774fi
46775
3f7f284d
RD
46776if test "$wxUSE_SEARCHCTRL" = "yes"; then
46777 cat >>confdefs.h <<\_ACEOF
46778#define wxUSE_SEARCHCTRL 1
46779_ACEOF
46780
46781 USES_CONTROLS=1
46782fi
46783
a848cd7e
SC
46784if test "$wxUSE_SLIDER" = "yes"; then
46785 cat >>confdefs.h <<\_ACEOF
46786#define wxUSE_SLIDER 1
46787_ACEOF
46788
46789 USES_CONTROLS=1
46790fi
46791
46792if test "$wxUSE_SPINBTN" = "yes"; then
46793 cat >>confdefs.h <<\_ACEOF
46794#define wxUSE_SPINBTN 1
46795_ACEOF
46796
46797 USES_CONTROLS=1
46798fi
46799
46800if test "$wxUSE_SPINCTRL" = "yes"; then
46801 cat >>confdefs.h <<\_ACEOF
46802#define wxUSE_SPINCTRL 1
46803_ACEOF
46804
46805 USES_CONTROLS=1
46806fi
46807
46808if test "$wxUSE_SPLITTER" = "yes"; then
46809 cat >>confdefs.h <<\_ACEOF
46810#define wxUSE_SPLITTER 1
46811_ACEOF
46812
46813 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46814fi
46815
46816if test "$wxUSE_STATBMP" = "yes"; then
46817 cat >>confdefs.h <<\_ACEOF
46818#define wxUSE_STATBMP 1
46819_ACEOF
46820
46821 USES_CONTROLS=1
46822fi
46823
46824if test "$wxUSE_STATBOX" = "yes"; then
46825 cat >>confdefs.h <<\_ACEOF
46826#define wxUSE_STATBOX 1
46827_ACEOF
46828
46829 USES_CONTROLS=1
46830fi
46831
46832if test "$wxUSE_STATTEXT" = "yes"; then
46833 cat >>confdefs.h <<\_ACEOF
46834#define wxUSE_STATTEXT 1
46835_ACEOF
46836
46837 USES_CONTROLS=1
46838fi
46839
46840if test "$wxUSE_STATLINE" = "yes"; then
46841 cat >>confdefs.h <<\_ACEOF
46842#define wxUSE_STATLINE 1
46843_ACEOF
46844
46845 USES_CONTROLS=1
46846fi
46847
46848if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
46849 cat >>confdefs.h <<\_ACEOF
46850#define wxUSE_NATIVE_STATUSBAR 1
46851_ACEOF
46852
a848cd7e
SC
46853 cat >>confdefs.h <<\_ACEOF
46854#define wxUSE_STATUSBAR 1
46855_ACEOF
46856
46857 USES_CONTROLS=1
46858
46859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46860fi
46861
a848cd7e
SC
46862if test "$wxUSE_TEXTCTRL" = "yes"; then
46863 cat >>confdefs.h <<\_ACEOF
46864#define wxUSE_TEXTCTRL 1
46865_ACEOF
46866
46867 USES_CONTROLS=1
46868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
5cfbef2a
VZ
46869
46870 cat >>confdefs.h <<\_ACEOF
46871#define wxUSE_RICHEDIT 1
46872_ACEOF
46873
46874 cat >>confdefs.h <<\_ACEOF
46875#define wxUSE_RICHEDIT2 1
46876_ACEOF
46877
a848cd7e
SC
46878fi
46879
46880if test "$wxUSE_TOGGLEBTN" = "yes"; then
f10f4c87 46881 if test "$wxUSE_OLD_COCOA" = 1 ; then
d589327a
VZ
46882 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46883echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
a848cd7e
SC
46884 wxUSE_TOGGLEBTN=no
46885 fi
a848cd7e
SC
46886
46887 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46888 cat >>confdefs.h <<\_ACEOF
46889#define wxUSE_TOGGLEBTN 1
46890_ACEOF
46891
46892 USES_CONTROLS=1
46893 fi
46894fi
46895
a848cd7e
SC
46896if test "$wxUSE_TOOLBAR" = "yes"; then
46897 cat >>confdefs.h <<\_ACEOF
46898#define wxUSE_TOOLBAR 1
46899_ACEOF
46900
46901 USES_CONTROLS=1
46902
452b6243
VS
46903 if test "$wxUSE_UNIVERSAL" = "yes"; then
46904 wxUSE_TOOLBAR_NATIVE="no"
46905 else
46906 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
46907 cat >>confdefs.h <<\_ACEOF
46908#define wxUSE_TOOLBAR_NATIVE 1
46909_ACEOF
46910
a848cd7e
SC
46911 fi
46912
46913 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46914fi
46915
46916if test "$wxUSE_TOOLTIPS" = "yes"; then
46917 if test "$wxUSE_MOTIF" = 1; then
d589327a
VZ
46918 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46919echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
a848cd7e
SC
46920 else
46921 if test "$wxUSE_UNIVERSAL" = "yes"; then
d589327a
VZ
46922 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46923echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
a848cd7e
SC
46924 else
46925 cat >>confdefs.h <<\_ACEOF
46926#define wxUSE_TOOLTIPS 1
46927_ACEOF
46928
46929 fi
46930 fi
46931fi
46932
0093c2fc
VZ
46933if test "$wxUSE_TREEBOOK" = "yes"; then
46934 cat >>confdefs.h <<\_ACEOF
46935#define wxUSE_TREEBOOK 1
46936_ACEOF
46937
46938 USES_CONTROLS=1
46939fi
46940
5ec3bc43
JS
46941if test "$wxUSE_TOOLBOOK" = "yes"; then
46942 cat >>confdefs.h <<\_ACEOF
46943#define wxUSE_TOOLBOOK 1
46944_ACEOF
46945
46946 USES_CONTROLS=1
46947fi
46948
a848cd7e
SC
46949if test "$wxUSE_TREECTRL" = "yes"; then
46950 if test "$wxUSE_IMAGLIST" = "yes"; then
46951 cat >>confdefs.h <<\_ACEOF
46952#define wxUSE_TREECTRL 1
46953_ACEOF
46954
46955 USES_CONTROLS=1
46956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46957 else
d589327a
VZ
46958 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46959echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
a848cd7e
SC
46960 fi
46961fi
46962
46963if test "$wxUSE_POPUPWIN" = "yes"; then
f10f4c87 46964 if test "$wxUSE_OLD_COCOA" = 1 ; then
d589327a
VZ
46965 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46966echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
a848cd7e
SC
46967 else
46968 if test "$wxUSE_PM" = 1; then
d589327a
VZ
46969 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46970echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
a848cd7e
SC
46971 else
46972 cat >>confdefs.h <<\_ACEOF
46973#define wxUSE_POPUPWIN 1
46974_ACEOF
46975
0b78747f 46976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
46977
46978 USES_CONTROLS=1
46979 fi
46980 fi
46981fi
46982
0dcd06dd 46983if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
f10f4c87 46984 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
d589327a
VZ
46985 { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46986echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
b843b628
MB
46987 else
46988 cat >>confdefs.h <<\_ACEOF
46989#define wxUSE_DIALUP_MANAGER 1
46990_ACEOF
46991
46992 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46993 fi
46994fi
46995
a848cd7e
SC
46996if test "$wxUSE_TIPWINDOW" = "yes"; then
46997 if test "$wxUSE_PM" = 1; then
d589327a
VZ
46998 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46999echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
a848cd7e
SC
47000 else
47001 cat >>confdefs.h <<\_ACEOF
47002#define wxUSE_TIPWINDOW 1
47003_ACEOF
47004
47005 fi
47006fi
47007
47008if test "$USES_CONTROLS" = 1; then
47009 cat >>confdefs.h <<\_ACEOF
47010#define wxUSE_CONTROLS 1
47011_ACEOF
47012
47013fi
47014
47015
47016if test "$wxUSE_ACCESSIBILITY" = "yes"; then
47017 cat >>confdefs.h <<\_ACEOF
47018#define wxUSE_ACCESSIBILITY 1
47019_ACEOF
47020
47021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
47022fi
47023
47024if test "$wxUSE_DRAGIMAGE" = "yes"; then
47025 cat >>confdefs.h <<\_ACEOF
47026#define wxUSE_DRAGIMAGE 1
47027_ACEOF
47028
47029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
47030fi
47031
47032if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0 47033 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
d589327a
VZ
47034 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
47035echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
07bea8f0
VS
47036 else
47037 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
47038#define wxUSE_EXCEPTIONS 1
47039_ACEOF
47040
07bea8f0
VS
47041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
47042 fi
a848cd7e
SC
47043fi
47044
47045USE_HTML=0
47046if test "$wxUSE_HTML" = "yes"; then
47047 cat >>confdefs.h <<\_ACEOF
47048#define wxUSE_HTML 1
47049_ACEOF
47050
47051 USE_HTML=1
47052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
47053fi
646b6ec1 47054if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 47055 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 47056 old_CPPFLAGS="$CPPFLAGS"
c92ad099 47057 CPPFLAGS="-x objective-c++ $CPPFLAGS"
d589327a
VZ
47058 { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
47059echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
07bea8f0 47060if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
d589327a 47061 echo $ECHO_N "(cached) $ECHO_C" >&6
07bea8f0
VS
47062else
47063 cat >conftest.$ac_ext <<_ACEOF
47064/* confdefs.h. */
47065_ACEOF
47066cat confdefs.h >>conftest.$ac_ext
47067cat >>conftest.$ac_ext <<_ACEOF
47068/* end confdefs.h. */
4fd169bd
VZ
47069
47070 #include <Carbon/Carbon.h>
47071 #include <WebKit/WebKit.h>
47072
07bea8f0
VS
47073
47074#include <WebKit/HIWebView.h>
47075_ACEOF
47076rm -f conftest.$ac_objext
47964710
VS
47077if { (ac_try="$ac_compile"
47078case "(($ac_try" in
47079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47080 *) ac_try_echo=$ac_try;;
47081esac
d589327a 47082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 47083 (eval "$ac_compile") 2>conftest.er1
07bea8f0
VS
47084 ac_status=$?
47085 grep -v '^ *+' conftest.er1 >conftest.err
47086 rm -f conftest.er1
47087 cat conftest.err >&5
d589327a 47088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
47089 (exit $ac_status); } && {
47090 test -z "$ac_c_werror_flag" ||
47091 test ! -s conftest.err
47092 } && test -s conftest.$ac_objext; then
07bea8f0
VS
47093 ac_cv_header_WebKit_HIWebView_h=yes
47094else
d589327a 47095 echo "$as_me: failed program was:" >&5
07bea8f0
VS
47096sed 's/^/| /' conftest.$ac_ext >&5
47097
47964710 47098 ac_cv_header_WebKit_HIWebView_h=no
07bea8f0 47099fi
47964710
VS
47100
47101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
07bea8f0 47102fi
d589327a
VZ
47103{ echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
47104echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
47105if test $ac_cv_header_WebKit_HIWebView_h = yes; then
07bea8f0
VS
47106
47107 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
47108#define wxUSE_WEBKIT 1
47109_ACEOF
47110
07bea8f0
VS
47111 WEBKIT_LINK="-framework WebKit"
47112
47113else
47114
d589327a
VZ
47115 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
47116echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
07bea8f0
VS
47117 wxUSE_WEBKIT=no
47118
646b6ec1
VS
47119fi
47120
07bea8f0
VS
47121
47122 CPPFLAGS="$old_CPPFLAGS"
f10f4c87 47123 elif test "$wxUSE_OLD_COCOA" = 1; then
07bea8f0
VS
47124 cat >>confdefs.h <<\_ACEOF
47125#define wxUSE_WEBKIT 1
47126_ACEOF
47127
47128 else
47129 wxUSE_WEBKIT=no
47130 fi
2ea057f9
SC
47131 if test "$wxUSE_WEBKIT" = "yes"; then
47132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
47133 fi
07bea8f0
VS
47134fi
47135
9a8f0513
VS
47136USE_XRC=0
47137if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7 47138 if test "$wxUSE_XML" != "yes"; then
d589327a
VZ
47139 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
47140echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
d2ebf0b7
VS
47141 wxUSE_XRC=no
47142 else
47143 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
47144#define wxUSE_XRC 1
47145_ACEOF
47146
d2ebf0b7
VS
47147 USE_XRC=1
47148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
47149 fi
9a8f0513 47150fi
07bea8f0 47151
3f60522a
JS
47152USE_AUI=0
47153if test "$wxUSE_AUI" = "yes"; then
47154 cat >>confdefs.h <<\_ACEOF
47155#define wxUSE_AUI 1
47156_ACEOF
47157
47158 USE_AUI=1
47159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
47160fi
47161
1c4293cb
VZ
47162USE_PROPGRID=0
47163if test "$wxUSE_PROPGRID" = "yes"; then
47164 cat >>confdefs.h <<\_ACEOF
47165#define wxUSE_PROPGRID 1
47166_ACEOF
47167
47168 USE_PROPGRID=1
47169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
47170fi
47171
d33ccbe1
VZ
47172USE_RIBBON=0
47173if test "$wxUSE_RIBBON" = "yes"; then
47174 cat >>confdefs.h <<\_ACEOF
47175#define wxUSE_RIBBON 1
47176_ACEOF
47177
47178 USE_RIBBON=1
47179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
47180fi
47181
54429bb3
RD
47182USE_STC=0
47183if test "$wxUSE_STC" = "yes"; then
47184 cat >>confdefs.h <<\_ACEOF
47185#define wxUSE_STC 1
47186_ACEOF
47187
47188 USE_STC=1
47189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
d84e6f50
VZ
47190
47191 # Extract the first word of "python", so it can be a program name with args.
47192set dummy python; ac_word=$2
47193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
47194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47195if test "${ac_cv_path_PYTHON+set}" = set; then
47196 echo $ECHO_N "(cached) $ECHO_C" >&6
47197else
47198 case $PYTHON in
47199 [\\/]* | ?:[\\/]*)
47200 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
47201 ;;
47202 *)
47203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47204for as_dir in $PATH
47205do
47206 IFS=$as_save_IFS
47207 test -z "$as_dir" && as_dir=.
47208 for ac_exec_ext in '' $ac_executable_extensions; do
47209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47210 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
47211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47212 break 2
47213 fi
47214done
47215done
47216IFS=$as_save_IFS
47217
47218 ;;
47219esac
47220fi
47221PYTHON=$ac_cv_path_PYTHON
47222if test -n "$PYTHON"; then
47223 { echo "$as_me:$LINENO: result: $PYTHON" >&5
47224echo "${ECHO_T}$PYTHON" >&6; }
47225else
47226 { echo "$as_me:$LINENO: result: no" >&5
47227echo "${ECHO_T}no" >&6; }
47228fi
47229
47230
47231 if test "x$PYTHON" = "x"; then
47232 COND_PYTHON="#"
47233 fi
47234
54429bb3
RD
47235fi
47236
a848cd7e
SC
47237if test "$wxUSE_MENUS" = "yes"; then
47238 cat >>confdefs.h <<\_ACEOF
47239#define wxUSE_MENUS 1
47240_ACEOF
47241
47242 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
47243fi
47244
47245if test "$wxUSE_METAFILE" = "yes"; then
47246 cat >>confdefs.h <<\_ACEOF
47247#define wxUSE_METAFILE 1
47248_ACEOF
47249
47250fi
47251
47252if test "$wxUSE_MIMETYPE" = "yes"; then
47253 cat >>confdefs.h <<\_ACEOF
47254#define wxUSE_MIMETYPE 1
47255_ACEOF
47256
47257fi
47258
47259if test "$wxUSE_MINIFRAME" = "yes"; then
47260 cat >>confdefs.h <<\_ACEOF
47261#define wxUSE_MINIFRAME 1
47262_ACEOF
47263
a848cd7e
SC
47264fi
47265
47266if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
47267 cat >>confdefs.h <<\_ACEOF
47268#define wxUSE_SYSTEM_OPTIONS 1
47269_ACEOF
47270
4f167b46
VZ
47271fi
47272
47273if test "$wxUSE_TASKBARICON" = "yes"; then
47274 cat >>confdefs.h <<\_ACEOF
47275#define wxUSE_TASKBARICON 1
47276_ACEOF
47277
47278 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
a848cd7e
SC
47279fi
47280
47281
47282if test "$wxUSE_VALIDATORS" = "yes"; then
47283 cat >>confdefs.h <<\_ACEOF
47284#define wxUSE_VALIDATORS 1
47285_ACEOF
47286
47287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
47288fi
47289
47290if test "$wxUSE_PALETTE" = "yes" ; then
f321ab7f 47291 if test "$wxUSE_DFB" = 1; then
d589327a
VZ
47292 { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
47293echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
f321ab7f
VS
47294 wxUSE_PALETTE=no
47295 else
47296 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
47297#define wxUSE_PALETTE 1
47298_ACEOF
47299
f321ab7f 47300 fi
a848cd7e
SC
47301fi
47302
47303if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
47304 LIBS=" -lunicows $LIBS"
47305fi
47306
91dea314
MW
47307USE_RICHTEXT=0
47308if test "$wxUSE_RICHTEXT" = "yes"; then
47309 cat >>confdefs.h <<\_ACEOF
47310#define wxUSE_RICHTEXT 1
47311_ACEOF
47312
47313 USE_RICHTEXT=1
47314 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
47315fi
47316
a848cd7e
SC
47317
47318if test "$wxUSE_IMAGE" = "yes" ; then
47319 cat >>confdefs.h <<\_ACEOF
47320#define wxUSE_IMAGE 1
47321_ACEOF
47322
47323
47324 if test "$wxUSE_GIF" = "yes" ; then
47325 cat >>confdefs.h <<\_ACEOF
47326#define wxUSE_GIF 1
47327_ACEOF
47328
47329 fi
47330
47331 if test "$wxUSE_PCX" = "yes" ; then
47332 cat >>confdefs.h <<\_ACEOF
47333#define wxUSE_PCX 1
47334_ACEOF
47335
47336 fi
47337
bb9e79c0
VZ
47338 if test "$wxUSE_TGA" = "yes" ; then
47339 cat >>confdefs.h <<\_ACEOF
47340#define wxUSE_TGA 1
47341_ACEOF
47342
47343 fi
47344
a848cd7e
SC
47345 if test "$wxUSE_IFF" = "yes" ; then
47346 cat >>confdefs.h <<\_ACEOF
47347#define wxUSE_IFF 1
47348_ACEOF
47349
47350 fi
47351
47352 if test "$wxUSE_PNM" = "yes" ; then
47353 cat >>confdefs.h <<\_ACEOF
47354#define wxUSE_PNM 1
47355_ACEOF
47356
47357 fi
47358
47359 if test "$wxUSE_XPM" = "yes" ; then
47360 cat >>confdefs.h <<\_ACEOF
47361#define wxUSE_XPM 1
47362_ACEOF
47363
47364 fi
47365
47366 if test "$wxUSE_ICO_CUR" = "yes" ; then
47367 cat >>confdefs.h <<\_ACEOF
47368#define wxUSE_ICO_CUR 1
47369_ACEOF
47370
47371 fi
47372fi
47373
47374
319c5ed4
VZ
47375if test "$wxUSE_ABOUTDLG" = "yes"; then
47376 cat >>confdefs.h <<\_ACEOF
47377#define wxUSE_ABOUTDLG 1
47378_ACEOF
47379
47380fi
47381
a848cd7e
SC
47382if test "$wxUSE_CHOICEDLG" = "yes"; then
47383 cat >>confdefs.h <<\_ACEOF
47384#define wxUSE_CHOICEDLG 1
47385_ACEOF
47386
47387fi
47388
47389if test "$wxUSE_COLOURDLG" = "yes"; then
47390 cat >>confdefs.h <<\_ACEOF
47391#define wxUSE_COLOURDLG 1
47392_ACEOF
47393
47394fi
47395
47396if test "$wxUSE_FILEDLG" = "yes"; then
47397 cat >>confdefs.h <<\_ACEOF
47398#define wxUSE_FILEDLG 1
47399_ACEOF
47400
47401fi
47402
47403if test "$wxUSE_FINDREPLDLG" = "yes"; then
47404 cat >>confdefs.h <<\_ACEOF
47405#define wxUSE_FINDREPLDLG 1
47406_ACEOF
47407
47408fi
47409
47410if test "$wxUSE_FONTDLG" = "yes"; then
47411 cat >>confdefs.h <<\_ACEOF
47412#define wxUSE_FONTDLG 1
47413_ACEOF
47414
47415fi
47416
47417if test "$wxUSE_DIRDLG" = "yes"; then
47418 if test "$wxUSE_TREECTRL" != "yes"; then
d589327a
VZ
47419 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
47420echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
a848cd7e
SC
47421 else
47422 cat >>confdefs.h <<\_ACEOF
47423#define wxUSE_DIRDLG 1
47424_ACEOF
47425
47426 fi
47427fi
47428
47429if test "$wxUSE_MSGDLG" = "yes"; then
47430 cat >>confdefs.h <<\_ACEOF
47431#define wxUSE_MSGDLG 1
47432_ACEOF
47433
47434fi
47435
47436if test "$wxUSE_NUMBERDLG" = "yes"; then
47437 cat >>confdefs.h <<\_ACEOF
47438#define wxUSE_NUMBERDLG 1
47439_ACEOF
47440
47441fi
47442
47443if test "$wxUSE_PROGRESSDLG" = "yes"; then
c74aaca2 47444 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
47445#define wxUSE_PROGRESSDLG 1
47446_ACEOF
47447
a848cd7e
SC
47448fi
47449
47450if test "$wxUSE_SPLASH" = "yes"; then
47451 cat >>confdefs.h <<\_ACEOF
47452#define wxUSE_SPLASH 1
47453_ACEOF
47454
2057db16 47455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
47456fi
47457
47458if test "$wxUSE_STARTUP_TIPS" = "yes"; then
c74aaca2 47459 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
47460#define wxUSE_STARTUP_TIPS 1
47461_ACEOF
47462
a848cd7e
SC
47463fi
47464
47465if test "$wxUSE_TEXTDLG" = "yes"; then
47466 cat >>confdefs.h <<\_ACEOF
47467#define wxUSE_TEXTDLG 1
47468_ACEOF
47469
47470fi
47471
47472if test "$wxUSE_WIZARDDLG" = "yes"; then
47473 cat >>confdefs.h <<\_ACEOF
47474#define wxUSE_WIZARDDLG 1
47475_ACEOF
47476
47477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
47478fi
47479
47480
6517fa86
VZ
47481if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
47482 if test "$wxUSE_OWNER_DRAWN" = "yes"; then
47483 cat >>confdefs.h <<\_ACEOF
47484#define wxUSE_OWNER_DRAWN 1
47485_ACEOF
47486
47487 fi
47488fi
47489
47490
5d18e029
VZ
47491if test "$wxUSE_MSW" = 1 ; then
47492
91a5e00c
VS
47493 if test "$wxUSE_DC_CACHEING" = "yes"; then
47494 cat >>confdefs.h <<\_ACEOF
5d18e029
VZ
47495#define wxUSE_DC_CACHEING 1
47496_ACEOF
47497
91a5e00c 47498 fi
61873536 47499
91a5e00c
VS
47500 if test "$wxUSE_DIB" = "yes"; then
47501 cat >>confdefs.h <<\_ACEOF
f77c0fe3 47502#define wxUSE_WXDIB 1
5d18e029
VZ
47503_ACEOF
47504
91a5e00c 47505 fi
5d18e029 47506
91a5e00c
VS
47507 if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
47508 cat >>confdefs.h <<\_ACEOF
47509#define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
f77c0fe3
VZ
47510_ACEOF
47511
91a5e00c 47512 fi
f77c0fe3 47513
91a5e00c
VS
47514 if test "$wxUSE_UXTHEME" = "yes"; then
47515 cat >>confdefs.h <<\_ACEOF
47516#define wxUSE_UXTHEME 1
0295153c
VZ
47517_ACEOF
47518
91a5e00c
VS
47519 fi
47520
0295153c
VZ
47521fi
47522
75a29ef1
VZ
47523if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
47524 cat >>confdefs.h <<\_ACEOF
47525#define wxUSE_AUTOID_MANAGEMENT 1
47526_ACEOF
47527
47528fi
91a5e00c
VS
47529
47530if test "$USE_WIN32" = 1 ; then
47531 if test "$wxUSE_INICONF" = "yes"; then
47532 cat >>confdefs.h <<\_ACEOF
47533#define wxUSE_INICONF 1
508d12b2
VZ
47534_ACEOF
47535
91a5e00c
VS
47536 fi
47537
47538 if test "$wxUSE_REGKEY" = "yes"; then
47539 cat >>confdefs.h <<\_ACEOF
47540#define wxUSE_REGKEY 1
47541_ACEOF
508d12b2 47542
91a5e00c 47543 fi
5d18e029
VZ
47544fi
47545
44710405 47546
84b20415 47547if test "$wxUSE_MAC" = 1; then
a12bd55b 47548 wxUSE_GRAPHICS_CONTEXT="yes"
84b20415 47549fi
5d18e029 47550
64b75e64 47551if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
a12bd55b
VZ
47552 wx_has_graphics=0
47553 if test "$wxUSE_MSW" = 1; then
47554 { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
47555echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
47556if test "${wx_cv_lib_gdiplus+set}" = set; then
47557 echo $ECHO_N "(cached) $ECHO_C" >&6
47558else
47559
47560 ac_ext=cpp
47561ac_cpp='$CXXCPP $CPPFLAGS'
47562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47565
47566 cat >conftest.$ac_ext <<_ACEOF
47567/* confdefs.h. */
64b75e64 47568_ACEOF
a12bd55b
VZ
47569cat confdefs.h >>conftest.$ac_ext
47570cat >>conftest.$ac_ext <<_ACEOF
47571/* end confdefs.h. */
41616c8a 47572#include <windows.h>
3017880e 47573 #include <gdiplus.h>
a12bd55b
VZ
47574int
47575main ()
47576{
64b75e64 47577
a12bd55b
VZ
47578 using namespace Gdiplus;
47579
47580 ;
47581 return 0;
47582}
64b75e64 47583_ACEOF
a12bd55b
VZ
47584rm -f conftest.$ac_objext
47585if { (ac_try="$ac_compile"
47586case "(($ac_try" in
47587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47588 *) ac_try_echo=$ac_try;;
47589esac
47590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47591 (eval "$ac_compile") 2>conftest.er1
47592 ac_status=$?
47593 grep -v '^ *+' conftest.er1 >conftest.err
47594 rm -f conftest.er1
47595 cat conftest.err >&5
47596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47597 (exit $ac_status); } && {
47598 test -z "$ac_cxx_werror_flag" ||
47599 test ! -s conftest.err
47600 } && test -s conftest.$ac_objext; then
47601 wx_cv_lib_gdiplus=yes
47602else
47603 echo "$as_me: failed program was:" >&5
47604sed 's/^/| /' conftest.$ac_ext >&5
47605
47606 wx_cv_lib_gdiplus=no
47607
47608fi
47609
47610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47611 ac_ext=c
47612ac_cpp='$CPP $CPPFLAGS'
47613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47615ac_compiler_gnu=$ac_cv_c_compiler_gnu
64b75e64 47616
a12bd55b
VZ
47617
47618
47619fi
47620{ echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
47621echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
47622 if test "$wx_cv_lib_gdiplus" = "yes"; then
47623 wx_has_graphics=1
47624 fi
47625 elif test "$wxUSE_GTK" = 1; then
64b75e64
RD
47626
47627pkg_failed=no
d589327a
VZ
47628{ echo "$as_me:$LINENO: checking for CAIRO" >&5
47629echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
64b75e64
RD
47630
47631if test -n "$PKG_CONFIG"; then
47632 if test -n "$CAIRO_CFLAGS"; then
47633 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
47634 else
47635 if test -n "$PKG_CONFIG" && \
d589327a 47636 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
64b75e64
RD
47637 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47638 ac_status=$?
d589327a 47639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64b75e64
RD
47640 (exit $ac_status); }; then
47641 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
47642else
47643 pkg_failed=yes
47644fi
47645 fi
47646else
47647 pkg_failed=untried
47648fi
47649if test -n "$PKG_CONFIG"; then
47650 if test -n "$CAIRO_LIBS"; then
47651 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
47652 else
47653 if test -n "$PKG_CONFIG" && \
d589327a 47654 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
64b75e64
RD
47655 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47656 ac_status=$?
d589327a 47657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64b75e64
RD
47658 (exit $ac_status); }; then
47659 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
47660else
47661 pkg_failed=yes
47662fi
47663 fi
47664else
47665 pkg_failed=untried
47666fi
47667
47668
47669
47670if test $pkg_failed = yes; then
47671
47672if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47673 _pkg_short_errors_supported=yes
47674else
47675 _pkg_short_errors_supported=no
47676fi
47677 if test $_pkg_short_errors_supported = yes; then
47678 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
47679 else
47680 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
47681 fi
47682 # Put the nasty error message in config.log where it belongs
47683 echo "$CAIRO_PKG_ERRORS" >&5
47684
a12bd55b
VZ
47685 { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
47686echo "$as_me: WARNING: Cairo library not found" >&2;}
64b75e64 47687
64b75e64 47688elif test $pkg_failed = untried; then
a12bd55b
VZ
47689 { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
47690echo "$as_me: WARNING: Cairo library not found" >&2;}
64b75e64 47691
64b75e64
RD
47692else
47693 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
47694 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
d589327a
VZ
47695 { echo "$as_me:$LINENO: result: yes" >&5
47696echo "${ECHO_T}yes" >&6; }
a12bd55b
VZ
47697 wx_has_graphics=1
47698fi
47699 else
47700 wx_has_graphics=1
47701 fi
47702
47703 if test "$wx_has_graphics" = 1; then
47704 cat >>confdefs.h <<\_ACEOF
64b75e64
RD
47705#define wxUSE_GRAPHICS_CONTEXT 1
47706_ACEOF
47707
a12bd55b
VZ
47708 else
47709 { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
47710echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
47711 fi
64b75e64
RD
47712fi
47713
47714
f10e38c4
VZ
47715USE_MEDIA=0
47716
f03637a2 47717if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
2f6c5bb5
VZ
47718 USE_MEDIA=1
47719
ce756cb0 47720 if test "$wxUSE_GTK" = 1; then
c9a66001 47721 wxUSE_GSTREAMER="no"
ce756cb0 47722
f10e38c4
VZ
47723 GST_VERSION_MAJOR=0
47724 GST_VERSION_MINOR=10
2f6c5bb5 47725 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
47726
47727 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 47728
3ecd9f92 47729pkg_failed=no
d589327a
VZ
47730{ echo "$as_me:$LINENO: checking for GST" >&5
47731echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
ce756cb0 47732
3ecd9f92
MW
47733if test -n "$PKG_CONFIG"; then
47734 if test -n "$GST_CFLAGS"; then
47735 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47736 else
47737 if test -n "$PKG_CONFIG" && \
d589327a 47738 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
3ecd9f92
MW
47739 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47740 ac_status=$?
d589327a 47741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
47742 (exit $ac_status); }; then
47743 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 47744else
3ecd9f92
MW
47745 pkg_failed=yes
47746fi
47747 fi
47748else
47749 pkg_failed=untried
dae87f93 47750fi
dae87f93 47751if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
47752 if test -n "$GST_LIBS"; then
47753 pkg_cv_GST_LIBS="$GST_LIBS"
47754 else
47755 if test -n "$PKG_CONFIG" && \
d589327a 47756 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
3ecd9f92
MW
47757 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47758 ac_status=$?
d589327a 47759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
47760 (exit $ac_status); }; then
47761 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 47762else
3ecd9f92
MW
47763 pkg_failed=yes
47764fi
47765 fi
47766else
47767 pkg_failed=untried
dae87f93
RN
47768fi
47769
dae87f93 47770
2f6c5bb5 47771
3ecd9f92 47772if test $pkg_failed = yes; then
ce756cb0 47773
3ecd9f92
MW
47774if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47775 _pkg_short_errors_supported=yes
47776else
47777 _pkg_short_errors_supported=no
47778fi
47779 if test $_pkg_short_errors_supported = yes; then
47780 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
47781 else
47782 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 47783 fi
3ecd9f92
MW
47784 # Put the nasty error message in config.log where it belongs
47785 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
47786
47787
d589327a
VZ
47788 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47789echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
3ecd9f92 47790 GST_VERSION_MINOR=8
dae87f93 47791
ce756cb0 47792
3ecd9f92 47793elif test $pkg_failed = untried; then
dae87f93 47794
d589327a
VZ
47795 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47796echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 47797 GST_VERSION_MINOR=8
dae87f93 47798
2f6c5bb5 47799
3ecd9f92
MW
47800else
47801 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47802 GST_LIBS=$pkg_cv_GST_LIBS
d589327a
VZ
47803 { echo "$as_me:$LINENO: result: yes" >&5
47804echo "${ECHO_T}yes" >&6; }
3ecd9f92
MW
47805
47806 wxUSE_GSTREAMER="yes"
47807 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 47808
3ecd9f92 47809fi
2f6c5bb5
VZ
47810 else
47811 GST_VERSION_MINOR=8
f10e38c4 47812 fi
dae87f93 47813
2f6c5bb5
VZ
47814 if test $GST_VERSION_MINOR = "8"; then
47815 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 47816
3ecd9f92 47817pkg_failed=no
d589327a
VZ
47818{ echo "$as_me:$LINENO: checking for GST" >&5
47819echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
dae87f93 47820
3ecd9f92
MW
47821if test -n "$PKG_CONFIG"; then
47822 if test -n "$GST_CFLAGS"; then
47823 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47824 else
47825 if test -n "$PKG_CONFIG" && \
d589327a 47826 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
3ecd9f92
MW
47827 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47828 ac_status=$?
d589327a 47829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
47830 (exit $ac_status); }; then
47831 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 47832else
3ecd9f92
MW
47833 pkg_failed=yes
47834fi
47835 fi
47836else
47837 pkg_failed=untried
dae87f93 47838fi
f10e38c4 47839if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
47840 if test -n "$GST_LIBS"; then
47841 pkg_cv_GST_LIBS="$GST_LIBS"
47842 else
47843 if test -n "$PKG_CONFIG" && \
d589327a 47844 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
3ecd9f92
MW
47845 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47846 ac_status=$?
d589327a 47847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3ecd9f92
MW
47848 (exit $ac_status); }; then
47849 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 47850else
3ecd9f92
MW
47851 pkg_failed=yes
47852fi
47853 fi
47854else
47855 pkg_failed=untried
dae87f93
RN
47856fi
47857
ce756cb0 47858
2f6c5bb5 47859
3ecd9f92 47860if test $pkg_failed = yes; then
dae87f93 47861
3ecd9f92
MW
47862if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47863 _pkg_short_errors_supported=yes
47864else
47865 _pkg_short_errors_supported=no
47866fi
47867 if test $_pkg_short_errors_supported = yes; then
47868 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47869 else
47870 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 47871 fi
3ecd9f92
MW
47872 # Put the nasty error message in config.log where it belongs
47873 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
47874
47875
d589327a
VZ
47876 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47877echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 47878
3ecd9f92 47879elif test $pkg_failed = untried; then
ce756cb0 47880
d589327a
VZ
47881 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47882echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 47883
3ecd9f92
MW
47884else
47885 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47886 GST_LIBS=$pkg_cv_GST_LIBS
d589327a
VZ
47887 { echo "$as_me:$LINENO: result: yes" >&5
47888echo "${ECHO_T}yes" >&6; }
3ecd9f92
MW
47889 wxUSE_GSTREAMER="yes"
47890fi
dae87f93 47891 fi
ce756cb0 47892
f10e38c4 47893
dae87f93 47894 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001 47895 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
105a81f3 47896 EXTRALIBS_MEDIA="$GST_LIBS"
c9a66001 47897
dae87f93 47898 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
47899#define wxUSE_GSTREAMER 1
47900_ACEOF
47901
2f6c5bb5
VZ
47902 else
47903 USE_MEDIA=0
ce756cb0
RN
47904 fi
47905 fi
2f6c5bb5
VZ
47906
47907 if test $USE_MEDIA = 1; then
47908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47909 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
47910#define wxUSE_MEDIACTRL 1
47911_ACEOF
47912
f03637a2
FM
47913 else
47914 if test "$wxUSE_MEDIACTRL" = "yes"; then
d589327a
VZ
47915 { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
47916echo "$as_me: error: GStreamer not available" >&2;}
f03637a2
FM
47917 { (exit 1); exit 1; }; }
47918 else
d589327a
VZ
47919 { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
47920echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
f03637a2 47921 fi
2f6c5bb5 47922 fi
ce756cb0
RN
47923fi
47924
47925
6ab6fc6e 47926if test "$cross_compiling" != "no"; then
a848cd7e
SC
47927 OSINFO="\"$host\""
47928else
47929 OSINFO=`uname -s -r -m`
47930 OSINFO="\"$OSINFO\""
47931fi
47932
47933cat >>confdefs.h <<_ACEOF
47934#define WXWIN_OS_DESCRIPTION $OSINFO
47935_ACEOF
47936
47937
47938
47939if test "x$prefix" != "xNONE"; then
47940 wxPREFIX=$prefix
47941else
47942 wxPREFIX=$ac_default_prefix
47943fi
47944
47945cat >>confdefs.h <<_ACEOF
47946#define wxINSTALL_PREFIX "$wxPREFIX"
47947_ACEOF
47948
47949
a848cd7e
SC
47950
47951
bd630206
VZ
47952STD_BASE_LIBS="base"
47953STD_GUI_LIBS=""
47954BUILT_WX_LIBS="base"
1e6b2edf 47955ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
a848cd7e 47956
bd630206
VZ
47957if test "$wxUSE_SOCKETS" = "yes" ; then
47958 STD_BASE_LIBS="net $STD_BASE_LIBS"
47959 BUILT_WX_LIBS="net $BUILT_WX_LIBS"
a848cd7e 47960fi
bd630206
VZ
47961if test "$wxUSE_XML" = "yes" ; then
47962 STD_BASE_LIBS="xml $STD_BASE_LIBS"
47963 BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
54429bb3 47964fi
a848cd7e 47965
bd630206
VZ
47966if test "$wxUSE_GUI" = "yes"; then
47967 STD_GUI_LIBS="adv core"
6534efcf 47968 BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
bd630206
VZ
47969
47970 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47971 STD_GUI_LIBS="qa $STD_GUI_LIBS"
47972 BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
47973 fi
bd630206
VZ
47974 if test "$wxUSE_HTML" = "yes" ; then
47975 STD_GUI_LIBS="html $STD_GUI_LIBS"
47976 BUILT_WX_LIBS="html $BUILT_WX_LIBS"
47977 fi
47978 if test "$wxUSE_MEDIACTRL" = "yes" ; then
47979 BUILT_WX_LIBS="media $BUILT_WX_LIBS"
47980 fi
47981 if test "$wxUSE_OPENGL" = "yes" ; then
47982 BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
47983 fi
47984 if test "$wxUSE_AUI" = "yes" ; then
47985 BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
47986 fi
1c4293cb
VZ
47987 if test "$wxUSE_PROPGRID" = "yes" ; then
47988 BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
47989 fi
d33ccbe1
VZ
47990 if test "$wxUSE_RIBBON" = "yes" ; then
47991 BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
47992 fi
d8a4a85e
VZ
47993 if test "$wxUSE_RICHTEXT" = "yes" ; then
47994 BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
47995 fi
bd630206
VZ
47996 if test "$wxUSE_STC" = "yes" ; then
47997 BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
47998 fi
47999 if test "$wxUSE_XRC" = "yes" ; then
48000 STD_GUI_LIBS="xrc $STD_GUI_LIBS"
48001 BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
48002 fi
a848cd7e
SC
48003fi
48004
48005
48006
48007
48008
a848cd7e 48009
bd630206 48010
d4fbe1d8 48011EXTRA_FRAMEWORKS=
a848cd7e 48012if test "$wxUSE_MAC" = 1 ; then
5dcf30a0 48013 if test "$USE_DARWIN" = 1; then
d4fbe1d8 48014 EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
5dcf30a0 48015 fi
a848cd7e 48016fi
f10f4c87 48017if test "$wxUSE_OLD_COCOA" = 1 ; then
d4fbe1d8 48018 EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
4fc81cbc 48019 if test "$wxUSE_MEDIACTRL" = "yes"; then
d4fbe1d8 48020 EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
4fc81cbc 48021 fi
a848cd7e 48022fi
f10f4c87 48023if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
d4fbe1d8 48024 EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
19b27e78 48025fi
a848cd7e 48026
d4fbe1d8
VZ
48027LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
48028WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
48029
a848cd7e
SC
48030LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
48031
a848cd7e
SC
48032if test "$wxUSE_GUI" = "yes"; then
48033
48034
8bce5cda 48035 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
840b9ff5 48036 erase event exec font image minimal render \
6f58b8f4 48037 shaped svg taborder vscroll widgets wrapsizer"
a848cd7e
SC
48038
48039 if test "$wxUSE_MONOLITHIC" != "yes"; then
48040 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
48041 fi
0b78747f 48042 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
48043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
48044 if test "$wxUSE_UNIVERSAL" != "yes"; then
61aba460 48045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
8bce5cda
MW
48046 fi
48047 fi
48048 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
48049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 48050 fi
a848cd7e
SC
48051else
48052 SAMPLES_SUBDIRS="console"
ac209a0f
VZ
48053 if test "$wxUSE_SOCKETS" = "yes" ; then
48054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
48055 fi
ebe887ed
VZ
48056 if test "$wxUSE_IPC" = "yes" ; then
48057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
48058 fi
a848cd7e
SC
48059fi
48060
48061
48f625bc 48062if test "x$INTELCC" = "xyes" ; then
05622061 48063 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
17a1ebd1
VZ
48064elif test "$GCC" = yes ; then
48065 CWARNINGS="-Wall -Wundef"
48066fi
48067
48f625bc 48068if test "x$INTELCXX" = "xyes" ; then
05622061 48069 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
17a1ebd1 48070elif test "$GXX" = yes ; then
41148443 48071 CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
d589327a
VZ
48072 { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
48073echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
41148443 48074if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
d589327a 48075 echo $ECHO_N "(cached) $ECHO_C" >&6
41148443
VZ
48076else
48077 ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
48078
48079 ac_ext=cpp
48080ac_cpp='$CXXCPP $CPPFLAGS'
48081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48084
48085 ac_save_CXXFLAGS="$CXXFLAGS"
48086for ac_arg in "-pedantic -Werror % -Woverloaded-virtual" "-pedantic % -Woverloaded-virtual %% no, obsolete" #
48087do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
48088 cat >conftest.$ac_ext <<_ACEOF
48089/* confdefs.h. */
48090_ACEOF
48091cat confdefs.h >>conftest.$ac_ext
48092cat >>conftest.$ac_ext <<_ACEOF
48093/* end confdefs.h. */
48094
48095int
48096main ()
48097{
48098return 0;
48099 ;
48100 return 0;
48101}
48102_ACEOF
48103rm -f conftest.$ac_objext
48104if { (ac_try="$ac_compile"
48105case "(($ac_try" in
48106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48107 *) ac_try_echo=$ac_try;;
48108esac
d589327a 48109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41148443
VZ
48110 (eval "$ac_compile") 2>conftest.er1
48111 ac_status=$?
48112 grep -v '^ *+' conftest.er1 >conftest.err
48113 rm -f conftest.er1
48114 cat conftest.err >&5
d589327a 48115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41148443
VZ
48116 (exit $ac_status); } && {
48117 test -z "$ac_cxx_werror_flag" ||
48118 test ! -s conftest.err
48119 } && test -s conftest.$ac_objext; then
48120 ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
48121else
d589327a 48122 echo "$as_me: failed program was:" >&5
41148443
VZ
48123sed 's/^/| /' conftest.$ac_ext >&5
48124
48125
48126fi
48127
48128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48129done
48130 CXXFLAGS="$ac_save_CXXFLAGS"
48131 ac_ext=c
48132ac_cpp='$CPP $CPPFLAGS'
48133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48135ac_compiler_gnu=$ac_cv_c_compiler_gnu
48136
48137
48138fi
d589327a
VZ
48139{ echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
48140echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
41148443
VZ
48141case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
48142 .ok|.ok,*) ;;
48143 .|.no|.no,*) ;;
48144 *)
48145 if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
d589327a 48146 then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
41148443
VZ
48147 (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
48148 ac_status=$?
d589327a 48149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41148443 48150 (exit $ac_status); }
d589327a 48151 else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
41148443
VZ
48152 (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
48153 ac_status=$?
d589327a 48154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41148443
VZ
48155 (exit $ac_status); }
48156 CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
48157 fi
48158 ;;
48159esac
48160
2ad61b03
VZ
48161
48162 if test "$wxUSE_MAC" = 1 ; then
48163 CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
48164 fi
6ebeb4c7 48165fi
a848cd7e 48166
a848cd7e 48167
5ff751d6
VZ
48168WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
48169WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
48170
48171
c92ad099 48172CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
02b05020 48173 -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
48174 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
48175 $CPPFLAGS `
5ff751d6 48176
8aeeb05c 48177C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 48178CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
b1b592ad 48179CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
64d975b2
DE
48180OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
48181OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
5ff751d6
VZ
48182
48183WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
48184
a848cd7e 48185
95986553
DE
48186if test "x$MWCC" = "xyes"; then
48187
48188 CC="$CC -cwd source -I-"
48189 CXX="$CXX -cwd source -I-"
48190fi
48191
a848cd7e 48192
0c3c69fc 48193LIBS=`echo $LIBS`
a848cd7e
SC
48194EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
48195EXTRALIBS_XML="$EXPAT_LINK"
48196EXTRALIBS_HTML="$MSPACK_LINK"
2f8711ed 48197EXTRALIBS_MEDIA="$GST_LIBS"
89b1afb4 48198EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e 48199if test "$wxUSE_GUI" = "yes"; then
2f8711ed 48200 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
48201fi
48202if test "$wxUSE_OPENGL" = "yes"; then
48203 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
48204fi
48205
8aeeb05c 48206LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 48207
5ff751d6 48208WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
48209
48210if test "$wxUSE_REGEX" = "builtin" ; then
74802184 48211 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
48212fi
48213if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 48214 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e 48215fi
a848cd7e 48216if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 48217 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
48218fi
48219if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 48220 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
48221fi
48222if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 48223 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
48224fi
48225if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 48226 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
48227fi
48228
48229for i in $wxconfig_3rdparty ; do
89b1afb4 48230 WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
48231done
48232
48233
48234if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
48235 WXUNIV=1
4353a8df
VZ
48236
48237 case "$wxUNIV_THEMES" in
48238 ''|all)
48239 cat >>confdefs.h <<\_ACEOF
48240#define wxUSE_ALL_THEMES 1
48241_ACEOF
48242
48243 ;;
48244
48245 *)
435a5ad0 48246 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
4353a8df
VZ
48247 cat >>confdefs.h <<_ACEOF
48248#define wxUSE_THEME_$t 1
48249_ACEOF
48250
48251 done
48252 esac
a848cd7e
SC
48253else
48254 WXUNIV=0
48255fi
48256
48257
48258
48259
48260
48261
48262
48263
a848cd7e
SC
48264if test $wxUSE_MONOLITHIC = "yes" ; then
48265 MONOLITHIC=1
48266else
48267 MONOLITHIC=0
48268fi
48269
48270if test $wxUSE_PLUGINS = "yes" ; then
48271 USE_PLUGINS=1
48272else
48273 USE_PLUGINS=0
48274fi
48275
16358932
VZ
48276if test "$wxUSE_DEBUGREPORT" = "yes" ; then
48277 USE_QA=1
48278else
48279 USE_QA=0
48280fi
48281
a848cd7e
SC
48282if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
48283 OFFICIAL_BUILD=1
48284else
48285 OFFICIAL_BUILD=0
48286fi
48287
48288
48289
48290
48291
48292
48293
48294
48295
48296
48297
48298
48299
48300
48301
48302
48303
48304
48305
ceec2216 48306
d1c38808 48307
3565d135 48308
2b850ae1 48309
b1b592ad 48310
2f8711ed 48311
a848cd7e
SC
48312
48313
03773e40 48314TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
a848cd7e
SC
48315
48316
48317
48318
48319
48320
48321
48322
516cf181 48323
2fd71613 48324
4d4ff94c
VZ
48325case "$TOOLKIT" in
48326 GTK)
c2e9ada4 48327 TOOLKIT_DESC="GTK+"
88262190 48328 if test "$WXGTK2" = 1; then
c2e9ada4 48329 TOOLKIT_DESC="$TOOLKIT_DESC 2"
bd8a7646
RR
48330 if test "$wxUSE_GTKPRINT" = "yes" ; then
48331 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
48332 fi
c2e9ada4
VZ
48333 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
48334 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
48335 fi
48336 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
48337 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
48338 fi
48339 if test "$wxUSE_LIBHILDON" = "yes"; then
48340 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
48341 fi
426d19f1
JS
48342 if test "$wxUSE_LIBHILDON2" = "yes"; then
48343 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
48344 fi
c2e9ada4
VZ
48345
48346 if test "$TOOLKIT_EXTRA" != ""; then
48347 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
48348 fi
4d4ff94c 48349 fi
9a8f0513 48350 ;;
4d4ff94c 48351
c2e9ada4
VZ
48352 ?*)
48353 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
48354 ;;
48355
4d4ff94c 48356 *)
c2e9ada4 48357 TOOLKIT_DESC="base only"
9a8f0513 48358 ;;
4d4ff94c 48359esac
a848cd7e 48360
fb00f58d
JS
48361if test "$wxUSE_WINE" = "yes"; then
48362 BAKEFILE_FORCE_PLATFORM=win32
48363fi
48364
a81d5bb6
MW
48365if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
48366then
d589327a
VZ
48367 { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
48368echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
a81d5bb6 48369if test "${wx_cv_gcc_pch_bug+set}" = set; then
d589327a 48370 echo $ECHO_N "(cached) $ECHO_C" >&6
a81d5bb6
MW
48371else
48372
6d952fd7
MW
48373 echo '#include <stdio.h>
48374 const wchar_t test_var[] = L"awidetest";' > conftest.h
48375
48376 echo '#include "conftest.h"
48377 int main()
48378 {
be49c6ec 48379 printf("%ls", test_var);
6d952fd7
MW
48380 return 0;
48381 }' > conftest.cpp
48382
48383 wx_cv_gcc_pch_bug="pch not supported"
a81d5bb6 48384
b2983f42 48385 if $CXX conftest.h >/dev/null 2>&1
a81d5bb6 48386 then
6d952fd7 48387 wx_cv_gcc_pch_bug=
a81d5bb6 48388
6c7f5e56 48389 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
a81d5bb6 48390 then
435a5ad0 48391 if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
6c7f5e56 48392 grep awidetest >/dev/null
6d952fd7
MW
48393 then
48394 wx_cv_gcc_pch_bug=no
48395 else
a81d5bb6 48396 wx_cv_gcc_pch_bug=yes
6d952fd7 48397 fi
a81d5bb6
MW
48398 fi
48399 fi
48400
6c7f5e56 48401 rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
a81d5bb6
MW
48402
48403fi
d589327a
VZ
48404{ echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
48405echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
a81d5bb6
MW
48406
48407 if test "$wx_cv_gcc_pch_bug" = yes; then
48408 bk_use_pch=no
48409 fi
48410fi
48411
9a8f0513 48412
1e9e8aba
DE
48413
48414
5b8deaba
VZ
48415
48416
48417
a848cd7e 48418 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4 48419 if test "x${host}" = "x" ; then
d589327a
VZ
48420 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
48421echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
f10e38c4
VZ
48422 { (exit 1); exit 1; }; }
48423 fi
48424
a848cd7e
SC
48425 BAKEFILE_HOST="${host}"
48426 fi
48427
48428 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
48429
48430 if test -n "$ac_tool_prefix"; then
48431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
48432set dummy ${ac_tool_prefix}ranlib; ac_word=$2
d589327a
VZ
48433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
48434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 48435if test "${ac_cv_prog_RANLIB+set}" = set; then
d589327a 48436 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
48437else
48438 if test -n "$RANLIB"; then
48439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
48440else
48441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48442for as_dir in $PATH
48443do
48444 IFS=$as_save_IFS
48445 test -z "$as_dir" && as_dir=.
48446 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 48447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 48448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
d589327a 48449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
48450 break 2
48451 fi
48452done
48453done
47964710 48454IFS=$as_save_IFS
a848cd7e
SC
48455
48456fi
48457fi
48458RANLIB=$ac_cv_prog_RANLIB
48459if test -n "$RANLIB"; then
d589327a
VZ
48460 { echo "$as_me:$LINENO: result: $RANLIB" >&5
48461echo "${ECHO_T}$RANLIB" >&6; }
a848cd7e 48462else
d589327a
VZ
48463 { echo "$as_me:$LINENO: result: no" >&5
48464echo "${ECHO_T}no" >&6; }
a848cd7e
SC
48465fi
48466
47964710 48467
a848cd7e
SC
48468fi
48469if test -z "$ac_cv_prog_RANLIB"; then
48470 ac_ct_RANLIB=$RANLIB
48471 # Extract the first word of "ranlib", so it can be a program name with args.
48472set dummy ranlib; ac_word=$2
d589327a
VZ
48473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
48474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 48475if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
d589327a 48476 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
48477else
48478 if test -n "$ac_ct_RANLIB"; then
48479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
48480else
48481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48482for as_dir in $PATH
48483do
48484 IFS=$as_save_IFS
48485 test -z "$as_dir" && as_dir=.
48486 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 48487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 48488 ac_cv_prog_ac_ct_RANLIB="ranlib"
d589327a 48489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
48490 break 2
48491 fi
48492done
48493done
47964710 48494IFS=$as_save_IFS
a848cd7e 48495
a848cd7e
SC
48496fi
48497fi
48498ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
48499if test -n "$ac_ct_RANLIB"; then
d589327a
VZ
48500 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
48501echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
a848cd7e 48502else
d589327a
VZ
48503 { echo "$as_me:$LINENO: result: no" >&5
48504echo "${ECHO_T}no" >&6; }
a848cd7e
SC
48505fi
48506
47964710
VS
48507 if test "x$ac_ct_RANLIB" = x; then
48508 RANLIB=":"
48509 else
48510 case $cross_compiling:$ac_tool_warned in
48511yes:)
d589327a
VZ
48512{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48513whose name does not start with the host triplet. If you think this
48514configuration is useful to you, please write to autoconf@gnu.org." >&5
48515echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48516whose name does not start with the host triplet. If you think this
48517configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47964710
VS
48518ac_tool_warned=yes ;;
48519esac
48520 RANLIB=$ac_ct_RANLIB
48521 fi
a848cd7e
SC
48522else
48523 RANLIB="$ac_cv_prog_RANLIB"
48524fi
48525
48526 # Find a good install program. We prefer a C program (faster),
48527# so one script is as good as another. But avoid the broken or
48528# incompatible versions:
48529# SysV /etc/install, /usr/sbin/install
48530# SunOS /usr/etc/install
48531# IRIX /sbin/install
48532# AIX /bin/install
48533# AmigaOS /C/install, which installs bootblocks on floppy discs
48534# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
48535# AFS /usr/afsws/bin/install, which mishandles nonexistent args
48536# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 48537# OS/2's system install, which has a completely different semantic
a848cd7e 48538# ./install, which can be erroneously created by make from ./install.sh.
d589327a
VZ
48539{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
48540echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
a848cd7e
SC
48541if test -z "$INSTALL"; then
48542if test "${ac_cv_path_install+set}" = set; then
d589327a 48543 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
48544else
48545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48546for as_dir in $PATH
48547do
48548 IFS=$as_save_IFS
48549 test -z "$as_dir" && as_dir=.
48550 # Account for people who put trailing slashes in PATH elements.
48551case $as_dir/ in
48552 ./ | .// | /cC/* | \
48553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 48554 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
48555 /usr/ucb/* ) ;;
48556 *)
48557 # OSF1 and SCO ODT 3.0 have their own names for install.
48558 # Don't use installbsd from OSF since it installs stuff as root
48559 # by default.
48560 for ac_prog in ginstall scoinst install; do
48561 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 48562 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ac1cb8d3
VS
48563 if test $ac_prog = install &&
48564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
48565 # AIX install. It has an incompatible calling convention.
48566 :
48567 elif test $ac_prog = install &&
48568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
48569 # program-specific install script used by HP pwplus--don't use.
48570 :
48571 else
d589327a
VZ
48572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
48573 break 3
ac1cb8d3
VS
48574 fi
48575 fi
a848cd7e
SC
48576 done
48577 done
48578 ;;
48579esac
48580done
47964710 48581IFS=$as_save_IFS
a848cd7e
SC
48582
48583
48584fi
48585 if test "${ac_cv_path_install+set}" = set; then
48586 INSTALL=$ac_cv_path_install
48587 else
47964710
VS
48588 # As a last resort, use the slow shell script. Don't cache a
48589 # value for INSTALL within a source directory, because that will
a848cd7e 48590 # break other packages using the cache if that directory is
47964710 48591 # removed, or if the value is a relative name.
a848cd7e
SC
48592 INSTALL=$ac_install_sh
48593 fi
48594fi
d589327a
VZ
48595{ echo "$as_me:$LINENO: result: $INSTALL" >&5
48596echo "${ECHO_T}$INSTALL" >&6; }
a848cd7e
SC
48597
48598# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
48599# It thinks the first close brace ends the variable substitution.
48600test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
48601
48602test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
48603
48604test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
48605
d589327a
VZ
48606 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
48607echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
a848cd7e
SC
48608LN_S=$as_ln_s
48609if test "$LN_S" = "ln -s"; then
d589327a
VZ
48610 { echo "$as_me:$LINENO: result: yes" >&5
48611echo "${ECHO_T}yes" >&6; }
a848cd7e 48612else
d589327a
VZ
48613 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
48614echo "${ECHO_T}no, using $LN_S" >&6; }
a848cd7e
SC
48615fi
48616
48617
d589327a
VZ
48618 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48619echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
48620set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
47964710 48621if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 48622 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
48623else
48624 cat >conftest.make <<\_ACEOF
47964710 48625SHELL = /bin/sh
a848cd7e 48626all:
47964710 48627 @echo '@@@%%%=$(MAKE)=@@@%%%'
a848cd7e
SC
48628_ACEOF
48629# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47964710
VS
48630case `${MAKE-make} -f conftest.make 2>/dev/null` in
48631 *@@@%%%=?*=@@@%%%*)
48632 eval ac_cv_prog_make_${ac_make}_set=yes;;
48633 *)
48634 eval ac_cv_prog_make_${ac_make}_set=no;;
48635esac
a848cd7e
SC
48636rm -f conftest.make
48637fi
47964710 48638if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
d589327a
VZ
48639 { echo "$as_me:$LINENO: result: yes" >&5
48640echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
48641 SET_MAKE=
48642else
d589327a
VZ
48643 { echo "$as_me:$LINENO: result: no" >&5
48644echo "${ECHO_T}no" >&6; }
a848cd7e
SC
48645 SET_MAKE="MAKE=${MAKE-make}"
48646fi
48647
48648
48649
a485900c 48650 if test "x$SUNCXX" = "xyes"; then
a48b6595
VZ
48651 AR=$CXX
48652 AROPTIONS="-xar -o"
48653
48654 elif test "x$SGICC" = "xyes"; then
48655 AR=$CXX
48656 AROPTIONS="-ar -o"
a485900c 48657
a485900c
VZ
48658 else
48659 if test -n "$ac_tool_prefix"; then
a848cd7e
SC
48660 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
48661set dummy ${ac_tool_prefix}ar; ac_word=$2
d589327a
VZ
48662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
48663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 48664if test "${ac_cv_prog_AR+set}" = set; then
d589327a 48665 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
48666else
48667 if test -n "$AR"; then
48668 ac_cv_prog_AR="$AR" # Let the user override the test.
48669else
48670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48671for as_dir in $PATH
48672do
48673 IFS=$as_save_IFS
48674 test -z "$as_dir" && as_dir=.
48675 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 48676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 48677 ac_cv_prog_AR="${ac_tool_prefix}ar"
d589327a 48678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
48679 break 2
48680 fi
48681done
48682done
47964710 48683IFS=$as_save_IFS
a848cd7e
SC
48684
48685fi
48686fi
48687AR=$ac_cv_prog_AR
48688if test -n "$AR"; then
d589327a
VZ
48689 { echo "$as_me:$LINENO: result: $AR" >&5
48690echo "${ECHO_T}$AR" >&6; }
a848cd7e 48691else
d589327a
VZ
48692 { echo "$as_me:$LINENO: result: no" >&5
48693echo "${ECHO_T}no" >&6; }
a848cd7e
SC
48694fi
48695
47964710 48696
a848cd7e
SC
48697fi
48698if test -z "$ac_cv_prog_AR"; then
48699 ac_ct_AR=$AR
48700 # Extract the first word of "ar", so it can be a program name with args.
48701set dummy ar; ac_word=$2
d589327a
VZ
48702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
48703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 48704if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
d589327a 48705 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
48706else
48707 if test -n "$ac_ct_AR"; then
48708 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
48709else
48710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48711for as_dir in $PATH
48712do
48713 IFS=$as_save_IFS
48714 test -z "$as_dir" && as_dir=.
48715 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 48716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 48717 ac_cv_prog_ac_ct_AR="ar"
d589327a 48718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
48719 break 2
48720 fi
48721done
48722done
47964710 48723IFS=$as_save_IFS
a848cd7e 48724
a848cd7e
SC
48725fi
48726fi
48727ac_ct_AR=$ac_cv_prog_ac_ct_AR
48728if test -n "$ac_ct_AR"; then
d589327a
VZ
48729 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
48730echo "${ECHO_T}$ac_ct_AR" >&6; }
a848cd7e 48731else
d589327a
VZ
48732 { echo "$as_me:$LINENO: result: no" >&5
48733echo "${ECHO_T}no" >&6; }
a848cd7e
SC
48734fi
48735
47964710
VS
48736 if test "x$ac_ct_AR" = x; then
48737 AR="ar"
48738 else
48739 case $cross_compiling:$ac_tool_warned in
48740yes:)
d589327a
VZ
48741{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48742whose name does not start with the host triplet. If you think this
48743configuration is useful to you, please write to autoconf@gnu.org." >&5
48744echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48745whose name does not start with the host triplet. If you think this
48746configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47964710
VS
48747ac_tool_warned=yes ;;
48748esac
48749 AR=$ac_ct_AR
48750 fi
a848cd7e
SC
48751else
48752 AR="$ac_cv_prog_AR"
48753fi
48754
a485900c
VZ
48755 AROPTIONS=rcu
48756 fi
48757
48758
a848cd7e
SC
48759 if test -n "$ac_tool_prefix"; then
48760 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
48761set dummy ${ac_tool_prefix}strip; ac_word=$2
d589327a
VZ
48762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
48763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 48764if test "${ac_cv_prog_STRIP+set}" = set; then
d589327a 48765 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
48766else
48767 if test -n "$STRIP"; then
48768 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
48769else
48770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48771for as_dir in $PATH
48772do
48773 IFS=$as_save_IFS
48774 test -z "$as_dir" && as_dir=.
48775 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 48776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 48777 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
d589327a 48778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
48779 break 2
48780 fi
48781done
48782done
47964710 48783IFS=$as_save_IFS
a848cd7e
SC
48784
48785fi
48786fi
48787STRIP=$ac_cv_prog_STRIP
48788if test -n "$STRIP"; then
d589327a
VZ
48789 { echo "$as_me:$LINENO: result: $STRIP" >&5
48790echo "${ECHO_T}$STRIP" >&6; }
a848cd7e 48791else
d589327a
VZ
48792 { echo "$as_me:$LINENO: result: no" >&5
48793echo "${ECHO_T}no" >&6; }
a848cd7e
SC
48794fi
48795
47964710 48796
a848cd7e
SC
48797fi
48798if test -z "$ac_cv_prog_STRIP"; then
48799 ac_ct_STRIP=$STRIP
48800 # Extract the first word of "strip", so it can be a program name with args.
48801set dummy strip; ac_word=$2
d589327a
VZ
48802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
48803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 48804if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
d589327a 48805 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
48806else
48807 if test -n "$ac_ct_STRIP"; then
48808 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
48809else
48810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48811for as_dir in $PATH
48812do
48813 IFS=$as_save_IFS
48814 test -z "$as_dir" && as_dir=.
48815 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 48816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 48817 ac_cv_prog_ac_ct_STRIP="strip"
d589327a 48818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
48819 break 2
48820 fi
48821done
48822done
47964710 48823IFS=$as_save_IFS
a848cd7e 48824
a848cd7e
SC
48825fi
48826fi
48827ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
48828if test -n "$ac_ct_STRIP"; then
d589327a
VZ
48829 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
48830echo "${ECHO_T}$ac_ct_STRIP" >&6; }
a848cd7e 48831else
d589327a
VZ
48832 { echo "$as_me:$LINENO: result: no" >&5
48833echo "${ECHO_T}no" >&6; }
a848cd7e
SC
48834fi
48835
47964710
VS
48836 if test "x$ac_ct_STRIP" = x; then
48837 STRIP=":"
48838 else
48839 case $cross_compiling:$ac_tool_warned in
48840yes:)
d589327a
VZ
48841{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48842whose name does not start with the host triplet. If you think this
48843configuration is useful to you, please write to autoconf@gnu.org." >&5
48844echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48845whose name does not start with the host triplet. If you think this
48846configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47964710
VS
48847ac_tool_warned=yes ;;
48848esac
48849 STRIP=$ac_ct_STRIP
48850 fi
a848cd7e
SC
48851else
48852 STRIP="$ac_cv_prog_STRIP"
48853fi
48854
48855 if test -n "$ac_tool_prefix"; then
48856 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
48857set dummy ${ac_tool_prefix}nm; ac_word=$2
d589327a
VZ
48858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
48859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 48860if test "${ac_cv_prog_NM+set}" = set; then
d589327a 48861 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
48862else
48863 if test -n "$NM"; then
48864 ac_cv_prog_NM="$NM" # Let the user override the test.
48865else
48866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48867for as_dir in $PATH
48868do
48869 IFS=$as_save_IFS
48870 test -z "$as_dir" && as_dir=.
48871 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 48872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 48873 ac_cv_prog_NM="${ac_tool_prefix}nm"
d589327a 48874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
48875 break 2
48876 fi
48877done
48878done
47964710 48879IFS=$as_save_IFS
a848cd7e
SC
48880
48881fi
48882fi
48883NM=$ac_cv_prog_NM
48884if test -n "$NM"; then
d589327a
VZ
48885 { echo "$as_me:$LINENO: result: $NM" >&5
48886echo "${ECHO_T}$NM" >&6; }
a848cd7e 48887else
d589327a
VZ
48888 { echo "$as_me:$LINENO: result: no" >&5
48889echo "${ECHO_T}no" >&6; }
a848cd7e
SC
48890fi
48891
47964710 48892
a848cd7e
SC
48893fi
48894if test -z "$ac_cv_prog_NM"; then
48895 ac_ct_NM=$NM
48896 # Extract the first word of "nm", so it can be a program name with args.
48897set dummy nm; ac_word=$2
d589327a
VZ
48898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
48899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 48900if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
d589327a 48901 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
48902else
48903 if test -n "$ac_ct_NM"; then
48904 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
48905else
48906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48907for as_dir in $PATH
48908do
48909 IFS=$as_save_IFS
48910 test -z "$as_dir" && as_dir=.
48911 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 48912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 48913 ac_cv_prog_ac_ct_NM="nm"
d589327a 48914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
48915 break 2
48916 fi
48917done
48918done
47964710 48919IFS=$as_save_IFS
a848cd7e 48920
a848cd7e
SC
48921fi
48922fi
48923ac_ct_NM=$ac_cv_prog_ac_ct_NM
48924if test -n "$ac_ct_NM"; then
d589327a
VZ
48925 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
48926echo "${ECHO_T}$ac_ct_NM" >&6; }
a848cd7e 48927else
d589327a
VZ
48928 { echo "$as_me:$LINENO: result: no" >&5
48929echo "${ECHO_T}no" >&6; }
a848cd7e
SC
48930fi
48931
47964710
VS
48932 if test "x$ac_ct_NM" = x; then
48933 NM=":"
48934 else
48935 case $cross_compiling:$ac_tool_warned in
48936yes:)
d589327a
VZ
48937{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48938whose name does not start with the host triplet. If you think this
48939configuration is useful to you, please write to autoconf@gnu.org." >&5
48940echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48941whose name does not start with the host triplet. If you think this
48942configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47964710
VS
48943ac_tool_warned=yes ;;
48944esac
48945 NM=$ac_ct_NM
48946 fi
a848cd7e
SC
48947else
48948 NM="$ac_cv_prog_NM"
48949fi
48950
48951
d589327a
VZ
48952 { echo "$as_me:$LINENO: checking for command to install directories" >&5
48953echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
5b8deaba
VZ
48954 INSTALL_TEST_DIR=acbftest$$
48955 $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
48956 if test $? = 0 -a -d $INSTALL_TEST_DIR; then
48957 rmdir $INSTALL_TEST_DIR
48958 INSTALL_DIR='$(INSTALL) -d'
d589327a
VZ
48959 { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
48960echo "${ECHO_T}$INSTALL -d" >&6; }
5b8deaba
VZ
48961 else
48962 INSTALL_DIR="mkdir -p"
d589327a
VZ
48963 { echo "$as_me:$LINENO: result: mkdir -p" >&5
48964echo "${ECHO_T}mkdir -p" >&6; }
5b8deaba 48965 fi
a848cd7e
SC
48966
48967
48968 LDFLAGS_GUI=
48969 case ${BAKEFILE_HOST} in
48970 *-*-cygwin* | *-*-mingw32* )
48971 LDFLAGS_GUI="-mwindows"
48972 esac
48973
48974
48975 fi
48976
d589327a
VZ
48977 { echo "$as_me:$LINENO: checking if make is GNU make" >&5
48978echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
a848cd7e 48979if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
d589327a 48980 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
48981else
48982
48983 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
48984 egrep -s GNU > /dev/null); then
48985 bakefile_cv_prog_makeisgnu="yes"
48986 else
48987 bakefile_cv_prog_makeisgnu="no"
48988 fi
48989
48990fi
d589327a
VZ
48991{ echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
48992echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
a848cd7e
SC
48993
48994 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
48995 IF_GNU_MAKE=""
48996 else
48997 IF_GNU_MAKE="#"
48998 fi
48999
49000
49001
49002 PLATFORM_UNIX=0
49003 PLATFORM_WIN32=0
49004 PLATFORM_MSDOS=0
49005 PLATFORM_MAC=0
1e9e8aba 49006 PLATFORM_MACOS=0
a848cd7e
SC
49007 PLATFORM_MACOSX=0
49008 PLATFORM_OS2=0
1e9e8aba 49009 PLATFORM_BEOS=0
a848cd7e
SC
49010
49011 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
49012 case "${BAKEFILE_HOST}" in
810b94f0 49013 *-*-mingw32* )
a848cd7e
SC
49014 PLATFORM_WIN32=1
49015 ;;
49016 *-pc-msdosdjgpp )
49017 PLATFORM_MSDOS=1
49018 ;;
49019 *-pc-os2_emx | *-pc-os2-emx )
49020 PLATFORM_OS2=1
49021 ;;
47bd5406 49022 *-*-darwin* )
a848cd7e
SC
49023 PLATFORM_MAC=1
49024 PLATFORM_MACOSX=1
49025 ;;
1e9e8aba
DE
49026 *-*-beos* )
49027 PLATFORM_BEOS=1
49028 ;;
49029 powerpc-apple-macos* )
49030 PLATFORM_MAC=1
49031 PLATFORM_MACOS=1
49032 ;;
a848cd7e
SC
49033 * )
49034 PLATFORM_UNIX=1
49035 ;;
49036 esac
49037 else
49038 case "$BAKEFILE_FORCE_PLATFORM" in
49039 win32 )
49040 PLATFORM_WIN32=1
49041 ;;
49042 msdos )
49043 PLATFORM_MSDOS=1
49044 ;;
49045 os2 )
49046 PLATFORM_OS2=1
49047 ;;
49048 darwin )
49049 PLATFORM_MAC=1
49050 PLATFORM_MACOSX=1
49051 ;;
49052 unix )
49053 PLATFORM_UNIX=1
49054 ;;
1e9e8aba
DE
49055 beos )
49056 PLATFORM_BEOS=1
49057 ;;
a848cd7e 49058 * )
fcc9ca7f
KO
49059 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
49060echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
49061 { (exit 1); exit 1; }; }
49062 ;;
a848cd7e
SC
49063 esac
49064 fi
49065
49066
49067
49068
49069
49070
49071
49072
49073
1e9e8aba
DE
49074
49075
47964710 49076 # Check whether --enable-omf was given.
a848cd7e 49077if test "${enable_omf+set}" = set; then
47964710
VS
49078 enableval=$enable_omf; bk_os2_use_omf="$enableval"
49079fi
49080
a848cd7e
SC
49081
49082 case "${BAKEFILE_HOST}" in
49083 *-*-darwin* )
47bd5406
VZ
49084 if test "x$GCC" = "xyes"; then
49085 CFLAGS="$CFLAGS -fno-common"
49086 CXXFLAGS="$CXXFLAGS -fno-common"
49087 fi
49088 if test "x$XLCC" = "xyes"; then
49089 CFLAGS="$CFLAGS -qnocommon"
49090 CXXFLAGS="$CXXFLAGS -qnocommon"
49091 fi
a848cd7e
SC
49092 ;;
49093
49094 *-pc-os2_emx | *-pc-os2-emx )
49095 if test "x$bk_os2_use_omf" = "xyes" ; then
49096 AR=emxomfar
49097 RANLIB=:
49098 LDFLAGS="-Zomf $LDFLAGS"
49099 CFLAGS="-Zomf $CFLAGS"
49100 CXXFLAGS="-Zomf $CXXFLAGS"
49101 OS2_LIBEXT="lib"
49102 else
49103 OS2_LIBEXT="a"
49104 fi
49105 ;;
1e9e8aba
DE
49106
49107 i*86-*-beos* )
49108 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
49109 ;;
a848cd7e
SC
49110 esac
49111
49112
49113 SO_SUFFIX="so"
49114 SO_SUFFIX_MODULE="so"
49115 EXEEXT=""
49116 LIBPREFIX="lib"
49117 LIBEXT=".a"
49118 DLLPREFIX="lib"
49119 DLLPREFIX_MODULE=""
49120 DLLIMP_SUFFIX=""
810b94f0 49121 dlldir="$libdir"
a848cd7e
SC
49122
49123 case "${BAKEFILE_HOST}" in
41148443
VZ
49124 ia64-hp-hpux* )
49125 ;;
a848cd7e
SC
49126 *-hp-hpux* )
49127 SO_SUFFIX="sl"
49128 SO_SUFFIX_MODULE="sl"
49129 ;;
49130 *-*-aix* )
49131 SO_SUFFIX="a"
49132 SO_SUFFIX_MODULE="a"
49133 ;;
810b94f0
MW
49134 *-*-cygwin* )
49135 SO_SUFFIX="dll"
49136 SO_SUFFIX_MODULE="dll"
49137 DLLIMP_SUFFIX="dll.a"
49138 EXEEXT=".exe"
49139 DLLPREFIX="cyg"
49140 dlldir="$bindir"
49141 ;;
49142 *-*-mingw32* )
a848cd7e
SC
49143 SO_SUFFIX="dll"
49144 SO_SUFFIX_MODULE="dll"
49145 DLLIMP_SUFFIX="dll.a"
49146 EXEEXT=".exe"
49147 DLLPREFIX=""
810b94f0 49148 dlldir="$bindir"
a848cd7e
SC
49149 ;;
49150 *-pc-msdosdjgpp )
49151 EXEEXT=".exe"
49152 DLLPREFIX=""
810b94f0 49153 dlldir="$bindir"
a848cd7e
SC
49154 ;;
49155 *-pc-os2_emx | *-pc-os2-emx )
49156 SO_SUFFIX="dll"
49157 SO_SUFFIX_MODULE="dll"
49158 DLLIMP_SUFFIX=$OS2_LIBEXT
49159 EXEEXT=".exe"
49160 DLLPREFIX=""
49161 LIBPREFIX=""
49162 LIBEXT=".$OS2_LIBEXT"
810b94f0 49163 dlldir="$bindir"
a848cd7e 49164 ;;
47bd5406 49165 *-*-darwin* )
a848cd7e
SC
49166 SO_SUFFIX="dylib"
49167 SO_SUFFIX_MODULE="bundle"
49168 ;;
49169 esac
49170
49171 if test "x$DLLIMP_SUFFIX" = "x" ; then
49172 DLLIMP_SUFFIX="$SO_SUFFIX"
49173 fi
49174
49175
49176
49177
49178
49179
49180
49181
49182
49183
49184
810b94f0 49185
1e9e8aba
DE
49186 PIC_FLAG=""
49187 if test "x$GCC" = "xyes"; then
a848cd7e
SC
49188 PIC_FLAG="-fPIC"
49189 fi
49190
1e9e8aba
DE
49191 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
49192 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 49193 WINDOWS_IMPLIB=0
1e9e8aba 49194
a848cd7e
SC
49195 case "${BAKEFILE_HOST}" in
49196 *-hp-hpux* )
1e9e8aba 49197 if test "x$GCC" != "xyes"; then
a848cd7e
SC
49198 LDFLAGS="$LDFLAGS -L/usr/lib"
49199
49200 SHARED_LD_CC="${CC} -b -o"
49201 SHARED_LD_CXX="${CXX} -b -o"
49202 PIC_FLAG="+Z"
49203 fi
49204 ;;
49205
49206 *-*-linux* )
05622061 49207 if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
43a7c679
VZ
49208 PIC_FLAG="-KPIC"
49209 elif test "x$SUNCXX" = "xyes"; then
49210 SHARED_LD_CC="${CC} -G -o"
49211 SHARED_LD_CXX="${CXX} -G -o"
49212 PIC_FLAG="-KPIC"
a848cd7e
SC
49213 fi
49214 ;;
49215
49216 *-*-solaris2* )
43a7c679 49217 if test "x$SUNCXX" = xyes ; then
a848cd7e
SC
49218 SHARED_LD_CC="${CC} -G -o"
49219 SHARED_LD_CXX="${CXX} -G -o"
49220 PIC_FLAG="-KPIC"
49221 fi
49222 ;;
49223
49224 *-*-darwin* )
49225
473276a9
VS
49226D='$'
49227cat <<EOF >shared-ld-sh
a848cd7e
SC
49228#!/bin/sh
49229#-----------------------------------------------------------------------------
49230#-- Name: distrib/mac/shared-ld-sh
49231#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
49232#-- Author: Gilles Depeyrot
49233#-- Copyright: (c) 2002 Gilles Depeyrot
49234#-- Licence: any use permitted
49235#-----------------------------------------------------------------------------
49236
49237verbose=0
49238args=""
49239objects=""
49240linking_flag="-dynamiclib"
810b94f0 49241ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 49242
5b8deaba
VZ
49243if test "x${D}CXX" = "x"; then
49244 CXX="c++"
49245fi
49246
473276a9
VS
49247while test ${D}# -gt 0; do
49248 case ${D}1 in
a848cd7e
SC
49249
49250 -v)
49251 verbose=1
49252 ;;
49253
49254 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
49255 # collect these options and values
473276a9 49256 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
49257 shift
49258 ;;
49259
5b8deaba
VZ
49260 -arch|-isysroot)
49261 # collect these options and values
49262 ldargs="${D}{ldargs} ${D}1 ${D}2"
49263 shift
49264 ;;
49265
810b94f0
MW
49266 -s|-Wl,*)
49267 # collect these load args
49268 ldargs="${D}{ldargs} ${D}1"
2113bc77 49269 ;;
810b94f0
MW
49270
49271 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 49272 # collect these options
473276a9 49273 args="${D}{args} ${D}1"
a848cd7e
SC
49274 ;;
49275
49276 -dynamiclib|-bundle)
473276a9 49277 linking_flag="${D}1"
a848cd7e
SC
49278 ;;
49279
49280 -*)
473276a9 49281 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
49282 exit 1
49283 ;;
49284
49285 *.o | *.a | *.dylib)
49286 # collect object files
473276a9 49287 objects="${D}{objects} ${D}1"
a848cd7e
SC
49288 ;;
49289
49290 *)
473276a9 49291 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
49292 exit 1
49293 ;;
49294
49295 esac
49296 shift
49297done
49298
810b94f0
MW
49299status=0
49300
a848cd7e
SC
49301#
49302# Link one module containing all the others
49303#
473276a9 49304if test ${D}{verbose} = 1; then
5b8deaba 49305 echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 49306fi
5b8deaba 49307${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 49308status=${D}?
a848cd7e
SC
49309
49310#
810b94f0
MW
49311# Link the shared library from the single module created, but only if the
49312# previous command didn't fail:
a848cd7e 49313#
810b94f0
MW
49314if test ${D}{status} = 0; then
49315 if test ${D}{verbose} = 1; then
5b8deaba 49316 echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
810b94f0 49317 fi
5b8deaba 49318 ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
810b94f0 49319 status=${D}?
a848cd7e
SC
49320fi
49321
49322#
49323# Remove intermediate module
49324#
473276a9 49325rm -f master.${D}${D}.o
a848cd7e 49326
810b94f0 49327exit ${D}status
a848cd7e 49328EOF
473276a9 49329
583d6b4b
VZ
49330 chmod +x shared-ld-sh
49331
49332 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
78808897 49333 SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
583d6b4b
VZ
49334
49335
d589327a
VZ
49336 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
49337echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
583d6b4b 49338if test "${bakefile_cv_gcc31+set}" = set; then
d589327a 49339 echo $ECHO_N "(cached) $ECHO_C" >&6
583d6b4b
VZ
49340else
49341
49342 cat >conftest.$ac_ext <<_ACEOF
49343/* confdefs.h. */
49344_ACEOF
49345cat confdefs.h >>conftest.$ac_ext
49346cat >>conftest.$ac_ext <<_ACEOF
49347/* end confdefs.h. */
49348
49349int
49350main ()
49351{
49352
49353 #if (__GNUC__ < 3) || \
49354 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 49355 This is old gcc
583d6b4b 49356 #endif
a848cd7e 49357
583d6b4b
VZ
49358 ;
49359 return 0;
49360}
49361_ACEOF
49362rm -f conftest.$ac_objext
47964710
VS
49363if { (ac_try="$ac_compile"
49364case "(($ac_try" in
49365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49366 *) ac_try_echo=$ac_try;;
49367esac
d589327a 49368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 49369 (eval "$ac_compile") 2>conftest.er1
583d6b4b
VZ
49370 ac_status=$?
49371 grep -v '^ *+' conftest.er1 >conftest.err
49372 rm -f conftest.er1
49373 cat conftest.err >&5
d589327a 49374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964710
VS
49375 (exit $ac_status); } && {
49376 test -z "$ac_c_werror_flag" ||
49377 test ! -s conftest.err
49378 } && test -s conftest.$ac_objext; then
583d6b4b
VZ
49379
49380 bakefile_cv_gcc31=yes
49381
49382else
d589327a 49383 echo "$as_me: failed program was:" >&5
583d6b4b
VZ
49384sed 's/^/| /' conftest.$ac_ext >&5
49385
49386
49387 bakefile_cv_gcc31=no
49388
49389
49390fi
47964710
VS
49391
49392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
583d6b4b
VZ
49393
49394fi
d589327a
VZ
49395{ echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
49396echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
583d6b4b 49397 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 49398 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 49399 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
49400 else
49401 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 49402 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
49403 fi
49404
47bd5406
VZ
49405 if test "x$GCC" == "xyes"; then
49406 PIC_FLAG="-dynamic -fPIC"
49407 fi
49408 if test "x$XLCC" = "xyes"; then
49409 PIC_FLAG="-dynamic -DPIC"
49410 fi
a848cd7e
SC
49411 ;;
49412
49413 *-*-aix* )
f6b50c59 49414 if test "x$GCC" = "xyes"; then
583d6b4b 49415 PIC_FLAG=""
f6b50c59 49416
583d6b4b
VZ
49417 case "${BAKEFILE_HOST}" in
49418 *-*-aix5* )
49419 LD_EXPFULL="-Wl,-bexpfull"
49420 ;;
49421 esac
f6b50c59 49422
583d6b4b
VZ
49423 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
49424 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
49425 else
49426 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e 49427set dummy makeC++SharedLib; ac_word=$2
d589327a
VZ
49428{ echo "$as_me:$LINENO: checking for $ac_word" >&5
49429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 49430if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
d589327a 49431 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
49432else
49433 if test -n "$AIX_CXX_LD"; then
49434 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
49435else
49436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49437for as_dir in $PATH
49438do
49439 IFS=$as_save_IFS
49440 test -z "$as_dir" && as_dir=.
49441 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 49442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 49443 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
d589327a 49444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
49445 break 2
49446 fi
49447done
49448done
47964710 49449IFS=$as_save_IFS
a848cd7e
SC
49450
49451 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
49452fi
49453fi
49454AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
49455if test -n "$AIX_CXX_LD"; then
d589327a
VZ
49456 { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
49457echo "${ECHO_T}$AIX_CXX_LD" >&6; }
a848cd7e 49458else
d589327a
VZ
49459 { echo "$as_me:$LINENO: result: no" >&5
49460echo "${ECHO_T}no" >&6; }
a848cd7e
SC
49461fi
49462
47964710 49463
f6b50c59 49464 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
49465 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
49466 fi
49467 ;;
49468
49469 *-*-beos* )
1e9e8aba
DE
49470 SHARED_LD_CC="${LD} -nostart -o"
49471 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
49472 ;;
49473
49474 *-*-irix* )
49475 if test "x$GCC" != "xyes"; then
49476 PIC_FLAG="-KPIC"
49477 fi
49478 ;;
49479
49480 *-*-cygwin* | *-*-mingw32* )
49481 PIC_FLAG=""
1e9e8aba
DE
49482 SHARED_LD_CC="\$(CC) -shared -o"
49483 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 49484 WINDOWS_IMPLIB=1
a848cd7e
SC
49485 ;;
49486
49487 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
49488 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49489 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 49490 PIC_FLAG=""
473276a9
VS
49491
49492D='$'
49493cat <<EOF >dllar.sh
49494#!/bin/sh
49495#
49496# dllar - a tool to build both a .dll and an .a file
49497# from a set of object (.o) files for EMX/OS2.
49498#
49499# Written by Andrew Zabolotny, bit@freya.etu.ru
49500# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
49501#
49502# This script will accept a set of files on the command line.
49503# All the public symbols from the .o files will be exported into
49504# a .DEF file, then linker will be run (through gcc) against them to
49505# build a shared library consisting of all given .o files. All libraries
49506# (.a) will be first decompressed into component .o files then act as
49507# described above. You can optionally give a description (-d "description")
49508# which will be put into .DLL. To see the list of accepted options (as well
49509# as command-line format) simply run this program without options. The .DLL
49510# is built to be imported by name (there is no guarantee that new versions
49511# of the library you build will have same ordinals for same symbols).
49512#
49513# dllar is free software; you can redistribute it and/or modify
49514# it under the terms of the GNU General Public License as published by
49515# the Free Software Foundation; either version 2, or (at your option)
49516# any later version.
49517#
49518# dllar is distributed in the hope that it will be useful,
49519# but WITHOUT ANY WARRANTY; without even the implied warranty of
49520# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49521# GNU General Public License for more details.
49522#
49523# You should have received a copy of the GNU General Public License
49524# along with dllar; see the file COPYING. If not, write to the Free
49525# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
49526# 02111-1307, USA.
49527
49528# To successfuly run this program you will need:
49529# - Current drive should have LFN support (HPFS, ext2, network, etc)
49530# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
49531# - gcc
49532# (used to build the .dll)
49533# - emxexp
49534# (used to create .def file from .o files)
49535# - emximp
49536# (used to create .a file from .def file)
49537# - GNU text utilites (cat, sort, uniq)
49538# used to process emxexp output
49539# - GNU file utilities (mv, rm)
49540# - GNU sed
49541# - lxlite (optional, see flag below)
49542# (used for general .dll cleanup)
49543#
49544
49545flag_USE_LXLITE=1;
49546
49547#
49548# helper functions
49549# basnam, variant of basename, which does _not_ remove the path, _iff_
49550# second argument (suffix to remove) is given
49551basnam(){
49552 case ${D}# in
49553 1)
1e9e8aba 49554 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
49555 ;;
49556 2)
49557 echo ${D}1 | sed 's/'${D}2'${D}//'
49558 ;;
49559 *)
49560 echo "error in basnam ${D}*"
49561 exit 8
49562 ;;
49563 esac
49564}
49565
49566# Cleanup temporary files and output
49567CleanUp() {
49568 cd ${D}curDir
49569 for i in ${D}inputFiles ; do
49570 case ${D}i in
49571 *!)
49572 rm -rf \`basnam ${D}i !\`
49573 ;;
49574 *)
49575 ;;
49576 esac
49577 done
49578
49579 # Kill result in case of failure as there is just to many stupid make/nmake
49580 # things out there which doesn't do this.
1e9e8aba 49581 if [ ${D}# -eq 0 ]; then
473276a9
VS
49582 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
49583 fi
49584}
49585
49586# Print usage and exit script with rc=1.
49587PrintHelp() {
b1d22ded
DE
49588 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
49589 echo ' [-name-mangler-script script.sh]'
49590 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
49591 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
49592 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 49593 echo ' [*.o] [*.a]'
473276a9
VS
49594 echo '*> "output_file" should have no extension.'
49595 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
49596 echo ' The import library name is derived from this and is set to "name".a,'
49597 echo ' unless overridden by -import'
49598 echo '*> "importlib_name" should have no extension.'
49599 echo ' If it has the .o, or .a extension, it is automatically removed.'
49600 echo ' This name is used as the import library name and may be longer and'
49601 echo ' more descriptive than the DLL name which has to follow the old '
49602 echo ' 8.3 convention of FAT.'
b1d22ded
DE
49603 echo '*> "script.sh may be given to override the output_file name by a'
49604 echo ' different name. It is mainly useful if the regular make process'
49605 echo ' of some package does not take into account OS/2 restriction of'
49606 echo ' DLL name lengths. It takes the importlib name as input and is'
49607 echo ' supposed to procude a shorter name as output. The script should'
49608 echo ' expect to get importlib_name without extension and should produce'
49609 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
49610 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
49611 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
49612 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
49613 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
49614 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
49615 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
49616 echo ' If the last character of a symbol is "*", all symbols beginning'
49617 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 49618 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 49619 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 49620 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 49621 echo ' C runtime DLLs.'
b1d22ded 49622 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
49623 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
49624 echo ' unchanged to GCC at the end of command line.'
49625 echo '*> If you create a DLL from a library and you do not specify -o,'
49626 echo ' the basename for DLL and import library will be set to library name,'
49627 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
49628 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
49629 echo ' library will be renamed into gcc_s.a.'
49630 echo '--------'
49631 echo 'Example:'
49632 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
49633 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
49634 CleanUp
49635 exit 1
49636}
49637
49638# Execute a command.
49639# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
49640# @Uses Whatever CleanUp() uses.
49641doCommand() {
49642 echo "${D}*"
49643 eval ${D}*
49644 rcCmd=${D}?
49645
1e9e8aba 49646 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
49647 echo "command failed, exit code="${D}rcCmd
49648 CleanUp
49649 exit ${D}rcCmd
49650 fi
49651}
49652
49653# main routine
49654# setup globals
49655cmdLine=${D}*
49656outFile=""
49657outimpFile=""
49658inputFiles=""
b1d22ded 49659renameScript=""
473276a9
VS
49660description=""
49661CC=gcc.exe
49662CFLAGS="-s -Zcrtdll"
49663EXTRA_CFLAGS=""
49664EXPORT_BY_ORDINALS=0
49665exclude_symbols=""
49666library_flags=""
49667curDir=\`pwd\`
49668curDirS=curDir
49669case ${D}curDirS in
49670*/)
49671 ;;
49672*)
49673 curDirS=${D}{curDirS}"/"
49674 ;;
49675esac
49676# Parse commandline
49677libsToLink=0
b1d22ded 49678omfLinking=0
1e9e8aba 49679while [ ${D}1 ]; do
473276a9
VS
49680 case ${D}1 in
49681 -ord*)
49682 EXPORT_BY_ORDINALS=1;
49683 ;;
49684 -o*)
49685 shift
49686 outFile=${D}1
49687 ;;
49688 -i*)
49689 shift
49690 outimpFile=${D}1
49691 ;;
b1d22ded
DE
49692 -name-mangler-script)
49693 shift
49694 renameScript=${D}1
49695 ;;
473276a9
VS
49696 -d*)
49697 shift
49698 description=${D}1
49699 ;;
49700 -f*)
49701 shift
49702 CFLAGS=${D}1
49703 ;;
49704 -c*)
49705 shift
49706 CC=${D}1
49707 ;;
49708 -h*)
49709 PrintHelp
49710 ;;
49711 -ex*)
49712 shift
49713 exclude_symbols=${D}{exclude_symbols}${D}1" "
49714 ;;
49715 -libf*)
49716 shift
49717 library_flags=${D}{library_flags}${D}1" "
49718 ;;
49719 -nocrt*)
49720 CFLAGS="-s"
49721 ;;
49722 -nolxl*)
49723 flag_USE_LXLITE=0
49724 ;;
49725 -* | /*)
49726 case ${D}1 in
49727 -L* | -l*)
49728 libsToLink=1
49729 ;;
b1d22ded
DE
49730 -Zomf)
49731 omfLinking=1
49732 ;;
473276a9
VS
49733 *)
49734 ;;
49735 esac
49736 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49737 ;;
b1d22ded
DE
49738 *.dll)
49739 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
49740 if [ ${D}omfLinking -eq 1 ]; then
49741 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
49742 else
49743 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
49744 fi
49745 ;;
473276a9
VS
49746 *)
49747 found=0;
1e9e8aba 49748 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
49749 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49750 else
49751 for file in ${D}1 ; do
1e9e8aba 49752 if [ -f ${D}file ]; then
473276a9
VS
49753 inputFiles="${D}{inputFiles} ${D}file"
49754 found=1
49755 fi
49756 done
1e9e8aba 49757 if [ ${D}found -eq 0 ]; then
473276a9
VS
49758 echo "ERROR: No file(s) found: "${D}1
49759 exit 8
49760 fi
49761 fi
49762 ;;
49763 esac
49764 shift
49765done # iterate cmdline words
49766
49767#
1e9e8aba 49768if [ -z "${D}inputFiles" ]; then
473276a9
VS
49769 echo "dllar: no input files"
49770 PrintHelp
49771fi
49772
49773# Now extract all .o files from .a files
49774newInputFiles=""
49775for file in ${D}inputFiles ; do
49776 case ${D}file in
49777 *.a | *.lib)
49778 case ${D}file in
49779 *.a)
49780 suffix=".a"
49781 AR="ar"
49782 ;;
49783 *.lib)
49784 suffix=".lib"
49785 AR="emxomfar"
49786 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
49787 ;;
49788 *)
49789 ;;
49790 esac
49791 dirname=\`basnam ${D}file ${D}suffix\`"_%"
49792 mkdir ${D}dirname
1e9e8aba 49793 if [ ${D}? -ne 0 ]; then
473276a9
VS
49794 echo "Failed to create subdirectory ./${D}dirname"
49795 CleanUp
49796 exit 8;
49797 fi
49798 # Append '!' to indicate archive
49799 newInputFiles="${D}newInputFiles ${D}{dirname}!"
49800 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
49801 cd ${D}curDir
49802 found=0;
49803 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 49804 if [ -f ${D}subfile ]; then
473276a9 49805 found=1
1e9e8aba 49806 if [ -s ${D}subfile ]; then
473276a9
VS
49807 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
49808 newInputFiles="${D}newInputFiles ${D}subfile"
49809 fi
49810 fi
49811 done
1e9e8aba
DE
49812 if [ ${D}found -eq 0 ]; then
49813 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
49814 fi
49815 ;;
49816 *)
49817 newInputFiles="${D}{newInputFiles} ${D}file"
49818 ;;
49819 esac
49820done
49821inputFiles="${D}newInputFiles"
49822
49823# Output filename(s).
49824do_backup=0;
1e9e8aba 49825if [ -z ${D}outFile ]; then
473276a9
VS
49826 do_backup=1;
49827 set outFile ${D}inputFiles; outFile=${D}2
49828fi
49829
49830# If it is an archive, remove the '!' and the '_%' suffixes
49831case ${D}outFile in
49832*_%!)
49833 outFile=\`basnam ${D}outFile _%!\`
49834 ;;
49835*)
49836 ;;
49837esac
49838case ${D}outFile in
49839*.dll)
49840 outFile=\`basnam ${D}outFile .dll\`
49841 ;;
49842*.DLL)
49843 outFile=\`basnam ${D}outFile .DLL\`
49844 ;;
49845*.o)
49846 outFile=\`basnam ${D}outFile .o\`
49847 ;;
49848*.obj)
49849 outFile=\`basnam ${D}outFile .obj\`
49850 ;;
49851*.a)
49852 outFile=\`basnam ${D}outFile .a\`
49853 ;;
49854*.lib)
49855 outFile=\`basnam ${D}outFile .lib\`
49856 ;;
49857*)
49858 ;;
49859esac
49860case ${D}outimpFile in
49861*.a)
49862 outimpFile=\`basnam ${D}outimpFile .a\`
49863 ;;
49864*.lib)
49865 outimpFile=\`basnam ${D}outimpFile .lib\`
49866 ;;
49867*)
49868 ;;
49869esac
1e9e8aba 49870if [ -z ${D}outimpFile ]; then
473276a9
VS
49871 outimpFile=${D}outFile
49872fi
49873defFile="${D}{outFile}.def"
49874arcFile="${D}{outimpFile}.a"
49875arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
49876
49877#create ${D}dllFile as something matching 8.3 restrictions,
49878if [ -z ${D}renameScript ] ; then
49879 dllFile="${D}outFile"
49880else
49881 dllFile=\`${D}renameScript ${D}outimpFile\`
49882fi
473276a9 49883
1e9e8aba
DE
49884if [ ${D}do_backup -ne 0 ] ; then
49885 if [ -f ${D}arcFile ] ; then
473276a9
VS
49886 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
49887 fi
1e9e8aba 49888 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
49889 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
49890 fi
49891fi
49892
49893# Extract public symbols from all the object files.
49894tmpdefFile=${D}{defFile}_%
49895rm -f ${D}tmpdefFile
49896for file in ${D}inputFiles ; do
49897 case ${D}file in
49898 *!)
49899 ;;
49900 *)
49901 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
49902 ;;
49903 esac
49904done
49905
49906# Create the def file.
49907rm -f ${D}defFile
49908echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
49909dllFile="${D}{dllFile}.dll"
49910if [ ! -z ${D}description ]; then
1e9e8aba 49911 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
49912fi
49913echo "EXPORTS" >> ${D}defFile
49914
49915doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
49916grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
49917
49918# Checks if the export is ok or not.
49919for word in ${D}exclude_symbols; do
49920 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
49921 mv ${D}{tmpdefFile}% ${D}tmpdefFile
49922done
49923
49924
1e9e8aba
DE
49925if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49926 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
49927 sed '
49928 N
49929 : loop
1e9e8aba 49930 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
49931 t loop
49932 ' > ${D}{tmpdefFile}%
49933 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
49934else
49935 rm -f ${D}{tmpdefFile}%
49936fi
49937cat ${D}tmpdefFile >> ${D}defFile
49938rm -f ${D}tmpdefFile
49939
49940# Do linking, create implib, and apply lxlite.
49941gccCmdl="";
49942for file in ${D}inputFiles ; do
49943 case ${D}file in
49944 *!)
49945 ;;
49946 *)
49947 gccCmdl="${D}gccCmdl ${D}file"
49948 ;;
49949 esac
49950done
49951doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49952touch "${D}{outFile}.dll"
49953
49954doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 49955if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 49956 add_flags="";
1e9e8aba 49957 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
49958 add_flags="-ynd"
49959 fi
49960 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
49961fi
49962doCommand "emxomf -s -l ${D}arcFile"
49963
49964# Successful exit.
49965CleanUp 1
49966exit 0
49967EOF
49968
49969 chmod +x dllar.sh
a848cd7e
SC
49970 ;;
49971
1e9e8aba 49972 powerpc-apple-macos* | \
0ad5d837 49973 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a485900c 49974 *-*-mirbsd* | \
a848cd7e
SC
49975 *-*-sunos4* | \
49976 *-*-osf* | \
49977 *-*-dgux5* | \
47a7e797
MW
49978 *-*-sysv5* | \
49979 *-pc-msdosdjgpp )
a848cd7e
SC
49980 ;;
49981
49982 *)
d589327a
VZ
49983 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
49984echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
a48b6595
VZ
49985 { (exit 1); exit 1; }; }
49986 esac
a848cd7e 49987
2057db16
VS
49988 if test "x$PIC_FLAG" != "x" ; then
49989 PIC_FLAG="$PIC_FLAG -DPIC"
49990 fi
49991
a848cd7e
SC
49992 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
49993 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
49994 fi
49995 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
49996 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
49997 fi
49998
49999
50000
50001
50002
50003
50004
50005
810b94f0 50006
a848cd7e
SC
50007 USE_SOVERSION=0
50008 USE_SOVERLINUX=0
50009 USE_SOVERSOLARIS=0
810b94f0 50010 USE_SOVERCYGWIN=0
2c459beb 50011 USE_SOTWOSYMLINKS=0
a848cd7e
SC
50012 USE_MACVERSION=0
50013 SONAME_FLAG=
50014
50015 case "${BAKEFILE_HOST}" in
5b8deaba
VZ
50016 *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
50017 *-*-k*bsd*-gnu | *-*-mirbsd* )
43a7c679
VZ
50018 if test "x$SUNCXX" = "xyes"; then
50019 SONAME_FLAG="-h "
50020 else
50021 SONAME_FLAG="-Wl,-soname,"
50022 fi
5f652d0d
VS
50023 USE_SOVERSION=1
50024 USE_SOVERLINUX=1
2c459beb 50025 USE_SOTWOSYMLINKS=1
5f652d0d
VS
50026 ;;
50027
a848cd7e
SC
50028 *-*-solaris2* )
50029 SONAME_FLAG="-h "
50030 USE_SOVERSION=1
50031 USE_SOVERSOLARIS=1
a848cd7e
SC
50032 ;;
50033
50034 *-*-darwin* )
50035 USE_MACVERSION=1
50036 USE_SOVERSION=1
2c459beb 50037 USE_SOTWOSYMLINKS=1
a848cd7e 50038 ;;
810b94f0
MW
50039
50040 *-*-cygwin* )
50041 USE_SOVERSION=1
50042 USE_SOVERCYGWIN=1
50043 ;;
a848cd7e
SC
50044 esac
50045
50046
50047
50048
50049
50050
50051
50052
50053
810b94f0 50054
47964710 50055 # Check whether --enable-dependency-tracking was given.
f10e38c4 50056if test "${enable_dependency_tracking+set}" = set; then
47964710
VS
50057 enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
50058fi
f10e38c4 50059
47964710 50060
d589327a
VZ
50061 { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
50062echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
a848cd7e 50063
a485900c 50064 BK_DEPS=""
f10e38c4
VZ
50065 if test "x$bk_use_trackdeps" = "xno" ; then
50066 DEPS_TRACKING=0
d589327a
VZ
50067 { echo "$as_me:$LINENO: result: disabled" >&5
50068echo "${ECHO_T}disabled" >&6; }
f10e38c4
VZ
50069 else
50070 DEPS_TRACKING=1
50071
50072 if test "x$GCC" = "xyes"; then
50073 DEPSMODE=gcc
50074 case "${BAKEFILE_HOST}" in
50075 *-*-darwin* )
50076 DEPSFLAG="-no-cpp-precomp -MMD"
50077 ;;
50078 * )
50079 DEPSFLAG="-MMD"
50080 ;;
50081 esac
d589327a
VZ
50082 { echo "$as_me:$LINENO: result: gcc" >&5
50083echo "${ECHO_T}gcc" >&6; }
f10e38c4
VZ
50084 elif test "x$MWCC" = "xyes"; then
50085 DEPSMODE=mwcc
50086 DEPSFLAG="-MM"
d589327a
VZ
50087 { echo "$as_me:$LINENO: result: mwcc" >&5
50088echo "${ECHO_T}mwcc" >&6; }
f10e38c4
VZ
50089 elif test "x$SUNCC" = "xyes"; then
50090 DEPSMODE=unixcc
50091 DEPSFLAG="-xM1"
d589327a
VZ
50092 { echo "$as_me:$LINENO: result: Sun cc" >&5
50093echo "${ECHO_T}Sun cc" >&6; }
f10e38c4
VZ
50094 elif test "x$SGICC" = "xyes"; then
50095 DEPSMODE=unixcc
50096 DEPSFLAG="-M"
d589327a
VZ
50097 { echo "$as_me:$LINENO: result: SGI cc" >&5
50098echo "${ECHO_T}SGI cc" >&6; }
f10e38c4
VZ
50099 elif test "x$HPCC" = "xyes"; then
50100 DEPSMODE=unixcc
50101 DEPSFLAG="+make"
d589327a
VZ
50102 { echo "$as_me:$LINENO: result: HP cc" >&5
50103echo "${ECHO_T}HP cc" >&6; }
f10e38c4
VZ
50104 elif test "x$COMPAQCC" = "xyes"; then
50105 DEPSMODE=gcc
50106 DEPSFLAG="-MD"
d589327a
VZ
50107 { echo "$as_me:$LINENO: result: Compaq cc" >&5
50108echo "${ECHO_T}Compaq cc" >&6; }
f10e38c4
VZ
50109 else
50110 DEPS_TRACKING=0
d589327a
VZ
50111 { echo "$as_me:$LINENO: result: none" >&5
50112echo "${ECHO_T}none" >&6; }
f10e38c4 50113 fi
a848cd7e 50114
f10e38c4 50115 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
50116
50117D='$'
50118cat <<EOF >bk-deps
a848cd7e
SC
50119#!/bin/sh
50120
5b8deaba 50121# This script is part of Bakefile (http://www.bakefile.org) autoconf
a848cd7e
SC
50122# script. It is used to track C/C++ files dependencies in portable way.
50123#
50124# Permission is given to use this file in any way.
50125
473276a9 50126DEPSMODE=${DEPSMODE}
0ad5d837 50127DEPSFLAG="${DEPSFLAG}"
7a507ca8 50128DEPSDIRBASE=.deps
a848cd7e 50129
473276a9 50130if test ${D}DEPSMODE = gcc ; then
0ad5d837 50131 ${D}* ${D}{DEPSFLAG}
473276a9 50132 status=${D}?
5b8deaba
VZ
50133
50134 # determine location of created files:
473276a9
VS
50135 while test ${D}# -gt 0; do
50136 case "${D}1" in
a848cd7e
SC
50137 -o )
50138 shift
473276a9 50139 objfile=${D}1
a848cd7e
SC
50140 ;;
50141 -* )
50142 ;;
50143 * )
473276a9 50144 srcfile=${D}1
a848cd7e
SC
50145 ;;
50146 esac
50147 shift
50148 done
7a507ca8
VZ
50149 objfilebase=\`basename ${D}objfile\`
50150 builddir=\`dirname ${D}objfile\`
1e9e8aba
DE
50151 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
50152 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
7a507ca8
VZ
50153 depsdir=${D}builddir/${D}DEPSDIRBASE
50154 mkdir -p ${D}depsdir
5b8deaba
VZ
50155
50156 # if the compiler failed, we're done:
50157 if test ${D}{status} != 0 ; then
50158 rm -f ${D}depfile
50159 exit ${D}{status}
50160 fi
50161
50162 # move created file to the location we want it in:
473276a9 50163 if test -f ${D}depfile ; then
7a507ca8 50164 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
473276a9 50165 rm -f ${D}depfile
a848cd7e 50166 else
a1aa0349 50167 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
7a507ca8 50168 depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
50169 if test ! -f ${D}depfile ; then
50170 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
50171 depfile="${D}objfile.d"
50172 fi
473276a9 50173 if test -f ${D}depfile ; then
7a507ca8 50174 sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
473276a9 50175 rm -f ${D}depfile
a848cd7e
SC
50176 fi
50177 fi
50178 exit 0
7a507ca8 50179
81f90336 50180elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 50181 ${D}* || exit ${D}?
81f90336
MW
50182 # Run mwcc again with -MM and redirect into the dep file we want
50183 # NOTE: We can't use shift here because we need ${D}* to be valid
50184 prevarg=
50185 for arg in ${D}* ; do
50186 if test "${D}prevarg" = "-o"; then
50187 objfile=${D}arg
50188 else
50189 case "${D}arg" in
50190 -* )
50191 ;;
50192 * )
50193 srcfile=${D}arg
50194 ;;
50195 esac
50196 fi
50197 prevarg="${D}arg"
50198 done
7a507ca8
VZ
50199
50200 objfilebase=\`basename ${D}objfile\`
50201 builddir=\`dirname ${D}objfile\`
50202 depsdir=${D}builddir/${D}DEPSDIRBASE
50203 mkdir -p ${D}depsdir
50204
50205 ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
81f90336 50206 exit 0
7a507ca8 50207
0ad5d837 50208elif test ${D}DEPSMODE = unixcc; then
f6b50c59 50209 ${D}* || exit ${D}?
a9e5b1f0
MW
50210 # Run compiler again with deps flag and redirect into the dep file.
50211 # It doesn't work if the '-o FILE' option is used, but without it the
50212 # dependency file will contain the wrong name for the object. So it is
50213 # removed from the command line, and the dep file is fixed with sed.
50214 cmd=""
50215 while test ${D}# -gt 0; do
50216 case "${D}1" in
50217 -o )
50218 shift
50219 objfile=${D}1
50220 ;;
50221 * )
50222 eval arg${D}#=\\${D}1
50223 cmd="${D}cmd \\${D}arg${D}#"
50224 ;;
50225 esac
50226 shift
50227 done
7a507ca8
VZ
50228
50229 objfilebase=\`basename ${D}objfile\`
50230 builddir=\`dirname ${D}objfile\`
50231 depsdir=${D}builddir/${D}DEPSDIRBASE
50232 mkdir -p ${D}depsdir
50233
825dbe24 50234 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
a9e5b1f0 50235 exit 0
7a507ca8 50236
a848cd7e 50237else
473276a9
VS
50238 ${D}*
50239 exit ${D}?
a848cd7e
SC
50240fi
50241EOF
473276a9 50242
f10e38c4 50243 chmod +x bk-deps
a485900c 50244 BK_DEPS="`pwd`/bk-deps"
f10e38c4 50245 fi
a848cd7e
SC
50246 fi
50247
50248
50249
50250
a485900c 50251
a848cd7e
SC
50252 case ${BAKEFILE_HOST} in
50253 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
50254 if test -n "$ac_tool_prefix"; then
50255 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
50256set dummy ${ac_tool_prefix}windres; ac_word=$2
d589327a
VZ
50257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
50258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8ced02f6 50259if test "${ac_cv_prog_WINDRES+set}" = set; then
d589327a 50260 echo $ECHO_N "(cached) $ECHO_C" >&6
8ced02f6
DE
50261else
50262 if test -n "$WINDRES"; then
50263 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
50264else
50265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50266for as_dir in $PATH
50267do
50268 IFS=$as_save_IFS
50269 test -z "$as_dir" && as_dir=.
50270 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 50271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8ced02f6 50272 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
d589327a 50273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8ced02f6
DE
50274 break 2
50275 fi
50276done
50277done
47964710 50278IFS=$as_save_IFS
8ced02f6
DE
50279
50280fi
50281fi
50282WINDRES=$ac_cv_prog_WINDRES
50283if test -n "$WINDRES"; then
d589327a
VZ
50284 { echo "$as_me:$LINENO: result: $WINDRES" >&5
50285echo "${ECHO_T}$WINDRES" >&6; }
8ced02f6 50286else
d589327a
VZ
50287 { echo "$as_me:$LINENO: result: no" >&5
50288echo "${ECHO_T}no" >&6; }
8ced02f6
DE
50289fi
50290
47964710 50291
8ced02f6
DE
50292fi
50293if test -z "$ac_cv_prog_WINDRES"; then
50294 ac_ct_WINDRES=$WINDRES
50295 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e 50296set dummy windres; ac_word=$2
d589327a
VZ
50297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
50298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8ced02f6 50299if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
d589327a 50300 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 50301else
8ced02f6
DE
50302 if test -n "$ac_ct_WINDRES"; then
50303 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
50304else
50305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50306for as_dir in $PATH
50307do
50308 IFS=$as_save_IFS
50309 test -z "$as_dir" && as_dir=.
50310 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 50311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8ced02f6 50312 ac_cv_prog_ac_ct_WINDRES="windres"
d589327a 50313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
50314 break 2
50315 fi
50316done
50317done
47964710 50318IFS=$as_save_IFS
a848cd7e 50319
a848cd7e
SC
50320fi
50321fi
8ced02f6
DE
50322ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
50323if test -n "$ac_ct_WINDRES"; then
d589327a
VZ
50324 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
50325echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
a848cd7e 50326else
d589327a
VZ
50327 { echo "$as_me:$LINENO: result: no" >&5
50328echo "${ECHO_T}no" >&6; }
a848cd7e
SC
50329fi
50330
47964710
VS
50331 if test "x$ac_ct_WINDRES" = x; then
50332 WINDRES=""
50333 else
50334 case $cross_compiling:$ac_tool_warned in
50335yes:)
d589327a
VZ
50336{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50337whose name does not start with the host triplet. If you think this
50338configuration is useful to you, please write to autoconf@gnu.org." >&5
50339echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50340whose name does not start with the host triplet. If you think this
50341configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47964710
VS
50342ac_tool_warned=yes ;;
50343esac
50344 WINDRES=$ac_ct_WINDRES
50345 fi
8ced02f6
DE
50346else
50347 WINDRES="$ac_cv_prog_WINDRES"
50348fi
50349
a848cd7e
SC
50350 ;;
50351
1e9e8aba 50352 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
50353 # Extract the first word of "Rez", so it can be a program name with args.
50354set dummy Rez; ac_word=$2
d589327a
VZ
50355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
50356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8ced02f6 50357if test "${ac_cv_prog_REZ+set}" = set; then
d589327a 50358 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 50359else
8ced02f6
DE
50360 if test -n "$REZ"; then
50361 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
50362else
50363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50364for as_dir in $PATH
50365do
50366 IFS=$as_save_IFS
50367 test -z "$as_dir" && as_dir=.
50368 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 50369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8ced02f6 50370 ac_cv_prog_REZ="Rez"
d589327a 50371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
50372 break 2
50373 fi
50374done
50375done
47964710 50376IFS=$as_save_IFS
a848cd7e 50377
8ced02f6 50378 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
50379fi
50380fi
8ced02f6
DE
50381REZ=$ac_cv_prog_REZ
50382if test -n "$REZ"; then
d589327a
VZ
50383 { echo "$as_me:$LINENO: result: $REZ" >&5
50384echo "${ECHO_T}$REZ" >&6; }
a848cd7e 50385else
d589327a
VZ
50386 { echo "$as_me:$LINENO: result: no" >&5
50387echo "${ECHO_T}no" >&6; }
a848cd7e
SC
50388fi
50389
47964710 50390
a848cd7e
SC
50391 # Extract the first word of "SetFile", so it can be a program name with args.
50392set dummy SetFile; ac_word=$2
d589327a
VZ
50393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
50394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 50395if test "${ac_cv_prog_SETFILE+set}" = set; then
d589327a 50396 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
50397else
50398 if test -n "$SETFILE"; then
50399 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
50400else
50401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50402for as_dir in $PATH
50403do
50404 IFS=$as_save_IFS
50405 test -z "$as_dir" && as_dir=.
50406 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 50407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 50408 ac_cv_prog_SETFILE="SetFile"
d589327a 50409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
50410 break 2
50411 fi
50412done
50413done
47964710 50414IFS=$as_save_IFS
a848cd7e
SC
50415
50416 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
50417fi
50418fi
50419SETFILE=$ac_cv_prog_SETFILE
50420if test -n "$SETFILE"; then
d589327a
VZ
50421 { echo "$as_me:$LINENO: result: $SETFILE" >&5
50422echo "${ECHO_T}$SETFILE" >&6; }
a848cd7e 50423else
d589327a
VZ
50424 { echo "$as_me:$LINENO: result: no" >&5
50425echo "${ECHO_T}no" >&6; }
a848cd7e
SC
50426fi
50427
47964710 50428
a848cd7e
SC
50429 ;;
50430 esac
50431
50432
50433
50434
50435
8ced02f6 50436
7a507ca8
VZ
50437
50438
50439
fcc9ca7f 50440 BAKEFILE_BAKEFILE_M4_VERSION="0.2.8"
a848cd7e 50441
dcc1b6ad 50442
fcc9ca7f 50443BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.8"
a848cd7e 50444
646b6ec1 50445
74b84332 50446
47964710 50447 # Check whether --enable-precomp-headers was given.
a848cd7e 50448if test "${enable_precomp_headers+set}" = set; then
47964710
VS
50449 enableval=$enable_precomp_headers; bk_use_pch="$enableval"
50450fi
50451
a848cd7e
SC
50452
50453 GCC_PCH=0
f10e38c4
VZ
50454 ICC_PCH=0
50455 USE_PCH=0
a485900c 50456 BK_MAKE_PCH=""
a848cd7e 50457
5c60e845
MW
50458 case ${BAKEFILE_HOST} in
50459 *-*-cygwin* )
50460 bk_use_pch="no"
50461 ;;
50462 esac
50463
a848cd7e
SC
50464 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
50465 if test "x$GCC" = "xyes"; then
d589327a
VZ
50466 { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
50467echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
a848cd7e
SC
50468 cat >conftest.$ac_ext <<_ACEOF
50469/* confdefs.h. */
50470_ACEOF
50471cat confdefs.h >>conftest.$ac_ext
50472cat >>conftest.$ac_ext <<_ACEOF
50473/* end confdefs.h. */
50474
50475int
50476main ()
50477{
50478
50479 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 50480 There is no PCH support
a848cd7e
SC
50481 #endif
50482 #if (__GNUC__ < 3)
e5efa97e 50483 There is no PCH support
a848cd7e
SC
50484 #endif
50485 #if (__GNUC__ == 3) && \
50486 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
50487 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
50488 ( defined(__INTEL_COMPILER) )
e5efa97e 50489 There is no PCH support
a848cd7e
SC
50490 #endif
50491
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
d589327a 50502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47964710 50503 (eval "$ac_compile") 2>conftest.er1
a848cd7e 50504 ac_status=$?
ac1cb8d3
VS
50505 grep -v '^ *+' conftest.er1 >conftest.err
50506 rm -f conftest.er1
50507 cat conftest.err >&5
d589327a 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
a848cd7e 50513
d589327a
VZ
50514 { echo "$as_me:$LINENO: result: yes" >&5
50515echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
50516 GCC_PCH=1
50517
50518else
d589327a 50519 echo "$as_me: failed program was:" >&5
a848cd7e
SC
50520sed 's/^/| /' conftest.$ac_ext >&5
50521
50522
05622061 50523 if test "$INTELCXX8" = "yes"; then
d589327a
VZ
50524 { echo "$as_me:$LINENO: result: yes" >&5
50525echo "${ECHO_T}yes" >&6; }
05622061
VZ
50526 ICC_PCH=1
50527 if test "$INTELCXX10" = "yes"; then
50528 ICC_PCH_CREATE_SWITCH="-pch-create"
50529 ICC_PCH_USE_SWITCH="-pch-use"
50530 else
50531 ICC_PCH_CREATE_SWITCH="-create-pch"
50532 ICC_PCH_USE_SWITCH="-use-pch"
50533 fi
50534 else
d589327a
VZ
50535 { echo "$as_me:$LINENO: result: no" >&5
50536echo "${ECHO_T}no" >&6; }
05622061 50537 fi
f10e38c4
VZ
50538
50539fi
47964710
VS
50540
50541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
50542 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
50543 USE_PCH=1
1e9e8aba
DE
50544
50545D='$'
50546cat <<EOF >bk-make-pch
a848cd7e
SC
50547#!/bin/sh
50548
5b8deaba 50549# This script is part of Bakefile (http://www.bakefile.org) autoconf
a848cd7e
SC
50550# script. It is used to generated precompiled headers.
50551#
50552# Permission is given to use this file in any way.
50553
1e9e8aba
DE
50554outfile="${D}{1}"
50555header="${D}{2}"
a848cd7e
SC
50556shift
50557shift
50558
7a507ca8
VZ
50559builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
50560
f10e38c4
VZ
50561compiler=""
50562headerfile=""
50563
1e9e8aba 50564while test ${D}{#} -gt 0; do
f10e38c4 50565 add_to_cmdline=1
1e9e8aba 50566 case "${D}{1}" in
a848cd7e 50567 -I* )
1e9e8aba
DE
50568 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
50569 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
50570 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
50571 fi
50572 ;;
05622061 50573 -use-pch|-use_pch|-pch-use )
f10e38c4
VZ
50574 shift
50575 add_to_cmdline=0
50576 ;;
a848cd7e 50577 esac
f10e38c4
VZ
50578 if test ${D}add_to_cmdline = 1 ; then
50579 compiler="${D}{compiler} ${D}{1}"
50580 fi
a848cd7e
SC
50581 shift
50582done
50583
1e9e8aba 50584if test "x${D}{headerfile}" = "x" ; then
f10e38c4 50585 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 50586else
1e9e8aba
DE
50587 if test -f ${D}{outfile} ; then
50588 rm -f ${D}{outfile}
a848cd7e 50589 else
1e9e8aba 50590 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 50591 fi
7a507ca8
VZ
50592 depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
50593 mkdir -p ${D}{builddir}/.deps
f10e38c4
VZ
50594 if test "x${GCC_PCH}" = "x1" ; then
50595 # can do this because gcc is >= 3.4:
50596 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
50597 elif test "x${ICC_PCH}" = "x1" ; then
50598 filename=pch_gen-${D}${D}
50599 file=${D}{filename}.c
50600 dfile=${D}{filename}.d
50601 cat > ${D}file <<EOT
50602#include "${D}header"
50603EOT
50604 # using -MF icc complains about differing command lines in creation/use
05622061 50605 ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
f10e38c4
VZ
50606 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
50607 rm -f ${D}file ${D}dfile ${D}{filename}.o
50608 fi
1e9e8aba 50609 exit ${D}{?}
a848cd7e
SC
50610fi
50611EOF
1e9e8aba 50612
a848cd7e 50613 chmod +x bk-make-pch
a485900c 50614 BK_MAKE_PCH="`pwd`/bk-make-pch"
a848cd7e
SC
50615 fi
50616 fi
50617 fi
50618
50619
50620
f10e38c4 50621
a485900c 50622
05622061
VZ
50623
50624
a848cd7e
SC
50625 COND_BUILD_DEBUG="#"
50626 if test "x$BUILD" = "xdebug" ; then
50627 COND_BUILD_DEBUG=""
50628 fi
50629
50630 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
50631 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
50632 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
50633 fi
50634
50635 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
50636 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
50637 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
50638 fi
50639
50640 COND_BUILD_DEBUG_UNICODE_0="#"
50641 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
50642 COND_BUILD_DEBUG_UNICODE_0=""
50643 fi
50644
50645 COND_BUILD_DEBUG_UNICODE_1="#"
50646 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
50647 COND_BUILD_DEBUG_UNICODE_1=""
50648 fi
50649
50650 COND_BUILD_RELEASE="#"
50651 if test "x$BUILD" = "xrelease" ; then
50652 COND_BUILD_RELEASE=""
50653 fi
50654
50655 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
50656 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
50657 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
50658 fi
50659
50660 COND_BUILD_RELEASE_UNICODE_0="#"
50661 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
50662 COND_BUILD_RELEASE_UNICODE_0=""
50663 fi
50664
50665 COND_BUILD_RELEASE_UNICODE_1="#"
50666 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
50667 COND_BUILD_RELEASE_UNICODE_1=""
50668 fi
50669
03c6117e
VZ
50670 COND_BUILD_debug="#"
50671 if test "x$BUILD" = "xdebug" ; then
50672 COND_BUILD_debug=""
50673 fi
50674
50675 COND_BUILD_debug_DEBUG_FLAG_default="#"
50676 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
50677 COND_BUILD_debug_DEBUG_FLAG_default=""
50678 fi
50679
50680 COND_BUILD_debug_DEBUG_INFO_default="#"
50681 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
50682 COND_BUILD_debug_DEBUG_INFO_default=""
50683 fi
50684
50685 COND_BUILD_debug_UNICODE_0="#"
50686 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
50687 COND_BUILD_debug_UNICODE_0=""
50688 fi
50689
50690 COND_BUILD_debug_UNICODE_1="#"
50691 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
50692 COND_BUILD_debug_UNICODE_1=""
50693 fi
50694
50695 COND_BUILD_release="#"
50696 if test "x$BUILD" = "xrelease" ; then
50697 COND_BUILD_release=""
50698 fi
50699
50700 COND_BUILD_release_DEBUG_INFO_default="#"
50701 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
50702 COND_BUILD_release_DEBUG_INFO_default=""
50703 fi
50704
50705 COND_BUILD_release_UNICODE_0="#"
50706 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
50707 COND_BUILD_release_UNICODE_0=""
50708 fi
50709
50710 COND_BUILD_release_UNICODE_1="#"
50711 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
50712 COND_BUILD_release_UNICODE_1=""
50713 fi
50714
89b1afb4
VZ
50715 COND_DEBUG_FLAG_0="#"
50716 if test "x$DEBUG_FLAG" = "x0" ; then
50717 COND_DEBUG_FLAG_0=""
50718 fi
50719
a848cd7e
SC
50720 COND_DEBUG_FLAG_1="#"
50721 if test "x$DEBUG_FLAG" = "x1" ; then
50722 COND_DEBUG_FLAG_1=""
50723 fi
50724
50725 COND_DEBUG_INFO_0="#"
50726 if test "x$DEBUG_INFO" = "x0" ; then
50727 COND_DEBUG_INFO_0=""
50728 fi
50729
50730 COND_DEBUG_INFO_1="#"
50731 if test "x$DEBUG_INFO" = "x1" ; then
50732 COND_DEBUG_INFO_1=""
50733 fi
50734
50735 COND_DEPS_TRACKING_0="#"
50736 if test "x$DEPS_TRACKING" = "x0" ; then
50737 COND_DEPS_TRACKING_0=""
50738 fi
50739
50740 COND_DEPS_TRACKING_1="#"
50741 if test "x$DEPS_TRACKING" = "x1" ; then
50742 COND_DEPS_TRACKING_1=""
50743 fi
50744
50745 COND_GCC_PCH_1="#"
50746 if test "x$GCC_PCH" = "x1" ; then
50747 COND_GCC_PCH_1=""
50748 fi
50749
f10e38c4
VZ
50750 COND_ICC_PCH_1="#"
50751 if test "x$ICC_PCH" = "x1" ; then
50752 COND_ICC_PCH_1=""
50753 fi
50754
a848cd7e
SC
50755 COND_MONOLITHIC_0="#"
50756 if test "x$MONOLITHIC" = "x0" ; then
50757 COND_MONOLITHIC_0=""
50758 fi
50759
50760 COND_MONOLITHIC_0_SHARED_0="#"
50761 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
50762 COND_MONOLITHIC_0_SHARED_0=""
50763 fi
50764
3f60522a
JS
50765 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
50766 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
50767 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
50768 fi
50769
a848cd7e
SC
50770 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
50771 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
50772 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
50773 fi
50774
90970d69
DE
50775 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
50776 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50777 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
50778 fi
50779
f10e38c4
VZ
50780 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
50781 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50782 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
50783 fi
50784
6671c68b
VZ
50785 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
50786 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50787 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
50788 fi
50789
1c4293cb
VZ
50790 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
50791 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
50792 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
50793 fi
50794
d33ccbe1
VZ
50795 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
50796 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
50797 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
50798 fi
50799
8b6682b9
JS
50800 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
50801 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50802 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
50803 fi
50804
54429bb3
RD
50805 COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
50806 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
50807 COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
50808 fi
50809
ceec2216
RL
50810 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
50811 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50812 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
50813 fi
50814
a848cd7e
SC
50815 COND_MONOLITHIC_0_SHARED_1="#"
50816 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
50817 COND_MONOLITHIC_0_SHARED_1=""
50818 fi
50819
3f60522a
JS
50820 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
50821 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
50822 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
50823 fi
50824
a848cd7e
SC
50825 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
50826 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
50827 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
50828 fi
50829
90970d69
DE
50830 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
50831 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50832 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
50833 fi
50834
f10e38c4
VZ
50835 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
50836 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50837 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
50838 fi
50839
6671c68b
VZ
50840 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
50841 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50842 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
50843 fi
50844
1c4293cb
VZ
50845 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
50846 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
50847 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
50848 fi
50849
d33ccbe1
VZ
50850 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
50851 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
50852 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
50853 fi
50854
8b6682b9
JS
50855 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
50856 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
50857 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
50858 fi
50859
54429bb3
RD
50860 COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
50861 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
50862 COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
50863 fi
50864
ceec2216
RL
50865 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
50866 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50867 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
50868 fi
50869
d63f7562
VZ
50870 COND_MONOLITHIC_0_USE_AUI_1="#"
50871 if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
50872 COND_MONOLITHIC_0_USE_AUI_1=""
50873 fi
50874
50875 COND_MONOLITHIC_0_USE_GUI_1="#"
50876 if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
50877 COND_MONOLITHIC_0_USE_GUI_1=""
50878 fi
50879
50880 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
50881 if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50882 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
50883 fi
50884
d63f7562
VZ
50885 COND_MONOLITHIC_0_USE_HTML_1="#"
50886 if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
50887 COND_MONOLITHIC_0_USE_HTML_1=""
50888 fi
50889
e5efa97e
VZ
50890 COND_MONOLITHIC_0_USE_MEDIA_1="#"
50891 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
50892 COND_MONOLITHIC_0_USE_MEDIA_1=""
50893 fi
50894
1c4293cb
VZ
50895 COND_MONOLITHIC_0_USE_PROPGRID_1="#"
50896 if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
50897 COND_MONOLITHIC_0_USE_PROPGRID_1=""
50898 fi
50899
d63f7562
VZ
50900 COND_MONOLITHIC_0_USE_QA_1="#"
50901 if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
50902 COND_MONOLITHIC_0_USE_QA_1=""
50903 fi
50904
d33ccbe1
VZ
50905 COND_MONOLITHIC_0_USE_RIBBON_1="#"
50906 if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
50907 COND_MONOLITHIC_0_USE_RIBBON_1=""
50908 fi
50909
d63f7562
VZ
50910 COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
50911 if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50912 COND_MONOLITHIC_0_USE_RICHTEXT_1=""
50913 fi
50914
54429bb3
RD
50915 COND_MONOLITHIC_0_USE_STC_1="#"
50916 if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
50917 COND_MONOLITHIC_0_USE_STC_1=""
50918 fi
50919
d63f7562
VZ
50920 COND_MONOLITHIC_0_USE_XRC_1="#"
50921 if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
50922 COND_MONOLITHIC_0_USE_XRC_1=""
50923 fi
50924
a848cd7e
SC
50925 COND_MONOLITHIC_1="#"
50926 if test "x$MONOLITHIC" = "x1" ; then
50927 COND_MONOLITHIC_1=""
50928 fi
50929
50930 COND_MONOLITHIC_1_SHARED_0="#"
50931 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
50932 COND_MONOLITHIC_1_SHARED_0=""
50933 fi
50934
50935 COND_MONOLITHIC_1_SHARED_1="#"
50936 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
50937 COND_MONOLITHIC_1_SHARED_1=""
50938 fi
50939
50940 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
50941 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
50942 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
50943 fi
50944
50945 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
50946 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
50947 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
50948 fi
50949
eb730a0c
JS
50950 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
50951 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50952 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
50953 fi
50954
a848cd7e
SC
50955 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
50956 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50957 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
50958 fi
50959
50960 COND_PLATFORM_MACOSX_1="#"
50961 if test "x$PLATFORM_MACOSX" = "x1" ; then
50962 COND_PLATFORM_MACOSX_1=""
50963 fi
50964
f380544a
VZ
50965 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
50966 if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
50967 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
50968 fi
50969
61aba460
VS
50970 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
50971 if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
50972 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
50973 fi
50974
2ea057f9
SC
50975 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50976 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50977 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
a848cd7e
SC
50978 fi
50979
2ea057f9
SC
50980 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
50981 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50982 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
fc480dc1
DE
50983 fi
50984
2ea057f9
SC
50985 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50986 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50987 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
ebee3cd0
VS
50988 fi
50989
2ea057f9
SC
50990 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
50991 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50992 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
ebee3cd0
VS
50993 fi
50994
c9554803
VZ
50995 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
50996 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
50997 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
50998 fi
50999
51000 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
51001 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51002 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
51003 fi
51004
a848cd7e
SC
51005 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
51006 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
51007 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
51008 fi
51009
f380544a
VZ
51010 COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
51011 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51012 COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
51013 fi
51014
a848cd7e
SC
51015 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
51016 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51017 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
51018 fi
51019
b48a2016
DE
51020 COND_PLATFORM_MACOS_1="#"
51021 if test "x$PLATFORM_MACOS" = "x1" ; then
51022 COND_PLATFORM_MACOS_1=""
51023 fi
51024
ebe887ed
VZ
51025 COND_PLATFORM_MAC_0="#"
51026 if test "x$PLATFORM_MAC" = "x0" ; then
51027 COND_PLATFORM_MAC_0=""
51028 fi
51029
88262190
VZ
51030 COND_PLATFORM_MAC_1="#"
51031 if test "x$PLATFORM_MAC" = "x1" ; then
51032 COND_PLATFORM_MAC_1=""
51033 fi
51034
ac209a0f
VZ
51035 COND_PLATFORM_MSDOS_0="#"
51036 if test "x$PLATFORM_MSDOS" = "x0" ; then
51037 COND_PLATFORM_MSDOS_0=""
51038 fi
51039
83d8eb47
MW
51040 COND_PLATFORM_MSDOS_1="#"
51041 if test "x$PLATFORM_MSDOS" = "x1" ; then
51042 COND_PLATFORM_MSDOS_1=""
51043 fi
51044
a848cd7e
SC
51045 COND_PLATFORM_OS2_1="#"
51046 if test "x$PLATFORM_OS2" = "x1" ; then
51047 COND_PLATFORM_OS2_1=""
51048 fi
51049
51050 COND_PLATFORM_UNIX_0="#"
51051 if test "x$PLATFORM_UNIX" = "x0" ; then
51052 COND_PLATFORM_UNIX_0=""
51053 fi
51054
51055 COND_PLATFORM_UNIX_1="#"
51056 if test "x$PLATFORM_UNIX" = "x1" ; then
51057 COND_PLATFORM_UNIX_1=""
51058 fi
51059
3ad202f9
VZ
51060 COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
51061 if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
51062 COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
51063 fi
51064
51065 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
51066 if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
51067 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
51068 fi
51069
a848cd7e
SC
51070 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
51071 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
51072 COND_PLATFORM_UNIX_1_USE_GUI_1=""
51073 fi
51074
51075 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
51076 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
51077 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
51078 fi
51079
51080 COND_PLATFORM_WIN32_0="#"
51081 if test "x$PLATFORM_WIN32" = "x0" ; then
51082 COND_PLATFORM_WIN32_0=""
51083 fi
51084
51085 COND_PLATFORM_WIN32_1="#"
51086 if test "x$PLATFORM_WIN32" = "x1" ; then
51087 COND_PLATFORM_WIN32_1=""
51088 fi
51089
61aba460
VS
51090 COND_PLATFORM_WIN32_1_SHARED_0="#"
51091 if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
51092 COND_PLATFORM_WIN32_1_SHARED_0=""
51093 fi
51094
a848cd7e
SC
51095 COND_SHARED_0="#"
51096 if test "x$SHARED" = "x0" ; then
51097 COND_SHARED_0=""
51098 fi
51099
88262190
VZ
51100 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
51101 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
51102 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
51103 fi
51104
51105 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
51106 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
51107 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
51108 fi
51109
51110 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
51111 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
51112 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
51113 fi
51114
a848cd7e
SC
51115 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
51116 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51117 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
51118 fi
51119
03c6117e 51120 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
a848cd7e 51121 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
03c6117e 51122 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
a848cd7e
SC
51123 fi
51124
03c6117e 51125 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
a848cd7e 51126 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
03c6117e 51127 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
a848cd7e
SC
51128 fi
51129
03c6117e 51130 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
a848cd7e 51131 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
03c6117e 51132 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
a848cd7e
SC
51133 fi
51134
7708a267
VS
51135 COND_SHARED_0_USE_STC_1="#"
51136 if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51137 COND_SHARED_0_USE_STC_1=""
51138 fi
51139
03c6117e 51140 COND_SHARED_0_wxUSE_EXPAT_builtin="#"
a848cd7e 51141 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
03c6117e 51142 COND_SHARED_0_wxUSE_EXPAT_builtin=""
a848cd7e
SC
51143 fi
51144
03c6117e 51145 COND_SHARED_0_wxUSE_REGEX_builtin="#"
a848cd7e 51146 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
03c6117e 51147 COND_SHARED_0_wxUSE_REGEX_builtin=""
a848cd7e
SC
51148 fi
51149
03c6117e 51150 COND_SHARED_0_wxUSE_ZLIB_builtin="#"
a848cd7e 51151 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
03c6117e 51152 COND_SHARED_0_wxUSE_ZLIB_builtin=""
a848cd7e
SC
51153 fi
51154
51155 COND_SHARED_1="#"
51156 if test "x$SHARED" = "x1" ; then
51157 COND_SHARED_1=""
51158 fi
51159
51160 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
51161 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51162 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
51163 fi
51164
a30f955f
VS
51165 COND_TOOLKIT_="#"
51166 if test "x$TOOLKIT" = "x" ; then
51167 COND_TOOLKIT_=""
51168 fi
51169
a848cd7e
SC
51170 COND_TOOLKIT_COCOA="#"
51171 if test "x$TOOLKIT" = "xCOCOA" ; then
51172 COND_TOOLKIT_COCOA=""
51173 fi
51174
a49baeab
DE
51175 COND_TOOLKIT_COCOA_USE_GUI_1="#"
51176 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
51177 COND_TOOLKIT_COCOA_USE_GUI_1=""
51178 fi
51179
a848cd7e
SC
51180 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
51181 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51182 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
51183 fi
51184
b3c86150
VS
51185 COND_TOOLKIT_DFB="#"
51186 if test "x$TOOLKIT" = "xDFB" ; then
51187 COND_TOOLKIT_DFB=""
51188 fi
51189
51190 COND_TOOLKIT_DFB_USE_GUI_1="#"
51191 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
51192 COND_TOOLKIT_DFB_USE_GUI_1=""
51193 fi
51194
a848cd7e
SC
51195 COND_TOOLKIT_GTK="#"
51196 if test "x$TOOLKIT" = "xGTK" ; then
51197 COND_TOOLKIT_GTK=""
51198 fi
51199
d044deea
MW
51200 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
51201 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
51202 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
51203 fi
51204
51205 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
51206 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
51207 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
51208 fi
51209
51210 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
51211 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
51212 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
51213 fi
51214
51215 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
51216 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51217 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
51218 fi
51219
51220 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
51221 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
51222 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
51223 fi
51224
51225 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
51226 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51227 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
51228 fi
51229
a848cd7e
SC
51230 COND_TOOLKIT_GTK_USE_GUI_1="#"
51231 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
51232 COND_TOOLKIT_GTK_USE_GUI_1=""
51233 fi
51234
a848cd7e
SC
51235 COND_TOOLKIT_MAC="#"
51236 if test "x$TOOLKIT" = "xMAC" ; then
51237 COND_TOOLKIT_MAC=""
51238 fi
51239
a848cd7e
SC
51240 COND_TOOLKIT_MGL="#"
51241 if test "x$TOOLKIT" = "xMGL" ; then
51242 COND_TOOLKIT_MGL=""
51243 fi
51244
51245 COND_TOOLKIT_MGL_USE_GUI_1="#"
51246 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
51247 COND_TOOLKIT_MGL_USE_GUI_1=""
51248 fi
51249
51250 COND_TOOLKIT_MOTIF="#"
51251 if test "x$TOOLKIT" = "xMOTIF" ; then
51252 COND_TOOLKIT_MOTIF=""
51253 fi
51254
51255 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
51256 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
51257 COND_TOOLKIT_MOTIF_USE_GUI_1=""
51258 fi
51259
51260 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
51261 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51262 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
51263 fi
51264
51265 COND_TOOLKIT_MSW="#"
51266 if test "x$TOOLKIT" = "xMSW" ; then
51267 COND_TOOLKIT_MSW=""
51268 fi
51269
51270 COND_TOOLKIT_MSW_USE_GUI_1="#"
51271 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
51272 COND_TOOLKIT_MSW_USE_GUI_1=""
51273 fi
51274
51275 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
51276 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51277 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
51278 fi
51279
0ee4059d
DE
51280 COND_TOOLKIT_MSW_WXUNIV_0="#"
51281 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
51282 COND_TOOLKIT_MSW_WXUNIV_0=""
51283 fi
51284
2ea057f9
SC
51285 COND_TOOLKIT_OSX_CARBON="#"
51286 if test "x$TOOLKIT" = "xOSX_CARBON" ; then
51287 COND_TOOLKIT_OSX_CARBON=""
51288 fi
51289
51290 COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
51291 if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
51292 COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
51293 fi
51294
2ea057f9
SC
51295 COND_TOOLKIT_OSX_COCOA="#"
51296 if test "x$TOOLKIT" = "xOSX_COCOA" ; then
51297 COND_TOOLKIT_OSX_COCOA=""
51298 fi
51299
51300 COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
51301 if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
51302 COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
51303 fi
51304
2ea057f9
SC
51305 COND_TOOLKIT_OSX_IPHONE="#"
51306 if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
51307 COND_TOOLKIT_OSX_IPHONE=""
51308 fi
51309
c9554803
VZ
51310 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
51311 if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
51312 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
51313 fi
51314
51315 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
51316 if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51317 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
51318 fi
51319
a848cd7e
SC
51320 COND_TOOLKIT_PM="#"
51321 if test "x$TOOLKIT" = "xPM" ; then
51322 COND_TOOLKIT_PM=""
51323 fi
51324
51325 COND_TOOLKIT_PM_USE_GUI_1="#"
51326 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
51327 COND_TOOLKIT_PM_USE_GUI_1=""
51328 fi
51329
51330 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
51331 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51332 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
51333 fi
51334
3fd9c298
DE
51335 COND_TOOLKIT_WINCE="#"
51336 if test "x$TOOLKIT" = "xWINCE" ; then
51337 COND_TOOLKIT_WINCE=""
51338 fi
51339
51340 COND_TOOLKIT_WINCE_USE_GUI_1="#"
51341 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
51342 COND_TOOLKIT_WINCE_USE_GUI_1=""
51343 fi
51344
51345 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
51346 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51347 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
51348 fi
51349
0ee4059d
DE
51350 COND_TOOLKIT_WINCE_WXUNIV_0="#"
51351 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
51352 COND_TOOLKIT_WINCE_WXUNIV_0=""
51353 fi
51354
a848cd7e
SC
51355 COND_TOOLKIT_X11="#"
51356 if test "x$TOOLKIT" = "xX11" ; then
51357 COND_TOOLKIT_X11=""
51358 fi
51359
51360 COND_TOOLKIT_X11_USE_GUI_1="#"
51361 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
51362 COND_TOOLKIT_X11_USE_GUI_1=""
51363 fi
51364
51365 COND_UNICODE_1="#"
51366 if test "x$UNICODE" = "x1" ; then
51367 COND_UNICODE_1=""
51368 fi
51369
a12bd55b
VZ
51370 COND_USE_CAIRO_1="#"
51371 if test "x$USE_CAIRO" = "x1" ; then
51372 COND_USE_CAIRO_1=""
51373 fi
51374
a848cd7e
SC
51375 COND_USE_EXCEPTIONS_0="#"
51376 if test "x$USE_EXCEPTIONS" = "x0" ; then
51377 COND_USE_EXCEPTIONS_0=""
51378 fi
51379
51380 COND_USE_EXCEPTIONS_1="#"
51381 if test "x$USE_EXCEPTIONS" = "x1" ; then
51382 COND_USE_EXCEPTIONS_1=""
51383 fi
51384
51385 COND_USE_GUI_0="#"
51386 if test "x$USE_GUI" = "x0" ; then
51387 COND_USE_GUI_0=""
51388 fi
51389
51390 COND_USE_GUI_1="#"
51391 if test "x$USE_GUI" = "x1" ; then
51392 COND_USE_GUI_1=""
51393 fi
51394
7dd1ae11
VS
51395 COND_USE_GUI_1_USE_OPENGL_1="#"
51396 if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51397 COND_USE_GUI_1_USE_OPENGL_1=""
51398 fi
51399
a848cd7e
SC
51400 COND_USE_GUI_1_WXUNIV_0="#"
51401 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51402 COND_USE_GUI_1_WXUNIV_0=""
51403 fi
51404
51405 COND_USE_GUI_1_WXUNIV_1="#"
51406 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
51407 COND_USE_GUI_1_WXUNIV_1=""
51408 fi
51409
51410 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
51411 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51412 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
51413 fi
51414
51415 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
51416 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51417 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
51418 fi
51419
51420 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
51421 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51422 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
51423 fi
51424
03c6117e
VZ
51425 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
51426 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51427 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
51428 fi
51429
51430 COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
51431 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51432 COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
51433 fi
51434
51435 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
51436 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51437 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
51438 fi
51439
ac209a0f
VZ
51440 COND_USE_OPENGL_1="#"
51441 if test "x$USE_OPENGL" = "x1" ; then
51442 COND_USE_OPENGL_1=""
51443 fi
51444
f10e38c4
VZ
51445 COND_USE_PCH_1="#"
51446 if test "x$USE_PCH" = "x1" ; then
51447 COND_USE_PCH_1=""
51448 fi
51449
a848cd7e
SC
51450 COND_USE_PLUGINS_0="#"
51451 if test "x$USE_PLUGINS" = "x0" ; then
51452 COND_USE_PLUGINS_0=""
51453 fi
51454
0b78747f
MW
51455 COND_USE_RTTI_0="#"
51456 if test "x$USE_RTTI" = "x0" ; then
51457 COND_USE_RTTI_0=""
51458 fi
51459
51460 COND_USE_RTTI_1="#"
51461 if test "x$USE_RTTI" = "x1" ; then
51462 COND_USE_RTTI_1=""
51463 fi
51464
2c459beb
VZ
51465 COND_USE_SOTWOSYMLINKS_1="#"
51466 if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
51467 COND_USE_SOTWOSYMLINKS_1=""
a848cd7e
SC
51468 fi
51469
eb730a0c
JS
51470 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
51471 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51472 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
51473 fi
51474
a848cd7e
SC
51475 COND_USE_SOVERLINUX_1="#"
51476 if test "x$USE_SOVERLINUX" = "x1" ; then
51477 COND_USE_SOVERLINUX_1=""
51478 fi
51479
51480 COND_USE_SOVERSION_0="#"
51481 if test "x$USE_SOVERSION" = "x0" ; then
51482 COND_USE_SOVERSION_0=""
51483 fi
51484
2c459beb
VZ
51485 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
51486 if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
51487 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
51488 fi
51489
a848cd7e
SC
51490 COND_USE_SOVERSOLARIS_1="#"
51491 if test "x$USE_SOVERSOLARIS" = "x1" ; then
51492 COND_USE_SOVERSOLARIS_1=""
51493 fi
51494
7708a267
VS
51495 COND_USE_STC_1="#"
51496 if test "x$USE_STC" = "x1" ; then
51497 COND_USE_STC_1=""
51498 fi
51499
0b78747f
MW
51500 COND_USE_THREADS_0="#"
51501 if test "x$USE_THREADS" = "x0" ; then
51502 COND_USE_THREADS_0=""
51503 fi
51504
51505 COND_USE_THREADS_1="#"
51506 if test "x$USE_THREADS" = "x1" ; then
51507 COND_USE_THREADS_1=""
51508 fi
51509
a13a7f89
RL
51510 COND_USE_XRC_1="#"
51511 if test "x$USE_XRC" = "x1" ; then
51512 COND_USE_XRC_1=""
51513 fi
51514
eb730a0c
JS
51515 COND_WINDOWS_IMPLIB_1="#"
51516 if test "x$WINDOWS_IMPLIB" = "x1" ; then
51517 COND_WINDOWS_IMPLIB_1=""
51518 fi
51519
a848cd7e
SC
51520 COND_WITH_PLUGIN_SDL_1="#"
51521 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
51522 COND_WITH_PLUGIN_SDL_1=""
51523 fi
51524
1e6eb025
VZ
51525 COND_WXUNIV_0="#"
51526 if test "x$WXUNIV" = "x0" ; then
51527 COND_WXUNIV_0=""
51528 fi
51529
a848cd7e
SC
51530 COND_WXUNIV_1="#"
51531 if test "x$WXUNIV" = "x1" ; then
51532 COND_WXUNIV_1=""
51533 fi
51534
51535 COND_WXUSE_EXPAT_BUILTIN="#"
51536 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
51537 COND_WXUSE_EXPAT_BUILTIN=""
51538 fi
51539
51540 COND_WXUSE_LIBJPEG_BUILTIN="#"
51541 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51542 COND_WXUSE_LIBJPEG_BUILTIN=""
51543 fi
51544
51545 COND_WXUSE_LIBPNG_BUILTIN="#"
51546 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51547 COND_WXUSE_LIBPNG_BUILTIN=""
51548 fi
51549
51550 COND_WXUSE_LIBTIFF_BUILTIN="#"
51551 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51552 COND_WXUSE_LIBTIFF_BUILTIN=""
51553 fi
51554
a848cd7e
SC
51555 COND_WXUSE_REGEX_BUILTIN="#"
51556 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
51557 COND_WXUSE_REGEX_BUILTIN=""
51558 fi
51559
51560 COND_WXUSE_ZLIB_BUILTIN="#"
51561 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
51562 COND_WXUSE_ZLIB_BUILTIN=""
51563 fi
51564
03c6117e
VZ
51565 COND_wxUSE_EXPAT_builtin="#"
51566 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
51567 COND_wxUSE_EXPAT_builtin=""
51568 fi
51569
51570 COND_wxUSE_LIBJPEG_builtin="#"
51571 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51572 COND_wxUSE_LIBJPEG_builtin=""
51573 fi
51574
51575 COND_wxUSE_LIBPNG_builtin="#"
51576 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51577 COND_wxUSE_LIBPNG_builtin=""
51578 fi
51579
51580 COND_wxUSE_LIBTIFF_builtin="#"
51581 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51582 COND_wxUSE_LIBTIFF_builtin=""
51583 fi
51584
51585 COND_wxUSE_REGEX_builtin="#"
51586 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
51587 COND_wxUSE_REGEX_builtin=""
51588 fi
51589
51590 COND_wxUSE_ZLIB_builtin="#"
51591 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
51592 COND_wxUSE_ZLIB_builtin=""
51593 fi
51594
a848cd7e
SC
51595
51596
810b94f0 51597 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
d589327a
VZ
51598 { { 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
51599echo "$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;}
810b94f0
MW
51600 { (exit 1); exit 1; }; }
51601 fi
51602
2057db16 51603 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
d589327a
VZ
51604 { { 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
51605echo "$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;}
2057db16
VS
51606 { (exit 1); exit 1; }; }
51607 fi
51608
a848cd7e 51609
ebda9490
VZ
51610case ${INSTALL} in
51611 /* ) # Absolute
51612 ;;
51613 ?:* ) # Drive letter, considered as absolute.
51614 ;;
51615 *)
51616 INSTALL=`pwd`/${INSTALL} ;;
51617esac
51618
ecac5b81
VZ
51619if test "$wxUSE_GUI" = "yes"; then
51620
51621if test "$wxUSE_MSW" = 1 ; then
51622 if test "x$WINDRES" = "x"; then
d589327a
VZ
51623 { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
51624echo "$as_me: error: Required windres program not found" >&2;}
ecac5b81
VZ
51625 { (exit 1); exit 1; }; }
51626 fi
51627
da16724e 51628 RESCOMP="$WINDRES $WINDRES_CPU_DEFINE"
ecac5b81
VZ
51629fi
51630
f10f4c87 51631if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
ecac5b81
VZ
51632 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
51633 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
51634
51635 LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
51636
51637 # Extract the first word of "DeRez", so it can be a program name with args.
51638set dummy DeRez; ac_word=$2
d589327a
VZ
51639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
51640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ecac5b81 51641if test "${ac_cv_prog_DEREZ+set}" = set; then
d589327a 51642 echo $ECHO_N "(cached) $ECHO_C" >&6
ecac5b81
VZ
51643else
51644 if test -n "$DEREZ"; then
51645 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
51646else
51647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51648for as_dir in $PATH
51649do
51650 IFS=$as_save_IFS
51651 test -z "$as_dir" && as_dir=.
51652 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 51653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ecac5b81 51654 ac_cv_prog_DEREZ="DeRez"
d589327a 51655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ecac5b81
VZ
51656 break 2
51657 fi
51658done
51659done
47964710 51660IFS=$as_save_IFS
ecac5b81
VZ
51661
51662 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
51663fi
51664fi
51665DEREZ=$ac_cv_prog_DEREZ
51666if test -n "$DEREZ"; then
d589327a
VZ
51667 { echo "$as_me:$LINENO: result: $DEREZ" >&5
51668echo "${ECHO_T}$DEREZ" >&6; }
ecac5b81 51669else
d589327a
VZ
51670 { echo "$as_me:$LINENO: result: no" >&5
51671echo "${ECHO_T}no" >&6; }
ecac5b81
VZ
51672fi
51673
51674
47964710 51675
ecac5b81
VZ
51676 MACSETFILE="\$(SETFILE)"
51677
2ea057f9 51678 if test "$wxUSE_OSX_CARBON" = 1; then
ecac5b81
VZ
51679 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
51680 RESCOMP="$REZ"
51681 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
51682 else
51683 POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
51684 RESCOMP="cat /dev/null \| $REZ"
51685 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
51686 fi
51687
51688else
51689 MACSETFILE="@true"
51690
51691 if test "$wxUSE_PM" = 1; then
51692 RESCOMP="emxbind"
51693 WXCONFIG_RESFLAGS="-ep"
51694
51695 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
51696 else
51697 POSTLINK_COMMAND="@true"
51698 fi
51699fi
51700
51701fi
51702
51703
a81d5bb6
MW
51704if test $GCC_PCH = 1
51705then
51706 if test "$wx_cv_gcc_pch_bug" = yes; then
d589327a
VZ
51707 { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
51708echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
51709 { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
51710echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
51711 { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
51712echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
a81d5bb6
MW
51713 fi
51714
64d975b2
DE
51715 # Our WX_PRECOMP flag does not make sense for any language except C++ because
51716 # the headers that benefit from precompilation are mostly C++ headers.
51717 CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
51718 # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
51719 #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
a81d5bb6
MW
51720fi
51721
7afc46ab
KO
51722
51723if test "$wxUSE_MAC" = 1 ; then
95768535 51724 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
51725 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
51726 mv temp bk-deps
51727 chmod +x bk-deps
51728 fi
51729fi
51730
ceec2216 51731if test "$wxUSE_SHARED" = "yes"; then
5b674b9d
DE
51732 case "${host}" in
51733 *-pc-os2_emx | *-pc-os2-emx )
51734 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51735 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
ec3edcc9
VZ
51736 cp -p ${srcdir}/src/os2/dllnames.sh .
51737 cp -p ${srcdir}/src/os2/dllar.sh .
5b674b9d
DE
51738 ;;
51739 esac
ceec2216 51740fi
69120ee4
VZ
51741if test "$wxUSE_OMF" = "yes"; then
51742 case "${host}" in
51743 *-pc-os2_emx | *-pc-os2-emx )
51744 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
51745 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
51746 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
51747 ;;
51748 esac
51749fi
a848cd7e 51750
5ff751d6 51751WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e 51752
43a7c679
VZ
51753
51754case "${host}" in
51755 *-*-solaris2* )
efb8d630 51756 if test "$GCC" = yes; then
43a7c679
VZ
51757 CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
51758 LIBS=`echo $LIBS | sed 's/-mt//'`
51759 EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
51760 fi
51761 ;;
51762
51763 *-*-linux* )
51764 if test "x$SUNCXX" = xyes; then
51765 CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
51766 LIBS=`echo $LIBS | sed 's/-pthread//'`
51767 EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
51768 fi
51769 ;;
51770esac
51771
0ff20b9f
VS
51772CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
51773CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
08f20edc
VZ
51774OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
51775OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
0ff20b9f 51776
a848cd7e
SC
51777SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
51778
51779
51780
51781
51782
51783
51784
51785
51786
51787
51788
51789
51790
51791
51792
51793
51794
51795
51796
51797
51798
51799
51800
51801
51802
51803
51804
51805
51806
51807
51808
51809
51810
51811
51812
51813
51814
51815
51816
51817
51818
51819
a848cd7e
SC
51820
51821
51822
51823
51824
51825
51826
51827
51828
51829
51830
51831
a848cd7e
SC
51832
51833
ddd14b14 51834
d4fbe1d8 51835
a848cd7e
SC
51836
51837
d589327a
VZ
51838{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
51839echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
51840set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
47964710 51841if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d589327a 51842 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
51843else
51844 cat >conftest.make <<\_ACEOF
47964710 51845SHELL = /bin/sh
a848cd7e 51846all:
47964710 51847 @echo '@@@%%%=$(MAKE)=@@@%%%'
a848cd7e
SC
51848_ACEOF
51849# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47964710
VS
51850case `${MAKE-make} -f conftest.make 2>/dev/null` in
51851 *@@@%%%=?*=@@@%%%*)
51852 eval ac_cv_prog_make_${ac_make}_set=yes;;
51853 *)
51854 eval ac_cv_prog_make_${ac_make}_set=no;;
51855esac
a848cd7e
SC
51856rm -f conftest.make
51857fi
47964710 51858if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
d589327a
VZ
51859 { echo "$as_me:$LINENO: result: yes" >&5
51860echo "${ECHO_T}yes" >&6; }
a848cd7e
SC
51861 SET_MAKE=
51862else
d589327a
VZ
51863 { echo "$as_me:$LINENO: result: no" >&5
51864echo "${ECHO_T}no" >&6; }
a848cd7e
SC
51865 SET_MAKE="MAKE=${MAKE-make}"
51866fi
51867
51868
a848cd7e 51869
47964710 51870ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
ceec2216 51871
a848cd7e 51872
5c60e845 51873if test "$USE_WIN32" = 1; then
d589327a 51874 ac_config_commands="$ac_config_commands rcdefs.h"
5c60e845
MW
51875
51876fi
51877
47964710 51878ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 51879
a848cd7e 51880
47964710 51881ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 51882
ceec2216 51883
2f46438b
FM
51884ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
51885
51886
2dbd07cb 51887if test "$wx_cv_version_script" = "yes"; then
47964710 51888 ac_config_files="$ac_config_files version-script"
2dbd07cb
VZ
51889
51890fi
47964710 51891ac_config_files="$ac_config_files Makefile"
ceec2216
RL
51892
51893
47964710 51894ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
51895
51896
9103d280 51897
1c14217d 51898if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e 51899if test "$wxUSE_GUI" = "yes"; then
cf63f3d3 51900 SUBDIRS="samples demos utils"
bef5e9e5
PC
51901else
51902 SUBDIRS="samples utils"
a848cd7e
SC
51903fi
51904
51905
51906
47964710 51907# Check whether --with-cppunit-prefix was given.
a848cd7e 51908if test "${with_cppunit_prefix+set}" = set; then
47964710 51909 withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
a848cd7e
SC
51910else
51911 cppunit_config_prefix=""
47964710
VS
51912fi
51913
84ebfcbd 51914
47964710 51915# Check whether --with-cppunit-exec-prefix was given.
a848cd7e 51916if test "${with_cppunit_exec_prefix+set}" = set; then
47964710 51917 withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
a848cd7e
SC
51918else
51919 cppunit_config_exec_prefix=""
47964710
VS
51920fi
51921
a848cd7e
SC
51922
51923 if test x$cppunit_config_exec_prefix != x ; then
51924 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
51925 if test x${CPPUNIT_CONFIG+set} != xset ; then
51926 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
51927 fi
51928 fi
51929 if test x$cppunit_config_prefix != x ; then
51930 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
51931 if test x${CPPUNIT_CONFIG+set} != xset ; then
51932 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
51933 fi
51934 fi
51935
51936 # Extract the first word of "cppunit-config", so it can be a program name with args.
51937set dummy cppunit-config; ac_word=$2
d589327a
VZ
51938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
51939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a848cd7e 51940if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
d589327a 51941 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e
SC
51942else
51943 case $CPPUNIT_CONFIG in
51944 [\\/]* | ?:[\\/]*)
51945 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
51946 ;;
51947 *)
51948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51949for as_dir in $PATH
51950do
51951 IFS=$as_save_IFS
51952 test -z "$as_dir" && as_dir=.
51953 for ac_exec_ext in '' $ac_executable_extensions; do
47964710 51954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a848cd7e 51955 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
d589327a 51956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a848cd7e
SC
51957 break 2
51958 fi
51959done
51960done
47964710 51961IFS=$as_save_IFS
a848cd7e
SC
51962
51963 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
51964 ;;
51965esac
51966fi
51967CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
a848cd7e 51968if test -n "$CPPUNIT_CONFIG"; then
d589327a
VZ
51969 { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
51970echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
a848cd7e 51971else
d589327a
VZ
51972 { echo "$as_me:$LINENO: result: no" >&5
51973echo "${ECHO_T}no" >&6; }
a848cd7e
SC
51974fi
51975
47964710 51976
a848cd7e
SC
51977 cppunit_version_min=1.8.0
51978
d589327a
VZ
51979 { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
51980echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
a848cd7e
SC
51981 no_cppunit=""
51982 if test "$CPPUNIT_CONFIG" = "no" ; then
d589327a
VZ
51983 { echo "$as_me:$LINENO: result: no" >&5
51984echo "${ECHO_T}no" >&6; }
a848cd7e
SC
51985 no_cppunit=yes
51986 else
51987 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
51988 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
51989 cppunit_version=`$CPPUNIT_CONFIG --version`
51990
51991 cppunit_major_version=`echo $cppunit_version | \
51992 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51993 cppunit_minor_version=`echo $cppunit_version | \
51994 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51995 cppunit_micro_version=`echo $cppunit_version | \
51996 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51997
51998 cppunit_major_min=`echo $cppunit_version_min | \
51999 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52000 cppunit_minor_min=`echo $cppunit_version_min | \
52001 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52002 cppunit_micro_min=`echo $cppunit_version_min | \
52003 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52004
52005 cppunit_version_proper=`expr \
52006 $cppunit_major_version \> $cppunit_major_min \| \
52007 $cppunit_major_version \= $cppunit_major_min \& \
52008 $cppunit_minor_version \> $cppunit_minor_min \| \
52009 $cppunit_major_version \= $cppunit_major_min \& \
52010 $cppunit_minor_version \= $cppunit_minor_min \& \
52011 $cppunit_micro_version \>= $cppunit_micro_min `
52012
52013 if test "$cppunit_version_proper" = "1" ; then
d589327a
VZ
52014 { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
52015echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
a848cd7e 52016 else
d589327a
VZ
52017 { echo "$as_me:$LINENO: result: no" >&5
52018echo "${ECHO_T}no" >&6; }
a848cd7e
SC
52019 no_cppunit=yes
52020 fi
52021 fi
52022
52023 if test "x$no_cppunit" = x ; then
c2218763 52024 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
52025 else
52026 CPPUNIT_CFLAGS=""
52027 CPPUNIT_LIBS=""
c2218763 52028 :
a848cd7e
SC
52029 fi
52030
52031
52032
52033
52034
bef5e9e5 52035for subdir in $SUBDIRS; do
a848cd7e
SC
52036 if test -d ${srcdir}/${subdir} ; then
52037 if test "$wxUSE_GUI" = "yes"; then
52038 if test ${subdir} = "samples"; then
52039 makefiles="samples/Makefile.in $makefiles"
bef5e9e5 52040 for sample in $SAMPLES_SUBDIRS; do
a848cd7e
SC
52041 if test -d $srcdir/samples/$sample; then
52042 makefiles="samples/$sample/Makefile.in $makefiles"
52043 fi
52044 done
9c112555 52045 else
435a5ad0 52046 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
9c112555
MW
52047 eval "disabled=\$$disabled_var"
52048 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
252a5022 52049 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
a848cd7e 52050 fi
bef5e9e5 52051 else
eeb67742 52052 if test ${subdir} = "samples"; then
ac209a0f
VZ
52053 makefiles="samples/Makefile.in $makefiles"
52054 for sample in `echo $SAMPLES_SUBDIRS`; do
52055 if test -d $srcdir/samples/$sample; then
52056 makefiles="samples/$sample/Makefile.in $makefiles"
52057 fi
52058 done
a848cd7e 52059 elif test ${subdir} = "utils"; then
6537ccf8 52060 makefiles=""
eeb67742 52061 for util in ifacecheck ; do
6537ccf8 52062 if test -d $srcdir/utils/$util ; then
eeb67742 52063 makefiles="utils/$util/src/Makefile.in \
6537ccf8
VS
52064 $makefiles"
52065 fi
52066 done
bef5e9e5
PC
52067 else
52068 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
a848cd7e
SC
52069 fi
52070 fi
52071
52072 for mkin in $makefiles ; do
52073 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
47964710 52074 ac_config_files="$ac_config_files $mk"
a848cd7e
SC
52075
52076 done
52077 fi
52078done
1c14217d 52079fi
a848cd7e
SC
52080cat >confcache <<\_ACEOF
52081# This file is a shell script that caches the results of configure
52082# tests run on this system so they can be shared between configure
52083# scripts and configure runs, see configure's option --config-cache.
52084# It is not useful on other systems. If it contains results you don't
52085# want to keep, you may remove or edit it.
52086#
52087# config.status only pays attention to the cache file if you give it
52088# the --recheck option to rerun configure.
52089#
52090# `ac_cv_env_foo' variables (set or unset) will be overridden when
52091# loading this file, other *unset* `ac_cv_foo' will be assigned the
52092# following values.
52093
52094_ACEOF
52095
52096# The following way of writing the cache mishandles newlines in values,
52097# but we know of no workaround that is simple, portable, and efficient.
47964710 52098# So, we kill variables containing newlines.
a848cd7e
SC
52099# Ultrix sh set writes to stderr and can't be redirected directly,
52100# and sets the high bit in the cache file unless we assign to the vars.
47964710
VS
52101(
52102 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
52103 eval ac_val=\$$ac_var
52104 case $ac_val in #(
52105 *${as_nl}*)
52106 case $ac_var in #(
d589327a
VZ
52107 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
52108echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
47964710
VS
52109 esac
52110 case $ac_var in #(
52111 _ | IFS | as_nl) ;; #(
52112 *) $as_unset $ac_var ;;
52113 esac ;;
52114 esac
52115 done
52116
a848cd7e 52117 (set) 2>&1 |
47964710
VS
52118 case $as_nl`(ac_space=' '; set) 2>&1` in #(
52119 *${as_nl}ac_space=\ *)
a848cd7e
SC
52120 # `set' does not quote correctly, so add quotes (double-quote
52121 # substitution turns \\\\ into \\, and sed turns \\ into \).
52122 sed -n \
ac1cb8d3
VS
52123 "s/'/'\\\\''/g;
52124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47964710 52125 ;; #(
a848cd7e
SC
52126 *)
52127 # `set' quotes correctly as required by POSIX, so do not add quotes.
47964710 52128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
a848cd7e 52129 ;;
47964710
VS
52130 esac |
52131 sort
52132) |
a848cd7e 52133 sed '
47964710 52134 /^ac_cv_env_/b end
a848cd7e 52135 t clear
47964710 52136 :clear
a848cd7e
SC
52137 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52138 t end
47964710
VS
52139 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
52140 :end' >>confcache
52141if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
52142 if test -w "$cache_file"; then
52143 test "x$cache_file" != "x/dev/null" &&
d589327a
VZ
52144 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
52145echo "$as_me: updating cache $cache_file" >&6;}
a848cd7e
SC
52146 cat confcache >$cache_file
52147 else
d589327a
VZ
52148 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
52149echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a848cd7e
SC
52150 fi
52151fi
52152rm -f confcache
52153
52154test "x$prefix" = xNONE && prefix=$ac_default_prefix
52155# Let make expand exec_prefix.
52156test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52157
a848cd7e
SC
52158DEFS=-DHAVE_CONFIG_H
52159
52160ac_libobjs=
52161ac_ltlibobjs=
52162for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52163 # 1. Remove the extension, and $U if already installed.
47964710 52164 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
d589327a 52165 ac_i=`echo "$ac_i" | sed "$ac_script"`
47964710
VS
52166 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
52167 # will be set to the directory where LIBOBJS objects are built.
52168 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
52169 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a848cd7e
SC
52170done
52171LIBOBJS=$ac_libobjs
52172
52173LTLIBOBJS=$ac_ltlibobjs
52174
52175
52176
52177: ${CONFIG_STATUS=./config.status}
52178ac_clean_files_save=$ac_clean_files
52179ac_clean_files="$ac_clean_files $CONFIG_STATUS"
d589327a
VZ
52180{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52181echo "$as_me: creating $CONFIG_STATUS" >&6;}
52182cat >$CONFIG_STATUS <<_ACEOF
a848cd7e
SC
52183#! $SHELL
52184# Generated by $as_me.
52185# Run this file to recreate the current configuration.
52186# Compiler output produced by configure, useful for debugging
52187# configure, is in config.log if it exists.
52188
52189debug=false
52190ac_cs_recheck=false
52191ac_cs_silent=false
52192SHELL=\${CONFIG_SHELL-$SHELL}
52193_ACEOF
52194
d589327a 52195cat >>$CONFIG_STATUS <<\_ACEOF
a848cd7e
SC
52196## --------------------- ##
52197## M4sh Initialization. ##
52198## --------------------- ##
52199
47964710
VS
52200# Be more Bourne compatible
52201DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
52202if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52203 emulate sh
52204 NULLCMD=:
d589327a 52205 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
a848cd7e
SC
52206 # is contrary to our usage. Disable this feature.
52207 alias -g '${1+"$@"}'='"$@"'
47964710
VS
52208 setopt NO_GLOB_SUBST
52209else
52210 case `(set -o) 2>/dev/null` in
52211 *posix*) set -o posix ;;
52212esac
52213
52214fi
52215
52216
52217
52218
52219# PATH needs CR
52220# Avoid depending upon Character Ranges.
52221as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52222as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52223as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52224as_cr_digits='0123456789'
52225as_cr_alnum=$as_cr_Letters$as_cr_digits
52226
aa113d87
FM
52227# The user is always right.
52228if test "${PATH_SEPARATOR+set}" != set; then
d589327a
VZ
52229 echo "#! /bin/sh" >conf$$.sh
52230 echo "exit 0" >>conf$$.sh
52231 chmod +x conf$$.sh
52232 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52233 PATH_SEPARATOR=';'
52234 else
52235 PATH_SEPARATOR=:
52236 fi
52237 rm -f conf$$.sh
7fd3acaf
RD
52238fi
52239
a848cd7e 52240# Support unset when possible.
ac1cb8d3 52241if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
52242 as_unset=unset
52243else
52244 as_unset=false
52245fi
52246
52247
47964710
VS
52248# IFS
52249# We need space, tab and new line, in precisely that order. Quoting is
52250# there to prevent editors from complaining about space-tab.
52251# (If _AS_PATH_WALK were called with IFS unset, it would disable word
52252# splitting by setting IFS to empty value.)
d589327a
VZ
52253as_nl='
52254'
47964710
VS
52255IFS=" "" $as_nl"
52256
52257# Find who we are. Look in the path if we contain no directory separator.
52258case $0 in
52259 *[\\/]* ) as_myself=$0 ;;
52260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52261for as_dir in $PATH
52262do
52263 IFS=$as_save_IFS
52264 test -z "$as_dir" && as_dir=.
52265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
52266done
52267IFS=$as_save_IFS
52268
52269 ;;
52270esac
52271# We did not find ourselves, most probably we were run as `sh COMMAND'
52272# in which case we are not to be found in the path.
52273if test "x$as_myself" = x; then
52274 as_myself=$0
52275fi
52276if test ! -f "$as_myself"; then
d589327a 52277 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
47964710
VS
52278 { (exit 1); exit 1; }
52279fi
52280
a848cd7e 52281# Work around bugs in pre-3.0 UWIN ksh.
47964710
VS
52282for as_var in ENV MAIL MAILPATH
52283do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
52284done
a848cd7e
SC
52285PS1='$ '
52286PS2='> '
52287PS4='+ '
52288
52289# NLS nuisances.
d589327a
VZ
52290for as_var in \
52291 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
52292 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
52293 LC_TELEPHONE LC_TIME
52294do
52295 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
52296 eval $as_var=C; export $as_var
52297 else
52298 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
52299 fi
52300done
a848cd7e
SC
52301
52302# Required to use basename.
47964710
VS
52303if expr a : '\(a\)' >/dev/null 2>&1 &&
52304 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a848cd7e
SC
52305 as_expr=expr
52306else
52307 as_expr=false
52308fi
52309
47964710 52310if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
a848cd7e
SC
52311 as_basename=basename
52312else
52313 as_basename=false
52314fi
52315
52316
52317# Name of the executable.
47964710 52318as_me=`$as_basename -- "$0" ||
a848cd7e
SC
52319$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
52320 X"$0" : 'X\(//\)$' \| \
47964710 52321 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d589327a 52322echo X/"$0" |
47964710
VS
52323 sed '/^.*\/\([^/][^/]*\)\/*$/{
52324 s//\1/
52325 q
52326 }
52327 /^X\/\(\/\/\)$/{
52328 s//\1/
52329 q
52330 }
52331 /^X\/\(\/\).*/{
52332 s//\1/
52333 q
52334 }
52335 s/.*/./; q'`
bd8a7646 52336
47964710
VS
52337# CDPATH.
52338$as_unset CDPATH
23575150 52339
4db03d26 52340
bd8a7646 52341
bd8a7646
RR
52342 as_lineno_1=$LINENO
52343 as_lineno_2=$LINENO
bd8a7646 52344 test "x$as_lineno_1" != "x$as_lineno_2" &&
47964710 52345 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a848cd7e
SC
52346
52347 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
52348 # uniformly replaced by the line number. The first 'sed' inserts a
47964710
VS
52349 # line-number line after each line using $LINENO; the second 'sed'
52350 # does the real work. The second script uses 'N' to pair each
52351 # line-number line with the line containing $LINENO, and appends
52352 # trailing '-' during substitution so that $LINENO is not a special
52353 # case at line end.
a848cd7e 52354 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
47964710
VS
52355 # scripts with optimization help from Paolo Bonzini. Blame Lee
52356 # E. McMahon (1931-1989) for sed's syntax. :-)
52357 sed -n '
52358 p
52359 /[$]LINENO/=
52360 ' <$as_myself |
a848cd7e 52361 sed '
47964710
VS
52362 s/[$]LINENO.*/&-/
52363 t lineno
52364 b
52365 :lineno
a848cd7e 52366 N
47964710
VS
52367 :loop
52368 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a848cd7e 52369 t loop
47964710 52370 s/-\n.*//
a848cd7e 52371 ' >$as_me.lineno &&
47964710 52372 chmod +x "$as_me.lineno" ||
d589327a 52373 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a848cd7e
SC
52374 { (exit 1); exit 1; }; }
52375
52376 # Don't try to exec as it changes $[0], causing all sort of problems
52377 # (the dirname of $[0] is not the place where we might find the
47964710
VS
52378 # original and so on. Autoconf is especially sensitive to this).
52379 . "./$as_me.lineno"
a848cd7e
SC
52380 # Exit status is that of the last command.
52381 exit
52382}
52383
52384
47964710
VS
52385if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
52386 as_dirname=dirname
52387else
52388 as_dirname=false
52389fi
52390
52391ECHO_C= ECHO_N= ECHO_T=
52392case `echo -n x` in
52393-n*)
52394 case `echo 'x\c'` in
52395 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
52396 *) ECHO_C='\c';;
52397 esac;;
52398*)
52399 ECHO_N='-n';;
a848cd7e 52400esac
d589327a 52401
47964710
VS
52402if expr a : '\(a\)' >/dev/null 2>&1 &&
52403 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a848cd7e
SC
52404 as_expr=expr
52405else
52406 as_expr=false
52407fi
52408
52409rm -f conf$$ conf$$.exe conf$$.file
47964710
VS
52410if test -d conf$$.dir; then
52411 rm -f conf$$.dir/conf$$.file
52412else
52413 rm -f conf$$.dir
d589327a
VZ
52414 mkdir conf$$.dir
52415fi
52416echo >conf$$.file
52417if ln -s conf$$.file conf$$ 2>/dev/null; then
52418 as_ln_s='ln -s'
52419 # ... but there are two gotchas:
52420 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
52421 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
52422 # In both cases, we have to default to `cp -p'.
52423 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
a848cd7e 52424 as_ln_s='cp -p'
d589327a
VZ
52425elif ln conf$$.file conf$$ 2>/dev/null; then
52426 as_ln_s=ln
a848cd7e
SC
52427else
52428 as_ln_s='cp -p'
52429fi
47964710
VS
52430rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
52431rmdir conf$$.dir 2>/dev/null
a848cd7e
SC
52432
52433if mkdir -p . 2>/dev/null; then
52434 as_mkdir_p=:
52435else
ac1cb8d3 52436 test -d ./-p && rmdir ./-p
a848cd7e
SC
52437 as_mkdir_p=false
52438fi
52439
47964710
VS
52440if test -x / >/dev/null 2>&1; then
52441 as_test_x='test -x'
52442else
52443 if ls -dL / >/dev/null 2>&1; then
52444 as_ls_L_option=L
52445 else
52446 as_ls_L_option=
52447 fi
52448 as_test_x='
52449 eval sh -c '\''
52450 if test -d "$1"; then
d589327a 52451 test -d "$1/.";
47964710
VS
52452 else
52453 case $1 in
d589327a 52454 -*)set "./$1";;
47964710
VS
52455 esac;
52456 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
52457 ???[sx]*):;;*)false;;esac;fi
52458 '\'' sh
52459 '
52460fi
52461as_executable_p=$as_test_x
a848cd7e
SC
52462
52463# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 52464as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
52465
52466# Sed expression to map a string onto a valid variable name.
ac1cb8d3 52467as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
52468
52469
a848cd7e
SC
52470exec 6>&1
52471
47964710 52472# Save the log message, to keep $[0] and so on meaningful, and to
a848cd7e 52473# report actual input values of CONFIG_FILES etc. instead of their
47964710
VS
52474# values after options handling.
52475ac_log="
f3239c21 52476This file was extended by wxWidgets $as_me 2.9.1, which was
d589327a 52477generated by GNU Autoconf 2.61. Invocation command line was
a848cd7e
SC
52478
52479 CONFIG_FILES = $CONFIG_FILES
52480 CONFIG_HEADERS = $CONFIG_HEADERS
52481 CONFIG_LINKS = $CONFIG_LINKS
52482 CONFIG_COMMANDS = $CONFIG_COMMANDS
52483 $ $0 $@
52484
47964710
VS
52485on `(hostname || uname -n) 2>/dev/null | sed 1q`
52486"
52487
a848cd7e
SC
52488_ACEOF
52489
d589327a 52490cat >>$CONFIG_STATUS <<_ACEOF
a848cd7e 52491# Files that config.status was made for.
47964710
VS
52492config_files="$ac_config_files"
52493config_headers="$ac_config_headers"
52494config_commands="$ac_config_commands"
bd8a7646 52495
47964710 52496_ACEOF
a848cd7e 52497
d589327a 52498cat >>$CONFIG_STATUS <<\_ACEOF
a848cd7e
SC
52499ac_cs_usage="\
52500\`$as_me' instantiates files from templates according to the
52501current configuration.
52502
d589327a 52503Usage: $0 [OPTIONS] [FILE]...
a848cd7e
SC
52504
52505 -h, --help print this help, then exit
47964710 52506 -V, --version print version number and configuration settings, then exit
d589327a 52507 -q, --quiet do not print progress messages
a848cd7e
SC
52508 -d, --debug don't remove temporary files
52509 --recheck update $as_me by reconfiguring in the same conditions
d589327a
VZ
52510 --file=FILE[:TEMPLATE]
52511 instantiate the configuration file FILE
52512 --header=FILE[:TEMPLATE]
52513 instantiate the configuration header FILE
a848cd7e
SC
52514
52515Configuration files:
52516$config_files
52517
52518Configuration headers:
52519$config_headers
52520
52521Configuration commands:
52522$config_commands
52523
52524Report bugs to <bug-autoconf@gnu.org>."
bd8a7646 52525
47964710 52526_ACEOF
d589327a 52527cat >>$CONFIG_STATUS <<_ACEOF
a848cd7e 52528ac_cs_version="\\
f3239c21 52529wxWidgets config.status 2.9.1
d589327a
VZ
52530configured by $0, generated by GNU Autoconf 2.61,
52531 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
a848cd7e 52532
d589327a 52533Copyright (C) 2006 Free Software Foundation, Inc.
a848cd7e
SC
52534This config.status script is free software; the Free Software Foundation
52535gives unlimited permission to copy, distribute and modify it."
47964710
VS
52536
52537ac_pwd='$ac_pwd'
52538srcdir='$srcdir'
52539INSTALL='$INSTALL'
a848cd7e
SC
52540_ACEOF
52541
d589327a
VZ
52542cat >>$CONFIG_STATUS <<\_ACEOF
52543# If no file are specified by the user, then we need to provide default
52544# value. By we need to know if files were specified by the user.
a848cd7e
SC
52545ac_need_defaults=:
52546while test $# != 0
52547do
52548 case $1 in
52549 --*=*)
47964710
VS
52550 ac_option=`expr "X$1" : 'X\([^=]*\)='`
52551 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a848cd7e
SC
52552 ac_shift=:
52553 ;;
47964710 52554 *)
a848cd7e
SC
52555 ac_option=$1
52556 ac_optarg=$2
52557 ac_shift=shift
52558 ;;
a848cd7e
SC
52559 esac
52560
52561 case $ac_option in
52562 # Handling of the options.
a848cd7e
SC
52563 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
52564 ac_cs_recheck=: ;;
47964710 52565 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
d589327a 52566 echo "$ac_cs_version"; exit ;;
47964710 52567 --debug | --debu | --deb | --de | --d | -d )
a848cd7e
SC
52568 debug=: ;;
52569 --file | --fil | --fi | --f )
52570 $ac_shift
d589327a 52571 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
a848cd7e
SC
52572 ac_need_defaults=false;;
52573 --header | --heade | --head | --hea )
52574 $ac_shift
d589327a 52575 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
a848cd7e 52576 ac_need_defaults=false;;
47964710
VS
52577 --he | --h)
52578 # Conflict between --help and --header
d589327a 52579 { echo "$as_me: error: ambiguous option: $1
47964710
VS
52580Try \`$0 --help' for more information." >&2
52581 { (exit 1); exit 1; }; };;
52582 --help | --hel | -h )
d589327a 52583 echo "$ac_cs_usage"; exit ;;
a848cd7e
SC
52584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
52585 | -silent | --silent | --silen | --sile | --sil | --si | --s)
52586 ac_cs_silent=: ;;
52587
52588 # This is an error.
d589327a 52589 -*) { echo "$as_me: error: unrecognized option: $1
47964710 52590Try \`$0 --help' for more information." >&2
a848cd7e
SC
52591 { (exit 1); exit 1; }; } ;;
52592
47964710
VS
52593 *) ac_config_targets="$ac_config_targets $1"
52594 ac_need_defaults=false ;;
a848cd7e
SC
52595
52596 esac
52597 shift
52598done
52599
52600ac_configure_extra_args=
52601
52602if $ac_cs_silent; then
52603 exec 6>/dev/null
52604 ac_configure_extra_args="$ac_configure_extra_args --silent"
52605fi
52606
52607_ACEOF
d589327a 52608cat >>$CONFIG_STATUS <<_ACEOF
a848cd7e 52609if \$ac_cs_recheck; then
d589327a
VZ
52610 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
52611 CONFIG_SHELL=$SHELL
47964710 52612 export CONFIG_SHELL
d589327a 52613 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a848cd7e
SC
52614fi
52615
52616_ACEOF
d589327a 52617cat >>$CONFIG_STATUS <<\_ACEOF
47964710
VS
52618exec 5>>config.log
52619{
52620 echo
52621 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
52622## Running $as_me. ##
52623_ASBOX
d589327a 52624 echo "$ac_log"
47964710 52625} >&5
a848cd7e 52626
47964710 52627_ACEOF
d589327a 52628cat >>$CONFIG_STATUS <<_ACEOF
a848cd7e 52629#
47964710 52630# INIT-COMMANDS
a848cd7e
SC
52631#
52632
5c60e845
MW
52633 CPP="$CPP"
52634 infile="$srcdir/include/wx/msw/genrcdefs.h"
52635 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
52636
52637
ceec2216
RL
52638 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52639 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52640 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52641 LN_S="${LN_S}"
a848cd7e
SC
52642
52643
52644_ACEOF
52645
d589327a 52646cat >>$CONFIG_STATUS <<\_ACEOF
47964710
VS
52647
52648# Handling of arguments.
a848cd7e
SC
52649for ac_config_target in $ac_config_targets
52650do
47964710
VS
52651 case $ac_config_target in
52652 "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
52653 "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
52654 "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
52655 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
2f46438b 52656 "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
47964710
VS
52657 "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
52658 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
52659 "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
52660 "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
52661
d589327a
VZ
52662 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
52663echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
a848cd7e
SC
52664 { (exit 1); exit 1; }; };;
52665 esac
52666done
52667
47964710 52668
a848cd7e
SC
52669# If the user did not use the arguments to specify the items to instantiate,
52670# then the envvar interface is used. Set only those that are not.
52671# We use the long form for the default assignment because of an extremely
52672# bizarre bug on SunOS 4.1.3.
52673if $ac_need_defaults; then
52674 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
52675 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
52676 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
52677fi
52678
52679# Have a temporary directory for convenience. Make it in the build tree
47964710 52680# simply because there is no reason against having it here, and in addition,
a848cd7e 52681# creating and moving files from /tmp can sometimes cause problems.
47964710
VS
52682# Hook for its removal unless debugging.
52683# Note that there is a small window in which the directory will not be cleaned:
52684# after its creation but before its name has been assigned to `$tmp'.
a848cd7e
SC
52685$debug ||
52686{
47964710
VS
52687 tmp=
52688 trap 'exit_status=$?
52689 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
52690' 0
a848cd7e
SC
52691 trap '{ (exit 1); exit 1; }' 1 2 13 15
52692}
a848cd7e
SC
52693# Create a (secure) tmp directory for tmp files.
52694
52695{
47964710 52696 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
a848cd7e
SC
52697 test -n "$tmp" && test -d "$tmp"
52698} ||
52699{
47964710
VS
52700 tmp=./conf$$-$RANDOM
52701 (umask 077 && mkdir "$tmp")
a848cd7e
SC
52702} ||
52703{
d589327a 52704 echo "$me: cannot create a temporary directory in ." >&2
a848cd7e
SC
52705 { (exit 1); exit 1; }
52706}
52707
d589327a
VZ
52708#
52709# Set up the sed scripts for CONFIG_FILES section.
52710#
52711
52712# No need to generate the scripts if there are no CONFIG_FILES.
52713# This happens for instance when ./config.status config.h
47964710
VS
52714if test -n "$CONFIG_FILES"; then
52715
d589327a 52716_ACEOF
47964710 52717
d589327a
VZ
52718
52719
52720ac_delim='%!_!# '
52721for ac_last_try in false false false false false :; do
52722 cat >conf$$subs.sed <<_ACEOF
52723SHELL!$SHELL$ac_delim
52724PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
52725PACKAGE_NAME!$PACKAGE_NAME$ac_delim
52726PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
52727PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
52728PACKAGE_STRING!$PACKAGE_STRING$ac_delim
52729PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
52730exec_prefix!$exec_prefix$ac_delim
52731prefix!$prefix$ac_delim
52732program_transform_name!$program_transform_name$ac_delim
52733bindir!$bindir$ac_delim
52734sbindir!$sbindir$ac_delim
52735libexecdir!$libexecdir$ac_delim
52736datarootdir!$datarootdir$ac_delim
52737datadir!$datadir$ac_delim
52738sysconfdir!$sysconfdir$ac_delim
52739sharedstatedir!$sharedstatedir$ac_delim
52740localstatedir!$localstatedir$ac_delim
52741includedir!$includedir$ac_delim
52742oldincludedir!$oldincludedir$ac_delim
52743docdir!$docdir$ac_delim
52744infodir!$infodir$ac_delim
52745htmldir!$htmldir$ac_delim
52746dvidir!$dvidir$ac_delim
52747pdfdir!$pdfdir$ac_delim
52748psdir!$psdir$ac_delim
52749libdir!$libdir$ac_delim
52750localedir!$localedir$ac_delim
52751mandir!$mandir$ac_delim
52752DEFS!$DEFS$ac_delim
52753ECHO_C!$ECHO_C$ac_delim
52754ECHO_N!$ECHO_N$ac_delim
52755ECHO_T!$ECHO_T$ac_delim
52756LIBS!$LIBS$ac_delim
52757build_alias!$build_alias$ac_delim
52758host_alias!$host_alias$ac_delim
52759target_alias!$target_alias$ac_delim
52760build!$build$ac_delim
52761build_cpu!$build_cpu$ac_delim
52762build_vendor!$build_vendor$ac_delim
52763build_os!$build_os$ac_delim
52764host!$host$ac_delim
52765host_cpu!$host_cpu$ac_delim
52766host_vendor!$host_vendor$ac_delim
52767host_os!$host_os$ac_delim
52768wx_top_builddir!$wx_top_builddir$ac_delim
52769CC!$CC$ac_delim
52770CFLAGS!$CFLAGS$ac_delim
52771LDFLAGS!$LDFLAGS$ac_delim
52772CPPFLAGS!$CPPFLAGS$ac_delim
52773ac_ct_CC!$ac_ct_CC$ac_delim
52774EXEEXT!$EXEEXT$ac_delim
52775OBJEXT!$OBJEXT$ac_delim
52776CPP!$CPP$ac_delim
52777GREP!$GREP$ac_delim
52778EGREP!$EGREP$ac_delim
52779CXX!$CXX$ac_delim
52780CXXFLAGS!$CXXFLAGS$ac_delim
52781ac_ct_CXX!$ac_ct_CXX$ac_delim
52782AR!$AR$ac_delim
06a08679 52783OSX_SW_VERS!$OSX_SW_VERS$ac_delim
d589327a
VZ
52784subdirs!$subdirs$ac_delim
52785PKG_CONFIG!$PKG_CONFIG$ac_delim
52786GTK_CFLAGS!$GTK_CFLAGS$ac_delim
52787GTK_LIBS!$GTK_LIBS$ac_delim
52788GTK_CONFIG!$GTK_CONFIG$ac_delim
52789DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
52790DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
52791XMKMF!$XMKMF$ac_delim
52792X_CFLAGS!$X_CFLAGS$ac_delim
52793X_PRE_LIBS!$X_PRE_LIBS$ac_delim
52794X_LIBS!$X_LIBS$ac_delim
52795X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
52796PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
52797PANGOX_LIBS!$PANGOX_LIBS$ac_delim
52798PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
52799PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
52800PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
52801PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
52802CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
52803CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
52804LIBICONV!$LIBICONV$ac_delim
52805GXX_VERSION!$GXX_VERSION$ac_delim
52806SDL_CONFIG!$SDL_CONFIG$ac_delim
52807SDL_CFLAGS!$SDL_CFLAGS$ac_delim
52808SDL_LIBS!$SDL_LIBS$ac_delim
52809GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
52810GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
52811LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
52812LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
52813GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
52814GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
52815HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
52816HILDON_LIBS!$HILDON_LIBS$ac_delim
426d19f1
JS
52817HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
52818HILDON2_LIBS!$HILDON2_LIBS$ac_delim
d84e6f50 52819PYTHON!$PYTHON$ac_delim
d589327a
VZ
52820_ACEOF
52821
52822 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52823 break
52824 elif $ac_last_try; then
52825 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52826echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52827 { (exit 1); exit 1; }; }
52828 else
52829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52830 fi
52831done
52832
52833ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52834if test -n "$ac_eof"; then
52835 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52836 ac_eof=`expr $ac_eof + 1`
47964710
VS
52837fi
52838
d589327a
VZ
52839cat >>$CONFIG_STATUS <<_ACEOF
52840cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
52841/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52842_ACEOF
52843sed '
52844s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52845s/^/s,@/; s/!/@,|#_!!_#|/
52846:n
52847t n
52848s/'"$ac_delim"'$/,g/; t
52849s/$/\\/; p
52850N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52851' >>$CONFIG_STATUS <conf$$subs.sed
52852rm -f conf$$subs.sed
52853cat >>$CONFIG_STATUS <<_ACEOF
52854CEOF$ac_eof
47964710
VS
52855_ACEOF
52856
52857
d589327a
VZ
52858ac_delim='%!_!# '
52859for ac_last_try in false false false false false :; do
52860 cat >conf$$subs.sed <<_ACEOF
06a08679 52861COND_PYTHON!$COND_PYTHON$ac_delim
426d19f1
JS
52862CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
52863CAIRO_LIBS!$CAIRO_LIBS$ac_delim
d84e6f50
VZ
52864GST_CFLAGS!$GST_CFLAGS$ac_delim
52865GST_LIBS!$GST_LIBS$ac_delim
d589327a
VZ
52866ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
52867BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
52868STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
52869STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
52870wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
52871wxUSE_REGEX!$wxUSE_REGEX$ac_delim
52872wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
52873wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
52874wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
52875wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
52876VENDOR!$VENDOR$ac_delim
52877OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
52878WX_FLAVOUR!$WX_FLAVOUR$ac_delim
52879WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
52880WXUNIV!$WXUNIV$ac_delim
52881MONOLITHIC!$MONOLITHIC$ac_delim
52882USE_PLUGINS!$USE_PLUGINS$ac_delim
52883CXXWARNINGS!$CXXWARNINGS$ac_delim
52884EXTRALIBS!$EXTRALIBS$ac_delim
52885EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
52886EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
52887EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
52888EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
52889EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
52890EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
52891EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
52892WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
52893EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
52894EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
52895EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
52896EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
52897UNICODE!$UNICODE$ac_delim
d589327a
VZ
52898DEBUG_INFO!$DEBUG_INFO$ac_delim
52899DEBUG_FLAG!$DEBUG_FLAG$ac_delim
52900TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
52901TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
52902DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
52903DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
52904SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
52905HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
52906HOST_SUFFIX!$HOST_SUFFIX$ac_delim
52907CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
52908CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
52909RANLIB!$RANLIB$ac_delim
52910INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
52911INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
52912INSTALL_DATA!$INSTALL_DATA$ac_delim
52913LN_S!$LN_S$ac_delim
52914SET_MAKE!$SET_MAKE$ac_delim
52915MAKE_SET!$MAKE_SET$ac_delim
52916AROPTIONS!$AROPTIONS$ac_delim
52917STRIP!$STRIP$ac_delim
52918NM!$NM$ac_delim
52919INSTALL_DIR!$INSTALL_DIR$ac_delim
52920LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
52921IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
52922PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
52923PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
52924PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
52925PLATFORM_MAC!$PLATFORM_MAC$ac_delim
52926PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
52927PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
52928PLATFORM_OS2!$PLATFORM_OS2$ac_delim
52929PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
52930SO_SUFFIX!$SO_SUFFIX$ac_delim
52931SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
52932DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
52933LIBPREFIX!$LIBPREFIX$ac_delim
52934LIBEXT!$LIBEXT$ac_delim
52935DLLPREFIX!$DLLPREFIX$ac_delim
52936DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
52937dlldir!$dlldir$ac_delim
52938AIX_CXX_LD!$AIX_CXX_LD$ac_delim
52939SHARED_LD_CC!$SHARED_LD_CC$ac_delim
52940SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
52941SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
52942SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
52943PIC_FLAG!$PIC_FLAG$ac_delim
52944WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
52945USE_SOVERSION!$USE_SOVERSION$ac_delim
52946USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
52947USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
52948USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
52949USE_MACVERSION!$USE_MACVERSION$ac_delim
2c459beb 52950USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
d589327a
VZ
52951SONAME_FLAG!$SONAME_FLAG$ac_delim
52952DEPS_TRACKING!$DEPS_TRACKING$ac_delim
52953BK_DEPS!$BK_DEPS$ac_delim
52954WINDRES!$WINDRES$ac_delim
52955REZ!$REZ$ac_delim
52956SETFILE!$SETFILE$ac_delim
52957OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
d589327a
VZ
52958_ACEOF
52959
52960 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52961 break
52962 elif $ac_last_try; then
52963 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52964echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47964710 52965 { (exit 1); exit 1; }; }
d589327a
VZ
52966 else
52967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52968 fi
52969done
52970
52971ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52972if test -n "$ac_eof"; then
52973 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52974 ac_eof=`expr $ac_eof + 1`
52975fi
52976
52977cat >>$CONFIG_STATUS <<_ACEOF
52978cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
52979/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52980_ACEOF
52981sed '
52982s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52983s/^/s,@/; s/!/@,|#_!!_#|/
52984:n
52985t n
52986s/'"$ac_delim"'$/,g/; t
52987s/$/\\/; p
52988N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52989' >>$CONFIG_STATUS <conf$$subs.sed
52990rm -f conf$$subs.sed
52991cat >>$CONFIG_STATUS <<_ACEOF
52992CEOF$ac_eof
52993_ACEOF
52994
52995
47964710
VS
52996ac_delim='%!_!# '
52997for ac_last_try in false false false false false :; do
d589327a 52998 cat >conf$$subs.sed <<_ACEOF
06a08679 52999GCC_PCH!$GCC_PCH$ac_delim
426d19f1
JS
53000ICC_PCH!$ICC_PCH$ac_delim
53001ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
d84e6f50 53002ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
d589327a
VZ
53003BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
53004COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
53005COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
53006COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
53007COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
53008COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
53009COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
53010COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
53011COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
53012COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
53013COND_BUILD_debug!$COND_BUILD_debug$ac_delim
53014COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
53015COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
53016COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
53017COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
53018COND_BUILD_release!$COND_BUILD_release$ac_delim
53019COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
53020COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
53021COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
89b1afb4 53022COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
d589327a
VZ
53023COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
53024COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
53025COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
53026COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
53027COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
53028COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
53029COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
53030COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
53031COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
53032COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
53033COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
53034COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
53035COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53036COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
53037COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
d33ccbe1 53038COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
d589327a
VZ
53039COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
53040COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
53041COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
53042COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
53043COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
53044COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
53045COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
53046COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
53047COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
53048COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
d33ccbe1 53049COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
d589327a
VZ
53050COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
53051COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
53052COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
53053COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
53054COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
53055COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53056COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
53057COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
53058COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
53059COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
d33ccbe1 53060COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
d589327a
VZ
53061COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
53062COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
53063COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
53064COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
53065COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
53066COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
53067COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
53068COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
53069COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
53070COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
53071COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
53072COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
61aba460 53073COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
d589327a
VZ
53074COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
53075COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
53076COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
53077COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
c9554803
VZ
53078COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
53079COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
d589327a
VZ
53080COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
53081COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
53082COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
53083COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
53084COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
53085COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
53086COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
53087COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
53088COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
53089COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
53090COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
53091COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
53092COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
53093COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
53094COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
53095COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
d589327a
VZ
53096_ACEOF
53097
53098 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53099 break
53100 elif $ac_last_try; then
53101 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53102echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47964710 53103 { (exit 1); exit 1; }; }
d589327a
VZ
53104 else
53105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53106 fi
53107done
47964710 53108
d589327a
VZ
53109ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53110if test -n "$ac_eof"; then
53111 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53112 ac_eof=`expr $ac_eof + 1`
53113fi
53114
53115cat >>$CONFIG_STATUS <<_ACEOF
53116cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
53117/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53118_ACEOF
53119sed '
53120s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53121s/^/s,@/; s/!/@,|#_!!_#|/
53122:n
53123t n
53124s/'"$ac_delim"'$/,g/; t
53125s/$/\\/; p
53126N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53127' >>$CONFIG_STATUS <conf$$subs.sed
53128rm -f conf$$subs.sed
53129cat >>$CONFIG_STATUS <<_ACEOF
53130CEOF$ac_eof
53131_ACEOF
53132
53133
53134ac_delim='%!_!# '
53135for ac_last_try in false false false false false :; do
53136 cat >conf$$subs.sed <<_ACEOF
c9554803
VZ
53137COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
53138COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
06a08679 53139COND_SHARED_0!$COND_SHARED_0$ac_delim
61aba460
VS
53140COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
53141COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
426d19f1
JS
53142COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
53143COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
d33ccbe1
VZ
53144COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
53145COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
53146COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
d84e6f50
VZ
53147COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
53148COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
d589327a
VZ
53149COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
53150COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
53151COND_SHARED_1!$COND_SHARED_1$ac_delim
53152COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
53153COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
53154COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
53155COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
53156COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
53157COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
53158COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
53159COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
53160COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
53161COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
53162COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
53163COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
53164COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
53165COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
53166COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
53167COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
53168COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
53169COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
53170COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
53171COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
53172COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
53173COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
53174COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
53175COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
53176COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
53177COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
53178COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
d589327a
VZ
53179COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
53180COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
d589327a 53181COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
c9554803
VZ
53182COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
53183COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
d589327a
VZ
53184COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
53185COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
53186COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
53187COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
53188COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
53189COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
53190COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
53191COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
53192COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
53193COND_UNICODE_1!$COND_UNICODE_1$ac_delim
a12bd55b 53194COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
d589327a
VZ
53195COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
53196COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
53197COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
53198COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
53199COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
53200COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
53201COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
53202COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
53203COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
53204COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
53205COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
53206COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
53207COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
53208COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
53209COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
53210COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
53211COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
53212COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
2c459beb 53213COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
d589327a
VZ
53214COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
53215COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
53216COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
2c459beb 53217COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
d589327a
VZ
53218COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
53219COND_USE_STC_1!$COND_USE_STC_1$ac_delim
53220COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
53221COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
53222COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
53223COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
53224COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
53225COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
53226COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
53227COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
53228COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
53229COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
53230COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
53231COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
53232COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
53233COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
d589327a
VZ
53234_ACEOF
53235
53236 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
88262190
VZ
53237 break
53238 elif $ac_last_try; then
d589327a
VZ
53239 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53240echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
88262190
VZ
53241 { (exit 1); exit 1; }; }
53242 else
53243 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53244 fi
53245done
53246
d589327a
VZ
53247ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53248if test -n "$ac_eof"; then
53249 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53250 ac_eof=`expr $ac_eof + 1`
53251fi
88262190 53252
d589327a
VZ
53253cat >>$CONFIG_STATUS <<_ACEOF
53254cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
53255/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
88262190 53256_ACEOF
d589327a
VZ
53257sed '
53258s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53259s/^/s,@/; s/!/@,|#_!!_#|/
53260:n
53261t n
53262s/'"$ac_delim"'$/,g/; t
53263s/$/\\/; p
53264N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53265' >>$CONFIG_STATUS <conf$$subs.sed
53266rm -f conf$$subs.sed
53267cat >>$CONFIG_STATUS <<_ACEOF
53268CEOF$ac_eof
53269_ACEOF
53270
53271
53272ac_delim='%!_!# '
53273for ac_last_try in false false false false false :; do
53274 cat >conf$$subs.sed <<_ACEOF
c9554803
VZ
53275COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
53276COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
53277COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
53278COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
06a08679 53279COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
61aba460
VS
53280DEREZ!$DEREZ$ac_delim
53281SHARED!$SHARED$ac_delim
a12bd55b 53282WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
2c459beb 53283WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
426d19f1
JS
53284USE_GUI!$USE_GUI$ac_delim
53285AFMINSTALL!$AFMINSTALL$ac_delim
d33ccbe1
VZ
53286WIN32INSTALL!$WIN32INSTALL$ac_delim
53287TOOLKIT!$TOOLKIT$ac_delim
53288TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
d589327a
VZ
53289TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
53290TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
53291cross_compiling!$cross_compiling$ac_delim
53292WIDGET_SET!$WIDGET_SET$ac_delim
53293WX_RELEASE!$WX_RELEASE$ac_delim
53294WX_VERSION!$WX_VERSION$ac_delim
53295WX_SUBVERSION!$WX_SUBVERSION$ac_delim
53296WX_CHARTYPE!$WX_CHARTYPE$ac_delim
d589327a
VZ
53297WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
53298WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
53299WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
53300WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
53301WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
d4fbe1d8 53302WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
d589327a
VZ
53303WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
53304WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
53305GUIDIST!$GUIDIST$ac_delim
53306DISTDIR!$DISTDIR$ac_delim
53307SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
53308LDFLAGS_GL!$LDFLAGS_GL$ac_delim
53309OPENGL_LIBS!$OPENGL_LIBS$ac_delim
53310DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
53311WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
53312RESCOMP!$RESCOMP$ac_delim
53313RESFLAGS!$RESFLAGS$ac_delim
53314RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
53315WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
53316WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
53317LIBWXMACRES!$LIBWXMACRES$ac_delim
53318POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
53319MACSETFILE!$MACSETFILE$ac_delim
53320GCC!$GCC$ac_delim
53321DLLTOOL!$DLLTOOL$ac_delim
53322CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
53323LIBOBJS!$LIBOBJS$ac_delim
53324LTLIBOBJS!$LTLIBOBJS$ac_delim
53325_ACEOF
53326
c9554803 53327 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
d589327a
VZ
53328 break
53329 elif $ac_last_try; then
53330 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53331echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47964710 53332 { (exit 1); exit 1; }; }
d589327a
VZ
53333 else
53334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53335 fi
53336done
53337
53338ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53339if test -n "$ac_eof"; then
53340 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53341 ac_eof=`expr $ac_eof + 1`
53342fi
53343
53344cat >>$CONFIG_STATUS <<_ACEOF
53345cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
53346/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
53347_ACEOF
53348sed '
53349s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53350s/^/s,@/; s/!/@,|#_!!_#|/
53351:n
53352t n
53353s/'"$ac_delim"'$/,g/; t
53354s/$/\\/; p
53355N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53356' >>$CONFIG_STATUS <conf$$subs.sed
53357rm -f conf$$subs.sed
53358cat >>$CONFIG_STATUS <<_ACEOF
53359:end
53360s/|#_!!_#|//g
53361CEOF$ac_eof
47964710
VS
53362_ACEOF
53363
d589327a 53364
47964710
VS
53365# VPATH may cause trouble with some makes, so we remove $(srcdir),
53366# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53367# trailing colons and then remove the whole line if VPATH becomes empty
53368# (actually we leave an empty line to preserve line numbers).
53369if test "x$srcdir" = x.; then
53370 ac_vpsub='/^[ ]*VPATH[ ]*=/{
53371s/:*\$(srcdir):*/:/
53372s/:*\${srcdir}:*/:/
53373s/:*@srcdir@:*/:/
53374s/^\([^=]*=[ ]*\):*/\1/
53375s/:*$//
53376s/^[^=]*=[ ]*$//
53377}'
53378fi
53379
d589327a 53380cat >>$CONFIG_STATUS <<\_ACEOF
47964710
VS
53381fi # test -n "$CONFIG_FILES"
53382
53383
d589327a 53384for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
47964710
VS
53385do
53386 case $ac_tag in
53387 :[FHLC]) ac_mode=$ac_tag; continue;;
a848cd7e 53388 esac
47964710
VS
53389 case $ac_mode$ac_tag in
53390 :[FHL]*:*);;
d589327a
VZ
53391 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
53392echo "$as_me: error: Invalid tag $ac_tag." >&2;}
47964710
VS
53393 { (exit 1); exit 1; }; };;
53394 :[FH]-) ac_tag=-:-;;
53395 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
53396 esac
53397 ac_save_IFS=$IFS
53398 IFS=:
53399 set x $ac_tag
53400 IFS=$ac_save_IFS
53401 shift
53402 ac_file=$1
53403 shift
a848cd7e 53404
47964710
VS
53405 case $ac_mode in
53406 :L) ac_source=$1;;
53407 :[FH])
53408 ac_file_inputs=
53409 for ac_f
53410 do
53411 case $ac_f in
53412 -) ac_f="$tmp/stdin";;
53413 *) # Look for the file first in the build tree, then in the source tree
53414 # (if the path is not absolute). The absolute path cannot be DOS-style,
53415 # because $ac_f cannot contain `:'.
53416 test -f "$ac_f" ||
53417 case $ac_f in
53418 [\\/$]*) false;;
53419 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
53420 esac ||
d589327a
VZ
53421 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
53422echo "$as_me: error: cannot find input file: $ac_f" >&2;}
47964710
VS
53423 { (exit 1); exit 1; }; };;
53424 esac
d589327a 53425 ac_file_inputs="$ac_file_inputs $ac_f"
47964710
VS
53426 done
53427
53428 # Let's still pretend it is `configure' which instantiates (i.e., don't
53429 # use $as_me), people would be surprised to read:
53430 # /* config.h. Generated by config.status. */
d589327a
VZ
53431 configure_input="Generated from "`IFS=:
53432 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
47964710
VS
53433 if test x"$ac_file" != x-; then
53434 configure_input="$ac_file. $configure_input"
d589327a
VZ
53435 { echo "$as_me:$LINENO: creating $ac_file" >&5
53436echo "$as_me: creating $ac_file" >&6;}
53437 fi
47964710
VS
53438
53439 case $ac_tag in
d589327a 53440 *:-:* | *:-) cat >"$tmp/stdin";;
47964710
VS
53441 esac
53442 ;;
53443 esac
53444
53445 ac_dir=`$as_dirname -- "$ac_file" ||
a848cd7e 53446$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
53447 X"$ac_file" : 'X\(//\)[^/]' \| \
53448 X"$ac_file" : 'X\(//\)$' \| \
47964710 53449 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d589327a 53450echo X"$ac_file" |
47964710
VS
53451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53452 s//\1/
53453 q
53454 }
53455 /^X\(\/\/\)[^/].*/{
53456 s//\1/
53457 q
53458 }
53459 /^X\(\/\/\)$/{
53460 s//\1/
53461 q
53462 }
53463 /^X\(\/\).*/{
53464 s//\1/
53465 q
53466 }
53467 s/.*/./; q'`
53468 { as_dir="$ac_dir"
53469 case $as_dir in #(
53470 -*) as_dir=./$as_dir;;
53471 esac
53472 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
a848cd7e 53473 as_dirs=
47964710
VS
53474 while :; do
53475 case $as_dir in #(
d589327a 53476 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
47964710
VS
53477 *) as_qdir=$as_dir;;
53478 esac
53479 as_dirs="'$as_qdir' $as_dirs"
53480 as_dir=`$as_dirname -- "$as_dir" ||
a848cd7e 53481$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
53482 X"$as_dir" : 'X\(//\)[^/]' \| \
53483 X"$as_dir" : 'X\(//\)$' \| \
47964710 53484 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d589327a 53485echo X"$as_dir" |
47964710
VS
53486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53487 s//\1/
53488 q
53489 }
53490 /^X\(\/\/\)[^/].*/{
53491 s//\1/
53492 q
53493 }
53494 /^X\(\/\/\)$/{
53495 s//\1/
53496 q
53497 }
53498 /^X\(\/\).*/{
53499 s//\1/
53500 q
53501 }
53502 s/.*/./; q'`
53503 test -d "$as_dir" && break
a848cd7e 53504 done
47964710 53505 test -z "$as_dirs" || eval "mkdir $as_dirs"
d589327a
VZ
53506 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
53507echo "$as_me: error: cannot create directory $as_dir" >&2;}
a848cd7e 53508 { (exit 1); exit 1; }; }; }
a848cd7e
SC
53509 ac_builddir=.
53510
47964710
VS
53511case "$ac_dir" in
53512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
53513*)
d589327a 53514 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47964710 53515 # A ".." for each directory in $ac_dir_suffix.
d589327a 53516 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
47964710
VS
53517 case $ac_top_builddir_sub in
53518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
53519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
53520 esac ;;
53521esac
53522ac_abs_top_builddir=$ac_pwd
53523ac_abs_builddir=$ac_pwd$ac_dir_suffix
53524# for backward compatibility:
53525ac_top_builddir=$ac_top_build_prefix
a848cd7e
SC
53526
53527case $srcdir in
47964710 53528 .) # We are building in place.
a848cd7e 53529 ac_srcdir=.
47964710
VS
53530 ac_top_srcdir=$ac_top_builddir_sub
53531 ac_abs_top_srcdir=$ac_pwd ;;
53532 [\\/]* | ?:[\\/]* ) # Absolute name.
a848cd7e 53533 ac_srcdir=$srcdir$ac_dir_suffix;
47964710
VS
53534 ac_top_srcdir=$srcdir
53535 ac_abs_top_srcdir=$srcdir ;;
53536 *) # Relative name.
53537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
53538 ac_top_srcdir=$ac_top_build_prefix$srcdir
53539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a848cd7e 53540esac
47964710 53541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ac1cb8d3 53542
a848cd7e 53543
47964710
VS
53544 case $ac_mode in
53545 :F)
53546 #
53547 # CONFIG_FILE
53548 #
a848cd7e
SC
53549
53550 case $INSTALL in
53551 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47964710 53552 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a848cd7e 53553 esac
47964710 53554_ACEOF
a848cd7e 53555
d589327a 53556cat >>$CONFIG_STATUS <<\_ACEOF
47964710
VS
53557# If the template does not know about datarootdir, expand it.
53558# FIXME: This hack should be removed a few years after 2.60.
53559ac_datarootdir_hack=; ac_datarootdir_seen=
53560
d589327a 53561case `sed -n '/datarootdir/ {
47964710
VS
53562 p
53563 q
53564}
53565/@datadir@/p
53566/@docdir@/p
53567/@infodir@/p
53568/@localedir@/p
53569/@mandir@/p
d589327a 53570' $ac_file_inputs` in
47964710
VS
53571*datarootdir*) ac_datarootdir_seen=yes;;
53572*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
d589327a
VZ
53573 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
53574echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47964710 53575_ACEOF
d589327a 53576cat >>$CONFIG_STATUS <<_ACEOF
47964710
VS
53577 ac_datarootdir_hack='
53578 s&@datadir@&$datadir&g
53579 s&@docdir@&$docdir&g
53580 s&@infodir@&$infodir&g
53581 s&@localedir@&$localedir&g
53582 s&@mandir@&$mandir&g
53583 s&\\\${datarootdir}&$datarootdir&g' ;;
53584esac
4db03d26 53585_ACEOF
47964710
VS
53586
53587# Neutralize VPATH when `$srcdir' = `.'.
53588# Shell code in configure.ac might set extrasub.
53589# FIXME: do we really want to maintain this feature?
d589327a
VZ
53590cat >>$CONFIG_STATUS <<_ACEOF
53591 sed "$ac_vpsub
a848cd7e
SC
53592$extrasub
53593_ACEOF
d589327a 53594cat >>$CONFIG_STATUS <<\_ACEOF
a848cd7e
SC
53595:t
53596/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
d589327a 53597s&@configure_input@&$configure_input&;t t
47964710
VS
53598s&@top_builddir@&$ac_top_builddir_sub&;t t
53599s&@srcdir@&$ac_srcdir&;t t
53600s&@abs_srcdir@&$ac_abs_srcdir&;t t
53601s&@top_srcdir@&$ac_top_srcdir&;t t
53602s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
53603s&@builddir@&$ac_builddir&;t t
53604s&@abs_builddir@&$ac_abs_builddir&;t t
53605s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
53606s&@INSTALL@&$ac_INSTALL&;t t
53607$ac_datarootdir_hack
d589327a 53608" $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
47964710
VS
53609
53610test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
53611 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
53612 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
d589327a 53613 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47964710 53614which seems to be undefined. Please make sure it is defined." >&5
d589327a 53615echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47964710
VS
53616which seems to be undefined. Please make sure it is defined." >&2;}
53617
53618 rm -f "$tmp/stdin"
ceec2216 53619 case $ac_file in
d589327a
VZ
53620 -) cat "$tmp/out"; rm -f "$tmp/out";;
53621 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
53622 esac
47964710
VS
53623 ;;
53624 :H)
53625 #
53626 # CONFIG_HEADER
53627 #
d589327a
VZ
53628_ACEOF
53629
53630# Transform confdefs.h into a sed script `conftest.defines', that
53631# substitutes the proper values into config.h.in to produce config.h.
53632rm -f conftest.defines conftest.tail
53633# First, append a space to every undef/define line, to ease matching.
53634echo 's/$/ /' >conftest.defines
53635# Then, protect against being on the right side of a sed subst, or in
53636# an unquoted here document, in config.status. If some macros were
53637# called several times there might be several #defines for the same
53638# symbol, which is useless. But do not sort them, since the last
53639# AC_DEFINE must be honored.
53640ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
53641# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
53642# NAME is the cpp macro being defined, VALUE is the value it is being given.
53643# PARAMS is the parameter list in the macro definition--in most cases, it's
53644# just an empty string.
53645ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
53646ac_dB='\\)[ (].*,\\1define\\2'
53647ac_dC=' '
53648ac_dD=' ,'
53649
53650uniq confdefs.h |
53651 sed -n '
53652 t rset
53653 :rset
53654 s/^[ ]*#[ ]*define[ ][ ]*//
53655 t ok
53656 d
53657 :ok
53658 s/[\\&,]/\\&/g
53659 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
53660 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
53661 ' >>conftest.defines
53662
53663# Remove the space that was appended to ease matching.
53664# Then replace #undef with comments. This is necessary, for
53665# example, in the case of _POSIX_SOURCE, which is predefined and required
53666# on some systems where configure will not decide to define it.
53667# (The regexp can be short, since the line contains either #define or #undef.)
53668echo 's/ $//
53669s,^[ #]*u.*,/* & */,' >>conftest.defines
53670
53671# Break up conftest.defines:
53672ac_max_sed_lines=50
53673
53674# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
53675# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
53676# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
53677# et cetera.
53678ac_in='$ac_file_inputs'
53679ac_out='"$tmp/out1"'
53680ac_nxt='"$tmp/out2"'
53681
53682while :
53683do
53684 # Write a here document:
53685 cat >>$CONFIG_STATUS <<_ACEOF
53686 # First, check the format of the line:
53687 cat >"\$tmp/defines.sed" <<\\CEOF
53688/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
53689/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
53690b
53691:def
53692_ACEOF
53693 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
53694 echo 'CEOF
53695 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
53696 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
53697 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
53698 grep . conftest.tail >/dev/null || break
53699 rm -f conftest.defines
53700 mv conftest.tail conftest.defines
53701done
53702rm -f conftest.defines conftest.tail
53703
53704echo "ac_result=$ac_in" >>$CONFIG_STATUS
53705cat >>$CONFIG_STATUS <<\_ACEOF
a848cd7e 53706 if test x"$ac_file" != x-; then
d589327a
VZ
53707 echo "/* $configure_input */" >"$tmp/config.h"
53708 cat "$ac_result" >>"$tmp/config.h"
53709 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
53710 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
53711echo "$as_me: $ac_file is unchanged" >&6;}
a848cd7e 53712 else
d589327a
VZ
53713 rm -f $ac_file
53714 mv "$tmp/config.h" $ac_file
a848cd7e
SC
53715 fi
53716 else
d589327a
VZ
53717 echo "/* $configure_input */"
53718 cat "$ac_result"
a848cd7e 53719 fi
d589327a 53720 rm -f "$tmp/out12"
47964710 53721 ;;
4db03d26 53722
d589327a
VZ
53723 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
53724echo "$as_me: executing $ac_file commands" >&6;}
47964710
VS
53725 ;;
53726 esac
4db03d26
VZ
53727
53728
47964710
VS
53729 case $ac_file$ac_mode in
53730 "rcdefs.h":C)
5c60e845
MW
53731 mkdir -p $outdir &&
53732 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
53733 ;;
47964710
VS
53734 "lib/wx/config/${TOOLCHAIN_FULLNAME}":F) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
53735 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
2f46438b 53736 "utils/ifacecheck/rungccxml.sh":F) chmod +x utils/ifacecheck/rungccxml.sh ;;
47964710 53737 "wx-config":C) rm -f wx-config
ceec2216
RL
53738 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
53739 ;;
47964710 53740
a848cd7e 53741 esac
47964710 53742done # for ac_tag
a848cd7e 53743
a848cd7e
SC
53744
53745{ (exit 0); exit 0; }
53746_ACEOF
53747chmod +x $CONFIG_STATUS
53748ac_clean_files=$ac_clean_files_save
53749
53750
53751# configure is writing to config.log, and then calls config.status.
53752# config.status does its own redirection, appending to config.log.
53753# Unfortunately, on DOS this fails, as config.log is still kept open
53754# by configure, so config.status won't be able to write to it; its
53755# output is simply discarded. So we exec the FD to /dev/null,
53756# effectively closing config.log, so it can be properly (re)opened and
53757# appended to by config.status. When coming back to configure, we
53758# need to make the FD available again.
53759if test "$no_create" != yes; then
53760 ac_cs_success=:
53761 ac_config_status_args=
53762 test "$silent" = yes &&
53763 ac_config_status_args="$ac_config_status_args --quiet"
53764 exec 5>/dev/null
53765 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
53766 exec 5>>config.log
53767 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
53768 # would make configure fail if this is the last instruction.
53769 $ac_cs_success || { (exit 1); exit 1; }
53770fi
53771
53772#
53773# CONFIG_SUBDIRS section.
53774#
53775if test "$no_recursion" != yes; then
53776
d589327a 53777 # Remove --cache-file and --srcdir arguments so they do not pile up.
a848cd7e
SC
53778 ac_sub_configure_args=
53779 ac_prev=
47964710
VS
53780 eval "set x $ac_configure_args"
53781 shift
53782 for ac_arg
53783 do
a848cd7e
SC
53784 if test -n "$ac_prev"; then
53785 ac_prev=
53786 continue
53787 fi
53788 case $ac_arg in
53789 -cache-file | --cache-file | --cache-fil | --cache-fi \
53790 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
53791 ac_prev=cache_file ;;
53792 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
53793 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
53794 | --c=*)
53795 ;;
53796 --config-cache | -C)
53797 ;;
53798 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
53799 ac_prev=srcdir ;;
53800 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
53801 ;;
53802 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
53803 ac_prev=prefix ;;
53804 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
53805 ;;
47964710
VS
53806 *)
53807 case $ac_arg in
d589327a 53808 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
47964710
VS
53809 esac
53810 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
a848cd7e
SC
53811 esac
53812 done
53813
53814 # Always prepend --prefix to ensure using the same prefix
53815 # in subdir configurations.
47964710
VS
53816 ac_arg="--prefix=$prefix"
53817 case $ac_arg in
d589327a 53818 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
47964710
VS
53819 esac
53820 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
53821
53822 # Pass --silent
53823 if test "$silent" = yes; then
53824 ac_sub_configure_args="--silent $ac_sub_configure_args"
53825 fi
a848cd7e
SC
53826
53827 ac_popdir=`pwd`
53828 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
53829
53830 # Do not complain, so a configure script can configure whichever
53831 # parts of a large source tree are present.
47964710
VS
53832 test -d "$srcdir/$ac_dir" || continue
53833
53834 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
d589327a
VZ
53835 echo "$as_me:$LINENO: $ac_msg" >&5
53836 echo "$ac_msg" >&6
47964710
VS
53837 { as_dir="$ac_dir"
53838 case $as_dir in #(
53839 -*) as_dir=./$as_dir;;
53840 esac
53841 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
a848cd7e 53842 as_dirs=
47964710
VS
53843 while :; do
53844 case $as_dir in #(
d589327a 53845 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
47964710
VS
53846 *) as_qdir=$as_dir;;
53847 esac
53848 as_dirs="'$as_qdir' $as_dirs"
53849 as_dir=`$as_dirname -- "$as_dir" ||
a848cd7e 53850$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
53851 X"$as_dir" : 'X\(//\)[^/]' \| \
53852 X"$as_dir" : 'X\(//\)$' \| \
47964710 53853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d589327a 53854echo X"$as_dir" |
47964710
VS
53855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53856 s//\1/
53857 q
53858 }
53859 /^X\(\/\/\)[^/].*/{
53860 s//\1/
53861 q
53862 }
53863 /^X\(\/\/\)$/{
53864 s//\1/
53865 q
53866 }
53867 /^X\(\/\).*/{
53868 s//\1/
53869 q
53870 }
53871 s/.*/./; q'`
53872 test -d "$as_dir" && break
a848cd7e 53873 done
47964710 53874 test -z "$as_dirs" || eval "mkdir $as_dirs"
d589327a
VZ
53875 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
53876echo "$as_me: error: cannot create directory $as_dir" >&2;}
a848cd7e 53877 { (exit 1); exit 1; }; }; }
a848cd7e
SC
53878 ac_builddir=.
53879
47964710
VS
53880case "$ac_dir" in
53881.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
53882*)
d589327a 53883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47964710 53884 # A ".." for each directory in $ac_dir_suffix.
d589327a 53885 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
47964710
VS
53886 case $ac_top_builddir_sub in
53887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
53888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
53889 esac ;;
53890esac
53891ac_abs_top_builddir=$ac_pwd
53892ac_abs_builddir=$ac_pwd$ac_dir_suffix
53893# for backward compatibility:
53894ac_top_builddir=$ac_top_build_prefix
a848cd7e
SC
53895
53896case $srcdir in
47964710 53897 .) # We are building in place.
a848cd7e 53898 ac_srcdir=.
47964710
VS
53899 ac_top_srcdir=$ac_top_builddir_sub
53900 ac_abs_top_srcdir=$ac_pwd ;;
53901 [\\/]* | ?:[\\/]* ) # Absolute name.
a848cd7e 53902 ac_srcdir=$srcdir$ac_dir_suffix;
47964710
VS
53903 ac_top_srcdir=$srcdir
53904 ac_abs_top_srcdir=$srcdir ;;
53905 *) # Relative name.
53906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
53907 ac_top_srcdir=$ac_top_build_prefix$srcdir
53908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ac1cb8d3 53909esac
47964710 53910ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a848cd7e
SC
53911
53912
47964710 53913 cd "$ac_dir"
a848cd7e
SC
53914
53915 # Check for guested configure; otherwise get Cygnus style configure.
47964710
VS
53916 if test -f "$ac_srcdir/configure.gnu"; then
53917 ac_sub_configure=$ac_srcdir/configure.gnu
53918 elif test -f "$ac_srcdir/configure"; then
53919 ac_sub_configure=$ac_srcdir/configure
53920 elif test -f "$ac_srcdir/configure.in"; then
53921 # This should be Cygnus configure.
53922 ac_sub_configure=$ac_aux_dir/configure
a848cd7e 53923 else
d589327a
VZ
53924 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
53925echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
a848cd7e
SC
53926 ac_sub_configure=
53927 fi
53928
53929 # The recursion is here.
53930 if test -n "$ac_sub_configure"; then
53931 # Make the cache file name correct relative to the subdirectory.
53932 case $cache_file in
53933 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
47964710
VS
53934 *) # Relative name.
53935 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
a848cd7e
SC
53936 esac
53937
d589327a
VZ
53938 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
53939echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
a848cd7e 53940 # The eval makes quoting arguments work.
47964710
VS
53941 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
53942 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
d589327a
VZ
53943 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
53944echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
a848cd7e
SC
53945 { (exit 1); exit 1; }; }
53946 fi
53947
47964710 53948 cd "$ac_popdir"
a848cd7e
SC
53949 done
53950fi
53951
53952
53953echo
77ffb593 53954echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 53955echo ""
c2e9ada4 53956echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 53957echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
77ffb593 53958echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
141fad63 53959echo $ECHO_N " Should wxWidgets support Unicode? ${wxUSE_UNICODE:-no}$ECHO_C"
ca4c9b7e 53960if test "$wxUSE_UNICODE" = "yes"; then
faa5c14f
VZ
53961 if test "$wxUSE_UNICODE_UTF8" = "yes"; then
53962 echo " (using UTF-8)"
53963 else
53964 echo " (using wchar_t)"
53965 fi
53966else
53967 echo
ca4c9b7e 53968fi
a848cd7e 53969
77ffb593 53970echo " What level of wxWidgets compatibility should be enabled?"
56b1244c 53971echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-no}"
abb6edd1 53972echo " wxWidgets 2.8 ${WXWIN_COMPATIBILITY_2_8:-yes}"
a848cd7e 53973
77ffb593 53974echo " Which libraries should wxWidgets use?"
8630a814 53975echo " STL ${wxUSE_STL}"
a848cd7e
SC
53976echo " jpeg ${wxUSE_LIBJPEG-none}"
53977echo " png ${wxUSE_LIBPNG-none}"
53978echo " regex ${wxUSE_REGEX}"
53979echo " tiff ${wxUSE_LIBTIFF-none}"
53980if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
53981echo " xpm ${wxUSE_LIBXPM-none}"
53982fi
53983echo " zlib ${wxUSE_ZLIB}"
a848cd7e
SC
53984echo " expat ${wxUSE_EXPAT}"
53985echo " libmspack ${wxUSE_LIBMSPACK}"
53986echo " sdl ${wxUSE_LIBSDL}"
53987
53988echo ""
53989