]> git.saurik.com Git - wxWidgets.git/blob - configure
really fix compilation with wxEVENTS_COMPATIBILITY_2_8 after r60212
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 59914 2009-03-29 17:15:43Z VZ .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for wxWidgets 2.9.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 as_nl='
44 '
45 export as_nl
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87 else
88 as_unset=false
89 fi
90
91
92 # IFS
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 IFS=" "" $as_nl"
98
99 # Find who we are. Look in the path if we contain no directory separator.
100 case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 for as_dir in $PATH
104 do
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 done
109 IFS=$as_save_IFS
110
111 ;;
112 esac
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
116 as_myself=$0
117 fi
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
121 fi
122
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
140 as_expr=expr
141 else
142 as_expr=false
143 fi
144
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146 as_basename=basename
147 else
148 as_basename=false
149 fi
150
151
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 $as_echo X/"$0" |
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
160 q
161 }
162 /^X\/\(\/\/\)$/{
163 s//\1/
164 q
165 }
166 /^X\/\(\/\).*/{
167 s//\1/
168 q
169 }
170 s/.*/./; q'`
171
172 # CDPATH.
173 $as_unset CDPATH
174
175
176 if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182
183 if test $as_have_required = yes && (eval ":
184 (as_func_return () {
185 (exit \$1)
186 }
187 as_func_success () {
188 as_func_return 0
189 }
190 as_func_failure () {
191 as_func_return 1
192 }
193 as_func_ret_success () {
194 return 0
195 }
196 as_func_ret_failure () {
197 return 1
198 }
199
200 exitcode=0
201 if as_func_success; then
202 :
203 else
204 exitcode=1
205 echo as_func_success failed.
206 fi
207
208 if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
211 fi
212
213 if as_func_ret_success; then
214 :
215 else
216 exitcode=1
217 echo as_func_ret_success failed.
218 fi
219
220 if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
223 fi
224
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 :
227 else
228 exitcode=1
229 echo positional parameters were not saved.
230 fi
231
232 test \$exitcode = 0) || { (exit 1); exit 1; }
233
234 (
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
240 :
241 else
242 as_candidate_shells=
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 do
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
248 case $as_dir in
249 /*)
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254 done
255 IFS=$as_save_IFS
256
257
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 _ASEOF
279 }; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290 else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293 esac
294
295 fi
296
297
298 :
299 (as_func_return () {
300 (exit $1)
301 }
302 as_func_success () {
303 as_func_return 0
304 }
305 as_func_failure () {
306 as_func_return 1
307 }
308 as_func_ret_success () {
309 return 0
310 }
311 as_func_ret_failure () {
312 return 1
313 }
314
315 exitcode=0
316 if as_func_success; then
317 :
318 else
319 exitcode=1
320 echo as_func_success failed.
321 fi
322
323 if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
326 fi
327
328 if as_func_ret_success; then
329 :
330 else
331 exitcode=1
332 echo as_func_ret_success failed.
333 fi
334
335 if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
338 fi
339
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 :
342 else
343 exitcode=1
344 echo positional parameters were not saved.
345 fi
346
347 test $exitcode = 0) || { (exit 1); exit 1; }
348
349 (
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354
355 _ASEOF
356 }; then
357 break
358 fi
359
360 fi
361
362 done
363
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 fi
371
372
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
379 fi
380
381
382 fi
383
384 fi
385
386
387
388 (eval "as_func_return () {
389 (exit \$1)
390 }
391 as_func_success () {
392 as_func_return 0
393 }
394 as_func_failure () {
395 as_func_return 1
396 }
397 as_func_ret_success () {
398 return 0
399 }
400 as_func_ret_failure () {
401 return 1
402 }
403
404 exitcode=0
405 if as_func_success; then
406 :
407 else
408 exitcode=1
409 echo as_func_success failed.
410 fi
411
412 if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
415 fi
416
417 if as_func_ret_success; then
418 :
419 else
420 exitcode=1
421 echo as_func_ret_success failed.
422 fi
423
424 if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
427 fi
428
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 :
431 else
432 exitcode=1
433 echo positional parameters were not saved.
434 fi
435
436 test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
442 }
443
444
445
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
462 p
463 /[$]LINENO/=
464 ' <$as_myself |
465 sed '
466 s/[$]LINENO.*/&-/
467 t lineno
468 b
469 :lineno
470 N
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 t loop
474 s/-\n.*//
475 ' >$as_me.lineno &&
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
479
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
484 # Exit status is that of the last command.
485 exit
486 }
487
488
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491 else
492 as_dirname=false
493 fi
494
495 ECHO_C= ECHO_N= ECHO_T=
496 case `echo -n x` in
497 -n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
502 *)
503 ECHO_N='-n';;
504 esac
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
507 as_expr=expr
508 else
509 as_expr=false
510 fi
511
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515 else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
518 fi
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -p'
532 fi
533 else
534 as_ln_s='cp -p'
535 fi
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
538
539 if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541 else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544 fi
545
546 if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548 else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
553 fi
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
557 test -d "$1/.";
558 else
559 case $1 in
560 -*)set "./$1";;
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
565 '
566 fi
567 as_executable_p=$as_test_x
568
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574
575
576
577 exec 7<&0 </dev/null 6>&1
578
579 # Name of the host.
580 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581 # so uname gets run too.
582 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583
584 #
585 # Initializations.
586 #
587 ac_default_prefix=/usr/local
588 ac_clean_files=
589 ac_config_libobj_dir=.
590 LIBOBJS=
591 cross_compiling=no
592 subdirs=
593 MFLAGS=
594 MAKEFLAGS=
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597 # Identity of this package.
598 PACKAGE_NAME='wxWidgets'
599 PACKAGE_TARNAME='wxwidgets'
600 PACKAGE_VERSION='2.9.0'
601 PACKAGE_STRING='wxWidgets 2.9.0'
602 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
603
604 ac_unique_file="wx-config.in"
605 # Factoring default headers for most tests.
606 ac_includes_default="\
607 #include <stdio.h>
608 #ifdef HAVE_SYS_TYPES_H
609 # include <sys/types.h>
610 #endif
611 #ifdef HAVE_SYS_STAT_H
612 # include <sys/stat.h>
613 #endif
614 #ifdef STDC_HEADERS
615 # include <stdlib.h>
616 # include <stddef.h>
617 #else
618 # ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 # endif
621 #endif
622 #ifdef HAVE_STRING_H
623 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
624 # include <memory.h>
625 # endif
626 # include <string.h>
627 #endif
628 #ifdef HAVE_STRINGS_H
629 # include <strings.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_UNISTD_H
638 # include <unistd.h>
639 #endif"
640
641 enable_option_checking=no
642 ac_subst_vars='LTLIBOBJS
643 LIBOBJS
644 CPPUNIT_CONFIG
645 DLLTOOL
646 GCC
647 MACSETFILE
648 POSTLINK_COMMAND
649 LIBWXMACRES
650 WX_RESOURCES_MACOSX_DATA
651 WX_RESOURCES_MACOSX_ASCII
652 RESPROGRAMOBJ
653 RESFLAGS
654 RESCOMP
655 WX_VERSION_TAG
656 DMALLOC_LIBS
657 OPENGL_LIBS
658 LDFLAGS_GL
659 SAMPLES_SUBDIRS
660 DISTDIR
661 GUIDIST
662 WXCONFIG_RESFLAGS
663 WXCONFIG_LDFLAGS_GUI
664 WXCONFIG_RPATH
665 WXCONFIG_LIBS
666 WXCONFIG_CXXFLAGS
667 WXCONFIG_CFLAGS
668 WXCONFIG_CPPFLAGS
669 WX_DEBUGTYPE
670 WX_CHARTYPE
671 WX_SUBVERSION
672 WX_VERSION
673 WX_RELEASE
674 WIDGET_SET
675 cross_compiling
676 TOOLCHAIN_FULLNAME
677 TOOLCHAIN_NAME
678 TOOLKIT_DIR
679 TOOLKIT
680 WIN32INSTALL
681 AFMINSTALL
682 USE_GUI
683 WX_LIBRARY_BASENAME_GUI
684 WX_LIBRARY_BASENAME_NOGUI
685 SHARED
686 DEREZ
687 COND_wxUSE_ZLIB_builtin
688 COND_wxUSE_REGEX_builtin
689 COND_wxUSE_LIBTIFF_builtin
690 COND_wxUSE_LIBPNG_builtin
691 COND_wxUSE_LIBJPEG_builtin
692 COND_wxUSE_EXPAT_builtin
693 COND_WXUSE_ZLIB_BUILTIN
694 COND_WXUSE_REGEX_BUILTIN
695 COND_WXUSE_LIBTIFF_BUILTIN
696 COND_WXUSE_LIBPNG_BUILTIN
697 COND_WXUSE_LIBJPEG_BUILTIN
698 COND_WXUSE_EXPAT_BUILTIN
699 COND_WXUNIV_1
700 COND_WXUNIV_0
701 COND_WITH_PLUGIN_SDL_1
702 COND_WINDOWS_IMPLIB_1
703 COND_USE_XRC_1
704 COND_USE_THREADS_1
705 COND_USE_THREADS_0
706 COND_USE_STC_1
707 COND_USE_SOVERSOLARIS_1
708 COND_USE_SOVERSION_0
709 COND_USE_SOVERLINUX_1
710 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
711 COND_USE_SOSYMLINKS_1
712 COND_USE_RTTI_1
713 COND_USE_RTTI_0
714 COND_USE_PLUGINS_0
715 COND_USE_PCH_1
716 COND_USE_OPENGL_1
717 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
718 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
719 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
720 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
721 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
722 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
723 COND_USE_GUI_1_WXUNIV_1
724 COND_USE_GUI_1_WXUNIV_0
725 COND_USE_GUI_1_USE_OPENGL_1
726 COND_USE_GUI_1
727 COND_USE_GUI_0
728 COND_USE_EXCEPTIONS_1
729 COND_USE_EXCEPTIONS_0
730 COND_UNICODE_1
731 COND_TOOLKIT_X11_USE_GUI_1
732 COND_TOOLKIT_X11
733 COND_TOOLKIT_WINCE_WXUNIV_0
734 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
735 COND_TOOLKIT_WINCE_USE_GUI_1
736 COND_TOOLKIT_WINCE
737 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
738 COND_TOOLKIT_PM_USE_GUI_1
739 COND_TOOLKIT_PM
740 COND_TOOLKIT_OSX_IPHONE
741 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
742 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
743 COND_TOOLKIT_OSX_COCOA
744 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
745 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
746 COND_TOOLKIT_OSX_CARBON
747 COND_TOOLKIT_MSW_WXUNIV_0
748 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
749 COND_TOOLKIT_MSW_USE_GUI_1
750 COND_TOOLKIT_MSW
751 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
752 COND_TOOLKIT_MOTIF_USE_GUI_1
753 COND_TOOLKIT_MOTIF
754 COND_TOOLKIT_MGL_USE_GUI_1
755 COND_TOOLKIT_MGL
756 COND_TOOLKIT_MAC
757 COND_TOOLKIT_GTK_USE_GUI_1
758 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
759 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
760 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
761 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
762 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
763 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
764 COND_TOOLKIT_GTK
765 COND_TOOLKIT_DFB_USE_GUI_1
766 COND_TOOLKIT_DFB
767 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
768 COND_TOOLKIT_COCOA_USE_GUI_1
769 COND_TOOLKIT_COCOA
770 COND_TOOLKIT_
771 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
772 COND_SHARED_1
773 COND_SHARED_0_wxUSE_ZLIB_builtin
774 COND_SHARED_0_wxUSE_REGEX_builtin
775 COND_SHARED_0_wxUSE_EXPAT_builtin
776 COND_SHARED_0_USE_STC_1
777 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
778 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
779 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
780 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
781 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
782 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
783 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
784 COND_SHARED_0
785 COND_PLATFORM_WIN32_1
786 COND_PLATFORM_WIN32_0
787 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
788 COND_PLATFORM_UNIX_1_USE_GUI_1
789 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
790 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
791 COND_PLATFORM_UNIX_1
792 COND_PLATFORM_UNIX_0
793 COND_PLATFORM_OS2_1
794 COND_PLATFORM_MSDOS_1
795 COND_PLATFORM_MSDOS_0
796 COND_PLATFORM_MAC_1
797 COND_PLATFORM_MAC_0
798 COND_PLATFORM_MACOS_1
799 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
800 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
801 COND_PLATFORM_MACOSX_1_USE_GUI_1
802 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
803 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
804 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
805 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
806 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
807 COND_PLATFORM_MACOSX_1
808 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
809 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
810 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
811 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
812 COND_MONOLITHIC_1_SHARED_1
813 COND_MONOLITHIC_1_SHARED_0
814 COND_MONOLITHIC_1
815 COND_MONOLITHIC_0_USE_XRC_1
816 COND_MONOLITHIC_0_USE_STC_1
817 COND_MONOLITHIC_0_USE_RICHTEXT_1
818 COND_MONOLITHIC_0_USE_QA_1
819 COND_MONOLITHIC_0_USE_PROPGRID_1
820 COND_MONOLITHIC_0_USE_MEDIA_1
821 COND_MONOLITHIC_0_USE_HTML_1
822 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
823 COND_MONOLITHIC_0_USE_GUI_1
824 COND_MONOLITHIC_0_USE_AUI_1
825 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
826 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
827 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
828 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
829 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
830 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
831 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
832 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
833 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
834 COND_MONOLITHIC_0_SHARED_1
835 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
836 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
837 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
838 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
839 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
840 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
841 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
842 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
843 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
844 COND_MONOLITHIC_0_SHARED_0
845 COND_MONOLITHIC_0
846 COND_ICC_PCH_1
847 COND_GCC_PCH_1
848 COND_DEPS_TRACKING_1
849 COND_DEPS_TRACKING_0
850 COND_DEBUG_INFO_1
851 COND_DEBUG_INFO_0
852 COND_DEBUG_FLAG_1
853 COND_BUILD_release_UNICODE_1
854 COND_BUILD_release_UNICODE_0
855 COND_BUILD_release_DEBUG_INFO_default
856 COND_BUILD_release
857 COND_BUILD_debug_UNICODE_1
858 COND_BUILD_debug_UNICODE_0
859 COND_BUILD_debug_DEBUG_INFO_default
860 COND_BUILD_debug_DEBUG_FLAG_default
861 COND_BUILD_debug
862 COND_BUILD_RELEASE_UNICODE_1
863 COND_BUILD_RELEASE_UNICODE_0
864 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
865 COND_BUILD_RELEASE
866 COND_BUILD_DEBUG_UNICODE_1
867 COND_BUILD_DEBUG_UNICODE_0
868 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
869 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
870 COND_BUILD_DEBUG
871 BK_MAKE_PCH
872 ICC_PCH_USE_SWITCH
873 ICC_PCH_CREATE_SWITCH
874 ICC_PCH
875 GCC_PCH
876 OBJCXXFLAGS
877 SETFILE
878 REZ
879 WINDRES
880 BK_DEPS
881 DEPS_TRACKING
882 SONAME_FLAG
883 USE_SOSYMLINKS
884 USE_MACVERSION
885 USE_SOVERCYGWIN
886 USE_SOVERSOLARIS
887 USE_SOVERLINUX
888 USE_SOVERSION
889 WINDOWS_IMPLIB
890 PIC_FLAG
891 SHARED_LD_MODULE_CXX
892 SHARED_LD_MODULE_CC
893 SHARED_LD_CXX
894 SHARED_LD_CC
895 AIX_CXX_LD
896 dlldir
897 DLLPREFIX_MODULE
898 DLLPREFIX
899 LIBEXT
900 LIBPREFIX
901 DLLIMP_SUFFIX
902 SO_SUFFIX_MODULE
903 SO_SUFFIX
904 PLATFORM_BEOS
905 PLATFORM_OS2
906 PLATFORM_MACOSX
907 PLATFORM_MACOS
908 PLATFORM_MAC
909 PLATFORM_MSDOS
910 PLATFORM_WIN32
911 PLATFORM_UNIX
912 IF_GNU_MAKE
913 LDFLAGS_GUI
914 INSTALL_DIR
915 NM
916 STRIP
917 AROPTIONS
918 MAKE_SET
919 SET_MAKE
920 LN_S
921 INSTALL_DATA
922 INSTALL_SCRIPT
923 INSTALL_PROGRAM
924 RANLIB
925 CPPUNIT_LIBS
926 CPPUNIT_CFLAGS
927 HOST_SUFFIX
928 HEADER_PAD_OPTION
929 SAMPLES_RPATH_FLAG
930 DYLIB_RPATH_POSTLINK
931 DYLIB_RPATH_INSTALL
932 TOOLKIT_VERSION
933 TOOLKIT_LOWERCASE
934 DEBUG_FLAG
935 DEBUG_INFO
936 BUILD
937 UNICODE
938 EXTRALIBS_HILDON
939 EXTRALIBS_GNOMEVFS
940 EXTRALIBS_GNOMEPRINT
941 EXTRALIBS_GTKPRINT
942 WITH_PLUGIN_SDL
943 EXTRALIBS_STC
944 EXTRALIBS_SDL
945 EXTRALIBS_OPENGL
946 EXTRALIBS_GUI
947 EXTRALIBS_MEDIA
948 EXTRALIBS_HTML
949 EXTRALIBS_XML
950 EXTRALIBS
951 CXXWARNINGS
952 USE_PLUGINS
953 MONOLITHIC
954 WXUNIV
955 WX_LIB_FLAVOUR
956 WX_FLAVOUR
957 OFFICIAL_BUILD
958 VENDOR
959 wxUSE_LIBTIFF
960 wxUSE_LIBPNG
961 wxUSE_LIBJPEG
962 wxUSE_EXPAT
963 wxUSE_REGEX
964 wxUSE_ZLIB
965 STD_GUI_LIBS
966 STD_BASE_LIBS
967 BUILT_WX_LIBS
968 ALL_WX_LIBS
969 GST_LIBS
970 GST_CFLAGS
971 CAIRO_LIBS
972 CAIRO_CFLAGS
973 HILDON_LIBS
974 HILDON_CFLAGS
975 GNOMEVFS_LIBS
976 GNOMEVFS_CFLAGS
977 LIBGNOMEPRINTUI_LIBS
978 LIBGNOMEPRINTUI_CFLAGS
979 GTKPRINT_LIBS
980 GTKPRINT_CFLAGS
981 SDL_LIBS
982 SDL_CFLAGS
983 SDL_CONFIG
984 GXX_VERSION
985 LIBICONV
986 CXXFLAGS_VISIBILITY
987 CFLAGS_VISIBILITY
988 PANGOXFT_LIBS
989 PANGOXFT_CFLAGS
990 PANGOFT2_LIBS
991 PANGOFT2_CFLAGS
992 PANGOX_LIBS
993 PANGOX_CFLAGS
994 X_EXTRA_LIBS
995 X_LIBS
996 X_PRE_LIBS
997 X_CFLAGS
998 XMKMF
999 DIRECTFB_LIBS
1000 DIRECTFB_CFLAGS
1001 GTK_CONFIG
1002 GTK_LIBS
1003 GTK_CFLAGS
1004 PKG_CONFIG
1005 subdirs
1006 AR
1007 ac_ct_CXX
1008 CXXFLAGS
1009 CXX
1010 EGREP
1011 GREP
1012 CPP
1013 OBJEXT
1014 EXEEXT
1015 ac_ct_CC
1016 CPPFLAGS
1017 LDFLAGS
1018 CFLAGS
1019 CC
1020 wx_top_builddir
1021 host_os
1022 host_vendor
1023 host_cpu
1024 host
1025 build_os
1026 build_vendor
1027 build_cpu
1028 build
1029 target_alias
1030 host_alias
1031 build_alias
1032 LIBS
1033 ECHO_T
1034 ECHO_N
1035 ECHO_C
1036 DEFS
1037 mandir
1038 localedir
1039 libdir
1040 psdir
1041 pdfdir
1042 dvidir
1043 htmldir
1044 infodir
1045 docdir
1046 oldincludedir
1047 includedir
1048 localstatedir
1049 sharedstatedir
1050 sysconfdir
1051 datadir
1052 datarootdir
1053 libexecdir
1054 sbindir
1055 bindir
1056 program_transform_name
1057 prefix
1058 exec_prefix
1059 PACKAGE_BUGREPORT
1060 PACKAGE_STRING
1061 PACKAGE_VERSION
1062 PACKAGE_TARNAME
1063 PACKAGE_NAME
1064 PATH_SEPARATOR
1065 SHELL'
1066 ac_subst_files=''
1067 ac_user_opts='
1068 enable_option_checking
1069 enable_gui
1070 enable_monolithic
1071 enable_plugins
1072 with_subdirs
1073 with_flavour
1074 enable_official_build
1075 enable_vendor
1076 enable_all_features
1077 enable_universal
1078 with_themes
1079 with_gtk
1080 with_motif
1081 with_osx_carbon
1082 with_osx_cocoa
1083 with_mac
1084 with_cocoa
1085 with_wine
1086 with_msw
1087 with_pm
1088 with_mgl
1089 with_directfb
1090 with_microwin
1091 with_x11
1092 enable_nanox
1093 enable_gtk2
1094 enable_gpe
1095 with_libpng
1096 with_libjpeg
1097 with_libtiff
1098 with_libxpm
1099 with_libiconv
1100 with_libmspack
1101 with_gtkprint
1102 with_gnomeprint
1103 with_gnomevfs
1104 with_hildon
1105 with_opengl
1106 with_dmalloc
1107 with_sdl
1108 with_regex
1109 with_zlib
1110 with_expat
1111 with_macosx_sdk
1112 with_macosx_version_min
1113 enable_shared
1114 enable_debug
1115 enable_stl
1116 enable_std_iostreams
1117 enable_std_string
1118 enable_unicode
1119 enable_mslu
1120 enable_utf8
1121 enable_utf8only
1122 enable_extended_rtti
1123 enable_omf
1124 enable_debug_flag
1125 enable_debug_info
1126 enable_optimise
1127 enable_debug_gdb
1128 enable_debug_cntxt
1129 enable_mem_tracing
1130 enable_profile
1131 enable_no_rtti
1132 enable_no_exceptions
1133 enable_permissive
1134 enable_no_deps
1135 enable_vararg_macros
1136 enable_universal_binary
1137 enable_compat26
1138 enable_compat28
1139 enable_rpath
1140 enable_objc_uniquifying
1141 enable_visibility
1142 enable_intl
1143 enable_xlocale
1144 enable_config
1145 enable_protocols
1146 enable_ftp
1147 enable_http
1148 enable_fileproto
1149 enable_sockets
1150 enable_ipv6
1151 enable_ole
1152 enable_dataobj
1153 enable_ipc
1154 enable_baseevtloop
1155 enable_epollloop
1156 enable_selectloop
1157 enable_apple_ieee
1158 enable_arcstream
1159 enable_base64
1160 enable_backtrace
1161 enable_catch_segvs
1162 enable_cmdline
1163 enable_datetime
1164 enable_debugreport
1165 enable_dialupman
1166 enable_dynlib
1167 enable_dynamicloader
1168 enable_exceptions
1169 enable_ffile
1170 enable_file
1171 enable_filesystem
1172 enable_fontenum
1173 enable_fontmap
1174 enable_fs_archive
1175 enable_fs_inet
1176 enable_fs_zip
1177 enable_geometry
1178 enable_log
1179 enable_longlong
1180 enable_mimetype
1181 enable_printfposparam
1182 enable_snglinst
1183 enable_sound
1184 enable_stdpaths
1185 enable_stopwatch
1186 enable_streams
1187 enable_system_options
1188 enable_tarstream
1189 enable_textbuf
1190 enable_textfile
1191 enable_timer
1192 enable_variant
1193 enable_zipstream
1194 enable_url
1195 enable_protocol
1196 enable_protocol_http
1197 enable_protocol_ftp
1198 enable_protocol_file
1199 enable_threads
1200 enable_iniconf
1201 enable_regkey
1202 enable_docview
1203 enable_help
1204 enable_mshtmlhelp
1205 enable_html
1206 enable_htmlhelp
1207 enable_xrc
1208 enable_aui
1209 enable_propgrid
1210 enable_stc
1211 enable_constraints
1212 enable_loggui
1213 enable_logwin
1214 enable_logdialog
1215 enable_mdi
1216 enable_mdidoc
1217 enable_mediactrl
1218 enable_gstreamer8
1219 enable_webkit
1220 enable_richtext
1221 enable_graphics_ctx
1222 enable_postscript
1223 enable_printarch
1224 enable_svg
1225 enable_clipboard
1226 enable_dnd
1227 enable_metafile
1228 enable_controls
1229 enable_accel
1230 enable_animatectrl
1231 enable_bmpbutton
1232 enable_bmpcombobox
1233 enable_button
1234 enable_calendar
1235 enable_caret
1236 enable_checkbox
1237 enable_checklst
1238 enable_choice
1239 enable_choicebook
1240 enable_collpane
1241 enable_colourpicker
1242 enable_combobox
1243 enable_comboctrl
1244 enable_dataviewctrl
1245 enable_datepick
1246 enable_detect_sm
1247 enable_dirpicker
1248 enable_display
1249 enable_editablebox
1250 enable_filectrl
1251 enable_filepicker
1252 enable_fontpicker
1253 enable_gauge
1254 enable_grid
1255 enable_headerctrl
1256 enable_hyperlink
1257 enable_imaglist
1258 enable_listbook
1259 enable_listbox
1260 enable_listctrl
1261 enable_notebook
1262 enable_notifmsg
1263 enable_odcombobox
1264 enable_popupwin
1265 enable_radiobox
1266 enable_radiobtn
1267 enable_rearrangectrl
1268 enable_sash
1269 enable_scrollbar
1270 enable_searchctrl
1271 enable_slider
1272 enable_spinbtn
1273 enable_spinctrl
1274 enable_splitter
1275 enable_statbmp
1276 enable_statbox
1277 enable_statline
1278 enable_stattext
1279 enable_statusbar
1280 enable_taskbaricon
1281 enable_tbarnative
1282 enable_textctrl
1283 enable_tipwindow
1284 enable_togglebtn
1285 enable_toolbar
1286 enable_toolbook
1287 enable_treebook
1288 enable_treectrl
1289 enable_commondlg
1290 enable_aboutdlg
1291 enable_choicedlg
1292 enable_coldlg
1293 enable_filedlg
1294 enable_finddlg
1295 enable_fontdlg
1296 enable_dirdlg
1297 enable_msgdlg
1298 enable_numberdlg
1299 enable_splash
1300 enable_textdlg
1301 enable_tipdlg
1302 enable_progressdlg
1303 enable_wizarddlg
1304 enable_menus
1305 enable_miniframe
1306 enable_tooltips
1307 enable_splines
1308 enable_mousewheel
1309 enable_validators
1310 enable_busyinfo
1311 enable_joystick
1312 enable_dragimage
1313 enable_accessibility
1314 enable_palette
1315 enable_image
1316 enable_gif
1317 enable_pcx
1318 enable_tga
1319 enable_iff
1320 enable_pnm
1321 enable_xpm
1322 enable_ico_cur
1323 enable_dccache
1324 enable_ps_in_msw
1325 enable_ownerdrawn
1326 enable_uxtheme
1327 enable_wxdib
1328 enable_autoidman
1329 enable_largefile
1330 enable_gtktest
1331 with_gtk_prefix
1332 with_gtk_exec_prefix
1333 with_x
1334 with_libiconv_prefix
1335 with_sdl_prefix
1336 with_sdl_exec_prefix
1337 enable_sdltest
1338 enable_dependency_tracking
1339 enable_precomp_headers
1340 with_cppunit_prefix
1341 with_cppunit_exec_prefix
1342 '
1343 ac_precious_vars='build_alias
1344 host_alias
1345 target_alias
1346 CC
1347 CFLAGS
1348 LDFLAGS
1349 LIBS
1350 CPPFLAGS
1351 CPP
1352 CXX
1353 CXXFLAGS
1354 CCC
1355 PKG_CONFIG
1356 DIRECTFB_CFLAGS
1357 DIRECTFB_LIBS
1358 XMKMF
1359 PANGOX_CFLAGS
1360 PANGOX_LIBS
1361 PANGOFT2_CFLAGS
1362 PANGOFT2_LIBS
1363 PANGOXFT_CFLAGS
1364 PANGOXFT_LIBS
1365 GTKPRINT_CFLAGS
1366 GTKPRINT_LIBS
1367 LIBGNOMEPRINTUI_CFLAGS
1368 LIBGNOMEPRINTUI_LIBS
1369 GNOMEVFS_CFLAGS
1370 GNOMEVFS_LIBS
1371 HILDON_CFLAGS
1372 HILDON_LIBS
1373 CAIRO_CFLAGS
1374 CAIRO_LIBS
1375 GST_CFLAGS
1376 GST_LIBS'
1377 ac_subdirs_all='src/tiff
1378 src/expat'
1379
1380 # Initialize some variables set by options.
1381 ac_init_help=
1382 ac_init_version=false
1383 ac_unrecognized_opts=
1384 ac_unrecognized_sep=
1385 # The variables have the same names as the options, with
1386 # dashes changed to underlines.
1387 cache_file=/dev/null
1388 exec_prefix=NONE
1389 no_create=
1390 no_recursion=
1391 prefix=NONE
1392 program_prefix=NONE
1393 program_suffix=NONE
1394 program_transform_name=s,x,x,
1395 silent=
1396 site=
1397 srcdir=
1398 verbose=
1399 x_includes=NONE
1400 x_libraries=NONE
1401
1402 # Installation directory options.
1403 # These are left unexpanded so users can "make install exec_prefix=/foo"
1404 # and all the variables that are supposed to be based on exec_prefix
1405 # by default will actually change.
1406 # Use braces instead of parens because sh, perl, etc. also accept them.
1407 # (The list follows the same order as the GNU Coding Standards.)
1408 bindir='${exec_prefix}/bin'
1409 sbindir='${exec_prefix}/sbin'
1410 libexecdir='${exec_prefix}/libexec'
1411 datarootdir='${prefix}/share'
1412 datadir='${datarootdir}'
1413 sysconfdir='${prefix}/etc'
1414 sharedstatedir='${prefix}/com'
1415 localstatedir='${prefix}/var'
1416 includedir='${prefix}/include'
1417 oldincludedir='/usr/include'
1418 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1419 infodir='${datarootdir}/info'
1420 htmldir='${docdir}'
1421 dvidir='${docdir}'
1422 pdfdir='${docdir}'
1423 psdir='${docdir}'
1424 libdir='${exec_prefix}/lib'
1425 localedir='${datarootdir}/locale'
1426 mandir='${datarootdir}/man'
1427
1428 ac_prev=
1429 ac_dashdash=
1430 for ac_option
1431 do
1432 # If the previous option needs an argument, assign it.
1433 if test -n "$ac_prev"; then
1434 eval $ac_prev=\$ac_option
1435 ac_prev=
1436 continue
1437 fi
1438
1439 case $ac_option in
1440 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1441 *) ac_optarg=yes ;;
1442 esac
1443
1444 # Accept the important Cygnus configure options, so we can diagnose typos.
1445
1446 case $ac_dashdash$ac_option in
1447 --)
1448 ac_dashdash=yes ;;
1449
1450 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1451 ac_prev=bindir ;;
1452 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1453 bindir=$ac_optarg ;;
1454
1455 -build | --build | --buil | --bui | --bu)
1456 ac_prev=build_alias ;;
1457 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1458 build_alias=$ac_optarg ;;
1459
1460 -cache-file | --cache-file | --cache-fil | --cache-fi \
1461 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1462 ac_prev=cache_file ;;
1463 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1464 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1465 cache_file=$ac_optarg ;;
1466
1467 --config-cache | -C)
1468 cache_file=config.cache ;;
1469
1470 -datadir | --datadir | --datadi | --datad)
1471 ac_prev=datadir ;;
1472 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1473 datadir=$ac_optarg ;;
1474
1475 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1476 | --dataroo | --dataro | --datar)
1477 ac_prev=datarootdir ;;
1478 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1479 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1480 datarootdir=$ac_optarg ;;
1481
1482 -disable-* | --disable-*)
1483 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1484 # Reject names that are not valid shell variable names.
1485 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1486 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1487 { (exit 1); exit 1; }; }
1488 ac_useropt_orig=$ac_useropt
1489 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1490 case $ac_user_opts in
1491 *"
1492 "enable_$ac_useropt"
1493 "*) ;;
1494 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1495 ac_unrecognized_sep=', ';;
1496 esac
1497 eval enable_$ac_useropt=no ;;
1498
1499 -docdir | --docdir | --docdi | --doc | --do)
1500 ac_prev=docdir ;;
1501 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1502 docdir=$ac_optarg ;;
1503
1504 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1505 ac_prev=dvidir ;;
1506 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1507 dvidir=$ac_optarg ;;
1508
1509 -enable-* | --enable-*)
1510 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1511 # Reject names that are not valid shell variable names.
1512 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1513 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1514 { (exit 1); exit 1; }; }
1515 ac_useropt_orig=$ac_useropt
1516 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1517 case $ac_user_opts in
1518 *"
1519 "enable_$ac_useropt"
1520 "*) ;;
1521 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1522 ac_unrecognized_sep=', ';;
1523 esac
1524 eval enable_$ac_useropt=\$ac_optarg ;;
1525
1526 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1527 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1528 | --exec | --exe | --ex)
1529 ac_prev=exec_prefix ;;
1530 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1531 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1532 | --exec=* | --exe=* | --ex=*)
1533 exec_prefix=$ac_optarg ;;
1534
1535 -gas | --gas | --ga | --g)
1536 # Obsolete; use --with-gas.
1537 with_gas=yes ;;
1538
1539 -help | --help | --hel | --he | -h)
1540 ac_init_help=long ;;
1541 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1542 ac_init_help=recursive ;;
1543 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1544 ac_init_help=short ;;
1545
1546 -host | --host | --hos | --ho)
1547 ac_prev=host_alias ;;
1548 -host=* | --host=* | --hos=* | --ho=*)
1549 host_alias=$ac_optarg ;;
1550
1551 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1552 ac_prev=htmldir ;;
1553 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1554 | --ht=*)
1555 htmldir=$ac_optarg ;;
1556
1557 -includedir | --includedir | --includedi | --included | --include \
1558 | --includ | --inclu | --incl | --inc)
1559 ac_prev=includedir ;;
1560 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1561 | --includ=* | --inclu=* | --incl=* | --inc=*)
1562 includedir=$ac_optarg ;;
1563
1564 -infodir | --infodir | --infodi | --infod | --info | --inf)
1565 ac_prev=infodir ;;
1566 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1567 infodir=$ac_optarg ;;
1568
1569 -libdir | --libdir | --libdi | --libd)
1570 ac_prev=libdir ;;
1571 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1572 libdir=$ac_optarg ;;
1573
1574 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1575 | --libexe | --libex | --libe)
1576 ac_prev=libexecdir ;;
1577 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1578 | --libexe=* | --libex=* | --libe=*)
1579 libexecdir=$ac_optarg ;;
1580
1581 -localedir | --localedir | --localedi | --localed | --locale)
1582 ac_prev=localedir ;;
1583 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1584 localedir=$ac_optarg ;;
1585
1586 -localstatedir | --localstatedir | --localstatedi | --localstated \
1587 | --localstate | --localstat | --localsta | --localst | --locals)
1588 ac_prev=localstatedir ;;
1589 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1590 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1591 localstatedir=$ac_optarg ;;
1592
1593 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1594 ac_prev=mandir ;;
1595 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1596 mandir=$ac_optarg ;;
1597
1598 -nfp | --nfp | --nf)
1599 # Obsolete; use --without-fp.
1600 with_fp=no ;;
1601
1602 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1603 | --no-cr | --no-c | -n)
1604 no_create=yes ;;
1605
1606 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1607 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1608 no_recursion=yes ;;
1609
1610 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1611 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1612 | --oldin | --oldi | --old | --ol | --o)
1613 ac_prev=oldincludedir ;;
1614 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1615 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1616 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1617 oldincludedir=$ac_optarg ;;
1618
1619 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1620 ac_prev=prefix ;;
1621 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1622 prefix=$ac_optarg ;;
1623
1624 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1625 | --program-pre | --program-pr | --program-p)
1626 ac_prev=program_prefix ;;
1627 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1628 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1629 program_prefix=$ac_optarg ;;
1630
1631 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1632 | --program-suf | --program-su | --program-s)
1633 ac_prev=program_suffix ;;
1634 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1635 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1636 program_suffix=$ac_optarg ;;
1637
1638 -program-transform-name | --program-transform-name \
1639 | --program-transform-nam | --program-transform-na \
1640 | --program-transform-n | --program-transform- \
1641 | --program-transform | --program-transfor \
1642 | --program-transfo | --program-transf \
1643 | --program-trans | --program-tran \
1644 | --progr-tra | --program-tr | --program-t)
1645 ac_prev=program_transform_name ;;
1646 -program-transform-name=* | --program-transform-name=* \
1647 | --program-transform-nam=* | --program-transform-na=* \
1648 | --program-transform-n=* | --program-transform-=* \
1649 | --program-transform=* | --program-transfor=* \
1650 | --program-transfo=* | --program-transf=* \
1651 | --program-trans=* | --program-tran=* \
1652 | --progr-tra=* | --program-tr=* | --program-t=*)
1653 program_transform_name=$ac_optarg ;;
1654
1655 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1656 ac_prev=pdfdir ;;
1657 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1658 pdfdir=$ac_optarg ;;
1659
1660 -psdir | --psdir | --psdi | --psd | --ps)
1661 ac_prev=psdir ;;
1662 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1663 psdir=$ac_optarg ;;
1664
1665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666 | -silent | --silent | --silen | --sile | --sil)
1667 silent=yes ;;
1668
1669 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1670 ac_prev=sbindir ;;
1671 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1672 | --sbi=* | --sb=*)
1673 sbindir=$ac_optarg ;;
1674
1675 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1676 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1677 | --sharedst | --shareds | --shared | --share | --shar \
1678 | --sha | --sh)
1679 ac_prev=sharedstatedir ;;
1680 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1681 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1682 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1683 | --sha=* | --sh=*)
1684 sharedstatedir=$ac_optarg ;;
1685
1686 -site | --site | --sit)
1687 ac_prev=site ;;
1688 -site=* | --site=* | --sit=*)
1689 site=$ac_optarg ;;
1690
1691 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1692 ac_prev=srcdir ;;
1693 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1694 srcdir=$ac_optarg ;;
1695
1696 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1697 | --syscon | --sysco | --sysc | --sys | --sy)
1698 ac_prev=sysconfdir ;;
1699 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1700 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1701 sysconfdir=$ac_optarg ;;
1702
1703 -target | --target | --targe | --targ | --tar | --ta | --t)
1704 ac_prev=target_alias ;;
1705 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1706 target_alias=$ac_optarg ;;
1707
1708 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1709 verbose=yes ;;
1710
1711 -version | --version | --versio | --versi | --vers | -V)
1712 ac_init_version=: ;;
1713
1714 -with-* | --with-*)
1715 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1716 # Reject names that are not valid shell variable names.
1717 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1718 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1719 { (exit 1); exit 1; }; }
1720 ac_useropt_orig=$ac_useropt
1721 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1722 case $ac_user_opts in
1723 *"
1724 "with_$ac_useropt"
1725 "*) ;;
1726 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1727 ac_unrecognized_sep=', ';;
1728 esac
1729 eval with_$ac_useropt=\$ac_optarg ;;
1730
1731 -without-* | --without-*)
1732 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1733 # Reject names that are not valid shell variable names.
1734 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1735 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1736 { (exit 1); exit 1; }; }
1737 ac_useropt_orig=$ac_useropt
1738 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1739 case $ac_user_opts in
1740 *"
1741 "with_$ac_useropt"
1742 "*) ;;
1743 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1744 ac_unrecognized_sep=', ';;
1745 esac
1746 eval with_$ac_useropt=no ;;
1747
1748 --x)
1749 # Obsolete; use --with-x.
1750 with_x=yes ;;
1751
1752 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1753 | --x-incl | --x-inc | --x-in | --x-i)
1754 ac_prev=x_includes ;;
1755 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1756 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1757 x_includes=$ac_optarg ;;
1758
1759 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1760 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1761 ac_prev=x_libraries ;;
1762 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1763 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1764 x_libraries=$ac_optarg ;;
1765
1766 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1767 Try \`$0 --help' for more information." >&2
1768 { (exit 1); exit 1; }; }
1769 ;;
1770
1771 *=*)
1772 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1773 # Reject names that are not valid shell variable names.
1774 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1775 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1776 { (exit 1); exit 1; }; }
1777 eval $ac_envvar=\$ac_optarg
1778 export $ac_envvar ;;
1779
1780 *)
1781 # FIXME: should be removed in autoconf 3.0.
1782 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1783 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1784 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1785 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1786 ;;
1787
1788 esac
1789 done
1790
1791 if test -n "$ac_prev"; then
1792 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1793 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1794 { (exit 1); exit 1; }; }
1795 fi
1796
1797 if test -n "$ac_unrecognized_opts"; then
1798 case $enable_option_checking in
1799 no) ;;
1800 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1801 { (exit 1); exit 1; }; } ;;
1802 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1803 esac
1804 fi
1805
1806 # Check all directory arguments for consistency.
1807 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1808 datadir sysconfdir sharedstatedir localstatedir includedir \
1809 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1810 libdir localedir mandir
1811 do
1812 eval ac_val=\$$ac_var
1813 # Remove trailing slashes.
1814 case $ac_val in
1815 */ )
1816 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1817 eval $ac_var=\$ac_val;;
1818 esac
1819 # Be sure to have absolute directory names.
1820 case $ac_val in
1821 [\\/$]* | ?:[\\/]* ) continue;;
1822 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1823 esac
1824 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1825 { (exit 1); exit 1; }; }
1826 done
1827
1828 # There might be people who depend on the old broken behavior: `$host'
1829 # used to hold the argument of --host etc.
1830 # FIXME: To remove some day.
1831 build=$build_alias
1832 host=$host_alias
1833 target=$target_alias
1834
1835 # FIXME: To remove some day.
1836 if test "x$host_alias" != x; then
1837 if test "x$build_alias" = x; then
1838 cross_compiling=maybe
1839 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1840 If a cross compiler is detected then cross compile mode will be used." >&2
1841 elif test "x$build_alias" != "x$host_alias"; then
1842 cross_compiling=yes
1843 fi
1844 fi
1845
1846 ac_tool_prefix=
1847 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1848
1849 test "$silent" = yes && exec 6>/dev/null
1850
1851
1852 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1853 ac_ls_di=`ls -di .` &&
1854 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1855 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1856 { (exit 1); exit 1; }; }
1857 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1858 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1859 { (exit 1); exit 1; }; }
1860
1861
1862 # Find the source files, if location was not specified.
1863 if test -z "$srcdir"; then
1864 ac_srcdir_defaulted=yes
1865 # Try the directory containing this script, then the parent directory.
1866 ac_confdir=`$as_dirname -- "$as_myself" ||
1867 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1868 X"$as_myself" : 'X\(//\)[^/]' \| \
1869 X"$as_myself" : 'X\(//\)$' \| \
1870 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1871 $as_echo X"$as_myself" |
1872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1873 s//\1/
1874 q
1875 }
1876 /^X\(\/\/\)[^/].*/{
1877 s//\1/
1878 q
1879 }
1880 /^X\(\/\/\)$/{
1881 s//\1/
1882 q
1883 }
1884 /^X\(\/\).*/{
1885 s//\1/
1886 q
1887 }
1888 s/.*/./; q'`
1889 srcdir=$ac_confdir
1890 if test ! -r "$srcdir/$ac_unique_file"; then
1891 srcdir=..
1892 fi
1893 else
1894 ac_srcdir_defaulted=no
1895 fi
1896 if test ! -r "$srcdir/$ac_unique_file"; then
1897 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1898 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1899 { (exit 1); exit 1; }; }
1900 fi
1901 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1902 ac_abs_confdir=`(
1903 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1904 { (exit 1); exit 1; }; }
1905 pwd)`
1906 # When building in place, set srcdir=.
1907 if test "$ac_abs_confdir" = "$ac_pwd"; then
1908 srcdir=.
1909 fi
1910 # Remove unnecessary trailing slashes from srcdir.
1911 # Double slashes in file names in object file debugging info
1912 # mess up M-x gdb in Emacs.
1913 case $srcdir in
1914 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1915 esac
1916 for ac_var in $ac_precious_vars; do
1917 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1918 eval ac_env_${ac_var}_value=\$${ac_var}
1919 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1920 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1921 done
1922
1923 #
1924 # Report the --help message.
1925 #
1926 if test "$ac_init_help" = "long"; then
1927 # Omit some internal or obsolete options to make the list less imposing.
1928 # This message is too long to be a string in the A/UX 3.1 sh.
1929 cat <<_ACEOF
1930 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1931
1932 Usage: $0 [OPTION]... [VAR=VALUE]...
1933
1934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1935 VAR=VALUE. See below for descriptions of some of the useful variables.
1936
1937 Defaults for the options are specified in brackets.
1938
1939 Configuration:
1940 -h, --help display this help and exit
1941 --help=short display options specific to this package
1942 --help=recursive display the short help of all the included packages
1943 -V, --version display version information and exit
1944 -q, --quiet, --silent do not print \`checking...' messages
1945 --cache-file=FILE cache test results in FILE [disabled]
1946 -C, --config-cache alias for \`--cache-file=config.cache'
1947 -n, --no-create do not create output files
1948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1949
1950 Installation directories:
1951 --prefix=PREFIX install architecture-independent files in PREFIX
1952 [$ac_default_prefix]
1953 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1954 [PREFIX]
1955
1956 By default, \`make install' will install all the files in
1957 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1958 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1959 for instance \`--prefix=\$HOME'.
1960
1961 For better control, use the options below.
1962
1963 Fine tuning of the installation directories:
1964 --bindir=DIR user executables [EPREFIX/bin]
1965 --sbindir=DIR system admin executables [EPREFIX/sbin]
1966 --libexecdir=DIR program executables [EPREFIX/libexec]
1967 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1968 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1969 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1970 --libdir=DIR object code libraries [EPREFIX/lib]
1971 --includedir=DIR C header files [PREFIX/include]
1972 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1973 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1974 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1975 --infodir=DIR info documentation [DATAROOTDIR/info]
1976 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1977 --mandir=DIR man documentation [DATAROOTDIR/man]
1978 --docdir=DIR documentation root [DATAROOTDIR/doc/wxwidgets]
1979 --htmldir=DIR html documentation [DOCDIR]
1980 --dvidir=DIR dvi documentation [DOCDIR]
1981 --pdfdir=DIR pdf documentation [DOCDIR]
1982 --psdir=DIR ps documentation [DOCDIR]
1983 _ACEOF
1984
1985 cat <<\_ACEOF
1986
1987 X features:
1988 --x-includes=DIR X include files are in DIR
1989 --x-libraries=DIR X library files are in DIR
1990
1991 System types:
1992 --build=BUILD configure for building on BUILD [guessed]
1993 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1994 _ACEOF
1995 fi
1996
1997 if test -n "$ac_init_help"; then
1998 case $ac_init_help in
1999 short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
2000 esac
2001 cat <<\_ACEOF
2002
2003 Optional Features:
2004 --disable-option-checking ignore unrecognized --enable/--with options
2005 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2006 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2007 --disable-gui don't build GUI parts of the library
2008 --enable-monolithic build wxWidgets as single library
2009 --enable-plugins build parts of wxWidgets as loadable components
2010 --enable-official_build official build of wxWidgets (win32 DLL only)
2011 --enable-vendor=VENDOR vendor name (win32 DLL only)
2012 --disable-all-features disable all optional features to build minimal library
2013 --enable-universal use wxWidgets GUI controls instead of native ones
2014 --enable-nanox use NanoX
2015 --disable-gtk2 use GTK+ 1.2 instead of 2.0
2016 --enable-gpe use GNOME PDA Environment features if possible
2017 --disable-shared create static library instead of shared
2018 --enable-debug same as debug_flag and debug_info
2019 --enable-stl use STL for containers
2020 --enable-std_iostreams use standard C++ stream classes
2021 --enable-std_string use standard C++ string classes
2022 --disable-unicode compile without Unicode support
2023 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
2024 --enable-utf8 use UTF-8 representation for strings (Unix only)
2025 --enable-utf8only only support UTF-8 locales in UTF-8 build (Unix only)
2026 --enable-extended_rtti use extended RTTI (XTI)
2027 --enable-omf use OMF object format
2028 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
2029 --enable-debug_info create code with debugging information
2030 --disable-optimise compile without optimisations
2031 --enable-debug_gdb create code with extra GDB debugging information
2032 --enable-debug_cntxt use wxDebugContext
2033 --enable-mem_tracing create code with memory tracing
2034 --enable-profile create code with profiling information
2035 --enable-no_rtti create code without RTTI information
2036 --enable-no_exceptions create code without C++ exceptions handling
2037 --enable-permissive compile code disregarding strict ANSI
2038 --enable-no_deps create code without dependency information
2039 --disable-vararg_macros don't use vararg macros, even if they are supported
2040 --enable-universal_binary create Mac PowerPC and Intel Universal binary
2041 --enable-compat26 enable wxWidgets 2.6 compatibility
2042 --disable-compat28 disable wxWidgets 2.8 compatibility
2043 --disable-rpath disable use of rpath for uninstalled builds
2044 --enable-objc_uniquifying enable Objective-C class name uniquifying
2045 --disable-visibility disable use of ELF symbols visibility even if supported
2046 --enable-intl use internationalization system
2047 --enable-xlocale use x-locale support (requires wxLocale)
2048 --enable-config use wxConfig (and derived) classes
2049 --enable-protocols use wxProtocol and derived classes
2050 --enable-ftp use wxFTP (requires wxProtocol
2051 --enable-http use wxHTTP (requires wxProtocol
2052 --enable-fileproto use wxFileProto class (requires wxProtocol
2053 --enable-sockets use socket/network classes
2054 --enable-ipv6 enable IPv6 support in wxSocket
2055 --enable-ole use OLE classes (Win32 only)
2056 --enable-dataobj use data object classes
2057 --enable-ipc use interprocess communication (wxSocket etc.)
2058 --enable-baseevtloop use event loop in console programs too
2059 --enable-epollloop use wxEpollDispatcher class (Linux only)
2060 --enable-selectloop use wxSelectDispatcher class
2061 --enable-apple_ieee use the Apple IEEE codec
2062 --enable-arcstream use wxArchive streams
2063 --enable-base64 use base64 encoding/decoding functions
2064 --enable-backtrace use wxStackWalker class for getting backtraces
2065 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
2066 --enable-cmdline use wxCmdLineParser class
2067 --enable-datetime use wxDateTime class
2068 --enable-debugreport use wxDebugReport class
2069 --enable-dialupman use dialup network classes
2070 --enable-dynlib use wxLibrary class for DLL loading
2071 --enable-dynamicloader use (new) wxDynamicLibrary class
2072 --enable-exceptions build exception-safe library
2073 --enable-ffile use wxFFile class
2074 --enable-file use wxFile class
2075 --enable-filesystem use virtual file systems classes
2076 --enable-fontenum use wxFontEnumerator class
2077 --enable-fontmap use font encodings conversion classes
2078 --enable-fs_archive use virtual archive filesystems
2079 --enable-fs_inet use virtual HTTP/FTP filesystems
2080 --enable-fs_zip now replaced by fs_archive
2081 --enable-geometry use geometry class
2082 --enable-log use logging system
2083 --enable-longlong use wxLongLong class
2084 --enable-mimetype use wxMimeTypesManager
2085 --enable-printfposparam use wxVsnprintf() which supports positional parameters
2086 --enable-snglinst use wxSingleInstanceChecker class
2087 --enable-sound use wxSound class
2088 --enable-stdpaths use wxStandardPaths class
2089 --enable-stopwatch use wxStopWatch class
2090 --enable-streams use wxStream etc classes
2091 --enable-sysoptions use wxSystemOptions
2092 --enable-tarstream use wxTar streams
2093 --enable-textbuf use wxTextBuffer class
2094 --enable-textfile use wxTextFile class
2095 --enable-timer use wxTimer class
2096 --enable-variant use wxVariant class
2097 --enable-zipstream use wxZip streams
2098 --enable-url use wxURL class
2099 --enable-protocol use wxProtocol class
2100 --enable-protocol-http HTTP support in wxProtocol
2101 --enable-protocol-ftp FTP support in wxProtocol
2102 --enable-protocol-file FILE support in wxProtocol
2103 --enable-threads use threads
2104 --enable-iniconf use wxIniConfig (Win32 only)
2105 --enable-regkey use wxRegKey class (Win32 only)
2106 --enable-docview use document view architecture
2107 --enable-help use help subsystem
2108 --enable-mshtmlhelp use MS HTML Help (win32)
2109 --enable-html use wxHTML sub-library
2110 --enable-htmlhelp use wxHTML-based help
2111 --enable-xrc use XRC resources sub-library
2112 --enable-aui use AUI docking library
2113 --enable-propgrid use wxPropertyGrid library
2114 --enable-stc use wxStyledTextCtrl library
2115 --enable-constraints use layout-constraints system
2116 --enable-loggui use standard GUI logger
2117 --enable-logwin use wxLogWindow
2118 --enable-logdialog use wxLogDialog
2119 --enable-mdi use multiple document interface architecture
2120 --enable-mdidoc use docview architecture with MDI
2121 --enable-mediactrl use wxMediaCtrl class
2122 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
2123 --enable-webkit use wxWebKitCtrl (Mac)
2124 --enable-richtext use wxRichTextCtrl
2125 --enable-graphics_ctx use graphics context 2D drawing API
2126 --enable-postscript use wxPostscriptDC device context (default for gtk+)
2127 --enable-printarch use printing architecture
2128 --enable-svg use wxSVGFileDC device context
2129 --enable-clipboard use wxClipboard class
2130 --enable-dnd use Drag'n'Drop classes
2131 --enable-metafile use win32 metafiles
2132 --disable-controls disable compilation of all standard controls
2133 --enable-accel use accelerators
2134 --enable-animatectrl use wxAnimationCtrl class
2135 --enable-bmpbutton use wxBitmapButton class
2136 --enable-bmpcombobox use wxBitmapComboBox class
2137 --enable-button use wxButton class
2138 --enable-calendar use wxCalendarCtrl class
2139 --enable-caret use wxCaret class
2140 --enable-checkbox use wxCheckBox class
2141 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
2142 --enable-choice use wxChoice class
2143 --enable-choicebook use wxChoicebook class
2144 --enable-collpane use wxCollapsiblePane class
2145 --enable-colourpicker use wxColourPickerCtrl class
2146 --enable-combobox use wxComboBox class
2147 --enable-comboctrl use wxComboCtrl class
2148 --enable-dataviewctrl use wxDataViewCtrl class
2149 --enable-datepick use wxDatePickerCtrl class
2150 --enable-detect_sm use code to detect X11 session manager
2151 --enable-dirpicker use wxDirPickerCtrl class
2152 --enable-display use wxDisplay class
2153 --enable-editablebox use wxEditableListBox class
2154 --enable-filectrl use wxFileCtrl class
2155 --enable-filepicker use wxFilePickerCtrl class
2156 --enable-fontpicker use wxFontPickerCtrl class
2157 --enable-gauge use wxGauge class
2158 --enable-grid use wxGrid class
2159 --enable-headerctrl use wxHeaderCtrl class
2160 --enable-hyperlink use wxHyperlinkCtrl class
2161 --enable-imaglist use wxImageList class
2162 --enable-listbook use wxListbook class
2163 --enable-listbox use wxListBox class
2164 --enable-listctrl use wxListCtrl class
2165 --enable-notebook use wxNotebook class
2166 --enable-notifmsg use wxNotificationMessage class
2167 --enable-odcombobox use wxOwnerDrawnComboBox class
2168 --enable-popupwin use wxPopUpWindow class
2169 --enable-radiobox use wxRadioBox class
2170 --enable-radiobtn use wxRadioButton class
2171 --enable-rearrangectrl use wxRearrangeList/Ctrl/Dialog
2172 --enable-sash use wxSashWindow class
2173 --enable-scrollbar use wxScrollBar class and scrollable windows
2174 --enable-searchctrl use wxSearchCtrl class
2175 --enable-slider use wxSlider class
2176 --enable-spinbtn use wxSpinButton class
2177 --enable-spinctrl use wxSpinCtrl class
2178 --enable-splitter use wxSplitterWindow class
2179 --enable-statbmp use wxStaticBitmap class
2180 --enable-statbox use wxStaticBox class
2181 --enable-statline use wxStaticLine class
2182 --enable-stattext use wxStaticText class
2183 --enable-statusbar use wxStatusBar class
2184 --enable-taskbaricon use wxTaskBarIcon class
2185 --enable-tbarnative use native wxToolBar class
2186 --enable-textctrl use wxTextCtrl class
2187 --enable-tipwindow use wxTipWindow class
2188 --enable-togglebtn use wxToggleButton class
2189 --enable-toolbar use wxToolBar class
2190 --enable-toolbook use wxToolbook class
2191 --enable-treebook use wxTreebook class
2192 --enable-treectrl use wxTreeCtrl class
2193 --enable-commondlg use all common dialogs
2194 --enable-aboutdlg use wxAboutBox
2195 --enable-choicedlg use wxChoiceDialog
2196 --enable-coldlg use wxColourDialog
2197 --enable-filedlg use wxFileDialog
2198 --enable-finddlg use wxFindReplaceDialog
2199 --enable-fontdlg use wxFontDialog
2200 --enable-dirdlg use wxDirDialog
2201 --enable-msgdlg use wxMessageDialog
2202 --enable-numberdlg use wxNumberEntryDialog
2203 --enable-splash use wxSplashScreen
2204 --enable-textdlg use wxTextDialog
2205 --enable-tipdlg use startup tips
2206 --enable-progressdlg use wxProgressDialog
2207 --enable-wizarddlg use wxWizard
2208 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
2209 --enable-miniframe use wxMiniFrame class
2210 --enable-tooltips use wxToolTip class
2211 --enable-splines use spline drawing code
2212 --enable-mousewheel use mousewheel
2213 --enable-validators use wxValidator and derived classes
2214 --enable-busyinfo use wxBusyInfo
2215 --enable-joystick use wxJoystick
2216 --enable-metafiles use wxMetaFile (Win32 only)
2217 --enable-dragimage use wxDragImage
2218 --enable-accessibility enable accessibility support
2219 --enable-palette use wxPalette class
2220 --enable-image use wxImage class
2221 --enable-gif use gif images (GIF file format)
2222 --enable-pcx use pcx images (PCX file format)
2223 --enable-tga use tga images (TGA file format)
2224 --enable-iff use iff images (IFF file format)
2225 --enable-pnm use pnm images (PNM file format)
2226 --enable-xpm use xpm images (XPM file format)
2227 --enable-ico_cur use Windows ICO and CUR formats
2228 --enable-dccache cache temporary wxDC objects (Win32 only)
2229 --enable-ps-in-msw use PS printing in wxMSW (Win32 only)
2230 --enable-ownerdrawn use owner drawn controls (Win32 and OS/2 only)
2231 --enable-uxtheme enable support for Windows XP themed look (Win32 only)
2232 --enable-wxdib use wxDIB class (Win32 only)
2233 --enable-autoidman use automatic ids management
2234 --disable-largefile omit support for large files
2235 --disable-gtktest do not try to compile and run a test GTK+ program
2236 --disable-gtktest Do not try to compile and run a test GTK program
2237 --disable-sdltest Do not try to compile and run a test SDL program
2238 --enable-omf use OMF object format (OS/2)
2239 --disable-dependency-tracking
2240 don't use dependency tracking even if the compiler
2241 can
2242 --disable-precomp-headers
2243 don't use precompiled headers even if compiler can
2244
2245 Optional Packages:
2246 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2247 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2248 --without-subdirs don't generate makefiles for samples/demos/...
2249 --with-flavour=NAME specify a name to identify this build
2250 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
2251 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
2252 --with-motif use Motif/Lesstif
2253 --with-osx_carbon use Mac OS X (Carbon)
2254 --with-osx_cocoa use Mac OS X (Cocoa)
2255 --with-mac use Mac OS X (Default)
2256 --with-cocoa use Cocoa
2257 --with-wine use Wine
2258 --with-msw use MS-Windows
2259 --with-pm use OS/2 Presentation Manager
2260 --with-mgl use SciTech MGL
2261 --with-directfb use DirectFB
2262 --with-microwin use MicroWindows
2263 --with-x11 use X11
2264 --with-libpng use libpng (PNG image format)
2265 --with-libjpeg use libjpeg (JPEG file format)
2266 --with-libtiff use libtiff (TIFF file format)
2267 --with-libxpm use libxpm (XPM file format)
2268 --with-libiconv use libiconv (character conversion)
2269 --with-libmspack use libmspack (CHM help files loading)
2270 --without-gtkprint don't use GTK printing support
2271 --without-gnomeprint don't use GNOME printing libraries
2272 --with-gnomevfs use GNOME VFS for associating MIME types
2273 --with-hildon use Hildon framework for Nokia 770
2274 --with-opengl use OpenGL (or Mesa)
2275 --with-dmalloc use dmalloc library (http://dmalloc.com/)
2276 --with-sdl use SDL for audio on Unix
2277 --with-regex enable support for wxRegEx class
2278 --with-zlib use zlib for LZW compression
2279 --with-expat enable XML support using expat parser
2280 --with-macosx-sdk=PATH use an OS X SDK at PATH
2281 --with-macosx-version-min=VER build binaries which require at least this OS X version
2282 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
2283 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
2284 --with-x use the X Window System
2285 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
2286 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
2287 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
2288 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
2289 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
2290
2291 Some influential environment variables:
2292 CC C compiler command
2293 CFLAGS C compiler flags
2294 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2295 nonstandard directory <lib dir>
2296 LIBS libraries to pass to the linker, e.g. -l<library>
2297 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2298 you have headers in a nonstandard directory <include dir>
2299 CPP C preprocessor
2300 CXX C++ compiler command
2301 CXXFLAGS C++ compiler flags
2302 PKG_CONFIG path to pkg-config utility
2303 DIRECTFB_CFLAGS
2304 C compiler flags for DIRECTFB, overriding pkg-config
2305 DIRECTFB_LIBS
2306 linker flags for DIRECTFB, overriding pkg-config
2307 XMKMF Path to xmkmf, Makefile generator for X Window System
2308 PANGOX_CFLAGS
2309 C compiler flags for PANGOX, overriding pkg-config
2310 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
2311 PANGOFT2_CFLAGS
2312 C compiler flags for PANGOFT2, overriding pkg-config
2313 PANGOFT2_LIBS
2314 linker flags for PANGOFT2, overriding pkg-config
2315 PANGOXFT_CFLAGS
2316 C compiler flags for PANGOXFT, overriding pkg-config
2317 PANGOXFT_LIBS
2318 linker flags for PANGOXFT, overriding pkg-config
2319 GTKPRINT_CFLAGS
2320 C compiler flags for GTKPRINT, overriding pkg-config
2321 GTKPRINT_LIBS
2322 linker flags for GTKPRINT, overriding pkg-config
2323 LIBGNOMEPRINTUI_CFLAGS
2324 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2325 LIBGNOMEPRINTUI_LIBS
2326 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2327 GNOMEVFS_CFLAGS
2328 C compiler flags for GNOMEVFS, overriding pkg-config
2329 GNOMEVFS_LIBS
2330 linker flags for GNOMEVFS, overriding pkg-config
2331 HILDON_CFLAGS
2332 C compiler flags for HILDON, overriding pkg-config
2333 HILDON_LIBS linker flags for HILDON, overriding pkg-config
2334 CAIRO_CFLAGS
2335 C compiler flags for CAIRO, overriding pkg-config
2336 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
2337 GST_CFLAGS C compiler flags for GST, overriding pkg-config
2338 GST_LIBS linker flags for GST, overriding pkg-config
2339
2340 Use these variables to override the choices made by `configure' or to help
2341 it to find libraries and programs with nonstandard names/locations.
2342
2343 Report bugs to <wx-dev@lists.wxwidgets.org>.
2344 _ACEOF
2345 ac_status=$?
2346 fi
2347
2348 if test "$ac_init_help" = "recursive"; then
2349 # If there are subdirs, report their specific --help.
2350 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2351 test -d "$ac_dir" ||
2352 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2353 continue
2354 ac_builddir=.
2355
2356 case "$ac_dir" in
2357 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2358 *)
2359 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2360 # A ".." for each directory in $ac_dir_suffix.
2361 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2362 case $ac_top_builddir_sub in
2363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2365 esac ;;
2366 esac
2367 ac_abs_top_builddir=$ac_pwd
2368 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2369 # for backward compatibility:
2370 ac_top_builddir=$ac_top_build_prefix
2371
2372 case $srcdir in
2373 .) # We are building in place.
2374 ac_srcdir=.
2375 ac_top_srcdir=$ac_top_builddir_sub
2376 ac_abs_top_srcdir=$ac_pwd ;;
2377 [\\/]* | ?:[\\/]* ) # Absolute name.
2378 ac_srcdir=$srcdir$ac_dir_suffix;
2379 ac_top_srcdir=$srcdir
2380 ac_abs_top_srcdir=$srcdir ;;
2381 *) # Relative name.
2382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2383 ac_top_srcdir=$ac_top_build_prefix$srcdir
2384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2385 esac
2386 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2387
2388 cd "$ac_dir" || { ac_status=$?; continue; }
2389 # Check for guested configure.
2390 if test -f "$ac_srcdir/configure.gnu"; then
2391 echo &&
2392 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2393 elif test -f "$ac_srcdir/configure"; then
2394 echo &&
2395 $SHELL "$ac_srcdir/configure" --help=recursive
2396 else
2397 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2398 fi || ac_status=$?
2399 cd "$ac_pwd" || { ac_status=$?; break; }
2400 done
2401 fi
2402
2403 test -n "$ac_init_help" && exit $ac_status
2404 if $ac_init_version; then
2405 cat <<\_ACEOF
2406 wxWidgets configure 2.9.0
2407 generated by GNU Autoconf 2.63
2408
2409 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2410 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2411 This configure script is free software; the Free Software Foundation
2412 gives unlimited permission to copy, distribute and modify it.
2413 _ACEOF
2414 exit
2415 fi
2416 cat >config.log <<_ACEOF
2417 This file contains any messages produced by compilers while
2418 running configure, to aid debugging if configure makes a mistake.
2419
2420 It was created by wxWidgets $as_me 2.9.0, which was
2421 generated by GNU Autoconf 2.63. Invocation command line was
2422
2423 $ $0 $@
2424
2425 _ACEOF
2426 exec 5>>config.log
2427 {
2428 cat <<_ASUNAME
2429 ## --------- ##
2430 ## Platform. ##
2431 ## --------- ##
2432
2433 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2434 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2435 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2436 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2437 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2438
2439 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2440 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2441
2442 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2443 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2444 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2445 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2446 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2447 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2448 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2449
2450 _ASUNAME
2451
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 $as_echo "PATH: $as_dir"
2458 done
2459 IFS=$as_save_IFS
2460
2461 } >&5
2462
2463 cat >&5 <<_ACEOF
2464
2465
2466 ## ----------- ##
2467 ## Core tests. ##
2468 ## ----------- ##
2469
2470 _ACEOF
2471
2472
2473 # Keep a trace of the command line.
2474 # Strip out --no-create and --no-recursion so they do not pile up.
2475 # Strip out --silent because we don't want to record it for future runs.
2476 # Also quote any args containing shell meta-characters.
2477 # Make two passes to allow for proper duplicate-argument suppression.
2478 ac_configure_args=
2479 ac_configure_args0=
2480 ac_configure_args1=
2481 ac_must_keep_next=false
2482 for ac_pass in 1 2
2483 do
2484 for ac_arg
2485 do
2486 case $ac_arg in
2487 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2489 | -silent | --silent | --silen | --sile | --sil)
2490 continue ;;
2491 *\'*)
2492 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2493 esac
2494 case $ac_pass in
2495 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2496 2)
2497 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2498 if test $ac_must_keep_next = true; then
2499 ac_must_keep_next=false # Got value, back to normal.
2500 else
2501 case $ac_arg in
2502 *=* | --config-cache | -C | -disable-* | --disable-* \
2503 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2504 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2505 | -with-* | --with-* | -without-* | --without-* | --x)
2506 case "$ac_configure_args0 " in
2507 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2508 esac
2509 ;;
2510 -* ) ac_must_keep_next=true ;;
2511 esac
2512 fi
2513 ac_configure_args="$ac_configure_args '$ac_arg'"
2514 ;;
2515 esac
2516 done
2517 done
2518 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2519 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2520
2521 # When interrupted or exit'd, cleanup temporary files, and complete
2522 # config.log. We remove comments because anyway the quotes in there
2523 # would cause problems or look ugly.
2524 # WARNING: Use '\'' to represent an apostrophe within the trap.
2525 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2526 trap 'exit_status=$?
2527 # Save into config.log some information that might help in debugging.
2528 {
2529 echo
2530
2531 cat <<\_ASBOX
2532 ## ---------------- ##
2533 ## Cache variables. ##
2534 ## ---------------- ##
2535 _ASBOX
2536 echo
2537 # The following way of writing the cache mishandles newlines in values,
2538 (
2539 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2540 eval ac_val=\$$ac_var
2541 case $ac_val in #(
2542 *${as_nl}*)
2543 case $ac_var in #(
2544 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2546 esac
2547 case $ac_var in #(
2548 _ | IFS | as_nl) ;; #(
2549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2550 *) $as_unset $ac_var ;;
2551 esac ;;
2552 esac
2553 done
2554 (set) 2>&1 |
2555 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2556 *${as_nl}ac_space=\ *)
2557 sed -n \
2558 "s/'\''/'\''\\\\'\'''\''/g;
2559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2560 ;; #(
2561 *)
2562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2563 ;;
2564 esac |
2565 sort
2566 )
2567 echo
2568
2569 cat <<\_ASBOX
2570 ## ----------------- ##
2571 ## Output variables. ##
2572 ## ----------------- ##
2573 _ASBOX
2574 echo
2575 for ac_var in $ac_subst_vars
2576 do
2577 eval ac_val=\$$ac_var
2578 case $ac_val in
2579 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2580 esac
2581 $as_echo "$ac_var='\''$ac_val'\''"
2582 done | sort
2583 echo
2584
2585 if test -n "$ac_subst_files"; then
2586 cat <<\_ASBOX
2587 ## ------------------- ##
2588 ## File substitutions. ##
2589 ## ------------------- ##
2590 _ASBOX
2591 echo
2592 for ac_var in $ac_subst_files
2593 do
2594 eval ac_val=\$$ac_var
2595 case $ac_val in
2596 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2597 esac
2598 $as_echo "$ac_var='\''$ac_val'\''"
2599 done | sort
2600 echo
2601 fi
2602
2603 if test -s confdefs.h; then
2604 cat <<\_ASBOX
2605 ## ----------- ##
2606 ## confdefs.h. ##
2607 ## ----------- ##
2608 _ASBOX
2609 echo
2610 cat confdefs.h
2611 echo
2612 fi
2613 test "$ac_signal" != 0 &&
2614 $as_echo "$as_me: caught signal $ac_signal"
2615 $as_echo "$as_me: exit $exit_status"
2616 } >&5
2617 rm -f core *.core core.conftest.* &&
2618 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2619 exit $exit_status
2620 ' 0
2621 for ac_signal in 1 2 13 15; do
2622 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2623 done
2624 ac_signal=0
2625
2626 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2627 rm -f -r conftest* confdefs.h
2628
2629 # Predefined preprocessor variables.
2630
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_NAME "$PACKAGE_NAME"
2633 _ACEOF
2634
2635
2636 cat >>confdefs.h <<_ACEOF
2637 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2638 _ACEOF
2639
2640
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2643 _ACEOF
2644
2645
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_STRING "$PACKAGE_STRING"
2648 _ACEOF
2649
2650
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2653 _ACEOF
2654
2655
2656 # Let the site file select an alternate cache file if it wants to.
2657 # Prefer an explicitly selected file to automatically selected ones.
2658 ac_site_file1=NONE
2659 ac_site_file2=NONE
2660 if test -n "$CONFIG_SITE"; then
2661 ac_site_file1=$CONFIG_SITE
2662 elif test "x$prefix" != xNONE; then
2663 ac_site_file1=$prefix/share/config.site
2664 ac_site_file2=$prefix/etc/config.site
2665 else
2666 ac_site_file1=$ac_default_prefix/share/config.site
2667 ac_site_file2=$ac_default_prefix/etc/config.site
2668 fi
2669 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2670 do
2671 test "x$ac_site_file" = xNONE && continue
2672 if test -r "$ac_site_file"; then
2673 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2674 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2675 sed 's/^/| /' "$ac_site_file" >&5
2676 . "$ac_site_file"
2677 fi
2678 done
2679
2680 if test -r "$cache_file"; then
2681 # Some versions of bash will fail to source /dev/null (special
2682 # files actually), so we avoid doing that.
2683 if test -f "$cache_file"; then
2684 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2685 $as_echo "$as_me: loading cache $cache_file" >&6;}
2686 case $cache_file in
2687 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2688 *) . "./$cache_file";;
2689 esac
2690 fi
2691 else
2692 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2693 $as_echo "$as_me: creating cache $cache_file" >&6;}
2694 >$cache_file
2695 fi
2696
2697 # Check that the precious variables saved in the cache have kept the same
2698 # value.
2699 ac_cache_corrupted=false
2700 for ac_var in $ac_precious_vars; do
2701 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2702 eval ac_new_set=\$ac_env_${ac_var}_set
2703 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2704 eval ac_new_val=\$ac_env_${ac_var}_value
2705 case $ac_old_set,$ac_new_set in
2706 set,)
2707 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2708 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2709 ac_cache_corrupted=: ;;
2710 ,set)
2711 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2712 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2713 ac_cache_corrupted=: ;;
2714 ,);;
2715 *)
2716 if test "x$ac_old_val" != "x$ac_new_val"; then
2717 # differences in whitespace do not lead to failure.
2718 ac_old_val_w=`echo x $ac_old_val`
2719 ac_new_val_w=`echo x $ac_new_val`
2720 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2721 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2722 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2723 ac_cache_corrupted=:
2724 else
2725 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2726 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2727 eval $ac_var=\$ac_old_val
2728 fi
2729 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2730 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2731 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2732 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2733 fi;;
2734 esac
2735 # Pass precious variables to config.status.
2736 if test "$ac_new_set" = set; then
2737 case $ac_new_val in
2738 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2739 *) ac_arg=$ac_var=$ac_new_val ;;
2740 esac
2741 case " $ac_configure_args " in
2742 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2743 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2744 esac
2745 fi
2746 done
2747 if $ac_cache_corrupted; then
2748 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2750 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2751 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2752 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2753 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2754 { (exit 1); exit 1; }; }
2755 fi
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786
2787
2788
2789
2790
2791 ac_aux_dir=
2792 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2793 if test -f "$ac_dir/install-sh"; then
2794 ac_aux_dir=$ac_dir
2795 ac_install_sh="$ac_aux_dir/install-sh -c"
2796 break
2797 elif test -f "$ac_dir/install.sh"; then
2798 ac_aux_dir=$ac_dir
2799 ac_install_sh="$ac_aux_dir/install.sh -c"
2800 break
2801 elif test -f "$ac_dir/shtool"; then
2802 ac_aux_dir=$ac_dir
2803 ac_install_sh="$ac_aux_dir/shtool install -c"
2804 break
2805 fi
2806 done
2807 if test -z "$ac_aux_dir"; then
2808 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2809 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2810 { (exit 1); exit 1; }; }
2811 fi
2812
2813 # These three variables are undocumented and unsupported,
2814 # and are intended to be withdrawn in a future Autoconf release.
2815 # They can cause serious problems if a builder's source tree is in a directory
2816 # whose full name contains unusual characters.
2817 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2818 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2819 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2820
2821
2822 # Make sure we can run config.sub.
2823 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2824 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2825 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2826 { (exit 1); exit 1; }; }
2827
2828 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2829 $as_echo_n "checking build system type... " >&6; }
2830 if test "${ac_cv_build+set}" = set; then
2831 $as_echo_n "(cached) " >&6
2832 else
2833 ac_build_alias=$build_alias
2834 test "x$ac_build_alias" = x &&
2835 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2836 test "x$ac_build_alias" = x &&
2837 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2838 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2839 { (exit 1); exit 1; }; }
2840 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2841 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2842 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2843 { (exit 1); exit 1; }; }
2844
2845 fi
2846 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2847 $as_echo "$ac_cv_build" >&6; }
2848 case $ac_cv_build in
2849 *-*-*) ;;
2850 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2851 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2852 { (exit 1); exit 1; }; };;
2853 esac
2854 build=$ac_cv_build
2855 ac_save_IFS=$IFS; IFS='-'
2856 set x $ac_cv_build
2857 shift
2858 build_cpu=$1
2859 build_vendor=$2
2860 shift; shift
2861 # Remember, the first character of IFS is used to create $*,
2862 # except with old shells:
2863 build_os=$*
2864 IFS=$ac_save_IFS
2865 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2866
2867
2868 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2869 $as_echo_n "checking host system type... " >&6; }
2870 if test "${ac_cv_host+set}" = set; then
2871 $as_echo_n "(cached) " >&6
2872 else
2873 if test "x$host_alias" = x; then
2874 ac_cv_host=$ac_cv_build
2875 else
2876 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2877 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2878 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2879 { (exit 1); exit 1; }; }
2880 fi
2881
2882 fi
2883 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2884 $as_echo "$ac_cv_host" >&6; }
2885 case $ac_cv_host in
2886 *-*-*) ;;
2887 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2888 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2889 { (exit 1); exit 1; }; };;
2890 esac
2891 host=$ac_cv_host
2892 ac_save_IFS=$IFS; IFS='-'
2893 set x $ac_cv_host
2894 shift
2895 host_cpu=$1
2896 host_vendor=$2
2897 shift; shift
2898 # Remember, the first character of IFS is used to create $*,
2899 # except with old shells:
2900 host_os=$*
2901 IFS=$ac_save_IFS
2902 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2903
2904
2905
2906 if test "$cross_compiling" != "no"; then
2907 HOST_PREFIX="${host_alias}-"
2908 HOST_SUFFIX="-$host_alias"
2909 else
2910 HOST_PREFIX=
2911 HOST_SUFFIX=
2912 fi
2913
2914
2915 wx_major_version_number=2
2916 wx_minor_version_number=9
2917 wx_release_number=0
2918 wx_subrelease_number=0
2919
2920 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2921 WX_VERSION=$WX_RELEASE.$wx_release_number
2922 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2923
2924 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2925
2926
2927 wx_top_builddir="`pwd`"
2928
2929
2930
2931
2932 USE_UNIX=1
2933 USE_OS2=0
2934 USE_WIN32=0
2935 USE_DOS=0
2936 USE_BEOS=0
2937 USE_MAC=0
2938
2939 USE_AIX=
2940 USE_BSD= USE_DARWIN= USE_FREEBSD=
2941 USE_GNU= USE_HPUX=
2942 USE_LINUX=
2943 USE_NETBSD=
2944 USE_OPENBSD=
2945 USE_OSF= USE_SGI=
2946 USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
2947 USE_ULTRIX=
2948 USE_UNIXWARE=
2949
2950 USE_ALPHA=
2951
2952 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2953
2954 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA MGL MICROWIN MOTIF MSW PM X11 DFB"
2955
2956 DEFAULT_wxUSE_COCOA=0
2957 DEFAULT_wxUSE_GTK=0
2958 DEFAULT_wxUSE_OSX_CARBON=0
2959 DEFAULT_wxUSE_OSX_COCOA=0
2960 DEFAULT_wxUSE_MGL=0
2961 DEFAULT_wxUSE_MICROWIN=0
2962 DEFAULT_wxUSE_MOTIF=0
2963 DEFAULT_wxUSE_MSW=0
2964 DEFAULT_wxUSE_PM=0
2965 DEFAULT_wxUSE_X11=0
2966 DEFAULT_wxUSE_DFB=0
2967
2968 DEFAULT_DEFAULT_wxUSE_COCOA=0
2969 DEFAULT_DEFAULT_wxUSE_GTK=0
2970 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2971 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2972 DEFAULT_DEFAULT_wxUSE_MGL=0
2973 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2974 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2975 DEFAULT_DEFAULT_wxUSE_MSW=0
2976 DEFAULT_DEFAULT_wxUSE_PM=0
2977 DEFAULT_DEFAULT_wxUSE_X11=0
2978 DEFAULT_DEFAULT_wxUSE_DFB=0
2979
2980 PROGRAM_EXT=
2981 SAMPLES_RPATH_FLAG=
2982 DYLIB_RPATH_INSTALL=
2983 DYLIB_RPATH_POSTLINK=
2984
2985 DEFAULT_STD_FLAG=yes
2986
2987 case "${host}" in
2988 *-hp-hpux* )
2989 USE_HPUX=1
2990 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2991 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2992 cat >>confdefs.h <<\_ACEOF
2993 #define __HPUX__ 1
2994 _ACEOF
2995
2996
2997 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2998 ;;
2999 *-*-linux* )
3000 USE_LINUX=1
3001 cat >>confdefs.h <<\_ACEOF
3002 #define __LINUX__ 1
3003 _ACEOF
3004
3005 TMP=`uname -m`
3006 if test "x$TMP" = "xalpha"; then
3007 USE_ALPHA=1
3008 cat >>confdefs.h <<\_ACEOF
3009 #define __ALPHA__ 1
3010 _ACEOF
3011
3012 fi
3013 DEFAULT_DEFAULT_wxUSE_GTK=1
3014 ;;
3015 *-*-gnu* | *-*-k*bsd*-gnu )
3016 USE_GNU=1
3017 TMP=`uname -m`
3018 if test "x$TMP" = "xalpha"; then
3019 USE_ALPHA=1
3020 cat >>confdefs.h <<\_ACEOF
3021 #define __ALPHA__ 1
3022 _ACEOF
3023
3024 fi
3025 DEFAULT_DEFAULT_wxUSE_GTK=1
3026 ;;
3027 *-*-irix5* | *-*-irix6* )
3028 USE_SGI=1
3029 USE_SVR4=1
3030 cat >>confdefs.h <<\_ACEOF
3031 #define __SGI__ 1
3032 _ACEOF
3033
3034 cat >>confdefs.h <<\_ACEOF
3035 #define __SVR4__ 1
3036 _ACEOF
3037
3038 DEFAULT_DEFAULT_wxUSE_MOTIF=1
3039 ;;
3040 *-*-solaris2* )
3041 USE_SUN=1
3042 USE_SOLARIS=1
3043 USE_SVR4=1
3044 cat >>confdefs.h <<\_ACEOF
3045 #define __SUN__ 1
3046 _ACEOF
3047
3048 cat >>confdefs.h <<\_ACEOF
3049 #define __SOLARIS__ 1
3050 _ACEOF
3051
3052 cat >>confdefs.h <<\_ACEOF
3053 #define __SVR4__ 1
3054 _ACEOF
3055
3056 DEFAULT_DEFAULT_wxUSE_MOTIF=1
3057 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3058 ;;
3059 *-*-sunos4* )
3060 USE_SUN=1
3061 USE_SUNOS=1
3062 USE_BSD=1
3063 cat >>confdefs.h <<\_ACEOF
3064 #define __SUN__ 1
3065 _ACEOF
3066
3067 cat >>confdefs.h <<\_ACEOF
3068 #define __SUNOS__ 1
3069 _ACEOF
3070
3071 cat >>confdefs.h <<\_ACEOF
3072 #define __BSD__ 1
3073 _ACEOF
3074
3075 DEFAULT_DEFAULT_wxUSE_MOTIF=1
3076 ;;
3077 *-*-freebsd*)
3078 USE_BSD=1
3079 USE_FREEBSD=1
3080 cat >>confdefs.h <<\_ACEOF
3081 #define __FREEBSD__ 1
3082 _ACEOF
3083
3084 cat >>confdefs.h <<\_ACEOF
3085 #define __BSD__ 1
3086 _ACEOF
3087
3088 DEFAULT_DEFAULT_wxUSE_GTK=1
3089 ;;
3090 *-*-openbsd*|*-*-mirbsd*)
3091 USE_BSD=1
3092 USE_OPENBSD=1
3093 cat >>confdefs.h <<\_ACEOF
3094 #define __OPENBSD__ 1
3095 _ACEOF
3096
3097 cat >>confdefs.h <<\_ACEOF
3098 #define __BSD__ 1
3099 _ACEOF
3100
3101 DEFAULT_DEFAULT_wxUSE_GTK=1
3102 ;;
3103 *-*-netbsd*)
3104 USE_BSD=1
3105 USE_NETBSD=1
3106 cat >>confdefs.h <<\_ACEOF
3107 #define __NETBSD__ 1
3108 _ACEOF
3109
3110 cat >>confdefs.h <<\_ACEOF
3111 #define __BSD__ 1
3112 _ACEOF
3113
3114 DEFAULT_DEFAULT_wxUSE_GTK=1
3115 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3116
3117 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
3118 ;;
3119 *-*-osf* )
3120 USE_ALPHA=1
3121 USE_OSF=1
3122 cat >>confdefs.h <<\_ACEOF
3123 #define __ALPHA__ 1
3124 _ACEOF
3125
3126 cat >>confdefs.h <<\_ACEOF
3127 #define __OSF__ 1
3128 _ACEOF
3129
3130 DEFAULT_DEFAULT_wxUSE_MOTIF=1
3131 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3132 ;;
3133 *-*-dgux5* )
3134 USE_ALPHA=1
3135 USE_SVR4=1
3136 cat >>confdefs.h <<\_ACEOF
3137 #define __ALPHA__ 1
3138 _ACEOF
3139
3140 cat >>confdefs.h <<\_ACEOF
3141 #define __SVR4__ 1
3142 _ACEOF
3143
3144 DEFAULT_DEFAULT_wxUSE_MOTIF=1
3145 ;;
3146 *-*-sysv5* )
3147 USE_SYSV=1
3148 USE_SVR4=1
3149 cat >>confdefs.h <<\_ACEOF
3150 #define __SYSV__ 1
3151 _ACEOF
3152
3153 cat >>confdefs.h <<\_ACEOF
3154 #define __SVR4__ 1
3155 _ACEOF
3156
3157 DEFAULT_DEFAULT_wxUSE_MOTIF=1
3158 ;;
3159 *-*-aix* )
3160 USE_AIX=1
3161 USE_SYSV=1
3162 USE_SVR4=1
3163 cat >>confdefs.h <<\_ACEOF
3164 #define __AIX__ 1
3165 _ACEOF
3166
3167 cat >>confdefs.h <<\_ACEOF
3168 #define __SYSV__ 1
3169 _ACEOF
3170
3171 cat >>confdefs.h <<\_ACEOF
3172 #define __SVR4__ 1
3173 _ACEOF
3174
3175 DEFAULT_DEFAULT_wxUSE_MOTIF=1
3176 ;;
3177
3178 *-*-*UnixWare*)
3179 USE_SYSV=1
3180 USE_SVR4=1
3181 USE_UNIXWARE=1
3182 cat >>confdefs.h <<\_ACEOF
3183 #define __UNIXWARE__ 1
3184 _ACEOF
3185
3186 ;;
3187
3188 *-*-cygwin* | *-*-mingw32* )
3189 PROGRAM_EXT=".exe"
3190 DEFAULT_DEFAULT_wxUSE_MSW=1
3191 ;;
3192
3193 *-pc-msdosdjgpp )
3194 USE_UNIX=0
3195 USE_DOS=1
3196 cat >>confdefs.h <<\_ACEOF
3197 #define __DOS__ 1
3198 _ACEOF
3199
3200 PROGRAM_EXT=".exe"
3201 DEFAULT_DEFAULT_wxUSE_MGL=1
3202 ;;
3203
3204 *-pc-os2_emx | *-pc-os2-emx )
3205 cat >>confdefs.h <<\_ACEOF
3206 #define __EMX__ 1
3207 _ACEOF
3208
3209 USE_OS2=1
3210 cat >>confdefs.h <<\_ACEOF
3211 #define __OS2__ 1
3212 _ACEOF
3213
3214 PROGRAM_EXT=".exe"
3215 DEFAULT_DEFAULT_wxUSE_PM=1
3216 CXX=gcc
3217 LDFLAGS="$LDFLAGS -Zcrtdll"
3218 ac_executable_extensions=".exe"
3219 export ac_executable_extensions
3220 ac_save_IFS="$IFS"
3221 IFS='\\'
3222 ac_TEMP_PATH=
3223 for ac_dir in $PATH; do
3224 IFS=$ac_save_IFS
3225 if test -z "$ac_TEMP_PATH"; then
3226 ac_TEMP_PATH="$ac_dir"
3227 else
3228 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
3229 fi
3230 done
3231 export PATH="$ac_TEMP_PATH"
3232 unset ac_TEMP_PATH
3233 DEFAULT_STD_FLAG=no
3234 ;;
3235
3236 *-*-darwin* )
3237 USE_BSD=1
3238 USE_DARWIN=1
3239 cat >>confdefs.h <<\_ACEOF
3240 #define __BSD__ 1
3241 _ACEOF
3242
3243 cat >>confdefs.h <<\_ACEOF
3244 #define __DARWIN__ 1
3245 _ACEOF
3246
3247 cat >>confdefs.h <<\_ACEOF
3248 #define TARGET_CARBON 1
3249 _ACEOF
3250
3251 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
3252 DEFAULT_STD_FLAG=no
3253 ;;
3254 powerpc-apple-macos* )
3255 USE_UNIX=0
3256 ac_cv_c_bigendian=yes
3257 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
3258 DEFAULT_STD_FLAG=no
3259 ;;
3260
3261 *-*-beos* )
3262 USE_BEOS=1
3263 cat >>confdefs.h <<\_ACEOF
3264 #define __BEOS__ 1
3265 _ACEOF
3266
3267 ;;
3268
3269 *)
3270 { $as_echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
3271 $as_echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
3272 { $as_echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
3273 $as_echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
3274
3275 DEFAULT_DEFAULT_wxUSE_X11=1
3276 DEFAULT_wxUSE_SHARED=no
3277 esac
3278
3279
3280
3281 DEFAULT_wxUSE_ALL_FEATURES=yes
3282
3283 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
3284 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
3285
3286 DEFAULT_wxUSE_DMALLOC=no
3287 DEFAULT_wxUSE_LIBGNOMEVFS=no
3288 DEFAULT_wxUSE_LIBHILDON=no
3289 DEFAULT_wxUSE_LIBMSPACK=no
3290 DEFAULT_wxUSE_LIBSDL=no
3291
3292 DEFAULT_wxUSE_ACCESSIBILITY=no
3293 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
3294 DEFAULT_wxUSE_IPV6=no
3295 DEFAULT_wxUSE_GSTREAMER8=no
3296
3297 DEFAULT_wxUSE_UNICODE_UTF8=auto
3298 DEFAULT_wxUSE_OPENGL=auto
3299 DEFAULT_wxUSE_MEDIACTRL=auto
3300
3301 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
3302
3303 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3304
3305 DEFAULT_wxUSE_OFFICIAL_BUILD=no
3306
3307 DEFAULT_wxUSE_GTK2=yes
3308
3309 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
3310
3311
3312
3313
3314
3315 enablestring=disable
3316 defaultval=
3317 if test -z "$defaultval"; then
3318 if test x"$enablestring" = xdisable; then
3319 defaultval=yes
3320 else
3321 defaultval=no
3322 fi
3323 fi
3324
3325 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3326 $as_echo_n "checking for --${enablestring:-enable}-gui... " >&6; }
3327 # Check whether --enable-gui was given.
3328 if test "${enable_gui+set}" = set; then
3329 enableval=$enable_gui;
3330 if test "$enableval" = yes; then
3331 wx_cv_use_gui='wxUSE_GUI=yes'
3332 else
3333 wx_cv_use_gui='wxUSE_GUI=no'
3334 fi
3335
3336 else
3337
3338 wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3339
3340 fi
3341
3342
3343 eval "$wx_cv_use_gui"
3344
3345 if test x"$enablestring" = xdisable; then
3346 if test $wxUSE_GUI = yes; then
3347 result=no
3348 else
3349 result=yes
3350 fi
3351 else
3352 result=$wxUSE_GUI
3353 fi
3354
3355 { $as_echo "$as_me:$LINENO: result: $result" >&5
3356 $as_echo "$result" >&6; }
3357
3358
3359 enablestring=
3360 defaultval=
3361 if test -z "$defaultval"; then
3362 if test x"$enablestring" = xdisable; then
3363 defaultval=yes
3364 else
3365 defaultval=no
3366 fi
3367 fi
3368
3369 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3370 $as_echo_n "checking for --${enablestring:-enable}-monolithic... " >&6; }
3371 # Check whether --enable-monolithic was given.
3372 if test "${enable_monolithic+set}" = set; then
3373 enableval=$enable_monolithic;
3374 if test "$enableval" = yes; then
3375 wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3376 else
3377 wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3378 fi
3379
3380 else
3381
3382 wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3383
3384 fi
3385
3386
3387 eval "$wx_cv_use_monolithic"
3388
3389 if test x"$enablestring" = xdisable; then
3390 if test $wxUSE_MONOLITHIC = yes; then
3391 result=no
3392 else
3393 result=yes
3394 fi
3395 else
3396 result=$wxUSE_MONOLITHIC
3397 fi
3398
3399 { $as_echo "$as_me:$LINENO: result: $result" >&5
3400 $as_echo "$result" >&6; }
3401
3402
3403 enablestring=
3404 defaultval=
3405 if test -z "$defaultval"; then
3406 if test x"$enablestring" = xdisable; then
3407 defaultval=yes
3408 else
3409 defaultval=no
3410 fi
3411 fi
3412
3413 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3414 $as_echo_n "checking for --${enablestring:-enable}-plugins... " >&6; }
3415 # Check whether --enable-plugins was given.
3416 if test "${enable_plugins+set}" = set; then
3417 enableval=$enable_plugins;
3418 if test "$enableval" = yes; then
3419 wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3420 else
3421 wx_cv_use_plugins='wxUSE_PLUGINS=no'
3422 fi
3423
3424 else
3425
3426 wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3427
3428 fi
3429
3430
3431 eval "$wx_cv_use_plugins"
3432
3433 if test x"$enablestring" = xdisable; then
3434 if test $wxUSE_PLUGINS = yes; then
3435 result=no
3436 else
3437 result=yes
3438 fi
3439 else
3440 result=$wxUSE_PLUGINS
3441 fi
3442
3443 { $as_echo "$as_me:$LINENO: result: $result" >&5
3444 $as_echo "$result" >&6; }
3445
3446
3447 withstring=without
3448 defaultval=$wxUSE_ALL_FEATURES
3449 if test -z "$defaultval"; then
3450 if test x"$withstring" = xwithout; then
3451 defaultval=yes
3452 else
3453 defaultval=no
3454 fi
3455 fi
3456 { $as_echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3457 $as_echo_n "checking for --${withstring:-with}-subdirs... " >&6; }
3458
3459 # Check whether --with-subdirs was given.
3460 if test "${with_subdirs+set}" = set; then
3461 withval=$with_subdirs;
3462 if test "$withval" = yes; then
3463 wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3464 else
3465 wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3466 fi
3467
3468 else
3469
3470 wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3471
3472 fi
3473
3474
3475 eval "$wx_cv_use_subdirs"
3476
3477 if test x"$withstring" = xwithout; then
3478 if test $wxWITH_SUBDIRS = yes; then
3479 result=no
3480 else
3481 result=yes
3482 fi
3483 else
3484 result=$wxWITH_SUBDIRS
3485 fi
3486
3487 { $as_echo "$as_me:$LINENO: result: $result" >&5
3488 $as_echo "$result" >&6; }
3489
3490
3491 # Check whether --with-flavour was given.
3492 if test "${with_flavour+set}" = set; then
3493 withval=$with_flavour; WX_FLAVOUR="$withval"
3494 fi
3495
3496
3497 enablestring=
3498 defaultval=
3499 if test -z "$defaultval"; then
3500 if test x"$enablestring" = xdisable; then
3501 defaultval=yes
3502 else
3503 defaultval=no
3504 fi
3505 fi
3506
3507 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3508 $as_echo_n "checking for --${enablestring:-enable}-official_build... " >&6; }
3509 # Check whether --enable-official_build was given.
3510 if test "${enable_official_build+set}" = set; then
3511 enableval=$enable_official_build;
3512 if test "$enableval" = yes; then
3513 wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3514 else
3515 wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3516 fi
3517
3518 else
3519
3520 wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3521
3522 fi
3523
3524
3525 eval "$wx_cv_use_official_build"
3526
3527 if test x"$enablestring" = xdisable; then
3528 if test $wxUSE_OFFICIAL_BUILD = yes; then
3529 result=no
3530 else
3531 result=yes
3532 fi
3533 else
3534 result=$wxUSE_OFFICIAL_BUILD
3535 fi
3536
3537 { $as_echo "$as_me:$LINENO: result: $result" >&5
3538 $as_echo "$result" >&6; }
3539
3540 # Check whether --enable-vendor was given.
3541 if test "${enable_vendor+set}" = set; then
3542 enableval=$enable_vendor; VENDOR="$enableval"
3543 fi
3544
3545 if test "x$VENDOR" = "x"; then
3546 VENDOR="custom"
3547 fi
3548
3549
3550 enablestring=disable
3551 defaultval=
3552 if test -z "$defaultval"; then
3553 if test x"$enablestring" = xdisable; then
3554 defaultval=yes
3555 else
3556 defaultval=no
3557 fi
3558 fi
3559
3560 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3561 $as_echo_n "checking for --${enablestring:-enable}-all-features... " >&6; }
3562 # Check whether --enable-all-features was given.
3563 if test "${enable_all_features+set}" = set; then
3564 enableval=$enable_all_features;
3565 if test "$enableval" = yes; then
3566 wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3567 else
3568 wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3569 fi
3570
3571 else
3572
3573 wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3574
3575 fi
3576
3577
3578 eval "$wx_cv_use_all_features"
3579
3580 if test x"$enablestring" = xdisable; then
3581 if test $wxUSE_ALL_FEATURES = yes; then
3582 result=no
3583 else
3584 result=yes
3585 fi
3586 else
3587 result=$wxUSE_ALL_FEATURES
3588 fi
3589
3590 { $as_echo "$as_me:$LINENO: result: $result" >&5
3591 $as_echo "$result" >&6; }
3592
3593
3594 if test "$wxUSE_ALL_FEATURES" = "no"; then
3595 DEFAULT_wxUSE_MEDIACTRL=no
3596 fi
3597
3598
3599 if test "$wxUSE_GUI" = "yes"; then
3600
3601
3602 enablestring=
3603 defaultval=
3604 if test -z "$defaultval"; then
3605 if test x"$enablestring" = xdisable; then
3606 defaultval=yes
3607 else
3608 defaultval=no
3609 fi
3610 fi
3611
3612 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3613 $as_echo_n "checking for --${enablestring:-enable}-universal... " >&6; }
3614 # Check whether --enable-universal was given.
3615 if test "${enable_universal+set}" = set; then
3616 enableval=$enable_universal;
3617 if test "$enableval" = yes; then
3618 wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3619 else
3620 wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3621 fi
3622
3623 else
3624
3625 wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3626
3627 fi
3628
3629
3630 eval "$wx_cv_use_universal"
3631
3632 if test x"$enablestring" = xdisable; then
3633 if test $wxUSE_UNIVERSAL = yes; then
3634 result=no
3635 else
3636 result=yes
3637 fi
3638 else
3639 result=$wxUSE_UNIVERSAL
3640 fi
3641
3642 { $as_echo "$as_me:$LINENO: result: $result" >&5
3643 $as_echo "$result" >&6; }
3644
3645 if test "$wxUSE_UNIVERSAL" = "yes"; then
3646
3647 # Check whether --with-themes was given.
3648 if test "${with_themes+set}" = set; then
3649 withval=$with_themes; wxUNIV_THEMES="$withval"
3650 fi
3651
3652 fi
3653
3654
3655 # Check whether --with-gtk was given.
3656 if test "${with_gtk+set}" = set; then
3657 withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3658 fi
3659
3660
3661 # Check whether --with-motif was given.
3662 if test "${with_motif+set}" = set; then
3663 withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3664 fi
3665
3666
3667 # Check whether --with-osx_carbon was given.
3668 if test "${with_osx_carbon+set}" = set; then
3669 withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3670 fi
3671
3672
3673 # Check whether --with-osx_cocoa was given.
3674 if test "${with_osx_cocoa+set}" = set; then
3675 withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3676 fi
3677
3678
3679 # Check whether --with-mac was given.
3680 if test "${with_mac+set}" = set; then
3681 withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3682 fi
3683
3684
3685 # Check whether --with-cocoa was given.
3686 if test "${with_cocoa+set}" = set; then
3687 withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3688 fi
3689
3690
3691 # Check whether --with-wine was given.
3692 if test "${with_wine+set}" = set; then
3693 withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3694 fi
3695
3696
3697 # Check whether --with-msw was given.
3698 if test "${with_msw+set}" = set; then
3699 withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3700 fi
3701
3702
3703 # Check whether --with-pm was given.
3704 if test "${with_pm+set}" = set; then
3705 withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3706 fi
3707
3708
3709 # Check whether --with-mgl was given.
3710 if test "${with_mgl+set}" = set; then
3711 withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3712 fi
3713
3714
3715 # Check whether --with-directfb was given.
3716 if test "${with_directfb+set}" = set; then
3717 withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3718 fi
3719
3720
3721 # Check whether --with-microwin was given.
3722 if test "${with_microwin+set}" = set; then
3723 withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3724 fi
3725
3726
3727 # Check whether --with-x11 was given.
3728 if test "${with_x11+set}" = set; then
3729 withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3730 fi
3731
3732
3733 enablestring=
3734 defaultval=
3735 if test -z "$defaultval"; then
3736 if test x"$enablestring" = xdisable; then
3737 defaultval=yes
3738 else
3739 defaultval=no
3740 fi
3741 fi
3742
3743 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3744 $as_echo_n "checking for --${enablestring:-enable}-nanox... " >&6; }
3745 # Check whether --enable-nanox was given.
3746 if test "${enable_nanox+set}" = set; then
3747 enableval=$enable_nanox;
3748 if test "$enableval" = yes; then
3749 wx_cv_use_nanox='wxUSE_NANOX=yes'
3750 else
3751 wx_cv_use_nanox='wxUSE_NANOX=no'
3752 fi
3753
3754 else
3755
3756 wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3757
3758 fi
3759
3760
3761 eval "$wx_cv_use_nanox"
3762
3763 if test x"$enablestring" = xdisable; then
3764 if test $wxUSE_NANOX = yes; then
3765 result=no
3766 else
3767 result=yes
3768 fi
3769 else
3770 result=$wxUSE_NANOX
3771 fi
3772
3773 { $as_echo "$as_me:$LINENO: result: $result" >&5
3774 $as_echo "$result" >&6; }
3775
3776
3777 # Check whether --enable-gtk2 was given.
3778 if test "${enable_gtk2+set}" = set; then
3779 enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3780 fi
3781
3782
3783 enablestring=
3784 defaultval=
3785 if test -z "$defaultval"; then
3786 if test x"$enablestring" = xdisable; then
3787 defaultval=yes
3788 else
3789 defaultval=no
3790 fi
3791 fi
3792
3793 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3794 $as_echo_n "checking for --${enablestring:-enable}-gpe... " >&6; }
3795 # Check whether --enable-gpe was given.
3796 if test "${enable_gpe+set}" = set; then
3797 enableval=$enable_gpe;
3798 if test "$enableval" = yes; then
3799 wx_cv_use_gpe='wxUSE_GPE=yes'
3800 else
3801 wx_cv_use_gpe='wxUSE_GPE=no'
3802 fi
3803
3804 else
3805
3806 wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3807
3808 fi
3809
3810
3811 eval "$wx_cv_use_gpe"
3812
3813 if test x"$enablestring" = xdisable; then
3814 if test $wxUSE_GPE = yes; then
3815 result=no
3816 else
3817 result=yes
3818 fi
3819 else
3820 result=$wxUSE_GPE
3821 fi
3822
3823 { $as_echo "$as_me:$LINENO: result: $result" >&5
3824 $as_echo "$result" >&6; }
3825
3826
3827
3828 { $as_echo "$as_me:$LINENO: checking for toolkit" >&5
3829 $as_echo_n "checking for toolkit... " >&6; }
3830
3831
3832
3833 # In Wine, we need to default to MSW, not GTK or MOTIF
3834 if test "$wxUSE_WINE" = "yes"; then
3835 DEFAULT_DEFAULT_wxUSE_GTK=0
3836 DEFAULT_DEFAULT_wxUSE_MOTIF=0
3837 DEFAULT_DEFAULT_wxUSE_MSW=1
3838 wxUSE_SHARED=no
3839 CC=${CC:-winegcc}
3840 CXX=${CXX:-wineg++}
3841 fi
3842
3843
3844 if test "$wxUSE_GUI" = "yes"; then
3845
3846 if test "$USE_BEOS" = 1; then
3847 { { $as_echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3848 $as_echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3849 { (exit 1); exit 1; }; }
3850 fi
3851
3852 if test "$TOOLKIT_GIVEN" = 1; then
3853 for toolkit in $ALL_TOOLKITS; do
3854 var=wxUSE_$toolkit
3855 eval "value=\$${var}"
3856 if test "x$value" = "xno"; then
3857 eval "$var=0"
3858 elif test "x$value" != "x"; then
3859 eval "$var=1"
3860 fi
3861
3862 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3863 eval "wx${toolkit}_VERSION=$value"
3864 fi
3865 done
3866 else
3867 for toolkit in $ALL_TOOLKITS; do
3868 var=DEFAULT_DEFAULT_wxUSE_$toolkit
3869 eval "wxUSE_$toolkit=\$${var}"
3870 done
3871 fi
3872
3873 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3874 + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3875 + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3876
3877 case "${host}" in
3878 *-pc-os2_emx | *-pc-os2-emx )
3879 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3880 esac
3881
3882 case "$NUM_TOOLKITS" in
3883 1)
3884 ;;
3885 0)
3886 { { $as_echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3887 $as_echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3888 { (exit 1); exit 1; }; }
3889 ;;
3890 *)
3891 { { $as_echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3892 $as_echo "$as_me: error: Please specify at most one toolkit" >&2;}
3893 { (exit 1); exit 1; }; }
3894 esac
3895
3896 # to be removed when --disable-gtk2 isn't needed
3897 if test "x$wxUSE_GTK2" = "xyes"; then
3898 wxGTK_VERSION=2
3899 elif test "x$wxUSE_GTK2" = "xno"; then
3900 wxGTK_VERSION=1
3901 fi
3902
3903 for toolkit in $ALL_TOOLKITS; do
3904 var=wxUSE_$toolkit
3905 eval "value=\$${var}"
3906 if test "$value" = 1; then
3907 toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3908 { $as_echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3909 $as_echo "$toolkit_echo" >&6; }
3910 fi
3911 done
3912 else
3913 if test "x$host_alias" != "x"; then
3914 { $as_echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3915 $as_echo "base ($host_alias hosted) only" >&6; }
3916 else
3917 { $as_echo "$as_me:$LINENO: result: base only" >&5
3918 $as_echo "base only" >&6; }
3919 fi
3920 fi
3921
3922 wxUSE_MAC=0
3923 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1; then
3924 wxUSE_MAC=1
3925 fi
3926
3927
3928
3929 { $as_echo "$as_me:$LINENO: checking for --with-libpng" >&5
3930 $as_echo_n "checking for --with-libpng... " >&6; }
3931
3932 # Check whether --with-libpng was given.
3933 if test "${with_libpng+set}" = set; then
3934 withval=$with_libpng;
3935 if test "$withval" = yes; then
3936 wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3937 elif test "$withval" = no; then
3938 wx_cv_use_libpng='wxUSE_LIBPNG=no'
3939 elif test "$withval" = sys; then
3940 wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3941 elif test "$withval" = builtin; then
3942 wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3943 else
3944 { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3945 $as_echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3946 { (exit 1); exit 1; }; }
3947 fi
3948
3949 else
3950
3951 wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3952
3953 fi
3954
3955
3956 eval "$wx_cv_use_libpng"
3957
3958 if test "$wxUSE_LIBPNG" = yes; then
3959 { $as_echo "$as_me:$LINENO: result: yes" >&5
3960 $as_echo "yes" >&6; }
3961 elif test "$wxUSE_LIBPNG" = no; then
3962 { $as_echo "$as_me:$LINENO: result: no" >&5
3963 $as_echo "no" >&6; }
3964 elif test "$wxUSE_LIBPNG" = sys; then
3965 { $as_echo "$as_me:$LINENO: result: system version" >&5
3966 $as_echo "system version" >&6; }
3967 elif test "$wxUSE_LIBPNG" = builtin; then
3968 { $as_echo "$as_me:$LINENO: result: builtin version" >&5
3969 $as_echo "builtin version" >&6; }
3970 else
3971 { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3972 $as_echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3973 { (exit 1); exit 1; }; }
3974 fi
3975
3976
3977 { $as_echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3978 $as_echo_n "checking for --with-libjpeg... " >&6; }
3979
3980 # Check whether --with-libjpeg was given.
3981 if test "${with_libjpeg+set}" = set; then
3982 withval=$with_libjpeg;
3983 if test "$withval" = yes; then
3984 wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3985 elif test "$withval" = no; then
3986 wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3987 elif test "$withval" = sys; then
3988 wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3989 elif test "$withval" = builtin; then
3990 wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3991 else
3992 { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3993 $as_echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3994 { (exit 1); exit 1; }; }
3995 fi
3996
3997 else
3998
3999 wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
4000
4001 fi
4002
4003
4004 eval "$wx_cv_use_libjpeg"
4005
4006 if test "$wxUSE_LIBJPEG" = yes; then
4007 { $as_echo "$as_me:$LINENO: result: yes" >&5
4008 $as_echo "yes" >&6; }
4009 elif test "$wxUSE_LIBJPEG" = no; then
4010 { $as_echo "$as_me:$LINENO: result: no" >&5
4011 $as_echo "no" >&6; }
4012 elif test "$wxUSE_LIBJPEG" = sys; then
4013 { $as_echo "$as_me:$LINENO: result: system version" >&5
4014 $as_echo "system version" >&6; }
4015 elif test "$wxUSE_LIBJPEG" = builtin; then
4016 { $as_echo "$as_me:$LINENO: result: builtin version" >&5
4017 $as_echo "builtin version" >&6; }
4018 else
4019 { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
4020 $as_echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
4021 { (exit 1); exit 1; }; }
4022 fi
4023
4024
4025 { $as_echo "$as_me:$LINENO: checking for --with-libtiff" >&5
4026 $as_echo_n "checking for --with-libtiff... " >&6; }
4027
4028 # Check whether --with-libtiff was given.
4029 if test "${with_libtiff+set}" = set; then
4030 withval=$with_libtiff;
4031 if test "$withval" = yes; then
4032 wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
4033 elif test "$withval" = no; then
4034 wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
4035 elif test "$withval" = sys; then
4036 wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4037 elif test "$withval" = builtin; then
4038 wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
4039 else
4040 { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
4041 $as_echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
4042 { (exit 1); exit 1; }; }
4043 fi
4044
4045 else
4046
4047 wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
4048
4049 fi
4050
4051
4052 eval "$wx_cv_use_libtiff"
4053
4054 if test "$wxUSE_LIBTIFF" = yes; then
4055 { $as_echo "$as_me:$LINENO: result: yes" >&5
4056 $as_echo "yes" >&6; }
4057 elif test "$wxUSE_LIBTIFF" = no; then
4058 { $as_echo "$as_me:$LINENO: result: no" >&5
4059 $as_echo "no" >&6; }
4060 elif test "$wxUSE_LIBTIFF" = sys; then
4061 { $as_echo "$as_me:$LINENO: result: system version" >&5
4062 $as_echo "system version" >&6; }
4063 elif test "$wxUSE_LIBTIFF" = builtin; then
4064 { $as_echo "$as_me:$LINENO: result: builtin version" >&5
4065 $as_echo "builtin version" >&6; }
4066 else
4067 { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
4068 $as_echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
4069 { (exit 1); exit 1; }; }
4070 fi
4071
4072
4073 { $as_echo "$as_me:$LINENO: checking for --with-libxpm" >&5
4074 $as_echo_n "checking for --with-libxpm... " >&6; }
4075
4076 # Check whether --with-libxpm was given.
4077 if test "${with_libxpm+set}" = set; then
4078 withval=$with_libxpm;
4079 if test "$withval" = yes; then
4080 wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
4081 elif test "$withval" = no; then
4082 wx_cv_use_libxpm='wxUSE_LIBXPM=no'
4083 elif test "$withval" = sys; then
4084 wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
4085 elif test "$withval" = builtin; then
4086 wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
4087 else
4088 { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
4089 $as_echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
4090 { (exit 1); exit 1; }; }
4091 fi
4092
4093 else
4094
4095 wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
4096
4097 fi
4098
4099
4100 eval "$wx_cv_use_libxpm"
4101
4102 if test "$wxUSE_LIBXPM" = yes; then
4103 { $as_echo "$as_me:$LINENO: result: yes" >&5
4104 $as_echo "yes" >&6; }
4105 elif test "$wxUSE_LIBXPM" = no; then
4106 { $as_echo "$as_me:$LINENO: result: no" >&5
4107 $as_echo "no" >&6; }
4108 elif test "$wxUSE_LIBXPM" = sys; then
4109 { $as_echo "$as_me:$LINENO: result: system version" >&5
4110 $as_echo "system version" >&6; }
4111 elif test "$wxUSE_LIBXPM" = builtin; then
4112 { $as_echo "$as_me:$LINENO: result: builtin version" >&5
4113 $as_echo "builtin version" >&6; }
4114 else
4115 { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
4116 $as_echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
4117 { (exit 1); exit 1; }; }
4118 fi
4119
4120
4121 withstring=
4122 defaultval=$wxUSE_ALL_FEATURES
4123 if test -z "$defaultval"; then
4124 if test x"$withstring" = xwithout; then
4125 defaultval=yes
4126 else
4127 defaultval=no
4128 fi
4129 fi
4130 { $as_echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
4131 $as_echo_n "checking for --${withstring:-with}-libiconv... " >&6; }
4132
4133 # Check whether --with-libiconv was given.
4134 if test "${with_libiconv+set}" = set; then
4135 withval=$with_libiconv;
4136 if test "$withval" = yes; then
4137 wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
4138 else
4139 wx_cv_use_libiconv='wxUSE_LIBICONV=no'
4140 fi
4141
4142 else
4143
4144 wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
4145
4146 fi
4147
4148
4149 eval "$wx_cv_use_libiconv"
4150
4151 if test x"$withstring" = xwithout; then
4152 if test $wxUSE_LIBICONV = yes; then
4153 result=no
4154 else
4155 result=yes
4156 fi
4157 else
4158 result=$wxUSE_LIBICONV
4159 fi
4160
4161 { $as_echo "$as_me:$LINENO: result: $result" >&5
4162 $as_echo "$result" >&6; }
4163
4164
4165 withstring=
4166 defaultval=$wxUSE_ALL_FEATURES
4167 if test -z "$defaultval"; then
4168 if test x"$withstring" = xwithout; then
4169 defaultval=yes
4170 else
4171 defaultval=no
4172 fi
4173 fi
4174 { $as_echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
4175 $as_echo_n "checking for --${withstring:-with}-libmspack... " >&6; }
4176
4177 # Check whether --with-libmspack was given.
4178 if test "${with_libmspack+set}" = set; then
4179 withval=$with_libmspack;
4180 if test "$withval" = yes; then
4181 wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
4182 else
4183 wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
4184 fi
4185
4186 else
4187
4188 wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
4189
4190 fi
4191
4192
4193 eval "$wx_cv_use_libmspack"
4194
4195 if test x"$withstring" = xwithout; then
4196 if test $wxUSE_LIBMSPACK = yes; then
4197 result=no
4198 else
4199 result=yes
4200 fi
4201 else
4202 result=$wxUSE_LIBMSPACK
4203 fi
4204
4205 { $as_echo "$as_me:$LINENO: result: $result" >&5
4206 $as_echo "$result" >&6; }
4207
4208
4209 withstring=without
4210 defaultval=$wxUSE_ALL_FEATURES
4211 if test -z "$defaultval"; then
4212 if test x"$withstring" = xwithout; then
4213 defaultval=yes
4214 else
4215 defaultval=no
4216 fi
4217 fi
4218 { $as_echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
4219 $as_echo_n "checking for --${withstring:-with}-gtkprint... " >&6; }
4220
4221 # Check whether --with-gtkprint was given.
4222 if test "${with_gtkprint+set}" = set; then
4223 withval=$with_gtkprint;
4224 if test "$withval" = yes; then
4225 wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
4226 else
4227 wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
4228 fi
4229
4230 else
4231
4232 wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
4233
4234 fi
4235
4236
4237 eval "$wx_cv_use_gtkprint"
4238
4239 if test x"$withstring" = xwithout; then
4240 if test $wxUSE_GTKPRINT = yes; then
4241 result=no
4242 else
4243 result=yes
4244 fi
4245 else
4246 result=$wxUSE_GTKPRINT
4247 fi
4248
4249 { $as_echo "$as_me:$LINENO: result: $result" >&5
4250 $as_echo "$result" >&6; }
4251
4252
4253 withstring=without
4254 defaultval=$wxUSE_ALL_FEATURES
4255 if test -z "$defaultval"; then
4256 if test x"$withstring" = xwithout; then
4257 defaultval=yes
4258 else
4259 defaultval=no
4260 fi
4261 fi
4262 { $as_echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
4263 $as_echo_n "checking for --${withstring:-with}-gnomeprint... " >&6; }
4264
4265 # Check whether --with-gnomeprint was given.
4266 if test "${with_gnomeprint+set}" = set; then
4267 withval=$with_gnomeprint;
4268 if test "$withval" = yes; then
4269 wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4270 else
4271 wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4272 fi
4273
4274 else
4275
4276 wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
4277
4278 fi
4279
4280
4281 eval "$wx_cv_use_gnomeprint"
4282
4283 if test x"$withstring" = xwithout; then
4284 if test $wxUSE_LIBGNOMEPRINT = yes; then
4285 result=no
4286 else
4287 result=yes
4288 fi
4289 else
4290 result=$wxUSE_LIBGNOMEPRINT
4291 fi
4292
4293 { $as_echo "$as_me:$LINENO: result: $result" >&5
4294 $as_echo "$result" >&6; }
4295
4296
4297 withstring=
4298 defaultval=$wxUSE_ALL_FEATURES
4299 if test -z "$defaultval"; then
4300 if test x"$withstring" = xwithout; then
4301 defaultval=yes
4302 else
4303 defaultval=no
4304 fi
4305 fi
4306 { $as_echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4307 $as_echo_n "checking for --${withstring:-with}-gnomevfs... " >&6; }
4308
4309 # Check whether --with-gnomevfs was given.
4310 if test "${with_gnomevfs+set}" = set; then
4311 withval=$with_gnomevfs;
4312 if test "$withval" = yes; then
4313 wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4314 else
4315 wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4316 fi
4317
4318 else
4319
4320 wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4321
4322 fi
4323
4324
4325 eval "$wx_cv_use_gnomevfs"
4326
4327 if test x"$withstring" = xwithout; then
4328 if test $wxUSE_LIBGNOMEVFS = yes; then
4329 result=no
4330 else
4331 result=yes
4332 fi
4333 else
4334 result=$wxUSE_LIBGNOMEVFS
4335 fi
4336
4337 { $as_echo "$as_me:$LINENO: result: $result" >&5
4338 $as_echo "$result" >&6; }
4339
4340
4341 withstring=
4342 defaultval=$wxUSE_ALL_FEATURES
4343 if test -z "$defaultval"; then
4344 if test x"$withstring" = xwithout; then
4345 defaultval=yes
4346 else
4347 defaultval=no
4348 fi
4349 fi
4350 { $as_echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4351 $as_echo_n "checking for --${withstring:-with}-hildon... " >&6; }
4352
4353 # Check whether --with-hildon was given.
4354 if test "${with_hildon+set}" = set; then
4355 withval=$with_hildon;
4356 if test "$withval" = yes; then
4357 wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4358 else
4359 wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4360 fi
4361
4362 else
4363
4364 wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4365
4366 fi
4367
4368
4369 eval "$wx_cv_use_hildon"
4370
4371 if test x"$withstring" = xwithout; then
4372 if test $wxUSE_LIBHILDON = yes; then
4373 result=no
4374 else
4375 result=yes
4376 fi
4377 else
4378 result=$wxUSE_LIBHILDON
4379 fi
4380
4381 { $as_echo "$as_me:$LINENO: result: $result" >&5
4382 $as_echo "$result" >&6; }
4383
4384
4385 withstring=
4386 defaultval=$wxUSE_ALL_FEATURES
4387 if test -z "$defaultval"; then
4388 if test x"$withstring" = xwithout; then
4389 defaultval=yes
4390 else
4391 defaultval=no
4392 fi
4393 fi
4394 { $as_echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4395 $as_echo_n "checking for --${withstring:-with}-opengl... " >&6; }
4396
4397 # Check whether --with-opengl was given.
4398 if test "${with_opengl+set}" = set; then
4399 withval=$with_opengl;
4400 if test "$withval" = yes; then
4401 wx_cv_use_opengl='wxUSE_OPENGL=yes'
4402 else
4403 wx_cv_use_opengl='wxUSE_OPENGL=no'
4404 fi
4405
4406 else
4407
4408 wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4409
4410 fi
4411
4412
4413 eval "$wx_cv_use_opengl"
4414
4415 if test x"$withstring" = xwithout; then
4416 if test $wxUSE_OPENGL = yes; then
4417 result=no
4418 else
4419 result=yes
4420 fi
4421 else
4422 result=$wxUSE_OPENGL
4423 fi
4424
4425 { $as_echo "$as_me:$LINENO: result: $result" >&5
4426 $as_echo "$result" >&6; }
4427
4428
4429 fi
4430
4431
4432 withstring=
4433 defaultval=$wxUSE_ALL_FEATURES
4434 if test -z "$defaultval"; then
4435 if test x"$withstring" = xwithout; then
4436 defaultval=yes
4437 else
4438 defaultval=no
4439 fi
4440 fi
4441 { $as_echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4442 $as_echo_n "checking for --${withstring:-with}-dmalloc... " >&6; }
4443
4444 # Check whether --with-dmalloc was given.
4445 if test "${with_dmalloc+set}" = set; then
4446 withval=$with_dmalloc;
4447 if test "$withval" = yes; then
4448 wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4449 else
4450 wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4451 fi
4452
4453 else
4454
4455 wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4456
4457 fi
4458
4459
4460 eval "$wx_cv_use_dmalloc"
4461
4462 if test x"$withstring" = xwithout; then
4463 if test $wxUSE_DMALLOC = yes; then
4464 result=no
4465 else
4466 result=yes
4467 fi
4468 else
4469 result=$wxUSE_DMALLOC
4470 fi
4471
4472 { $as_echo "$as_me:$LINENO: result: $result" >&5
4473 $as_echo "$result" >&6; }
4474
4475
4476 withstring=
4477 defaultval=$wxUSE_ALL_FEATURES
4478 if test -z "$defaultval"; then
4479 if test x"$withstring" = xwithout; then
4480 defaultval=yes
4481 else
4482 defaultval=no
4483 fi
4484 fi
4485 { $as_echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4486 $as_echo_n "checking for --${withstring:-with}-sdl... " >&6; }
4487
4488 # Check whether --with-sdl was given.
4489 if test "${with_sdl+set}" = set; then
4490 withval=$with_sdl;
4491 if test "$withval" = yes; then
4492 wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4493 else
4494 wx_cv_use_sdl='wxUSE_LIBSDL=no'
4495 fi
4496
4497 else
4498
4499 wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4500
4501 fi
4502
4503
4504 eval "$wx_cv_use_sdl"
4505
4506 if test x"$withstring" = xwithout; then
4507 if test $wxUSE_LIBSDL = yes; then
4508 result=no
4509 else
4510 result=yes
4511 fi
4512 else
4513 result=$wxUSE_LIBSDL
4514 fi
4515
4516 { $as_echo "$as_me:$LINENO: result: $result" >&5
4517 $as_echo "$result" >&6; }
4518
4519
4520 { $as_echo "$as_me:$LINENO: checking for --with-regex" >&5
4521 $as_echo_n "checking for --with-regex... " >&6; }
4522
4523 # Check whether --with-regex was given.
4524 if test "${with_regex+set}" = set; then
4525 withval=$with_regex;
4526 if test "$withval" = yes; then
4527 wx_cv_use_regex='wxUSE_REGEX=yes'
4528 elif test "$withval" = no; then
4529 wx_cv_use_regex='wxUSE_REGEX=no'
4530 elif test "$withval" = sys; then
4531 wx_cv_use_regex='wxUSE_REGEX=sys'
4532 elif test "$withval" = builtin; then
4533 wx_cv_use_regex='wxUSE_REGEX=builtin'
4534 else
4535 { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4536 $as_echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4537 { (exit 1); exit 1; }; }
4538 fi
4539
4540 else
4541
4542 wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4543
4544 fi
4545
4546
4547 eval "$wx_cv_use_regex"
4548
4549 if test "$wxUSE_REGEX" = yes; then
4550 { $as_echo "$as_me:$LINENO: result: yes" >&5
4551 $as_echo "yes" >&6; }
4552 elif test "$wxUSE_REGEX" = no; then
4553 { $as_echo "$as_me:$LINENO: result: no" >&5
4554 $as_echo "no" >&6; }
4555 elif test "$wxUSE_REGEX" = sys; then
4556 { $as_echo "$as_me:$LINENO: result: system version" >&5
4557 $as_echo "system version" >&6; }
4558 elif test "$wxUSE_REGEX" = builtin; then
4559 { $as_echo "$as_me:$LINENO: result: builtin version" >&5
4560 $as_echo "builtin version" >&6; }
4561 else
4562 { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4563 $as_echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4564 { (exit 1); exit 1; }; }
4565 fi
4566
4567
4568 { $as_echo "$as_me:$LINENO: checking for --with-zlib" >&5
4569 $as_echo_n "checking for --with-zlib... " >&6; }
4570
4571 # Check whether --with-zlib was given.
4572 if test "${with_zlib+set}" = set; then
4573 withval=$with_zlib;
4574 if test "$withval" = yes; then
4575 wx_cv_use_zlib='wxUSE_ZLIB=yes'
4576 elif test "$withval" = no; then
4577 wx_cv_use_zlib='wxUSE_ZLIB=no'
4578 elif test "$withval" = sys; then
4579 wx_cv_use_zlib='wxUSE_ZLIB=sys'
4580 elif test "$withval" = builtin; then
4581 wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4582 else
4583 { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4584 $as_echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4585 { (exit 1); exit 1; }; }
4586 fi
4587
4588 else
4589
4590 wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4591
4592 fi
4593
4594
4595 eval "$wx_cv_use_zlib"
4596
4597 if test "$wxUSE_ZLIB" = yes; then
4598 { $as_echo "$as_me:$LINENO: result: yes" >&5
4599 $as_echo "yes" >&6; }
4600 elif test "$wxUSE_ZLIB" = no; then
4601 { $as_echo "$as_me:$LINENO: result: no" >&5
4602 $as_echo "no" >&6; }
4603 elif test "$wxUSE_ZLIB" = sys; then
4604 { $as_echo "$as_me:$LINENO: result: system version" >&5
4605 $as_echo "system version" >&6; }
4606 elif test "$wxUSE_ZLIB" = builtin; then
4607 { $as_echo "$as_me:$LINENO: result: builtin version" >&5
4608 $as_echo "builtin version" >&6; }
4609 else
4610 { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4611 $as_echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4612 { (exit 1); exit 1; }; }
4613 fi
4614
4615
4616 { $as_echo "$as_me:$LINENO: checking for --with-expat" >&5
4617 $as_echo_n "checking for --with-expat... " >&6; }
4618
4619 # Check whether --with-expat was given.
4620 if test "${with_expat+set}" = set; then
4621 withval=$with_expat;
4622 if test "$withval" = yes; then
4623 wx_cv_use_expat='wxUSE_EXPAT=yes'
4624 elif test "$withval" = no; then
4625 wx_cv_use_expat='wxUSE_EXPAT=no'
4626 elif test "$withval" = sys; then
4627 wx_cv_use_expat='wxUSE_EXPAT=sys'
4628 elif test "$withval" = builtin; then
4629 wx_cv_use_expat='wxUSE_EXPAT=builtin'
4630 else
4631 { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4632 $as_echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4633 { (exit 1); exit 1; }; }
4634 fi
4635
4636 else
4637
4638 wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4639
4640 fi
4641
4642
4643 eval "$wx_cv_use_expat"
4644
4645 if test "$wxUSE_EXPAT" = yes; then
4646 { $as_echo "$as_me:$LINENO: result: yes" >&5
4647 $as_echo "yes" >&6; }
4648 elif test "$wxUSE_EXPAT" = no; then
4649 { $as_echo "$as_me:$LINENO: result: no" >&5
4650 $as_echo "no" >&6; }
4651 elif test "$wxUSE_EXPAT" = sys; then
4652 { $as_echo "$as_me:$LINENO: result: system version" >&5
4653 $as_echo "system version" >&6; }
4654 elif test "$wxUSE_EXPAT" = builtin; then
4655 { $as_echo "$as_me:$LINENO: result: builtin version" >&5
4656 $as_echo "builtin version" >&6; }
4657 else
4658 { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4659 $as_echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4660 { (exit 1); exit 1; }; }
4661 fi
4662
4663
4664 { $as_echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4665 $as_echo_n "checking for --with-macosx-sdk... " >&6; }
4666
4667 # Check whether --with-macosx-sdk was given.
4668 if test "${with_macosx_sdk+set}" = set; then
4669 withval=$with_macosx_sdk;
4670 wxUSE_MACOSX_SDK=$withval
4671 wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4672
4673 fi
4674
4675 { $as_echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4676 $as_echo "$wxUSE_MACOSX_SDK" >&6; }
4677
4678 { $as_echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4679 $as_echo_n "checking for --with-macosx-version-min... " >&6; }
4680
4681 # Check whether --with-macosx-version-min was given.
4682 if test "${with_macosx_version_min+set}" = set; then
4683 withval=$with_macosx_version_min;
4684 wxUSE_MACOSX_VERSION_MIN=$withval
4685 wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4686
4687 fi
4688
4689 { $as_echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4690 $as_echo "$wxUSE_MACOSX_VERSION_MIN" >&6; }
4691
4692
4693
4694 enablestring=disable
4695 defaultval=
4696 if test -z "$defaultval"; then
4697 if test x"$enablestring" = xdisable; then
4698 defaultval=yes
4699 else
4700 defaultval=no
4701 fi
4702 fi
4703
4704 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4705 $as_echo_n "checking for --${enablestring:-enable}-shared... " >&6; }
4706 # Check whether --enable-shared was given.
4707 if test "${enable_shared+set}" = set; then
4708 enableval=$enable_shared;
4709 if test "$enableval" = yes; then
4710 wx_cv_use_shared='wxUSE_SHARED=yes'
4711 else
4712 wx_cv_use_shared='wxUSE_SHARED=no'
4713 fi
4714
4715 else
4716
4717 wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4718
4719 fi
4720
4721
4722 eval "$wx_cv_use_shared"
4723
4724 if test x"$enablestring" = xdisable; then
4725 if test $wxUSE_SHARED = yes; then
4726 result=no
4727 else
4728 result=yes
4729 fi
4730 else
4731 result=$wxUSE_SHARED
4732 fi
4733
4734 { $as_echo "$as_me:$LINENO: result: $result" >&5
4735 $as_echo "$result" >&6; }
4736
4737
4738 enablestring=
4739 defaultval=
4740 if test -z "$defaultval"; then
4741 if test x"$enablestring" = xdisable; then
4742 defaultval=yes
4743 else
4744 defaultval=no
4745 fi
4746 fi
4747
4748 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4749 $as_echo_n "checking for --${enablestring:-enable}-debug... " >&6; }
4750 # Check whether --enable-debug was given.
4751 if test "${enable_debug+set}" = set; then
4752 enableval=$enable_debug;
4753 if test "$enableval" = yes; then
4754 wx_cv_use_debug='wxUSE_DEBUG=yes'
4755 else
4756 wx_cv_use_debug='wxUSE_DEBUG=no'
4757 fi
4758
4759 else
4760
4761 wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4762
4763 fi
4764
4765
4766 eval "$wx_cv_use_debug"
4767
4768 if test x"$enablestring" = xdisable; then
4769 if test $wxUSE_DEBUG = yes; then
4770 result=no
4771 else
4772 result=yes
4773 fi
4774 else
4775 result=$wxUSE_DEBUG
4776 fi
4777
4778 { $as_echo "$as_me:$LINENO: result: $result" >&5
4779 $as_echo "$result" >&6; }
4780
4781
4782 enablestring=
4783 defaultval=
4784 if test -z "$defaultval"; then
4785 if test x"$enablestring" = xdisable; then
4786 defaultval=yes
4787 else
4788 defaultval=no
4789 fi
4790 fi
4791
4792 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4793 $as_echo_n "checking for --${enablestring:-enable}-stl... " >&6; }
4794 # Check whether --enable-stl was given.
4795 if test "${enable_stl+set}" = set; then
4796 enableval=$enable_stl;
4797 if test "$enableval" = yes; then
4798 wx_cv_use_stl='wxUSE_STL=yes'
4799 else
4800 wx_cv_use_stl='wxUSE_STL=no'
4801 fi
4802
4803 else
4804
4805 wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4806
4807 fi
4808
4809
4810 eval "$wx_cv_use_stl"
4811
4812 if test x"$enablestring" = xdisable; then
4813 if test $wxUSE_STL = yes; then
4814 result=no
4815 else
4816 result=yes
4817 fi
4818 else
4819 result=$wxUSE_STL
4820 fi
4821
4822 { $as_echo "$as_me:$LINENO: result: $result" >&5
4823 $as_echo "$result" >&6; }
4824
4825
4826 enablestring=
4827 defaultval=
4828 if test -z "$defaultval"; then
4829 if test x"$enablestring" = xdisable; then
4830 defaultval=yes
4831 else
4832 defaultval=no
4833 fi
4834 fi
4835
4836 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4837 $as_echo_n "checking for --${enablestring:-enable}-std_iostreams... " >&6; }
4838 # Check whether --enable-std_iostreams was given.
4839 if test "${enable_std_iostreams+set}" = set; then
4840 enableval=$enable_std_iostreams;
4841 if test "$enableval" = yes; then
4842 wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4843 else
4844 wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4845 fi
4846
4847 else
4848
4849 wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4850
4851 fi
4852
4853
4854 eval "$wx_cv_use_std_iostreams"
4855
4856 if test x"$enablestring" = xdisable; then
4857 if test $wxUSE_STD_IOSTREAM = yes; then
4858 result=no
4859 else
4860 result=yes
4861 fi
4862 else
4863 result=$wxUSE_STD_IOSTREAM
4864 fi
4865
4866 { $as_echo "$as_me:$LINENO: result: $result" >&5
4867 $as_echo "$result" >&6; }
4868
4869
4870 enablestring=
4871 defaultval=
4872 if test -z "$defaultval"; then
4873 if test x"$enablestring" = xdisable; then
4874 defaultval=yes
4875 else
4876 defaultval=no
4877 fi
4878 fi
4879
4880 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4881 $as_echo_n "checking for --${enablestring:-enable}-std_string... " >&6; }
4882 # Check whether --enable-std_string was given.
4883 if test "${enable_std_string+set}" = set; then
4884 enableval=$enable_std_string;
4885 if test "$enableval" = yes; then
4886 wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4887 else
4888 wx_cv_use_std_string='wxUSE_STD_STRING=no'
4889 fi
4890
4891 else
4892
4893 wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4894
4895 fi
4896
4897
4898 eval "$wx_cv_use_std_string"
4899
4900 if test x"$enablestring" = xdisable; then
4901 if test $wxUSE_STD_STRING = yes; then
4902 result=no
4903 else
4904 result=yes
4905 fi
4906 else
4907 result=$wxUSE_STD_STRING
4908 fi
4909
4910 { $as_echo "$as_me:$LINENO: result: $result" >&5
4911 $as_echo "$result" >&6; }
4912
4913
4914 enablestring=disable
4915 defaultval=
4916 if test -z "$defaultval"; then
4917 if test x"$enablestring" = xdisable; then
4918 defaultval=yes
4919 else
4920 defaultval=no
4921 fi
4922 fi
4923
4924 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4925 $as_echo_n "checking for --${enablestring:-enable}-unicode... " >&6; }
4926 # Check whether --enable-unicode was given.
4927 if test "${enable_unicode+set}" = set; then
4928 enableval=$enable_unicode;
4929 if test "$enableval" = yes; then
4930 wx_cv_use_unicode='wxUSE_UNICODE=yes'
4931 else
4932 wx_cv_use_unicode='wxUSE_UNICODE=no'
4933 fi
4934
4935 else
4936
4937 wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4938
4939 fi
4940
4941
4942 eval "$wx_cv_use_unicode"
4943
4944 if test x"$enablestring" = xdisable; then
4945 if test $wxUSE_UNICODE = yes; then
4946 result=no
4947 else
4948 result=yes
4949 fi
4950 else
4951 result=$wxUSE_UNICODE
4952 fi
4953
4954 { $as_echo "$as_me:$LINENO: result: $result" >&5
4955 $as_echo "$result" >&6; }
4956
4957
4958 enablestring=
4959 defaultval=
4960 if test -z "$defaultval"; then
4961 if test x"$enablestring" = xdisable; then
4962 defaultval=yes
4963 else
4964 defaultval=no
4965 fi
4966 fi
4967
4968 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4969 $as_echo_n "checking for --${enablestring:-enable}-mslu... " >&6; }
4970 # Check whether --enable-mslu was given.
4971 if test "${enable_mslu+set}" = set; then
4972 enableval=$enable_mslu;
4973 if test "$enableval" = yes; then
4974 wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4975 else
4976 wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4977 fi
4978
4979 else
4980
4981 wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4982
4983 fi
4984
4985
4986 eval "$wx_cv_use_mslu"
4987
4988 if test x"$enablestring" = xdisable; then
4989 if test $wxUSE_UNICODE_MSLU = yes; then
4990 result=no
4991 else
4992 result=yes
4993 fi
4994 else
4995 result=$wxUSE_UNICODE_MSLU
4996 fi
4997
4998 { $as_echo "$as_me:$LINENO: result: $result" >&5
4999 $as_echo "$result" >&6; }
5000
5001
5002 enablestring=
5003 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
5004 $as_echo_n "checking for --${enablestring:-enable}-utf8... " >&6; }
5005 # Check whether --enable-utf8 was given.
5006 if test "${enable_utf8+set}" = set; then
5007 enableval=$enable_utf8;
5008 wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
5009
5010 else
5011
5012 wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
5013
5014 fi
5015
5016
5017 eval "$wx_cv_use_utf8"
5018
5019 { $as_echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
5020 $as_echo "$wxUSE_UNICODE_UTF8" >&6; }
5021
5022
5023 enablestring=
5024 defaultval=
5025 if test -z "$defaultval"; then
5026 if test x"$enablestring" = xdisable; then
5027 defaultval=yes
5028 else
5029 defaultval=no
5030 fi
5031 fi
5032
5033 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5034 $as_echo_n "checking for --${enablestring:-enable}-utf8only... " >&6; }
5035 # Check whether --enable-utf8only was given.
5036 if test "${enable_utf8only+set}" = set; then
5037 enableval=$enable_utf8only;
5038 if test "$enableval" = yes; then
5039 wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
5040 else
5041 wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5042 fi
5043
5044 else
5045
5046 wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5047
5048 fi
5049
5050
5051 eval "$wx_cv_use_utf8only"
5052
5053 if test x"$enablestring" = xdisable; then
5054 if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
5055 result=no
5056 else
5057 result=yes
5058 fi
5059 else
5060 result=$wxUSE_UNICODE_UTF8_LOCALE
5061 fi
5062
5063 { $as_echo "$as_me:$LINENO: result: $result" >&5
5064 $as_echo "$result" >&6; }
5065
5066
5067 enablestring=
5068 defaultval=
5069 if test -z "$defaultval"; then
5070 if test x"$enablestring" = xdisable; then
5071 defaultval=yes
5072 else
5073 defaultval=no
5074 fi
5075 fi
5076
5077 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5078 $as_echo_n "checking for --${enablestring:-enable}-extended_rtti... " >&6; }
5079 # Check whether --enable-extended_rtti was given.
5080 if test "${enable_extended_rtti+set}" = set; then
5081 enableval=$enable_extended_rtti;
5082 if test "$enableval" = yes; then
5083 wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5084 else
5085 wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5086 fi
5087
5088 else
5089
5090 wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5091
5092 fi
5093
5094
5095 eval "$wx_cv_use_extended_rtti"
5096
5097 if test x"$enablestring" = xdisable; then
5098 if test $wxUSE_EXTENDED_RTTI = yes; then
5099 result=no
5100 else
5101 result=yes
5102 fi
5103 else
5104 result=$wxUSE_EXTENDED_RTTI
5105 fi
5106
5107 { $as_echo "$as_me:$LINENO: result: $result" >&5
5108 $as_echo "$result" >&6; }
5109
5110 if test "$USE_OS2" = 1; then
5111 DEFAULT_wxUSE_OMF=no
5112
5113 enablestring=
5114 defaultval=
5115 if test -z "$defaultval"; then
5116 if test x"$enablestring" = xdisable; then
5117 defaultval=yes
5118 else
5119 defaultval=no
5120 fi
5121 fi
5122
5123 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5124 $as_echo_n "checking for --${enablestring:-enable}-omf... " >&6; }
5125 # Check whether --enable-omf was given.
5126 if test "${enable_omf+set}" = set; then
5127 enableval=$enable_omf;
5128 if test "$enableval" = yes; then
5129 wx_cv_use_omf='wxUSE_OMF=yes'
5130 else
5131 wx_cv_use_omf='wxUSE_OMF=no'
5132 fi
5133
5134 else
5135
5136 wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5137
5138 fi
5139
5140
5141 eval "$wx_cv_use_omf"
5142
5143 if test x"$enablestring" = xdisable; then
5144 if test $wxUSE_OMF = yes; then
5145 result=no
5146 else
5147 result=yes
5148 fi
5149 else
5150 result=$wxUSE_OMF
5151 fi
5152
5153 { $as_echo "$as_me:$LINENO: result: $result" >&5
5154 $as_echo "$result" >&6; }
5155
5156 fi
5157
5158 if test "$wxUSE_DEBUG" = "yes"; then
5159 DEFAULT_wxUSE_DEBUG_FLAG=yes
5160 DEFAULT_wxUSE_DEBUG_INFO=yes
5161 BUILD=debug
5162 elif test "$wxUSE_DEBUG" = "no"; then
5163 DEFAULT_wxUSE_DEBUG_FLAG=no
5164 DEFAULT_wxUSE_DEBUG_INFO=no
5165 BUILD=release
5166 fi
5167
5168
5169 enablestring=
5170 defaultval=
5171 if test -z "$defaultval"; then
5172 if test x"$enablestring" = xdisable; then
5173 defaultval=yes
5174 else
5175 defaultval=no
5176 fi
5177 fi
5178
5179 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
5180 $as_echo_n "checking for --${enablestring:-enable}-debug_flag... " >&6; }
5181 # Check whether --enable-debug_flag was given.
5182 if test "${enable_debug_flag+set}" = set; then
5183 enableval=$enable_debug_flag;
5184 if test "$enableval" = yes; then
5185 wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
5186 else
5187 wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
5188 fi
5189
5190 else
5191
5192 wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
5193
5194 fi
5195
5196
5197 eval "$wx_cv_use_debug_flag"
5198
5199 if test x"$enablestring" = xdisable; then
5200 if test $wxUSE_DEBUG_FLAG = yes; then
5201 result=no
5202 else
5203 result=yes
5204 fi
5205 else
5206 result=$wxUSE_DEBUG_FLAG
5207 fi
5208
5209 { $as_echo "$as_me:$LINENO: result: $result" >&5
5210 $as_echo "$result" >&6; }
5211
5212
5213 enablestring=
5214 defaultval=
5215 if test -z "$defaultval"; then
5216 if test x"$enablestring" = xdisable; then
5217 defaultval=yes
5218 else
5219 defaultval=no
5220 fi
5221 fi
5222
5223 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
5224 $as_echo_n "checking for --${enablestring:-enable}-debug_info... " >&6; }
5225 # Check whether --enable-debug_info was given.
5226 if test "${enable_debug_info+set}" = set; then
5227 enableval=$enable_debug_info;
5228 if test "$enableval" = yes; then
5229 wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
5230 else
5231 wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
5232 fi
5233
5234 else
5235
5236 wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
5237
5238 fi
5239
5240
5241 eval "$wx_cv_use_debug_info"
5242
5243 if test x"$enablestring" = xdisable; then
5244 if test $wxUSE_DEBUG_INFO = yes; then
5245 result=no
5246 else
5247 result=yes
5248 fi
5249 else
5250 result=$wxUSE_DEBUG_INFO
5251 fi
5252
5253 { $as_echo "$as_me:$LINENO: result: $result" >&5
5254 $as_echo "$result" >&6; }
5255
5256
5257 if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
5258 wxUSE_DEBUG=yes
5259 BUILD=debug
5260 fi
5261
5262 if test "$wxUSE_DEBUG" = "yes"; then
5263 DEFAULT_wxUSE_OPTIMISE=no
5264 fi
5265
5266
5267 enablestring=disable
5268 defaultval=
5269 if test -z "$defaultval"; then
5270 if test x"$enablestring" = xdisable; then
5271 defaultval=yes
5272 else
5273 defaultval=no
5274 fi
5275 fi
5276
5277 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5278 $as_echo_n "checking for --${enablestring:-enable}-optimise... " >&6; }
5279 # Check whether --enable-optimise was given.
5280 if test "${enable_optimise+set}" = set; then
5281 enableval=$enable_optimise;
5282 if test "$enableval" = yes; then
5283 wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5284 else
5285 wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5286 fi
5287
5288 else
5289
5290 wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5291
5292 fi
5293
5294
5295 eval "$wx_cv_use_optimise"
5296
5297 if test x"$enablestring" = xdisable; then
5298 if test $wxUSE_OPTIMISE = yes; then
5299 result=no
5300 else
5301 result=yes
5302 fi
5303 else
5304 result=$wxUSE_OPTIMISE
5305 fi
5306
5307 { $as_echo "$as_me:$LINENO: result: $result" >&5
5308 $as_echo "$result" >&6; }
5309
5310
5311
5312 enablestring=
5313 defaultval=
5314 if test -z "$defaultval"; then
5315 if test x"$enablestring" = xdisable; then
5316 defaultval=yes
5317 else
5318 defaultval=no
5319 fi
5320 fi
5321
5322 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
5323 $as_echo_n "checking for --${enablestring:-enable}-debug_gdb... " >&6; }
5324 # Check whether --enable-debug_gdb was given.
5325 if test "${enable_debug_gdb+set}" = set; then
5326 enableval=$enable_debug_gdb;
5327 if test "$enableval" = yes; then
5328 wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
5329 else
5330 wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
5331 fi
5332
5333 else
5334
5335 wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
5336
5337 fi
5338
5339
5340 eval "$wx_cv_use_debug_gdb"
5341
5342 if test x"$enablestring" = xdisable; then
5343 if test $wxUSE_DEBUG_GDB = yes; then
5344 result=no
5345 else
5346 result=yes
5347 fi
5348 else
5349 result=$wxUSE_DEBUG_GDB
5350 fi
5351
5352 { $as_echo "$as_me:$LINENO: result: $result" >&5
5353 $as_echo "$result" >&6; }
5354
5355
5356 enablestring=
5357 defaultval=
5358 if test -z "$defaultval"; then
5359 if test x"$enablestring" = xdisable; then
5360 defaultval=yes
5361 else
5362 defaultval=no
5363 fi
5364 fi
5365
5366 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5367 $as_echo_n "checking for --${enablestring:-enable}-debug_cntxt... " >&6; }
5368 # Check whether --enable-debug_cntxt was given.
5369 if test "${enable_debug_cntxt+set}" = set; then
5370 enableval=$enable_debug_cntxt;
5371 if test "$enableval" = yes; then
5372 wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5373 else
5374 wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5375 fi
5376
5377 else
5378
5379 wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5380
5381 fi
5382
5383
5384 eval "$wx_cv_use_debug_cntxt"
5385
5386 if test x"$enablestring" = xdisable; then
5387 if test $wxUSE_DEBUG_CONTEXT = yes; then
5388 result=no
5389 else
5390 result=yes
5391 fi
5392 else
5393 result=$wxUSE_DEBUG_CONTEXT
5394 fi
5395
5396 { $as_echo "$as_me:$LINENO: result: $result" >&5
5397 $as_echo "$result" >&6; }
5398
5399
5400 enablestring=
5401 defaultval=
5402 if test -z "$defaultval"; then
5403 if test x"$enablestring" = xdisable; then
5404 defaultval=yes
5405 else
5406 defaultval=no
5407 fi
5408 fi
5409
5410 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5411 $as_echo_n "checking for --${enablestring:-enable}-mem_tracing... " >&6; }
5412 # Check whether --enable-mem_tracing was given.
5413 if test "${enable_mem_tracing+set}" = set; then
5414 enableval=$enable_mem_tracing;
5415 if test "$enableval" = yes; then
5416 wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5417 else
5418 wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5419 fi
5420
5421 else
5422
5423 wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5424
5425 fi
5426
5427
5428 eval "$wx_cv_use_mem_tracing"
5429
5430 if test x"$enablestring" = xdisable; then
5431 if test $wxUSE_MEM_TRACING = yes; then
5432 result=no
5433 else
5434 result=yes
5435 fi
5436 else
5437 result=$wxUSE_MEM_TRACING
5438 fi
5439
5440 { $as_echo "$as_me:$LINENO: result: $result" >&5
5441 $as_echo "$result" >&6; }
5442
5443
5444 enablestring=
5445 defaultval=
5446 if test -z "$defaultval"; then
5447 if test x"$enablestring" = xdisable; then
5448 defaultval=yes
5449 else
5450 defaultval=no
5451 fi
5452 fi
5453
5454 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5455 $as_echo_n "checking for --${enablestring:-enable}-profile... " >&6; }
5456 # Check whether --enable-profile was given.
5457 if test "${enable_profile+set}" = set; then
5458 enableval=$enable_profile;
5459 if test "$enableval" = yes; then
5460 wx_cv_use_profile='wxUSE_PROFILE=yes'
5461 else
5462 wx_cv_use_profile='wxUSE_PROFILE=no'
5463 fi
5464
5465 else
5466
5467 wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5468
5469 fi
5470
5471
5472 eval "$wx_cv_use_profile"
5473
5474 if test x"$enablestring" = xdisable; then
5475 if test $wxUSE_PROFILE = yes; then
5476 result=no
5477 else
5478 result=yes
5479 fi
5480 else
5481 result=$wxUSE_PROFILE
5482 fi
5483
5484 { $as_echo "$as_me:$LINENO: result: $result" >&5
5485 $as_echo "$result" >&6; }
5486
5487
5488 enablestring=
5489 defaultval=
5490 if test -z "$defaultval"; then
5491 if test x"$enablestring" = xdisable; then
5492 defaultval=yes
5493 else
5494 defaultval=no
5495 fi
5496 fi
5497
5498 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5499 $as_echo_n "checking for --${enablestring:-enable}-no_rtti... " >&6; }
5500 # Check whether --enable-no_rtti was given.
5501 if test "${enable_no_rtti+set}" = set; then
5502 enableval=$enable_no_rtti;
5503 if test "$enableval" = yes; then
5504 wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5505 else
5506 wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5507 fi
5508
5509 else
5510
5511 wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5512
5513 fi
5514
5515
5516 eval "$wx_cv_use_no_rtti"
5517
5518 if test x"$enablestring" = xdisable; then
5519 if test $wxUSE_NO_RTTI = yes; then
5520 result=no
5521 else
5522 result=yes
5523 fi
5524 else
5525 result=$wxUSE_NO_RTTI
5526 fi
5527
5528 { $as_echo "$as_me:$LINENO: result: $result" >&5
5529 $as_echo "$result" >&6; }
5530
5531
5532 enablestring=
5533 defaultval=
5534 if test -z "$defaultval"; then
5535 if test x"$enablestring" = xdisable; then
5536 defaultval=yes
5537 else
5538 defaultval=no
5539 fi
5540 fi
5541
5542 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5543 $as_echo_n "checking for --${enablestring:-enable}-no_exceptions... " >&6; }
5544 # Check whether --enable-no_exceptions was given.
5545 if test "${enable_no_exceptions+set}" = set; then
5546 enableval=$enable_no_exceptions;
5547 if test "$enableval" = yes; then
5548 wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5549 else
5550 wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5551 fi
5552
5553 else
5554
5555 wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5556
5557 fi
5558
5559
5560 eval "$wx_cv_use_no_exceptions"
5561
5562 if test x"$enablestring" = xdisable; then
5563 if test $wxUSE_NO_EXCEPTIONS = yes; then
5564 result=no
5565 else
5566 result=yes
5567 fi
5568 else
5569 result=$wxUSE_NO_EXCEPTIONS
5570 fi
5571
5572 { $as_echo "$as_me:$LINENO: result: $result" >&5
5573 $as_echo "$result" >&6; }
5574
5575
5576 enablestring=
5577 defaultval=
5578 if test -z "$defaultval"; then
5579 if test x"$enablestring" = xdisable; then
5580 defaultval=yes
5581 else
5582 defaultval=no
5583 fi
5584 fi
5585
5586 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5587 $as_echo_n "checking for --${enablestring:-enable}-permissive... " >&6; }
5588 # Check whether --enable-permissive was given.
5589 if test "${enable_permissive+set}" = set; then
5590 enableval=$enable_permissive;
5591 if test "$enableval" = yes; then
5592 wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5593 else
5594 wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5595 fi
5596
5597 else
5598
5599 wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5600
5601 fi
5602
5603
5604 eval "$wx_cv_use_permissive"
5605
5606 if test x"$enablestring" = xdisable; then
5607 if test $wxUSE_PERMISSIVE = yes; then
5608 result=no
5609 else
5610 result=yes
5611 fi
5612 else
5613 result=$wxUSE_PERMISSIVE
5614 fi
5615
5616 { $as_echo "$as_me:$LINENO: result: $result" >&5
5617 $as_echo "$result" >&6; }
5618
5619
5620 enablestring=
5621 defaultval=
5622 if test -z "$defaultval"; then
5623 if test x"$enablestring" = xdisable; then
5624 defaultval=yes
5625 else
5626 defaultval=no
5627 fi
5628 fi
5629
5630 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5631 $as_echo_n "checking for --${enablestring:-enable}-no_deps... " >&6; }
5632 # Check whether --enable-no_deps was given.
5633 if test "${enable_no_deps+set}" = set; then
5634 enableval=$enable_no_deps;
5635 if test "$enableval" = yes; then
5636 wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5637 else
5638 wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5639 fi
5640
5641 else
5642
5643 wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5644
5645 fi
5646
5647
5648 eval "$wx_cv_use_no_deps"
5649
5650 if test x"$enablestring" = xdisable; then
5651 if test $wxUSE_NO_DEPS = yes; then
5652 result=no
5653 else
5654 result=yes
5655 fi
5656 else
5657 result=$wxUSE_NO_DEPS
5658 fi
5659
5660 { $as_echo "$as_me:$LINENO: result: $result" >&5
5661 $as_echo "$result" >&6; }
5662
5663
5664 enablestring=disable
5665 defaultval=
5666 if test -z "$defaultval"; then
5667 if test x"$enablestring" = xdisable; then
5668 defaultval=yes
5669 else
5670 defaultval=no
5671 fi
5672 fi
5673
5674 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5675 $as_echo_n "checking for --${enablestring:-enable}-vararg_macros... " >&6; }
5676 # Check whether --enable-vararg_macros was given.
5677 if test "${enable_vararg_macros+set}" = set; then
5678 enableval=$enable_vararg_macros;
5679 if test "$enableval" = yes; then
5680 wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5681 else
5682 wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5683 fi
5684
5685 else
5686
5687 wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5688
5689 fi
5690
5691
5692 eval "$wx_cv_use_vararg_macros"
5693
5694 if test x"$enablestring" = xdisable; then
5695 if test $wxUSE_VARARG_MACROS = yes; then
5696 result=no
5697 else
5698 result=yes
5699 fi
5700 else
5701 result=$wxUSE_VARARG_MACROS
5702 fi
5703
5704 { $as_echo "$as_me:$LINENO: result: $result" >&5
5705 $as_echo "$result" >&6; }
5706
5707
5708 enablestring=
5709 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5710 $as_echo_n "checking for --${enablestring:-enable}-universal_binary... " >&6; }
5711 # Check whether --enable-universal_binary was given.
5712 if test "${enable_universal_binary+set}" = set; then
5713 enableval=$enable_universal_binary;
5714 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5715
5716 else
5717
5718 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5719
5720 fi
5721
5722
5723 eval "$wx_cv_use_universal_binary"
5724
5725 { $as_echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5726 $as_echo "$wxUSE_UNIVERSAL_BINARY" >&6; }
5727
5728
5729
5730 enablestring=
5731 defaultval=
5732 if test -z "$defaultval"; then
5733 if test x"$enablestring" = xdisable; then
5734 defaultval=yes
5735 else
5736 defaultval=no
5737 fi
5738 fi
5739
5740 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5741 $as_echo_n "checking for --${enablestring:-enable}-compat26... " >&6; }
5742 # Check whether --enable-compat26 was given.
5743 if test "${enable_compat26+set}" = set; then
5744 enableval=$enable_compat26;
5745 if test "$enableval" = yes; then
5746 wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5747 else
5748 wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5749 fi
5750
5751 else
5752
5753 wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5754
5755 fi
5756
5757
5758 eval "$wx_cv_use_compat26"
5759
5760 if test x"$enablestring" = xdisable; then
5761 if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5762 result=no
5763 else
5764 result=yes
5765 fi
5766 else
5767 result=$WXWIN_COMPATIBILITY_2_6
5768 fi
5769
5770 { $as_echo "$as_me:$LINENO: result: $result" >&5
5771 $as_echo "$result" >&6; }
5772
5773
5774 enablestring=disable
5775 defaultval=
5776 if test -z "$defaultval"; then
5777 if test x"$enablestring" = xdisable; then
5778 defaultval=yes
5779 else
5780 defaultval=no
5781 fi
5782 fi
5783
5784 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5785 $as_echo_n "checking for --${enablestring:-enable}-compat28... " >&6; }
5786 # Check whether --enable-compat28 was given.
5787 if test "${enable_compat28+set}" = set; then
5788 enableval=$enable_compat28;
5789 if test "$enableval" = yes; then
5790 wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5791 else
5792 wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5793 fi
5794
5795 else
5796
5797 wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5798
5799 fi
5800
5801
5802 eval "$wx_cv_use_compat28"
5803
5804 if test x"$enablestring" = xdisable; then
5805 if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5806 result=no
5807 else
5808 result=yes
5809 fi
5810 else
5811 result=$WXWIN_COMPATIBILITY_2_8
5812 fi
5813
5814 { $as_echo "$as_me:$LINENO: result: $result" >&5
5815 $as_echo "$result" >&6; }
5816
5817
5818 cat >>confdefs.h <<\_ACEOF
5819 #define wxEVENTS_COMPATIBILITY_2_8 0
5820 _ACEOF
5821
5822
5823
5824 enablestring=disable
5825 defaultval=
5826 if test -z "$defaultval"; then
5827 if test x"$enablestring" = xdisable; then
5828 defaultval=yes
5829 else
5830 defaultval=no
5831 fi
5832 fi
5833
5834 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5835 $as_echo_n "checking for --${enablestring:-enable}-rpath... " >&6; }
5836 # Check whether --enable-rpath was given.
5837 if test "${enable_rpath+set}" = set; then
5838 enableval=$enable_rpath;
5839 if test "$enableval" = yes; then
5840 wx_cv_use_rpath='wxUSE_RPATH=yes'
5841 else
5842 wx_cv_use_rpath='wxUSE_RPATH=no'
5843 fi
5844
5845 else
5846
5847 wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5848
5849 fi
5850
5851
5852 eval "$wx_cv_use_rpath"
5853
5854 if test x"$enablestring" = xdisable; then
5855 if test $wxUSE_RPATH = yes; then
5856 result=no
5857 else
5858 result=yes
5859 fi
5860 else
5861 result=$wxUSE_RPATH
5862 fi
5863
5864 { $as_echo "$as_me:$LINENO: result: $result" >&5
5865 $as_echo "$result" >&6; }
5866
5867
5868
5869 enablestring=
5870 defaultval=
5871 if test -z "$defaultval"; then
5872 if test x"$enablestring" = xdisable; then
5873 defaultval=yes
5874 else
5875 defaultval=no
5876 fi
5877 fi
5878
5879 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5880 $as_echo_n "checking for --${enablestring:-enable}-objc_uniquifying... " >&6; }
5881 # Check whether --enable-objc_uniquifying was given.
5882 if test "${enable_objc_uniquifying+set}" = set; then
5883 enableval=$enable_objc_uniquifying;
5884 if test "$enableval" = yes; then
5885 wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5886 else
5887 wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5888 fi
5889
5890 else
5891
5892 wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5893
5894 fi
5895
5896
5897 eval "$wx_cv_use_objc_uniquifying"
5898
5899 if test x"$enablestring" = xdisable; then
5900 if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5901 result=no
5902 else
5903 result=yes
5904 fi
5905 else
5906 result=$wxUSE_OBJC_UNIQUIFYING
5907 fi
5908
5909 { $as_echo "$as_me:$LINENO: result: $result" >&5
5910 $as_echo "$result" >&6; }
5911
5912
5913
5914 enablestring=disable
5915 defaultval=
5916 if test -z "$defaultval"; then
5917 if test x"$enablestring" = xdisable; then
5918 defaultval=yes
5919 else
5920 defaultval=no
5921 fi
5922 fi
5923
5924 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5925 $as_echo_n "checking for --${enablestring:-enable}-visibility... " >&6; }
5926 # Check whether --enable-visibility was given.
5927 if test "${enable_visibility+set}" = set; then
5928 enableval=$enable_visibility;
5929 if test "$enableval" = yes; then
5930 wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5931 else
5932 wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5933 fi
5934
5935 else
5936
5937 wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5938
5939 fi
5940
5941
5942 eval "$wx_cv_use_visibility"
5943
5944 if test x"$enablestring" = xdisable; then
5945 if test $wxUSE_VISIBILITY = yes; then
5946 result=no
5947 else
5948 result=yes
5949 fi
5950 else
5951 result=$wxUSE_VISIBILITY
5952 fi
5953
5954 { $as_echo "$as_me:$LINENO: result: $result" >&5
5955 $as_echo "$result" >&6; }
5956
5957
5958
5959
5960 enablestring=
5961 defaultval=$wxUSE_ALL_FEATURES
5962 if test -z "$defaultval"; then
5963 if test x"$enablestring" = xdisable; then
5964 defaultval=yes
5965 else
5966 defaultval=no
5967 fi
5968 fi
5969
5970 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5971 $as_echo_n "checking for --${enablestring:-enable}-intl... " >&6; }
5972 # Check whether --enable-intl was given.
5973 if test "${enable_intl+set}" = set; then
5974 enableval=$enable_intl;
5975 if test "$enableval" = yes; then
5976 wx_cv_use_intl='wxUSE_INTL=yes'
5977 else
5978 wx_cv_use_intl='wxUSE_INTL=no'
5979 fi
5980
5981 else
5982
5983 wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5984
5985 fi
5986
5987
5988 eval "$wx_cv_use_intl"
5989
5990 if test x"$enablestring" = xdisable; then
5991 if test $wxUSE_INTL = yes; then
5992 result=no
5993 else
5994 result=yes
5995 fi
5996 else
5997 result=$wxUSE_INTL
5998 fi
5999
6000 { $as_echo "$as_me:$LINENO: result: $result" >&5
6001 $as_echo "$result" >&6; }
6002
6003
6004 enablestring=
6005 defaultval=$wxUSE_ALL_FEATURES
6006 if test -z "$defaultval"; then
6007 if test x"$enablestring" = xdisable; then
6008 defaultval=yes
6009 else
6010 defaultval=no
6011 fi
6012 fi
6013
6014 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
6015 $as_echo_n "checking for --${enablestring:-enable}-xlocale... " >&6; }
6016 # Check whether --enable-xlocale was given.
6017 if test "${enable_xlocale+set}" = set; then
6018 enableval=$enable_xlocale;
6019 if test "$enableval" = yes; then
6020 wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
6021 else
6022 wx_cv_use_xlocale='wxUSE_XLOCALE=no'
6023 fi
6024
6025 else
6026
6027 wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
6028
6029 fi
6030
6031
6032 eval "$wx_cv_use_xlocale"
6033
6034 if test x"$enablestring" = xdisable; then
6035 if test $wxUSE_XLOCALE = yes; then
6036 result=no
6037 else
6038 result=yes
6039 fi
6040 else
6041 result=$wxUSE_XLOCALE
6042 fi
6043
6044 { $as_echo "$as_me:$LINENO: result: $result" >&5
6045 $as_echo "$result" >&6; }
6046
6047
6048 enablestring=
6049 defaultval=$wxUSE_ALL_FEATURES
6050 if test -z "$defaultval"; then
6051 if test x"$enablestring" = xdisable; then
6052 defaultval=yes
6053 else
6054 defaultval=no
6055 fi
6056 fi
6057
6058 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
6059 $as_echo_n "checking for --${enablestring:-enable}-config... " >&6; }
6060 # Check whether --enable-config was given.
6061 if test "${enable_config+set}" = set; then
6062 enableval=$enable_config;
6063 if test "$enableval" = yes; then
6064 wx_cv_use_config='wxUSE_CONFIG=yes'
6065 else
6066 wx_cv_use_config='wxUSE_CONFIG=no'
6067 fi
6068
6069 else
6070
6071 wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
6072
6073 fi
6074
6075
6076 eval "$wx_cv_use_config"
6077
6078 if test x"$enablestring" = xdisable; then
6079 if test $wxUSE_CONFIG = yes; then
6080 result=no
6081 else
6082 result=yes
6083 fi
6084 else
6085 result=$wxUSE_CONFIG
6086 fi
6087
6088 { $as_echo "$as_me:$LINENO: result: $result" >&5
6089 $as_echo "$result" >&6; }
6090
6091
6092
6093 enablestring=
6094 defaultval=$wxUSE_ALL_FEATURES
6095 if test -z "$defaultval"; then
6096 if test x"$enablestring" = xdisable; then
6097 defaultval=yes
6098 else
6099 defaultval=no
6100 fi
6101 fi
6102
6103 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6104 $as_echo_n "checking for --${enablestring:-enable}-protocols... " >&6; }
6105 # Check whether --enable-protocols was given.
6106 if test "${enable_protocols+set}" = set; then
6107 enableval=$enable_protocols;
6108 if test "$enableval" = yes; then
6109 wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
6110 else
6111 wx_cv_use_protocols='wxUSE_PROTOCOL=no'
6112 fi
6113
6114 else
6115
6116 wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
6117
6118 fi
6119
6120
6121 eval "$wx_cv_use_protocols"
6122
6123 if test x"$enablestring" = xdisable; then
6124 if test $wxUSE_PROTOCOL = yes; then
6125 result=no
6126 else
6127 result=yes
6128 fi
6129 else
6130 result=$wxUSE_PROTOCOL
6131 fi
6132
6133 { $as_echo "$as_me:$LINENO: result: $result" >&5
6134 $as_echo "$result" >&6; }
6135
6136
6137 enablestring=
6138 defaultval=$wxUSE_ALL_FEATURES
6139 if test -z "$defaultval"; then
6140 if test x"$enablestring" = xdisable; then
6141 defaultval=yes
6142 else
6143 defaultval=no
6144 fi
6145 fi
6146
6147 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6148 $as_echo_n "checking for --${enablestring:-enable}-ftp... " >&6; }
6149 # Check whether --enable-ftp was given.
6150 if test "${enable_ftp+set}" = set; then
6151 enableval=$enable_ftp;
6152 if test "$enableval" = yes; then
6153 wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6154 else
6155 wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6156 fi
6157
6158 else
6159
6160 wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6161
6162 fi
6163
6164
6165 eval "$wx_cv_use_ftp"
6166
6167 if test x"$enablestring" = xdisable; then
6168 if test $wxUSE_PROTOCOL_FTP = yes; then
6169 result=no
6170 else
6171 result=yes
6172 fi
6173 else
6174 result=$wxUSE_PROTOCOL_FTP
6175 fi
6176
6177 { $as_echo "$as_me:$LINENO: result: $result" >&5
6178 $as_echo "$result" >&6; }
6179
6180
6181 enablestring=
6182 defaultval=$wxUSE_ALL_FEATURES
6183 if test -z "$defaultval"; then
6184 if test x"$enablestring" = xdisable; then
6185 defaultval=yes
6186 else
6187 defaultval=no
6188 fi
6189 fi
6190
6191 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6192 $as_echo_n "checking for --${enablestring:-enable}-http... " >&6; }
6193 # Check whether --enable-http was given.
6194 if test "${enable_http+set}" = set; then
6195 enableval=$enable_http;
6196 if test "$enableval" = yes; then
6197 wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6198 else
6199 wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6200 fi
6201
6202 else
6203
6204 wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6205
6206 fi
6207
6208
6209 eval "$wx_cv_use_http"
6210
6211 if test x"$enablestring" = xdisable; then
6212 if test $wxUSE_PROTOCOL_HTTP = yes; then
6213 result=no
6214 else
6215 result=yes
6216 fi
6217 else
6218 result=$wxUSE_PROTOCOL_HTTP
6219 fi
6220
6221 { $as_echo "$as_me:$LINENO: result: $result" >&5
6222 $as_echo "$result" >&6; }
6223
6224
6225 enablestring=
6226 defaultval=$wxUSE_ALL_FEATURES
6227 if test -z "$defaultval"; then
6228 if test x"$enablestring" = xdisable; then
6229 defaultval=yes
6230 else
6231 defaultval=no
6232 fi
6233 fi
6234
6235 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6236 $as_echo_n "checking for --${enablestring:-enable}-fileproto... " >&6; }
6237 # Check whether --enable-fileproto was given.
6238 if test "${enable_fileproto+set}" = set; then
6239 enableval=$enable_fileproto;
6240 if test "$enableval" = yes; then
6241 wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6242 else
6243 wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6244 fi
6245
6246 else
6247
6248 wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6249
6250 fi
6251
6252
6253 eval "$wx_cv_use_fileproto"
6254
6255 if test x"$enablestring" = xdisable; then
6256 if test $wxUSE_PROTOCOL_FILE = yes; then
6257 result=no
6258 else
6259 result=yes
6260 fi
6261 else
6262 result=$wxUSE_PROTOCOL_FILE
6263 fi
6264
6265 { $as_echo "$as_me:$LINENO: result: $result" >&5
6266 $as_echo "$result" >&6; }
6267
6268
6269 enablestring=
6270 defaultval=$wxUSE_ALL_FEATURES
6271 if test -z "$defaultval"; then
6272 if test x"$enablestring" = xdisable; then
6273 defaultval=yes
6274 else
6275 defaultval=no
6276 fi
6277 fi
6278
6279 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6280 $as_echo_n "checking for --${enablestring:-enable}-sockets... " >&6; }
6281 # Check whether --enable-sockets was given.
6282 if test "${enable_sockets+set}" = set; then
6283 enableval=$enable_sockets;
6284 if test "$enableval" = yes; then
6285 wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6286 else
6287 wx_cv_use_sockets='wxUSE_SOCKETS=no'
6288 fi
6289
6290 else
6291
6292 wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6293
6294 fi
6295
6296
6297 eval "$wx_cv_use_sockets"
6298
6299 if test x"$enablestring" = xdisable; then
6300 if test $wxUSE_SOCKETS = yes; then
6301 result=no
6302 else
6303 result=yes
6304 fi
6305 else
6306 result=$wxUSE_SOCKETS
6307 fi
6308
6309 { $as_echo "$as_me:$LINENO: result: $result" >&5
6310 $as_echo "$result" >&6; }
6311
6312
6313 enablestring=
6314 defaultval=$wxUSE_ALL_FEATURES
6315 if test -z "$defaultval"; then
6316 if test x"$enablestring" = xdisable; then
6317 defaultval=yes
6318 else
6319 defaultval=no
6320 fi
6321 fi
6322
6323 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6324 $as_echo_n "checking for --${enablestring:-enable}-ipv6... " >&6; }
6325 # Check whether --enable-ipv6 was given.
6326 if test "${enable_ipv6+set}" = set; then
6327 enableval=$enable_ipv6;
6328 if test "$enableval" = yes; then
6329 wx_cv_use_ipv6='wxUSE_IPV6=yes'
6330 else
6331 wx_cv_use_ipv6='wxUSE_IPV6=no'
6332 fi
6333
6334 else
6335
6336 wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6337
6338 fi
6339
6340
6341 eval "$wx_cv_use_ipv6"
6342
6343 if test x"$enablestring" = xdisable; then
6344 if test $wxUSE_IPV6 = yes; then
6345 result=no
6346 else
6347 result=yes
6348 fi
6349 else
6350 result=$wxUSE_IPV6
6351 fi
6352
6353 { $as_echo "$as_me:$LINENO: result: $result" >&5
6354 $as_echo "$result" >&6; }
6355
6356
6357 enablestring=
6358 defaultval=$wxUSE_ALL_FEATURES
6359 if test -z "$defaultval"; then
6360 if test x"$enablestring" = xdisable; then
6361 defaultval=yes
6362 else
6363 defaultval=no
6364 fi
6365 fi
6366
6367 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6368 $as_echo_n "checking for --${enablestring:-enable}-ole... " >&6; }
6369 # Check whether --enable-ole was given.
6370 if test "${enable_ole+set}" = set; then
6371 enableval=$enable_ole;
6372 if test "$enableval" = yes; then
6373 wx_cv_use_ole='wxUSE_OLE=yes'
6374 else
6375 wx_cv_use_ole='wxUSE_OLE=no'
6376 fi
6377
6378 else
6379
6380 wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6381
6382 fi
6383
6384
6385 eval "$wx_cv_use_ole"
6386
6387 if test x"$enablestring" = xdisable; then
6388 if test $wxUSE_OLE = yes; then
6389 result=no
6390 else
6391 result=yes
6392 fi
6393 else
6394 result=$wxUSE_OLE
6395 fi
6396
6397 { $as_echo "$as_me:$LINENO: result: $result" >&5
6398 $as_echo "$result" >&6; }
6399
6400
6401 enablestring=
6402 defaultval=$wxUSE_ALL_FEATURES
6403 if test -z "$defaultval"; then
6404 if test x"$enablestring" = xdisable; then
6405 defaultval=yes
6406 else
6407 defaultval=no
6408 fi
6409 fi
6410
6411 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6412 $as_echo_n "checking for --${enablestring:-enable}-dataobj... " >&6; }
6413 # Check whether --enable-dataobj was given.
6414 if test "${enable_dataobj+set}" = set; then
6415 enableval=$enable_dataobj;
6416 if test "$enableval" = yes; then
6417 wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6418 else
6419 wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6420 fi
6421
6422 else
6423
6424 wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6425
6426 fi
6427
6428
6429 eval "$wx_cv_use_dataobj"
6430
6431 if test x"$enablestring" = xdisable; then
6432 if test $wxUSE_DATAOBJ = yes; then
6433 result=no
6434 else
6435 result=yes
6436 fi
6437 else
6438 result=$wxUSE_DATAOBJ
6439 fi
6440
6441 { $as_echo "$as_me:$LINENO: result: $result" >&5
6442 $as_echo "$result" >&6; }
6443
6444
6445
6446 enablestring=
6447 defaultval=$wxUSE_ALL_FEATURES
6448 if test -z "$defaultval"; then
6449 if test x"$enablestring" = xdisable; then
6450 defaultval=yes
6451 else
6452 defaultval=no
6453 fi
6454 fi
6455
6456 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6457 $as_echo_n "checking for --${enablestring:-enable}-ipc... " >&6; }
6458 # Check whether --enable-ipc was given.
6459 if test "${enable_ipc+set}" = set; then
6460 enableval=$enable_ipc;
6461 if test "$enableval" = yes; then
6462 wx_cv_use_ipc='wxUSE_IPC=yes'
6463 else
6464 wx_cv_use_ipc='wxUSE_IPC=no'
6465 fi
6466
6467 else
6468
6469 wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6470
6471 fi
6472
6473
6474 eval "$wx_cv_use_ipc"
6475
6476 if test x"$enablestring" = xdisable; then
6477 if test $wxUSE_IPC = yes; then
6478 result=no
6479 else
6480 result=yes
6481 fi
6482 else
6483 result=$wxUSE_IPC
6484 fi
6485
6486 { $as_echo "$as_me:$LINENO: result: $result" >&5
6487 $as_echo "$result" >&6; }
6488
6489
6490
6491 enablestring=
6492 defaultval=$wxUSE_ALL_FEATURES
6493 if test -z "$defaultval"; then
6494 if test x"$enablestring" = xdisable; then
6495 defaultval=yes
6496 else
6497 defaultval=no
6498 fi
6499 fi
6500
6501 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6502 $as_echo_n "checking for --${enablestring:-enable}-baseevtloop... " >&6; }
6503 # Check whether --enable-baseevtloop was given.
6504 if test "${enable_baseevtloop+set}" = set; then
6505 enableval=$enable_baseevtloop;
6506 if test "$enableval" = yes; then
6507 wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6508 else
6509 wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6510 fi
6511
6512 else
6513
6514 wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6515
6516 fi
6517
6518
6519 eval "$wx_cv_use_baseevtloop"
6520
6521 if test x"$enablestring" = xdisable; then
6522 if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6523 result=no
6524 else
6525 result=yes
6526 fi
6527 else
6528 result=$wxUSE_CONSOLE_EVENTLOOP
6529 fi
6530
6531 { $as_echo "$as_me:$LINENO: result: $result" >&5
6532 $as_echo "$result" >&6; }
6533
6534
6535 enablestring=
6536 defaultval=$wxUSE_ALL_FEATURES
6537 if test -z "$defaultval"; then
6538 if test x"$enablestring" = xdisable; then
6539 defaultval=yes
6540 else
6541 defaultval=no
6542 fi
6543 fi
6544
6545 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6546 $as_echo_n "checking for --${enablestring:-enable}-epollloop... " >&6; }
6547 # Check whether --enable-epollloop was given.
6548 if test "${enable_epollloop+set}" = set; then
6549 enableval=$enable_epollloop;
6550 if test "$enableval" = yes; then
6551 wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6552 else
6553 wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6554 fi
6555
6556 else
6557
6558 wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6559
6560 fi
6561
6562
6563 eval "$wx_cv_use_epollloop"
6564
6565 if test x"$enablestring" = xdisable; then
6566 if test $wxUSE_EPOLL_DISPATCHER = yes; then
6567 result=no
6568 else
6569 result=yes
6570 fi
6571 else
6572 result=$wxUSE_EPOLL_DISPATCHER
6573 fi
6574
6575 { $as_echo "$as_me:$LINENO: result: $result" >&5
6576 $as_echo "$result" >&6; }
6577
6578
6579 enablestring=
6580 defaultval=$wxUSE_ALL_FEATURES
6581 if test -z "$defaultval"; then
6582 if test x"$enablestring" = xdisable; then
6583 defaultval=yes
6584 else
6585 defaultval=no
6586 fi
6587 fi
6588
6589 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6590 $as_echo_n "checking for --${enablestring:-enable}-selectloop... " >&6; }
6591 # Check whether --enable-selectloop was given.
6592 if test "${enable_selectloop+set}" = set; then
6593 enableval=$enable_selectloop;
6594 if test "$enableval" = yes; then
6595 wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6596 else
6597 wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6598 fi
6599
6600 else
6601
6602 wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6603
6604 fi
6605
6606
6607 eval "$wx_cv_use_selectloop"
6608
6609 if test x"$enablestring" = xdisable; then
6610 if test $wxUSE_SELECT_DISPATCHER = yes; then
6611 result=no
6612 else
6613 result=yes
6614 fi
6615 else
6616 result=$wxUSE_SELECT_DISPATCHER
6617 fi
6618
6619 { $as_echo "$as_me:$LINENO: result: $result" >&5
6620 $as_echo "$result" >&6; }
6621
6622
6623
6624 enablestring=
6625 defaultval=$wxUSE_ALL_FEATURES
6626 if test -z "$defaultval"; then
6627 if test x"$enablestring" = xdisable; then
6628 defaultval=yes
6629 else
6630 defaultval=no
6631 fi
6632 fi
6633
6634 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6635 $as_echo_n "checking for --${enablestring:-enable}-apple_ieee... " >&6; }
6636 # Check whether --enable-apple_ieee was given.
6637 if test "${enable_apple_ieee+set}" = set; then
6638 enableval=$enable_apple_ieee;
6639 if test "$enableval" = yes; then
6640 wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6641 else
6642 wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6643 fi
6644
6645 else
6646
6647 wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6648
6649 fi
6650
6651
6652 eval "$wx_cv_use_apple_ieee"
6653
6654 if test x"$enablestring" = xdisable; then
6655 if test $wxUSE_APPLE_IEEE = yes; then
6656 result=no
6657 else
6658 result=yes
6659 fi
6660 else
6661 result=$wxUSE_APPLE_IEEE
6662 fi
6663
6664 { $as_echo "$as_me:$LINENO: result: $result" >&5
6665 $as_echo "$result" >&6; }
6666
6667
6668 enablestring=
6669 defaultval=$wxUSE_ALL_FEATURES
6670 if test -z "$defaultval"; then
6671 if test x"$enablestring" = xdisable; then
6672 defaultval=yes
6673 else
6674 defaultval=no
6675 fi
6676 fi
6677
6678 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6679 $as_echo_n "checking for --${enablestring:-enable}-arcstream... " >&6; }
6680 # Check whether --enable-arcstream was given.
6681 if test "${enable_arcstream+set}" = set; then
6682 enableval=$enable_arcstream;
6683 if test "$enableval" = yes; then
6684 wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6685 else
6686 wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6687 fi
6688
6689 else
6690
6691 wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6692
6693 fi
6694
6695
6696 eval "$wx_cv_use_arcstream"
6697
6698 if test x"$enablestring" = xdisable; then
6699 if test $wxUSE_ARCHIVE_STREAMS = yes; then
6700 result=no
6701 else
6702 result=yes
6703 fi
6704 else
6705 result=$wxUSE_ARCHIVE_STREAMS
6706 fi
6707
6708 { $as_echo "$as_me:$LINENO: result: $result" >&5
6709 $as_echo "$result" >&6; }
6710
6711
6712 enablestring=
6713 defaultval=$wxUSE_ALL_FEATURES
6714 if test -z "$defaultval"; then
6715 if test x"$enablestring" = xdisable; then
6716 defaultval=yes
6717 else
6718 defaultval=no
6719 fi
6720 fi
6721
6722 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6723 $as_echo_n "checking for --${enablestring:-enable}-base64... " >&6; }
6724 # Check whether --enable-base64 was given.
6725 if test "${enable_base64+set}" = set; then
6726 enableval=$enable_base64;
6727 if test "$enableval" = yes; then
6728 wx_cv_use_base64='wxUSE_BASE64=yes'
6729 else
6730 wx_cv_use_base64='wxUSE_BASE64=no'
6731 fi
6732
6733 else
6734
6735 wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6736
6737 fi
6738
6739
6740 eval "$wx_cv_use_base64"
6741
6742 if test x"$enablestring" = xdisable; then
6743 if test $wxUSE_BASE64 = yes; then
6744 result=no
6745 else
6746 result=yes
6747 fi
6748 else
6749 result=$wxUSE_BASE64
6750 fi
6751
6752 { $as_echo "$as_me:$LINENO: result: $result" >&5
6753 $as_echo "$result" >&6; }
6754
6755
6756 enablestring=
6757 defaultval=$wxUSE_ALL_FEATURES
6758 if test -z "$defaultval"; then
6759 if test x"$enablestring" = xdisable; then
6760 defaultval=yes
6761 else
6762 defaultval=no
6763 fi
6764 fi
6765
6766 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6767 $as_echo_n "checking for --${enablestring:-enable}-backtrace... " >&6; }
6768 # Check whether --enable-backtrace was given.
6769 if test "${enable_backtrace+set}" = set; then
6770 enableval=$enable_backtrace;
6771 if test "$enableval" = yes; then
6772 wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6773 else
6774 wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6775 fi
6776
6777 else
6778
6779 wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6780
6781 fi
6782
6783
6784 eval "$wx_cv_use_backtrace"
6785
6786 if test x"$enablestring" = xdisable; then
6787 if test $wxUSE_STACKWALKER = yes; then
6788 result=no
6789 else
6790 result=yes
6791 fi
6792 else
6793 result=$wxUSE_STACKWALKER
6794 fi
6795
6796 { $as_echo "$as_me:$LINENO: result: $result" >&5
6797 $as_echo "$result" >&6; }
6798
6799
6800 enablestring=
6801 defaultval=$wxUSE_ALL_FEATURES
6802 if test -z "$defaultval"; then
6803 if test x"$enablestring" = xdisable; then
6804 defaultval=yes
6805 else
6806 defaultval=no
6807 fi
6808 fi
6809
6810 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6811 $as_echo_n "checking for --${enablestring:-enable}-catch_segvs... " >&6; }
6812 # Check whether --enable-catch_segvs was given.
6813 if test "${enable_catch_segvs+set}" = set; then
6814 enableval=$enable_catch_segvs;
6815 if test "$enableval" = yes; then
6816 wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6817 else
6818 wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6819 fi
6820
6821 else
6822
6823 wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6824
6825 fi
6826
6827
6828 eval "$wx_cv_use_catch_segvs"
6829
6830 if test x"$enablestring" = xdisable; then
6831 if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6832 result=no
6833 else
6834 result=yes
6835 fi
6836 else
6837 result=$wxUSE_ON_FATAL_EXCEPTION
6838 fi
6839
6840 { $as_echo "$as_me:$LINENO: result: $result" >&5
6841 $as_echo "$result" >&6; }
6842
6843
6844 enablestring=
6845 defaultval=$wxUSE_ALL_FEATURES
6846 if test -z "$defaultval"; then
6847 if test x"$enablestring" = xdisable; then
6848 defaultval=yes
6849 else
6850 defaultval=no
6851 fi
6852 fi
6853
6854 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6855 $as_echo_n "checking for --${enablestring:-enable}-cmdline... " >&6; }
6856 # Check whether --enable-cmdline was given.
6857 if test "${enable_cmdline+set}" = set; then
6858 enableval=$enable_cmdline;
6859 if test "$enableval" = yes; then
6860 wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6861 else
6862 wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6863 fi
6864
6865 else
6866
6867 wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6868
6869 fi
6870
6871
6872 eval "$wx_cv_use_cmdline"
6873
6874 if test x"$enablestring" = xdisable; then
6875 if test $wxUSE_CMDLINE_PARSER = yes; then
6876 result=no
6877 else
6878 result=yes
6879 fi
6880 else
6881 result=$wxUSE_CMDLINE_PARSER
6882 fi
6883
6884 { $as_echo "$as_me:$LINENO: result: $result" >&5
6885 $as_echo "$result" >&6; }
6886
6887
6888 enablestring=
6889 defaultval=$wxUSE_ALL_FEATURES
6890 if test -z "$defaultval"; then
6891 if test x"$enablestring" = xdisable; then
6892 defaultval=yes
6893 else
6894 defaultval=no
6895 fi
6896 fi
6897
6898 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6899 $as_echo_n "checking for --${enablestring:-enable}-datetime... " >&6; }
6900 # Check whether --enable-datetime was given.
6901 if test "${enable_datetime+set}" = set; then
6902 enableval=$enable_datetime;
6903 if test "$enableval" = yes; then
6904 wx_cv_use_datetime='wxUSE_DATETIME=yes'
6905 else
6906 wx_cv_use_datetime='wxUSE_DATETIME=no'
6907 fi
6908
6909 else
6910
6911 wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6912
6913 fi
6914
6915
6916 eval "$wx_cv_use_datetime"
6917
6918 if test x"$enablestring" = xdisable; then
6919 if test $wxUSE_DATETIME = yes; then
6920 result=no
6921 else
6922 result=yes
6923 fi
6924 else
6925 result=$wxUSE_DATETIME
6926 fi
6927
6928 { $as_echo "$as_me:$LINENO: result: $result" >&5
6929 $as_echo "$result" >&6; }
6930
6931
6932 enablestring=
6933 defaultval=$wxUSE_ALL_FEATURES
6934 if test -z "$defaultval"; then
6935 if test x"$enablestring" = xdisable; then
6936 defaultval=yes
6937 else
6938 defaultval=no
6939 fi
6940 fi
6941
6942 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6943 $as_echo_n "checking for --${enablestring:-enable}-debugreport... " >&6; }
6944 # Check whether --enable-debugreport was given.
6945 if test "${enable_debugreport+set}" = set; then
6946 enableval=$enable_debugreport;
6947 if test "$enableval" = yes; then
6948 wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6949 else
6950 wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6951 fi
6952
6953 else
6954
6955 wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6956
6957 fi
6958
6959
6960 eval "$wx_cv_use_debugreport"
6961
6962 if test x"$enablestring" = xdisable; then
6963 if test $wxUSE_DEBUGREPORT = yes; then
6964 result=no
6965 else
6966 result=yes
6967 fi
6968 else
6969 result=$wxUSE_DEBUGREPORT
6970 fi
6971
6972 { $as_echo "$as_me:$LINENO: result: $result" >&5
6973 $as_echo "$result" >&6; }
6974
6975
6976 enablestring=
6977 defaultval=$wxUSE_ALL_FEATURES
6978 if test -z "$defaultval"; then
6979 if test x"$enablestring" = xdisable; then
6980 defaultval=yes
6981 else
6982 defaultval=no
6983 fi
6984 fi
6985
6986 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6987 $as_echo_n "checking for --${enablestring:-enable}-dialupman... " >&6; }
6988 # Check whether --enable-dialupman was given.
6989 if test "${enable_dialupman+set}" = set; then
6990 enableval=$enable_dialupman;
6991 if test "$enableval" = yes; then
6992 wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6993 else
6994 wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6995 fi
6996
6997 else
6998
6999 wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
7000
7001 fi
7002
7003
7004 eval "$wx_cv_use_dialupman"
7005
7006 if test x"$enablestring" = xdisable; then
7007 if test $wxUSE_DIALUP_MANAGER = yes; then
7008 result=no
7009 else
7010 result=yes
7011 fi
7012 else
7013 result=$wxUSE_DIALUP_MANAGER
7014 fi
7015
7016 { $as_echo "$as_me:$LINENO: result: $result" >&5
7017 $as_echo "$result" >&6; }
7018
7019
7020 enablestring=
7021 defaultval=$wxUSE_ALL_FEATURES
7022 if test -z "$defaultval"; then
7023 if test x"$enablestring" = xdisable; then
7024 defaultval=yes
7025 else
7026 defaultval=no
7027 fi
7028 fi
7029
7030 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
7031 $as_echo_n "checking for --${enablestring:-enable}-dynlib... " >&6; }
7032 # Check whether --enable-dynlib was given.
7033 if test "${enable_dynlib+set}" = set; then
7034 enableval=$enable_dynlib;
7035 if test "$enableval" = yes; then
7036 wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
7037 else
7038 wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
7039 fi
7040
7041 else
7042
7043 wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
7044
7045 fi
7046
7047
7048 eval "$wx_cv_use_dynlib"
7049
7050 if test x"$enablestring" = xdisable; then
7051 if test $wxUSE_DYNLIB_CLASS = yes; then
7052 result=no
7053 else
7054 result=yes
7055 fi
7056 else
7057 result=$wxUSE_DYNLIB_CLASS
7058 fi
7059
7060 { $as_echo "$as_me:$LINENO: result: $result" >&5
7061 $as_echo "$result" >&6; }
7062
7063
7064 enablestring=
7065 defaultval=$wxUSE_ALL_FEATURES
7066 if test -z "$defaultval"; then
7067 if test x"$enablestring" = xdisable; then
7068 defaultval=yes
7069 else
7070 defaultval=no
7071 fi
7072 fi
7073
7074 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7075 $as_echo_n "checking for --${enablestring:-enable}-dynamicloader... " >&6; }
7076 # Check whether --enable-dynamicloader was given.
7077 if test "${enable_dynamicloader+set}" = set; then
7078 enableval=$enable_dynamicloader;
7079 if test "$enableval" = yes; then
7080 wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7081 else
7082 wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7083 fi
7084
7085 else
7086
7087 wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7088
7089 fi
7090
7091
7092 eval "$wx_cv_use_dynamicloader"
7093
7094 if test x"$enablestring" = xdisable; then
7095 if test $wxUSE_DYNAMIC_LOADER = yes; then
7096 result=no
7097 else
7098 result=yes
7099 fi
7100 else
7101 result=$wxUSE_DYNAMIC_LOADER
7102 fi
7103
7104 { $as_echo "$as_me:$LINENO: result: $result" >&5
7105 $as_echo "$result" >&6; }
7106
7107
7108 enablestring=
7109 defaultval=$wxUSE_ALL_FEATURES
7110 if test -z "$defaultval"; then
7111 if test x"$enablestring" = xdisable; then
7112 defaultval=yes
7113 else
7114 defaultval=no
7115 fi
7116 fi
7117
7118 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7119 $as_echo_n "checking for --${enablestring:-enable}-exceptions... " >&6; }
7120 # Check whether --enable-exceptions was given.
7121 if test "${enable_exceptions+set}" = set; then
7122 enableval=$enable_exceptions;
7123 if test "$enableval" = yes; then
7124 wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7125 else
7126 wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7127 fi
7128
7129 else
7130
7131 wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7132
7133 fi
7134
7135
7136 eval "$wx_cv_use_exceptions"
7137
7138 if test x"$enablestring" = xdisable; then
7139 if test $wxUSE_EXCEPTIONS = yes; then
7140 result=no
7141 else
7142 result=yes
7143 fi
7144 else
7145 result=$wxUSE_EXCEPTIONS
7146 fi
7147
7148 { $as_echo "$as_me:$LINENO: result: $result" >&5
7149 $as_echo "$result" >&6; }
7150
7151
7152 enablestring=
7153 defaultval=$wxUSE_ALL_FEATURES
7154 if test -z "$defaultval"; then
7155 if test x"$enablestring" = xdisable; then
7156 defaultval=yes
7157 else
7158 defaultval=no
7159 fi
7160 fi
7161
7162 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7163 $as_echo_n "checking for --${enablestring:-enable}-ffile... " >&6; }
7164 # Check whether --enable-ffile was given.
7165 if test "${enable_ffile+set}" = set; then
7166 enableval=$enable_ffile;
7167 if test "$enableval" = yes; then
7168 wx_cv_use_ffile='wxUSE_FFILE=yes'
7169 else
7170 wx_cv_use_ffile='wxUSE_FFILE=no'
7171 fi
7172
7173 else
7174
7175 wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7176
7177 fi
7178
7179
7180 eval "$wx_cv_use_ffile"
7181
7182 if test x"$enablestring" = xdisable; then
7183 if test $wxUSE_FFILE = yes; then
7184 result=no
7185 else
7186 result=yes
7187 fi
7188 else
7189 result=$wxUSE_FFILE
7190 fi
7191
7192 { $as_echo "$as_me:$LINENO: result: $result" >&5
7193 $as_echo "$result" >&6; }
7194
7195
7196 enablestring=
7197 defaultval=$wxUSE_ALL_FEATURES
7198 if test -z "$defaultval"; then
7199 if test x"$enablestring" = xdisable; then
7200 defaultval=yes
7201 else
7202 defaultval=no
7203 fi
7204 fi
7205
7206 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7207 $as_echo_n "checking for --${enablestring:-enable}-file... " >&6; }
7208 # Check whether --enable-file was given.
7209 if test "${enable_file+set}" = set; then
7210 enableval=$enable_file;
7211 if test "$enableval" = yes; then
7212 wx_cv_use_file='wxUSE_FILE=yes'
7213 else
7214 wx_cv_use_file='wxUSE_FILE=no'
7215 fi
7216
7217 else
7218
7219 wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7220
7221 fi
7222
7223
7224 eval "$wx_cv_use_file"
7225
7226 if test x"$enablestring" = xdisable; then
7227 if test $wxUSE_FILE = yes; then
7228 result=no
7229 else
7230 result=yes
7231 fi
7232 else
7233 result=$wxUSE_FILE
7234 fi
7235
7236 { $as_echo "$as_me:$LINENO: result: $result" >&5
7237 $as_echo "$result" >&6; }
7238
7239
7240 enablestring=
7241 defaultval=$wxUSE_ALL_FEATURES
7242 if test -z "$defaultval"; then
7243 if test x"$enablestring" = xdisable; then
7244 defaultval=yes
7245 else
7246 defaultval=no
7247 fi
7248 fi
7249
7250 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7251 $as_echo_n "checking for --${enablestring:-enable}-filesystem... " >&6; }
7252 # Check whether --enable-filesystem was given.
7253 if test "${enable_filesystem+set}" = set; then
7254 enableval=$enable_filesystem;
7255 if test "$enableval" = yes; then
7256 wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7257 else
7258 wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7259 fi
7260
7261 else
7262
7263 wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7264
7265 fi
7266
7267
7268 eval "$wx_cv_use_filesystem"
7269
7270 if test x"$enablestring" = xdisable; then
7271 if test $wxUSE_FILESYSTEM = yes; then
7272 result=no
7273 else
7274 result=yes
7275 fi
7276 else
7277 result=$wxUSE_FILESYSTEM
7278 fi
7279
7280 { $as_echo "$as_me:$LINENO: result: $result" >&5
7281 $as_echo "$result" >&6; }
7282
7283
7284 enablestring=
7285 defaultval=$wxUSE_ALL_FEATURES
7286 if test -z "$defaultval"; then
7287 if test x"$enablestring" = xdisable; then
7288 defaultval=yes
7289 else
7290 defaultval=no
7291 fi
7292 fi
7293
7294 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7295 $as_echo_n "checking for --${enablestring:-enable}-fontenum... " >&6; }
7296 # Check whether --enable-fontenum was given.
7297 if test "${enable_fontenum+set}" = set; then
7298 enableval=$enable_fontenum;
7299 if test "$enableval" = yes; then
7300 wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7301 else
7302 wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7303 fi
7304
7305 else
7306
7307 wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7308
7309 fi
7310
7311
7312 eval "$wx_cv_use_fontenum"
7313
7314 if test x"$enablestring" = xdisable; then
7315 if test $wxUSE_FONTENUM = yes; then
7316 result=no
7317 else
7318 result=yes
7319 fi
7320 else
7321 result=$wxUSE_FONTENUM
7322 fi
7323
7324 { $as_echo "$as_me:$LINENO: result: $result" >&5
7325 $as_echo "$result" >&6; }
7326
7327
7328 enablestring=
7329 defaultval=$wxUSE_ALL_FEATURES
7330 if test -z "$defaultval"; then
7331 if test x"$enablestring" = xdisable; then
7332 defaultval=yes
7333 else
7334 defaultval=no
7335 fi
7336 fi
7337
7338 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7339 $as_echo_n "checking for --${enablestring:-enable}-fontmap... " >&6; }
7340 # Check whether --enable-fontmap was given.
7341 if test "${enable_fontmap+set}" = set; then
7342 enableval=$enable_fontmap;
7343 if test "$enableval" = yes; then
7344 wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7345 else
7346 wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7347 fi
7348
7349 else
7350
7351 wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7352
7353 fi
7354
7355
7356 eval "$wx_cv_use_fontmap"
7357
7358 if test x"$enablestring" = xdisable; then
7359 if test $wxUSE_FONTMAP = yes; then
7360 result=no
7361 else
7362 result=yes
7363 fi
7364 else
7365 result=$wxUSE_FONTMAP
7366 fi
7367
7368 { $as_echo "$as_me:$LINENO: result: $result" >&5
7369 $as_echo "$result" >&6; }
7370
7371
7372 enablestring=
7373 defaultval=$wxUSE_ALL_FEATURES
7374 if test -z "$defaultval"; then
7375 if test x"$enablestring" = xdisable; then
7376 defaultval=yes
7377 else
7378 defaultval=no
7379 fi
7380 fi
7381
7382 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7383 $as_echo_n "checking for --${enablestring:-enable}-fs_archive... " >&6; }
7384 # Check whether --enable-fs_archive was given.
7385 if test "${enable_fs_archive+set}" = set; then
7386 enableval=$enable_fs_archive;
7387 if test "$enableval" = yes; then
7388 wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7389 else
7390 wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7391 fi
7392
7393 else
7394
7395 wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7396
7397 fi
7398
7399
7400 eval "$wx_cv_use_fs_archive"
7401
7402 if test x"$enablestring" = xdisable; then
7403 if test $wxUSE_FS_ARCHIVE = yes; then
7404 result=no
7405 else
7406 result=yes
7407 fi
7408 else
7409 result=$wxUSE_FS_ARCHIVE
7410 fi
7411
7412 { $as_echo "$as_me:$LINENO: result: $result" >&5
7413 $as_echo "$result" >&6; }
7414
7415
7416 enablestring=
7417 defaultval=$wxUSE_ALL_FEATURES
7418 if test -z "$defaultval"; then
7419 if test x"$enablestring" = xdisable; then
7420 defaultval=yes
7421 else
7422 defaultval=no
7423 fi
7424 fi
7425
7426 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7427 $as_echo_n "checking for --${enablestring:-enable}-fs_inet... " >&6; }
7428 # Check whether --enable-fs_inet was given.
7429 if test "${enable_fs_inet+set}" = set; then
7430 enableval=$enable_fs_inet;
7431 if test "$enableval" = yes; then
7432 wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7433 else
7434 wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7435 fi
7436
7437 else
7438
7439 wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7440
7441 fi
7442
7443
7444 eval "$wx_cv_use_fs_inet"
7445
7446 if test x"$enablestring" = xdisable; then
7447 if test $wxUSE_FS_INET = yes; then
7448 result=no
7449 else
7450 result=yes
7451 fi
7452 else
7453 result=$wxUSE_FS_INET
7454 fi
7455
7456 { $as_echo "$as_me:$LINENO: result: $result" >&5
7457 $as_echo "$result" >&6; }
7458
7459
7460 enablestring=
7461 defaultval=$wxUSE_ALL_FEATURES
7462 if test -z "$defaultval"; then
7463 if test x"$enablestring" = xdisable; then
7464 defaultval=yes
7465 else
7466 defaultval=no
7467 fi
7468 fi
7469
7470 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7471 $as_echo_n "checking for --${enablestring:-enable}-fs_zip... " >&6; }
7472 # Check whether --enable-fs_zip was given.
7473 if test "${enable_fs_zip+set}" = set; then
7474 enableval=$enable_fs_zip;
7475 if test "$enableval" = yes; then
7476 wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7477 else
7478 wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7479 fi
7480
7481 else
7482
7483 wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7484
7485 fi
7486
7487
7488 eval "$wx_cv_use_fs_zip"
7489
7490 if test x"$enablestring" = xdisable; then
7491 if test $wxUSE_FS_ZIP = yes; then
7492 result=no
7493 else
7494 result=yes
7495 fi
7496 else
7497 result=$wxUSE_FS_ZIP
7498 fi
7499
7500 { $as_echo "$as_me:$LINENO: result: $result" >&5
7501 $as_echo "$result" >&6; }
7502
7503
7504 enablestring=
7505 defaultval=$wxUSE_ALL_FEATURES
7506 if test -z "$defaultval"; then
7507 if test x"$enablestring" = xdisable; then
7508 defaultval=yes
7509 else
7510 defaultval=no
7511 fi
7512 fi
7513
7514 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7515 $as_echo_n "checking for --${enablestring:-enable}-geometry... " >&6; }
7516 # Check whether --enable-geometry was given.
7517 if test "${enable_geometry+set}" = set; then
7518 enableval=$enable_geometry;
7519 if test "$enableval" = yes; then
7520 wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7521 else
7522 wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7523 fi
7524
7525 else
7526
7527 wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7528
7529 fi
7530
7531
7532 eval "$wx_cv_use_geometry"
7533
7534 if test x"$enablestring" = xdisable; then
7535 if test $wxUSE_GEOMETRY = yes; then
7536 result=no
7537 else
7538 result=yes
7539 fi
7540 else
7541 result=$wxUSE_GEOMETRY
7542 fi
7543
7544 { $as_echo "$as_me:$LINENO: result: $result" >&5
7545 $as_echo "$result" >&6; }
7546
7547
7548 enablestring=
7549 defaultval=$wxUSE_ALL_FEATURES
7550 if test -z "$defaultval"; then
7551 if test x"$enablestring" = xdisable; then
7552 defaultval=yes
7553 else
7554 defaultval=no
7555 fi
7556 fi
7557
7558 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7559 $as_echo_n "checking for --${enablestring:-enable}-log... " >&6; }
7560 # Check whether --enable-log was given.
7561 if test "${enable_log+set}" = set; then
7562 enableval=$enable_log;
7563 if test "$enableval" = yes; then
7564 wx_cv_use_log='wxUSE_LOG=yes'
7565 else
7566 wx_cv_use_log='wxUSE_LOG=no'
7567 fi
7568
7569 else
7570
7571 wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7572
7573 fi
7574
7575
7576 eval "$wx_cv_use_log"
7577
7578 if test x"$enablestring" = xdisable; then
7579 if test $wxUSE_LOG = yes; then
7580 result=no
7581 else
7582 result=yes
7583 fi
7584 else
7585 result=$wxUSE_LOG
7586 fi
7587
7588 { $as_echo "$as_me:$LINENO: result: $result" >&5
7589 $as_echo "$result" >&6; }
7590
7591
7592 enablestring=
7593 defaultval=$wxUSE_ALL_FEATURES
7594 if test -z "$defaultval"; then
7595 if test x"$enablestring" = xdisable; then
7596 defaultval=yes
7597 else
7598 defaultval=no
7599 fi
7600 fi
7601
7602 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7603 $as_echo_n "checking for --${enablestring:-enable}-longlong... " >&6; }
7604 # Check whether --enable-longlong was given.
7605 if test "${enable_longlong+set}" = set; then
7606 enableval=$enable_longlong;
7607 if test "$enableval" = yes; then
7608 wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7609 else
7610 wx_cv_use_longlong='wxUSE_LONGLONG=no'
7611 fi
7612
7613 else
7614
7615 wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7616
7617 fi
7618
7619
7620 eval "$wx_cv_use_longlong"
7621
7622 if test x"$enablestring" = xdisable; then
7623 if test $wxUSE_LONGLONG = yes; then
7624 result=no
7625 else
7626 result=yes
7627 fi
7628 else
7629 result=$wxUSE_LONGLONG
7630 fi
7631
7632 { $as_echo "$as_me:$LINENO: result: $result" >&5
7633 $as_echo "$result" >&6; }
7634
7635
7636 enablestring=
7637 defaultval=$wxUSE_ALL_FEATURES
7638 if test -z "$defaultval"; then
7639 if test x"$enablestring" = xdisable; then
7640 defaultval=yes
7641 else
7642 defaultval=no
7643 fi
7644 fi
7645
7646 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7647 $as_echo_n "checking for --${enablestring:-enable}-mimetype... " >&6; }
7648 # Check whether --enable-mimetype was given.
7649 if test "${enable_mimetype+set}" = set; then
7650 enableval=$enable_mimetype;
7651 if test "$enableval" = yes; then
7652 wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7653 else
7654 wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7655 fi
7656
7657 else
7658
7659 wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7660
7661 fi
7662
7663
7664 eval "$wx_cv_use_mimetype"
7665
7666 if test x"$enablestring" = xdisable; then
7667 if test $wxUSE_MIMETYPE = yes; then
7668 result=no
7669 else
7670 result=yes
7671 fi
7672 else
7673 result=$wxUSE_MIMETYPE
7674 fi
7675
7676 { $as_echo "$as_me:$LINENO: result: $result" >&5
7677 $as_echo "$result" >&6; }
7678
7679
7680 enablestring=
7681 defaultval=$wxUSE_ALL_FEATURES
7682 if test -z "$defaultval"; then
7683 if test x"$enablestring" = xdisable; then
7684 defaultval=yes
7685 else
7686 defaultval=no
7687 fi
7688 fi
7689
7690 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7691 $as_echo_n "checking for --${enablestring:-enable}-printfposparam... " >&6; }
7692 # Check whether --enable-printfposparam was given.
7693 if test "${enable_printfposparam+set}" = set; then
7694 enableval=$enable_printfposparam;
7695 if test "$enableval" = yes; then
7696 wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7697 else
7698 wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7699 fi
7700
7701 else
7702
7703 wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7704
7705 fi
7706
7707
7708 eval "$wx_cv_use_printfposparam"
7709
7710 if test x"$enablestring" = xdisable; then
7711 if test $wxUSE_PRINTF_POS_PARAMS = yes; then
7712 result=no
7713 else
7714 result=yes
7715 fi
7716 else
7717 result=$wxUSE_PRINTF_POS_PARAMS
7718 fi
7719
7720 { $as_echo "$as_me:$LINENO: result: $result" >&5
7721 $as_echo "$result" >&6; }
7722
7723
7724 enablestring=
7725 defaultval=$wxUSE_ALL_FEATURES
7726 if test -z "$defaultval"; then
7727 if test x"$enablestring" = xdisable; then
7728 defaultval=yes
7729 else
7730 defaultval=no
7731 fi
7732 fi
7733
7734 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7735 $as_echo_n "checking for --${enablestring:-enable}-snglinst... " >&6; }
7736 # Check whether --enable-snglinst was given.
7737 if test "${enable_snglinst+set}" = set; then
7738 enableval=$enable_snglinst;
7739 if test "$enableval" = yes; then
7740 wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7741 else
7742 wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7743 fi
7744
7745 else
7746
7747 wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7748
7749 fi
7750
7751
7752 eval "$wx_cv_use_snglinst"
7753
7754 if test x"$enablestring" = xdisable; then
7755 if test $wxUSE_SNGLINST_CHECKER = yes; then
7756 result=no
7757 else
7758 result=yes
7759 fi
7760 else
7761 result=$wxUSE_SNGLINST_CHECKER
7762 fi
7763
7764 { $as_echo "$as_me:$LINENO: result: $result" >&5
7765 $as_echo "$result" >&6; }
7766
7767
7768 enablestring=
7769 defaultval=$wxUSE_ALL_FEATURES
7770 if test -z "$defaultval"; then
7771 if test x"$enablestring" = xdisable; then
7772 defaultval=yes
7773 else
7774 defaultval=no
7775 fi
7776 fi
7777
7778 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7779 $as_echo_n "checking for --${enablestring:-enable}-sound... " >&6; }
7780 # Check whether --enable-sound was given.
7781 if test "${enable_sound+set}" = set; then
7782 enableval=$enable_sound;
7783 if test "$enableval" = yes; then
7784 wx_cv_use_sound='wxUSE_SOUND=yes'
7785 else
7786 wx_cv_use_sound='wxUSE_SOUND=no'
7787 fi
7788
7789 else
7790
7791 wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7792
7793 fi
7794
7795
7796 eval "$wx_cv_use_sound"
7797
7798 if test x"$enablestring" = xdisable; then
7799 if test $wxUSE_SOUND = yes; then
7800 result=no
7801 else
7802 result=yes
7803 fi
7804 else
7805 result=$wxUSE_SOUND
7806 fi
7807
7808 { $as_echo "$as_me:$LINENO: result: $result" >&5
7809 $as_echo "$result" >&6; }
7810
7811
7812 enablestring=
7813 defaultval=$wxUSE_ALL_FEATURES
7814 if test -z "$defaultval"; then
7815 if test x"$enablestring" = xdisable; then
7816 defaultval=yes
7817 else
7818 defaultval=no
7819 fi
7820 fi
7821
7822 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7823 $as_echo_n "checking for --${enablestring:-enable}-stdpaths... " >&6; }
7824 # Check whether --enable-stdpaths was given.
7825 if test "${enable_stdpaths+set}" = set; then
7826 enableval=$enable_stdpaths;
7827 if test "$enableval" = yes; then
7828 wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7829 else
7830 wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7831 fi
7832
7833 else
7834
7835 wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7836
7837 fi
7838
7839
7840 eval "$wx_cv_use_stdpaths"
7841
7842 if test x"$enablestring" = xdisable; then
7843 if test $wxUSE_STDPATHS = yes; then
7844 result=no
7845 else
7846 result=yes
7847 fi
7848 else
7849 result=$wxUSE_STDPATHS
7850 fi
7851
7852 { $as_echo "$as_me:$LINENO: result: $result" >&5
7853 $as_echo "$result" >&6; }
7854
7855
7856 enablestring=
7857 defaultval=$wxUSE_ALL_FEATURES
7858 if test -z "$defaultval"; then
7859 if test x"$enablestring" = xdisable; then
7860 defaultval=yes
7861 else
7862 defaultval=no
7863 fi
7864 fi
7865
7866 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7867 $as_echo_n "checking for --${enablestring:-enable}-stopwatch... " >&6; }
7868 # Check whether --enable-stopwatch was given.
7869 if test "${enable_stopwatch+set}" = set; then
7870 enableval=$enable_stopwatch;
7871 if test "$enableval" = yes; then
7872 wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7873 else
7874 wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7875 fi
7876
7877 else
7878
7879 wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7880
7881 fi
7882
7883
7884 eval "$wx_cv_use_stopwatch"
7885
7886 if test x"$enablestring" = xdisable; then
7887 if test $wxUSE_STOPWATCH = yes; then
7888 result=no
7889 else
7890 result=yes
7891 fi
7892 else
7893 result=$wxUSE_STOPWATCH
7894 fi
7895
7896 { $as_echo "$as_me:$LINENO: result: $result" >&5
7897 $as_echo "$result" >&6; }
7898
7899
7900 enablestring=
7901 defaultval=$wxUSE_ALL_FEATURES
7902 if test -z "$defaultval"; then
7903 if test x"$enablestring" = xdisable; then
7904 defaultval=yes
7905 else
7906 defaultval=no
7907 fi
7908 fi
7909
7910 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7911 $as_echo_n "checking for --${enablestring:-enable}-streams... " >&6; }
7912 # Check whether --enable-streams was given.
7913 if test "${enable_streams+set}" = set; then
7914 enableval=$enable_streams;
7915 if test "$enableval" = yes; then
7916 wx_cv_use_streams='wxUSE_STREAMS=yes'
7917 else
7918 wx_cv_use_streams='wxUSE_STREAMS=no'
7919 fi
7920
7921 else
7922
7923 wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7924
7925 fi
7926
7927
7928 eval "$wx_cv_use_streams"
7929
7930 if test x"$enablestring" = xdisable; then
7931 if test $wxUSE_STREAMS = yes; then
7932 result=no
7933 else
7934 result=yes
7935 fi
7936 else
7937 result=$wxUSE_STREAMS
7938 fi
7939
7940 { $as_echo "$as_me:$LINENO: result: $result" >&5
7941 $as_echo "$result" >&6; }
7942
7943
7944 enablestring=
7945 defaultval=$wxUSE_ALL_FEATURES
7946 if test -z "$defaultval"; then
7947 if test x"$enablestring" = xdisable; then
7948 defaultval=yes
7949 else
7950 defaultval=no
7951 fi
7952 fi
7953
7954 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7955 $as_echo_n "checking for --${enablestring:-enable}-system_options... " >&6; }
7956 # Check whether --enable-system_options was given.
7957 if test "${enable_system_options+set}" = set; then
7958 enableval=$enable_system_options;
7959 if test "$enableval" = yes; then
7960 wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7961 else
7962 wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7963 fi
7964
7965 else
7966
7967 wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7968
7969 fi
7970
7971
7972 eval "$wx_cv_use_system_options"
7973
7974 if test x"$enablestring" = xdisable; then
7975 if test $wxUSE_SYSTEM_OPTIONS = yes; then
7976 result=no
7977 else
7978 result=yes
7979 fi
7980 else
7981 result=$wxUSE_SYSTEM_OPTIONS
7982 fi
7983
7984 { $as_echo "$as_me:$LINENO: result: $result" >&5
7985 $as_echo "$result" >&6; }
7986
7987
7988 enablestring=
7989 defaultval=$wxUSE_ALL_FEATURES
7990 if test -z "$defaultval"; then
7991 if test x"$enablestring" = xdisable; then
7992 defaultval=yes
7993 else
7994 defaultval=no
7995 fi
7996 fi
7997
7998 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7999 $as_echo_n "checking for --${enablestring:-enable}-tarstream... " >&6; }
8000 # Check whether --enable-tarstream was given.
8001 if test "${enable_tarstream+set}" = set; then
8002 enableval=$enable_tarstream;
8003 if test "$enableval" = yes; then
8004 wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8005 else
8006 wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8007 fi
8008
8009 else
8010
8011 wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8012
8013 fi
8014
8015
8016 eval "$wx_cv_use_tarstream"
8017
8018 if test x"$enablestring" = xdisable; then
8019 if test $wxUSE_TARSTREAM = yes; then
8020 result=no
8021 else
8022 result=yes
8023 fi
8024 else
8025 result=$wxUSE_TARSTREAM
8026 fi
8027
8028 { $as_echo "$as_me:$LINENO: result: $result" >&5
8029 $as_echo "$result" >&6; }
8030
8031
8032 enablestring=
8033 defaultval=$wxUSE_ALL_FEATURES
8034 if test -z "$defaultval"; then
8035 if test x"$enablestring" = xdisable; then
8036 defaultval=yes
8037 else
8038 defaultval=no
8039 fi
8040 fi
8041
8042 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8043 $as_echo_n "checking for --${enablestring:-enable}-textbuf... " >&6; }
8044 # Check whether --enable-textbuf was given.
8045 if test "${enable_textbuf+set}" = set; then
8046 enableval=$enable_textbuf;
8047 if test "$enableval" = yes; then
8048 wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8049 else
8050 wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8051 fi
8052
8053 else
8054
8055 wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8056
8057 fi
8058
8059
8060 eval "$wx_cv_use_textbuf"
8061
8062 if test x"$enablestring" = xdisable; then
8063 if test $wxUSE_TEXTBUFFER = yes; then
8064 result=no
8065 else
8066 result=yes
8067 fi
8068 else
8069 result=$wxUSE_TEXTBUFFER
8070 fi
8071
8072 { $as_echo "$as_me:$LINENO: result: $result" >&5
8073 $as_echo "$result" >&6; }
8074
8075
8076 enablestring=
8077 defaultval=$wxUSE_ALL_FEATURES
8078 if test -z "$defaultval"; then
8079 if test x"$enablestring" = xdisable; then
8080 defaultval=yes
8081 else
8082 defaultval=no
8083 fi
8084 fi
8085
8086 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8087 $as_echo_n "checking for --${enablestring:-enable}-textfile... " >&6; }
8088 # Check whether --enable-textfile was given.
8089 if test "${enable_textfile+set}" = set; then
8090 enableval=$enable_textfile;
8091 if test "$enableval" = yes; then
8092 wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8093 else
8094 wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8095 fi
8096
8097 else
8098
8099 wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8100
8101 fi
8102
8103
8104 eval "$wx_cv_use_textfile"
8105
8106 if test x"$enablestring" = xdisable; then
8107 if test $wxUSE_TEXTFILE = yes; then
8108 result=no
8109 else
8110 result=yes
8111 fi
8112 else
8113 result=$wxUSE_TEXTFILE
8114 fi
8115
8116 { $as_echo "$as_me:$LINENO: result: $result" >&5
8117 $as_echo "$result" >&6; }
8118
8119
8120 enablestring=
8121 defaultval=$wxUSE_ALL_FEATURES
8122 if test -z "$defaultval"; then
8123 if test x"$enablestring" = xdisable; then
8124 defaultval=yes
8125 else
8126 defaultval=no
8127 fi
8128 fi
8129
8130 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8131 $as_echo_n "checking for --${enablestring:-enable}-timer... " >&6; }
8132 # Check whether --enable-timer was given.
8133 if test "${enable_timer+set}" = set; then
8134 enableval=$enable_timer;
8135 if test "$enableval" = yes; then
8136 wx_cv_use_timer='wxUSE_TIMER=yes'
8137 else
8138 wx_cv_use_timer='wxUSE_TIMER=no'
8139 fi
8140
8141 else
8142
8143 wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8144
8145 fi
8146
8147
8148 eval "$wx_cv_use_timer"
8149
8150 if test x"$enablestring" = xdisable; then
8151 if test $wxUSE_TIMER = yes; then
8152 result=no
8153 else
8154 result=yes
8155 fi
8156 else
8157 result=$wxUSE_TIMER
8158 fi
8159
8160 { $as_echo "$as_me:$LINENO: result: $result" >&5
8161 $as_echo "$result" >&6; }
8162
8163
8164 enablestring=
8165 defaultval=$wxUSE_ALL_FEATURES
8166 if test -z "$defaultval"; then
8167 if test x"$enablestring" = xdisable; then
8168 defaultval=yes
8169 else
8170 defaultval=no
8171 fi
8172 fi
8173
8174 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8175 $as_echo_n "checking for --${enablestring:-enable}-variant... " >&6; }
8176 # Check whether --enable-variant was given.
8177 if test "${enable_variant+set}" = set; then
8178 enableval=$enable_variant;
8179 if test "$enableval" = yes; then
8180 wx_cv_use_variant='wxUSE_VARIANT=yes'
8181 else
8182 wx_cv_use_variant='wxUSE_VARIANT=no'
8183 fi
8184
8185 else
8186
8187 wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8188
8189 fi
8190
8191
8192 eval "$wx_cv_use_variant"
8193
8194 if test x"$enablestring" = xdisable; then
8195 if test $wxUSE_VARIANT = yes; then
8196 result=no
8197 else
8198 result=yes
8199 fi
8200 else
8201 result=$wxUSE_VARIANT
8202 fi
8203
8204 { $as_echo "$as_me:$LINENO: result: $result" >&5
8205 $as_echo "$result" >&6; }
8206
8207
8208 enablestring=
8209 defaultval=$wxUSE_ALL_FEATURES
8210 if test -z "$defaultval"; then
8211 if test x"$enablestring" = xdisable; then
8212 defaultval=yes
8213 else
8214 defaultval=no
8215 fi
8216 fi
8217
8218 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8219 $as_echo_n "checking for --${enablestring:-enable}-zipstream... " >&6; }
8220 # Check whether --enable-zipstream was given.
8221 if test "${enable_zipstream+set}" = set; then
8222 enableval=$enable_zipstream;
8223 if test "$enableval" = yes; then
8224 wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8225 else
8226 wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8227 fi
8228
8229 else
8230
8231 wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8232
8233 fi
8234
8235
8236 eval "$wx_cv_use_zipstream"
8237
8238 if test x"$enablestring" = xdisable; then
8239 if test $wxUSE_ZIPSTREAM = yes; then
8240 result=no
8241 else
8242 result=yes
8243 fi
8244 else
8245 result=$wxUSE_ZIPSTREAM
8246 fi
8247
8248 { $as_echo "$as_me:$LINENO: result: $result" >&5
8249 $as_echo "$result" >&6; }
8250
8251
8252
8253 enablestring=
8254 defaultval=$wxUSE_ALL_FEATURES
8255 if test -z "$defaultval"; then
8256 if test x"$enablestring" = xdisable; then
8257 defaultval=yes
8258 else
8259 defaultval=no
8260 fi
8261 fi
8262
8263 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8264 $as_echo_n "checking for --${enablestring:-enable}-url... " >&6; }
8265 # Check whether --enable-url was given.
8266 if test "${enable_url+set}" = set; then
8267 enableval=$enable_url;
8268 if test "$enableval" = yes; then
8269 wx_cv_use_url='wxUSE_URL=yes'
8270 else
8271 wx_cv_use_url='wxUSE_URL=no'
8272 fi
8273
8274 else
8275
8276 wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8277
8278 fi
8279
8280
8281 eval "$wx_cv_use_url"
8282
8283 if test x"$enablestring" = xdisable; then
8284 if test $wxUSE_URL = yes; then
8285 result=no
8286 else
8287 result=yes
8288 fi
8289 else
8290 result=$wxUSE_URL
8291 fi
8292
8293 { $as_echo "$as_me:$LINENO: result: $result" >&5
8294 $as_echo "$result" >&6; }
8295
8296
8297 enablestring=
8298 defaultval=$wxUSE_ALL_FEATURES
8299 if test -z "$defaultval"; then
8300 if test x"$enablestring" = xdisable; then
8301 defaultval=yes
8302 else
8303 defaultval=no
8304 fi
8305 fi
8306
8307 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8308 $as_echo_n "checking for --${enablestring:-enable}-protocol... " >&6; }
8309 # Check whether --enable-protocol was given.
8310 if test "${enable_protocol+set}" = set; then
8311 enableval=$enable_protocol;
8312 if test "$enableval" = yes; then
8313 wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8314 else
8315 wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8316 fi
8317
8318 else
8319
8320 wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8321
8322 fi
8323
8324
8325 eval "$wx_cv_use_protocol"
8326
8327 if test x"$enablestring" = xdisable; then
8328 if test $wxUSE_PROTOCOL = yes; then
8329 result=no
8330 else
8331 result=yes
8332 fi
8333 else
8334 result=$wxUSE_PROTOCOL
8335 fi
8336
8337 { $as_echo "$as_me:$LINENO: result: $result" >&5
8338 $as_echo "$result" >&6; }
8339
8340
8341 enablestring=
8342 defaultval=$wxUSE_ALL_FEATURES
8343 if test -z "$defaultval"; then
8344 if test x"$enablestring" = xdisable; then
8345 defaultval=yes
8346 else
8347 defaultval=no
8348 fi
8349 fi
8350
8351 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8352 $as_echo_n "checking for --${enablestring:-enable}-protocol_http... " >&6; }
8353 # Check whether --enable-protocol_http was given.
8354 if test "${enable_protocol_http+set}" = set; then
8355 enableval=$enable_protocol_http;
8356 if test "$enableval" = yes; then
8357 wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8358 else
8359 wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8360 fi
8361
8362 else
8363
8364 wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8365
8366 fi
8367
8368
8369 eval "$wx_cv_use_protocol_http"
8370
8371 if test x"$enablestring" = xdisable; then
8372 if test $wxUSE_PROTOCOL_HTTP = yes; then
8373 result=no
8374 else
8375 result=yes
8376 fi
8377 else
8378 result=$wxUSE_PROTOCOL_HTTP
8379 fi
8380
8381 { $as_echo "$as_me:$LINENO: result: $result" >&5
8382 $as_echo "$result" >&6; }
8383
8384
8385 enablestring=
8386 defaultval=$wxUSE_ALL_FEATURES
8387 if test -z "$defaultval"; then
8388 if test x"$enablestring" = xdisable; then
8389 defaultval=yes
8390 else
8391 defaultval=no
8392 fi
8393 fi
8394
8395 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8396 $as_echo_n "checking for --${enablestring:-enable}-protocol_ftp... " >&6; }
8397 # Check whether --enable-protocol_ftp was given.
8398 if test "${enable_protocol_ftp+set}" = set; then
8399 enableval=$enable_protocol_ftp;
8400 if test "$enableval" = yes; then
8401 wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8402 else
8403 wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8404 fi
8405
8406 else
8407
8408 wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8409
8410 fi
8411
8412
8413 eval "$wx_cv_use_protocol_ftp"
8414
8415 if test x"$enablestring" = xdisable; then
8416 if test $wxUSE_PROTOCOL_FTP = yes; then
8417 result=no
8418 else
8419 result=yes
8420 fi
8421 else
8422 result=$wxUSE_PROTOCOL_FTP
8423 fi
8424
8425 { $as_echo "$as_me:$LINENO: result: $result" >&5
8426 $as_echo "$result" >&6; }
8427
8428
8429 enablestring=
8430 defaultval=$wxUSE_ALL_FEATURES
8431 if test -z "$defaultval"; then
8432 if test x"$enablestring" = xdisable; then
8433 defaultval=yes
8434 else
8435 defaultval=no
8436 fi
8437 fi
8438
8439 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8440 $as_echo_n "checking for --${enablestring:-enable}-protocol_file... " >&6; }
8441 # Check whether --enable-protocol_file was given.
8442 if test "${enable_protocol_file+set}" = set; then
8443 enableval=$enable_protocol_file;
8444 if test "$enableval" = yes; then
8445 wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8446 else
8447 wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8448 fi
8449
8450 else
8451
8452 wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8453
8454 fi
8455
8456
8457 eval "$wx_cv_use_protocol_file"
8458
8459 if test x"$enablestring" = xdisable; then
8460 if test $wxUSE_PROTOCOL_FILE = yes; then
8461 result=no
8462 else
8463 result=yes
8464 fi
8465 else
8466 result=$wxUSE_PROTOCOL_FILE
8467 fi
8468
8469 { $as_echo "$as_me:$LINENO: result: $result" >&5
8470 $as_echo "$result" >&6; }
8471
8472
8473
8474 enablestring=
8475 defaultval=$wxUSE_ALL_FEATURES
8476 if test -z "$defaultval"; then
8477 if test x"$enablestring" = xdisable; then
8478 defaultval=yes
8479 else
8480 defaultval=no
8481 fi
8482 fi
8483
8484 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8485 $as_echo_n "checking for --${enablestring:-enable}-threads... " >&6; }
8486 # Check whether --enable-threads was given.
8487 if test "${enable_threads+set}" = set; then
8488 enableval=$enable_threads;
8489 if test "$enableval" = yes; then
8490 wx_cv_use_threads='wxUSE_THREADS=yes'
8491 else
8492 wx_cv_use_threads='wxUSE_THREADS=no'
8493 fi
8494
8495 else
8496
8497 wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8498
8499 fi
8500
8501
8502 eval "$wx_cv_use_threads"
8503
8504 if test x"$enablestring" = xdisable; then
8505 if test $wxUSE_THREADS = yes; then
8506 result=no
8507 else
8508 result=yes
8509 fi
8510 else
8511 result=$wxUSE_THREADS
8512 fi
8513
8514 { $as_echo "$as_me:$LINENO: result: $result" >&5
8515 $as_echo "$result" >&6; }
8516
8517
8518
8519 enablestring=
8520 defaultval=
8521 if test -z "$defaultval"; then
8522 if test x"$enablestring" = xdisable; then
8523 defaultval=yes
8524 else
8525 defaultval=no
8526 fi
8527 fi
8528
8529 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8530 $as_echo_n "checking for --${enablestring:-enable}-iniconf... " >&6; }
8531 # Check whether --enable-iniconf was given.
8532 if test "${enable_iniconf+set}" = set; then
8533 enableval=$enable_iniconf;
8534 if test "$enableval" = yes; then
8535 wx_cv_use_iniconf='wxUSE_INICONF=yes'
8536 else
8537 wx_cv_use_iniconf='wxUSE_INICONF=no'
8538 fi
8539
8540 else
8541
8542 wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8543
8544 fi
8545
8546
8547 eval "$wx_cv_use_iniconf"
8548
8549 if test x"$enablestring" = xdisable; then
8550 if test $wxUSE_INICONF = yes; then
8551 result=no
8552 else
8553 result=yes
8554 fi
8555 else
8556 result=$wxUSE_INICONF
8557 fi
8558
8559 { $as_echo "$as_me:$LINENO: result: $result" >&5
8560 $as_echo "$result" >&6; }
8561
8562
8563 enablestring=
8564 defaultval=$wxUSE_ALL_FEATURES
8565 if test -z "$defaultval"; then
8566 if test x"$enablestring" = xdisable; then
8567 defaultval=yes
8568 else
8569 defaultval=no
8570 fi
8571 fi
8572
8573 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8574 $as_echo_n "checking for --${enablestring:-enable}-regkey... " >&6; }
8575 # Check whether --enable-regkey was given.
8576 if test "${enable_regkey+set}" = set; then
8577 enableval=$enable_regkey;
8578 if test "$enableval" = yes; then
8579 wx_cv_use_regkey='wxUSE_REGKEY=yes'
8580 else
8581 wx_cv_use_regkey='wxUSE_REGKEY=no'
8582 fi
8583
8584 else
8585
8586 wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8587
8588 fi
8589
8590
8591 eval "$wx_cv_use_regkey"
8592
8593 if test x"$enablestring" = xdisable; then
8594 if test $wxUSE_REGKEY = yes; then
8595 result=no
8596 else
8597 result=yes
8598 fi
8599 else
8600 result=$wxUSE_REGKEY
8601 fi
8602
8603 { $as_echo "$as_me:$LINENO: result: $result" >&5
8604 $as_echo "$result" >&6; }
8605
8606
8607 if test "$wxUSE_GUI" = "yes"; then
8608
8609
8610
8611 enablestring=
8612 defaultval=$wxUSE_ALL_FEATURES
8613 if test -z "$defaultval"; then
8614 if test x"$enablestring" = xdisable; then
8615 defaultval=yes
8616 else
8617 defaultval=no
8618 fi
8619 fi
8620
8621 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8622 $as_echo_n "checking for --${enablestring:-enable}-docview... " >&6; }
8623 # Check whether --enable-docview was given.
8624 if test "${enable_docview+set}" = set; then
8625 enableval=$enable_docview;
8626 if test "$enableval" = yes; then
8627 wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8628 else
8629 wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8630 fi
8631
8632 else
8633
8634 wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8635
8636 fi
8637
8638
8639 eval "$wx_cv_use_docview"
8640
8641 if test x"$enablestring" = xdisable; then
8642 if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
8643 result=no
8644 else
8645 result=yes
8646 fi
8647 else
8648 result=$wxUSE_DOC_VIEW_ARCHITECTURE
8649 fi
8650
8651 { $as_echo "$as_me:$LINENO: result: $result" >&5
8652 $as_echo "$result" >&6; }
8653
8654
8655 enablestring=
8656 defaultval=$wxUSE_ALL_FEATURES
8657 if test -z "$defaultval"; then
8658 if test x"$enablestring" = xdisable; then
8659 defaultval=yes
8660 else
8661 defaultval=no
8662 fi
8663 fi
8664
8665 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8666 $as_echo_n "checking for --${enablestring:-enable}-help... " >&6; }
8667 # Check whether --enable-help was given.
8668 if test "${enable_help+set}" = set; then
8669 enableval=$enable_help;
8670 if test "$enableval" = yes; then
8671 wx_cv_use_help='wxUSE_HELP=yes'
8672 else
8673 wx_cv_use_help='wxUSE_HELP=no'
8674 fi
8675
8676 else
8677
8678 wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8679
8680 fi
8681
8682
8683 eval "$wx_cv_use_help"
8684
8685 if test x"$enablestring" = xdisable; then
8686 if test $wxUSE_HELP = yes; then
8687 result=no
8688 else
8689 result=yes
8690 fi
8691 else
8692 result=$wxUSE_HELP
8693 fi
8694
8695 { $as_echo "$as_me:$LINENO: result: $result" >&5
8696 $as_echo "$result" >&6; }
8697
8698
8699 enablestring=
8700 defaultval=$wxUSE_ALL_FEATURES
8701 if test -z "$defaultval"; then
8702 if test x"$enablestring" = xdisable; then
8703 defaultval=yes
8704 else
8705 defaultval=no
8706 fi
8707 fi
8708
8709 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8710 $as_echo_n "checking for --${enablestring:-enable}-mshtmlhelp... " >&6; }
8711 # Check whether --enable-mshtmlhelp was given.
8712 if test "${enable_mshtmlhelp+set}" = set; then
8713 enableval=$enable_mshtmlhelp;
8714 if test "$enableval" = yes; then
8715 wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8716 else
8717 wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8718 fi
8719
8720 else
8721
8722 wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8723
8724 fi
8725
8726
8727 eval "$wx_cv_use_mshtmlhelp"
8728
8729 if test x"$enablestring" = xdisable; then
8730 if test $wxUSE_MS_HTML_HELP = yes; then
8731 result=no
8732 else
8733 result=yes
8734 fi
8735 else
8736 result=$wxUSE_MS_HTML_HELP
8737 fi
8738
8739 { $as_echo "$as_me:$LINENO: result: $result" >&5
8740 $as_echo "$result" >&6; }
8741
8742
8743 enablestring=
8744 defaultval=$wxUSE_ALL_FEATURES
8745 if test -z "$defaultval"; then
8746 if test x"$enablestring" = xdisable; then
8747 defaultval=yes
8748 else
8749 defaultval=no
8750 fi
8751 fi
8752
8753 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8754 $as_echo_n "checking for --${enablestring:-enable}-html... " >&6; }
8755 # Check whether --enable-html was given.
8756 if test "${enable_html+set}" = set; then
8757 enableval=$enable_html;
8758 if test "$enableval" = yes; then
8759 wx_cv_use_html='wxUSE_HTML=yes'
8760 else
8761 wx_cv_use_html='wxUSE_HTML=no'
8762 fi
8763
8764 else
8765
8766 wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8767
8768 fi
8769
8770
8771 eval "$wx_cv_use_html"
8772
8773 if test x"$enablestring" = xdisable; then
8774 if test $wxUSE_HTML = yes; then
8775 result=no
8776 else
8777 result=yes
8778 fi
8779 else
8780 result=$wxUSE_HTML
8781 fi
8782
8783 { $as_echo "$as_me:$LINENO: result: $result" >&5
8784 $as_echo "$result" >&6; }
8785
8786
8787 enablestring=
8788 defaultval=$wxUSE_ALL_FEATURES
8789 if test -z "$defaultval"; then
8790 if test x"$enablestring" = xdisable; then
8791 defaultval=yes
8792 else
8793 defaultval=no
8794 fi
8795 fi
8796
8797 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8798 $as_echo_n "checking for --${enablestring:-enable}-htmlhelp... " >&6; }
8799 # Check whether --enable-htmlhelp was given.
8800 if test "${enable_htmlhelp+set}" = set; then
8801 enableval=$enable_htmlhelp;
8802 if test "$enableval" = yes; then
8803 wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8804 else
8805 wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8806 fi
8807
8808 else
8809
8810 wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8811
8812 fi
8813
8814
8815 eval "$wx_cv_use_htmlhelp"
8816
8817 if test x"$enablestring" = xdisable; then
8818 if test $wxUSE_WXHTML_HELP = yes; then
8819 result=no
8820 else
8821 result=yes
8822 fi
8823 else
8824 result=$wxUSE_WXHTML_HELP
8825 fi
8826
8827 { $as_echo "$as_me:$LINENO: result: $result" >&5
8828 $as_echo "$result" >&6; }
8829
8830
8831 enablestring=
8832 defaultval=$wxUSE_ALL_FEATURES
8833 if test -z "$defaultval"; then
8834 if test x"$enablestring" = xdisable; then
8835 defaultval=yes
8836 else
8837 defaultval=no
8838 fi
8839 fi
8840
8841 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8842 $as_echo_n "checking for --${enablestring:-enable}-xrc... " >&6; }
8843 # Check whether --enable-xrc was given.
8844 if test "${enable_xrc+set}" = set; then
8845 enableval=$enable_xrc;
8846 if test "$enableval" = yes; then
8847 wx_cv_use_xrc='wxUSE_XRC=yes'
8848 else
8849 wx_cv_use_xrc='wxUSE_XRC=no'
8850 fi
8851
8852 else
8853
8854 wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8855
8856 fi
8857
8858
8859 eval "$wx_cv_use_xrc"
8860
8861 if test x"$enablestring" = xdisable; then
8862 if test $wxUSE_XRC = yes; then
8863 result=no
8864 else
8865 result=yes
8866 fi
8867 else
8868 result=$wxUSE_XRC
8869 fi
8870
8871 { $as_echo "$as_me:$LINENO: result: $result" >&5
8872 $as_echo "$result" >&6; }
8873
8874
8875 enablestring=
8876 defaultval=$wxUSE_ALL_FEATURES
8877 if test -z "$defaultval"; then
8878 if test x"$enablestring" = xdisable; then
8879 defaultval=yes
8880 else
8881 defaultval=no
8882 fi
8883 fi
8884
8885 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8886 $as_echo_n "checking for --${enablestring:-enable}-aui... " >&6; }
8887 # Check whether --enable-aui was given.
8888 if test "${enable_aui+set}" = set; then
8889 enableval=$enable_aui;
8890 if test "$enableval" = yes; then
8891 wx_cv_use_aui='wxUSE_AUI=yes'
8892 else
8893 wx_cv_use_aui='wxUSE_AUI=no'
8894 fi
8895
8896 else
8897
8898 wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8899
8900 fi
8901
8902
8903 eval "$wx_cv_use_aui"
8904
8905 if test x"$enablestring" = xdisable; then
8906 if test $wxUSE_AUI = yes; then
8907 result=no
8908 else
8909 result=yes
8910 fi
8911 else
8912 result=$wxUSE_AUI
8913 fi
8914
8915 { $as_echo "$as_me:$LINENO: result: $result" >&5
8916 $as_echo "$result" >&6; }
8917
8918
8919 enablestring=
8920 defaultval=$wxUSE_ALL_FEATURES
8921 if test -z "$defaultval"; then
8922 if test x"$enablestring" = xdisable; then
8923 defaultval=yes
8924 else
8925 defaultval=no
8926 fi
8927 fi
8928
8929 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8930 $as_echo_n "checking for --${enablestring:-enable}-propgrid... " >&6; }
8931 # Check whether --enable-propgrid was given.
8932 if test "${enable_propgrid+set}" = set; then
8933 enableval=$enable_propgrid;
8934 if test "$enableval" = yes; then
8935 wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8936 else
8937 wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8938 fi
8939
8940 else
8941
8942 wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8943
8944 fi
8945
8946
8947 eval "$wx_cv_use_propgrid"
8948
8949 if test x"$enablestring" = xdisable; then
8950 if test $wxUSE_PROPGRID = yes; then
8951 result=no
8952 else
8953 result=yes
8954 fi
8955 else
8956 result=$wxUSE_PROPGRID
8957 fi
8958
8959 { $as_echo "$as_me:$LINENO: result: $result" >&5
8960 $as_echo "$result" >&6; }
8961
8962
8963 enablestring=
8964 defaultval=$wxUSE_ALL_FEATURES
8965 if test -z "$defaultval"; then
8966 if test x"$enablestring" = xdisable; then
8967 defaultval=yes
8968 else
8969 defaultval=no
8970 fi
8971 fi
8972
8973 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8974 $as_echo_n "checking for --${enablestring:-enable}-stc... " >&6; }
8975 # Check whether --enable-stc was given.
8976 if test "${enable_stc+set}" = set; then
8977 enableval=$enable_stc;
8978 if test "$enableval" = yes; then
8979 wx_cv_use_stc='wxUSE_STC=yes'
8980 else
8981 wx_cv_use_stc='wxUSE_STC=no'
8982 fi
8983
8984 else
8985
8986 wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8987
8988 fi
8989
8990
8991 eval "$wx_cv_use_stc"
8992
8993 if test x"$enablestring" = xdisable; then
8994 if test $wxUSE_STC = yes; then
8995 result=no
8996 else
8997 result=yes
8998 fi
8999 else
9000 result=$wxUSE_STC
9001 fi
9002
9003 { $as_echo "$as_me:$LINENO: result: $result" >&5
9004 $as_echo "$result" >&6; }
9005
9006
9007 enablestring=
9008 defaultval=$wxUSE_ALL_FEATURES
9009 if test -z "$defaultval"; then
9010 if test x"$enablestring" = xdisable; then
9011 defaultval=yes
9012 else
9013 defaultval=no
9014 fi
9015 fi
9016
9017 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9018 $as_echo_n "checking for --${enablestring:-enable}-constraints... " >&6; }
9019 # Check whether --enable-constraints was given.
9020 if test "${enable_constraints+set}" = set; then
9021 enableval=$enable_constraints;
9022 if test "$enableval" = yes; then
9023 wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9024 else
9025 wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9026 fi
9027
9028 else
9029
9030 wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9031
9032 fi
9033
9034
9035 eval "$wx_cv_use_constraints"
9036
9037 if test x"$enablestring" = xdisable; then
9038 if test $wxUSE_CONSTRAINTS = yes; then
9039 result=no
9040 else
9041 result=yes
9042 fi
9043 else
9044 result=$wxUSE_CONSTRAINTS
9045 fi
9046
9047 { $as_echo "$as_me:$LINENO: result: $result" >&5
9048 $as_echo "$result" >&6; }
9049
9050
9051 enablestring=
9052 defaultval=$wxUSE_ALL_FEATURES
9053 if test -z "$defaultval"; then
9054 if test x"$enablestring" = xdisable; then
9055 defaultval=yes
9056 else
9057 defaultval=no
9058 fi
9059 fi
9060
9061 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9062 $as_echo_n "checking for --${enablestring:-enable}-loggui... " >&6; }
9063 # Check whether --enable-loggui was given.
9064 if test "${enable_loggui+set}" = set; then
9065 enableval=$enable_loggui;
9066 if test "$enableval" = yes; then
9067 wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9068 else
9069 wx_cv_use_loggui='wxUSE_LOGGUI=no'
9070 fi
9071
9072 else
9073
9074 wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9075
9076 fi
9077
9078
9079 eval "$wx_cv_use_loggui"
9080
9081 if test x"$enablestring" = xdisable; then
9082 if test $wxUSE_LOGGUI = yes; then
9083 result=no
9084 else
9085 result=yes
9086 fi
9087 else
9088 result=$wxUSE_LOGGUI
9089 fi
9090
9091 { $as_echo "$as_me:$LINENO: result: $result" >&5
9092 $as_echo "$result" >&6; }
9093
9094
9095 enablestring=
9096 defaultval=$wxUSE_ALL_FEATURES
9097 if test -z "$defaultval"; then
9098 if test x"$enablestring" = xdisable; then
9099 defaultval=yes
9100 else
9101 defaultval=no
9102 fi
9103 fi
9104
9105 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9106 $as_echo_n "checking for --${enablestring:-enable}-logwin... " >&6; }
9107 # Check whether --enable-logwin was given.
9108 if test "${enable_logwin+set}" = set; then
9109 enableval=$enable_logwin;
9110 if test "$enableval" = yes; then
9111 wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9112 else
9113 wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9114 fi
9115
9116 else
9117
9118 wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9119
9120 fi
9121
9122
9123 eval "$wx_cv_use_logwin"
9124
9125 if test x"$enablestring" = xdisable; then
9126 if test $wxUSE_LOGWINDOW = yes; then
9127 result=no
9128 else
9129 result=yes
9130 fi
9131 else
9132 result=$wxUSE_LOGWINDOW
9133 fi
9134
9135 { $as_echo "$as_me:$LINENO: result: $result" >&5
9136 $as_echo "$result" >&6; }
9137
9138
9139 enablestring=
9140 defaultval=$wxUSE_ALL_FEATURES
9141 if test -z "$defaultval"; then
9142 if test x"$enablestring" = xdisable; then
9143 defaultval=yes
9144 else
9145 defaultval=no
9146 fi
9147 fi
9148
9149 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9150 $as_echo_n "checking for --${enablestring:-enable}-logdialog... " >&6; }
9151 # Check whether --enable-logdialog was given.
9152 if test "${enable_logdialog+set}" = set; then
9153 enableval=$enable_logdialog;
9154 if test "$enableval" = yes; then
9155 wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9156 else
9157 wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9158 fi
9159
9160 else
9161
9162 wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9163
9164 fi
9165
9166
9167 eval "$wx_cv_use_logdialog"
9168
9169 if test x"$enablestring" = xdisable; then
9170 if test $wxUSE_LOGDIALOG = yes; then
9171 result=no
9172 else
9173 result=yes
9174 fi
9175 else
9176 result=$wxUSE_LOGDIALOG
9177 fi
9178
9179 { $as_echo "$as_me:$LINENO: result: $result" >&5
9180 $as_echo "$result" >&6; }
9181
9182
9183 enablestring=
9184 defaultval=$wxUSE_ALL_FEATURES
9185 if test -z "$defaultval"; then
9186 if test x"$enablestring" = xdisable; then
9187 defaultval=yes
9188 else
9189 defaultval=no
9190 fi
9191 fi
9192
9193 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9194 $as_echo_n "checking for --${enablestring:-enable}-mdi... " >&6; }
9195 # Check whether --enable-mdi was given.
9196 if test "${enable_mdi+set}" = set; then
9197 enableval=$enable_mdi;
9198 if test "$enableval" = yes; then
9199 wx_cv_use_mdi='wxUSE_MDI=yes'
9200 else
9201 wx_cv_use_mdi='wxUSE_MDI=no'
9202 fi
9203
9204 else
9205
9206 wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9207
9208 fi
9209
9210
9211 eval "$wx_cv_use_mdi"
9212
9213 if test x"$enablestring" = xdisable; then
9214 if test $wxUSE_MDI = yes; then
9215 result=no
9216 else
9217 result=yes
9218 fi
9219 else
9220 result=$wxUSE_MDI
9221 fi
9222
9223 { $as_echo "$as_me:$LINENO: result: $result" >&5
9224 $as_echo "$result" >&6; }
9225
9226
9227 enablestring=
9228 defaultval=$wxUSE_ALL_FEATURES
9229 if test -z "$defaultval"; then
9230 if test x"$enablestring" = xdisable; then
9231 defaultval=yes
9232 else
9233 defaultval=no
9234 fi
9235 fi
9236
9237 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9238 $as_echo_n "checking for --${enablestring:-enable}-mdidoc... " >&6; }
9239 # Check whether --enable-mdidoc was given.
9240 if test "${enable_mdidoc+set}" = set; then
9241 enableval=$enable_mdidoc;
9242 if test "$enableval" = yes; then
9243 wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9244 else
9245 wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9246 fi
9247
9248 else
9249
9250 wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9251
9252 fi
9253
9254
9255 eval "$wx_cv_use_mdidoc"
9256
9257 if test x"$enablestring" = xdisable; then
9258 if test $wxUSE_MDI_ARCHITECTURE = yes; then
9259 result=no
9260 else
9261 result=yes
9262 fi
9263 else
9264 result=$wxUSE_MDI_ARCHITECTURE
9265 fi
9266
9267 { $as_echo "$as_me:$LINENO: result: $result" >&5
9268 $as_echo "$result" >&6; }
9269
9270
9271 enablestring=
9272 defaultval=$wxUSE_ALL_FEATURES
9273 if test -z "$defaultval"; then
9274 if test x"$enablestring" = xdisable; then
9275 defaultval=yes
9276 else
9277 defaultval=no
9278 fi
9279 fi
9280
9281 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9282 $as_echo_n "checking for --${enablestring:-enable}-mediactrl... " >&6; }
9283 # Check whether --enable-mediactrl was given.
9284 if test "${enable_mediactrl+set}" = set; then
9285 enableval=$enable_mediactrl;
9286 if test "$enableval" = yes; then
9287 wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9288 else
9289 wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9290 fi
9291
9292 else
9293
9294 wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9295
9296 fi
9297
9298
9299 eval "$wx_cv_use_mediactrl"
9300
9301 if test x"$enablestring" = xdisable; then
9302 if test $wxUSE_MEDIACTRL = yes; then
9303 result=no
9304 else
9305 result=yes
9306 fi
9307 else
9308 result=$wxUSE_MEDIACTRL
9309 fi
9310
9311 { $as_echo "$as_me:$LINENO: result: $result" >&5
9312 $as_echo "$result" >&6; }
9313
9314
9315 enablestring=
9316 defaultval=$wxUSE_ALL_FEATURES
9317 if test -z "$defaultval"; then
9318 if test x"$enablestring" = xdisable; then
9319 defaultval=yes
9320 else
9321 defaultval=no
9322 fi
9323 fi
9324
9325 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9326 $as_echo_n "checking for --${enablestring:-enable}-gstreamer8... " >&6; }
9327 # Check whether --enable-gstreamer8 was given.
9328 if test "${enable_gstreamer8+set}" = set; then
9329 enableval=$enable_gstreamer8;
9330 if test "$enableval" = yes; then
9331 wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9332 else
9333 wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9334 fi
9335
9336 else
9337
9338 wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9339
9340 fi
9341
9342
9343 eval "$wx_cv_use_gstreamer8"
9344
9345 if test x"$enablestring" = xdisable; then
9346 if test $wxUSE_GSTREAMER8 = yes; then
9347 result=no
9348 else
9349 result=yes
9350 fi
9351 else
9352 result=$wxUSE_GSTREAMER8
9353 fi
9354
9355 { $as_echo "$as_me:$LINENO: result: $result" >&5
9356 $as_echo "$result" >&6; }
9357
9358
9359 enablestring=
9360 defaultval=$wxUSE_ALL_FEATURES
9361 if test -z "$defaultval"; then
9362 if test x"$enablestring" = xdisable; then
9363 defaultval=yes
9364 else
9365 defaultval=no
9366 fi
9367 fi
9368
9369 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9370 $as_echo_n "checking for --${enablestring:-enable}-webkit... " >&6; }
9371 # Check whether --enable-webkit was given.
9372 if test "${enable_webkit+set}" = set; then
9373 enableval=$enable_webkit;
9374 if test "$enableval" = yes; then
9375 wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9376 else
9377 wx_cv_use_webkit='wxUSE_WEBKIT=no'
9378 fi
9379
9380 else
9381
9382 wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9383
9384 fi
9385
9386
9387 eval "$wx_cv_use_webkit"
9388
9389 if test x"$enablestring" = xdisable; then
9390 if test $wxUSE_WEBKIT = yes; then
9391 result=no
9392 else
9393 result=yes
9394 fi
9395 else
9396 result=$wxUSE_WEBKIT
9397 fi
9398
9399 { $as_echo "$as_me:$LINENO: result: $result" >&5
9400 $as_echo "$result" >&6; }
9401
9402
9403 enablestring=
9404 defaultval=$wxUSE_ALL_FEATURES
9405 if test -z "$defaultval"; then
9406 if test x"$enablestring" = xdisable; then
9407 defaultval=yes
9408 else
9409 defaultval=no
9410 fi
9411 fi
9412
9413 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9414 $as_echo_n "checking for --${enablestring:-enable}-richtext... " >&6; }
9415 # Check whether --enable-richtext was given.
9416 if test "${enable_richtext+set}" = set; then
9417 enableval=$enable_richtext;
9418 if test "$enableval" = yes; then
9419 wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9420 else
9421 wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9422 fi
9423
9424 else
9425
9426 wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9427
9428 fi
9429
9430
9431 eval "$wx_cv_use_richtext"
9432
9433 if test x"$enablestring" = xdisable; then
9434 if test $wxUSE_RICHTEXT = yes; then
9435 result=no
9436 else
9437 result=yes
9438 fi
9439 else
9440 result=$wxUSE_RICHTEXT
9441 fi
9442
9443 { $as_echo "$as_me:$LINENO: result: $result" >&5
9444 $as_echo "$result" >&6; }
9445
9446
9447 enablestring=
9448 defaultval=$wxUSE_ALL_FEATURES
9449 if test -z "$defaultval"; then
9450 if test x"$enablestring" = xdisable; then
9451 defaultval=yes
9452 else
9453 defaultval=no
9454 fi
9455 fi
9456
9457 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9458 $as_echo_n "checking for --${enablestring:-enable}-graphics_ctx... " >&6; }
9459 # Check whether --enable-graphics_ctx was given.
9460 if test "${enable_graphics_ctx+set}" = set; then
9461 enableval=$enable_graphics_ctx;
9462 if test "$enableval" = yes; then
9463 wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9464 else
9465 wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9466 fi
9467
9468 else
9469
9470 wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9471
9472 fi
9473
9474
9475 eval "$wx_cv_use_graphics_ctx"
9476
9477 if test x"$enablestring" = xdisable; then
9478 if test $wxUSE_GRAPHICS_CONTEXT = yes; then
9479 result=no
9480 else
9481 result=yes
9482 fi
9483 else
9484 result=$wxUSE_GRAPHICS_CONTEXT
9485 fi
9486
9487 { $as_echo "$as_me:$LINENO: result: $result" >&5
9488 $as_echo "$result" >&6; }
9489
9490
9491 enablestring=
9492 defaultval=$wxUSE_ALL_FEATURES
9493 if test -z "$defaultval"; then
9494 if test x"$enablestring" = xdisable; then
9495 defaultval=yes
9496 else
9497 defaultval=no
9498 fi
9499 fi
9500
9501 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9502 $as_echo_n "checking for --${enablestring:-enable}-postscript... " >&6; }
9503 # Check whether --enable-postscript was given.
9504 if test "${enable_postscript+set}" = set; then
9505 enableval=$enable_postscript;
9506 if test "$enableval" = yes; then
9507 wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9508 else
9509 wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9510 fi
9511
9512 else
9513
9514 wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9515
9516 fi
9517
9518
9519 eval "$wx_cv_use_postscript"
9520
9521 if test x"$enablestring" = xdisable; then
9522 if test $wxUSE_POSTSCRIPT = yes; then
9523 result=no
9524 else
9525 result=yes
9526 fi
9527 else
9528 result=$wxUSE_POSTSCRIPT
9529 fi
9530
9531 { $as_echo "$as_me:$LINENO: result: $result" >&5
9532 $as_echo "$result" >&6; }
9533
9534
9535 enablestring=
9536 defaultval=$wxUSE_ALL_FEATURES
9537 if test -z "$defaultval"; then
9538 if test x"$enablestring" = xdisable; then
9539 defaultval=yes
9540 else
9541 defaultval=no
9542 fi
9543 fi
9544
9545 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9546 $as_echo_n "checking for --${enablestring:-enable}-printarch... " >&6; }
9547 # Check whether --enable-printarch was given.
9548 if test "${enable_printarch+set}" = set; then
9549 enableval=$enable_printarch;
9550 if test "$enableval" = yes; then
9551 wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9552 else
9553 wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9554 fi
9555
9556 else
9557
9558 wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9559
9560 fi
9561
9562
9563 eval "$wx_cv_use_printarch"
9564
9565 if test x"$enablestring" = xdisable; then
9566 if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9567 result=no
9568 else
9569 result=yes
9570 fi
9571 else
9572 result=$wxUSE_PRINTING_ARCHITECTURE
9573 fi
9574
9575 { $as_echo "$as_me:$LINENO: result: $result" >&5
9576 $as_echo "$result" >&6; }
9577
9578
9579 enablestring=
9580 defaultval=$wxUSE_ALL_FEATURES
9581 if test -z "$defaultval"; then
9582 if test x"$enablestring" = xdisable; then
9583 defaultval=yes
9584 else
9585 defaultval=no
9586 fi
9587 fi
9588
9589 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9590 $as_echo_n "checking for --${enablestring:-enable}-svg... " >&6; }
9591 # Check whether --enable-svg was given.
9592 if test "${enable_svg+set}" = set; then
9593 enableval=$enable_svg;
9594 if test "$enableval" = yes; then
9595 wx_cv_use_svg='wxUSE_SVG=yes'
9596 else
9597 wx_cv_use_svg='wxUSE_SVG=no'
9598 fi
9599
9600 else
9601
9602 wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9603
9604 fi
9605
9606
9607 eval "$wx_cv_use_svg"
9608
9609 if test x"$enablestring" = xdisable; then
9610 if test $wxUSE_SVG = yes; then
9611 result=no
9612 else
9613 result=yes
9614 fi
9615 else
9616 result=$wxUSE_SVG
9617 fi
9618
9619 { $as_echo "$as_me:$LINENO: result: $result" >&5
9620 $as_echo "$result" >&6; }
9621
9622
9623
9624
9625 enablestring=
9626 defaultval=$wxUSE_ALL_FEATURES
9627 if test -z "$defaultval"; then
9628 if test x"$enablestring" = xdisable; then
9629 defaultval=yes
9630 else
9631 defaultval=no
9632 fi
9633 fi
9634
9635 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9636 $as_echo_n "checking for --${enablestring:-enable}-clipboard... " >&6; }
9637 # Check whether --enable-clipboard was given.
9638 if test "${enable_clipboard+set}" = set; then
9639 enableval=$enable_clipboard;
9640 if test "$enableval" = yes; then
9641 wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9642 else
9643 wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9644 fi
9645
9646 else
9647
9648 wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9649
9650 fi
9651
9652
9653 eval "$wx_cv_use_clipboard"
9654
9655 if test x"$enablestring" = xdisable; then
9656 if test $wxUSE_CLIPBOARD = yes; then
9657 result=no
9658 else
9659 result=yes
9660 fi
9661 else
9662 result=$wxUSE_CLIPBOARD
9663 fi
9664
9665 { $as_echo "$as_me:$LINENO: result: $result" >&5
9666 $as_echo "$result" >&6; }
9667
9668
9669 enablestring=
9670 defaultval=$wxUSE_ALL_FEATURES
9671 if test -z "$defaultval"; then
9672 if test x"$enablestring" = xdisable; then
9673 defaultval=yes
9674 else
9675 defaultval=no
9676 fi
9677 fi
9678
9679 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9680 $as_echo_n "checking for --${enablestring:-enable}-dnd... " >&6; }
9681 # Check whether --enable-dnd was given.
9682 if test "${enable_dnd+set}" = set; then
9683 enableval=$enable_dnd;
9684 if test "$enableval" = yes; then
9685 wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9686 else
9687 wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9688 fi
9689
9690 else
9691
9692 wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9693
9694 fi
9695
9696
9697 eval "$wx_cv_use_dnd"
9698
9699 if test x"$enablestring" = xdisable; then
9700 if test $wxUSE_DRAG_AND_DROP = yes; then
9701 result=no
9702 else
9703 result=yes
9704 fi
9705 else
9706 result=$wxUSE_DRAG_AND_DROP
9707 fi
9708
9709 { $as_echo "$as_me:$LINENO: result: $result" >&5
9710 $as_echo "$result" >&6; }
9711
9712
9713 enablestring=
9714 defaultval=$wxUSE_ALL_FEATURES
9715 if test -z "$defaultval"; then
9716 if test x"$enablestring" = xdisable; then
9717 defaultval=yes
9718 else
9719 defaultval=no
9720 fi
9721 fi
9722
9723 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9724 $as_echo_n "checking for --${enablestring:-enable}-metafile... " >&6; }
9725 # Check whether --enable-metafile was given.
9726 if test "${enable_metafile+set}" = set; then
9727 enableval=$enable_metafile;
9728 if test "$enableval" = yes; then
9729 wx_cv_use_metafile='wxUSE_METAFILE=yes'
9730 else
9731 wx_cv_use_metafile='wxUSE_METAFILE=no'
9732 fi
9733
9734 else
9735
9736 wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9737
9738 fi
9739
9740
9741 eval "$wx_cv_use_metafile"
9742
9743 if test x"$enablestring" = xdisable; then
9744 if test $wxUSE_METAFILE = yes; then
9745 result=no
9746 else
9747 result=yes
9748 fi
9749 else
9750 result=$wxUSE_METAFILE
9751 fi
9752
9753 { $as_echo "$as_me:$LINENO: result: $result" >&5
9754 $as_echo "$result" >&6; }
9755
9756
9757
9758 DEFAULT_wxUSE_CONTROLS=none
9759
9760 enablestring=disable
9761 defaultval=
9762 if test -z "$defaultval"; then
9763 if test x"$enablestring" = xdisable; then
9764 defaultval=yes
9765 else
9766 defaultval=no
9767 fi
9768 fi
9769
9770 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9771 $as_echo_n "checking for --${enablestring:-enable}-controls... " >&6; }
9772 # Check whether --enable-controls was given.
9773 if test "${enable_controls+set}" = set; then
9774 enableval=$enable_controls;
9775 if test "$enableval" = yes; then
9776 wx_cv_use_controls='wxUSE_CONTROLS=yes'
9777 else
9778 wx_cv_use_controls='wxUSE_CONTROLS=no'
9779 fi
9780
9781 else
9782
9783 wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9784
9785 fi
9786
9787
9788 eval "$wx_cv_use_controls"
9789
9790 if test x"$enablestring" = xdisable; then
9791 if test $wxUSE_CONTROLS = yes; then
9792 result=no
9793 else
9794 result=yes
9795 fi
9796 else
9797 result=$wxUSE_CONTROLS
9798 fi
9799
9800 { $as_echo "$as_me:$LINENO: result: $result" >&5
9801 $as_echo "$result" >&6; }
9802
9803
9804 if test "$wxUSE_CONTROLS" = "no"; then
9805 DEFAULT_wxUSE_ACCEL=no
9806 DEFAULT_wxUSE_ANIMATIONCTRL=no
9807 DEFAULT_wxUSE_BMPBUTTON=no
9808 DEFAULT_wxUSE_BUTTON=no
9809 DEFAULT_wxUSE_CALCTRL=no
9810 DEFAULT_wxUSE_CARET=no
9811 DEFAULT_wxUSE_CHECKBOX=no
9812 DEFAULT_wxUSE_CHECKLISTBOX=no
9813 DEFAULT_wxUSE_CHOICE=no
9814 DEFAULT_wxUSE_CHOICEBOOK=no
9815 DEFAULT_wxUSE_COLLPANE=no
9816 DEFAULT_wxUSE_COLOURPICKERCTRL=no
9817 DEFAULT_wxUSE_COMBOBOX=no
9818 DEFAULT_wxUSE_COMBOBOX=no
9819 DEFAULT_wxUSE_DATAVIEWCTRL=no
9820 DEFAULT_wxUSE_DATEPICKCTRL=no
9821 DEFAULT_wxUSE_DETECT_SM=no
9822 DEFAULT_wxUSE_DIRPICKERCTRL=no
9823 DEFAULT_wxUSE_DISPLAY=no
9824 DEFAULT_wxUSE_FILECTRL=no
9825 DEFAULT_wxUSE_FILEPICKERCTRL=no
9826 DEFAULT_wxUSE_FONTPICKERCTRL=no
9827 DEFAULT_wxUSE_GAUGE=no
9828 DEFAULT_wxUSE_GRID=no
9829 DEFAULT_wxUSE_HEADERCTRL=no
9830 DEFAULT_wxUSE_HYPERLINKCTRL=no
9831 DEFAULT_wxUSE_IMAGLIST=no
9832 DEFAULT_wxUSE_LISTBOOK=no
9833 DEFAULT_wxUSE_LISTBOX=no
9834 DEFAULT_wxUSE_LISTCTRL=no
9835 DEFAULT_wxUSE_NOTEBOOK=no
9836 DEFAULT_wxUSE_POPUPWIN=no
9837 DEFAULT_wxUSE_RADIOBOX=no
9838 DEFAULT_wxUSE_RADIOBTN=no
9839 DEFAULT_wxUSE_REARRANGECTRL=no
9840 DEFAULT_wxUSE_SASH=no
9841 DEFAULT_wxUSE_SCROLLBAR=no
9842 DEFAULT_wxUSE_SEARCHCTRL=no
9843 DEFAULT_wxUSE_SLIDER=no
9844 DEFAULT_wxUSE_SPINBTN=no
9845 DEFAULT_wxUSE_SPINCTRL=no
9846 DEFAULT_wxUSE_SPLITTER=no
9847 DEFAULT_wxUSE_STATBMP=no
9848 DEFAULT_wxUSE_STATBOX=no
9849 DEFAULT_wxUSE_STATLINE=no
9850 DEFAULT_wxUSE_STATUSBAR=no
9851 DEFAULT_wxUSE_TIPWINDOW=no
9852 DEFAULT_wxUSE_TOGGLEBTN=no
9853 DEFAULT_wxUSE_TOOLBAR=no
9854 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9855 DEFAULT_wxUSE_TOOLBOOK=no
9856 DEFAULT_wxUSE_TOOLTIPS=no
9857 DEFAULT_wxUSE_TREEBOOK=no
9858 DEFAULT_wxUSE_TREECTRL=no
9859 fi
9860
9861
9862 enablestring=
9863 defaultval=$wxUSE_ALL_FEATURES
9864 if test -z "$defaultval"; then
9865 if test x"$enablestring" = xdisable; then
9866 defaultval=yes
9867 else
9868 defaultval=no
9869 fi
9870 fi
9871
9872 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9873 $as_echo_n "checking for --${enablestring:-enable}-accel... " >&6; }
9874 # Check whether --enable-accel was given.
9875 if test "${enable_accel+set}" = set; then
9876 enableval=$enable_accel;
9877 if test "$enableval" = yes; then
9878 wx_cv_use_accel='wxUSE_ACCEL=yes'
9879 else
9880 wx_cv_use_accel='wxUSE_ACCEL=no'
9881 fi
9882
9883 else
9884
9885 wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9886
9887 fi
9888
9889
9890 eval "$wx_cv_use_accel"
9891
9892 if test x"$enablestring" = xdisable; then
9893 if test $wxUSE_ACCEL = yes; then
9894 result=no
9895 else
9896 result=yes
9897 fi
9898 else
9899 result=$wxUSE_ACCEL
9900 fi
9901
9902 { $as_echo "$as_me:$LINENO: result: $result" >&5
9903 $as_echo "$result" >&6; }
9904
9905
9906 enablestring=
9907 defaultval=$wxUSE_ALL_FEATURES
9908 if test -z "$defaultval"; then
9909 if test x"$enablestring" = xdisable; then
9910 defaultval=yes
9911 else
9912 defaultval=no
9913 fi
9914 fi
9915
9916 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9917 $as_echo_n "checking for --${enablestring:-enable}-animatectrl... " >&6; }
9918 # Check whether --enable-animatectrl was given.
9919 if test "${enable_animatectrl+set}" = set; then
9920 enableval=$enable_animatectrl;
9921 if test "$enableval" = yes; then
9922 wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9923 else
9924 wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9925 fi
9926
9927 else
9928
9929 wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9930
9931 fi
9932
9933
9934 eval "$wx_cv_use_animatectrl"
9935
9936 if test x"$enablestring" = xdisable; then
9937 if test $wxUSE_ANIMATIONCTRL = yes; then
9938 result=no
9939 else
9940 result=yes
9941 fi
9942 else
9943 result=$wxUSE_ANIMATIONCTRL
9944 fi
9945
9946 { $as_echo "$as_me:$LINENO: result: $result" >&5
9947 $as_echo "$result" >&6; }
9948
9949
9950 enablestring=
9951 defaultval=$wxUSE_ALL_FEATURES
9952 if test -z "$defaultval"; then
9953 if test x"$enablestring" = xdisable; then
9954 defaultval=yes
9955 else
9956 defaultval=no
9957 fi
9958 fi
9959
9960 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9961 $as_echo_n "checking for --${enablestring:-enable}-bmpbutton... " >&6; }
9962 # Check whether --enable-bmpbutton was given.
9963 if test "${enable_bmpbutton+set}" = set; then
9964 enableval=$enable_bmpbutton;
9965 if test "$enableval" = yes; then
9966 wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9967 else
9968 wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9969 fi
9970
9971 else
9972
9973 wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9974
9975 fi
9976
9977
9978 eval "$wx_cv_use_bmpbutton"
9979
9980 if test x"$enablestring" = xdisable; then
9981 if test $wxUSE_BMPBUTTON = yes; then
9982 result=no
9983 else
9984 result=yes
9985 fi
9986 else
9987 result=$wxUSE_BMPBUTTON
9988 fi
9989
9990 { $as_echo "$as_me:$LINENO: result: $result" >&5
9991 $as_echo "$result" >&6; }
9992
9993
9994 enablestring=
9995 defaultval=$wxUSE_ALL_FEATURES
9996 if test -z "$defaultval"; then
9997 if test x"$enablestring" = xdisable; then
9998 defaultval=yes
9999 else
10000 defaultval=no
10001 fi
10002 fi
10003
10004 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10005 $as_echo_n "checking for --${enablestring:-enable}-bmpcombobox... " >&6; }
10006 # Check whether --enable-bmpcombobox was given.
10007 if test "${enable_bmpcombobox+set}" = set; then
10008 enableval=$enable_bmpcombobox;
10009 if test "$enableval" = yes; then
10010 wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10011 else
10012 wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10013 fi
10014
10015 else
10016
10017 wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10018
10019 fi
10020
10021
10022 eval "$wx_cv_use_bmpcombobox"
10023
10024 if test x"$enablestring" = xdisable; then
10025 if test $wxUSE_BITMAPCOMBOBOX = yes; then
10026 result=no
10027 else
10028 result=yes
10029 fi
10030 else
10031 result=$wxUSE_BITMAPCOMBOBOX
10032 fi
10033
10034 { $as_echo "$as_me:$LINENO: result: $result" >&5
10035 $as_echo "$result" >&6; }
10036
10037
10038 enablestring=
10039 defaultval=$wxUSE_ALL_FEATURES
10040 if test -z "$defaultval"; then
10041 if test x"$enablestring" = xdisable; then
10042 defaultval=yes
10043 else
10044 defaultval=no
10045 fi
10046 fi
10047
10048 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10049 $as_echo_n "checking for --${enablestring:-enable}-button... " >&6; }
10050 # Check whether --enable-button was given.
10051 if test "${enable_button+set}" = set; then
10052 enableval=$enable_button;
10053 if test "$enableval" = yes; then
10054 wx_cv_use_button='wxUSE_BUTTON=yes'
10055 else
10056 wx_cv_use_button='wxUSE_BUTTON=no'
10057 fi
10058
10059 else
10060
10061 wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10062
10063 fi
10064
10065
10066 eval "$wx_cv_use_button"
10067
10068 if test x"$enablestring" = xdisable; then
10069 if test $wxUSE_BUTTON = yes; then
10070 result=no
10071 else
10072 result=yes
10073 fi
10074 else
10075 result=$wxUSE_BUTTON
10076 fi
10077
10078 { $as_echo "$as_me:$LINENO: result: $result" >&5
10079 $as_echo "$result" >&6; }
10080
10081
10082 enablestring=
10083 defaultval=$wxUSE_ALL_FEATURES
10084 if test -z "$defaultval"; then
10085 if test x"$enablestring" = xdisable; then
10086 defaultval=yes
10087 else
10088 defaultval=no
10089 fi
10090 fi
10091
10092 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10093 $as_echo_n "checking for --${enablestring:-enable}-calendar... " >&6; }
10094 # Check whether --enable-calendar was given.
10095 if test "${enable_calendar+set}" = set; then
10096 enableval=$enable_calendar;
10097 if test "$enableval" = yes; then
10098 wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10099 else
10100 wx_cv_use_calendar='wxUSE_CALCTRL=no'
10101 fi
10102
10103 else
10104
10105 wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10106
10107 fi
10108
10109
10110 eval "$wx_cv_use_calendar"
10111
10112 if test x"$enablestring" = xdisable; then
10113 if test $wxUSE_CALCTRL = yes; then
10114 result=no
10115 else
10116 result=yes
10117 fi
10118 else
10119 result=$wxUSE_CALCTRL
10120 fi
10121
10122 { $as_echo "$as_me:$LINENO: result: $result" >&5
10123 $as_echo "$result" >&6; }
10124
10125
10126 enablestring=
10127 defaultval=$wxUSE_ALL_FEATURES
10128 if test -z "$defaultval"; then
10129 if test x"$enablestring" = xdisable; then
10130 defaultval=yes
10131 else
10132 defaultval=no
10133 fi
10134 fi
10135
10136 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10137 $as_echo_n "checking for --${enablestring:-enable}-caret... " >&6; }
10138 # Check whether --enable-caret was given.
10139 if test "${enable_caret+set}" = set; then
10140 enableval=$enable_caret;
10141 if test "$enableval" = yes; then
10142 wx_cv_use_caret='wxUSE_CARET=yes'
10143 else
10144 wx_cv_use_caret='wxUSE_CARET=no'
10145 fi
10146
10147 else
10148
10149 wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10150
10151 fi
10152
10153
10154 eval "$wx_cv_use_caret"
10155
10156 if test x"$enablestring" = xdisable; then
10157 if test $wxUSE_CARET = yes; then
10158 result=no
10159 else
10160 result=yes
10161 fi
10162 else
10163 result=$wxUSE_CARET
10164 fi
10165
10166 { $as_echo "$as_me:$LINENO: result: $result" >&5
10167 $as_echo "$result" >&6; }
10168
10169
10170 enablestring=
10171 defaultval=$wxUSE_ALL_FEATURES
10172 if test -z "$defaultval"; then
10173 if test x"$enablestring" = xdisable; then
10174 defaultval=yes
10175 else
10176 defaultval=no
10177 fi
10178 fi
10179
10180 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10181 $as_echo_n "checking for --${enablestring:-enable}-checkbox... " >&6; }
10182 # Check whether --enable-checkbox was given.
10183 if test "${enable_checkbox+set}" = set; then
10184 enableval=$enable_checkbox;
10185 if test "$enableval" = yes; then
10186 wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10187 else
10188 wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10189 fi
10190
10191 else
10192
10193 wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10194
10195 fi
10196
10197
10198 eval "$wx_cv_use_checkbox"
10199
10200 if test x"$enablestring" = xdisable; then
10201 if test $wxUSE_CHECKBOX = yes; then
10202 result=no
10203 else
10204 result=yes
10205 fi
10206 else
10207 result=$wxUSE_CHECKBOX
10208 fi
10209
10210 { $as_echo "$as_me:$LINENO: result: $result" >&5
10211 $as_echo "$result" >&6; }
10212
10213
10214 enablestring=
10215 defaultval=$wxUSE_ALL_FEATURES
10216 if test -z "$defaultval"; then
10217 if test x"$enablestring" = xdisable; then
10218 defaultval=yes
10219 else
10220 defaultval=no
10221 fi
10222 fi
10223
10224 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10225 $as_echo_n "checking for --${enablestring:-enable}-checklst... " >&6; }
10226 # Check whether --enable-checklst was given.
10227 if test "${enable_checklst+set}" = set; then
10228 enableval=$enable_checklst;
10229 if test "$enableval" = yes; then
10230 wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10231 else
10232 wx_cv_use_checklst='wxUSE_CHECKLST=no'
10233 fi
10234
10235 else
10236
10237 wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10238
10239 fi
10240
10241
10242 eval "$wx_cv_use_checklst"
10243
10244 if test x"$enablestring" = xdisable; then
10245 if test $wxUSE_CHECKLST = yes; then
10246 result=no
10247 else
10248 result=yes
10249 fi
10250 else
10251 result=$wxUSE_CHECKLST
10252 fi
10253
10254 { $as_echo "$as_me:$LINENO: result: $result" >&5
10255 $as_echo "$result" >&6; }
10256
10257
10258 enablestring=
10259 defaultval=$wxUSE_ALL_FEATURES
10260 if test -z "$defaultval"; then
10261 if test x"$enablestring" = xdisable; then
10262 defaultval=yes
10263 else
10264 defaultval=no
10265 fi
10266 fi
10267
10268 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10269 $as_echo_n "checking for --${enablestring:-enable}-choice... " >&6; }
10270 # Check whether --enable-choice was given.
10271 if test "${enable_choice+set}" = set; then
10272 enableval=$enable_choice;
10273 if test "$enableval" = yes; then
10274 wx_cv_use_choice='wxUSE_CHOICE=yes'
10275 else
10276 wx_cv_use_choice='wxUSE_CHOICE=no'
10277 fi
10278
10279 else
10280
10281 wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10282
10283 fi
10284
10285
10286 eval "$wx_cv_use_choice"
10287
10288 if test x"$enablestring" = xdisable; then
10289 if test $wxUSE_CHOICE = yes; then
10290 result=no
10291 else
10292 result=yes
10293 fi
10294 else
10295 result=$wxUSE_CHOICE
10296 fi
10297
10298 { $as_echo "$as_me:$LINENO: result: $result" >&5
10299 $as_echo "$result" >&6; }
10300
10301
10302 enablestring=
10303 defaultval=$wxUSE_ALL_FEATURES
10304 if test -z "$defaultval"; then
10305 if test x"$enablestring" = xdisable; then
10306 defaultval=yes
10307 else
10308 defaultval=no
10309 fi
10310 fi
10311
10312 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10313 $as_echo_n "checking for --${enablestring:-enable}-choicebook... " >&6; }
10314 # Check whether --enable-choicebook was given.
10315 if test "${enable_choicebook+set}" = set; then
10316 enableval=$enable_choicebook;
10317 if test "$enableval" = yes; then
10318 wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10319 else
10320 wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10321 fi
10322
10323 else
10324
10325 wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10326
10327 fi
10328
10329
10330 eval "$wx_cv_use_choicebook"
10331
10332 if test x"$enablestring" = xdisable; then
10333 if test $wxUSE_CHOICEBOOK = yes; then
10334 result=no
10335 else
10336 result=yes
10337 fi
10338 else
10339 result=$wxUSE_CHOICEBOOK
10340 fi
10341
10342 { $as_echo "$as_me:$LINENO: result: $result" >&5
10343 $as_echo "$result" >&6; }
10344
10345
10346 enablestring=
10347 defaultval=$wxUSE_ALL_FEATURES
10348 if test -z "$defaultval"; then
10349 if test x"$enablestring" = xdisable; then
10350 defaultval=yes
10351 else
10352 defaultval=no
10353 fi
10354 fi
10355
10356 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10357 $as_echo_n "checking for --${enablestring:-enable}-collpane... " >&6; }
10358 # Check whether --enable-collpane was given.
10359 if test "${enable_collpane+set}" = set; then
10360 enableval=$enable_collpane;
10361 if test "$enableval" = yes; then
10362 wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10363 else
10364 wx_cv_use_collpane='wxUSE_COLLPANE=no'
10365 fi
10366
10367 else
10368
10369 wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10370
10371 fi
10372
10373
10374 eval "$wx_cv_use_collpane"
10375
10376 if test x"$enablestring" = xdisable; then
10377 if test $wxUSE_COLLPANE = yes; then
10378 result=no
10379 else
10380 result=yes
10381 fi
10382 else
10383 result=$wxUSE_COLLPANE
10384 fi
10385
10386 { $as_echo "$as_me:$LINENO: result: $result" >&5
10387 $as_echo "$result" >&6; }
10388
10389
10390 enablestring=
10391 defaultval=$wxUSE_ALL_FEATURES
10392 if test -z "$defaultval"; then
10393 if test x"$enablestring" = xdisable; then
10394 defaultval=yes
10395 else
10396 defaultval=no
10397 fi
10398 fi
10399
10400 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10401 $as_echo_n "checking for --${enablestring:-enable}-colourpicker... " >&6; }
10402 # Check whether --enable-colourpicker was given.
10403 if test "${enable_colourpicker+set}" = set; then
10404 enableval=$enable_colourpicker;
10405 if test "$enableval" = yes; then
10406 wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10407 else
10408 wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10409 fi
10410
10411 else
10412
10413 wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10414
10415 fi
10416
10417
10418 eval "$wx_cv_use_colourpicker"
10419
10420 if test x"$enablestring" = xdisable; then
10421 if test $wxUSE_COLOURPICKERCTRL = yes; then
10422 result=no
10423 else
10424 result=yes
10425 fi
10426 else
10427 result=$wxUSE_COLOURPICKERCTRL
10428 fi
10429
10430 { $as_echo "$as_me:$LINENO: result: $result" >&5
10431 $as_echo "$result" >&6; }
10432
10433
10434 enablestring=
10435 defaultval=$wxUSE_ALL_FEATURES
10436 if test -z "$defaultval"; then
10437 if test x"$enablestring" = xdisable; then
10438 defaultval=yes
10439 else
10440 defaultval=no
10441 fi
10442 fi
10443
10444 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10445 $as_echo_n "checking for --${enablestring:-enable}-combobox... " >&6; }
10446 # Check whether --enable-combobox was given.
10447 if test "${enable_combobox+set}" = set; then
10448 enableval=$enable_combobox;
10449 if test "$enableval" = yes; then
10450 wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10451 else
10452 wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10453 fi
10454
10455 else
10456
10457 wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10458
10459 fi
10460
10461
10462 eval "$wx_cv_use_combobox"
10463
10464 if test x"$enablestring" = xdisable; then
10465 if test $wxUSE_COMBOBOX = yes; then
10466 result=no
10467 else
10468 result=yes
10469 fi
10470 else
10471 result=$wxUSE_COMBOBOX
10472 fi
10473
10474 { $as_echo "$as_me:$LINENO: result: $result" >&5
10475 $as_echo "$result" >&6; }
10476
10477
10478 enablestring=
10479 defaultval=$wxUSE_ALL_FEATURES
10480 if test -z "$defaultval"; then
10481 if test x"$enablestring" = xdisable; then
10482 defaultval=yes
10483 else
10484 defaultval=no
10485 fi
10486 fi
10487
10488 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10489 $as_echo_n "checking for --${enablestring:-enable}-comboctrl... " >&6; }
10490 # Check whether --enable-comboctrl was given.
10491 if test "${enable_comboctrl+set}" = set; then
10492 enableval=$enable_comboctrl;
10493 if test "$enableval" = yes; then
10494 wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10495 else
10496 wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10497 fi
10498
10499 else
10500
10501 wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10502
10503 fi
10504
10505
10506 eval "$wx_cv_use_comboctrl"
10507
10508 if test x"$enablestring" = xdisable; then
10509 if test $wxUSE_COMBOCTRL = yes; then
10510 result=no
10511 else
10512 result=yes
10513 fi
10514 else
10515 result=$wxUSE_COMBOCTRL
10516 fi
10517
10518 { $as_echo "$as_me:$LINENO: result: $result" >&5
10519 $as_echo "$result" >&6; }
10520
10521
10522 enablestring=
10523 defaultval=$wxUSE_ALL_FEATURES
10524 if test -z "$defaultval"; then
10525 if test x"$enablestring" = xdisable; then
10526 defaultval=yes
10527 else
10528 defaultval=no
10529 fi
10530 fi
10531
10532 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10533 $as_echo_n "checking for --${enablestring:-enable}-dataviewctrl... " >&6; }
10534 # Check whether --enable-dataviewctrl was given.
10535 if test "${enable_dataviewctrl+set}" = set; then
10536 enableval=$enable_dataviewctrl;
10537 if test "$enableval" = yes; then
10538 wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10539 else
10540 wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10541 fi
10542
10543 else
10544
10545 wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10546
10547 fi
10548
10549
10550 eval "$wx_cv_use_dataviewctrl"
10551
10552 if test x"$enablestring" = xdisable; then
10553 if test $wxUSE_DATAVIEWCTRL = yes; then
10554 result=no
10555 else
10556 result=yes
10557 fi
10558 else
10559 result=$wxUSE_DATAVIEWCTRL
10560 fi
10561
10562 { $as_echo "$as_me:$LINENO: result: $result" >&5
10563 $as_echo "$result" >&6; }
10564
10565
10566 enablestring=
10567 defaultval=$wxUSE_ALL_FEATURES
10568 if test -z "$defaultval"; then
10569 if test x"$enablestring" = xdisable; then
10570 defaultval=yes
10571 else
10572 defaultval=no
10573 fi
10574 fi
10575
10576 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10577 $as_echo_n "checking for --${enablestring:-enable}-datepick... " >&6; }
10578 # Check whether --enable-datepick was given.
10579 if test "${enable_datepick+set}" = set; then
10580 enableval=$enable_datepick;
10581 if test "$enableval" = yes; then
10582 wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10583 else
10584 wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10585 fi
10586
10587 else
10588
10589 wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10590
10591 fi
10592
10593
10594 eval "$wx_cv_use_datepick"
10595
10596 if test x"$enablestring" = xdisable; then
10597 if test $wxUSE_DATEPICKCTRL = yes; then
10598 result=no
10599 else
10600 result=yes
10601 fi
10602 else
10603 result=$wxUSE_DATEPICKCTRL
10604 fi
10605
10606 { $as_echo "$as_me:$LINENO: result: $result" >&5
10607 $as_echo "$result" >&6; }
10608
10609
10610 enablestring=
10611 defaultval=$wxUSE_ALL_FEATURES
10612 if test -z "$defaultval"; then
10613 if test x"$enablestring" = xdisable; then
10614 defaultval=yes
10615 else
10616 defaultval=no
10617 fi
10618 fi
10619
10620 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10621 $as_echo_n "checking for --${enablestring:-enable}-detect_sm... " >&6; }
10622 # Check whether --enable-detect_sm was given.
10623 if test "${enable_detect_sm+set}" = set; then
10624 enableval=$enable_detect_sm;
10625 if test "$enableval" = yes; then
10626 wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10627 else
10628 wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10629 fi
10630
10631 else
10632
10633 wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10634
10635 fi
10636
10637
10638 eval "$wx_cv_use_detect_sm"
10639
10640 if test x"$enablestring" = xdisable; then
10641 if test $wxUSE_DETECT_SM = yes; then
10642 result=no
10643 else
10644 result=yes
10645 fi
10646 else
10647 result=$wxUSE_DETECT_SM
10648 fi
10649
10650 { $as_echo "$as_me:$LINENO: result: $result" >&5
10651 $as_echo "$result" >&6; }
10652
10653
10654 enablestring=
10655 defaultval=$wxUSE_ALL_FEATURES
10656 if test -z "$defaultval"; then
10657 if test x"$enablestring" = xdisable; then
10658 defaultval=yes
10659 else
10660 defaultval=no
10661 fi
10662 fi
10663
10664 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10665 $as_echo_n "checking for --${enablestring:-enable}-dirpicker... " >&6; }
10666 # Check whether --enable-dirpicker was given.
10667 if test "${enable_dirpicker+set}" = set; then
10668 enableval=$enable_dirpicker;
10669 if test "$enableval" = yes; then
10670 wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10671 else
10672 wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10673 fi
10674
10675 else
10676
10677 wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10678
10679 fi
10680
10681
10682 eval "$wx_cv_use_dirpicker"
10683
10684 if test x"$enablestring" = xdisable; then
10685 if test $wxUSE_DIRPICKERCTRL = yes; then
10686 result=no
10687 else
10688 result=yes
10689 fi
10690 else
10691 result=$wxUSE_DIRPICKERCTRL
10692 fi
10693
10694 { $as_echo "$as_me:$LINENO: result: $result" >&5
10695 $as_echo "$result" >&6; }
10696
10697
10698 enablestring=
10699 defaultval=$wxUSE_ALL_FEATURES
10700 if test -z "$defaultval"; then
10701 if test x"$enablestring" = xdisable; then
10702 defaultval=yes
10703 else
10704 defaultval=no
10705 fi
10706 fi
10707
10708 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10709 $as_echo_n "checking for --${enablestring:-enable}-display... " >&6; }
10710 # Check whether --enable-display was given.
10711 if test "${enable_display+set}" = set; then
10712 enableval=$enable_display;
10713 if test "$enableval" = yes; then
10714 wx_cv_use_display='wxUSE_DISPLAY=yes'
10715 else
10716 wx_cv_use_display='wxUSE_DISPLAY=no'
10717 fi
10718
10719 else
10720
10721 wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10722
10723 fi
10724
10725
10726 eval "$wx_cv_use_display"
10727
10728 if test x"$enablestring" = xdisable; then
10729 if test $wxUSE_DISPLAY = yes; then
10730 result=no
10731 else
10732 result=yes
10733 fi
10734 else
10735 result=$wxUSE_DISPLAY
10736 fi
10737
10738 { $as_echo "$as_me:$LINENO: result: $result" >&5
10739 $as_echo "$result" >&6; }
10740
10741
10742 enablestring=
10743 defaultval=$wxUSE_ALL_FEATURES
10744 if test -z "$defaultval"; then
10745 if test x"$enablestring" = xdisable; then
10746 defaultval=yes
10747 else
10748 defaultval=no
10749 fi
10750 fi
10751
10752 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10753 $as_echo_n "checking for --${enablestring:-enable}-editablebox... " >&6; }
10754 # Check whether --enable-editablebox was given.
10755 if test "${enable_editablebox+set}" = set; then
10756 enableval=$enable_editablebox;
10757 if test "$enableval" = yes; then
10758 wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10759 else
10760 wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10761 fi
10762
10763 else
10764
10765 wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10766
10767 fi
10768
10769
10770 eval "$wx_cv_use_editablebox"
10771
10772 if test x"$enablestring" = xdisable; then
10773 if test $wxUSE_EDITABLELISTBOX = yes; then
10774 result=no
10775 else
10776 result=yes
10777 fi
10778 else
10779 result=$wxUSE_EDITABLELISTBOX
10780 fi
10781
10782 { $as_echo "$as_me:$LINENO: result: $result" >&5
10783 $as_echo "$result" >&6; }
10784
10785
10786 enablestring=
10787 defaultval=$wxUSE_ALL_FEATURES
10788 if test -z "$defaultval"; then
10789 if test x"$enablestring" = xdisable; then
10790 defaultval=yes
10791 else
10792 defaultval=no
10793 fi
10794 fi
10795
10796 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10797 $as_echo_n "checking for --${enablestring:-enable}-filectrl... " >&6; }
10798 # Check whether --enable-filectrl was given.
10799 if test "${enable_filectrl+set}" = set; then
10800 enableval=$enable_filectrl;
10801 if test "$enableval" = yes; then
10802 wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10803 else
10804 wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10805 fi
10806
10807 else
10808
10809 wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10810
10811 fi
10812
10813
10814 eval "$wx_cv_use_filectrl"
10815
10816 if test x"$enablestring" = xdisable; then
10817 if test $wxUSE_FILECTRL = yes; then
10818 result=no
10819 else
10820 result=yes
10821 fi
10822 else
10823 result=$wxUSE_FILECTRL
10824 fi
10825
10826 { $as_echo "$as_me:$LINENO: result: $result" >&5
10827 $as_echo "$result" >&6; }
10828
10829
10830 enablestring=
10831 defaultval=$wxUSE_ALL_FEATURES
10832 if test -z "$defaultval"; then
10833 if test x"$enablestring" = xdisable; then
10834 defaultval=yes
10835 else
10836 defaultval=no
10837 fi
10838 fi
10839
10840 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10841 $as_echo_n "checking for --${enablestring:-enable}-filepicker... " >&6; }
10842 # Check whether --enable-filepicker was given.
10843 if test "${enable_filepicker+set}" = set; then
10844 enableval=$enable_filepicker;
10845 if test "$enableval" = yes; then
10846 wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10847 else
10848 wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10849 fi
10850
10851 else
10852
10853 wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10854
10855 fi
10856
10857
10858 eval "$wx_cv_use_filepicker"
10859
10860 if test x"$enablestring" = xdisable; then
10861 if test $wxUSE_FILEPICKERCTRL = yes; then
10862 result=no
10863 else
10864 result=yes
10865 fi
10866 else
10867 result=$wxUSE_FILEPICKERCTRL
10868 fi
10869
10870 { $as_echo "$as_me:$LINENO: result: $result" >&5
10871 $as_echo "$result" >&6; }
10872
10873
10874 enablestring=
10875 defaultval=$wxUSE_ALL_FEATURES
10876 if test -z "$defaultval"; then
10877 if test x"$enablestring" = xdisable; then
10878 defaultval=yes
10879 else
10880 defaultval=no
10881 fi
10882 fi
10883
10884 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10885 $as_echo_n "checking for --${enablestring:-enable}-fontpicker... " >&6; }
10886 # Check whether --enable-fontpicker was given.
10887 if test "${enable_fontpicker+set}" = set; then
10888 enableval=$enable_fontpicker;
10889 if test "$enableval" = yes; then
10890 wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10891 else
10892 wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10893 fi
10894
10895 else
10896
10897 wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10898
10899 fi
10900
10901
10902 eval "$wx_cv_use_fontpicker"
10903
10904 if test x"$enablestring" = xdisable; then
10905 if test $wxUSE_FONTPICKERCTRL = yes; then
10906 result=no
10907 else
10908 result=yes
10909 fi
10910 else
10911 result=$wxUSE_FONTPICKERCTRL
10912 fi
10913
10914 { $as_echo "$as_me:$LINENO: result: $result" >&5
10915 $as_echo "$result" >&6; }
10916
10917
10918 enablestring=
10919 defaultval=$wxUSE_ALL_FEATURES
10920 if test -z "$defaultval"; then
10921 if test x"$enablestring" = xdisable; then
10922 defaultval=yes
10923 else
10924 defaultval=no
10925 fi
10926 fi
10927
10928 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10929 $as_echo_n "checking for --${enablestring:-enable}-gauge... " >&6; }
10930 # Check whether --enable-gauge was given.
10931 if test "${enable_gauge+set}" = set; then
10932 enableval=$enable_gauge;
10933 if test "$enableval" = yes; then
10934 wx_cv_use_gauge='wxUSE_GAUGE=yes'
10935 else
10936 wx_cv_use_gauge='wxUSE_GAUGE=no'
10937 fi
10938
10939 else
10940
10941 wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10942
10943 fi
10944
10945
10946 eval "$wx_cv_use_gauge"
10947
10948 if test x"$enablestring" = xdisable; then
10949 if test $wxUSE_GAUGE = yes; then
10950 result=no
10951 else
10952 result=yes
10953 fi
10954 else
10955 result=$wxUSE_GAUGE
10956 fi
10957
10958 { $as_echo "$as_me:$LINENO: result: $result" >&5
10959 $as_echo "$result" >&6; }
10960
10961
10962 enablestring=
10963 defaultval=$wxUSE_ALL_FEATURES
10964 if test -z "$defaultval"; then
10965 if test x"$enablestring" = xdisable; then
10966 defaultval=yes
10967 else
10968 defaultval=no
10969 fi
10970 fi
10971
10972 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10973 $as_echo_n "checking for --${enablestring:-enable}-grid... " >&6; }
10974 # Check whether --enable-grid was given.
10975 if test "${enable_grid+set}" = set; then
10976 enableval=$enable_grid;
10977 if test "$enableval" = yes; then
10978 wx_cv_use_grid='wxUSE_GRID=yes'
10979 else
10980 wx_cv_use_grid='wxUSE_GRID=no'
10981 fi
10982
10983 else
10984
10985 wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10986
10987 fi
10988
10989
10990 eval "$wx_cv_use_grid"
10991
10992 if test x"$enablestring" = xdisable; then
10993 if test $wxUSE_GRID = yes; then
10994 result=no
10995 else
10996 result=yes
10997 fi
10998 else
10999 result=$wxUSE_GRID
11000 fi
11001
11002 { $as_echo "$as_me:$LINENO: result: $result" >&5
11003 $as_echo "$result" >&6; }
11004
11005
11006 enablestring=
11007 defaultval=$wxUSE_ALL_FEATURES
11008 if test -z "$defaultval"; then
11009 if test x"$enablestring" = xdisable; then
11010 defaultval=yes
11011 else
11012 defaultval=no
11013 fi
11014 fi
11015
11016 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
11017 $as_echo_n "checking for --${enablestring:-enable}-headerctrl... " >&6; }
11018 # Check whether --enable-headerctrl was given.
11019 if test "${enable_headerctrl+set}" = set; then
11020 enableval=$enable_headerctrl;
11021 if test "$enableval" = yes; then
11022 wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
11023 else
11024 wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
11025 fi
11026
11027 else
11028
11029 wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
11030
11031 fi
11032
11033
11034 eval "$wx_cv_use_headerctrl"
11035
11036 if test x"$enablestring" = xdisable; then
11037 if test $wxUSE_HEADERCTRL = yes; then
11038 result=no
11039 else
11040 result=yes
11041 fi
11042 else
11043 result=$wxUSE_HEADERCTRL
11044 fi
11045
11046 { $as_echo "$as_me:$LINENO: result: $result" >&5
11047 $as_echo "$result" >&6; }
11048
11049
11050 enablestring=
11051 defaultval=$wxUSE_ALL_FEATURES
11052 if test -z "$defaultval"; then
11053 if test x"$enablestring" = xdisable; then
11054 defaultval=yes
11055 else
11056 defaultval=no
11057 fi
11058 fi
11059
11060 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11061 $as_echo_n "checking for --${enablestring:-enable}-hyperlink... " >&6; }
11062 # Check whether --enable-hyperlink was given.
11063 if test "${enable_hyperlink+set}" = set; then
11064 enableval=$enable_hyperlink;
11065 if test "$enableval" = yes; then
11066 wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11067 else
11068 wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11069 fi
11070
11071 else
11072
11073 wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11074
11075 fi
11076
11077
11078 eval "$wx_cv_use_hyperlink"
11079
11080 if test x"$enablestring" = xdisable; then
11081 if test $wxUSE_HYPERLINKCTRL = yes; then
11082 result=no
11083 else
11084 result=yes
11085 fi
11086 else
11087 result=$wxUSE_HYPERLINKCTRL
11088 fi
11089
11090 { $as_echo "$as_me:$LINENO: result: $result" >&5
11091 $as_echo "$result" >&6; }
11092
11093
11094 enablestring=
11095 defaultval=$wxUSE_ALL_FEATURES
11096 if test -z "$defaultval"; then
11097 if test x"$enablestring" = xdisable; then
11098 defaultval=yes
11099 else
11100 defaultval=no
11101 fi
11102 fi
11103
11104 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11105 $as_echo_n "checking for --${enablestring:-enable}-imaglist... " >&6; }
11106 # Check whether --enable-imaglist was given.
11107 if test "${enable_imaglist+set}" = set; then
11108 enableval=$enable_imaglist;
11109 if test "$enableval" = yes; then
11110 wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11111 else
11112 wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11113 fi
11114
11115 else
11116
11117 wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11118
11119 fi
11120
11121
11122 eval "$wx_cv_use_imaglist"
11123
11124 if test x"$enablestring" = xdisable; then
11125 if test $wxUSE_IMAGLIST = yes; then
11126 result=no
11127 else
11128 result=yes
11129 fi
11130 else
11131 result=$wxUSE_IMAGLIST
11132 fi
11133
11134 { $as_echo "$as_me:$LINENO: result: $result" >&5
11135 $as_echo "$result" >&6; }
11136
11137
11138 enablestring=
11139 defaultval=$wxUSE_ALL_FEATURES
11140 if test -z "$defaultval"; then
11141 if test x"$enablestring" = xdisable; then
11142 defaultval=yes
11143 else
11144 defaultval=no
11145 fi
11146 fi
11147
11148 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11149 $as_echo_n "checking for --${enablestring:-enable}-listbook... " >&6; }
11150 # Check whether --enable-listbook was given.
11151 if test "${enable_listbook+set}" = set; then
11152 enableval=$enable_listbook;
11153 if test "$enableval" = yes; then
11154 wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11155 else
11156 wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11157 fi
11158
11159 else
11160
11161 wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11162
11163 fi
11164
11165
11166 eval "$wx_cv_use_listbook"
11167
11168 if test x"$enablestring" = xdisable; then
11169 if test $wxUSE_LISTBOOK = yes; then
11170 result=no
11171 else
11172 result=yes
11173 fi
11174 else
11175 result=$wxUSE_LISTBOOK
11176 fi
11177
11178 { $as_echo "$as_me:$LINENO: result: $result" >&5
11179 $as_echo "$result" >&6; }
11180
11181
11182 enablestring=
11183 defaultval=$wxUSE_ALL_FEATURES
11184 if test -z "$defaultval"; then
11185 if test x"$enablestring" = xdisable; then
11186 defaultval=yes
11187 else
11188 defaultval=no
11189 fi
11190 fi
11191
11192 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11193 $as_echo_n "checking for --${enablestring:-enable}-listbox... " >&6; }
11194 # Check whether --enable-listbox was given.
11195 if test "${enable_listbox+set}" = set; then
11196 enableval=$enable_listbox;
11197 if test "$enableval" = yes; then
11198 wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11199 else
11200 wx_cv_use_listbox='wxUSE_LISTBOX=no'
11201 fi
11202
11203 else
11204
11205 wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11206
11207 fi
11208
11209
11210 eval "$wx_cv_use_listbox"
11211
11212 if test x"$enablestring" = xdisable; then
11213 if test $wxUSE_LISTBOX = yes; then
11214 result=no
11215 else
11216 result=yes
11217 fi
11218 else
11219 result=$wxUSE_LISTBOX
11220 fi
11221
11222 { $as_echo "$as_me:$LINENO: result: $result" >&5
11223 $as_echo "$result" >&6; }
11224
11225
11226 enablestring=
11227 defaultval=$wxUSE_ALL_FEATURES
11228 if test -z "$defaultval"; then
11229 if test x"$enablestring" = xdisable; then
11230 defaultval=yes
11231 else
11232 defaultval=no
11233 fi
11234 fi
11235
11236 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11237 $as_echo_n "checking for --${enablestring:-enable}-listctrl... " >&6; }
11238 # Check whether --enable-listctrl was given.
11239 if test "${enable_listctrl+set}" = set; then
11240 enableval=$enable_listctrl;
11241 if test "$enableval" = yes; then
11242 wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11243 else
11244 wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11245 fi
11246
11247 else
11248
11249 wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11250
11251 fi
11252
11253
11254 eval "$wx_cv_use_listctrl"
11255
11256 if test x"$enablestring" = xdisable; then
11257 if test $wxUSE_LISTCTRL = yes; then
11258 result=no
11259 else
11260 result=yes
11261 fi
11262 else
11263 result=$wxUSE_LISTCTRL
11264 fi
11265
11266 { $as_echo "$as_me:$LINENO: result: $result" >&5
11267 $as_echo "$result" >&6; }
11268
11269
11270 enablestring=
11271 defaultval=$wxUSE_ALL_FEATURES
11272 if test -z "$defaultval"; then
11273 if test x"$enablestring" = xdisable; then
11274 defaultval=yes
11275 else
11276 defaultval=no
11277 fi
11278 fi
11279
11280 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11281 $as_echo_n "checking for --${enablestring:-enable}-notebook... " >&6; }
11282 # Check whether --enable-notebook was given.
11283 if test "${enable_notebook+set}" = set; then
11284 enableval=$enable_notebook;
11285 if test "$enableval" = yes; then
11286 wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11287 else
11288 wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11289 fi
11290
11291 else
11292
11293 wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11294
11295 fi
11296
11297
11298 eval "$wx_cv_use_notebook"
11299
11300 if test x"$enablestring" = xdisable; then
11301 if test $wxUSE_NOTEBOOK = yes; then
11302 result=no
11303 else
11304 result=yes
11305 fi
11306 else
11307 result=$wxUSE_NOTEBOOK
11308 fi
11309
11310 { $as_echo "$as_me:$LINENO: result: $result" >&5
11311 $as_echo "$result" >&6; }
11312
11313
11314 enablestring=
11315 defaultval=$wxUSE_ALL_FEATURES
11316 if test -z "$defaultval"; then
11317 if test x"$enablestring" = xdisable; then
11318 defaultval=yes
11319 else
11320 defaultval=no
11321 fi
11322 fi
11323
11324 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11325 $as_echo_n "checking for --${enablestring:-enable}-notifmsg... " >&6; }
11326 # Check whether --enable-notifmsg was given.
11327 if test "${enable_notifmsg+set}" = set; then
11328 enableval=$enable_notifmsg;
11329 if test "$enableval" = yes; then
11330 wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11331 else
11332 wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11333 fi
11334
11335 else
11336
11337 wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11338
11339 fi
11340
11341
11342 eval "$wx_cv_use_notifmsg"
11343
11344 if test x"$enablestring" = xdisable; then
11345 if test $wxUSE_NOTIFICATION_MESSAGE = yes; then
11346 result=no
11347 else
11348 result=yes
11349 fi
11350 else
11351 result=$wxUSE_NOTIFICATION_MESSAGE
11352 fi
11353
11354 { $as_echo "$as_me:$LINENO: result: $result" >&5
11355 $as_echo "$result" >&6; }
11356
11357
11358 enablestring=
11359 defaultval=$wxUSE_ALL_FEATURES
11360 if test -z "$defaultval"; then
11361 if test x"$enablestring" = xdisable; then
11362 defaultval=yes
11363 else
11364 defaultval=no
11365 fi
11366 fi
11367
11368 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11369 $as_echo_n "checking for --${enablestring:-enable}-odcombobox... " >&6; }
11370 # Check whether --enable-odcombobox was given.
11371 if test "${enable_odcombobox+set}" = set; then
11372 enableval=$enable_odcombobox;
11373 if test "$enableval" = yes; then
11374 wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11375 else
11376 wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11377 fi
11378
11379 else
11380
11381 wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11382
11383 fi
11384
11385
11386 eval "$wx_cv_use_odcombobox"
11387
11388 if test x"$enablestring" = xdisable; then
11389 if test $wxUSE_ODCOMBOBOX = yes; then
11390 result=no
11391 else
11392 result=yes
11393 fi
11394 else
11395 result=$wxUSE_ODCOMBOBOX
11396 fi
11397
11398 { $as_echo "$as_me:$LINENO: result: $result" >&5
11399 $as_echo "$result" >&6; }
11400
11401
11402 enablestring=
11403 defaultval=$wxUSE_ALL_FEATURES
11404 if test -z "$defaultval"; then
11405 if test x"$enablestring" = xdisable; then
11406 defaultval=yes
11407 else
11408 defaultval=no
11409 fi
11410 fi
11411
11412 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11413 $as_echo_n "checking for --${enablestring:-enable}-popupwin... " >&6; }
11414 # Check whether --enable-popupwin was given.
11415 if test "${enable_popupwin+set}" = set; then
11416 enableval=$enable_popupwin;
11417 if test "$enableval" = yes; then
11418 wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11419 else
11420 wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11421 fi
11422
11423 else
11424
11425 wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11426
11427 fi
11428
11429
11430 eval "$wx_cv_use_popupwin"
11431
11432 if test x"$enablestring" = xdisable; then
11433 if test $wxUSE_POPUPWIN = yes; then
11434 result=no
11435 else
11436 result=yes
11437 fi
11438 else
11439 result=$wxUSE_POPUPWIN
11440 fi
11441
11442 { $as_echo "$as_me:$LINENO: result: $result" >&5
11443 $as_echo "$result" >&6; }
11444
11445
11446 enablestring=
11447 defaultval=$wxUSE_ALL_FEATURES
11448 if test -z "$defaultval"; then
11449 if test x"$enablestring" = xdisable; then
11450 defaultval=yes
11451 else
11452 defaultval=no
11453 fi
11454 fi
11455
11456 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11457 $as_echo_n "checking for --${enablestring:-enable}-radiobox... " >&6; }
11458 # Check whether --enable-radiobox was given.
11459 if test "${enable_radiobox+set}" = set; then
11460 enableval=$enable_radiobox;
11461 if test "$enableval" = yes; then
11462 wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11463 else
11464 wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11465 fi
11466
11467 else
11468
11469 wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11470
11471 fi
11472
11473
11474 eval "$wx_cv_use_radiobox"
11475
11476 if test x"$enablestring" = xdisable; then
11477 if test $wxUSE_RADIOBOX = yes; then
11478 result=no
11479 else
11480 result=yes
11481 fi
11482 else
11483 result=$wxUSE_RADIOBOX
11484 fi
11485
11486 { $as_echo "$as_me:$LINENO: result: $result" >&5
11487 $as_echo "$result" >&6; }
11488
11489
11490 enablestring=
11491 defaultval=$wxUSE_ALL_FEATURES
11492 if test -z "$defaultval"; then
11493 if test x"$enablestring" = xdisable; then
11494 defaultval=yes
11495 else
11496 defaultval=no
11497 fi
11498 fi
11499
11500 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11501 $as_echo_n "checking for --${enablestring:-enable}-radiobtn... " >&6; }
11502 # Check whether --enable-radiobtn was given.
11503 if test "${enable_radiobtn+set}" = set; then
11504 enableval=$enable_radiobtn;
11505 if test "$enableval" = yes; then
11506 wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11507 else
11508 wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11509 fi
11510
11511 else
11512
11513 wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11514
11515 fi
11516
11517
11518 eval "$wx_cv_use_radiobtn"
11519
11520 if test x"$enablestring" = xdisable; then
11521 if test $wxUSE_RADIOBTN = yes; then
11522 result=no
11523 else
11524 result=yes
11525 fi
11526 else
11527 result=$wxUSE_RADIOBTN
11528 fi
11529
11530 { $as_echo "$as_me:$LINENO: result: $result" >&5
11531 $as_echo "$result" >&6; }
11532
11533
11534 enablestring=
11535 defaultval=$wxUSE_ALL_FEATURES
11536 if test -z "$defaultval"; then
11537 if test x"$enablestring" = xdisable; then
11538 defaultval=yes
11539 else
11540 defaultval=no
11541 fi
11542 fi
11543
11544 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11545 $as_echo_n "checking for --${enablestring:-enable}-rearrangectrl... " >&6; }
11546 # Check whether --enable-rearrangectrl was given.
11547 if test "${enable_rearrangectrl+set}" = set; then
11548 enableval=$enable_rearrangectrl;
11549 if test "$enableval" = yes; then
11550 wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11551 else
11552 wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11553 fi
11554
11555 else
11556
11557 wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11558
11559 fi
11560
11561
11562 eval "$wx_cv_use_rearrangectrl"
11563
11564 if test x"$enablestring" = xdisable; then
11565 if test $wxUSE_REARRANGECTRL = yes; then
11566 result=no
11567 else
11568 result=yes
11569 fi
11570 else
11571 result=$wxUSE_REARRANGECTRL
11572 fi
11573
11574 { $as_echo "$as_me:$LINENO: result: $result" >&5
11575 $as_echo "$result" >&6; }
11576
11577
11578 enablestring=
11579 defaultval=$wxUSE_ALL_FEATURES
11580 if test -z "$defaultval"; then
11581 if test x"$enablestring" = xdisable; then
11582 defaultval=yes
11583 else
11584 defaultval=no
11585 fi
11586 fi
11587
11588 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11589 $as_echo_n "checking for --${enablestring:-enable}-sash... " >&6; }
11590 # Check whether --enable-sash was given.
11591 if test "${enable_sash+set}" = set; then
11592 enableval=$enable_sash;
11593 if test "$enableval" = yes; then
11594 wx_cv_use_sash='wxUSE_SASH=yes'
11595 else
11596 wx_cv_use_sash='wxUSE_SASH=no'
11597 fi
11598
11599 else
11600
11601 wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11602
11603 fi
11604
11605
11606 eval "$wx_cv_use_sash"
11607
11608 if test x"$enablestring" = xdisable; then
11609 if test $wxUSE_SASH = yes; then
11610 result=no
11611 else
11612 result=yes
11613 fi
11614 else
11615 result=$wxUSE_SASH
11616 fi
11617
11618 { $as_echo "$as_me:$LINENO: result: $result" >&5
11619 $as_echo "$result" >&6; }
11620
11621
11622 enablestring=
11623 defaultval=$wxUSE_ALL_FEATURES
11624 if test -z "$defaultval"; then
11625 if test x"$enablestring" = xdisable; then
11626 defaultval=yes
11627 else
11628 defaultval=no
11629 fi
11630 fi
11631
11632 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11633 $as_echo_n "checking for --${enablestring:-enable}-scrollbar... " >&6; }
11634 # Check whether --enable-scrollbar was given.
11635 if test "${enable_scrollbar+set}" = set; then
11636 enableval=$enable_scrollbar;
11637 if test "$enableval" = yes; then
11638 wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11639 else
11640 wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11641 fi
11642
11643 else
11644
11645 wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11646
11647 fi
11648
11649
11650 eval "$wx_cv_use_scrollbar"
11651
11652 if test x"$enablestring" = xdisable; then
11653 if test $wxUSE_SCROLLBAR = yes; then
11654 result=no
11655 else
11656 result=yes
11657 fi
11658 else
11659 result=$wxUSE_SCROLLBAR
11660 fi
11661
11662 { $as_echo "$as_me:$LINENO: result: $result" >&5
11663 $as_echo "$result" >&6; }
11664
11665
11666 enablestring=
11667 defaultval=$wxUSE_ALL_FEATURES
11668 if test -z "$defaultval"; then
11669 if test x"$enablestring" = xdisable; then
11670 defaultval=yes
11671 else
11672 defaultval=no
11673 fi
11674 fi
11675
11676 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11677 $as_echo_n "checking for --${enablestring:-enable}-searchctrl... " >&6; }
11678 # Check whether --enable-searchctrl was given.
11679 if test "${enable_searchctrl+set}" = set; then
11680 enableval=$enable_searchctrl;
11681 if test "$enableval" = yes; then
11682 wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11683 else
11684 wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11685 fi
11686
11687 else
11688
11689 wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11690
11691 fi
11692
11693
11694 eval "$wx_cv_use_searchctrl"
11695
11696 if test x"$enablestring" = xdisable; then
11697 if test $wxUSE_SEARCHCTRL = yes; then
11698 result=no
11699 else
11700 result=yes
11701 fi
11702 else
11703 result=$wxUSE_SEARCHCTRL
11704 fi
11705
11706 { $as_echo "$as_me:$LINENO: result: $result" >&5
11707 $as_echo "$result" >&6; }
11708
11709
11710 enablestring=
11711 defaultval=$wxUSE_ALL_FEATURES
11712 if test -z "$defaultval"; then
11713 if test x"$enablestring" = xdisable; then
11714 defaultval=yes
11715 else
11716 defaultval=no
11717 fi
11718 fi
11719
11720 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11721 $as_echo_n "checking for --${enablestring:-enable}-slider... " >&6; }
11722 # Check whether --enable-slider was given.
11723 if test "${enable_slider+set}" = set; then
11724 enableval=$enable_slider;
11725 if test "$enableval" = yes; then
11726 wx_cv_use_slider='wxUSE_SLIDER=yes'
11727 else
11728 wx_cv_use_slider='wxUSE_SLIDER=no'
11729 fi
11730
11731 else
11732
11733 wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11734
11735 fi
11736
11737
11738 eval "$wx_cv_use_slider"
11739
11740 if test x"$enablestring" = xdisable; then
11741 if test $wxUSE_SLIDER = yes; then
11742 result=no
11743 else
11744 result=yes
11745 fi
11746 else
11747 result=$wxUSE_SLIDER
11748 fi
11749
11750 { $as_echo "$as_me:$LINENO: result: $result" >&5
11751 $as_echo "$result" >&6; }
11752
11753
11754 enablestring=
11755 defaultval=$wxUSE_ALL_FEATURES
11756 if test -z "$defaultval"; then
11757 if test x"$enablestring" = xdisable; then
11758 defaultval=yes
11759 else
11760 defaultval=no
11761 fi
11762 fi
11763
11764 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11765 $as_echo_n "checking for --${enablestring:-enable}-spinbtn... " >&6; }
11766 # Check whether --enable-spinbtn was given.
11767 if test "${enable_spinbtn+set}" = set; then
11768 enableval=$enable_spinbtn;
11769 if test "$enableval" = yes; then
11770 wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11771 else
11772 wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11773 fi
11774
11775 else
11776
11777 wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11778
11779 fi
11780
11781
11782 eval "$wx_cv_use_spinbtn"
11783
11784 if test x"$enablestring" = xdisable; then
11785 if test $wxUSE_SPINBTN = yes; then
11786 result=no
11787 else
11788 result=yes
11789 fi
11790 else
11791 result=$wxUSE_SPINBTN
11792 fi
11793
11794 { $as_echo "$as_me:$LINENO: result: $result" >&5
11795 $as_echo "$result" >&6; }
11796
11797
11798 enablestring=
11799 defaultval=$wxUSE_ALL_FEATURES
11800 if test -z "$defaultval"; then
11801 if test x"$enablestring" = xdisable; then
11802 defaultval=yes
11803 else
11804 defaultval=no
11805 fi
11806 fi
11807
11808 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11809 $as_echo_n "checking for --${enablestring:-enable}-spinctrl... " >&6; }
11810 # Check whether --enable-spinctrl was given.
11811 if test "${enable_spinctrl+set}" = set; then
11812 enableval=$enable_spinctrl;
11813 if test "$enableval" = yes; then
11814 wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11815 else
11816 wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11817 fi
11818
11819 else
11820
11821 wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11822
11823 fi
11824
11825
11826 eval "$wx_cv_use_spinctrl"
11827
11828 if test x"$enablestring" = xdisable; then
11829 if test $wxUSE_SPINCTRL = yes; then
11830 result=no
11831 else
11832 result=yes
11833 fi
11834 else
11835 result=$wxUSE_SPINCTRL
11836 fi
11837
11838 { $as_echo "$as_me:$LINENO: result: $result" >&5
11839 $as_echo "$result" >&6; }
11840
11841
11842 enablestring=
11843 defaultval=$wxUSE_ALL_FEATURES
11844 if test -z "$defaultval"; then
11845 if test x"$enablestring" = xdisable; then
11846 defaultval=yes
11847 else
11848 defaultval=no
11849 fi
11850 fi
11851
11852 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11853 $as_echo_n "checking for --${enablestring:-enable}-splitter... " >&6; }
11854 # Check whether --enable-splitter was given.
11855 if test "${enable_splitter+set}" = set; then
11856 enableval=$enable_splitter;
11857 if test "$enableval" = yes; then
11858 wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11859 else
11860 wx_cv_use_splitter='wxUSE_SPLITTER=no'
11861 fi
11862
11863 else
11864
11865 wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11866
11867 fi
11868
11869
11870 eval "$wx_cv_use_splitter"
11871
11872 if test x"$enablestring" = xdisable; then
11873 if test $wxUSE_SPLITTER = yes; then
11874 result=no
11875 else
11876 result=yes
11877 fi
11878 else
11879 result=$wxUSE_SPLITTER
11880 fi
11881
11882 { $as_echo "$as_me:$LINENO: result: $result" >&5
11883 $as_echo "$result" >&6; }
11884
11885
11886 enablestring=
11887 defaultval=$wxUSE_ALL_FEATURES
11888 if test -z "$defaultval"; then
11889 if test x"$enablestring" = xdisable; then
11890 defaultval=yes
11891 else
11892 defaultval=no
11893 fi
11894 fi
11895
11896 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11897 $as_echo_n "checking for --${enablestring:-enable}-statbmp... " >&6; }
11898 # Check whether --enable-statbmp was given.
11899 if test "${enable_statbmp+set}" = set; then
11900 enableval=$enable_statbmp;
11901 if test "$enableval" = yes; then
11902 wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11903 else
11904 wx_cv_use_statbmp='wxUSE_STATBMP=no'
11905 fi
11906
11907 else
11908
11909 wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11910
11911 fi
11912
11913
11914 eval "$wx_cv_use_statbmp"
11915
11916 if test x"$enablestring" = xdisable; then
11917 if test $wxUSE_STATBMP = yes; then
11918 result=no
11919 else
11920 result=yes
11921 fi
11922 else
11923 result=$wxUSE_STATBMP
11924 fi
11925
11926 { $as_echo "$as_me:$LINENO: result: $result" >&5
11927 $as_echo "$result" >&6; }
11928
11929
11930 enablestring=
11931 defaultval=$wxUSE_ALL_FEATURES
11932 if test -z "$defaultval"; then
11933 if test x"$enablestring" = xdisable; then
11934 defaultval=yes
11935 else
11936 defaultval=no
11937 fi
11938 fi
11939
11940 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11941 $as_echo_n "checking for --${enablestring:-enable}-statbox... " >&6; }
11942 # Check whether --enable-statbox was given.
11943 if test "${enable_statbox+set}" = set; then
11944 enableval=$enable_statbox;
11945 if test "$enableval" = yes; then
11946 wx_cv_use_statbox='wxUSE_STATBOX=yes'
11947 else
11948 wx_cv_use_statbox='wxUSE_STATBOX=no'
11949 fi
11950
11951 else
11952
11953 wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11954
11955 fi
11956
11957
11958 eval "$wx_cv_use_statbox"
11959
11960 if test x"$enablestring" = xdisable; then
11961 if test $wxUSE_STATBOX = yes; then
11962 result=no
11963 else
11964 result=yes
11965 fi
11966 else
11967 result=$wxUSE_STATBOX
11968 fi
11969
11970 { $as_echo "$as_me:$LINENO: result: $result" >&5
11971 $as_echo "$result" >&6; }
11972
11973
11974 enablestring=
11975 defaultval=$wxUSE_ALL_FEATURES
11976 if test -z "$defaultval"; then
11977 if test x"$enablestring" = xdisable; then
11978 defaultval=yes
11979 else
11980 defaultval=no
11981 fi
11982 fi
11983
11984 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11985 $as_echo_n "checking for --${enablestring:-enable}-statline... " >&6; }
11986 # Check whether --enable-statline was given.
11987 if test "${enable_statline+set}" = set; then
11988 enableval=$enable_statline;
11989 if test "$enableval" = yes; then
11990 wx_cv_use_statline='wxUSE_STATLINE=yes'
11991 else
11992 wx_cv_use_statline='wxUSE_STATLINE=no'
11993 fi
11994
11995 else
11996
11997 wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11998
11999 fi
12000
12001
12002 eval "$wx_cv_use_statline"
12003
12004 if test x"$enablestring" = xdisable; then
12005 if test $wxUSE_STATLINE = yes; then
12006 result=no
12007 else
12008 result=yes
12009 fi
12010 else
12011 result=$wxUSE_STATLINE
12012 fi
12013
12014 { $as_echo "$as_me:$LINENO: result: $result" >&5
12015 $as_echo "$result" >&6; }
12016
12017
12018 enablestring=
12019 defaultval=$wxUSE_ALL_FEATURES
12020 if test -z "$defaultval"; then
12021 if test x"$enablestring" = xdisable; then
12022 defaultval=yes
12023 else
12024 defaultval=no
12025 fi
12026 fi
12027
12028 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12029 $as_echo_n "checking for --${enablestring:-enable}-stattext... " >&6; }
12030 # Check whether --enable-stattext was given.
12031 if test "${enable_stattext+set}" = set; then
12032 enableval=$enable_stattext;
12033 if test "$enableval" = yes; then
12034 wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12035 else
12036 wx_cv_use_stattext='wxUSE_STATTEXT=no'
12037 fi
12038
12039 else
12040
12041 wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12042
12043 fi
12044
12045
12046 eval "$wx_cv_use_stattext"
12047
12048 if test x"$enablestring" = xdisable; then
12049 if test $wxUSE_STATTEXT = yes; then
12050 result=no
12051 else
12052 result=yes
12053 fi
12054 else
12055 result=$wxUSE_STATTEXT
12056 fi
12057
12058 { $as_echo "$as_me:$LINENO: result: $result" >&5
12059 $as_echo "$result" >&6; }
12060
12061
12062 enablestring=
12063 defaultval=$wxUSE_ALL_FEATURES
12064 if test -z "$defaultval"; then
12065 if test x"$enablestring" = xdisable; then
12066 defaultval=yes
12067 else
12068 defaultval=no
12069 fi
12070 fi
12071
12072 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12073 $as_echo_n "checking for --${enablestring:-enable}-statusbar... " >&6; }
12074 # Check whether --enable-statusbar was given.
12075 if test "${enable_statusbar+set}" = set; then
12076 enableval=$enable_statusbar;
12077 if test "$enableval" = yes; then
12078 wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12079 else
12080 wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12081 fi
12082
12083 else
12084
12085 wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12086
12087 fi
12088
12089
12090 eval "$wx_cv_use_statusbar"
12091
12092 if test x"$enablestring" = xdisable; then
12093 if test $wxUSE_STATUSBAR = yes; then
12094 result=no
12095 else
12096 result=yes
12097 fi
12098 else
12099 result=$wxUSE_STATUSBAR
12100 fi
12101
12102 { $as_echo "$as_me:$LINENO: result: $result" >&5
12103 $as_echo "$result" >&6; }
12104
12105
12106 enablestring=
12107 defaultval=$wxUSE_ALL_FEATURES
12108 if test -z "$defaultval"; then
12109 if test x"$enablestring" = xdisable; then
12110 defaultval=yes
12111 else
12112 defaultval=no
12113 fi
12114 fi
12115
12116 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12117 $as_echo_n "checking for --${enablestring:-enable}-taskbaricon... " >&6; }
12118 # Check whether --enable-taskbaricon was given.
12119 if test "${enable_taskbaricon+set}" = set; then
12120 enableval=$enable_taskbaricon;
12121 if test "$enableval" = yes; then
12122 wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12123 else
12124 wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12125 fi
12126
12127 else
12128
12129 wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12130
12131 fi
12132
12133
12134 eval "$wx_cv_use_taskbaricon"
12135
12136 if test x"$enablestring" = xdisable; then
12137 if test $wxUSE_TASKBARICON = yes; then
12138 result=no
12139 else
12140 result=yes
12141 fi
12142 else
12143 result=$wxUSE_TASKBARICON
12144 fi
12145
12146 { $as_echo "$as_me:$LINENO: result: $result" >&5
12147 $as_echo "$result" >&6; }
12148
12149
12150 enablestring=
12151 defaultval=$wxUSE_ALL_FEATURES
12152 if test -z "$defaultval"; then
12153 if test x"$enablestring" = xdisable; then
12154 defaultval=yes
12155 else
12156 defaultval=no
12157 fi
12158 fi
12159
12160 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12161 $as_echo_n "checking for --${enablestring:-enable}-tbarnative... " >&6; }
12162 # Check whether --enable-tbarnative was given.
12163 if test "${enable_tbarnative+set}" = set; then
12164 enableval=$enable_tbarnative;
12165 if test "$enableval" = yes; then
12166 wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12167 else
12168 wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12169 fi
12170
12171 else
12172
12173 wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12174
12175 fi
12176
12177
12178 eval "$wx_cv_use_tbarnative"
12179
12180 if test x"$enablestring" = xdisable; then
12181 if test $wxUSE_TOOLBAR_NATIVE = yes; then
12182 result=no
12183 else
12184 result=yes
12185 fi
12186 else
12187 result=$wxUSE_TOOLBAR_NATIVE
12188 fi
12189
12190 { $as_echo "$as_me:$LINENO: result: $result" >&5
12191 $as_echo "$result" >&6; }
12192
12193
12194 enablestring=
12195 defaultval=$wxUSE_ALL_FEATURES
12196 if test -z "$defaultval"; then
12197 if test x"$enablestring" = xdisable; then
12198 defaultval=yes
12199 else
12200 defaultval=no
12201 fi
12202 fi
12203
12204 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12205 $as_echo_n "checking for --${enablestring:-enable}-textctrl... " >&6; }
12206 # Check whether --enable-textctrl was given.
12207 if test "${enable_textctrl+set}" = set; then
12208 enableval=$enable_textctrl;
12209 if test "$enableval" = yes; then
12210 wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12211 else
12212 wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12213 fi
12214
12215 else
12216
12217 wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12218
12219 fi
12220
12221
12222 eval "$wx_cv_use_textctrl"
12223
12224 if test x"$enablestring" = xdisable; then
12225 if test $wxUSE_TEXTCTRL = yes; then
12226 result=no
12227 else
12228 result=yes
12229 fi
12230 else
12231 result=$wxUSE_TEXTCTRL
12232 fi
12233
12234 { $as_echo "$as_me:$LINENO: result: $result" >&5
12235 $as_echo "$result" >&6; }
12236
12237
12238 enablestring=
12239 defaultval=$wxUSE_ALL_FEATURES
12240 if test -z "$defaultval"; then
12241 if test x"$enablestring" = xdisable; then
12242 defaultval=yes
12243 else
12244 defaultval=no
12245 fi
12246 fi
12247
12248 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12249 $as_echo_n "checking for --${enablestring:-enable}-tipwindow... " >&6; }
12250 # Check whether --enable-tipwindow was given.
12251 if test "${enable_tipwindow+set}" = set; then
12252 enableval=$enable_tipwindow;
12253 if test "$enableval" = yes; then
12254 wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12255 else
12256 wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12257 fi
12258
12259 else
12260
12261 wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12262
12263 fi
12264
12265
12266 eval "$wx_cv_use_tipwindow"
12267
12268 if test x"$enablestring" = xdisable; then
12269 if test $wxUSE_TIPWINDOW = yes; then
12270 result=no
12271 else
12272 result=yes
12273 fi
12274 else
12275 result=$wxUSE_TIPWINDOW
12276 fi
12277
12278 { $as_echo "$as_me:$LINENO: result: $result" >&5
12279 $as_echo "$result" >&6; }
12280
12281
12282 enablestring=
12283 defaultval=$wxUSE_ALL_FEATURES
12284 if test -z "$defaultval"; then
12285 if test x"$enablestring" = xdisable; then
12286 defaultval=yes
12287 else
12288 defaultval=no
12289 fi
12290 fi
12291
12292 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12293 $as_echo_n "checking for --${enablestring:-enable}-togglebtn... " >&6; }
12294 # Check whether --enable-togglebtn was given.
12295 if test "${enable_togglebtn+set}" = set; then
12296 enableval=$enable_togglebtn;
12297 if test "$enableval" = yes; then
12298 wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12299 else
12300 wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12301 fi
12302
12303 else
12304
12305 wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12306
12307 fi
12308
12309
12310 eval "$wx_cv_use_togglebtn"
12311
12312 if test x"$enablestring" = xdisable; then
12313 if test $wxUSE_TOGGLEBTN = yes; then
12314 result=no
12315 else
12316 result=yes
12317 fi
12318 else
12319 result=$wxUSE_TOGGLEBTN
12320 fi
12321
12322 { $as_echo "$as_me:$LINENO: result: $result" >&5
12323 $as_echo "$result" >&6; }
12324
12325
12326 enablestring=
12327 defaultval=$wxUSE_ALL_FEATURES
12328 if test -z "$defaultval"; then
12329 if test x"$enablestring" = xdisable; then
12330 defaultval=yes
12331 else
12332 defaultval=no
12333 fi
12334 fi
12335
12336 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12337 $as_echo_n "checking for --${enablestring:-enable}-toolbar... " >&6; }
12338 # Check whether --enable-toolbar was given.
12339 if test "${enable_toolbar+set}" = set; then
12340 enableval=$enable_toolbar;
12341 if test "$enableval" = yes; then
12342 wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12343 else
12344 wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12345 fi
12346
12347 else
12348
12349 wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12350
12351 fi
12352
12353
12354 eval "$wx_cv_use_toolbar"
12355
12356 if test x"$enablestring" = xdisable; then
12357 if test $wxUSE_TOOLBAR = yes; then
12358 result=no
12359 else
12360 result=yes
12361 fi
12362 else
12363 result=$wxUSE_TOOLBAR
12364 fi
12365
12366 { $as_echo "$as_me:$LINENO: result: $result" >&5
12367 $as_echo "$result" >&6; }
12368
12369
12370 enablestring=
12371 defaultval=$wxUSE_ALL_FEATURES
12372 if test -z "$defaultval"; then
12373 if test x"$enablestring" = xdisable; then
12374 defaultval=yes
12375 else
12376 defaultval=no
12377 fi
12378 fi
12379
12380 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12381 $as_echo_n "checking for --${enablestring:-enable}-toolbook... " >&6; }
12382 # Check whether --enable-toolbook was given.
12383 if test "${enable_toolbook+set}" = set; then
12384 enableval=$enable_toolbook;
12385 if test "$enableval" = yes; then
12386 wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12387 else
12388 wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12389 fi
12390
12391 else
12392
12393 wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12394
12395 fi
12396
12397
12398 eval "$wx_cv_use_toolbook"
12399
12400 if test x"$enablestring" = xdisable; then
12401 if test $wxUSE_TOOLBOOK = yes; then
12402 result=no
12403 else
12404 result=yes
12405 fi
12406 else
12407 result=$wxUSE_TOOLBOOK
12408 fi
12409
12410 { $as_echo "$as_me:$LINENO: result: $result" >&5
12411 $as_echo "$result" >&6; }
12412
12413
12414 enablestring=
12415 defaultval=$wxUSE_ALL_FEATURES
12416 if test -z "$defaultval"; then
12417 if test x"$enablestring" = xdisable; then
12418 defaultval=yes
12419 else
12420 defaultval=no
12421 fi
12422 fi
12423
12424 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12425 $as_echo_n "checking for --${enablestring:-enable}-treebook... " >&6; }
12426 # Check whether --enable-treebook was given.
12427 if test "${enable_treebook+set}" = set; then
12428 enableval=$enable_treebook;
12429 if test "$enableval" = yes; then
12430 wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12431 else
12432 wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12433 fi
12434
12435 else
12436
12437 wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12438
12439 fi
12440
12441
12442 eval "$wx_cv_use_treebook"
12443
12444 if test x"$enablestring" = xdisable; then
12445 if test $wxUSE_TREEBOOK = yes; then
12446 result=no
12447 else
12448 result=yes
12449 fi
12450 else
12451 result=$wxUSE_TREEBOOK
12452 fi
12453
12454 { $as_echo "$as_me:$LINENO: result: $result" >&5
12455 $as_echo "$result" >&6; }
12456
12457
12458 enablestring=
12459 defaultval=$wxUSE_ALL_FEATURES
12460 if test -z "$defaultval"; then
12461 if test x"$enablestring" = xdisable; then
12462 defaultval=yes
12463 else
12464 defaultval=no
12465 fi
12466 fi
12467
12468 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12469 $as_echo_n "checking for --${enablestring:-enable}-treectrl... " >&6; }
12470 # Check whether --enable-treectrl was given.
12471 if test "${enable_treectrl+set}" = set; then
12472 enableval=$enable_treectrl;
12473 if test "$enableval" = yes; then
12474 wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12475 else
12476 wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12477 fi
12478
12479 else
12480
12481 wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12482
12483 fi
12484
12485
12486 eval "$wx_cv_use_treectrl"
12487
12488 if test x"$enablestring" = xdisable; then
12489 if test $wxUSE_TREECTRL = yes; then
12490 result=no
12491 else
12492 result=yes
12493 fi
12494 else
12495 result=$wxUSE_TREECTRL
12496 fi
12497
12498 { $as_echo "$as_me:$LINENO: result: $result" >&5
12499 $as_echo "$result" >&6; }
12500
12501
12502
12503
12504 enablestring=
12505 defaultval=$wxUSE_ALL_FEATURES
12506 if test -z "$defaultval"; then
12507 if test x"$enablestring" = xdisable; then
12508 defaultval=yes
12509 else
12510 defaultval=no
12511 fi
12512 fi
12513
12514 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12515 $as_echo_n "checking for --${enablestring:-enable}-commondlg... " >&6; }
12516 # Check whether --enable-commondlg was given.
12517 if test "${enable_commondlg+set}" = set; then
12518 enableval=$enable_commondlg;
12519 if test "$enableval" = yes; then
12520 wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12521 else
12522 wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12523 fi
12524
12525 else
12526
12527 wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12528
12529 fi
12530
12531
12532 eval "$wx_cv_use_commondlg"
12533
12534 if test x"$enablestring" = xdisable; then
12535 if test $wxUSE_COMMONDLGS = yes; then
12536 result=no
12537 else
12538 result=yes
12539 fi
12540 else
12541 result=$wxUSE_COMMONDLGS
12542 fi
12543
12544 { $as_echo "$as_me:$LINENO: result: $result" >&5
12545 $as_echo "$result" >&6; }
12546
12547
12548 enablestring=
12549 defaultval=$wxUSE_ALL_FEATURES
12550 if test -z "$defaultval"; then
12551 if test x"$enablestring" = xdisable; then
12552 defaultval=yes
12553 else
12554 defaultval=no
12555 fi
12556 fi
12557
12558 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12559 $as_echo_n "checking for --${enablestring:-enable}-aboutdlg... " >&6; }
12560 # Check whether --enable-aboutdlg was given.
12561 if test "${enable_aboutdlg+set}" = set; then
12562 enableval=$enable_aboutdlg;
12563 if test "$enableval" = yes; then
12564 wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12565 else
12566 wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12567 fi
12568
12569 else
12570
12571 wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12572
12573 fi
12574
12575
12576 eval "$wx_cv_use_aboutdlg"
12577
12578 if test x"$enablestring" = xdisable; then
12579 if test $wxUSE_ABOUTDLG = yes; then
12580 result=no
12581 else
12582 result=yes
12583 fi
12584 else
12585 result=$wxUSE_ABOUTDLG
12586 fi
12587
12588 { $as_echo "$as_me:$LINENO: result: $result" >&5
12589 $as_echo "$result" >&6; }
12590
12591
12592 enablestring=
12593 defaultval=$wxUSE_ALL_FEATURES
12594 if test -z "$defaultval"; then
12595 if test x"$enablestring" = xdisable; then
12596 defaultval=yes
12597 else
12598 defaultval=no
12599 fi
12600 fi
12601
12602 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12603 $as_echo_n "checking for --${enablestring:-enable}-choicedlg... " >&6; }
12604 # Check whether --enable-choicedlg was given.
12605 if test "${enable_choicedlg+set}" = set; then
12606 enableval=$enable_choicedlg;
12607 if test "$enableval" = yes; then
12608 wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12609 else
12610 wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12611 fi
12612
12613 else
12614
12615 wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12616
12617 fi
12618
12619
12620 eval "$wx_cv_use_choicedlg"
12621
12622 if test x"$enablestring" = xdisable; then
12623 if test $wxUSE_CHOICEDLG = yes; then
12624 result=no
12625 else
12626 result=yes
12627 fi
12628 else
12629 result=$wxUSE_CHOICEDLG
12630 fi
12631
12632 { $as_echo "$as_me:$LINENO: result: $result" >&5
12633 $as_echo "$result" >&6; }
12634
12635
12636 enablestring=
12637 defaultval=$wxUSE_ALL_FEATURES
12638 if test -z "$defaultval"; then
12639 if test x"$enablestring" = xdisable; then
12640 defaultval=yes
12641 else
12642 defaultval=no
12643 fi
12644 fi
12645
12646 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12647 $as_echo_n "checking for --${enablestring:-enable}-coldlg... " >&6; }
12648 # Check whether --enable-coldlg was given.
12649 if test "${enable_coldlg+set}" = set; then
12650 enableval=$enable_coldlg;
12651 if test "$enableval" = yes; then
12652 wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12653 else
12654 wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12655 fi
12656
12657 else
12658
12659 wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12660
12661 fi
12662
12663
12664 eval "$wx_cv_use_coldlg"
12665
12666 if test x"$enablestring" = xdisable; then
12667 if test $wxUSE_COLOURDLG = yes; then
12668 result=no
12669 else
12670 result=yes
12671 fi
12672 else
12673 result=$wxUSE_COLOURDLG
12674 fi
12675
12676 { $as_echo "$as_me:$LINENO: result: $result" >&5
12677 $as_echo "$result" >&6; }
12678
12679
12680 enablestring=
12681 defaultval=$wxUSE_ALL_FEATURES
12682 if test -z "$defaultval"; then
12683 if test x"$enablestring" = xdisable; then
12684 defaultval=yes
12685 else
12686 defaultval=no
12687 fi
12688 fi
12689
12690 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12691 $as_echo_n "checking for --${enablestring:-enable}-filedlg... " >&6; }
12692 # Check whether --enable-filedlg was given.
12693 if test "${enable_filedlg+set}" = set; then
12694 enableval=$enable_filedlg;
12695 if test "$enableval" = yes; then
12696 wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12697 else
12698 wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12699 fi
12700
12701 else
12702
12703 wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12704
12705 fi
12706
12707
12708 eval "$wx_cv_use_filedlg"
12709
12710 if test x"$enablestring" = xdisable; then
12711 if test $wxUSE_FILEDLG = yes; then
12712 result=no
12713 else
12714 result=yes
12715 fi
12716 else
12717 result=$wxUSE_FILEDLG
12718 fi
12719
12720 { $as_echo "$as_me:$LINENO: result: $result" >&5
12721 $as_echo "$result" >&6; }
12722
12723
12724 enablestring=
12725 defaultval=$wxUSE_ALL_FEATURES
12726 if test -z "$defaultval"; then
12727 if test x"$enablestring" = xdisable; then
12728 defaultval=yes
12729 else
12730 defaultval=no
12731 fi
12732 fi
12733
12734 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12735 $as_echo_n "checking for --${enablestring:-enable}-finddlg... " >&6; }
12736 # Check whether --enable-finddlg was given.
12737 if test "${enable_finddlg+set}" = set; then
12738 enableval=$enable_finddlg;
12739 if test "$enableval" = yes; then
12740 wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12741 else
12742 wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12743 fi
12744
12745 else
12746
12747 wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12748
12749 fi
12750
12751
12752 eval "$wx_cv_use_finddlg"
12753
12754 if test x"$enablestring" = xdisable; then
12755 if test $wxUSE_FINDREPLDLG = yes; then
12756 result=no
12757 else
12758 result=yes
12759 fi
12760 else
12761 result=$wxUSE_FINDREPLDLG
12762 fi
12763
12764 { $as_echo "$as_me:$LINENO: result: $result" >&5
12765 $as_echo "$result" >&6; }
12766
12767
12768 enablestring=
12769 defaultval=$wxUSE_ALL_FEATURES
12770 if test -z "$defaultval"; then
12771 if test x"$enablestring" = xdisable; then
12772 defaultval=yes
12773 else
12774 defaultval=no
12775 fi
12776 fi
12777
12778 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12779 $as_echo_n "checking for --${enablestring:-enable}-fontdlg... " >&6; }
12780 # Check whether --enable-fontdlg was given.
12781 if test "${enable_fontdlg+set}" = set; then
12782 enableval=$enable_fontdlg;
12783 if test "$enableval" = yes; then
12784 wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12785 else
12786 wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12787 fi
12788
12789 else
12790
12791 wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12792
12793 fi
12794
12795
12796 eval "$wx_cv_use_fontdlg"
12797
12798 if test x"$enablestring" = xdisable; then
12799 if test $wxUSE_FONTDLG = yes; then
12800 result=no
12801 else
12802 result=yes
12803 fi
12804 else
12805 result=$wxUSE_FONTDLG
12806 fi
12807
12808 { $as_echo "$as_me:$LINENO: result: $result" >&5
12809 $as_echo "$result" >&6; }
12810
12811
12812 enablestring=
12813 defaultval=$wxUSE_ALL_FEATURES
12814 if test -z "$defaultval"; then
12815 if test x"$enablestring" = xdisable; then
12816 defaultval=yes
12817 else
12818 defaultval=no
12819 fi
12820 fi
12821
12822 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12823 $as_echo_n "checking for --${enablestring:-enable}-dirdlg... " >&6; }
12824 # Check whether --enable-dirdlg was given.
12825 if test "${enable_dirdlg+set}" = set; then
12826 enableval=$enable_dirdlg;
12827 if test "$enableval" = yes; then
12828 wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12829 else
12830 wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12831 fi
12832
12833 else
12834
12835 wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12836
12837 fi
12838
12839
12840 eval "$wx_cv_use_dirdlg"
12841
12842 if test x"$enablestring" = xdisable; then
12843 if test $wxUSE_DIRDLG = yes; then
12844 result=no
12845 else
12846 result=yes
12847 fi
12848 else
12849 result=$wxUSE_DIRDLG
12850 fi
12851
12852 { $as_echo "$as_me:$LINENO: result: $result" >&5
12853 $as_echo "$result" >&6; }
12854
12855
12856 enablestring=
12857 defaultval=$wxUSE_ALL_FEATURES
12858 if test -z "$defaultval"; then
12859 if test x"$enablestring" = xdisable; then
12860 defaultval=yes
12861 else
12862 defaultval=no
12863 fi
12864 fi
12865
12866 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12867 $as_echo_n "checking for --${enablestring:-enable}-msgdlg... " >&6; }
12868 # Check whether --enable-msgdlg was given.
12869 if test "${enable_msgdlg+set}" = set; then
12870 enableval=$enable_msgdlg;
12871 if test "$enableval" = yes; then
12872 wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12873 else
12874 wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12875 fi
12876
12877 else
12878
12879 wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12880
12881 fi
12882
12883
12884 eval "$wx_cv_use_msgdlg"
12885
12886 if test x"$enablestring" = xdisable; then
12887 if test $wxUSE_MSGDLG = yes; then
12888 result=no
12889 else
12890 result=yes
12891 fi
12892 else
12893 result=$wxUSE_MSGDLG
12894 fi
12895
12896 { $as_echo "$as_me:$LINENO: result: $result" >&5
12897 $as_echo "$result" >&6; }
12898
12899
12900 enablestring=
12901 defaultval=$wxUSE_ALL_FEATURES
12902 if test -z "$defaultval"; then
12903 if test x"$enablestring" = xdisable; then
12904 defaultval=yes
12905 else
12906 defaultval=no
12907 fi
12908 fi
12909
12910 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12911 $as_echo_n "checking for --${enablestring:-enable}-numberdlg... " >&6; }
12912 # Check whether --enable-numberdlg was given.
12913 if test "${enable_numberdlg+set}" = set; then
12914 enableval=$enable_numberdlg;
12915 if test "$enableval" = yes; then
12916 wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12917 else
12918 wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12919 fi
12920
12921 else
12922
12923 wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12924
12925 fi
12926
12927
12928 eval "$wx_cv_use_numberdlg"
12929
12930 if test x"$enablestring" = xdisable; then
12931 if test $wxUSE_NUMBERDLG = yes; then
12932 result=no
12933 else
12934 result=yes
12935 fi
12936 else
12937 result=$wxUSE_NUMBERDLG
12938 fi
12939
12940 { $as_echo "$as_me:$LINENO: result: $result" >&5
12941 $as_echo "$result" >&6; }
12942
12943
12944 enablestring=
12945 defaultval=$wxUSE_ALL_FEATURES
12946 if test -z "$defaultval"; then
12947 if test x"$enablestring" = xdisable; then
12948 defaultval=yes
12949 else
12950 defaultval=no
12951 fi
12952 fi
12953
12954 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12955 $as_echo_n "checking for --${enablestring:-enable}-splash... " >&6; }
12956 # Check whether --enable-splash was given.
12957 if test "${enable_splash+set}" = set; then
12958 enableval=$enable_splash;
12959 if test "$enableval" = yes; then
12960 wx_cv_use_splash='wxUSE_SPLASH=yes'
12961 else
12962 wx_cv_use_splash='wxUSE_SPLASH=no'
12963 fi
12964
12965 else
12966
12967 wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12968
12969 fi
12970
12971
12972 eval "$wx_cv_use_splash"
12973
12974 if test x"$enablestring" = xdisable; then
12975 if test $wxUSE_SPLASH = yes; then
12976 result=no
12977 else
12978 result=yes
12979 fi
12980 else
12981 result=$wxUSE_SPLASH
12982 fi
12983
12984 { $as_echo "$as_me:$LINENO: result: $result" >&5
12985 $as_echo "$result" >&6; }
12986
12987
12988 enablestring=
12989 defaultval=$wxUSE_ALL_FEATURES
12990 if test -z "$defaultval"; then
12991 if test x"$enablestring" = xdisable; then
12992 defaultval=yes
12993 else
12994 defaultval=no
12995 fi
12996 fi
12997
12998 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12999 $as_echo_n "checking for --${enablestring:-enable}-textdlg... " >&6; }
13000 # Check whether --enable-textdlg was given.
13001 if test "${enable_textdlg+set}" = set; then
13002 enableval=$enable_textdlg;
13003 if test "$enableval" = yes; then
13004 wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13005 else
13006 wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
13007 fi
13008
13009 else
13010
13011 wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13012
13013 fi
13014
13015
13016 eval "$wx_cv_use_textdlg"
13017
13018 if test x"$enablestring" = xdisable; then
13019 if test $wxUSE_TEXTDLG = yes; then
13020 result=no
13021 else
13022 result=yes
13023 fi
13024 else
13025 result=$wxUSE_TEXTDLG
13026 fi
13027
13028 { $as_echo "$as_me:$LINENO: result: $result" >&5
13029 $as_echo "$result" >&6; }
13030
13031
13032 enablestring=
13033 defaultval=$wxUSE_ALL_FEATURES
13034 if test -z "$defaultval"; then
13035 if test x"$enablestring" = xdisable; then
13036 defaultval=yes
13037 else
13038 defaultval=no
13039 fi
13040 fi
13041
13042 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13043 $as_echo_n "checking for --${enablestring:-enable}-tipdlg... " >&6; }
13044 # Check whether --enable-tipdlg was given.
13045 if test "${enable_tipdlg+set}" = set; then
13046 enableval=$enable_tipdlg;
13047 if test "$enableval" = yes; then
13048 wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13049 else
13050 wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13051 fi
13052
13053 else
13054
13055 wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13056
13057 fi
13058
13059
13060 eval "$wx_cv_use_tipdlg"
13061
13062 if test x"$enablestring" = xdisable; then
13063 if test $wxUSE_STARTUP_TIPS = yes; then
13064 result=no
13065 else
13066 result=yes
13067 fi
13068 else
13069 result=$wxUSE_STARTUP_TIPS
13070 fi
13071
13072 { $as_echo "$as_me:$LINENO: result: $result" >&5
13073 $as_echo "$result" >&6; }
13074
13075
13076 enablestring=
13077 defaultval=$wxUSE_ALL_FEATURES
13078 if test -z "$defaultval"; then
13079 if test x"$enablestring" = xdisable; then
13080 defaultval=yes
13081 else
13082 defaultval=no
13083 fi
13084 fi
13085
13086 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13087 $as_echo_n "checking for --${enablestring:-enable}-progressdlg... " >&6; }
13088 # Check whether --enable-progressdlg was given.
13089 if test "${enable_progressdlg+set}" = set; then
13090 enableval=$enable_progressdlg;
13091 if test "$enableval" = yes; then
13092 wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13093 else
13094 wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13095 fi
13096
13097 else
13098
13099 wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13100
13101 fi
13102
13103
13104 eval "$wx_cv_use_progressdlg"
13105
13106 if test x"$enablestring" = xdisable; then
13107 if test $wxUSE_PROGRESSDLG = yes; then
13108 result=no
13109 else
13110 result=yes
13111 fi
13112 else
13113 result=$wxUSE_PROGRESSDLG
13114 fi
13115
13116 { $as_echo "$as_me:$LINENO: result: $result" >&5
13117 $as_echo "$result" >&6; }
13118
13119
13120 enablestring=
13121 defaultval=$wxUSE_ALL_FEATURES
13122 if test -z "$defaultval"; then
13123 if test x"$enablestring" = xdisable; then
13124 defaultval=yes
13125 else
13126 defaultval=no
13127 fi
13128 fi
13129
13130 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13131 $as_echo_n "checking for --${enablestring:-enable}-wizarddlg... " >&6; }
13132 # Check whether --enable-wizarddlg was given.
13133 if test "${enable_wizarddlg+set}" = set; then
13134 enableval=$enable_wizarddlg;
13135 if test "$enableval" = yes; then
13136 wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13137 else
13138 wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13139 fi
13140
13141 else
13142
13143 wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13144
13145 fi
13146
13147
13148 eval "$wx_cv_use_wizarddlg"
13149
13150 if test x"$enablestring" = xdisable; then
13151 if test $wxUSE_WIZARDDLG = yes; then
13152 result=no
13153 else
13154 result=yes
13155 fi
13156 else
13157 result=$wxUSE_WIZARDDLG
13158 fi
13159
13160 { $as_echo "$as_me:$LINENO: result: $result" >&5
13161 $as_echo "$result" >&6; }
13162
13163
13164
13165
13166 enablestring=
13167 defaultval=$wxUSE_ALL_FEATURES
13168 if test -z "$defaultval"; then
13169 if test x"$enablestring" = xdisable; then
13170 defaultval=yes
13171 else
13172 defaultval=no
13173 fi
13174 fi
13175
13176 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13177 $as_echo_n "checking for --${enablestring:-enable}-menus... " >&6; }
13178 # Check whether --enable-menus was given.
13179 if test "${enable_menus+set}" = set; then
13180 enableval=$enable_menus;
13181 if test "$enableval" = yes; then
13182 wx_cv_use_menus='wxUSE_MENUS=yes'
13183 else
13184 wx_cv_use_menus='wxUSE_MENUS=no'
13185 fi
13186
13187 else
13188
13189 wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13190
13191 fi
13192
13193
13194 eval "$wx_cv_use_menus"
13195
13196 if test x"$enablestring" = xdisable; then
13197 if test $wxUSE_MENUS = yes; then
13198 result=no
13199 else
13200 result=yes
13201 fi
13202 else
13203 result=$wxUSE_MENUS
13204 fi
13205
13206 { $as_echo "$as_me:$LINENO: result: $result" >&5
13207 $as_echo "$result" >&6; }
13208
13209
13210 enablestring=
13211 defaultval=$wxUSE_ALL_FEATURES
13212 if test -z "$defaultval"; then
13213 if test x"$enablestring" = xdisable; then
13214 defaultval=yes
13215 else
13216 defaultval=no
13217 fi
13218 fi
13219
13220 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13221 $as_echo_n "checking for --${enablestring:-enable}-miniframe... " >&6; }
13222 # Check whether --enable-miniframe was given.
13223 if test "${enable_miniframe+set}" = set; then
13224 enableval=$enable_miniframe;
13225 if test "$enableval" = yes; then
13226 wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13227 else
13228 wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13229 fi
13230
13231 else
13232
13233 wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13234
13235 fi
13236
13237
13238 eval "$wx_cv_use_miniframe"
13239
13240 if test x"$enablestring" = xdisable; then
13241 if test $wxUSE_MINIFRAME = yes; then
13242 result=no
13243 else
13244 result=yes
13245 fi
13246 else
13247 result=$wxUSE_MINIFRAME
13248 fi
13249
13250 { $as_echo "$as_me:$LINENO: result: $result" >&5
13251 $as_echo "$result" >&6; }
13252
13253
13254 enablestring=
13255 defaultval=$wxUSE_ALL_FEATURES
13256 if test -z "$defaultval"; then
13257 if test x"$enablestring" = xdisable; then
13258 defaultval=yes
13259 else
13260 defaultval=no
13261 fi
13262 fi
13263
13264 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13265 $as_echo_n "checking for --${enablestring:-enable}-tooltips... " >&6; }
13266 # Check whether --enable-tooltips was given.
13267 if test "${enable_tooltips+set}" = set; then
13268 enableval=$enable_tooltips;
13269 if test "$enableval" = yes; then
13270 wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13271 else
13272 wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13273 fi
13274
13275 else
13276
13277 wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13278
13279 fi
13280
13281
13282 eval "$wx_cv_use_tooltips"
13283
13284 if test x"$enablestring" = xdisable; then
13285 if test $wxUSE_TOOLTIPS = yes; then
13286 result=no
13287 else
13288 result=yes
13289 fi
13290 else
13291 result=$wxUSE_TOOLTIPS
13292 fi
13293
13294 { $as_echo "$as_me:$LINENO: result: $result" >&5
13295 $as_echo "$result" >&6; }
13296
13297
13298 enablestring=
13299 defaultval=$wxUSE_ALL_FEATURES
13300 if test -z "$defaultval"; then
13301 if test x"$enablestring" = xdisable; then
13302 defaultval=yes
13303 else
13304 defaultval=no
13305 fi
13306 fi
13307
13308 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13309 $as_echo_n "checking for --${enablestring:-enable}-splines... " >&6; }
13310 # Check whether --enable-splines was given.
13311 if test "${enable_splines+set}" = set; then
13312 enableval=$enable_splines;
13313 if test "$enableval" = yes; then
13314 wx_cv_use_splines='wxUSE_SPLINES=yes'
13315 else
13316 wx_cv_use_splines='wxUSE_SPLINES=no'
13317 fi
13318
13319 else
13320
13321 wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13322
13323 fi
13324
13325
13326 eval "$wx_cv_use_splines"
13327
13328 if test x"$enablestring" = xdisable; then
13329 if test $wxUSE_SPLINES = yes; then
13330 result=no
13331 else
13332 result=yes
13333 fi
13334 else
13335 result=$wxUSE_SPLINES
13336 fi
13337
13338 { $as_echo "$as_me:$LINENO: result: $result" >&5
13339 $as_echo "$result" >&6; }
13340
13341
13342 enablestring=
13343 defaultval=$wxUSE_ALL_FEATURES
13344 if test -z "$defaultval"; then
13345 if test x"$enablestring" = xdisable; then
13346 defaultval=yes
13347 else
13348 defaultval=no
13349 fi
13350 fi
13351
13352 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13353 $as_echo_n "checking for --${enablestring:-enable}-mousewheel... " >&6; }
13354 # Check whether --enable-mousewheel was given.
13355 if test "${enable_mousewheel+set}" = set; then
13356 enableval=$enable_mousewheel;
13357 if test "$enableval" = yes; then
13358 wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13359 else
13360 wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13361 fi
13362
13363 else
13364
13365 wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13366
13367 fi
13368
13369
13370 eval "$wx_cv_use_mousewheel"
13371
13372 if test x"$enablestring" = xdisable; then
13373 if test $wxUSE_MOUSEWHEEL = yes; then
13374 result=no
13375 else
13376 result=yes
13377 fi
13378 else
13379 result=$wxUSE_MOUSEWHEEL
13380 fi
13381
13382 { $as_echo "$as_me:$LINENO: result: $result" >&5
13383 $as_echo "$result" >&6; }
13384
13385
13386 enablestring=
13387 defaultval=$wxUSE_ALL_FEATURES
13388 if test -z "$defaultval"; then
13389 if test x"$enablestring" = xdisable; then
13390 defaultval=yes
13391 else
13392 defaultval=no
13393 fi
13394 fi
13395
13396 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13397 $as_echo_n "checking for --${enablestring:-enable}-validators... " >&6; }
13398 # Check whether --enable-validators was given.
13399 if test "${enable_validators+set}" = set; then
13400 enableval=$enable_validators;
13401 if test "$enableval" = yes; then
13402 wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13403 else
13404 wx_cv_use_validators='wxUSE_VALIDATORS=no'
13405 fi
13406
13407 else
13408
13409 wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13410
13411 fi
13412
13413
13414 eval "$wx_cv_use_validators"
13415
13416 if test x"$enablestring" = xdisable; then
13417 if test $wxUSE_VALIDATORS = yes; then
13418 result=no
13419 else
13420 result=yes
13421 fi
13422 else
13423 result=$wxUSE_VALIDATORS
13424 fi
13425
13426 { $as_echo "$as_me:$LINENO: result: $result" >&5
13427 $as_echo "$result" >&6; }
13428
13429
13430 enablestring=
13431 defaultval=$wxUSE_ALL_FEATURES
13432 if test -z "$defaultval"; then
13433 if test x"$enablestring" = xdisable; then
13434 defaultval=yes
13435 else
13436 defaultval=no
13437 fi
13438 fi
13439
13440 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13441 $as_echo_n "checking for --${enablestring:-enable}-busyinfo... " >&6; }
13442 # Check whether --enable-busyinfo was given.
13443 if test "${enable_busyinfo+set}" = set; then
13444 enableval=$enable_busyinfo;
13445 if test "$enableval" = yes; then
13446 wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13447 else
13448 wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13449 fi
13450
13451 else
13452
13453 wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13454
13455 fi
13456
13457
13458 eval "$wx_cv_use_busyinfo"
13459
13460 if test x"$enablestring" = xdisable; then
13461 if test $wxUSE_BUSYINFO = yes; then
13462 result=no
13463 else
13464 result=yes
13465 fi
13466 else
13467 result=$wxUSE_BUSYINFO
13468 fi
13469
13470 { $as_echo "$as_me:$LINENO: result: $result" >&5
13471 $as_echo "$result" >&6; }
13472
13473
13474 enablestring=
13475 defaultval=$wxUSE_ALL_FEATURES
13476 if test -z "$defaultval"; then
13477 if test x"$enablestring" = xdisable; then
13478 defaultval=yes
13479 else
13480 defaultval=no
13481 fi
13482 fi
13483
13484 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13485 $as_echo_n "checking for --${enablestring:-enable}-joystick... " >&6; }
13486 # Check whether --enable-joystick was given.
13487 if test "${enable_joystick+set}" = set; then
13488 enableval=$enable_joystick;
13489 if test "$enableval" = yes; then
13490 wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13491 else
13492 wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13493 fi
13494
13495 else
13496
13497 wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13498
13499 fi
13500
13501
13502 eval "$wx_cv_use_joystick"
13503
13504 if test x"$enablestring" = xdisable; then
13505 if test $wxUSE_JOYSTICK = yes; then
13506 result=no
13507 else
13508 result=yes
13509 fi
13510 else
13511 result=$wxUSE_JOYSTICK
13512 fi
13513
13514 { $as_echo "$as_me:$LINENO: result: $result" >&5
13515 $as_echo "$result" >&6; }
13516
13517
13518 enablestring=
13519 defaultval=$wxUSE_ALL_FEATURES
13520 if test -z "$defaultval"; then
13521 if test x"$enablestring" = xdisable; then
13522 defaultval=yes
13523 else
13524 defaultval=no
13525 fi
13526 fi
13527
13528 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13529 $as_echo_n "checking for --${enablestring:-enable}-metafile... " >&6; }
13530 # Check whether --enable-metafile was given.
13531 if test "${enable_metafile+set}" = set; then
13532 enableval=$enable_metafile;
13533 if test "$enableval" = yes; then
13534 wx_cv_use_metafile='wxUSE_METAFILE=yes'
13535 else
13536 wx_cv_use_metafile='wxUSE_METAFILE=no'
13537 fi
13538
13539 else
13540
13541 wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13542
13543 fi
13544
13545
13546 eval "$wx_cv_use_metafile"
13547
13548 if test x"$enablestring" = xdisable; then
13549 if test $wxUSE_METAFILE = yes; then
13550 result=no
13551 else
13552 result=yes
13553 fi
13554 else
13555 result=$wxUSE_METAFILE
13556 fi
13557
13558 { $as_echo "$as_me:$LINENO: result: $result" >&5
13559 $as_echo "$result" >&6; }
13560
13561
13562 enablestring=
13563 defaultval=$wxUSE_ALL_FEATURES
13564 if test -z "$defaultval"; then
13565 if test x"$enablestring" = xdisable; then
13566 defaultval=yes
13567 else
13568 defaultval=no
13569 fi
13570 fi
13571
13572 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13573 $as_echo_n "checking for --${enablestring:-enable}-dragimage... " >&6; }
13574 # Check whether --enable-dragimage was given.
13575 if test "${enable_dragimage+set}" = set; then
13576 enableval=$enable_dragimage;
13577 if test "$enableval" = yes; then
13578 wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13579 else
13580 wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13581 fi
13582
13583 else
13584
13585 wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13586
13587 fi
13588
13589
13590 eval "$wx_cv_use_dragimage"
13591
13592 if test x"$enablestring" = xdisable; then
13593 if test $wxUSE_DRAGIMAGE = yes; then
13594 result=no
13595 else
13596 result=yes
13597 fi
13598 else
13599 result=$wxUSE_DRAGIMAGE
13600 fi
13601
13602 { $as_echo "$as_me:$LINENO: result: $result" >&5
13603 $as_echo "$result" >&6; }
13604
13605
13606 enablestring=
13607 defaultval=$wxUSE_ALL_FEATURES
13608 if test -z "$defaultval"; then
13609 if test x"$enablestring" = xdisable; then
13610 defaultval=yes
13611 else
13612 defaultval=no
13613 fi
13614 fi
13615
13616 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13617 $as_echo_n "checking for --${enablestring:-enable}-accessibility... " >&6; }
13618 # Check whether --enable-accessibility was given.
13619 if test "${enable_accessibility+set}" = set; then
13620 enableval=$enable_accessibility;
13621 if test "$enableval" = yes; then
13622 wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13623 else
13624 wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13625 fi
13626
13627 else
13628
13629 wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13630
13631 fi
13632
13633
13634 eval "$wx_cv_use_accessibility"
13635
13636 if test x"$enablestring" = xdisable; then
13637 if test $wxUSE_ACCESSIBILITY = yes; then
13638 result=no
13639 else
13640 result=yes
13641 fi
13642 else
13643 result=$wxUSE_ACCESSIBILITY
13644 fi
13645
13646 { $as_echo "$as_me:$LINENO: result: $result" >&5
13647 $as_echo "$result" >&6; }
13648
13649
13650
13651
13652 enablestring=
13653 defaultval=$wxUSE_ALL_FEATURES
13654 if test -z "$defaultval"; then
13655 if test x"$enablestring" = xdisable; then
13656 defaultval=yes
13657 else
13658 defaultval=no
13659 fi
13660 fi
13661
13662 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13663 $as_echo_n "checking for --${enablestring:-enable}-palette... " >&6; }
13664 # Check whether --enable-palette was given.
13665 if test "${enable_palette+set}" = set; then
13666 enableval=$enable_palette;
13667 if test "$enableval" = yes; then
13668 wx_cv_use_palette='wxUSE_PALETTE=yes'
13669 else
13670 wx_cv_use_palette='wxUSE_PALETTE=no'
13671 fi
13672
13673 else
13674
13675 wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13676
13677 fi
13678
13679
13680 eval "$wx_cv_use_palette"
13681
13682 if test x"$enablestring" = xdisable; then
13683 if test $wxUSE_PALETTE = yes; then
13684 result=no
13685 else
13686 result=yes
13687 fi
13688 else
13689 result=$wxUSE_PALETTE
13690 fi
13691
13692 { $as_echo "$as_me:$LINENO: result: $result" >&5
13693 $as_echo "$result" >&6; }
13694
13695
13696 enablestring=
13697 defaultval=$wxUSE_ALL_FEATURES
13698 if test -z "$defaultval"; then
13699 if test x"$enablestring" = xdisable; then
13700 defaultval=yes
13701 else
13702 defaultval=no
13703 fi
13704 fi
13705
13706 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13707 $as_echo_n "checking for --${enablestring:-enable}-image... " >&6; }
13708 # Check whether --enable-image was given.
13709 if test "${enable_image+set}" = set; then
13710 enableval=$enable_image;
13711 if test "$enableval" = yes; then
13712 wx_cv_use_image='wxUSE_IMAGE=yes'
13713 else
13714 wx_cv_use_image='wxUSE_IMAGE=no'
13715 fi
13716
13717 else
13718
13719 wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13720
13721 fi
13722
13723
13724 eval "$wx_cv_use_image"
13725
13726 if test x"$enablestring" = xdisable; then
13727 if test $wxUSE_IMAGE = yes; then
13728 result=no
13729 else
13730 result=yes
13731 fi
13732 else
13733 result=$wxUSE_IMAGE
13734 fi
13735
13736 { $as_echo "$as_me:$LINENO: result: $result" >&5
13737 $as_echo "$result" >&6; }
13738
13739
13740 enablestring=
13741 defaultval=$wxUSE_ALL_FEATURES
13742 if test -z "$defaultval"; then
13743 if test x"$enablestring" = xdisable; then
13744 defaultval=yes
13745 else
13746 defaultval=no
13747 fi
13748 fi
13749
13750 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13751 $as_echo_n "checking for --${enablestring:-enable}-gif... " >&6; }
13752 # Check whether --enable-gif was given.
13753 if test "${enable_gif+set}" = set; then
13754 enableval=$enable_gif;
13755 if test "$enableval" = yes; then
13756 wx_cv_use_gif='wxUSE_GIF=yes'
13757 else
13758 wx_cv_use_gif='wxUSE_GIF=no'
13759 fi
13760
13761 else
13762
13763 wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13764
13765 fi
13766
13767
13768 eval "$wx_cv_use_gif"
13769
13770 if test x"$enablestring" = xdisable; then
13771 if test $wxUSE_GIF = yes; then
13772 result=no
13773 else
13774 result=yes
13775 fi
13776 else
13777 result=$wxUSE_GIF
13778 fi
13779
13780 { $as_echo "$as_me:$LINENO: result: $result" >&5
13781 $as_echo "$result" >&6; }
13782
13783
13784 enablestring=
13785 defaultval=$wxUSE_ALL_FEATURES
13786 if test -z "$defaultval"; then
13787 if test x"$enablestring" = xdisable; then
13788 defaultval=yes
13789 else
13790 defaultval=no
13791 fi
13792 fi
13793
13794 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13795 $as_echo_n "checking for --${enablestring:-enable}-pcx... " >&6; }
13796 # Check whether --enable-pcx was given.
13797 if test "${enable_pcx+set}" = set; then
13798 enableval=$enable_pcx;
13799 if test "$enableval" = yes; then
13800 wx_cv_use_pcx='wxUSE_PCX=yes'
13801 else
13802 wx_cv_use_pcx='wxUSE_PCX=no'
13803 fi
13804
13805 else
13806
13807 wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13808
13809 fi
13810
13811
13812 eval "$wx_cv_use_pcx"
13813
13814 if test x"$enablestring" = xdisable; then
13815 if test $wxUSE_PCX = yes; then
13816 result=no
13817 else
13818 result=yes
13819 fi
13820 else
13821 result=$wxUSE_PCX
13822 fi
13823
13824 { $as_echo "$as_me:$LINENO: result: $result" >&5
13825 $as_echo "$result" >&6; }
13826
13827
13828 enablestring=
13829 defaultval=$wxUSE_ALL_FEATURES
13830 if test -z "$defaultval"; then
13831 if test x"$enablestring" = xdisable; then
13832 defaultval=yes
13833 else
13834 defaultval=no
13835 fi
13836 fi
13837
13838 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13839 $as_echo_n "checking for --${enablestring:-enable}-tga... " >&6; }
13840 # Check whether --enable-tga was given.
13841 if test "${enable_tga+set}" = set; then
13842 enableval=$enable_tga;
13843 if test "$enableval" = yes; then
13844 wx_cv_use_tga='wxUSE_TGA=yes'
13845 else
13846 wx_cv_use_tga='wxUSE_TGA=no'
13847 fi
13848
13849 else
13850
13851 wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13852
13853 fi
13854
13855
13856 eval "$wx_cv_use_tga"
13857
13858 if test x"$enablestring" = xdisable; then
13859 if test $wxUSE_TGA = yes; then
13860 result=no
13861 else
13862 result=yes
13863 fi
13864 else
13865 result=$wxUSE_TGA
13866 fi
13867
13868 { $as_echo "$as_me:$LINENO: result: $result" >&5
13869 $as_echo "$result" >&6; }
13870
13871
13872 enablestring=
13873 defaultval=$wxUSE_ALL_FEATURES
13874 if test -z "$defaultval"; then
13875 if test x"$enablestring" = xdisable; then
13876 defaultval=yes
13877 else
13878 defaultval=no
13879 fi
13880 fi
13881
13882 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13883 $as_echo_n "checking for --${enablestring:-enable}-iff... " >&6; }
13884 # Check whether --enable-iff was given.
13885 if test "${enable_iff+set}" = set; then
13886 enableval=$enable_iff;
13887 if test "$enableval" = yes; then
13888 wx_cv_use_iff='wxUSE_IFF=yes'
13889 else
13890 wx_cv_use_iff='wxUSE_IFF=no'
13891 fi
13892
13893 else
13894
13895 wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13896
13897 fi
13898
13899
13900 eval "$wx_cv_use_iff"
13901
13902 if test x"$enablestring" = xdisable; then
13903 if test $wxUSE_IFF = yes; then
13904 result=no
13905 else
13906 result=yes
13907 fi
13908 else
13909 result=$wxUSE_IFF
13910 fi
13911
13912 { $as_echo "$as_me:$LINENO: result: $result" >&5
13913 $as_echo "$result" >&6; }
13914
13915
13916 enablestring=
13917 defaultval=$wxUSE_ALL_FEATURES
13918 if test -z "$defaultval"; then
13919 if test x"$enablestring" = xdisable; then
13920 defaultval=yes
13921 else
13922 defaultval=no
13923 fi
13924 fi
13925
13926 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13927 $as_echo_n "checking for --${enablestring:-enable}-pnm... " >&6; }
13928 # Check whether --enable-pnm was given.
13929 if test "${enable_pnm+set}" = set; then
13930 enableval=$enable_pnm;
13931 if test "$enableval" = yes; then
13932 wx_cv_use_pnm='wxUSE_PNM=yes'
13933 else
13934 wx_cv_use_pnm='wxUSE_PNM=no'
13935 fi
13936
13937 else
13938
13939 wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13940
13941 fi
13942
13943
13944 eval "$wx_cv_use_pnm"
13945
13946 if test x"$enablestring" = xdisable; then
13947 if test $wxUSE_PNM = yes; then
13948 result=no
13949 else
13950 result=yes
13951 fi
13952 else
13953 result=$wxUSE_PNM
13954 fi
13955
13956 { $as_echo "$as_me:$LINENO: result: $result" >&5
13957 $as_echo "$result" >&6; }
13958
13959
13960 enablestring=
13961 defaultval=$wxUSE_ALL_FEATURES
13962 if test -z "$defaultval"; then
13963 if test x"$enablestring" = xdisable; then
13964 defaultval=yes
13965 else
13966 defaultval=no
13967 fi
13968 fi
13969
13970 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13971 $as_echo_n "checking for --${enablestring:-enable}-xpm... " >&6; }
13972 # Check whether --enable-xpm was given.
13973 if test "${enable_xpm+set}" = set; then
13974 enableval=$enable_xpm;
13975 if test "$enableval" = yes; then
13976 wx_cv_use_xpm='wxUSE_XPM=yes'
13977 else
13978 wx_cv_use_xpm='wxUSE_XPM=no'
13979 fi
13980
13981 else
13982
13983 wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13984
13985 fi
13986
13987
13988 eval "$wx_cv_use_xpm"
13989
13990 if test x"$enablestring" = xdisable; then
13991 if test $wxUSE_XPM = yes; then
13992 result=no
13993 else
13994 result=yes
13995 fi
13996 else
13997 result=$wxUSE_XPM
13998 fi
13999
14000 { $as_echo "$as_me:$LINENO: result: $result" >&5
14001 $as_echo "$result" >&6; }
14002
14003
14004 enablestring=
14005 defaultval=$wxUSE_ALL_FEATURES
14006 if test -z "$defaultval"; then
14007 if test x"$enablestring" = xdisable; then
14008 defaultval=yes
14009 else
14010 defaultval=no
14011 fi
14012 fi
14013
14014 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14015 $as_echo_n "checking for --${enablestring:-enable}-ico_cur... " >&6; }
14016 # Check whether --enable-ico_cur was given.
14017 if test "${enable_ico_cur+set}" = set; then
14018 enableval=$enable_ico_cur;
14019 if test "$enableval" = yes; then
14020 wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14021 else
14022 wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14023 fi
14024
14025 else
14026
14027 wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14028
14029 fi
14030
14031
14032 eval "$wx_cv_use_ico_cur"
14033
14034 if test x"$enablestring" = xdisable; then
14035 if test $wxUSE_ICO_CUR = yes; then
14036 result=no
14037 else
14038 result=yes
14039 fi
14040 else
14041 result=$wxUSE_ICO_CUR
14042 fi
14043
14044 { $as_echo "$as_me:$LINENO: result: $result" >&5
14045 $as_echo "$result" >&6; }
14046
14047
14048
14049
14050 enablestring=
14051 defaultval=$wxUSE_ALL_FEATURES
14052 if test -z "$defaultval"; then
14053 if test x"$enablestring" = xdisable; then
14054 defaultval=yes
14055 else
14056 defaultval=no
14057 fi
14058 fi
14059
14060 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14061 $as_echo_n "checking for --${enablestring:-enable}-dccache... " >&6; }
14062 # Check whether --enable-dccache was given.
14063 if test "${enable_dccache+set}" = set; then
14064 enableval=$enable_dccache;
14065 if test "$enableval" = yes; then
14066 wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14067 else
14068 wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14069 fi
14070
14071 else
14072
14073 wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14074
14075 fi
14076
14077
14078 eval "$wx_cv_use_dccache"
14079
14080 if test x"$enablestring" = xdisable; then
14081 if test $wxUSE_DC_CACHEING = yes; then
14082 result=no
14083 else
14084 result=yes
14085 fi
14086 else
14087 result=$wxUSE_DC_CACHEING
14088 fi
14089
14090 { $as_echo "$as_me:$LINENO: result: $result" >&5
14091 $as_echo "$result" >&6; }
14092
14093
14094 enablestring=
14095 defaultval=$wxUSE_ALL_FEATURES
14096 if test -z "$defaultval"; then
14097 if test x"$enablestring" = xdisable; then
14098 defaultval=yes
14099 else
14100 defaultval=no
14101 fi
14102 fi
14103
14104 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14105 $as_echo_n "checking for --${enablestring:-enable}-ps-in-msw... " >&6; }
14106 # Check whether --enable-ps-in-msw was given.
14107 if test "${enable_ps_in_msw+set}" = set; then
14108 enableval=$enable_ps_in_msw;
14109 if test "$enableval" = yes; then
14110 wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14111 else
14112 wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14113 fi
14114
14115 else
14116
14117 wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14118
14119 fi
14120
14121
14122 eval "$wx_cv_use_ps_in_msw"
14123
14124 if test x"$enablestring" = xdisable; then
14125 if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
14126 result=no
14127 else
14128 result=yes
14129 fi
14130 else
14131 result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14132 fi
14133
14134 { $as_echo "$as_me:$LINENO: result: $result" >&5
14135 $as_echo "$result" >&6; }
14136
14137
14138 enablestring=
14139 defaultval=$wxUSE_ALL_FEATURES
14140 if test -z "$defaultval"; then
14141 if test x"$enablestring" = xdisable; then
14142 defaultval=yes
14143 else
14144 defaultval=no
14145 fi
14146 fi
14147
14148 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14149 $as_echo_n "checking for --${enablestring:-enable}-ownerdrawn... " >&6; }
14150 # Check whether --enable-ownerdrawn was given.
14151 if test "${enable_ownerdrawn+set}" = set; then
14152 enableval=$enable_ownerdrawn;
14153 if test "$enableval" = yes; then
14154 wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14155 else
14156 wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14157 fi
14158
14159 else
14160
14161 wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14162
14163 fi
14164
14165
14166 eval "$wx_cv_use_ownerdrawn"
14167
14168 if test x"$enablestring" = xdisable; then
14169 if test $wxUSE_OWNER_DRAWN = yes; then
14170 result=no
14171 else
14172 result=yes
14173 fi
14174 else
14175 result=$wxUSE_OWNER_DRAWN
14176 fi
14177
14178 { $as_echo "$as_me:$LINENO: result: $result" >&5
14179 $as_echo "$result" >&6; }
14180
14181
14182 enablestring=
14183 defaultval=$wxUSE_ALL_FEATURES
14184 if test -z "$defaultval"; then
14185 if test x"$enablestring" = xdisable; then
14186 defaultval=yes
14187 else
14188 defaultval=no
14189 fi
14190 fi
14191
14192 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14193 $as_echo_n "checking for --${enablestring:-enable}-uxtheme... " >&6; }
14194 # Check whether --enable-uxtheme was given.
14195 if test "${enable_uxtheme+set}" = set; then
14196 enableval=$enable_uxtheme;
14197 if test "$enableval" = yes; then
14198 wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14199 else
14200 wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14201 fi
14202
14203 else
14204
14205 wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14206
14207 fi
14208
14209
14210 eval "$wx_cv_use_uxtheme"
14211
14212 if test x"$enablestring" = xdisable; then
14213 if test $wxUSE_UXTHEME = yes; then
14214 result=no
14215 else
14216 result=yes
14217 fi
14218 else
14219 result=$wxUSE_UXTHEME
14220 fi
14221
14222 { $as_echo "$as_me:$LINENO: result: $result" >&5
14223 $as_echo "$result" >&6; }
14224
14225
14226 enablestring=
14227 defaultval=$wxUSE_ALL_FEATURES
14228 if test -z "$defaultval"; then
14229 if test x"$enablestring" = xdisable; then
14230 defaultval=yes
14231 else
14232 defaultval=no
14233 fi
14234 fi
14235
14236 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14237 $as_echo_n "checking for --${enablestring:-enable}-wxdib... " >&6; }
14238 # Check whether --enable-wxdib was given.
14239 if test "${enable_wxdib+set}" = set; then
14240 enableval=$enable_wxdib;
14241 if test "$enableval" = yes; then
14242 wx_cv_use_wxdib='wxUSE_DIB=yes'
14243 else
14244 wx_cv_use_wxdib='wxUSE_DIB=no'
14245 fi
14246
14247 else
14248
14249 wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14250
14251 fi
14252
14253
14254 eval "$wx_cv_use_wxdib"
14255
14256 if test x"$enablestring" = xdisable; then
14257 if test $wxUSE_DIB = yes; then
14258 result=no
14259 else
14260 result=yes
14261 fi
14262 else
14263 result=$wxUSE_DIB
14264 fi
14265
14266 { $as_echo "$as_me:$LINENO: result: $result" >&5
14267 $as_echo "$result" >&6; }
14268
14269
14270 if test "$wxUSE_MSW" != 1; then
14271 DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
14272 fi
14273
14274
14275 enablestring=
14276 defaultval=$wxUSE_ALL_FEATURES
14277 if test -z "$defaultval"; then
14278 if test x"$enablestring" = xdisable; then
14279 defaultval=yes
14280 else
14281 defaultval=no
14282 fi
14283 fi
14284
14285 { $as_echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
14286 $as_echo_n "checking for --${enablestring:-enable}-autoidman... " >&6; }
14287 # Check whether --enable-autoidman was given.
14288 if test "${enable_autoidman+set}" = set; then
14289 enableval=$enable_autoidman;
14290 if test "$enableval" = yes; then
14291 wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
14292 else
14293 wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
14294 fi
14295
14296 else
14297
14298 wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
14299
14300 fi
14301
14302
14303 eval "$wx_cv_use_autoidman"
14304
14305 if test x"$enablestring" = xdisable; then
14306 if test $wxUSE_AUTOID_MANAGEMENT = yes; then
14307 result=no
14308 else
14309 result=yes
14310 fi
14311 else
14312 result=$wxUSE_AUTOID_MANAGEMENT
14313 fi
14314
14315 { $as_echo "$as_me:$LINENO: result: $result" >&5
14316 $as_echo "$result" >&6; }
14317
14318
14319 fi
14320
14321
14322 cat >confcache <<\_ACEOF
14323 # This file is a shell script that caches the results of configure
14324 # tests run on this system so they can be shared between configure
14325 # scripts and configure runs, see configure's option --config-cache.
14326 # It is not useful on other systems. If it contains results you don't
14327 # want to keep, you may remove or edit it.
14328 #
14329 # config.status only pays attention to the cache file if you give it
14330 # the --recheck option to rerun configure.
14331 #
14332 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14333 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14334 # following values.
14335
14336 _ACEOF
14337
14338 # The following way of writing the cache mishandles newlines in values,
14339 # but we know of no workaround that is simple, portable, and efficient.
14340 # So, we kill variables containing newlines.
14341 # Ultrix sh set writes to stderr and can't be redirected directly,
14342 # and sets the high bit in the cache file unless we assign to the vars.
14343 (
14344 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14345 eval ac_val=\$$ac_var
14346 case $ac_val in #(
14347 *${as_nl}*)
14348 case $ac_var in #(
14349 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14350 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14351 esac
14352 case $ac_var in #(
14353 _ | IFS | as_nl) ;; #(
14354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14355 *) $as_unset $ac_var ;;
14356 esac ;;
14357 esac
14358 done
14359
14360 (set) 2>&1 |
14361 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14362 *${as_nl}ac_space=\ *)
14363 # `set' does not quote correctly, so add quotes (double-quote
14364 # substitution turns \\\\ into \\, and sed turns \\ into \).
14365 sed -n \
14366 "s/'/'\\\\''/g;
14367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14368 ;; #(
14369 *)
14370 # `set' quotes correctly as required by POSIX, so do not add quotes.
14371 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14372 ;;
14373 esac |
14374 sort
14375 ) |
14376 sed '
14377 /^ac_cv_env_/b end
14378 t clear
14379 :clear
14380 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14381 t end
14382 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14383 :end' >>confcache
14384 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14385 if test -w "$cache_file"; then
14386 test "x$cache_file" != "x/dev/null" &&
14387 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14388 $as_echo "$as_me: updating cache $cache_file" >&6;}
14389 cat confcache >$cache_file
14390 else
14391 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14392 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14393 fi
14394 fi
14395 rm -f confcache
14396
14397 CFLAGS=${CFLAGS:=}
14398
14399
14400
14401 ac_ext=c
14402 ac_cpp='$CPP $CPPFLAGS'
14403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14406 if test -n "$ac_tool_prefix"; then
14407 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14408 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14409 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14410 $as_echo_n "checking for $ac_word... " >&6; }
14411 if test "${ac_cv_prog_CC+set}" = set; then
14412 $as_echo_n "(cached) " >&6
14413 else
14414 if test -n "$CC"; then
14415 ac_cv_prog_CC="$CC" # Let the user override the test.
14416 else
14417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14418 for as_dir in $PATH
14419 do
14420 IFS=$as_save_IFS
14421 test -z "$as_dir" && as_dir=.
14422 for ac_exec_ext in '' $ac_executable_extensions; do
14423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14424 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14426 break 2
14427 fi
14428 done
14429 done
14430 IFS=$as_save_IFS
14431
14432 fi
14433 fi
14434 CC=$ac_cv_prog_CC
14435 if test -n "$CC"; then
14436 { $as_echo "$as_me:$LINENO: result: $CC" >&5
14437 $as_echo "$CC" >&6; }
14438 else
14439 { $as_echo "$as_me:$LINENO: result: no" >&5
14440 $as_echo "no" >&6; }
14441 fi
14442
14443
14444 fi
14445 if test -z "$ac_cv_prog_CC"; then
14446 ac_ct_CC=$CC
14447 # Extract the first word of "gcc", so it can be a program name with args.
14448 set dummy gcc; ac_word=$2
14449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14450 $as_echo_n "checking for $ac_word... " >&6; }
14451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14452 $as_echo_n "(cached) " >&6
14453 else
14454 if test -n "$ac_ct_CC"; then
14455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14456 else
14457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14458 for as_dir in $PATH
14459 do
14460 IFS=$as_save_IFS
14461 test -z "$as_dir" && as_dir=.
14462 for ac_exec_ext in '' $ac_executable_extensions; do
14463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14464 ac_cv_prog_ac_ct_CC="gcc"
14465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14466 break 2
14467 fi
14468 done
14469 done
14470 IFS=$as_save_IFS
14471
14472 fi
14473 fi
14474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14475 if test -n "$ac_ct_CC"; then
14476 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14477 $as_echo "$ac_ct_CC" >&6; }
14478 else
14479 { $as_echo "$as_me:$LINENO: result: no" >&5
14480 $as_echo "no" >&6; }
14481 fi
14482
14483 if test "x$ac_ct_CC" = x; then
14484 CC=""
14485 else
14486 case $cross_compiling:$ac_tool_warned in
14487 yes:)
14488 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
14489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14490 ac_tool_warned=yes ;;
14491 esac
14492 CC=$ac_ct_CC
14493 fi
14494 else
14495 CC="$ac_cv_prog_CC"
14496 fi
14497
14498 if test -z "$CC"; then
14499 if test -n "$ac_tool_prefix"; then
14500 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14501 set dummy ${ac_tool_prefix}cc; ac_word=$2
14502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14503 $as_echo_n "checking for $ac_word... " >&6; }
14504 if test "${ac_cv_prog_CC+set}" = set; then
14505 $as_echo_n "(cached) " >&6
14506 else
14507 if test -n "$CC"; then
14508 ac_cv_prog_CC="$CC" # Let the user override the test.
14509 else
14510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14511 for as_dir in $PATH
14512 do
14513 IFS=$as_save_IFS
14514 test -z "$as_dir" && as_dir=.
14515 for ac_exec_ext in '' $ac_executable_extensions; do
14516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14517 ac_cv_prog_CC="${ac_tool_prefix}cc"
14518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14519 break 2
14520 fi
14521 done
14522 done
14523 IFS=$as_save_IFS
14524
14525 fi
14526 fi
14527 CC=$ac_cv_prog_CC
14528 if test -n "$CC"; then
14529 { $as_echo "$as_me:$LINENO: result: $CC" >&5
14530 $as_echo "$CC" >&6; }
14531 else
14532 { $as_echo "$as_me:$LINENO: result: no" >&5
14533 $as_echo "no" >&6; }
14534 fi
14535
14536
14537 fi
14538 fi
14539 if test -z "$CC"; then
14540 # Extract the first word of "cc", so it can be a program name with args.
14541 set dummy cc; ac_word=$2
14542 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14543 $as_echo_n "checking for $ac_word... " >&6; }
14544 if test "${ac_cv_prog_CC+set}" = set; then
14545 $as_echo_n "(cached) " >&6
14546 else
14547 if test -n "$CC"; then
14548 ac_cv_prog_CC="$CC" # Let the user override the test.
14549 else
14550 ac_prog_rejected=no
14551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14552 for as_dir in $PATH
14553 do
14554 IFS=$as_save_IFS
14555 test -z "$as_dir" && as_dir=.
14556 for ac_exec_ext in '' $ac_executable_extensions; do
14557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14558 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14559 ac_prog_rejected=yes
14560 continue
14561 fi
14562 ac_cv_prog_CC="cc"
14563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14564 break 2
14565 fi
14566 done
14567 done
14568 IFS=$as_save_IFS
14569
14570 if test $ac_prog_rejected = yes; then
14571 # We found a bogon in the path, so make sure we never use it.
14572 set dummy $ac_cv_prog_CC
14573 shift
14574 if test $# != 0; then
14575 # We chose a different compiler from the bogus one.
14576 # However, it has the same basename, so the bogon will be chosen
14577 # first if we set CC to just the basename; use the full file name.
14578 shift
14579 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14580 fi
14581 fi
14582 fi
14583 fi
14584 CC=$ac_cv_prog_CC
14585 if test -n "$CC"; then
14586 { $as_echo "$as_me:$LINENO: result: $CC" >&5
14587 $as_echo "$CC" >&6; }
14588 else
14589 { $as_echo "$as_me:$LINENO: result: no" >&5
14590 $as_echo "no" >&6; }
14591 fi
14592
14593
14594 fi
14595 if test -z "$CC"; then
14596 if test -n "$ac_tool_prefix"; then
14597 for ac_prog in cl.exe
14598 do
14599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14601 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14602 $as_echo_n "checking for $ac_word... " >&6; }
14603 if test "${ac_cv_prog_CC+set}" = set; then
14604 $as_echo_n "(cached) " >&6
14605 else
14606 if test -n "$CC"; then
14607 ac_cv_prog_CC="$CC" # Let the user override the test.
14608 else
14609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14610 for as_dir in $PATH
14611 do
14612 IFS=$as_save_IFS
14613 test -z "$as_dir" && as_dir=.
14614 for ac_exec_ext in '' $ac_executable_extensions; do
14615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14616 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14618 break 2
14619 fi
14620 done
14621 done
14622 IFS=$as_save_IFS
14623
14624 fi
14625 fi
14626 CC=$ac_cv_prog_CC
14627 if test -n "$CC"; then
14628 { $as_echo "$as_me:$LINENO: result: $CC" >&5
14629 $as_echo "$CC" >&6; }
14630 else
14631 { $as_echo "$as_me:$LINENO: result: no" >&5
14632 $as_echo "no" >&6; }
14633 fi
14634
14635
14636 test -n "$CC" && break
14637 done
14638 fi
14639 if test -z "$CC"; then
14640 ac_ct_CC=$CC
14641 for ac_prog in cl.exe
14642 do
14643 # Extract the first word of "$ac_prog", so it can be a program name with args.
14644 set dummy $ac_prog; ac_word=$2
14645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14646 $as_echo_n "checking for $ac_word... " >&6; }
14647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14648 $as_echo_n "(cached) " >&6
14649 else
14650 if test -n "$ac_ct_CC"; then
14651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14652 else
14653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14654 for as_dir in $PATH
14655 do
14656 IFS=$as_save_IFS
14657 test -z "$as_dir" && as_dir=.
14658 for ac_exec_ext in '' $ac_executable_extensions; do
14659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14660 ac_cv_prog_ac_ct_CC="$ac_prog"
14661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14662 break 2
14663 fi
14664 done
14665 done
14666 IFS=$as_save_IFS
14667
14668 fi
14669 fi
14670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14671 if test -n "$ac_ct_CC"; then
14672 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14673 $as_echo "$ac_ct_CC" >&6; }
14674 else
14675 { $as_echo "$as_me:$LINENO: result: no" >&5
14676 $as_echo "no" >&6; }
14677 fi
14678
14679
14680 test -n "$ac_ct_CC" && break
14681 done
14682
14683 if test "x$ac_ct_CC" = x; then
14684 CC=""
14685 else
14686 case $cross_compiling:$ac_tool_warned in
14687 yes:)
14688 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
14689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14690 ac_tool_warned=yes ;;
14691 esac
14692 CC=$ac_ct_CC
14693 fi
14694 fi
14695
14696 fi
14697
14698
14699 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14701 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14702 See \`config.log' for more details." >&5
14703 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
14704 See \`config.log' for more details." >&2;}
14705 { (exit 1); exit 1; }; }; }
14706
14707 # Provide some information about the compiler.
14708 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
14709 set X $ac_compile
14710 ac_compiler=$2
14711 { (ac_try="$ac_compiler --version >&5"
14712 case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14715 esac
14716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14717 $as_echo "$ac_try_echo") >&5
14718 (eval "$ac_compiler --version >&5") 2>&5
14719 ac_status=$?
14720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }
14722 { (ac_try="$ac_compiler -v >&5"
14723 case "(($ac_try" in
14724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725 *) ac_try_echo=$ac_try;;
14726 esac
14727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14728 $as_echo "$ac_try_echo") >&5
14729 (eval "$ac_compiler -v >&5") 2>&5
14730 ac_status=$?
14731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }
14733 { (ac_try="$ac_compiler -V >&5"
14734 case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14737 esac
14738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14739 $as_echo "$ac_try_echo") >&5
14740 (eval "$ac_compiler -V >&5") 2>&5
14741 ac_status=$?
14742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }
14744
14745 cat >conftest.$ac_ext <<_ACEOF
14746 /* confdefs.h. */
14747 _ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14751
14752 int
14753 main ()
14754 {
14755
14756 ;
14757 return 0;
14758 }
14759 _ACEOF
14760 ac_clean_files_save=$ac_clean_files
14761 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
14762 # Try to create an executable without -o first, disregard a.out.
14763 # It will help us diagnose broken compilers, and finding out an intuition
14764 # of exeext.
14765 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14766 $as_echo_n "checking for C compiler default output file name... " >&6; }
14767 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14768
14769 # The possible output files:
14770 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
14771
14772 ac_rmfiles=
14773 for ac_file in $ac_files
14774 do
14775 case $ac_file in
14776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
14777 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14778 esac
14779 done
14780 rm -f $ac_rmfiles
14781
14782 if { (ac_try="$ac_link_default"
14783 case "(($ac_try" in
14784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785 *) ac_try_echo=$ac_try;;
14786 esac
14787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14788 $as_echo "$ac_try_echo") >&5
14789 (eval "$ac_link_default") 2>&5
14790 ac_status=$?
14791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; then
14793 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14794 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14795 # in a Makefile. We should not override ac_cv_exeext if it was cached,
14796 # so that the user can short-circuit this test for compilers unknown to
14797 # Autoconf.
14798 for ac_file in $ac_files ''
14799 do
14800 test -f "$ac_file" || continue
14801 case $ac_file in
14802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
14803 ;;
14804 [ab].out )
14805 # We found the default executable, but exeext='' is most
14806 # certainly right.
14807 break;;
14808 *.* )
14809 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14810 then :; else
14811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14812 fi
14813 # We set ac_cv_exeext here because the later test for it is not
14814 # safe: cross compilers may not add the suffix if given an `-o'
14815 # argument, so we may need to know it at that point already.
14816 # Even if this section looks crufty: it has the advantage of
14817 # actually working.
14818 break;;
14819 * )
14820 break;;
14821 esac
14822 done
14823 test "$ac_cv_exeext" = no && ac_cv_exeext=
14824
14825 else
14826 ac_file=''
14827 fi
14828
14829 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
14830 $as_echo "$ac_file" >&6; }
14831 if test -z "$ac_file"; then
14832 $as_echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14834
14835 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14837 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
14838 See \`config.log' for more details." >&5
14839 $as_echo "$as_me: error: C compiler cannot create executables
14840 See \`config.log' for more details." >&2;}
14841 { (exit 77); exit 77; }; }; }
14842 fi
14843
14844 ac_exeext=$ac_cv_exeext
14845
14846 # Check that the compiler produces executables we can run. If not, either
14847 # the compiler is broken, or we cross compile.
14848 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14849 $as_echo_n "checking whether the C compiler works... " >&6; }
14850 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14851 # If not cross compiling, check that we can run a simple program.
14852 if test "$cross_compiling" != yes; then
14853 if { ac_try='./$ac_file'
14854 { (case "(($ac_try" in
14855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856 *) ac_try_echo=$ac_try;;
14857 esac
14858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14859 $as_echo "$ac_try_echo") >&5
14860 (eval "$ac_try") 2>&5
14861 ac_status=$?
14862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }; then
14864 cross_compiling=no
14865 else
14866 if test "$cross_compiling" = maybe; then
14867 cross_compiling=yes
14868 else
14869 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14871 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
14872 If you meant to cross compile, use \`--host'.
14873 See \`config.log' for more details." >&5
14874 $as_echo "$as_me: error: cannot run C compiled programs.
14875 If you meant to cross compile, use \`--host'.
14876 See \`config.log' for more details." >&2;}
14877 { (exit 1); exit 1; }; }; }
14878 fi
14879 fi
14880 fi
14881 { $as_echo "$as_me:$LINENO: result: yes" >&5
14882 $as_echo "yes" >&6; }
14883
14884 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
14885 ac_clean_files=$ac_clean_files_save
14886 # Check that the compiler produces executables we can run. If not, either
14887 # the compiler is broken, or we cross compile.
14888 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14889 $as_echo_n "checking whether we are cross compiling... " >&6; }
14890 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
14891 $as_echo "$cross_compiling" >&6; }
14892
14893 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
14894 $as_echo_n "checking for suffix of executables... " >&6; }
14895 if { (ac_try="$ac_link"
14896 case "(($ac_try" in
14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898 *) ac_try_echo=$ac_try;;
14899 esac
14900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14901 $as_echo "$ac_try_echo") >&5
14902 (eval "$ac_link") 2>&5
14903 ac_status=$?
14904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; then
14906 # If both `conftest.exe' and `conftest' are `present' (well, observable)
14907 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
14908 # work properly (i.e., refer to `conftest.exe'), while it won't with
14909 # `rm'.
14910 for ac_file in conftest.exe conftest conftest.*; do
14911 test -f "$ac_file" || continue
14912 case $ac_file in
14913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
14914 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14915 break;;
14916 * ) break;;
14917 esac
14918 done
14919 else
14920 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14922 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14923 See \`config.log' for more details." >&5
14924 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14925 See \`config.log' for more details." >&2;}
14926 { (exit 1); exit 1; }; }; }
14927 fi
14928
14929 rm -f conftest$ac_cv_exeext
14930 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14931 $as_echo "$ac_cv_exeext" >&6; }
14932
14933 rm -f conftest.$ac_ext
14934 EXEEXT=$ac_cv_exeext
14935 ac_exeext=$EXEEXT
14936 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
14937 $as_echo_n "checking for suffix of object files... " >&6; }
14938 if test "${ac_cv_objext+set}" = set; then
14939 $as_echo_n "(cached) " >&6
14940 else
14941 cat >conftest.$ac_ext <<_ACEOF
14942 /* confdefs.h. */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947
14948 int
14949 main ()
14950 {
14951
14952 ;
14953 return 0;
14954 }
14955 _ACEOF
14956 rm -f conftest.o conftest.obj
14957 if { (ac_try="$ac_compile"
14958 case "(($ac_try" in
14959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960 *) ac_try_echo=$ac_try;;
14961 esac
14962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14963 $as_echo "$ac_try_echo") >&5
14964 (eval "$ac_compile") 2>&5
14965 ac_status=$?
14966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; then
14968 for ac_file in conftest.o conftest.obj conftest.*; do
14969 test -f "$ac_file" || continue;
14970 case $ac_file in
14971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
14972 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14973 break;;
14974 esac
14975 done
14976 else
14977 $as_echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14979
14980 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14982 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14983 See \`config.log' for more details." >&5
14984 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
14985 See \`config.log' for more details." >&2;}
14986 { (exit 1); exit 1; }; }; }
14987 fi
14988
14989 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14990 fi
14991 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14992 $as_echo "$ac_cv_objext" >&6; }
14993 OBJEXT=$ac_cv_objext
14994 ac_objext=$OBJEXT
14995 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14996 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14997 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14998 $as_echo_n "(cached) " >&6
14999 else
15000 cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h. */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006
15007 int
15008 main ()
15009 {
15010 #ifndef __GNUC__
15011 choke me
15012 #endif
15013
15014 ;
15015 return 0;
15016 }
15017 _ACEOF
15018 rm -f conftest.$ac_objext
15019 if { (ac_try="$ac_compile"
15020 case "(($ac_try" in
15021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022 *) ac_try_echo=$ac_try;;
15023 esac
15024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15025 $as_echo "$ac_try_echo") >&5
15026 (eval "$ac_compile") 2>conftest.er1
15027 ac_status=$?
15028 grep -v '^ *+' conftest.er1 >conftest.err
15029 rm -f conftest.er1
15030 cat conftest.err >&5
15031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } && {
15033 test -z "$ac_c_werror_flag" ||
15034 test ! -s conftest.err
15035 } && test -s conftest.$ac_objext; then
15036 ac_compiler_gnu=yes
15037 else
15038 $as_echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15040
15041 ac_compiler_gnu=no
15042 fi
15043
15044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15045 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15046
15047 fi
15048 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15049 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
15050 if test $ac_compiler_gnu = yes; then
15051 GCC=yes
15052 else
15053 GCC=
15054 fi
15055 ac_test_CFLAGS=${CFLAGS+set}
15056 ac_save_CFLAGS=$CFLAGS
15057 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15058 $as_echo_n "checking whether $CC accepts -g... " >&6; }
15059 if test "${ac_cv_prog_cc_g+set}" = set; then
15060 $as_echo_n "(cached) " >&6
15061 else
15062 ac_save_c_werror_flag=$ac_c_werror_flag
15063 ac_c_werror_flag=yes
15064 ac_cv_prog_cc_g=no
15065 CFLAGS="-g"
15066 cat >conftest.$ac_ext <<_ACEOF
15067 /* confdefs.h. */
15068 _ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h. */
15072
15073 int
15074 main ()
15075 {
15076
15077 ;
15078 return 0;
15079 }
15080 _ACEOF
15081 rm -f conftest.$ac_objext
15082 if { (ac_try="$ac_compile"
15083 case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15086 esac
15087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15088 $as_echo "$ac_try_echo") >&5
15089 (eval "$ac_compile") 2>conftest.er1
15090 ac_status=$?
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
15094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } && {
15096 test -z "$ac_c_werror_flag" ||
15097 test ! -s conftest.err
15098 } && test -s conftest.$ac_objext; then
15099 ac_cv_prog_cc_g=yes
15100 else
15101 $as_echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15103
15104 CFLAGS=""
15105 cat >conftest.$ac_ext <<_ACEOF
15106 /* confdefs.h. */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15111
15112 int
15113 main ()
15114 {
15115
15116 ;
15117 return 0;
15118 }
15119 _ACEOF
15120 rm -f conftest.$ac_objext
15121 if { (ac_try="$ac_compile"
15122 case "(($ac_try" in
15123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15124 *) ac_try_echo=$ac_try;;
15125 esac
15126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15127 $as_echo "$ac_try_echo") >&5
15128 (eval "$ac_compile") 2>conftest.er1
15129 ac_status=$?
15130 grep -v '^ *+' conftest.er1 >conftest.err
15131 rm -f conftest.er1
15132 cat conftest.err >&5
15133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } && {
15135 test -z "$ac_c_werror_flag" ||
15136 test ! -s conftest.err
15137 } && test -s conftest.$ac_objext; then
15138 :
15139 else
15140 $as_echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15142
15143 ac_c_werror_flag=$ac_save_c_werror_flag
15144 CFLAGS="-g"
15145 cat >conftest.$ac_ext <<_ACEOF
15146 /* confdefs.h. */
15147 _ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h. */
15151
15152 int
15153 main ()
15154 {
15155
15156 ;
15157 return 0;
15158 }
15159 _ACEOF
15160 rm -f conftest.$ac_objext
15161 if { (ac_try="$ac_compile"
15162 case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15165 esac
15166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15167 $as_echo "$ac_try_echo") >&5
15168 (eval "$ac_compile") 2>conftest.er1
15169 ac_status=$?
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
15173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } && {
15175 test -z "$ac_c_werror_flag" ||
15176 test ! -s conftest.err
15177 } && test -s conftest.$ac_objext; then
15178 ac_cv_prog_cc_g=yes
15179 else
15180 $as_echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15182
15183
15184 fi
15185
15186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15187 fi
15188
15189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15190 fi
15191
15192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15193 ac_c_werror_flag=$ac_save_c_werror_flag
15194 fi
15195 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15196 $as_echo "$ac_cv_prog_cc_g" >&6; }
15197 if test "$ac_test_CFLAGS" = set; then
15198 CFLAGS=$ac_save_CFLAGS
15199 elif test $ac_cv_prog_cc_g = yes; then
15200 if test "$GCC" = yes; then
15201 CFLAGS="-g -O2"
15202 else
15203 CFLAGS="-g"
15204 fi
15205 else
15206 if test "$GCC" = yes; then
15207 CFLAGS="-O2"
15208 else
15209 CFLAGS=
15210 fi
15211 fi
15212 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15213 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
15214 if test "${ac_cv_prog_cc_c89+set}" = set; then
15215 $as_echo_n "(cached) " >&6
15216 else
15217 ac_cv_prog_cc_c89=no
15218 ac_save_CC=$CC
15219 cat >conftest.$ac_ext <<_ACEOF
15220 /* confdefs.h. */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 #include <stdarg.h>
15226 #include <stdio.h>
15227 #include <sys/types.h>
15228 #include <sys/stat.h>
15229 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15230 struct buf { int x; };
15231 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15232 static char *e (p, i)
15233 char **p;
15234 int i;
15235 {
15236 return p[i];
15237 }
15238 static char *f (char * (*g) (char **, int), char **p, ...)
15239 {
15240 char *s;
15241 va_list v;
15242 va_start (v,p);
15243 s = g (p, va_arg (v,int));
15244 va_end (v);
15245 return s;
15246 }
15247
15248 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15249 function prototypes and stuff, but not '\xHH' hex character constants.
15250 These don't provoke an error unfortunately, instead are silently treated
15251 as 'x'. The following induces an error, until -std is added to get
15252 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15253 array size at least. It's necessary to write '\x00'==0 to get something
15254 that's true only with -std. */
15255 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15256
15257 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15258 inside strings and character constants. */
15259 #define FOO(x) 'x'
15260 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15261
15262 int test (int i, double x);
15263 struct s1 {int (*f) (int a);};
15264 struct s2 {int (*f) (double a);};
15265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15266 int argc;
15267 char **argv;
15268 int
15269 main ()
15270 {
15271 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
15272 ;
15273 return 0;
15274 }
15275 _ACEOF
15276 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15277 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15278 do
15279 CC="$ac_save_CC $ac_arg"
15280 rm -f conftest.$ac_objext
15281 if { (ac_try="$ac_compile"
15282 case "(($ac_try" in
15283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284 *) ac_try_echo=$ac_try;;
15285 esac
15286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15287 $as_echo "$ac_try_echo") >&5
15288 (eval "$ac_compile") 2>conftest.er1
15289 ac_status=$?
15290 grep -v '^ *+' conftest.er1 >conftest.err
15291 rm -f conftest.er1
15292 cat conftest.err >&5
15293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } && {
15295 test -z "$ac_c_werror_flag" ||
15296 test ! -s conftest.err
15297 } && test -s conftest.$ac_objext; then
15298 ac_cv_prog_cc_c89=$ac_arg
15299 else
15300 $as_echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15302
15303
15304 fi
15305
15306 rm -f core conftest.err conftest.$ac_objext
15307 test "x$ac_cv_prog_cc_c89" != "xno" && break
15308 done
15309 rm -f conftest.$ac_ext
15310 CC=$ac_save_CC
15311
15312 fi
15313 # AC_CACHE_VAL
15314 case "x$ac_cv_prog_cc_c89" in
15315 x)
15316 { $as_echo "$as_me:$LINENO: result: none needed" >&5
15317 $as_echo "none needed" >&6; } ;;
15318 xno)
15319 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
15320 $as_echo "unsupported" >&6; } ;;
15321 *)
15322 CC="$CC $ac_cv_prog_cc_c89"
15323 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
15324 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15325 esac
15326
15327
15328 ac_ext=c
15329 ac_cpp='$CPP $CPPFLAGS'
15330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15333
15334
15335
15336
15337 ac_ext=c
15338 ac_cpp='$CPP $CPPFLAGS'
15339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15342
15343 { $as_echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
15344 $as_echo_n "checking whether we are using the Intel C compiler... " >&6; }
15345 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
15346 $as_echo_n "(cached) " >&6
15347 else
15348 cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h. */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354
15355 int
15356 main ()
15357 {
15358
15359 #ifndef __INTEL_COMPILER
15360 choke me
15361 #endif
15362
15363 ;
15364 return 0;
15365 }
15366 _ACEOF
15367 rm -f conftest.$ac_objext
15368 if { (ac_try="$ac_compile"
15369 case "(($ac_try" in
15370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371 *) ac_try_echo=$ac_try;;
15372 esac
15373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15374 $as_echo "$ac_try_echo") >&5
15375 (eval "$ac_compile") 2>conftest.er1
15376 ac_status=$?
15377 grep -v '^ *+' conftest.er1 >conftest.err
15378 rm -f conftest.er1
15379 cat conftest.err >&5
15380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } && {
15382 test -z "$ac_c_werror_flag" ||
15383 test ! -s conftest.err
15384 } && test -s conftest.$ac_objext; then
15385 bakefile_cv_c_compiler___INTEL_COMPILER=yes
15386 else
15387 $as_echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15389
15390 bakefile_cv_c_compiler___INTEL_COMPILER=no
15391
15392 fi
15393
15394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15395
15396
15397 fi
15398 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15399 $as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15400 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15401 :; INTELCC=yes
15402 else
15403 :;
15404 fi
15405 ac_ext=c
15406 ac_cpp='$CPP $CPPFLAGS'
15407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15410
15411
15412
15413
15414 if test "$INTELCC" = "yes"; then
15415
15416
15417 ac_ext=c
15418 ac_cpp='$CPP $CPPFLAGS'
15419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15422
15423 { $as_echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15424 $as_echo_n "checking whether we are using Intel C compiler v8 or later... " >&6; }
15425 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15426 $as_echo_n "(cached) " >&6
15427 else
15428 cat >conftest.$ac_ext <<_ACEOF
15429 /* confdefs.h. */
15430 _ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15434
15435 int
15436 main ()
15437 {
15438
15439 #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15440 choke me
15441 #endif
15442
15443 ;
15444 return 0;
15445 }
15446 _ACEOF
15447 rm -f conftest.$ac_objext
15448 if { (ac_try="$ac_compile"
15449 case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15452 esac
15453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15454 $as_echo "$ac_try_echo") >&5
15455 (eval "$ac_compile") 2>conftest.er1
15456 ac_status=$?
15457 grep -v '^ *+' conftest.er1 >conftest.err
15458 rm -f conftest.er1
15459 cat conftest.err >&5
15460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } && {
15462 test -z "$ac_c_werror_flag" ||
15463 test ! -s conftest.err
15464 } && test -s conftest.$ac_objext; then
15465 bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15466 else
15467 $as_echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15469
15470 bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15471
15472 fi
15473
15474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15475
15476
15477 fi
15478 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15479 $as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15480 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15481 :; INTELCC8=yes
15482 else
15483 :;
15484 fi
15485 ac_ext=c
15486 ac_cpp='$CPP $CPPFLAGS'
15487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15490
15491
15492
15493
15494
15495 ac_ext=c
15496 ac_cpp='$CPP $CPPFLAGS'
15497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15500
15501 { $as_echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15502 $as_echo_n "checking whether we are using Intel C compiler v10 or later... " >&6; }
15503 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15504 $as_echo_n "(cached) " >&6
15505 else
15506 cat >conftest.$ac_ext <<_ACEOF
15507 /* confdefs.h. */
15508 _ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15512
15513 int
15514 main ()
15515 {
15516
15517 #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15518 choke me
15519 #endif
15520
15521 ;
15522 return 0;
15523 }
15524 _ACEOF
15525 rm -f conftest.$ac_objext
15526 if { (ac_try="$ac_compile"
15527 case "(($ac_try" in
15528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15529 *) ac_try_echo=$ac_try;;
15530 esac
15531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15532 $as_echo "$ac_try_echo") >&5
15533 (eval "$ac_compile") 2>conftest.er1
15534 ac_status=$?
15535 grep -v '^ *+' conftest.er1 >conftest.err
15536 rm -f conftest.er1
15537 cat conftest.err >&5
15538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } && {
15540 test -z "$ac_c_werror_flag" ||
15541 test ! -s conftest.err
15542 } && test -s conftest.$ac_objext; then
15543 bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15544 else
15545 $as_echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15547
15548 bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15549
15550 fi
15551
15552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15553
15554
15555 fi
15556 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15557 $as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
15558 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15559 :; INTELCC10=yes
15560 else
15561 :;
15562 fi
15563 ac_ext=c
15564 ac_cpp='$CPP $CPPFLAGS'
15565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15568
15569
15570
15571 fi
15572
15573 if test "x$GCC" != "xyes"; then
15574 if test "xCC" = "xC"; then
15575 { $as_echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15576 $as_echo_n "checking if the C compiler requires -ext o... " >&6; }
15577 if test "${bakefile_cv_c_exto+set}" = set; then
15578 $as_echo_n "(cached) " >&6
15579 else
15580 cat >conftest.$ac_ext <<_ACEOF
15581 /* confdefs.h. */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15586
15587 int
15588 main ()
15589 {
15590
15591 ;
15592 return 0;
15593 }
15594 _ACEOF
15595 rm -f conftest.$ac_objext conftest.$ac_ext.o
15596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15597 (eval $ac_compile) 2>&5
15598 ac_status=$?
15599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; then
15601 for ac_file in `(ls conftest.* 2>/dev/null)`; do
15602 case $ac_file in
15603 conftest.$ac_ext.o)
15604 bakefile_cv_c_exto="-ext o"
15605 ;;
15606 *)
15607 ;;
15608 esac
15609 done
15610 else
15611 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15613 { { $as_echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15614 See \`config.log' for more details." >&5
15615 $as_echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15616 See \`config.log' for more details." >&2;}
15617 { (exit 1); exit 1; }; }; }
15618
15619 fi
15620
15621 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15622
15623 fi
15624 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15625 $as_echo "$bakefile_cv_c_exto" >&6; }
15626 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15627 if test "c" = "c"; then
15628 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15629 fi
15630 if test "c" = "cxx"; then
15631 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15632 fi
15633 fi
15634
15635 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15636 unset ac_cv_prog_cc_g
15637 ac_test_CFLAGS=${CFLAGS+set}
15638 ac_save_CFLAGS=$CFLAGS
15639 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15640 $as_echo_n "checking whether $CC accepts -g... " >&6; }
15641 if test "${ac_cv_prog_cc_g+set}" = set; then
15642 $as_echo_n "(cached) " >&6
15643 else
15644 ac_save_c_werror_flag=$ac_c_werror_flag
15645 ac_c_werror_flag=yes
15646 ac_cv_prog_cc_g=no
15647 CFLAGS="-g"
15648 cat >conftest.$ac_ext <<_ACEOF
15649 /* confdefs.h. */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15654
15655 int
15656 main ()
15657 {
15658
15659 ;
15660 return 0;
15661 }
15662 _ACEOF
15663 rm -f conftest.$ac_objext
15664 if { (ac_try="$ac_compile"
15665 case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15668 esac
15669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15670 $as_echo "$ac_try_echo") >&5
15671 (eval "$ac_compile") 2>conftest.er1
15672 ac_status=$?
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
15676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } && {
15678 test -z "$ac_c_werror_flag" ||
15679 test ! -s conftest.err
15680 } && test -s conftest.$ac_objext; then
15681 ac_cv_prog_cc_g=yes
15682 else
15683 $as_echo "$as_me: failed program was:" >&5
15684 sed 's/^/| /' conftest.$ac_ext >&5
15685
15686 CFLAGS=""
15687 cat >conftest.$ac_ext <<_ACEOF
15688 /* confdefs.h. */
15689 _ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h. */
15693
15694 int
15695 main ()
15696 {
15697
15698 ;
15699 return 0;
15700 }
15701 _ACEOF
15702 rm -f conftest.$ac_objext
15703 if { (ac_try="$ac_compile"
15704 case "(($ac_try" in
15705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706 *) ac_try_echo=$ac_try;;
15707 esac
15708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15709 $as_echo "$ac_try_echo") >&5
15710 (eval "$ac_compile") 2>conftest.er1
15711 ac_status=$?
15712 grep -v '^ *+' conftest.er1 >conftest.err
15713 rm -f conftest.er1
15714 cat conftest.err >&5
15715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } && {
15717 test -z "$ac_c_werror_flag" ||
15718 test ! -s conftest.err
15719 } && test -s conftest.$ac_objext; then
15720 :
15721 else
15722 $as_echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15724
15725 ac_c_werror_flag=$ac_save_c_werror_flag
15726 CFLAGS="-g"
15727 cat >conftest.$ac_ext <<_ACEOF
15728 /* confdefs.h. */
15729 _ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h. */
15733
15734 int
15735 main ()
15736 {
15737
15738 ;
15739 return 0;
15740 }
15741 _ACEOF
15742 rm -f conftest.$ac_objext
15743 if { (ac_try="$ac_compile"
15744 case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15747 esac
15748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15749 $as_echo "$ac_try_echo") >&5
15750 (eval "$ac_compile") 2>conftest.er1
15751 ac_status=$?
15752 grep -v '^ *+' conftest.er1 >conftest.err
15753 rm -f conftest.er1
15754 cat conftest.err >&5
15755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } && {
15757 test -z "$ac_c_werror_flag" ||
15758 test ! -s conftest.err
15759 } && test -s conftest.$ac_objext; then
15760 ac_cv_prog_cc_g=yes
15761 else
15762 $as_echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15764
15765
15766 fi
15767
15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15769 fi
15770
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772 fi
15773
15774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775 ac_c_werror_flag=$ac_save_c_werror_flag
15776 fi
15777 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15778 $as_echo "$ac_cv_prog_cc_g" >&6; }
15779 if test "$ac_test_CFLAGS" = set; then
15780 CFLAGS=$ac_save_CFLAGS
15781 elif test $ac_cv_prog_cc_g = yes; then
15782 if test "$GCC" = yes; then
15783 CFLAGS="-g -O2"
15784 else
15785 CFLAGS="-g"
15786 fi
15787 else
15788 if test "$GCC" = yes; then
15789 CFLAGS="-O2"
15790 else
15791 CFLAGS=
15792 fi
15793 fi
15794 fi
15795 fi
15796
15797 case `uname -s` in
15798 AIX*)
15799
15800
15801 ac_ext=c
15802 ac_cpp='$CPP $CPPFLAGS'
15803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15806
15807 { $as_echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15808 $as_echo_n "checking whether we are using the IBM xlC C compiler... " >&6; }
15809 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15810 $as_echo_n "(cached) " >&6
15811 else
15812 cat >conftest.$ac_ext <<_ACEOF
15813 /* confdefs.h. */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818
15819 int
15820 main ()
15821 {
15822
15823 #ifndef __xlC__
15824 choke me
15825 #endif
15826
15827 ;
15828 return 0;
15829 }
15830 _ACEOF
15831 rm -f conftest.$ac_objext
15832 if { (ac_try="$ac_compile"
15833 case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15836 esac
15837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15838 $as_echo "$ac_try_echo") >&5
15839 (eval "$ac_compile") 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } && {
15846 test -z "$ac_c_werror_flag" ||
15847 test ! -s conftest.err
15848 } && test -s conftest.$ac_objext; then
15849 bakefile_cv_c_compiler___xlC__=yes
15850 else
15851 $as_echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854 bakefile_cv_c_compiler___xlC__=no
15855
15856 fi
15857
15858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15859
15860
15861 fi
15862 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15863 $as_echo "$bakefile_cv_c_compiler___xlC__" >&6; }
15864 if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15865 :; XLCC=yes
15866 else
15867 :;
15868 fi
15869 ac_ext=c
15870 ac_cpp='$CPP $CPPFLAGS'
15871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15874
15875
15876
15877 ;;
15878
15879 Darwin)
15880
15881
15882 ac_ext=c
15883 ac_cpp='$CPP $CPPFLAGS'
15884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15887
15888 { $as_echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15889 $as_echo_n "checking whether we are using the Metrowerks C compiler... " >&6; }
15890 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15891 $as_echo_n "(cached) " >&6
15892 else
15893 cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h. */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899
15900 int
15901 main ()
15902 {
15903
15904 #ifndef __MWERKS__
15905 choke me
15906 #endif
15907
15908 ;
15909 return 0;
15910 }
15911 _ACEOF
15912 rm -f conftest.$ac_objext
15913 if { (ac_try="$ac_compile"
15914 case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15917 esac
15918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15919 $as_echo "$ac_try_echo") >&5
15920 (eval "$ac_compile") 2>conftest.er1
15921 ac_status=$?
15922 grep -v '^ *+' conftest.er1 >conftest.err
15923 rm -f conftest.er1
15924 cat conftest.err >&5
15925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } && {
15927 test -z "$ac_c_werror_flag" ||
15928 test ! -s conftest.err
15929 } && test -s conftest.$ac_objext; then
15930 bakefile_cv_c_compiler___MWERKS__=yes
15931 else
15932 $as_echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15934
15935 bakefile_cv_c_compiler___MWERKS__=no
15936
15937 fi
15938
15939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15940
15941
15942 fi
15943 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15944 $as_echo "$bakefile_cv_c_compiler___MWERKS__" >&6; }
15945 if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15946 :; MWCC=yes
15947 else
15948 :;
15949 fi
15950 ac_ext=c
15951 ac_cpp='$CPP $CPPFLAGS'
15952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15955
15956
15957
15958 if test "$MWCC" != "yes"; then
15959
15960
15961 ac_ext=c
15962 ac_cpp='$CPP $CPPFLAGS'
15963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15966
15967 { $as_echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15968 $as_echo_n "checking whether we are using the IBM xlC C compiler... " >&6; }
15969 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15970 $as_echo_n "(cached) " >&6
15971 else
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h. */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978
15979 int
15980 main ()
15981 {
15982
15983 #ifndef __xlC__
15984 choke me
15985 #endif
15986
15987 ;
15988 return 0;
15989 }
15990 _ACEOF
15991 rm -f conftest.$ac_objext
15992 if { (ac_try="$ac_compile"
15993 case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15996 esac
15997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15998 $as_echo "$ac_try_echo") >&5
15999 (eval "$ac_compile") 2>conftest.er1
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } && {
16006 test -z "$ac_c_werror_flag" ||
16007 test ! -s conftest.err
16008 } && test -s conftest.$ac_objext; then
16009 bakefile_cv_c_compiler___xlC__=yes
16010 else
16011 $as_echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16013
16014 bakefile_cv_c_compiler___xlC__=no
16015
16016 fi
16017
16018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019
16020
16021 fi
16022 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16023 $as_echo "$bakefile_cv_c_compiler___xlC__" >&6; }
16024 if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16025 :; XLCC=yes
16026 else
16027 :;
16028 fi
16029 ac_ext=c
16030 ac_cpp='$CPP $CPPFLAGS'
16031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16034
16035
16036
16037 fi
16038 ;;
16039
16040 IRIX*)
16041
16042
16043 ac_ext=c
16044 ac_cpp='$CPP $CPPFLAGS'
16045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16048
16049 { $as_echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16050 $as_echo_n "checking whether we are using the SGI C compiler... " >&6; }
16051 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16052 $as_echo_n "(cached) " >&6
16053 else
16054 cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h. */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060
16061 int
16062 main ()
16063 {
16064
16065 #ifndef _SGI_COMPILER_VERSION
16066 choke me
16067 #endif
16068
16069 ;
16070 return 0;
16071 }
16072 _ACEOF
16073 rm -f conftest.$ac_objext
16074 if { (ac_try="$ac_compile"
16075 case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16078 esac
16079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16080 $as_echo "$ac_try_echo") >&5
16081 (eval "$ac_compile") 2>conftest.er1
16082 ac_status=$?
16083 grep -v '^ *+' conftest.er1 >conftest.err
16084 rm -f conftest.er1
16085 cat conftest.err >&5
16086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } && {
16088 test -z "$ac_c_werror_flag" ||
16089 test ! -s conftest.err
16090 } && test -s conftest.$ac_objext; then
16091 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16092 else
16093 $as_echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16095
16096 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16097
16098 fi
16099
16100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101
16102
16103 fi
16104 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16105 $as_echo "$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16106 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16107 :; SGICC=yes
16108 else
16109 :;
16110 fi
16111 ac_ext=c
16112 ac_cpp='$CPP $CPPFLAGS'
16113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16116
16117
16118
16119 ;;
16120
16121 Linux*)
16122 if test "$INTELCC" != "yes"; then
16123
16124
16125 ac_ext=c
16126 ac_cpp='$CPP $CPPFLAGS'
16127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16130
16131 { $as_echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16132 $as_echo_n "checking whether we are using the Sun C compiler... " >&6; }
16133 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16134 $as_echo_n "(cached) " >&6
16135 else
16136 cat >conftest.$ac_ext <<_ACEOF
16137 /* confdefs.h. */
16138 _ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142
16143 int
16144 main ()
16145 {
16146
16147 #ifndef __SUNPRO_C
16148 choke me
16149 #endif
16150
16151 ;
16152 return 0;
16153 }
16154 _ACEOF
16155 rm -f conftest.$ac_objext
16156 if { (ac_try="$ac_compile"
16157 case "(($ac_try" in
16158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159 *) ac_try_echo=$ac_try;;
16160 esac
16161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16162 $as_echo "$ac_try_echo") >&5
16163 (eval "$ac_compile") 2>conftest.er1
16164 ac_status=$?
16165 grep -v '^ *+' conftest.er1 >conftest.err
16166 rm -f conftest.er1
16167 cat conftest.err >&5
16168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } && {
16170 test -z "$ac_c_werror_flag" ||
16171 test ! -s conftest.err
16172 } && test -s conftest.$ac_objext; then
16173 bakefile_cv_c_compiler___SUNPRO_C=yes
16174 else
16175 $as_echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16177
16178 bakefile_cv_c_compiler___SUNPRO_C=no
16179
16180 fi
16181
16182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16183
16184
16185 fi
16186 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16187 $as_echo "$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16188 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16189 :; SUNCC=yes
16190 else
16191 :;
16192 fi
16193 ac_ext=c
16194 ac_cpp='$CPP $CPPFLAGS'
16195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16198
16199
16200
16201 fi
16202 ;;
16203
16204 HP-UX*)
16205
16206
16207 ac_ext=c
16208 ac_cpp='$CPP $CPPFLAGS'
16209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16212
16213 { $as_echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16214 $as_echo_n "checking whether we are using the HP C compiler... " >&6; }
16215 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16216 $as_echo_n "(cached) " >&6
16217 else
16218 cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h. */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224
16225 int
16226 main ()
16227 {
16228
16229 #ifndef __HP_cc
16230 choke me
16231 #endif
16232
16233 ;
16234 return 0;
16235 }
16236 _ACEOF
16237 rm -f conftest.$ac_objext
16238 if { (ac_try="$ac_compile"
16239 case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16242 esac
16243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16244 $as_echo "$ac_try_echo") >&5
16245 (eval "$ac_compile") 2>conftest.er1
16246 ac_status=$?
16247 grep -v '^ *+' conftest.er1 >conftest.err
16248 rm -f conftest.er1
16249 cat conftest.err >&5
16250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } && {
16252 test -z "$ac_c_werror_flag" ||
16253 test ! -s conftest.err
16254 } && test -s conftest.$ac_objext; then
16255 bakefile_cv_c_compiler___HP_cc=yes
16256 else
16257 $as_echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16259
16260 bakefile_cv_c_compiler___HP_cc=no
16261
16262 fi
16263
16264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16265
16266
16267 fi
16268 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
16269 $as_echo "$bakefile_cv_c_compiler___HP_cc" >&6; }
16270 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
16271 :; HPCC=yes
16272 else
16273 :;
16274 fi
16275 ac_ext=c
16276 ac_cpp='$CPP $CPPFLAGS'
16277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16280
16281
16282
16283 ;;
16284
16285 OSF1)
16286
16287
16288 ac_ext=c
16289 ac_cpp='$CPP $CPPFLAGS'
16290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16293
16294 { $as_echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16295 $as_echo_n "checking whether we are using the Compaq C compiler... " >&6; }
16296 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
16297 $as_echo_n "(cached) " >&6
16298 else
16299 cat >conftest.$ac_ext <<_ACEOF
16300 /* confdefs.h. */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305
16306 int
16307 main ()
16308 {
16309
16310 #ifndef __DECC
16311 choke me
16312 #endif
16313
16314 ;
16315 return 0;
16316 }
16317 _ACEOF
16318 rm -f conftest.$ac_objext
16319 if { (ac_try="$ac_compile"
16320 case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16323 esac
16324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16325 $as_echo "$ac_try_echo") >&5
16326 (eval "$ac_compile") 2>conftest.er1
16327 ac_status=$?
16328 grep -v '^ *+' conftest.er1 >conftest.err
16329 rm -f conftest.er1
16330 cat conftest.err >&5
16331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } && {
16333 test -z "$ac_c_werror_flag" ||
16334 test ! -s conftest.err
16335 } && test -s conftest.$ac_objext; then
16336 bakefile_cv_c_compiler___DECC=yes
16337 else
16338 $as_echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16340
16341 bakefile_cv_c_compiler___DECC=no
16342
16343 fi
16344
16345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16346
16347
16348 fi
16349 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
16350 $as_echo "$bakefile_cv_c_compiler___DECC" >&6; }
16351 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
16352 :; COMPAQCC=yes
16353 else
16354 :;
16355 fi
16356 ac_ext=c
16357 ac_cpp='$CPP $CPPFLAGS'
16358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16361
16362
16363
16364 ;;
16365
16366 SunOS)
16367
16368
16369 ac_ext=c
16370 ac_cpp='$CPP $CPPFLAGS'
16371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16374
16375 { $as_echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16376 $as_echo_n "checking whether we are using the Sun C compiler... " >&6; }
16377 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16378 $as_echo_n "(cached) " >&6
16379 else
16380 cat >conftest.$ac_ext <<_ACEOF
16381 /* confdefs.h. */
16382 _ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16386
16387 int
16388 main ()
16389 {
16390
16391 #ifndef __SUNPRO_C
16392 choke me
16393 #endif
16394
16395 ;
16396 return 0;
16397 }
16398 _ACEOF
16399 rm -f conftest.$ac_objext
16400 if { (ac_try="$ac_compile"
16401 case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404 esac
16405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16406 $as_echo "$ac_try_echo") >&5
16407 (eval "$ac_compile") 2>conftest.er1
16408 ac_status=$?
16409 grep -v '^ *+' conftest.er1 >conftest.err
16410 rm -f conftest.er1
16411 cat conftest.err >&5
16412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } && {
16414 test -z "$ac_c_werror_flag" ||
16415 test ! -s conftest.err
16416 } && test -s conftest.$ac_objext; then
16417 bakefile_cv_c_compiler___SUNPRO_C=yes
16418 else
16419 $as_echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16421
16422 bakefile_cv_c_compiler___SUNPRO_C=no
16423
16424 fi
16425
16426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16427
16428
16429 fi
16430 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16431 $as_echo "$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16432 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16433 :; SUNCC=yes
16434 else
16435 :;
16436 fi
16437 ac_ext=c
16438 ac_cpp='$CPP $CPPFLAGS'
16439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16442
16443
16444
16445 ;;
16446 esac
16447 fi
16448
16449
16450
16451 ac_ext=c
16452 ac_cpp='$CPP $CPPFLAGS'
16453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16456 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
16458 # On Suns, sometimes $CPP names a directory.
16459 if test -n "$CPP" && test -d "$CPP"; then
16460 CPP=
16461 fi
16462 if test -z "$CPP"; then
16463 if test "${ac_cv_prog_CPP+set}" = set; then
16464 $as_echo_n "(cached) " >&6
16465 else
16466 # Double quotes because CPP needs to be expanded
16467 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16468 do
16469 ac_preproc_ok=false
16470 for ac_c_preproc_warn_flag in '' yes
16471 do
16472 # Use a header file that comes with gcc, so configuring glibc
16473 # with a fresh cross-compiler works.
16474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16475 # <limits.h> exists even on freestanding compilers.
16476 # On the NeXT, cc -E runs the code through the compiler's parser,
16477 # not just through cpp. "Syntax error" is here to catch this case.
16478 cat >conftest.$ac_ext <<_ACEOF
16479 /* confdefs.h. */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16484 #ifdef __STDC__
16485 # include <limits.h>
16486 #else
16487 # include <assert.h>
16488 #endif
16489 Syntax error
16490 _ACEOF
16491 if { (ac_try="$ac_cpp conftest.$ac_ext"
16492 case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16495 esac
16496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16497 $as_echo "$ac_try_echo") >&5
16498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16499 ac_status=$?
16500 grep -v '^ *+' conftest.er1 >conftest.err
16501 rm -f conftest.er1
16502 cat conftest.err >&5
16503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } >/dev/null && {
16505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16506 test ! -s conftest.err
16507 }; then
16508 :
16509 else
16510 $as_echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16512
16513 # Broken: fails on valid input.
16514 continue
16515 fi
16516
16517 rm -f conftest.err conftest.$ac_ext
16518
16519 # OK, works on sane cases. Now check whether nonexistent headers
16520 # can be detected and how.
16521 cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h. */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #include <ac_nonexistent.h>
16528 _ACEOF
16529 if { (ac_try="$ac_cpp conftest.$ac_ext"
16530 case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16533 esac
16534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16535 $as_echo "$ac_try_echo") >&5
16536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } >/dev/null && {
16543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16545 }; then
16546 # Broken: success on invalid input.
16547 continue
16548 else
16549 $as_echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16551
16552 # Passes both tests.
16553 ac_preproc_ok=:
16554 break
16555 fi
16556
16557 rm -f conftest.err conftest.$ac_ext
16558
16559 done
16560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16561 rm -f conftest.err conftest.$ac_ext
16562 if $ac_preproc_ok; then
16563 break
16564 fi
16565
16566 done
16567 ac_cv_prog_CPP=$CPP
16568
16569 fi
16570 CPP=$ac_cv_prog_CPP
16571 else
16572 ac_cv_prog_CPP=$CPP
16573 fi
16574 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
16575 $as_echo "$CPP" >&6; }
16576 ac_preproc_ok=false
16577 for ac_c_preproc_warn_flag in '' yes
16578 do
16579 # Use a header file that comes with gcc, so configuring glibc
16580 # with a fresh cross-compiler works.
16581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16582 # <limits.h> exists even on freestanding compilers.
16583 # On the NeXT, cc -E runs the code through the compiler's parser,
16584 # not just through cpp. "Syntax error" is here to catch this case.
16585 cat >conftest.$ac_ext <<_ACEOF
16586 /* confdefs.h. */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591 #ifdef __STDC__
16592 # include <limits.h>
16593 #else
16594 # include <assert.h>
16595 #endif
16596 Syntax error
16597 _ACEOF
16598 if { (ac_try="$ac_cpp conftest.$ac_ext"
16599 case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16602 esac
16603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16604 $as_echo "$ac_try_echo") >&5
16605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16606 ac_status=$?
16607 grep -v '^ *+' conftest.er1 >conftest.err
16608 rm -f conftest.er1
16609 cat conftest.err >&5
16610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } >/dev/null && {
16612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16613 test ! -s conftest.err
16614 }; then
16615 :
16616 else
16617 $as_echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16619
16620 # Broken: fails on valid input.
16621 continue
16622 fi
16623
16624 rm -f conftest.err conftest.$ac_ext
16625
16626 # OK, works on sane cases. Now check whether nonexistent headers
16627 # can be detected and how.
16628 cat >conftest.$ac_ext <<_ACEOF
16629 /* confdefs.h. */
16630 _ACEOF
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16634 #include <ac_nonexistent.h>
16635 _ACEOF
16636 if { (ac_try="$ac_cpp conftest.$ac_ext"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16640 esac
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16644 ac_status=$?
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } >/dev/null && {
16650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16651 test ! -s conftest.err
16652 }; then
16653 # Broken: success on invalid input.
16654 continue
16655 else
16656 $as_echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16658
16659 # Passes both tests.
16660 ac_preproc_ok=:
16661 break
16662 fi
16663
16664 rm -f conftest.err conftest.$ac_ext
16665
16666 done
16667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16668 rm -f conftest.err conftest.$ac_ext
16669 if $ac_preproc_ok; then
16670 :
16671 else
16672 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16674 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16675 See \`config.log' for more details." >&5
16676 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16677 See \`config.log' for more details." >&2;}
16678 { (exit 1); exit 1; }; }; }
16679 fi
16680
16681 ac_ext=c
16682 ac_cpp='$CPP $CPPFLAGS'
16683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16686
16687
16688 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16689 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
16690 if test "${ac_cv_path_GREP+set}" = set; then
16691 $as_echo_n "(cached) " >&6
16692 else
16693 if test -z "$GREP"; then
16694 ac_path_GREP_found=false
16695 # Loop through the user's path and test for each of PROGNAME-LIST
16696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16698 do
16699 IFS=$as_save_IFS
16700 test -z "$as_dir" && as_dir=.
16701 for ac_prog in grep ggrep; do
16702 for ac_exec_ext in '' $ac_executable_extensions; do
16703 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16704 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16705 # Check for GNU ac_path_GREP and select it if it is found.
16706 # Check for GNU $ac_path_GREP
16707 case `"$ac_path_GREP" --version 2>&1` in
16708 *GNU*)
16709 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16710 *)
16711 ac_count=0
16712 $as_echo_n 0123456789 >"conftest.in"
16713 while :
16714 do
16715 cat "conftest.in" "conftest.in" >"conftest.tmp"
16716 mv "conftest.tmp" "conftest.in"
16717 cp "conftest.in" "conftest.nl"
16718 $as_echo 'GREP' >> "conftest.nl"
16719 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16721 ac_count=`expr $ac_count + 1`
16722 if test $ac_count -gt ${ac_path_GREP_max-0}; then
16723 # Best one so far, save it but keep looking for a better one
16724 ac_cv_path_GREP="$ac_path_GREP"
16725 ac_path_GREP_max=$ac_count
16726 fi
16727 # 10*(2^10) chars as input seems more than enough
16728 test $ac_count -gt 10 && break
16729 done
16730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16731 esac
16732
16733 $ac_path_GREP_found && break 3
16734 done
16735 done
16736 done
16737 IFS=$as_save_IFS
16738 if test -z "$ac_cv_path_GREP"; then
16739 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16740 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16741 { (exit 1); exit 1; }; }
16742 fi
16743 else
16744 ac_cv_path_GREP=$GREP
16745 fi
16746
16747 fi
16748 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16749 $as_echo "$ac_cv_path_GREP" >&6; }
16750 GREP="$ac_cv_path_GREP"
16751
16752
16753 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
16754 $as_echo_n "checking for egrep... " >&6; }
16755 if test "${ac_cv_path_EGREP+set}" = set; then
16756 $as_echo_n "(cached) " >&6
16757 else
16758 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16759 then ac_cv_path_EGREP="$GREP -E"
16760 else
16761 if test -z "$EGREP"; then
16762 ac_path_EGREP_found=false
16763 # Loop through the user's path and test for each of PROGNAME-LIST
16764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16766 do
16767 IFS=$as_save_IFS
16768 test -z "$as_dir" && as_dir=.
16769 for ac_prog in egrep; do
16770 for ac_exec_ext in '' $ac_executable_extensions; do
16771 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16772 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16773 # Check for GNU ac_path_EGREP and select it if it is found.
16774 # Check for GNU $ac_path_EGREP
16775 case `"$ac_path_EGREP" --version 2>&1` in
16776 *GNU*)
16777 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16778 *)
16779 ac_count=0
16780 $as_echo_n 0123456789 >"conftest.in"
16781 while :
16782 do
16783 cat "conftest.in" "conftest.in" >"conftest.tmp"
16784 mv "conftest.tmp" "conftest.in"
16785 cp "conftest.in" "conftest.nl"
16786 $as_echo 'EGREP' >> "conftest.nl"
16787 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16789 ac_count=`expr $ac_count + 1`
16790 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16791 # Best one so far, save it but keep looking for a better one
16792 ac_cv_path_EGREP="$ac_path_EGREP"
16793 ac_path_EGREP_max=$ac_count
16794 fi
16795 # 10*(2^10) chars as input seems more than enough
16796 test $ac_count -gt 10 && break
16797 done
16798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16799 esac
16800
16801 $ac_path_EGREP_found && break 3
16802 done
16803 done
16804 done
16805 IFS=$as_save_IFS
16806 if test -z "$ac_cv_path_EGREP"; then
16807 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16808 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16809 { (exit 1); exit 1; }; }
16810 fi
16811 else
16812 ac_cv_path_EGREP=$EGREP
16813 fi
16814
16815 fi
16816 fi
16817 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16818 $as_echo "$ac_cv_path_EGREP" >&6; }
16819 EGREP="$ac_cv_path_EGREP"
16820
16821
16822 if test $ac_cv_c_compiler_gnu = yes; then
16823 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16824 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
16825 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16826 $as_echo_n "(cached) " >&6
16827 else
16828 ac_pattern="Autoconf.*'x'"
16829 cat >conftest.$ac_ext <<_ACEOF
16830 /* confdefs.h. */
16831 _ACEOF
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h. */
16835 #include <sgtty.h>
16836 Autoconf TIOCGETP
16837 _ACEOF
16838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16839 $EGREP "$ac_pattern" >/dev/null 2>&1; then
16840 ac_cv_prog_gcc_traditional=yes
16841 else
16842 ac_cv_prog_gcc_traditional=no
16843 fi
16844 rm -f conftest*
16845
16846
16847 if test $ac_cv_prog_gcc_traditional = no; then
16848 cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h. */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 #include <termio.h>
16855 Autoconf TCGETA
16856 _ACEOF
16857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16858 $EGREP "$ac_pattern" >/dev/null 2>&1; then
16859 ac_cv_prog_gcc_traditional=yes
16860 fi
16861 rm -f conftest*
16862
16863 fi
16864 fi
16865 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16866 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
16867 if test $ac_cv_prog_gcc_traditional = yes; then
16868 CC="$CC -traditional"
16869 fi
16870 fi
16871
16872
16873 CXXFLAGS=${CXXFLAGS:=}
16874
16875
16876
16877 ac_ext=cpp
16878 ac_cpp='$CXXCPP $CPPFLAGS'
16879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16882 if test -z "$CXX"; then
16883 if test -n "$CCC"; then
16884 CXX=$CCC
16885 else
16886 if test -n "$ac_tool_prefix"; then
16887 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16888 do
16889 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16891 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16892 $as_echo_n "checking for $ac_word... " >&6; }
16893 if test "${ac_cv_prog_CXX+set}" = set; then
16894 $as_echo_n "(cached) " >&6
16895 else
16896 if test -n "$CXX"; then
16897 ac_cv_prog_CXX="$CXX" # Let the user override the test.
16898 else
16899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16900 for as_dir in $PATH
16901 do
16902 IFS=$as_save_IFS
16903 test -z "$as_dir" && as_dir=.
16904 for ac_exec_ext in '' $ac_executable_extensions; do
16905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16906 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16907 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16908 break 2
16909 fi
16910 done
16911 done
16912 IFS=$as_save_IFS
16913
16914 fi
16915 fi
16916 CXX=$ac_cv_prog_CXX
16917 if test -n "$CXX"; then
16918 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
16919 $as_echo "$CXX" >&6; }
16920 else
16921 { $as_echo "$as_me:$LINENO: result: no" >&5
16922 $as_echo "no" >&6; }
16923 fi
16924
16925
16926 test -n "$CXX" && break
16927 done
16928 fi
16929 if test -z "$CXX"; then
16930 ac_ct_CXX=$CXX
16931 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16932 do
16933 # Extract the first word of "$ac_prog", so it can be a program name with args.
16934 set dummy $ac_prog; ac_word=$2
16935 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16936 $as_echo_n "checking for $ac_word... " >&6; }
16937 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16938 $as_echo_n "(cached) " >&6
16939 else
16940 if test -n "$ac_ct_CXX"; then
16941 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16942 else
16943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16944 for as_dir in $PATH
16945 do
16946 IFS=$as_save_IFS
16947 test -z "$as_dir" && as_dir=.
16948 for ac_exec_ext in '' $ac_executable_extensions; do
16949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16950 ac_cv_prog_ac_ct_CXX="$ac_prog"
16951 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16952 break 2
16953 fi
16954 done
16955 done
16956 IFS=$as_save_IFS
16957
16958 fi
16959 fi
16960 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16961 if test -n "$ac_ct_CXX"; then
16962 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16963 $as_echo "$ac_ct_CXX" >&6; }
16964 else
16965 { $as_echo "$as_me:$LINENO: result: no" >&5
16966 $as_echo "no" >&6; }
16967 fi
16968
16969
16970 test -n "$ac_ct_CXX" && break
16971 done
16972
16973 if test "x$ac_ct_CXX" = x; then
16974 CXX="g++"
16975 else
16976 case $cross_compiling:$ac_tool_warned in
16977 yes:)
16978 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16980 ac_tool_warned=yes ;;
16981 esac
16982 CXX=$ac_ct_CXX
16983 fi
16984 fi
16985
16986 fi
16987 fi
16988 # Provide some information about the compiler.
16989 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16990 set X $ac_compile
16991 ac_compiler=$2
16992 { (ac_try="$ac_compiler --version >&5"
16993 case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16996 esac
16997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16998 $as_echo "$ac_try_echo") >&5
16999 (eval "$ac_compiler --version >&5") 2>&5
17000 ac_status=$?
17001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }
17003 { (ac_try="$ac_compiler -v >&5"
17004 case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17007 esac
17008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17009 $as_echo "$ac_try_echo") >&5
17010 (eval "$ac_compiler -v >&5") 2>&5
17011 ac_status=$?
17012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }
17014 { (ac_try="$ac_compiler -V >&5"
17015 case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17018 esac
17019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17020 $as_echo "$ac_try_echo") >&5
17021 (eval "$ac_compiler -V >&5") 2>&5
17022 ac_status=$?
17023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }
17025
17026 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17027 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
17028 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17029 $as_echo_n "(cached) " >&6
17030 else
17031 cat >conftest.$ac_ext <<_ACEOF
17032 /* confdefs.h. */
17033 _ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037
17038 int
17039 main ()
17040 {
17041 #ifndef __GNUC__
17042 choke me
17043 #endif
17044
17045 ;
17046 return 0;
17047 }
17048 _ACEOF
17049 rm -f conftest.$ac_objext
17050 if { (ac_try="$ac_compile"
17051 case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17054 esac
17055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17056 $as_echo "$ac_try_echo") >&5
17057 (eval "$ac_compile") 2>conftest.er1
17058 ac_status=$?
17059 grep -v '^ *+' conftest.er1 >conftest.err
17060 rm -f conftest.er1
17061 cat conftest.err >&5
17062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } && {
17064 test -z "$ac_cxx_werror_flag" ||
17065 test ! -s conftest.err
17066 } && test -s conftest.$ac_objext; then
17067 ac_compiler_gnu=yes
17068 else
17069 $as_echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.$ac_ext >&5
17071
17072 ac_compiler_gnu=no
17073 fi
17074
17075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17076 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17077
17078 fi
17079 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17080 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
17081 if test $ac_compiler_gnu = yes; then
17082 GXX=yes
17083 else
17084 GXX=
17085 fi
17086 ac_test_CXXFLAGS=${CXXFLAGS+set}
17087 ac_save_CXXFLAGS=$CXXFLAGS
17088 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17089 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
17090 if test "${ac_cv_prog_cxx_g+set}" = set; then
17091 $as_echo_n "(cached) " >&6
17092 else
17093 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17094 ac_cxx_werror_flag=yes
17095 ac_cv_prog_cxx_g=no
17096 CXXFLAGS="-g"
17097 cat >conftest.$ac_ext <<_ACEOF
17098 /* confdefs.h. */
17099 _ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17103
17104 int
17105 main ()
17106 {
17107
17108 ;
17109 return 0;
17110 }
17111 _ACEOF
17112 rm -f conftest.$ac_objext
17113 if { (ac_try="$ac_compile"
17114 case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17117 esac
17118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17119 $as_echo "$ac_try_echo") >&5
17120 (eval "$ac_compile") 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } && {
17127 test -z "$ac_cxx_werror_flag" ||
17128 test ! -s conftest.err
17129 } && test -s conftest.$ac_objext; then
17130 ac_cv_prog_cxx_g=yes
17131 else
17132 $as_echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17134
17135 CXXFLAGS=""
17136 cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h. */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142
17143 int
17144 main ()
17145 {
17146
17147 ;
17148 return 0;
17149 }
17150 _ACEOF
17151 rm -f conftest.$ac_objext
17152 if { (ac_try="$ac_compile"
17153 case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17156 esac
17157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17158 $as_echo "$ac_try_echo") >&5
17159 (eval "$ac_compile") 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } && {
17166 test -z "$ac_cxx_werror_flag" ||
17167 test ! -s conftest.err
17168 } && test -s conftest.$ac_objext; then
17169 :
17170 else
17171 $as_echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17173
17174 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17175 CXXFLAGS="-g"
17176 cat >conftest.$ac_ext <<_ACEOF
17177 /* confdefs.h. */
17178 _ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h. */
17182
17183 int
17184 main ()
17185 {
17186
17187 ;
17188 return 0;
17189 }
17190 _ACEOF
17191 rm -f conftest.$ac_objext
17192 if { (ac_try="$ac_compile"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196 esac
17197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17198 $as_echo "$ac_try_echo") >&5
17199 (eval "$ac_compile") 2>conftest.er1
17200 ac_status=$?
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
17204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } && {
17206 test -z "$ac_cxx_werror_flag" ||
17207 test ! -s conftest.err
17208 } && test -s conftest.$ac_objext; then
17209 ac_cv_prog_cxx_g=yes
17210 else
17211 $as_echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17213
17214
17215 fi
17216
17217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17218 fi
17219
17220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221 fi
17222
17223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17224 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17225 fi
17226 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17227 $as_echo "$ac_cv_prog_cxx_g" >&6; }
17228 if test "$ac_test_CXXFLAGS" = set; then
17229 CXXFLAGS=$ac_save_CXXFLAGS
17230 elif test $ac_cv_prog_cxx_g = yes; then
17231 if test "$GXX" = yes; then
17232 CXXFLAGS="-g -O2"
17233 else
17234 CXXFLAGS="-g"
17235 fi
17236 else
17237 if test "$GXX" = yes; then
17238 CXXFLAGS="-O2"
17239 else
17240 CXXFLAGS=
17241 fi
17242 fi
17243 ac_ext=c
17244 ac_cpp='$CPP $CPPFLAGS'
17245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17248
17249
17250
17251
17252 ac_ext=cpp
17253 ac_cpp='$CXXCPP $CPPFLAGS'
17254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17257
17258 { $as_echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
17259 $as_echo_n "checking whether we are using the Intel C++ compiler... " >&6; }
17260 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
17261 $as_echo_n "(cached) " >&6
17262 else
17263 cat >conftest.$ac_ext <<_ACEOF
17264 /* confdefs.h. */
17265 _ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h. */
17269
17270 int
17271 main ()
17272 {
17273
17274 #ifndef __INTEL_COMPILER
17275 choke me
17276 #endif
17277
17278 ;
17279 return 0;
17280 }
17281 _ACEOF
17282 rm -f conftest.$ac_objext
17283 if { (ac_try="$ac_compile"
17284 case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17287 esac
17288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17289 $as_echo "$ac_try_echo") >&5
17290 (eval "$ac_compile") 2>conftest.er1
17291 ac_status=$?
17292 grep -v '^ *+' conftest.er1 >conftest.err
17293 rm -f conftest.er1
17294 cat conftest.err >&5
17295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } && {
17297 test -z "$ac_cxx_werror_flag" ||
17298 test ! -s conftest.err
17299 } && test -s conftest.$ac_objext; then
17300 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
17301 else
17302 $as_echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17304
17305 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
17306
17307 fi
17308
17309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310
17311
17312 fi
17313 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
17314 $as_echo "$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
17315 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
17316 :; INTELCXX=yes
17317 else
17318 :;
17319 fi
17320 ac_ext=c
17321 ac_cpp='$CPP $CPPFLAGS'
17322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17325
17326
17327
17328
17329 if test "$INTELCXX" = "yes"; then
17330
17331
17332 ac_ext=cpp
17333 ac_cpp='$CXXCPP $CPPFLAGS'
17334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17337
17338 { $as_echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
17339 $as_echo_n "checking whether we are using Intel C++ compiler v8 or later... " >&6; }
17340 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
17341 $as_echo_n "(cached) " >&6
17342 else
17343 cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h. */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349
17350 int
17351 main ()
17352 {
17353
17354 #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
17355 choke me
17356 #endif
17357
17358 ;
17359 return 0;
17360 }
17361 _ACEOF
17362 rm -f conftest.$ac_objext
17363 if { (ac_try="$ac_compile"
17364 case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17367 esac
17368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17369 $as_echo "$ac_try_echo") >&5
17370 (eval "$ac_compile") 2>conftest.er1
17371 ac_status=$?
17372 grep -v '^ *+' conftest.er1 >conftest.err
17373 rm -f conftest.er1
17374 cat conftest.err >&5
17375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } && {
17377 test -z "$ac_cxx_werror_flag" ||
17378 test ! -s conftest.err
17379 } && test -s conftest.$ac_objext; then
17380 bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
17381 else
17382 $as_echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17384
17385 bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
17386
17387 fi
17388
17389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17390
17391
17392 fi
17393 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17394 $as_echo "$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17395 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17396 :; INTELCXX8=yes
17397 else
17398 :;
17399 fi
17400 ac_ext=c
17401 ac_cpp='$CPP $CPPFLAGS'
17402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17405
17406
17407
17408
17409
17410 ac_ext=cpp
17411 ac_cpp='$CXXCPP $CPPFLAGS'
17412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17415
17416 { $as_echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17417 $as_echo_n "checking whether we are using Intel C++ compiler v10 or later... " >&6; }
17418 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17419 $as_echo_n "(cached) " >&6
17420 else
17421 cat >conftest.$ac_ext <<_ACEOF
17422 /* confdefs.h. */
17423 _ACEOF
17424 cat confdefs.h >>conftest.$ac_ext
17425 cat >>conftest.$ac_ext <<_ACEOF
17426 /* end confdefs.h. */
17427
17428 int
17429 main ()
17430 {
17431
17432 #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17433 choke me
17434 #endif
17435
17436 ;
17437 return 0;
17438 }
17439 _ACEOF
17440 rm -f conftest.$ac_objext
17441 if { (ac_try="$ac_compile"
17442 case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17445 esac
17446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17447 $as_echo "$ac_try_echo") >&5
17448 (eval "$ac_compile") 2>conftest.er1
17449 ac_status=$?
17450 grep -v '^ *+' conftest.er1 >conftest.err
17451 rm -f conftest.er1
17452 cat conftest.err >&5
17453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } && {
17455 test -z "$ac_cxx_werror_flag" ||
17456 test ! -s conftest.err
17457 } && test -s conftest.$ac_objext; then
17458 bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17459 else
17460 $as_echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17462
17463 bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17464
17465 fi
17466
17467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17468
17469
17470 fi
17471 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17472 $as_echo "$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17473 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17474 :; INTELCXX10=yes
17475 else
17476 :;
17477 fi
17478 ac_ext=c
17479 ac_cpp='$CPP $CPPFLAGS'
17480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17483
17484
17485
17486 fi
17487
17488 if test "x$GCXX" != "xyes"; then
17489 if test "xCXX" = "xC"; then
17490 { $as_echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17491 $as_echo_n "checking if the C compiler requires -ext o... " >&6; }
17492 if test "${bakefile_cv_c_exto+set}" = set; then
17493 $as_echo_n "(cached) " >&6
17494 else
17495 cat >conftest.$ac_ext <<_ACEOF
17496 /* confdefs.h. */
17497 _ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17501
17502 int
17503 main ()
17504 {
17505
17506 ;
17507 return 0;
17508 }
17509 _ACEOF
17510 rm -f conftest.$ac_objext conftest.$ac_ext.o
17511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17512 (eval $ac_compile) 2>&5
17513 ac_status=$?
17514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; then
17516 for ac_file in `(ls conftest.* 2>/dev/null)`; do
17517 case $ac_file in
17518 conftest.$ac_ext.o)
17519 bakefile_cv_c_exto="-ext o"
17520 ;;
17521 *)
17522 ;;
17523 esac
17524 done
17525 else
17526 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17528 { { $as_echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17529 See \`config.log' for more details." >&5
17530 $as_echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17531 See \`config.log' for more details." >&2;}
17532 { (exit 1); exit 1; }; }; }
17533
17534 fi
17535
17536 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17537
17538 fi
17539 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17540 $as_echo "$bakefile_cv_c_exto" >&6; }
17541 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17542 if test "c" = "c"; then
17543 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17544 fi
17545 if test "c" = "cxx"; then
17546 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17547 fi
17548 fi
17549
17550 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17551 unset ac_cv_prog_cc_g
17552 ac_test_CFLAGS=${CFLAGS+set}
17553 ac_save_CFLAGS=$CFLAGS
17554 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17555 $as_echo_n "checking whether $CC accepts -g... " >&6; }
17556 if test "${ac_cv_prog_cc_g+set}" = set; then
17557 $as_echo_n "(cached) " >&6
17558 else
17559 ac_save_c_werror_flag=$ac_c_werror_flag
17560 ac_c_werror_flag=yes
17561 ac_cv_prog_cc_g=no
17562 CFLAGS="-g"
17563 cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h. */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17569
17570 int
17571 main ()
17572 {
17573
17574 ;
17575 return 0;
17576 }
17577 _ACEOF
17578 rm -f conftest.$ac_objext
17579 if { (ac_try="$ac_compile"
17580 case "(($ac_try" in
17581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582 *) ac_try_echo=$ac_try;;
17583 esac
17584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17585 $as_echo "$ac_try_echo") >&5
17586 (eval "$ac_compile") 2>conftest.er1
17587 ac_status=$?
17588 grep -v '^ *+' conftest.er1 >conftest.err
17589 rm -f conftest.er1
17590 cat conftest.err >&5
17591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } && {
17593 test -z "$ac_c_werror_flag" ||
17594 test ! -s conftest.err
17595 } && test -s conftest.$ac_objext; then
17596 ac_cv_prog_cc_g=yes
17597 else
17598 $as_echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17600
17601 CFLAGS=""
17602 cat >conftest.$ac_ext <<_ACEOF
17603 /* confdefs.h. */
17604 _ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h. */
17608
17609 int
17610 main ()
17611 {
17612
17613 ;
17614 return 0;
17615 }
17616 _ACEOF
17617 rm -f conftest.$ac_objext
17618 if { (ac_try="$ac_compile"
17619 case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17622 esac
17623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17624 $as_echo "$ac_try_echo") >&5
17625 (eval "$ac_compile") 2>conftest.er1
17626 ac_status=$?
17627 grep -v '^ *+' conftest.er1 >conftest.err
17628 rm -f conftest.er1
17629 cat conftest.err >&5
17630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } && {
17632 test -z "$ac_c_werror_flag" ||
17633 test ! -s conftest.err
17634 } && test -s conftest.$ac_objext; then
17635 :
17636 else
17637 $as_echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17639
17640 ac_c_werror_flag=$ac_save_c_werror_flag
17641 CFLAGS="-g"
17642 cat >conftest.$ac_ext <<_ACEOF
17643 /* confdefs.h. */
17644 _ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17648
17649 int
17650 main ()
17651 {
17652
17653 ;
17654 return 0;
17655 }
17656 _ACEOF
17657 rm -f conftest.$ac_objext
17658 if { (ac_try="$ac_compile"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17662 esac
17663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17664 $as_echo "$ac_try_echo") >&5
17665 (eval "$ac_compile") 2>conftest.er1
17666 ac_status=$?
17667 grep -v '^ *+' conftest.er1 >conftest.err
17668 rm -f conftest.er1
17669 cat conftest.err >&5
17670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest.$ac_objext; then
17675 ac_cv_prog_cc_g=yes
17676 else
17677 $as_echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17679
17680
17681 fi
17682
17683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17684 fi
17685
17686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17687 fi
17688
17689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17690 ac_c_werror_flag=$ac_save_c_werror_flag
17691 fi
17692 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17693 $as_echo "$ac_cv_prog_cc_g" >&6; }
17694 if test "$ac_test_CFLAGS" = set; then
17695 CFLAGS=$ac_save_CFLAGS
17696 elif test $ac_cv_prog_cc_g = yes; then
17697 if test "$GCC" = yes; then
17698 CFLAGS="-g -O2"
17699 else
17700 CFLAGS="-g"
17701 fi
17702 else
17703 if test "$GCC" = yes; then
17704 CFLAGS="-O2"
17705 else
17706 CFLAGS=
17707 fi
17708 fi
17709 fi
17710 fi
17711
17712 case `uname -s` in
17713 AIX*)
17714
17715
17716 ac_ext=cpp
17717 ac_cpp='$CXXCPP $CPPFLAGS'
17718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17721
17722 { $as_echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17723 $as_echo_n "checking whether we are using the IBM xlC C++ compiler... " >&6; }
17724 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17725 $as_echo_n "(cached) " >&6
17726 else
17727 cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h. */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733
17734 int
17735 main ()
17736 {
17737
17738 #ifndef __xlC__
17739 choke me
17740 #endif
17741
17742 ;
17743 return 0;
17744 }
17745 _ACEOF
17746 rm -f conftest.$ac_objext
17747 if { (ac_try="$ac_compile"
17748 case "(($ac_try" in
17749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750 *) ac_try_echo=$ac_try;;
17751 esac
17752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17753 $as_echo "$ac_try_echo") >&5
17754 (eval "$ac_compile") 2>conftest.er1
17755 ac_status=$?
17756 grep -v '^ *+' conftest.er1 >conftest.err
17757 rm -f conftest.er1
17758 cat conftest.err >&5
17759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); } && {
17761 test -z "$ac_cxx_werror_flag" ||
17762 test ! -s conftest.err
17763 } && test -s conftest.$ac_objext; then
17764 bakefile_cv_cxx_compiler___xlC__=yes
17765 else
17766 $as_echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17768
17769 bakefile_cv_cxx_compiler___xlC__=no
17770
17771 fi
17772
17773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774
17775
17776 fi
17777 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17778 $as_echo "$bakefile_cv_cxx_compiler___xlC__" >&6; }
17779 if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17780 :; XLCXX=yes
17781 else
17782 :;
17783 fi
17784 ac_ext=c
17785 ac_cpp='$CPP $CPPFLAGS'
17786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17789
17790
17791
17792 ;;
17793
17794 Darwin)
17795
17796
17797 ac_ext=cpp
17798 ac_cpp='$CXXCPP $CPPFLAGS'
17799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17802
17803 { $as_echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17804 $as_echo_n "checking whether we are using the Metrowerks C++ compiler... " >&6; }
17805 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17806 $as_echo_n "(cached) " >&6
17807 else
17808 cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h. */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17814
17815 int
17816 main ()
17817 {
17818
17819 #ifndef __MWERKS__
17820 choke me
17821 #endif
17822
17823 ;
17824 return 0;
17825 }
17826 _ACEOF
17827 rm -f conftest.$ac_objext
17828 if { (ac_try="$ac_compile"
17829 case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17832 esac
17833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17834 $as_echo "$ac_try_echo") >&5
17835 (eval "$ac_compile") 2>conftest.er1
17836 ac_status=$?
17837 grep -v '^ *+' conftest.er1 >conftest.err
17838 rm -f conftest.er1
17839 cat conftest.err >&5
17840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } && {
17842 test -z "$ac_cxx_werror_flag" ||
17843 test ! -s conftest.err
17844 } && test -s conftest.$ac_objext; then
17845 bakefile_cv_cxx_compiler___MWERKS__=yes
17846 else
17847 $as_echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17849
17850 bakefile_cv_cxx_compiler___MWERKS__=no
17851
17852 fi
17853
17854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17855
17856
17857 fi
17858 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17859 $as_echo "$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17860 if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17861 :; MWCXX=yes
17862 else
17863 :;
17864 fi
17865 ac_ext=c
17866 ac_cpp='$CPP $CPPFLAGS'
17867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17870
17871
17872
17873 if test "$MWCXX" != "yes"; then
17874
17875
17876 ac_ext=cpp
17877 ac_cpp='$CXXCPP $CPPFLAGS'
17878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17881
17882 { $as_echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17883 $as_echo_n "checking whether we are using the IBM xlC C++ compiler... " >&6; }
17884 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17885 $as_echo_n "(cached) " >&6
17886 else
17887 cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h. */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17893
17894 int
17895 main ()
17896 {
17897
17898 #ifndef __xlC__
17899 choke me
17900 #endif
17901
17902 ;
17903 return 0;
17904 }
17905 _ACEOF
17906 rm -f conftest.$ac_objext
17907 if { (ac_try="$ac_compile"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17911 esac
17912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17913 $as_echo "$ac_try_echo") >&5
17914 (eval "$ac_compile") 2>conftest.er1
17915 ac_status=$?
17916 grep -v '^ *+' conftest.er1 >conftest.err
17917 rm -f conftest.er1
17918 cat conftest.err >&5
17919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } && {
17921 test -z "$ac_cxx_werror_flag" ||
17922 test ! -s conftest.err
17923 } && test -s conftest.$ac_objext; then
17924 bakefile_cv_cxx_compiler___xlC__=yes
17925 else
17926 $as_echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929 bakefile_cv_cxx_compiler___xlC__=no
17930
17931 fi
17932
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934
17935
17936 fi
17937 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17938 $as_echo "$bakefile_cv_cxx_compiler___xlC__" >&6; }
17939 if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17940 :; XLCXX=yes
17941 else
17942 :;
17943 fi
17944 ac_ext=c
17945 ac_cpp='$CPP $CPPFLAGS'
17946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17949
17950
17951
17952 fi
17953 ;;
17954
17955 IRIX*)
17956
17957
17958 ac_ext=cpp
17959 ac_cpp='$CXXCPP $CPPFLAGS'
17960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17963
17964 { $as_echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17965 $as_echo_n "checking whether we are using the SGI C++ compiler... " >&6; }
17966 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17967 $as_echo_n "(cached) " >&6
17968 else
17969 cat >conftest.$ac_ext <<_ACEOF
17970 /* confdefs.h. */
17971 _ACEOF
17972 cat confdefs.h >>conftest.$ac_ext
17973 cat >>conftest.$ac_ext <<_ACEOF
17974 /* end confdefs.h. */
17975
17976 int
17977 main ()
17978 {
17979
17980 #ifndef _SGI_COMPILER_VERSION
17981 choke me
17982 #endif
17983
17984 ;
17985 return 0;
17986 }
17987 _ACEOF
17988 rm -f conftest.$ac_objext
17989 if { (ac_try="$ac_compile"
17990 case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17993 esac
17994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17995 $as_echo "$ac_try_echo") >&5
17996 (eval "$ac_compile") 2>conftest.er1
17997 ac_status=$?
17998 grep -v '^ *+' conftest.er1 >conftest.err
17999 rm -f conftest.er1
18000 cat conftest.err >&5
18001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } && {
18003 test -z "$ac_cxx_werror_flag" ||
18004 test ! -s conftest.err
18005 } && test -s conftest.$ac_objext; then
18006 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
18007 else
18008 $as_echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18010
18011 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
18012
18013 fi
18014
18015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18016
18017
18018 fi
18019 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
18020 $as_echo "$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
18021 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18022 :; SGICXX=yes
18023 else
18024 :;
18025 fi
18026 ac_ext=c
18027 ac_cpp='$CPP $CPPFLAGS'
18028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18031
18032
18033
18034 ;;
18035
18036 Linux*)
18037 if test "$INTELCXX" != "yes"; then
18038
18039
18040 ac_ext=cpp
18041 ac_cpp='$CXXCPP $CPPFLAGS'
18042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18045
18046 { $as_echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18047 $as_echo_n "checking whether we are using the Sun C++ compiler... " >&6; }
18048 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18049 $as_echo_n "(cached) " >&6
18050 else
18051 cat >conftest.$ac_ext <<_ACEOF
18052 /* confdefs.h. */
18053 _ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18057
18058 int
18059 main ()
18060 {
18061
18062 #ifndef __SUNPRO_CC
18063 choke me
18064 #endif
18065
18066 ;
18067 return 0;
18068 }
18069 _ACEOF
18070 rm -f conftest.$ac_objext
18071 if { (ac_try="$ac_compile"
18072 case "(($ac_try" in
18073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18075 esac
18076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18077 $as_echo "$ac_try_echo") >&5
18078 (eval "$ac_compile") 2>conftest.er1
18079 ac_status=$?
18080 grep -v '^ *+' conftest.er1 >conftest.err
18081 rm -f conftest.er1
18082 cat conftest.err >&5
18083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } && {
18085 test -z "$ac_cxx_werror_flag" ||
18086 test ! -s conftest.err
18087 } && test -s conftest.$ac_objext; then
18088 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18089 else
18090 $as_echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.$ac_ext >&5
18092
18093 bakefile_cv_cxx_compiler___SUNPRO_CC=no
18094
18095 fi
18096
18097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18098
18099
18100 fi
18101 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18102 $as_echo "$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18103 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18104 :; SUNCXX=yes
18105 else
18106 :;
18107 fi
18108 ac_ext=c
18109 ac_cpp='$CPP $CPPFLAGS'
18110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18113
18114
18115
18116 fi
18117 ;;
18118
18119 HP-UX*)
18120
18121
18122 ac_ext=cpp
18123 ac_cpp='$CXXCPP $CPPFLAGS'
18124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18127
18128 { $as_echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18129 $as_echo_n "checking whether we are using the HP C++ compiler... " >&6; }
18130 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18131 $as_echo_n "(cached) " >&6
18132 else
18133 cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h. */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18139
18140 int
18141 main ()
18142 {
18143
18144 #ifndef __HP_aCC
18145 choke me
18146 #endif
18147
18148 ;
18149 return 0;
18150 }
18151 _ACEOF
18152 rm -f conftest.$ac_objext
18153 if { (ac_try="$ac_compile"
18154 case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18157 esac
18158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18159 $as_echo "$ac_try_echo") >&5
18160 (eval "$ac_compile") 2>conftest.er1
18161 ac_status=$?
18162 grep -v '^ *+' conftest.er1 >conftest.err
18163 rm -f conftest.er1
18164 cat conftest.err >&5
18165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } && {
18167 test -z "$ac_cxx_werror_flag" ||
18168 test ! -s conftest.err
18169 } && test -s conftest.$ac_objext; then
18170 bakefile_cv_cxx_compiler___HP_aCC=yes
18171 else
18172 $as_echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18174
18175 bakefile_cv_cxx_compiler___HP_aCC=no
18176
18177 fi
18178
18179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18180
18181
18182 fi
18183 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18184 $as_echo "$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18185 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18186 :; HPCXX=yes
18187 else
18188 :;
18189 fi
18190 ac_ext=c
18191 ac_cpp='$CPP $CPPFLAGS'
18192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18195
18196
18197
18198 ;;
18199
18200 OSF1)
18201
18202
18203 ac_ext=cpp
18204 ac_cpp='$CXXCPP $CPPFLAGS'
18205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18208
18209 { $as_echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18210 $as_echo_n "checking whether we are using the Compaq C++ compiler... " >&6; }
18211 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18212 $as_echo_n "(cached) " >&6
18213 else
18214 cat >conftest.$ac_ext <<_ACEOF
18215 /* confdefs.h. */
18216 _ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18220
18221 int
18222 main ()
18223 {
18224
18225 #ifndef __DECCXX
18226 choke me
18227 #endif
18228
18229 ;
18230 return 0;
18231 }
18232 _ACEOF
18233 rm -f conftest.$ac_objext
18234 if { (ac_try="$ac_compile"
18235 case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18238 esac
18239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18240 $as_echo "$ac_try_echo") >&5
18241 (eval "$ac_compile") 2>conftest.er1
18242 ac_status=$?
18243 grep -v '^ *+' conftest.er1 >conftest.err
18244 rm -f conftest.er1
18245 cat conftest.err >&5
18246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } && {
18248 test -z "$ac_cxx_werror_flag" ||
18249 test ! -s conftest.err
18250 } && test -s conftest.$ac_objext; then
18251 bakefile_cv_cxx_compiler___DECCXX=yes
18252 else
18253 $as_echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18255
18256 bakefile_cv_cxx_compiler___DECCXX=no
18257
18258 fi
18259
18260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18261
18262
18263 fi
18264 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
18265 $as_echo "$bakefile_cv_cxx_compiler___DECCXX" >&6; }
18266 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
18267 :; COMPAQCXX=yes
18268 else
18269 :;
18270 fi
18271 ac_ext=c
18272 ac_cpp='$CPP $CPPFLAGS'
18273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18276
18277
18278
18279 ;;
18280
18281 SunOS)
18282
18283
18284 ac_ext=cpp
18285 ac_cpp='$CXXCPP $CPPFLAGS'
18286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18289
18290 { $as_echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18291 $as_echo_n "checking whether we are using the Sun C++ compiler... " >&6; }
18292 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18293 $as_echo_n "(cached) " >&6
18294 else
18295 cat >conftest.$ac_ext <<_ACEOF
18296 /* confdefs.h. */
18297 _ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h. */
18301
18302 int
18303 main ()
18304 {
18305
18306 #ifndef __SUNPRO_CC
18307 choke me
18308 #endif
18309
18310 ;
18311 return 0;
18312 }
18313 _ACEOF
18314 rm -f conftest.$ac_objext
18315 if { (ac_try="$ac_compile"
18316 case "(($ac_try" in
18317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318 *) ac_try_echo=$ac_try;;
18319 esac
18320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18321 $as_echo "$ac_try_echo") >&5
18322 (eval "$ac_compile") 2>conftest.er1
18323 ac_status=$?
18324 grep -v '^ *+' conftest.er1 >conftest.err
18325 rm -f conftest.er1
18326 cat conftest.err >&5
18327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } && {
18329 test -z "$ac_cxx_werror_flag" ||
18330 test ! -s conftest.err
18331 } && test -s conftest.$ac_objext; then
18332 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18333 else
18334 $as_echo "$as_me: failed program was:" >&5
18335 sed 's/^/| /' conftest.$ac_ext >&5
18336
18337 bakefile_cv_cxx_compiler___SUNPRO_CC=no
18338
18339 fi
18340
18341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18342
18343
18344 fi
18345 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18346 $as_echo "$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18347 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18348 :; SUNCXX=yes
18349 else
18350 :;
18351 fi
18352 ac_ext=c
18353 ac_cpp='$CPP $CPPFLAGS'
18354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18357
18358
18359
18360 ;;
18361 esac
18362 fi
18363
18364
18365
18366 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
18367 { { $as_echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
18368 $as_echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
18369 { (exit 1); exit 1; }; }
18370 fi
18371
18372 if test "x$SUNCXX" != xyes; then
18373 if test -n "$ac_tool_prefix"; then
18374 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18375 set dummy ${ac_tool_prefix}ar; ac_word=$2
18376 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18377 $as_echo_n "checking for $ac_word... " >&6; }
18378 if test "${ac_cv_prog_AR+set}" = set; then
18379 $as_echo_n "(cached) " >&6
18380 else
18381 if test -n "$AR"; then
18382 ac_cv_prog_AR="$AR" # Let the user override the test.
18383 else
18384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18385 for as_dir in $PATH
18386 do
18387 IFS=$as_save_IFS
18388 test -z "$as_dir" && as_dir=.
18389 for ac_exec_ext in '' $ac_executable_extensions; do
18390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18391 ac_cv_prog_AR="${ac_tool_prefix}ar"
18392 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18393 break 2
18394 fi
18395 done
18396 done
18397 IFS=$as_save_IFS
18398
18399 fi
18400 fi
18401 AR=$ac_cv_prog_AR
18402 if test -n "$AR"; then
18403 { $as_echo "$as_me:$LINENO: result: $AR" >&5
18404 $as_echo "$AR" >&6; }
18405 else
18406 { $as_echo "$as_me:$LINENO: result: no" >&5
18407 $as_echo "no" >&6; }
18408 fi
18409
18410
18411 fi
18412 if test -z "$ac_cv_prog_AR"; then
18413 ac_ct_AR=$AR
18414 # Extract the first word of "ar", so it can be a program name with args.
18415 set dummy ar; ac_word=$2
18416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18417 $as_echo_n "checking for $ac_word... " >&6; }
18418 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18419 $as_echo_n "(cached) " >&6
18420 else
18421 if test -n "$ac_ct_AR"; then
18422 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18423 else
18424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18425 for as_dir in $PATH
18426 do
18427 IFS=$as_save_IFS
18428 test -z "$as_dir" && as_dir=.
18429 for ac_exec_ext in '' $ac_executable_extensions; do
18430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18431 ac_cv_prog_ac_ct_AR="ar"
18432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18433 break 2
18434 fi
18435 done
18436 done
18437 IFS=$as_save_IFS
18438
18439 fi
18440 fi
18441 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18442 if test -n "$ac_ct_AR"; then
18443 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18444 $as_echo "$ac_ct_AR" >&6; }
18445 else
18446 { $as_echo "$as_me:$LINENO: result: no" >&5
18447 $as_echo "no" >&6; }
18448 fi
18449
18450 if test "x$ac_ct_AR" = x; then
18451 AR=""
18452 else
18453 case $cross_compiling:$ac_tool_warned in
18454 yes:)
18455 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
18456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18457 ac_tool_warned=yes ;;
18458 esac
18459 AR=$ac_ct_AR
18460 fi
18461 else
18462 AR="$ac_cv_prog_AR"
18463 fi
18464
18465 if test "x$AR" = "x" ; then
18466 { { $as_echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18467 $as_echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18468 { (exit 1); exit 1; }; }
18469 fi
18470 fi
18471
18472 retest_macosx_linking=no
18473
18474 #if test "$wxUSE_MAC" = 1; then
18475 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18476 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18477 # Implicitly turn on the new --with-macosx-sdk using the default
18478 # SDK which provides the behavior this option has always had.
18479 if test "x$wxUSE_MACOSX_SDK" = "x"; then
18480 { $as_echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18481 $as_echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18482 { $as_echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18483 $as_echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18484 wxUSE_MACOSX_SDK=yes
18485 fi
18486 else
18487 # Complain to user if he specified an argument to --enable-universal_binary
18488 # and also 1) specified --with-macosx-sdk using the default (yes) or
18489 # 2) specified --with-macosx-sdk using a path or 3) specified
18490 # --without-macosx-sdk (no).
18491 if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18492 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18494 { { $as_echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18495 See \`config.log' for more details." >&5
18496 $as_echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18497 See \`config.log' for more details." >&2;}
18498 { (exit 1); exit 1; }; }; }
18499 else
18500 # Put the SDK path into the wxUSE_MACOSX_SDK. We don't have to
18501 # special-case the empty string because the below test simply
18502 # converts "no" to the empty string anyway.
18503 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18504 { $as_echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18505 $as_echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18506 fi
18507 fi
18508 OSX_UNIV_OPTS="-arch ppc -arch i386"
18509 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
18510 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
18511 OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
18512 OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
18513 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
18514 retest_macosx_linking=yes
18515
18516 { $as_echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18517 $as_echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18518 bk_use_pch=no
18519 fi
18520 #fi
18521
18522 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18523 wxUSE_MACOSX_SDK=
18524 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18525 # TODO: Search for most recent SDK and use it.
18526 wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18527 fi
18528
18529
18530 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18531 { $as_echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18532 $as_echo_n "checking for SDK directory $wxUSE_MACOSX_SDK... " >&6; }
18533 if ! test -d "$wxUSE_MACOSX_SDK"; then
18534 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18536 { { $as_echo "$as_me:$LINENO: error: not found
18537 See \`config.log' for more details." >&5
18538 $as_echo "$as_me: error: not found
18539 See \`config.log' for more details." >&2;}
18540 { (exit 1); exit 1; }; }; }
18541 else
18542 { $as_echo "$as_me:$LINENO: result: exists" >&5
18543 $as_echo "exists" >&6; }
18544 fi
18545 MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18546 eval "CC=\"$CC $MACOSX_SDK_OPTS\""
18547 eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
18548 eval "LD=\"$LD $MACOSX_SDK_OPTS\""
18549 retest_macosx_linking=yes
18550 fi
18551
18552 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18553 wxUSE_MACOSX_VERSION_MIN=
18554 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18555 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18556 { $as_echo "$as_me:$LINENO: checking SDK deployment version" >&5
18557 $as_echo_n "checking SDK deployment version... " >&6; }
18558
18559 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/'`
18560
18561 # If that failed, try again with the new key
18562 if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18563
18564 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/'`
18565
18566 fi
18567
18568 if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18569 wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
18570 { $as_echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18571 $as_echo "$wxUSE_MACOSX_VERSION_MIN" >&6; }
18572 else
18573 { $as_echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18574 $as_echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
18575 wxUSE_MACOSX_VERSION_MIN=
18576 fi
18577 else
18578 wxUSE_MACOSX_VERSION_MIN=
18579 fi
18580 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
18581 if test "$wxUSE_MAC" = 1; then
18582 # otherwise configure stops on leopard for universal_binary
18583 wxUSE_MACOSX_VERSION_MIN=10.4
18584 fi
18585 fi
18586
18587 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
18588 MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
18589 eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
18590 eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
18591 eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
18592 retest_macosx_linking=yes
18593 fi
18594
18595 if test "x$retest_macosx_linking" = "xyes"; then
18596 ac_ext=c
18597 ac_cpp='$CPP $CPPFLAGS'
18598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18601
18602 { $as_echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
18603 $as_echo_n "checking if C compiler works with SDK/version options... " >&6; }
18604 cat >conftest.$ac_ext <<_ACEOF
18605 /* confdefs.h. */
18606 _ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18610
18611 int
18612 main ()
18613 {
18614
18615 ;
18616 return 0;
18617 }
18618 _ACEOF
18619 rm -f conftest.$ac_objext conftest$ac_exeext
18620 if { (ac_try="$ac_link"
18621 case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18624 esac
18625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18626 $as_echo "$ac_try_echo") >&5
18627 (eval "$ac_link") 2>conftest.er1
18628 ac_status=$?
18629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
18632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && {
18634 test -z "$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18636 } && test -s conftest$ac_exeext && {
18637 test "$cross_compiling" = yes ||
18638 $as_test_x conftest$ac_exeext
18639 }; then
18640 { $as_echo "$as_me:$LINENO: result: yes" >&5
18641 $as_echo "yes" >&6; }
18642 else
18643 $as_echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18645
18646 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18648 { { $as_echo "$as_me:$LINENO: error: no. Try a different SDK
18649 See \`config.log' for more details." >&5
18650 $as_echo "$as_me: error: no. Try a different SDK
18651 See \`config.log' for more details." >&2;}
18652 { (exit 1); exit 1; }; }; }; exit 1
18653 fi
18654
18655 rm -rf conftest.dSYM
18656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18657 conftest$ac_exeext conftest.$ac_ext
18658 ac_ext=c
18659 ac_cpp='$CPP $CPPFLAGS'
18660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18663
18664
18665 ac_ext=cpp
18666 ac_cpp='$CXXCPP $CPPFLAGS'
18667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18670
18671 { $as_echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
18672 $as_echo_n "checking if C++ compiler works with SDK/version options... " >&6; }
18673 cat >conftest.$ac_ext <<_ACEOF
18674 /* confdefs.h. */
18675 _ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18679
18680 int
18681 main ()
18682 {
18683
18684 ;
18685 return 0;
18686 }
18687 _ACEOF
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (ac_try="$ac_link"
18690 case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18693 esac
18694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18695 $as_echo "$ac_try_echo") >&5
18696 (eval "$ac_link") 2>conftest.er1
18697 ac_status=$?
18698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
18701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } && {
18703 test -z "$ac_cxx_werror_flag" ||
18704 test ! -s conftest.err
18705 } && test -s conftest$ac_exeext && {
18706 test "$cross_compiling" = yes ||
18707 $as_test_x conftest$ac_exeext
18708 }; then
18709 { $as_echo "$as_me:$LINENO: result: yes" >&5
18710 $as_echo "yes" >&6; }
18711 else
18712 $as_echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18717 { { $as_echo "$as_me:$LINENO: error: no. Try a different SDK
18718 See \`config.log' for more details." >&5
18719 $as_echo "$as_me: error: no. Try a different SDK
18720 See \`config.log' for more details." >&2;}
18721 { (exit 1); exit 1; }; }; }; exit 1
18722 fi
18723
18724 rm -rf conftest.dSYM
18725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18726 conftest$ac_exeext conftest.$ac_ext
18727 ac_ext=c
18728 ac_cpp='$CPP $CPPFLAGS'
18729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18732
18733 fi
18734
18735
18736 case "${host}" in
18737
18738 *-*-darwin* )
18739 INSTALL_PROGRAM="cp -fp"
18740 INSTALL_DATA="cp -fp"
18741 ;;
18742 *)
18743 ;;
18744 esac
18745
18746
18747 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
18748 CXXFLAGS="-qunique $CXXFLAGS"
18749 fi
18750
18751 case "${host}" in
18752 powerpc-*-darwin* )
18753 { $as_echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18754 $as_echo_n "checking if __POWERPC__ is already defined... " >&6; }
18755 cat >conftest.$ac_ext <<_ACEOF
18756 /* confdefs.h. */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18761
18762 int
18763 main ()
18764 {
18765 #ifndef __POWERPC__
18766 choke me for lack of PowerPC
18767 #endif
18768
18769 ;
18770 return 0;
18771 }
18772 _ACEOF
18773 rm -f conftest.$ac_objext
18774 if { (ac_try="$ac_compile"
18775 case "(($ac_try" in
18776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18778 esac
18779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18780 $as_echo "$ac_try_echo") >&5
18781 (eval "$ac_compile") 2>conftest.er1
18782 ac_status=$?
18783 grep -v '^ *+' conftest.er1 >conftest.err
18784 rm -f conftest.er1
18785 cat conftest.err >&5
18786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } && {
18788 test -z "$ac_c_werror_flag" ||
18789 test ! -s conftest.err
18790 } && test -s conftest.$ac_objext; then
18791 { $as_echo "$as_me:$LINENO: result: yes" >&5
18792 $as_echo "yes" >&6; }
18793 else
18794 $as_echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.$ac_ext >&5
18796
18797 { $as_echo "$as_me:$LINENO: result: no" >&5
18798 $as_echo "no" >&6; }
18799 cat >>confdefs.h <<\_ACEOF
18800 #define __POWERPC__ 1
18801 _ACEOF
18802
18803
18804 fi
18805
18806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18807 ;;
18808 esac
18809
18810 case "${host}" in
18811 *-*-darwin* )
18812 { $as_echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18813 $as_echo_n "checking if CoreFoundation/CFBase.h is usable... " >&6; }
18814 cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h. */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18820 #include <CoreFoundation/CFBase.h>
18821
18822 int
18823 main ()
18824 {
18825
18826 ;
18827 return 0;
18828 }
18829 _ACEOF
18830 rm -f conftest.$ac_objext
18831 if { (ac_try="$ac_compile"
18832 case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835 esac
18836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18837 $as_echo "$ac_try_echo") >&5
18838 (eval "$ac_compile") 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } && {
18845 test -z "$ac_c_werror_flag" ||
18846 test ! -s conftest.err
18847 } && test -s conftest.$ac_objext; then
18848 { $as_echo "$as_me:$LINENO: result: yes" >&5
18849 $as_echo "yes" >&6; }
18850 else
18851 $as_echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18853
18854 { $as_echo "$as_me:$LINENO: result: no" >&5
18855 $as_echo "no" >&6; }
18856 { $as_echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18857 $as_echo_n "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... " >&6; }
18858 cat >conftest.$ac_ext <<_ACEOF
18859 /* confdefs.h. */
18860 _ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18864 #define __CF_USE_FRAMEWORK_INCLUDES__
18865 #include <CoreFoundation/CFBase.h>
18866
18867 int
18868 main ()
18869 {
18870
18871 ;
18872 return 0;
18873 }
18874 _ACEOF
18875 rm -f conftest.$ac_objext
18876 if { (ac_try="$ac_compile"
18877 case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18880 esac
18881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18882 $as_echo "$ac_try_echo") >&5
18883 (eval "$ac_compile") 2>conftest.er1
18884 ac_status=$?
18885 grep -v '^ *+' conftest.er1 >conftest.err
18886 rm -f conftest.er1
18887 cat conftest.err >&5
18888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } && {
18890 test -z "$ac_c_werror_flag" ||
18891 test ! -s conftest.err
18892 } && test -s conftest.$ac_objext; then
18893 { $as_echo "$as_me:$LINENO: result: yes" >&5
18894 $as_echo "yes" >&6; }
18895 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18896 else
18897 $as_echo "$as_me: failed program was:" >&5
18898 sed 's/^/| /' conftest.$ac_ext >&5
18899
18900 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18902 { { $as_echo "$as_me:$LINENO: error: no. CoreFoundation not available.
18903 See \`config.log' for more details." >&5
18904 $as_echo "$as_me: error: no. CoreFoundation not available.
18905 See \`config.log' for more details." >&2;}
18906 { (exit 1); exit 1; }; }; }
18907
18908 fi
18909
18910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18911
18912
18913 fi
18914
18915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18916 ;;
18917 esac
18918
18919 wants_win32=0
18920 doesnt_want_win32=0
18921 case "${host}" in
18922 *-*-cygwin*)
18923 if test "$wxUSE_MSW" = 1 ; then
18924 wants_win32=1
18925 else
18926 { $as_echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18927 $as_echo_n "checking if -mno-cygwin is in effect... " >&6; }
18928 if test "${wx_cv_nocygwin+set}" = set; then
18929 $as_echo_n "(cached) " >&6
18930 else
18931
18932 cat >conftest.$ac_ext <<_ACEOF
18933 /* confdefs.h. */
18934 _ACEOF
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h. */
18938
18939 int
18940 main ()
18941 {
18942
18943 #ifdef __MINGW32__
18944 choke me
18945 #endif
18946
18947 ;
18948 return 0;
18949 }
18950 _ACEOF
18951 rm -f conftest.$ac_objext
18952 if { (ac_try="$ac_compile"
18953 case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18956 esac
18957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18958 $as_echo "$ac_try_echo") >&5
18959 (eval "$ac_compile") 2>conftest.er1
18960 ac_status=$?
18961 grep -v '^ *+' conftest.er1 >conftest.err
18962 rm -f conftest.er1
18963 cat conftest.err >&5
18964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } && {
18966 test -z "$ac_c_werror_flag" ||
18967 test ! -s conftest.err
18968 } && test -s conftest.$ac_objext; then
18969 wx_cv_nocygwin=no
18970 else
18971 $as_echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974 wx_cv_nocygwin=yes
18975
18976 fi
18977
18978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18979
18980
18981 fi
18982 { $as_echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18983 $as_echo "$wx_cv_nocygwin" >&6; }
18984
18985 if test "$wx_cv_nocygwin" = "yes"; then
18986 wants_win32=1
18987 else
18988 doesnt_want_win32=1
18989 fi
18990 fi
18991 if test "$wants_win32" = 1 ; then
18992 BAKEFILE_FORCE_PLATFORM=win32
18993 fi
18994 ;;
18995 *-*-mingw*)
18996 wants_win32=1
18997 ;;
18998 esac
18999
19000 if test "$wxUSE_WINE" = "yes"; then
19001 wants_win32=1
19002 LDFLAGS_GUI="-mwindows"
19003 fi
19004
19005 if test "$wants_win32" = 1 ; then
19006 USE_UNIX=0
19007 USE_WIN32=1
19008 cat >>confdefs.h <<\_ACEOF
19009 #define __WIN32__ 1
19010 _ACEOF
19011
19012 cat >>confdefs.h <<\_ACEOF
19013 #define __WIN95__ 1
19014 _ACEOF
19015
19016 cat >>confdefs.h <<\_ACEOF
19017 #define __WINDOWS__ 1
19018 _ACEOF
19019
19020 cat >>confdefs.h <<\_ACEOF
19021 #define __GNUWIN32__ 1
19022 _ACEOF
19023
19024 cat >>confdefs.h <<\_ACEOF
19025 #define STRICT 1
19026 _ACEOF
19027
19028 fi
19029 if test "$doesnt_want_win32" = 1 ; then
19030 USE_UNIX=1
19031 USE_WIN32=0
19032 fi
19033
19034 if test "$USE_UNIX" = 1 ; then
19035 wxUSE_UNIX=yes
19036 cat >>confdefs.h <<\_ACEOF
19037 #define __UNIX__ 1
19038 _ACEOF
19039
19040 fi
19041
19042 case "${host}" in
19043 *-pc-os2_emx | *-pc-os2-emx )
19044 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19045 { $as_echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19046 $as_echo_n "checking for drand48 in -lcExt... " >&6; }
19047 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19048 $as_echo_n "(cached) " >&6
19049 else
19050 ac_check_lib_save_LIBS=$LIBS
19051 LIBS="-lcExt $LIBS"
19052 cat >conftest.$ac_ext <<_ACEOF
19053 /* confdefs.h. */
19054 _ACEOF
19055 cat confdefs.h >>conftest.$ac_ext
19056 cat >>conftest.$ac_ext <<_ACEOF
19057 /* end confdefs.h. */
19058
19059 /* Override any GCC internal prototype to avoid an error.
19060 Use char because int might match the return type of a GCC
19061 builtin and then its argument prototype would still apply. */
19062 #ifdef __cplusplus
19063 extern "C"
19064 #endif
19065 char drand48 ();
19066 int
19067 main ()
19068 {
19069 return drand48 ();
19070 ;
19071 return 0;
19072 }
19073 _ACEOF
19074 rm -f conftest.$ac_objext conftest$ac_exeext
19075 if { (ac_try="$ac_link"
19076 case "(($ac_try" in
19077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078 *) ac_try_echo=$ac_try;;
19079 esac
19080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19081 $as_echo "$ac_try_echo") >&5
19082 (eval "$ac_link") 2>conftest.er1
19083 ac_status=$?
19084 grep -v '^ *+' conftest.er1 >conftest.err
19085 rm -f conftest.er1
19086 cat conftest.err >&5
19087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } && {
19089 test -z "$ac_c_werror_flag" ||
19090 test ! -s conftest.err
19091 } && test -s conftest$ac_exeext && {
19092 test "$cross_compiling" = yes ||
19093 $as_test_x conftest$ac_exeext
19094 }; then
19095 ac_cv_lib_cExt_drand48=yes
19096 else
19097 $as_echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100 ac_cv_lib_cExt_drand48=no
19101 fi
19102
19103 rm -rf conftest.dSYM
19104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19105 conftest$ac_exeext conftest.$ac_ext
19106 LIBS=$ac_check_lib_save_LIBS
19107 fi
19108 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19109 $as_echo "$ac_cv_lib_cExt_drand48" >&6; }
19110 if test "x$ac_cv_lib_cExt_drand48" = x""yes; then
19111 LIBS="$LIBS -lcExt"
19112 fi
19113
19114 else
19115 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19116 fi
19117 { $as_echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19118 $as_echo_n "checking for gcc/libc version... " >&6; }
19119 if test "${wx_cv_gccversion+set}" = set; then
19120 $as_echo_n "(cached) " >&6
19121 else
19122
19123 if test "$cross_compiling" = yes; then
19124 wx_cv_gccversion="EMX2"
19125
19126 else
19127 cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h. */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19133
19134 #include <stdio.h>
19135
19136 int main()
19137 {
19138 FILE *f=fopen("conftestval", "w");
19139 if (!f) exit(1);
19140 fprintf(f,
19141 #if (__GNUC__ < 3)
19142 "EMX2"
19143 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19144 "EMX3"
19145 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19146 "Innotek5"
19147 #else
19148 "Innotek6"
19149 #endif
19150 );
19151 exit(0);
19152 }
19153
19154 _ACEOF
19155 rm -f conftest$ac_exeext
19156 if { (ac_try="$ac_link"
19157 case "(($ac_try" in
19158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159 *) ac_try_echo=$ac_try;;
19160 esac
19161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19162 $as_echo "$ac_try_echo") >&5
19163 (eval "$ac_link") 2>&5
19164 ac_status=$?
19165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19167 { (case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19170 esac
19171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19172 $as_echo "$ac_try_echo") >&5
19173 (eval "$ac_try") 2>&5
19174 ac_status=$?
19175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; }; then
19177 wx_cv_gccversion=`cat conftestval`
19178 else
19179 $as_echo "$as_me: program exited with status $ac_status" >&5
19180 $as_echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19182
19183 ( exit $ac_status )
19184 wx_cv_gccversion="EMX2"
19185 fi
19186 rm -rf conftest.dSYM
19187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19188 fi
19189
19190
19191
19192 fi
19193 { $as_echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
19194 $as_echo "$wx_cv_gccversion" >&6; }
19195 if test "$wx_cv_gccversion" = "EMX2"; then
19196 LIBS="$LIBS -lstdcpp"
19197 LDFLAGS="$LDFLAGS -Zsysv-signals"
19198 else
19199 if test "$wx_cv_gccversion" = "EMX3"; then
19200 LIBS="$LIBS -lstdcxx -lgcc"
19201 LDFLAGS="$LDFLAGS -Zsysv-signals"
19202 else
19203 LIBS="$LIBS -lstdc++"
19204 fi
19205 fi
19206 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
19207 { $as_echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
19208 $as_echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
19209 wxUSE_OMF=yes
19210 enable_omf=yes
19211 fi
19212 ;;
19213 *)
19214
19215 { $as_echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
19216 $as_echo_n "checking for strcasecmp() in string.h... " >&6; }
19217 if test "${ac_cv_string_strcasecmp+set}" = set; then
19218 $as_echo_n "(cached) " >&6
19219 else
19220
19221 cat >conftest.$ac_ext <<_ACEOF
19222 /* confdefs.h. */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19227
19228 #include <string.h>
19229
19230 int
19231 main ()
19232 {
19233
19234 strcasecmp("foo", "bar");
19235
19236 ;
19237 return 0;
19238 }
19239 _ACEOF
19240 rm -f conftest.$ac_objext conftest$ac_exeext
19241 if { (ac_try="$ac_link"
19242 case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19245 esac
19246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19247 $as_echo "$ac_try_echo") >&5
19248 (eval "$ac_link") 2>conftest.er1
19249 ac_status=$?
19250 grep -v '^ *+' conftest.er1 >conftest.err
19251 rm -f conftest.er1
19252 cat conftest.err >&5
19253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } && {
19255 test -z "$ac_c_werror_flag" ||
19256 test ! -s conftest.err
19257 } && test -s conftest$ac_exeext && {
19258 test "$cross_compiling" = yes ||
19259 $as_test_x conftest$ac_exeext
19260 }; then
19261 ac_cv_string_strcasecmp=yes
19262 else
19263 $as_echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19265
19266 ac_cv_string_strcasecmp=no
19267
19268 fi
19269
19270 rm -rf conftest.dSYM
19271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19272 conftest$ac_exeext conftest.$ac_ext
19273
19274 fi
19275 { $as_echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
19276 $as_echo "$ac_cv_string_strcasecmp" >&6; }
19277
19278 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
19279 cat >>confdefs.h <<\_ACEOF
19280 #define HAVE_STRCASECMP_IN_STRING_H 1
19281 _ACEOF
19282
19283 else
19284 { $as_echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
19285 $as_echo_n "checking for strcasecmp() in strings.h... " >&6; }
19286 if test "${ac_cv_strings_strcasecmp+set}" = set; then
19287 $as_echo_n "(cached) " >&6
19288 else
19289
19290 cat >conftest.$ac_ext <<_ACEOF
19291 /* confdefs.h. */
19292 _ACEOF
19293 cat confdefs.h >>conftest.$ac_ext
19294 cat >>conftest.$ac_ext <<_ACEOF
19295 /* end confdefs.h. */
19296
19297 #include <strings.h>
19298
19299 int
19300 main ()
19301 {
19302
19303 strcasecmp("foo", "bar");
19304
19305 ;
19306 return 0;
19307 }
19308 _ACEOF
19309 rm -f conftest.$ac_objext conftest$ac_exeext
19310 if { (ac_try="$ac_link"
19311 case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19314 esac
19315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19316 $as_echo "$ac_try_echo") >&5
19317 (eval "$ac_link") 2>conftest.er1
19318 ac_status=$?
19319 grep -v '^ *+' conftest.er1 >conftest.err
19320 rm -f conftest.er1
19321 cat conftest.err >&5
19322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } && {
19324 test -z "$ac_c_werror_flag" ||
19325 test ! -s conftest.err
19326 } && test -s conftest$ac_exeext && {
19327 test "$cross_compiling" = yes ||
19328 $as_test_x conftest$ac_exeext
19329 }; then
19330 ac_cv_strings_strcasecmp=yes
19331 else
19332 $as_echo "$as_me: failed program was:" >&5
19333 sed 's/^/| /' conftest.$ac_ext >&5
19334
19335 ac_cv_strings_strcasecmp=no
19336
19337 fi
19338
19339 rm -rf conftest.dSYM
19340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19341 conftest$ac_exeext conftest.$ac_ext
19342
19343 fi
19344 { $as_echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
19345 $as_echo "$ac_cv_strings_strcasecmp" >&6; }
19346
19347 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
19348 cat >>confdefs.h <<\_ACEOF
19349 #define HAVE_STRCASECMP_IN_STRINGS_H 1
19350 _ACEOF
19351
19352 else
19353 { { $as_echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
19354 $as_echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
19355 { (exit 1); exit 1; }; }
19356 fi
19357 fi
19358
19359 ;;
19360 esac
19361
19362
19363 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19364 $as_echo_n "checking for ANSI C header files... " >&6; }
19365 if test "${ac_cv_header_stdc+set}" = set; then
19366 $as_echo_n "(cached) " >&6
19367 else
19368 cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h. */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374 #include <stdlib.h>
19375 #include <stdarg.h>
19376 #include <string.h>
19377 #include <float.h>
19378
19379 int
19380 main ()
19381 {
19382
19383 ;
19384 return 0;
19385 }
19386 _ACEOF
19387 rm -f conftest.$ac_objext
19388 if { (ac_try="$ac_compile"
19389 case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19392 esac
19393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19394 $as_echo "$ac_try_echo") >&5
19395 (eval "$ac_compile") 2>conftest.er1
19396 ac_status=$?
19397 grep -v '^ *+' conftest.er1 >conftest.err
19398 rm -f conftest.er1
19399 cat conftest.err >&5
19400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } && {
19402 test -z "$ac_c_werror_flag" ||
19403 test ! -s conftest.err
19404 } && test -s conftest.$ac_objext; then
19405 ac_cv_header_stdc=yes
19406 else
19407 $as_echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19409
19410 ac_cv_header_stdc=no
19411 fi
19412
19413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19414
19415 if test $ac_cv_header_stdc = yes; then
19416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19417 cat >conftest.$ac_ext <<_ACEOF
19418 /* confdefs.h. */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h. */
19423 #include <string.h>
19424
19425 _ACEOF
19426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19427 $EGREP "memchr" >/dev/null 2>&1; then
19428 :
19429 else
19430 ac_cv_header_stdc=no
19431 fi
19432 rm -f conftest*
19433
19434 fi
19435
19436 if test $ac_cv_header_stdc = yes; then
19437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19438 cat >conftest.$ac_ext <<_ACEOF
19439 /* confdefs.h. */
19440 _ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h. */
19444 #include <stdlib.h>
19445
19446 _ACEOF
19447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19448 $EGREP "free" >/dev/null 2>&1; then
19449 :
19450 else
19451 ac_cv_header_stdc=no
19452 fi
19453 rm -f conftest*
19454
19455 fi
19456
19457 if test $ac_cv_header_stdc = yes; then
19458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19459 if test "$cross_compiling" = yes; then
19460 :
19461 else
19462 cat >conftest.$ac_ext <<_ACEOF
19463 /* confdefs.h. */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19468 #include <ctype.h>
19469 #include <stdlib.h>
19470 #if ((' ' & 0x0FF) == 0x020)
19471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19473 #else
19474 # define ISLOWER(c) \
19475 (('a' <= (c) && (c) <= 'i') \
19476 || ('j' <= (c) && (c) <= 'r') \
19477 || ('s' <= (c) && (c) <= 'z'))
19478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19479 #endif
19480
19481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19482 int
19483 main ()
19484 {
19485 int i;
19486 for (i = 0; i < 256; i++)
19487 if (XOR (islower (i), ISLOWER (i))
19488 || toupper (i) != TOUPPER (i))
19489 return 2;
19490 return 0;
19491 }
19492 _ACEOF
19493 rm -f conftest$ac_exeext
19494 if { (ac_try="$ac_link"
19495 case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19498 esac
19499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19500 $as_echo "$ac_try_echo") >&5
19501 (eval "$ac_link") 2>&5
19502 ac_status=$?
19503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19505 { (case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19508 esac
19509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19510 $as_echo "$ac_try_echo") >&5
19511 (eval "$ac_try") 2>&5
19512 ac_status=$?
19513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 :
19516 else
19517 $as_echo "$as_me: program exited with status $ac_status" >&5
19518 $as_echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19520
19521 ( exit $ac_status )
19522 ac_cv_header_stdc=no
19523 fi
19524 rm -rf conftest.dSYM
19525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19526 fi
19527
19528
19529 fi
19530 fi
19531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19532 $as_echo "$ac_cv_header_stdc" >&6; }
19533 if test $ac_cv_header_stdc = yes; then
19534
19535 cat >>confdefs.h <<\_ACEOF
19536 #define STDC_HEADERS 1
19537 _ACEOF
19538
19539 fi
19540
19541 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19552 inttypes.h stdint.h unistd.h
19553 do
19554 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19555 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19556 $as_echo_n "checking for $ac_header... " >&6; }
19557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19558 $as_echo_n "(cached) " >&6
19559 else
19560 cat >conftest.$ac_ext <<_ACEOF
19561 /* confdefs.h. */
19562 _ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h. */
19566 $ac_includes_default
19567
19568 #include <$ac_header>
19569 _ACEOF
19570 rm -f conftest.$ac_objext
19571 if { (ac_try="$ac_compile"
19572 case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19575 esac
19576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19577 $as_echo "$ac_try_echo") >&5
19578 (eval "$ac_compile") 2>conftest.er1
19579 ac_status=$?
19580 grep -v '^ *+' conftest.er1 >conftest.err
19581 rm -f conftest.er1
19582 cat conftest.err >&5
19583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } && {
19585 test -z "$ac_c_werror_flag" ||
19586 test ! -s conftest.err
19587 } && test -s conftest.$ac_objext; then
19588 eval "$as_ac_Header=yes"
19589 else
19590 $as_echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19592
19593 eval "$as_ac_Header=no"
19594 fi
19595
19596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19597 fi
19598 ac_res=`eval 'as_val=${'$as_ac_Header'}
19599 $as_echo "$as_val"'`
19600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19601 $as_echo "$ac_res" >&6; }
19602 as_val=`eval 'as_val=${'$as_ac_Header'}
19603 $as_echo "$as_val"'`
19604 if test "x$as_val" = x""yes; then
19605 cat >>confdefs.h <<_ACEOF
19606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19607 _ACEOF
19608
19609 fi
19610
19611 done
19612
19613
19614
19615
19616 for ac_header in langinfo.h wchar.h
19617 do
19618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19619 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19620 $as_echo_n "checking for $ac_header... " >&6; }
19621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19622 $as_echo_n "(cached) " >&6
19623 else
19624 cat >conftest.$ac_ext <<_ACEOF
19625 /* confdefs.h. */
19626 _ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630 $ac_includes_default
19631
19632 #include <$ac_header>
19633 _ACEOF
19634 rm -f conftest.$ac_objext
19635 if { (ac_try="$ac_compile"
19636 case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19639 esac
19640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19641 $as_echo "$ac_try_echo") >&5
19642 (eval "$ac_compile") 2>conftest.er1
19643 ac_status=$?
19644 grep -v '^ *+' conftest.er1 >conftest.err
19645 rm -f conftest.er1
19646 cat conftest.err >&5
19647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } && {
19649 test -z "$ac_c_werror_flag" ||
19650 test ! -s conftest.err
19651 } && test -s conftest.$ac_objext; then
19652 eval "$as_ac_Header=yes"
19653 else
19654 $as_echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657 eval "$as_ac_Header=no"
19658 fi
19659
19660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19661 fi
19662 ac_res=`eval 'as_val=${'$as_ac_Header'}
19663 $as_echo "$as_val"'`
19664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19665 $as_echo "$ac_res" >&6; }
19666 as_val=`eval 'as_val=${'$as_ac_Header'}
19667 $as_echo "$as_val"'`
19668 if test "x$as_val" = x""yes; then
19669 cat >>confdefs.h <<_ACEOF
19670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19671 _ACEOF
19672
19673 fi
19674
19675 done
19676
19677
19678 if test "$ac_cv_header_wchar_h" != "yes"; then
19679
19680 for ac_header in wcstr.h
19681 do
19682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19683 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19684 $as_echo_n "checking for $ac_header... " >&6; }
19685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19686 $as_echo_n "(cached) " >&6
19687 else
19688 cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h. */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19694 $ac_includes_default
19695
19696 #include <$ac_header>
19697 _ACEOF
19698 rm -f conftest.$ac_objext
19699 if { (ac_try="$ac_compile"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19703 esac
19704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19705 $as_echo "$ac_try_echo") >&5
19706 (eval "$ac_compile") 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } && {
19713 test -z "$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 } && test -s conftest.$ac_objext; then
19716 eval "$as_ac_Header=yes"
19717 else
19718 $as_echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19720
19721 eval "$as_ac_Header=no"
19722 fi
19723
19724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19725 fi
19726 ac_res=`eval 'as_val=${'$as_ac_Header'}
19727 $as_echo "$as_val"'`
19728 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19729 $as_echo "$ac_res" >&6; }
19730 as_val=`eval 'as_val=${'$as_ac_Header'}
19731 $as_echo "$as_val"'`
19732 if test "x$as_val" = x""yes; then
19733 cat >>confdefs.h <<_ACEOF
19734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19735 _ACEOF
19736
19737 fi
19738
19739 done
19740
19741 fi
19742
19743 case "${host}" in
19744 *-pc-os2_emx | *-pc-os2-emx )
19745 if test $ac_cv_header_langinfo_h = "yes" \
19746 -a \( "$wx_cv_gccversion" = "EMX2" \
19747 -o "$wx_cv_gccversion" = "EMX3" \
19748 -o "$wx_cv_gccversion" = "Innotek5" \); then
19749 LIBS="$LIBS -lintl"
19750 fi
19751 ;;
19752 esac
19753
19754 if test "$USE_UNIX" = 1 ; then
19755
19756 for ac_header in sys/select.h
19757 do
19758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19759 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19760 $as_echo_n "checking for $ac_header... " >&6; }
19761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19762 $as_echo_n "(cached) " >&6
19763 else
19764 cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h. */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770 $ac_includes_default
19771
19772 #include <$ac_header>
19773 _ACEOF
19774 rm -f conftest.$ac_objext
19775 if { (ac_try="$ac_compile"
19776 case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19779 esac
19780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19781 $as_echo "$ac_try_echo") >&5
19782 (eval "$ac_compile") 2>conftest.er1
19783 ac_status=$?
19784 grep -v '^ *+' conftest.er1 >conftest.err
19785 rm -f conftest.er1
19786 cat conftest.err >&5
19787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } && {
19789 test -z "$ac_c_werror_flag" ||
19790 test ! -s conftest.err
19791 } && test -s conftest.$ac_objext; then
19792 eval "$as_ac_Header=yes"
19793 else
19794 $as_echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19796
19797 eval "$as_ac_Header=no"
19798 fi
19799
19800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19801 fi
19802 ac_res=`eval 'as_val=${'$as_ac_Header'}
19803 $as_echo "$as_val"'`
19804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19805 $as_echo "$ac_res" >&6; }
19806 as_val=`eval 'as_val=${'$as_ac_Header'}
19807 $as_echo "$as_val"'`
19808 if test "x$as_val" = x""yes; then
19809 cat >>confdefs.h <<_ACEOF
19810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19811 _ACEOF
19812
19813 fi
19814
19815 done
19816
19817 fi
19818
19819
19820 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19821 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19822 if test "${ac_cv_c_const+set}" = set; then
19823 $as_echo_n "(cached) " >&6
19824 else
19825 cat >conftest.$ac_ext <<_ACEOF
19826 /* confdefs.h. */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831
19832 int
19833 main ()
19834 {
19835 /* FIXME: Include the comments suggested by Paul. */
19836 #ifndef __cplusplus
19837 /* Ultrix mips cc rejects this. */
19838 typedef int charset[2];
19839 const charset cs;
19840 /* SunOS 4.1.1 cc rejects this. */
19841 char const *const *pcpcc;
19842 char **ppc;
19843 /* NEC SVR4.0.2 mips cc rejects this. */
19844 struct point {int x, y;};
19845 static struct point const zero = {0,0};
19846 /* AIX XL C 1.02.0.0 rejects this.
19847 It does not let you subtract one const X* pointer from another in
19848 an arm of an if-expression whose if-part is not a constant
19849 expression */
19850 const char *g = "string";
19851 pcpcc = &g + (g ? g-g : 0);
19852 /* HPUX 7.0 cc rejects these. */
19853 ++pcpcc;
19854 ppc = (char**) pcpcc;
19855 pcpcc = (char const *const *) ppc;
19856 { /* SCO 3.2v4 cc rejects this. */
19857 char *t;
19858 char const *s = 0 ? (char *) 0 : (char const *) 0;
19859
19860 *t++ = 0;
19861 if (s) return 0;
19862 }
19863 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19864 int x[] = {25, 17};
19865 const int *foo = &x[0];
19866 ++foo;
19867 }
19868 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19869 typedef const int *iptr;
19870 iptr p = 0;
19871 ++p;
19872 }
19873 { /* AIX XL C 1.02.0.0 rejects this saying
19874 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19875 struct s { int j; const int *ap[3]; };
19876 struct s *b; b->j = 5;
19877 }
19878 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19879 const int foo = 10;
19880 if (!foo) return 0;
19881 }
19882 return !cs[0] && !zero.x;
19883 #endif
19884
19885 ;
19886 return 0;
19887 }
19888 _ACEOF
19889 rm -f conftest.$ac_objext
19890 if { (ac_try="$ac_compile"
19891 case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19894 esac
19895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19896 $as_echo "$ac_try_echo") >&5
19897 (eval "$ac_compile") 2>conftest.er1
19898 ac_status=$?
19899 grep -v '^ *+' conftest.er1 >conftest.err
19900 rm -f conftest.er1
19901 cat conftest.err >&5
19902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } && {
19904 test -z "$ac_c_werror_flag" ||
19905 test ! -s conftest.err
19906 } && test -s conftest.$ac_objext; then
19907 ac_cv_c_const=yes
19908 else
19909 $as_echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19911
19912 ac_cv_c_const=no
19913 fi
19914
19915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19916 fi
19917 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19918 $as_echo "$ac_cv_c_const" >&6; }
19919 if test $ac_cv_c_const = no; then
19920
19921 cat >>confdefs.h <<\_ACEOF
19922 #define const /**/
19923 _ACEOF
19924
19925 fi
19926
19927 { $as_echo "$as_me:$LINENO: checking for inline" >&5
19928 $as_echo_n "checking for inline... " >&6; }
19929 if test "${ac_cv_c_inline+set}" = set; then
19930 $as_echo_n "(cached) " >&6
19931 else
19932 ac_cv_c_inline=no
19933 for ac_kw in inline __inline__ __inline; do
19934 cat >conftest.$ac_ext <<_ACEOF
19935 /* confdefs.h. */
19936 _ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h. */
19940 #ifndef __cplusplus
19941 typedef int foo_t;
19942 static $ac_kw foo_t static_foo () {return 0; }
19943 $ac_kw foo_t foo () {return 0; }
19944 #endif
19945
19946 _ACEOF
19947 rm -f conftest.$ac_objext
19948 if { (ac_try="$ac_compile"
19949 case "(($ac_try" in
19950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19952 esac
19953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19954 $as_echo "$ac_try_echo") >&5
19955 (eval "$ac_compile") 2>conftest.er1
19956 ac_status=$?
19957 grep -v '^ *+' conftest.er1 >conftest.err
19958 rm -f conftest.er1
19959 cat conftest.err >&5
19960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } && {
19962 test -z "$ac_c_werror_flag" ||
19963 test ! -s conftest.err
19964 } && test -s conftest.$ac_objext; then
19965 ac_cv_c_inline=$ac_kw
19966 else
19967 $as_echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19969
19970
19971 fi
19972
19973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19974 test "$ac_cv_c_inline" != no && break
19975 done
19976
19977 fi
19978 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19979 $as_echo "$ac_cv_c_inline" >&6; }
19980
19981
19982 case $ac_cv_c_inline in
19983 inline | yes) ;;
19984 *)
19985 case $ac_cv_c_inline in
19986 no) ac_val=;;
19987 *) ac_val=$ac_cv_c_inline;;
19988 esac
19989 cat >>confdefs.h <<_ACEOF
19990 #ifndef __cplusplus
19991 #define inline $ac_val
19992 #endif
19993 _ACEOF
19994 ;;
19995 esac
19996
19997
19998 # The cast to long int works around a bug in the HP C Compiler
19999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20001 # This bug is HP SR number 8606223364.
20002 { $as_echo "$as_me:$LINENO: checking size of short" >&5
20003 $as_echo_n "checking size of short... " >&6; }
20004 if test "${ac_cv_sizeof_short+set}" = set; then
20005 $as_echo_n "(cached) " >&6
20006 else
20007 if test "$cross_compiling" = yes; then
20008 # Depending upon the size, compute the lo and hi bounds.
20009 cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h. */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015 $ac_includes_default
20016 int
20017 main ()
20018 {
20019 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
20020 test_array [0] = 0
20021
20022 ;
20023 return 0;
20024 }
20025 _ACEOF
20026 rm -f conftest.$ac_objext
20027 if { (ac_try="$ac_compile"
20028 case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031 esac
20032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20033 $as_echo "$ac_try_echo") >&5
20034 (eval "$ac_compile") 2>conftest.er1
20035 ac_status=$?
20036 grep -v '^ *+' conftest.er1 >conftest.err
20037 rm -f conftest.er1
20038 cat conftest.err >&5
20039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } && {
20041 test -z "$ac_c_werror_flag" ||
20042 test ! -s conftest.err
20043 } && test -s conftest.$ac_objext; then
20044 ac_lo=0 ac_mid=0
20045 while :; do
20046 cat >conftest.$ac_ext <<_ACEOF
20047 /* confdefs.h. */
20048 _ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h. */
20052 $ac_includes_default
20053 int
20054 main ()
20055 {
20056 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
20057 test_array [0] = 0
20058
20059 ;
20060 return 0;
20061 }
20062 _ACEOF
20063 rm -f conftest.$ac_objext
20064 if { (ac_try="$ac_compile"
20065 case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068 esac
20069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20070 $as_echo "$ac_try_echo") >&5
20071 (eval "$ac_compile") 2>conftest.er1
20072 ac_status=$?
20073 grep -v '^ *+' conftest.er1 >conftest.err
20074 rm -f conftest.er1
20075 cat conftest.err >&5
20076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } && {
20078 test -z "$ac_c_werror_flag" ||
20079 test ! -s conftest.err
20080 } && test -s conftest.$ac_objext; then
20081 ac_hi=$ac_mid; break
20082 else
20083 $as_echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20085
20086 ac_lo=`expr $ac_mid + 1`
20087 if test $ac_lo -le $ac_mid; then
20088 ac_lo= ac_hi=
20089 break
20090 fi
20091 ac_mid=`expr 2 '*' $ac_mid + 1`
20092 fi
20093
20094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20095 done
20096 else
20097 $as_echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20099
20100 cat >conftest.$ac_ext <<_ACEOF
20101 /* confdefs.h. */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h. */
20106 $ac_includes_default
20107 int
20108 main ()
20109 {
20110 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
20111 test_array [0] = 0
20112
20113 ;
20114 return 0;
20115 }
20116 _ACEOF
20117 rm -f conftest.$ac_objext
20118 if { (ac_try="$ac_compile"
20119 case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122 esac
20123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20124 $as_echo "$ac_try_echo") >&5
20125 (eval "$ac_compile") 2>conftest.er1
20126 ac_status=$?
20127 grep -v '^ *+' conftest.er1 >conftest.err
20128 rm -f conftest.er1
20129 cat conftest.err >&5
20130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } && {
20132 test -z "$ac_c_werror_flag" ||
20133 test ! -s conftest.err
20134 } && test -s conftest.$ac_objext; then
20135 ac_hi=-1 ac_mid=-1
20136 while :; do
20137 cat >conftest.$ac_ext <<_ACEOF
20138 /* confdefs.h. */
20139 _ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h. */
20143 $ac_includes_default
20144 int
20145 main ()
20146 {
20147 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
20148 test_array [0] = 0
20149
20150 ;
20151 return 0;
20152 }
20153 _ACEOF
20154 rm -f conftest.$ac_objext
20155 if { (ac_try="$ac_compile"
20156 case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159 esac
20160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20161 $as_echo "$ac_try_echo") >&5
20162 (eval "$ac_compile") 2>conftest.er1
20163 ac_status=$?
20164 grep -v '^ *+' conftest.er1 >conftest.err
20165 rm -f conftest.er1
20166 cat conftest.err >&5
20167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } && {
20169 test -z "$ac_c_werror_flag" ||
20170 test ! -s conftest.err
20171 } && test -s conftest.$ac_objext; then
20172 ac_lo=$ac_mid; break
20173 else
20174 $as_echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20176
20177 ac_hi=`expr '(' $ac_mid ')' - 1`
20178 if test $ac_mid -le $ac_hi; then
20179 ac_lo= ac_hi=
20180 break
20181 fi
20182 ac_mid=`expr 2 '*' $ac_mid`
20183 fi
20184
20185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20186 done
20187 else
20188 $as_echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20190
20191 ac_lo= ac_hi=
20192 fi
20193
20194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20195 fi
20196
20197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20198 # Binary search between lo and hi bounds.
20199 while test "x$ac_lo" != "x$ac_hi"; do
20200 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20201 cat >conftest.$ac_ext <<_ACEOF
20202 /* confdefs.h. */
20203 _ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h. */
20207 $ac_includes_default
20208 int
20209 main ()
20210 {
20211 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
20212 test_array [0] = 0
20213
20214 ;
20215 return 0;
20216 }
20217 _ACEOF
20218 rm -f conftest.$ac_objext
20219 if { (ac_try="$ac_compile"
20220 case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20223 esac
20224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20225 $as_echo "$ac_try_echo") >&5
20226 (eval "$ac_compile") 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } && {
20233 test -z "$ac_c_werror_flag" ||
20234 test ! -s conftest.err
20235 } && test -s conftest.$ac_objext; then
20236 ac_hi=$ac_mid
20237 else
20238 $as_echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20240
20241 ac_lo=`expr '(' $ac_mid ')' + 1`
20242 fi
20243
20244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20245 done
20246 case $ac_lo in
20247 ?*) ac_cv_sizeof_short=$ac_lo;;
20248 '') if test "$ac_cv_type_short" = yes; then
20249 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20251 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20252 See \`config.log' for more details." >&5
20253 $as_echo "$as_me: error: cannot compute sizeof (short)
20254 See \`config.log' for more details." >&2;}
20255 { (exit 77); exit 77; }; }; }
20256 else
20257 ac_cv_sizeof_short=0
20258 fi ;;
20259 esac
20260 else
20261 cat >conftest.$ac_ext <<_ACEOF
20262 /* confdefs.h. */
20263 _ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h. */
20267 $ac_includes_default
20268 static long int longval () { return (long int) (sizeof (short)); }
20269 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
20270 #include <stdio.h>
20271 #include <stdlib.h>
20272 int
20273 main ()
20274 {
20275
20276 FILE *f = fopen ("conftest.val", "w");
20277 if (! f)
20278 return 1;
20279 if (((long int) (sizeof (short))) < 0)
20280 {
20281 long int i = longval ();
20282 if (i != ((long int) (sizeof (short))))
20283 return 1;
20284 fprintf (f, "%ld", i);
20285 }
20286 else
20287 {
20288 unsigned long int i = ulongval ();
20289 if (i != ((long int) (sizeof (short))))
20290 return 1;
20291 fprintf (f, "%lu", i);
20292 }
20293 /* Do not output a trailing newline, as this causes \r\n confusion
20294 on some platforms. */
20295 return ferror (f) || fclose (f) != 0;
20296
20297 ;
20298 return 0;
20299 }
20300 _ACEOF
20301 rm -f conftest$ac_exeext
20302 if { (ac_try="$ac_link"
20303 case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20306 esac
20307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20308 $as_echo "$ac_try_echo") >&5
20309 (eval "$ac_link") 2>&5
20310 ac_status=$?
20311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20313 { (case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20316 esac
20317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20318 $as_echo "$ac_try_echo") >&5
20319 (eval "$ac_try") 2>&5
20320 ac_status=$?
20321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20323 ac_cv_sizeof_short=`cat conftest.val`
20324 else
20325 $as_echo "$as_me: program exited with status $ac_status" >&5
20326 $as_echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20328
20329 ( exit $ac_status )
20330 if test "$ac_cv_type_short" = yes; then
20331 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20333 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20334 See \`config.log' for more details." >&5
20335 $as_echo "$as_me: error: cannot compute sizeof (short)
20336 See \`config.log' for more details." >&2;}
20337 { (exit 77); exit 77; }; }; }
20338 else
20339 ac_cv_sizeof_short=0
20340 fi
20341 fi
20342 rm -rf conftest.dSYM
20343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20344 fi
20345 rm -f conftest.val
20346 fi
20347 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20348 $as_echo "$ac_cv_sizeof_short" >&6; }
20349
20350
20351
20352 cat >>confdefs.h <<_ACEOF
20353 #define SIZEOF_SHORT $ac_cv_sizeof_short
20354 _ACEOF
20355
20356
20357 # The cast to long int works around a bug in the HP C Compiler
20358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20360 # This bug is HP SR number 8606223364.
20361 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
20362 $as_echo_n "checking size of void *... " >&6; }
20363 if test "${ac_cv_sizeof_void_p+set}" = set; then
20364 $as_echo_n "(cached) " >&6
20365 else
20366 if test "$cross_compiling" = yes; then
20367 # Depending upon the size, compute the lo and hi bounds.
20368 cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h. */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20374 $ac_includes_default
20375 int
20376 main ()
20377 {
20378 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
20379 test_array [0] = 0
20380
20381 ;
20382 return 0;
20383 }
20384 _ACEOF
20385 rm -f conftest.$ac_objext
20386 if { (ac_try="$ac_compile"
20387 case "(($ac_try" in
20388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389 *) ac_try_echo=$ac_try;;
20390 esac
20391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20392 $as_echo "$ac_try_echo") >&5
20393 (eval "$ac_compile") 2>conftest.er1
20394 ac_status=$?
20395 grep -v '^ *+' conftest.er1 >conftest.err
20396 rm -f conftest.er1
20397 cat conftest.err >&5
20398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } && {
20400 test -z "$ac_c_werror_flag" ||
20401 test ! -s conftest.err
20402 } && test -s conftest.$ac_objext; then
20403 ac_lo=0 ac_mid=0
20404 while :; do
20405 cat >conftest.$ac_ext <<_ACEOF
20406 /* confdefs.h. */
20407 _ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h. */
20411 $ac_includes_default
20412 int
20413 main ()
20414 {
20415 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
20416 test_array [0] = 0
20417
20418 ;
20419 return 0;
20420 }
20421 _ACEOF
20422 rm -f conftest.$ac_objext
20423 if { (ac_try="$ac_compile"
20424 case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20427 esac
20428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20429 $as_echo "$ac_try_echo") >&5
20430 (eval "$ac_compile") 2>conftest.er1
20431 ac_status=$?
20432 grep -v '^ *+' conftest.er1 >conftest.err
20433 rm -f conftest.er1
20434 cat conftest.err >&5
20435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } && {
20437 test -z "$ac_c_werror_flag" ||
20438 test ! -s conftest.err
20439 } && test -s conftest.$ac_objext; then
20440 ac_hi=$ac_mid; break
20441 else
20442 $as_echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20444
20445 ac_lo=`expr $ac_mid + 1`
20446 if test $ac_lo -le $ac_mid; then
20447 ac_lo= ac_hi=
20448 break
20449 fi
20450 ac_mid=`expr 2 '*' $ac_mid + 1`
20451 fi
20452
20453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20454 done
20455 else
20456 $as_echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459 cat >conftest.$ac_ext <<_ACEOF
20460 /* confdefs.h. */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20465 $ac_includes_default
20466 int
20467 main ()
20468 {
20469 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
20470 test_array [0] = 0
20471
20472 ;
20473 return 0;
20474 }
20475 _ACEOF
20476 rm -f conftest.$ac_objext
20477 if { (ac_try="$ac_compile"
20478 case "(($ac_try" in
20479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480 *) ac_try_echo=$ac_try;;
20481 esac
20482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20483 $as_echo "$ac_try_echo") >&5
20484 (eval "$ac_compile") 2>conftest.er1
20485 ac_status=$?
20486 grep -v '^ *+' conftest.er1 >conftest.err
20487 rm -f conftest.er1
20488 cat conftest.err >&5
20489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } && {
20491 test -z "$ac_c_werror_flag" ||
20492 test ! -s conftest.err
20493 } && test -s conftest.$ac_objext; then
20494 ac_hi=-1 ac_mid=-1
20495 while :; do
20496 cat >conftest.$ac_ext <<_ACEOF
20497 /* confdefs.h. */
20498 _ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h. */
20502 $ac_includes_default
20503 int
20504 main ()
20505 {
20506 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
20507 test_array [0] = 0
20508
20509 ;
20510 return 0;
20511 }
20512 _ACEOF
20513 rm -f conftest.$ac_objext
20514 if { (ac_try="$ac_compile"
20515 case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20518 esac
20519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20520 $as_echo "$ac_try_echo") >&5
20521 (eval "$ac_compile") 2>conftest.er1
20522 ac_status=$?
20523 grep -v '^ *+' conftest.er1 >conftest.err
20524 rm -f conftest.er1
20525 cat conftest.err >&5
20526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } && {
20528 test -z "$ac_c_werror_flag" ||
20529 test ! -s conftest.err
20530 } && test -s conftest.$ac_objext; then
20531 ac_lo=$ac_mid; break
20532 else
20533 $as_echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20535
20536 ac_hi=`expr '(' $ac_mid ')' - 1`
20537 if test $ac_mid -le $ac_hi; then
20538 ac_lo= ac_hi=
20539 break
20540 fi
20541 ac_mid=`expr 2 '*' $ac_mid`
20542 fi
20543
20544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20545 done
20546 else
20547 $as_echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20549
20550 ac_lo= ac_hi=
20551 fi
20552
20553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20554 fi
20555
20556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20557 # Binary search between lo and hi bounds.
20558 while test "x$ac_lo" != "x$ac_hi"; do
20559 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20560 cat >conftest.$ac_ext <<_ACEOF
20561 /* confdefs.h. */
20562 _ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h. */
20566 $ac_includes_default
20567 int
20568 main ()
20569 {
20570 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
20571 test_array [0] = 0
20572
20573 ;
20574 return 0;
20575 }
20576 _ACEOF
20577 rm -f conftest.$ac_objext
20578 if { (ac_try="$ac_compile"
20579 case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20582 esac
20583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20584 $as_echo "$ac_try_echo") >&5
20585 (eval "$ac_compile") 2>conftest.er1
20586 ac_status=$?
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
20590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } && {
20592 test -z "$ac_c_werror_flag" ||
20593 test ! -s conftest.err
20594 } && test -s conftest.$ac_objext; then
20595 ac_hi=$ac_mid
20596 else
20597 $as_echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20599
20600 ac_lo=`expr '(' $ac_mid ')' + 1`
20601 fi
20602
20603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20604 done
20605 case $ac_lo in
20606 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20607 '') if test "$ac_cv_type_void_p" = yes; then
20608 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20610 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20611 See \`config.log' for more details." >&5
20612 $as_echo "$as_me: error: cannot compute sizeof (void *)
20613 See \`config.log' for more details." >&2;}
20614 { (exit 77); exit 77; }; }; }
20615 else
20616 ac_cv_sizeof_void_p=0
20617 fi ;;
20618 esac
20619 else
20620 cat >conftest.$ac_ext <<_ACEOF
20621 /* confdefs.h. */
20622 _ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h. */
20626 $ac_includes_default
20627 static long int longval () { return (long int) (sizeof (void *)); }
20628 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
20629 #include <stdio.h>
20630 #include <stdlib.h>
20631 int
20632 main ()
20633 {
20634
20635 FILE *f = fopen ("conftest.val", "w");
20636 if (! f)
20637 return 1;
20638 if (((long int) (sizeof (void *))) < 0)
20639 {
20640 long int i = longval ();
20641 if (i != ((long int) (sizeof (void *))))
20642 return 1;
20643 fprintf (f, "%ld", i);
20644 }
20645 else
20646 {
20647 unsigned long int i = ulongval ();
20648 if (i != ((long int) (sizeof (void *))))
20649 return 1;
20650 fprintf (f, "%lu", i);
20651 }
20652 /* Do not output a trailing newline, as this causes \r\n confusion
20653 on some platforms. */
20654 return ferror (f) || fclose (f) != 0;
20655
20656 ;
20657 return 0;
20658 }
20659 _ACEOF
20660 rm -f conftest$ac_exeext
20661 if { (ac_try="$ac_link"
20662 case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20665 esac
20666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20667 $as_echo "$ac_try_echo") >&5
20668 (eval "$ac_link") 2>&5
20669 ac_status=$?
20670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20672 { (case "(($ac_try" in
20673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674 *) ac_try_echo=$ac_try;;
20675 esac
20676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20677 $as_echo "$ac_try_echo") >&5
20678 (eval "$ac_try") 2>&5
20679 ac_status=$?
20680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; }; then
20682 ac_cv_sizeof_void_p=`cat conftest.val`
20683 else
20684 $as_echo "$as_me: program exited with status $ac_status" >&5
20685 $as_echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20687
20688 ( exit $ac_status )
20689 if test "$ac_cv_type_void_p" = yes; then
20690 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20692 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20693 See \`config.log' for more details." >&5
20694 $as_echo "$as_me: error: cannot compute sizeof (void *)
20695 See \`config.log' for more details." >&2;}
20696 { (exit 77); exit 77; }; }; }
20697 else
20698 ac_cv_sizeof_void_p=0
20699 fi
20700 fi
20701 rm -rf conftest.dSYM
20702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20703 fi
20704 rm -f conftest.val
20705 fi
20706 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20707 $as_echo "$ac_cv_sizeof_void_p" >&6; }
20708
20709
20710
20711 cat >>confdefs.h <<_ACEOF
20712 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20713 _ACEOF
20714
20715
20716 # The cast to long int works around a bug in the HP C Compiler
20717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20719 # This bug is HP SR number 8606223364.
20720 { $as_echo "$as_me:$LINENO: checking size of int" >&5
20721 $as_echo_n "checking size of int... " >&6; }
20722 if test "${ac_cv_sizeof_int+set}" = set; then
20723 $as_echo_n "(cached) " >&6
20724 else
20725 if test "$cross_compiling" = yes; then
20726 # Depending upon the size, compute the lo and hi bounds.
20727 cat >conftest.$ac_ext <<_ACEOF
20728 /* confdefs.h. */
20729 _ACEOF
20730 cat confdefs.h >>conftest.$ac_ext
20731 cat >>conftest.$ac_ext <<_ACEOF
20732 /* end confdefs.h. */
20733 $ac_includes_default
20734 int
20735 main ()
20736 {
20737 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
20738 test_array [0] = 0
20739
20740 ;
20741 return 0;
20742 }
20743 _ACEOF
20744 rm -f conftest.$ac_objext
20745 if { (ac_try="$ac_compile"
20746 case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20749 esac
20750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20751 $as_echo "$ac_try_echo") >&5
20752 (eval "$ac_compile") 2>conftest.er1
20753 ac_status=$?
20754 grep -v '^ *+' conftest.er1 >conftest.err
20755 rm -f conftest.er1
20756 cat conftest.err >&5
20757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); } && {
20759 test -z "$ac_c_werror_flag" ||
20760 test ! -s conftest.err
20761 } && test -s conftest.$ac_objext; then
20762 ac_lo=0 ac_mid=0
20763 while :; do
20764 cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h. */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20770 $ac_includes_default
20771 int
20772 main ()
20773 {
20774 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
20775 test_array [0] = 0
20776
20777 ;
20778 return 0;
20779 }
20780 _ACEOF
20781 rm -f conftest.$ac_objext
20782 if { (ac_try="$ac_compile"
20783 case "(($ac_try" in
20784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785 *) ac_try_echo=$ac_try;;
20786 esac
20787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20788 $as_echo "$ac_try_echo") >&5
20789 (eval "$ac_compile") 2>conftest.er1
20790 ac_status=$?
20791 grep -v '^ *+' conftest.er1 >conftest.err
20792 rm -f conftest.er1
20793 cat conftest.err >&5
20794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } && {
20796 test -z "$ac_c_werror_flag" ||
20797 test ! -s conftest.err
20798 } && test -s conftest.$ac_objext; then
20799 ac_hi=$ac_mid; break
20800 else
20801 $as_echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20803
20804 ac_lo=`expr $ac_mid + 1`
20805 if test $ac_lo -le $ac_mid; then
20806 ac_lo= ac_hi=
20807 break
20808 fi
20809 ac_mid=`expr 2 '*' $ac_mid + 1`
20810 fi
20811
20812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20813 done
20814 else
20815 $as_echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20817
20818 cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h. */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824 $ac_includes_default
20825 int
20826 main ()
20827 {
20828 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
20829 test_array [0] = 0
20830
20831 ;
20832 return 0;
20833 }
20834 _ACEOF
20835 rm -f conftest.$ac_objext
20836 if { (ac_try="$ac_compile"
20837 case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20840 esac
20841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20842 $as_echo "$ac_try_echo") >&5
20843 (eval "$ac_compile") 2>conftest.er1
20844 ac_status=$?
20845 grep -v '^ *+' conftest.er1 >conftest.err
20846 rm -f conftest.er1
20847 cat conftest.err >&5
20848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } && {
20850 test -z "$ac_c_werror_flag" ||
20851 test ! -s conftest.err
20852 } && test -s conftest.$ac_objext; then
20853 ac_hi=-1 ac_mid=-1
20854 while :; do
20855 cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h. */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h. */
20861 $ac_includes_default
20862 int
20863 main ()
20864 {
20865 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
20866 test_array [0] = 0
20867
20868 ;
20869 return 0;
20870 }
20871 _ACEOF
20872 rm -f conftest.$ac_objext
20873 if { (ac_try="$ac_compile"
20874 case "(($ac_try" in
20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20877 esac
20878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20879 $as_echo "$ac_try_echo") >&5
20880 (eval "$ac_compile") 2>conftest.er1
20881 ac_status=$?
20882 grep -v '^ *+' conftest.er1 >conftest.err
20883 rm -f conftest.er1
20884 cat conftest.err >&5
20885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } && {
20887 test -z "$ac_c_werror_flag" ||
20888 test ! -s conftest.err
20889 } && test -s conftest.$ac_objext; then
20890 ac_lo=$ac_mid; break
20891 else
20892 $as_echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895 ac_hi=`expr '(' $ac_mid ')' - 1`
20896 if test $ac_mid -le $ac_hi; then
20897 ac_lo= ac_hi=
20898 break
20899 fi
20900 ac_mid=`expr 2 '*' $ac_mid`
20901 fi
20902
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20904 done
20905 else
20906 $as_echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909 ac_lo= ac_hi=
20910 fi
20911
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 fi
20914
20915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20916 # Binary search between lo and hi bounds.
20917 while test "x$ac_lo" != "x$ac_hi"; do
20918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20919 cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h. */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925 $ac_includes_default
20926 int
20927 main ()
20928 {
20929 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
20930 test_array [0] = 0
20931
20932 ;
20933 return 0;
20934 }
20935 _ACEOF
20936 rm -f conftest.$ac_objext
20937 if { (ac_try="$ac_compile"
20938 case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20941 esac
20942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20943 $as_echo "$ac_try_echo") >&5
20944 (eval "$ac_compile") 2>conftest.er1
20945 ac_status=$?
20946 grep -v '^ *+' conftest.er1 >conftest.err
20947 rm -f conftest.er1
20948 cat conftest.err >&5
20949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } && {
20951 test -z "$ac_c_werror_flag" ||
20952 test ! -s conftest.err
20953 } && test -s conftest.$ac_objext; then
20954 ac_hi=$ac_mid
20955 else
20956 $as_echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20958
20959 ac_lo=`expr '(' $ac_mid ')' + 1`
20960 fi
20961
20962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20963 done
20964 case $ac_lo in
20965 ?*) ac_cv_sizeof_int=$ac_lo;;
20966 '') if test "$ac_cv_type_int" = yes; then
20967 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20969 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20970 See \`config.log' for more details." >&5
20971 $as_echo "$as_me: error: cannot compute sizeof (int)
20972 See \`config.log' for more details." >&2;}
20973 { (exit 77); exit 77; }; }; }
20974 else
20975 ac_cv_sizeof_int=0
20976 fi ;;
20977 esac
20978 else
20979 cat >conftest.$ac_ext <<_ACEOF
20980 /* confdefs.h. */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20985 $ac_includes_default
20986 static long int longval () { return (long int) (sizeof (int)); }
20987 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
20988 #include <stdio.h>
20989 #include <stdlib.h>
20990 int
20991 main ()
20992 {
20993
20994 FILE *f = fopen ("conftest.val", "w");
20995 if (! f)
20996 return 1;
20997 if (((long int) (sizeof (int))) < 0)
20998 {
20999 long int i = longval ();
21000 if (i != ((long int) (sizeof (int))))
21001 return 1;
21002 fprintf (f, "%ld", i);
21003 }
21004 else
21005 {
21006 unsigned long int i = ulongval ();
21007 if (i != ((long int) (sizeof (int))))
21008 return 1;
21009 fprintf (f, "%lu", i);
21010 }
21011 /* Do not output a trailing newline, as this causes \r\n confusion
21012 on some platforms. */
21013 return ferror (f) || fclose (f) != 0;
21014
21015 ;
21016 return 0;
21017 }
21018 _ACEOF
21019 rm -f conftest$ac_exeext
21020 if { (ac_try="$ac_link"
21021 case "(($ac_try" in
21022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21024 esac
21025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21026 $as_echo "$ac_try_echo") >&5
21027 (eval "$ac_link") 2>&5
21028 ac_status=$?
21029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21031 { (case "(($ac_try" in
21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033 *) ac_try_echo=$ac_try;;
21034 esac
21035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21036 $as_echo "$ac_try_echo") >&5
21037 (eval "$ac_try") 2>&5
21038 ac_status=$?
21039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; }; then
21041 ac_cv_sizeof_int=`cat conftest.val`
21042 else
21043 $as_echo "$as_me: program exited with status $ac_status" >&5
21044 $as_echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21046
21047 ( exit $ac_status )
21048 if test "$ac_cv_type_int" = yes; then
21049 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21051 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21052 See \`config.log' for more details." >&5
21053 $as_echo "$as_me: error: cannot compute sizeof (int)
21054 See \`config.log' for more details." >&2;}
21055 { (exit 77); exit 77; }; }; }
21056 else
21057 ac_cv_sizeof_int=0
21058 fi
21059 fi
21060 rm -rf conftest.dSYM
21061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21062 fi
21063 rm -f conftest.val
21064 fi
21065 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21066 $as_echo "$ac_cv_sizeof_int" >&6; }
21067
21068
21069
21070 cat >>confdefs.h <<_ACEOF
21071 #define SIZEOF_INT $ac_cv_sizeof_int
21072 _ACEOF
21073
21074
21075 # The cast to long int works around a bug in the HP C Compiler
21076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21078 # This bug is HP SR number 8606223364.
21079 { $as_echo "$as_me:$LINENO: checking size of long" >&5
21080 $as_echo_n "checking size of long... " >&6; }
21081 if test "${ac_cv_sizeof_long+set}" = set; then
21082 $as_echo_n "(cached) " >&6
21083 else
21084 if test "$cross_compiling" = yes; then
21085 # Depending upon the size, compute the lo and hi bounds.
21086 cat >conftest.$ac_ext <<_ACEOF
21087 /* confdefs.h. */
21088 _ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 $ac_includes_default
21093 int
21094 main ()
21095 {
21096 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
21097 test_array [0] = 0
21098
21099 ;
21100 return 0;
21101 }
21102 _ACEOF
21103 rm -f conftest.$ac_objext
21104 if { (ac_try="$ac_compile"
21105 case "(($ac_try" in
21106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107 *) ac_try_echo=$ac_try;;
21108 esac
21109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21110 $as_echo "$ac_try_echo") >&5
21111 (eval "$ac_compile") 2>conftest.er1
21112 ac_status=$?
21113 grep -v '^ *+' conftest.er1 >conftest.err
21114 rm -f conftest.er1
21115 cat conftest.err >&5
21116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } && {
21118 test -z "$ac_c_werror_flag" ||
21119 test ! -s conftest.err
21120 } && test -s conftest.$ac_objext; then
21121 ac_lo=0 ac_mid=0
21122 while :; do
21123 cat >conftest.$ac_ext <<_ACEOF
21124 /* confdefs.h. */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21129 $ac_includes_default
21130 int
21131 main ()
21132 {
21133 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21134 test_array [0] = 0
21135
21136 ;
21137 return 0;
21138 }
21139 _ACEOF
21140 rm -f conftest.$ac_objext
21141 if { (ac_try="$ac_compile"
21142 case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21145 esac
21146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21147 $as_echo "$ac_try_echo") >&5
21148 (eval "$ac_compile") 2>conftest.er1
21149 ac_status=$?
21150 grep -v '^ *+' conftest.er1 >conftest.err
21151 rm -f conftest.er1
21152 cat conftest.err >&5
21153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } && {
21155 test -z "$ac_c_werror_flag" ||
21156 test ! -s conftest.err
21157 } && test -s conftest.$ac_objext; then
21158 ac_hi=$ac_mid; break
21159 else
21160 $as_echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21162
21163 ac_lo=`expr $ac_mid + 1`
21164 if test $ac_lo -le $ac_mid; then
21165 ac_lo= ac_hi=
21166 break
21167 fi
21168 ac_mid=`expr 2 '*' $ac_mid + 1`
21169 fi
21170
21171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21172 done
21173 else
21174 $as_echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177 cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h. */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21183 $ac_includes_default
21184 int
21185 main ()
21186 {
21187 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
21188 test_array [0] = 0
21189
21190 ;
21191 return 0;
21192 }
21193 _ACEOF
21194 rm -f conftest.$ac_objext
21195 if { (ac_try="$ac_compile"
21196 case "(($ac_try" in
21197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198 *) ac_try_echo=$ac_try;;
21199 esac
21200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21201 $as_echo "$ac_try_echo") >&5
21202 (eval "$ac_compile") 2>conftest.er1
21203 ac_status=$?
21204 grep -v '^ *+' conftest.er1 >conftest.err
21205 rm -f conftest.er1
21206 cat conftest.err >&5
21207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } && {
21209 test -z "$ac_c_werror_flag" ||
21210 test ! -s conftest.err
21211 } && test -s conftest.$ac_objext; then
21212 ac_hi=-1 ac_mid=-1
21213 while :; do
21214 cat >conftest.$ac_ext <<_ACEOF
21215 /* confdefs.h. */
21216 _ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h. */
21220 $ac_includes_default
21221 int
21222 main ()
21223 {
21224 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
21225 test_array [0] = 0
21226
21227 ;
21228 return 0;
21229 }
21230 _ACEOF
21231 rm -f conftest.$ac_objext
21232 if { (ac_try="$ac_compile"
21233 case "(($ac_try" in
21234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235 *) ac_try_echo=$ac_try;;
21236 esac
21237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21238 $as_echo "$ac_try_echo") >&5
21239 (eval "$ac_compile") 2>conftest.er1
21240 ac_status=$?
21241 grep -v '^ *+' conftest.er1 >conftest.err
21242 rm -f conftest.er1
21243 cat conftest.err >&5
21244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } && {
21246 test -z "$ac_c_werror_flag" ||
21247 test ! -s conftest.err
21248 } && test -s conftest.$ac_objext; then
21249 ac_lo=$ac_mid; break
21250 else
21251 $as_echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21253
21254 ac_hi=`expr '(' $ac_mid ')' - 1`
21255 if test $ac_mid -le $ac_hi; then
21256 ac_lo= ac_hi=
21257 break
21258 fi
21259 ac_mid=`expr 2 '*' $ac_mid`
21260 fi
21261
21262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21263 done
21264 else
21265 $as_echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21267
21268 ac_lo= ac_hi=
21269 fi
21270
21271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21272 fi
21273
21274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21275 # Binary search between lo and hi bounds.
21276 while test "x$ac_lo" != "x$ac_hi"; do
21277 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21278 cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h. */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284 $ac_includes_default
21285 int
21286 main ()
21287 {
21288 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21289 test_array [0] = 0
21290
21291 ;
21292 return 0;
21293 }
21294 _ACEOF
21295 rm -f conftest.$ac_objext
21296 if { (ac_try="$ac_compile"
21297 case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21300 esac
21301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21302 $as_echo "$ac_try_echo") >&5
21303 (eval "$ac_compile") 2>conftest.er1
21304 ac_status=$?
21305 grep -v '^ *+' conftest.er1 >conftest.err
21306 rm -f conftest.er1
21307 cat conftest.err >&5
21308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } && {
21310 test -z "$ac_c_werror_flag" ||
21311 test ! -s conftest.err
21312 } && test -s conftest.$ac_objext; then
21313 ac_hi=$ac_mid
21314 else
21315 $as_echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21317
21318 ac_lo=`expr '(' $ac_mid ')' + 1`
21319 fi
21320
21321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 done
21323 case $ac_lo in
21324 ?*) ac_cv_sizeof_long=$ac_lo;;
21325 '') if test "$ac_cv_type_long" = yes; then
21326 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21328 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21329 See \`config.log' for more details." >&5
21330 $as_echo "$as_me: error: cannot compute sizeof (long)
21331 See \`config.log' for more details." >&2;}
21332 { (exit 77); exit 77; }; }; }
21333 else
21334 ac_cv_sizeof_long=0
21335 fi ;;
21336 esac
21337 else
21338 cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h. */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21344 $ac_includes_default
21345 static long int longval () { return (long int) (sizeof (long)); }
21346 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
21347 #include <stdio.h>
21348 #include <stdlib.h>
21349 int
21350 main ()
21351 {
21352
21353 FILE *f = fopen ("conftest.val", "w");
21354 if (! f)
21355 return 1;
21356 if (((long int) (sizeof (long))) < 0)
21357 {
21358 long int i = longval ();
21359 if (i != ((long int) (sizeof (long))))
21360 return 1;
21361 fprintf (f, "%ld", i);
21362 }
21363 else
21364 {
21365 unsigned long int i = ulongval ();
21366 if (i != ((long int) (sizeof (long))))
21367 return 1;
21368 fprintf (f, "%lu", i);
21369 }
21370 /* Do not output a trailing newline, as this causes \r\n confusion
21371 on some platforms. */
21372 return ferror (f) || fclose (f) != 0;
21373
21374 ;
21375 return 0;
21376 }
21377 _ACEOF
21378 rm -f conftest$ac_exeext
21379 if { (ac_try="$ac_link"
21380 case "(($ac_try" in
21381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382 *) ac_try_echo=$ac_try;;
21383 esac
21384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21385 $as_echo "$ac_try_echo") >&5
21386 (eval "$ac_link") 2>&5
21387 ac_status=$?
21388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21390 { (case "(($ac_try" in
21391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392 *) ac_try_echo=$ac_try;;
21393 esac
21394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21395 $as_echo "$ac_try_echo") >&5
21396 (eval "$ac_try") 2>&5
21397 ac_status=$?
21398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; }; then
21400 ac_cv_sizeof_long=`cat conftest.val`
21401 else
21402 $as_echo "$as_me: program exited with status $ac_status" >&5
21403 $as_echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21405
21406 ( exit $ac_status )
21407 if test "$ac_cv_type_long" = yes; then
21408 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21410 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21411 See \`config.log' for more details." >&5
21412 $as_echo "$as_me: error: cannot compute sizeof (long)
21413 See \`config.log' for more details." >&2;}
21414 { (exit 77); exit 77; }; }; }
21415 else
21416 ac_cv_sizeof_long=0
21417 fi
21418 fi
21419 rm -rf conftest.dSYM
21420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21421 fi
21422 rm -f conftest.val
21423 fi
21424 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21425 $as_echo "$ac_cv_sizeof_long" >&6; }
21426
21427
21428
21429 cat >>confdefs.h <<_ACEOF
21430 #define SIZEOF_LONG $ac_cv_sizeof_long
21431 _ACEOF
21432
21433
21434 # The cast to long int works around a bug in the HP C Compiler
21435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21437 # This bug is HP SR number 8606223364.
21438 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
21439 $as_echo_n "checking size of size_t... " >&6; }
21440 if test "${ac_cv_sizeof_size_t+set}" = set; then
21441 $as_echo_n "(cached) " >&6
21442 else
21443 if test "$cross_compiling" = yes; then
21444 # Depending upon the size, compute the lo and hi bounds.
21445 cat >conftest.$ac_ext <<_ACEOF
21446 /* confdefs.h. */
21447 _ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h. */
21451 $ac_includes_default
21452 int
21453 main ()
21454 {
21455 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
21456 test_array [0] = 0
21457
21458 ;
21459 return 0;
21460 }
21461 _ACEOF
21462 rm -f conftest.$ac_objext
21463 if { (ac_try="$ac_compile"
21464 case "(($ac_try" in
21465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466 *) ac_try_echo=$ac_try;;
21467 esac
21468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21469 $as_echo "$ac_try_echo") >&5
21470 (eval "$ac_compile") 2>conftest.er1
21471 ac_status=$?
21472 grep -v '^ *+' conftest.er1 >conftest.err
21473 rm -f conftest.er1
21474 cat conftest.err >&5
21475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } && {
21477 test -z "$ac_c_werror_flag" ||
21478 test ! -s conftest.err
21479 } && test -s conftest.$ac_objext; then
21480 ac_lo=0 ac_mid=0
21481 while :; do
21482 cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h. */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21488 $ac_includes_default
21489 int
21490 main ()
21491 {
21492 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
21493 test_array [0] = 0
21494
21495 ;
21496 return 0;
21497 }
21498 _ACEOF
21499 rm -f conftest.$ac_objext
21500 if { (ac_try="$ac_compile"
21501 case "(($ac_try" in
21502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503 *) ac_try_echo=$ac_try;;
21504 esac
21505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21506 $as_echo "$ac_try_echo") >&5
21507 (eval "$ac_compile") 2>conftest.er1
21508 ac_status=$?
21509 grep -v '^ *+' conftest.er1 >conftest.err
21510 rm -f conftest.er1
21511 cat conftest.err >&5
21512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); } && {
21514 test -z "$ac_c_werror_flag" ||
21515 test ! -s conftest.err
21516 } && test -s conftest.$ac_objext; then
21517 ac_hi=$ac_mid; break
21518 else
21519 $as_echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21521
21522 ac_lo=`expr $ac_mid + 1`
21523 if test $ac_lo -le $ac_mid; then
21524 ac_lo= ac_hi=
21525 break
21526 fi
21527 ac_mid=`expr 2 '*' $ac_mid + 1`
21528 fi
21529
21530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21531 done
21532 else
21533 $as_echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21535
21536 cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h. */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 $ac_includes_default
21543 int
21544 main ()
21545 {
21546 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
21547 test_array [0] = 0
21548
21549 ;
21550 return 0;
21551 }
21552 _ACEOF
21553 rm -f conftest.$ac_objext
21554 if { (ac_try="$ac_compile"
21555 case "(($ac_try" in
21556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557 *) ac_try_echo=$ac_try;;
21558 esac
21559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21560 $as_echo "$ac_try_echo") >&5
21561 (eval "$ac_compile") 2>conftest.er1
21562 ac_status=$?
21563 grep -v '^ *+' conftest.er1 >conftest.err
21564 rm -f conftest.er1
21565 cat conftest.err >&5
21566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); } && {
21568 test -z "$ac_c_werror_flag" ||
21569 test ! -s conftest.err
21570 } && test -s conftest.$ac_objext; then
21571 ac_hi=-1 ac_mid=-1
21572 while :; do
21573 cat >conftest.$ac_ext <<_ACEOF
21574 /* confdefs.h. */
21575 _ACEOF
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h. */
21579 $ac_includes_default
21580 int
21581 main ()
21582 {
21583 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
21584 test_array [0] = 0
21585
21586 ;
21587 return 0;
21588 }
21589 _ACEOF
21590 rm -f conftest.$ac_objext
21591 if { (ac_try="$ac_compile"
21592 case "(($ac_try" in
21593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594 *) ac_try_echo=$ac_try;;
21595 esac
21596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21597 $as_echo "$ac_try_echo") >&5
21598 (eval "$ac_compile") 2>conftest.er1
21599 ac_status=$?
21600 grep -v '^ *+' conftest.er1 >conftest.err
21601 rm -f conftest.er1
21602 cat conftest.err >&5
21603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } && {
21605 test -z "$ac_c_werror_flag" ||
21606 test ! -s conftest.err
21607 } && test -s conftest.$ac_objext; then
21608 ac_lo=$ac_mid; break
21609 else
21610 $as_echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.$ac_ext >&5
21612
21613 ac_hi=`expr '(' $ac_mid ')' - 1`
21614 if test $ac_mid -le $ac_hi; then
21615 ac_lo= ac_hi=
21616 break
21617 fi
21618 ac_mid=`expr 2 '*' $ac_mid`
21619 fi
21620
21621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21622 done
21623 else
21624 $as_echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21626
21627 ac_lo= ac_hi=
21628 fi
21629
21630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21631 fi
21632
21633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21634 # Binary search between lo and hi bounds.
21635 while test "x$ac_lo" != "x$ac_hi"; do
21636 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21637 cat >conftest.$ac_ext <<_ACEOF
21638 /* confdefs.h. */
21639 _ACEOF
21640 cat confdefs.h >>conftest.$ac_ext
21641 cat >>conftest.$ac_ext <<_ACEOF
21642 /* end confdefs.h. */
21643 $ac_includes_default
21644 int
21645 main ()
21646 {
21647 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
21648 test_array [0] = 0
21649
21650 ;
21651 return 0;
21652 }
21653 _ACEOF
21654 rm -f conftest.$ac_objext
21655 if { (ac_try="$ac_compile"
21656 case "(($ac_try" in
21657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658 *) ac_try_echo=$ac_try;;
21659 esac
21660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21661 $as_echo "$ac_try_echo") >&5
21662 (eval "$ac_compile") 2>conftest.er1
21663 ac_status=$?
21664 grep -v '^ *+' conftest.er1 >conftest.err
21665 rm -f conftest.er1
21666 cat conftest.err >&5
21667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } && {
21669 test -z "$ac_c_werror_flag" ||
21670 test ! -s conftest.err
21671 } && test -s conftest.$ac_objext; then
21672 ac_hi=$ac_mid
21673 else
21674 $as_echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21676
21677 ac_lo=`expr '(' $ac_mid ')' + 1`
21678 fi
21679
21680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21681 done
21682 case $ac_lo in
21683 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21684 '') if test "$ac_cv_type_size_t" = yes; then
21685 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21687 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21688 See \`config.log' for more details." >&5
21689 $as_echo "$as_me: error: cannot compute sizeof (size_t)
21690 See \`config.log' for more details." >&2;}
21691 { (exit 77); exit 77; }; }; }
21692 else
21693 ac_cv_sizeof_size_t=0
21694 fi ;;
21695 esac
21696 else
21697 cat >conftest.$ac_ext <<_ACEOF
21698 /* confdefs.h. */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 $ac_includes_default
21704 static long int longval () { return (long int) (sizeof (size_t)); }
21705 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
21706 #include <stdio.h>
21707 #include <stdlib.h>
21708 int
21709 main ()
21710 {
21711
21712 FILE *f = fopen ("conftest.val", "w");
21713 if (! f)
21714 return 1;
21715 if (((long int) (sizeof (size_t))) < 0)
21716 {
21717 long int i = longval ();
21718 if (i != ((long int) (sizeof (size_t))))
21719 return 1;
21720 fprintf (f, "%ld", i);
21721 }
21722 else
21723 {
21724 unsigned long int i = ulongval ();
21725 if (i != ((long int) (sizeof (size_t))))
21726 return 1;
21727 fprintf (f, "%lu", i);
21728 }
21729 /* Do not output a trailing newline, as this causes \r\n confusion
21730 on some platforms. */
21731 return ferror (f) || fclose (f) != 0;
21732
21733 ;
21734 return 0;
21735 }
21736 _ACEOF
21737 rm -f conftest$ac_exeext
21738 if { (ac_try="$ac_link"
21739 case "(($ac_try" in
21740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741 *) ac_try_echo=$ac_try;;
21742 esac
21743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21744 $as_echo "$ac_try_echo") >&5
21745 (eval "$ac_link") 2>&5
21746 ac_status=$?
21747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21749 { (case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21752 esac
21753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21754 $as_echo "$ac_try_echo") >&5
21755 (eval "$ac_try") 2>&5
21756 ac_status=$?
21757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; }; then
21759 ac_cv_sizeof_size_t=`cat conftest.val`
21760 else
21761 $as_echo "$as_me: program exited with status $ac_status" >&5
21762 $as_echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21764
21765 ( exit $ac_status )
21766 if test "$ac_cv_type_size_t" = yes; then
21767 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21769 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21770 See \`config.log' for more details." >&5
21771 $as_echo "$as_me: error: cannot compute sizeof (size_t)
21772 See \`config.log' for more details." >&2;}
21773 { (exit 77); exit 77; }; }; }
21774 else
21775 ac_cv_sizeof_size_t=0
21776 fi
21777 fi
21778 rm -rf conftest.dSYM
21779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21780 fi
21781 rm -f conftest.val
21782 fi
21783 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21784 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21785
21786
21787
21788 cat >>confdefs.h <<_ACEOF
21789 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21790 _ACEOF
21791
21792
21793
21794 case "${host}" in
21795 arm-*-linux* )
21796 # The cast to long int works around a bug in the HP C Compiler
21797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21799 # This bug is HP SR number 8606223364.
21800 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
21801 $as_echo_n "checking size of long long... " >&6; }
21802 if test "${ac_cv_sizeof_long_long+set}" = set; then
21803 $as_echo_n "(cached) " >&6
21804 else
21805 if test "$cross_compiling" = yes; then
21806 # Depending upon the size, compute the lo and hi bounds.
21807 cat >conftest.$ac_ext <<_ACEOF
21808 /* confdefs.h. */
21809 _ACEOF
21810 cat confdefs.h >>conftest.$ac_ext
21811 cat >>conftest.$ac_ext <<_ACEOF
21812 /* end confdefs.h. */
21813 $ac_includes_default
21814 int
21815 main ()
21816 {
21817 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
21818 test_array [0] = 0
21819
21820 ;
21821 return 0;
21822 }
21823 _ACEOF
21824 rm -f conftest.$ac_objext
21825 if { (ac_try="$ac_compile"
21826 case "(($ac_try" in
21827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21828 *) ac_try_echo=$ac_try;;
21829 esac
21830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21831 $as_echo "$ac_try_echo") >&5
21832 (eval "$ac_compile") 2>conftest.er1
21833 ac_status=$?
21834 grep -v '^ *+' conftest.er1 >conftest.err
21835 rm -f conftest.er1
21836 cat conftest.err >&5
21837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } && {
21839 test -z "$ac_c_werror_flag" ||
21840 test ! -s conftest.err
21841 } && test -s conftest.$ac_objext; then
21842 ac_lo=0 ac_mid=0
21843 while :; do
21844 cat >conftest.$ac_ext <<_ACEOF
21845 /* confdefs.h. */
21846 _ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h. */
21850 $ac_includes_default
21851 int
21852 main ()
21853 {
21854 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
21855 test_array [0] = 0
21856
21857 ;
21858 return 0;
21859 }
21860 _ACEOF
21861 rm -f conftest.$ac_objext
21862 if { (ac_try="$ac_compile"
21863 case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21866 esac
21867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21868 $as_echo "$ac_try_echo") >&5
21869 (eval "$ac_compile") 2>conftest.er1
21870 ac_status=$?
21871 grep -v '^ *+' conftest.er1 >conftest.err
21872 rm -f conftest.er1
21873 cat conftest.err >&5
21874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } && {
21876 test -z "$ac_c_werror_flag" ||
21877 test ! -s conftest.err
21878 } && test -s conftest.$ac_objext; then
21879 ac_hi=$ac_mid; break
21880 else
21881 $as_echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21883
21884 ac_lo=`expr $ac_mid + 1`
21885 if test $ac_lo -le $ac_mid; then
21886 ac_lo= ac_hi=
21887 break
21888 fi
21889 ac_mid=`expr 2 '*' $ac_mid + 1`
21890 fi
21891
21892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21893 done
21894 else
21895 $as_echo "$as_me: failed program was:" >&5
21896 sed 's/^/| /' conftest.$ac_ext >&5
21897
21898 cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h. */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 $ac_includes_default
21905 int
21906 main ()
21907 {
21908 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
21909 test_array [0] = 0
21910
21911 ;
21912 return 0;
21913 }
21914 _ACEOF
21915 rm -f conftest.$ac_objext
21916 if { (ac_try="$ac_compile"
21917 case "(($ac_try" in
21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919 *) ac_try_echo=$ac_try;;
21920 esac
21921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21922 $as_echo "$ac_try_echo") >&5
21923 (eval "$ac_compile") 2>conftest.er1
21924 ac_status=$?
21925 grep -v '^ *+' conftest.er1 >conftest.err
21926 rm -f conftest.er1
21927 cat conftest.err >&5
21928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); } && {
21930 test -z "$ac_c_werror_flag" ||
21931 test ! -s conftest.err
21932 } && test -s conftest.$ac_objext; then
21933 ac_hi=-1 ac_mid=-1
21934 while :; do
21935 cat >conftest.$ac_ext <<_ACEOF
21936 /* confdefs.h. */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21941 $ac_includes_default
21942 int
21943 main ()
21944 {
21945 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
21946 test_array [0] = 0
21947
21948 ;
21949 return 0;
21950 }
21951 _ACEOF
21952 rm -f conftest.$ac_objext
21953 if { (ac_try="$ac_compile"
21954 case "(($ac_try" in
21955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21956 *) ac_try_echo=$ac_try;;
21957 esac
21958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21959 $as_echo "$ac_try_echo") >&5
21960 (eval "$ac_compile") 2>conftest.er1
21961 ac_status=$?
21962 grep -v '^ *+' conftest.er1 >conftest.err
21963 rm -f conftest.er1
21964 cat conftest.err >&5
21965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } && {
21967 test -z "$ac_c_werror_flag" ||
21968 test ! -s conftest.err
21969 } && test -s conftest.$ac_objext; then
21970 ac_lo=$ac_mid; break
21971 else
21972 $as_echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21974
21975 ac_hi=`expr '(' $ac_mid ')' - 1`
21976 if test $ac_mid -le $ac_hi; then
21977 ac_lo= ac_hi=
21978 break
21979 fi
21980 ac_mid=`expr 2 '*' $ac_mid`
21981 fi
21982
21983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21984 done
21985 else
21986 $as_echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21988
21989 ac_lo= ac_hi=
21990 fi
21991
21992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21993 fi
21994
21995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21996 # Binary search between lo and hi bounds.
21997 while test "x$ac_lo" != "x$ac_hi"; do
21998 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21999 cat >conftest.$ac_ext <<_ACEOF
22000 /* confdefs.h. */
22001 _ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h. */
22005 $ac_includes_default
22006 int
22007 main ()
22008 {
22009 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22010 test_array [0] = 0
22011
22012 ;
22013 return 0;
22014 }
22015 _ACEOF
22016 rm -f conftest.$ac_objext
22017 if { (ac_try="$ac_compile"
22018 case "(($ac_try" in
22019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22020 *) ac_try_echo=$ac_try;;
22021 esac
22022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22023 $as_echo "$ac_try_echo") >&5
22024 (eval "$ac_compile") 2>conftest.er1
22025 ac_status=$?
22026 grep -v '^ *+' conftest.er1 >conftest.err
22027 rm -f conftest.er1
22028 cat conftest.err >&5
22029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); } && {
22031 test -z "$ac_c_werror_flag" ||
22032 test ! -s conftest.err
22033 } && test -s conftest.$ac_objext; then
22034 ac_hi=$ac_mid
22035 else
22036 $as_echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22038
22039 ac_lo=`expr '(' $ac_mid ')' + 1`
22040 fi
22041
22042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22043 done
22044 case $ac_lo in
22045 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22046 '') if test "$ac_cv_type_long_long" = yes; then
22047 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22049 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22050 See \`config.log' for more details." >&5
22051 $as_echo "$as_me: error: cannot compute sizeof (long long)
22052 See \`config.log' for more details." >&2;}
22053 { (exit 77); exit 77; }; }; }
22054 else
22055 ac_cv_sizeof_long_long=0
22056 fi ;;
22057 esac
22058 else
22059 cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h. */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 $ac_includes_default
22066 static long int longval () { return (long int) (sizeof (long long)); }
22067 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
22068 #include <stdio.h>
22069 #include <stdlib.h>
22070 int
22071 main ()
22072 {
22073
22074 FILE *f = fopen ("conftest.val", "w");
22075 if (! f)
22076 return 1;
22077 if (((long int) (sizeof (long long))) < 0)
22078 {
22079 long int i = longval ();
22080 if (i != ((long int) (sizeof (long long))))
22081 return 1;
22082 fprintf (f, "%ld", i);
22083 }
22084 else
22085 {
22086 unsigned long int i = ulongval ();
22087 if (i != ((long int) (sizeof (long long))))
22088 return 1;
22089 fprintf (f, "%lu", i);
22090 }
22091 /* Do not output a trailing newline, as this causes \r\n confusion
22092 on some platforms. */
22093 return ferror (f) || fclose (f) != 0;
22094
22095 ;
22096 return 0;
22097 }
22098 _ACEOF
22099 rm -f conftest$ac_exeext
22100 if { (ac_try="$ac_link"
22101 case "(($ac_try" in
22102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103 *) ac_try_echo=$ac_try;;
22104 esac
22105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22106 $as_echo "$ac_try_echo") >&5
22107 (eval "$ac_link") 2>&5
22108 ac_status=$?
22109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22111 { (case "(($ac_try" in
22112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113 *) ac_try_echo=$ac_try;;
22114 esac
22115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22116 $as_echo "$ac_try_echo") >&5
22117 (eval "$ac_try") 2>&5
22118 ac_status=$?
22119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; }; then
22121 ac_cv_sizeof_long_long=`cat conftest.val`
22122 else
22123 $as_echo "$as_me: program exited with status $ac_status" >&5
22124 $as_echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22126
22127 ( exit $ac_status )
22128 if test "$ac_cv_type_long_long" = yes; then
22129 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22131 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22132 See \`config.log' for more details." >&5
22133 $as_echo "$as_me: error: cannot compute sizeof (long long)
22134 See \`config.log' for more details." >&2;}
22135 { (exit 77); exit 77; }; }; }
22136 else
22137 ac_cv_sizeof_long_long=0
22138 fi
22139 fi
22140 rm -rf conftest.dSYM
22141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22142 fi
22143 rm -f conftest.val
22144 fi
22145 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22146 $as_echo "$ac_cv_sizeof_long_long" >&6; }
22147
22148
22149
22150 cat >>confdefs.h <<_ACEOF
22151 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22152 _ACEOF
22153
22154
22155 ;;
22156 *-hp-hpux* )
22157 # The cast to long int works around a bug in the HP C Compiler
22158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22160 # This bug is HP SR number 8606223364.
22161 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
22162 $as_echo_n "checking size of long long... " >&6; }
22163 if test "${ac_cv_sizeof_long_long+set}" = set; then
22164 $as_echo_n "(cached) " >&6
22165 else
22166 if test "$cross_compiling" = yes; then
22167 # Depending upon the size, compute the lo and hi bounds.
22168 cat >conftest.$ac_ext <<_ACEOF
22169 /* confdefs.h. */
22170 _ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22174 $ac_includes_default
22175 int
22176 main ()
22177 {
22178 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
22179 test_array [0] = 0
22180
22181 ;
22182 return 0;
22183 }
22184 _ACEOF
22185 rm -f conftest.$ac_objext
22186 if { (ac_try="$ac_compile"
22187 case "(($ac_try" in
22188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22189 *) ac_try_echo=$ac_try;;
22190 esac
22191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22192 $as_echo "$ac_try_echo") >&5
22193 (eval "$ac_compile") 2>conftest.er1
22194 ac_status=$?
22195 grep -v '^ *+' conftest.er1 >conftest.err
22196 rm -f conftest.er1
22197 cat conftest.err >&5
22198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } && {
22200 test -z "$ac_c_werror_flag" ||
22201 test ! -s conftest.err
22202 } && test -s conftest.$ac_objext; then
22203 ac_lo=0 ac_mid=0
22204 while :; do
22205 cat >conftest.$ac_ext <<_ACEOF
22206 /* confdefs.h. */
22207 _ACEOF
22208 cat confdefs.h >>conftest.$ac_ext
22209 cat >>conftest.$ac_ext <<_ACEOF
22210 /* end confdefs.h. */
22211 $ac_includes_default
22212 int
22213 main ()
22214 {
22215 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22216 test_array [0] = 0
22217
22218 ;
22219 return 0;
22220 }
22221 _ACEOF
22222 rm -f conftest.$ac_objext
22223 if { (ac_try="$ac_compile"
22224 case "(($ac_try" in
22225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22226 *) ac_try_echo=$ac_try;;
22227 esac
22228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22229 $as_echo "$ac_try_echo") >&5
22230 (eval "$ac_compile") 2>conftest.er1
22231 ac_status=$?
22232 grep -v '^ *+' conftest.er1 >conftest.err
22233 rm -f conftest.er1
22234 cat conftest.err >&5
22235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } && {
22237 test -z "$ac_c_werror_flag" ||
22238 test ! -s conftest.err
22239 } && test -s conftest.$ac_objext; then
22240 ac_hi=$ac_mid; break
22241 else
22242 $as_echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22244
22245 ac_lo=`expr $ac_mid + 1`
22246 if test $ac_lo -le $ac_mid; then
22247 ac_lo= ac_hi=
22248 break
22249 fi
22250 ac_mid=`expr 2 '*' $ac_mid + 1`
22251 fi
22252
22253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22254 done
22255 else
22256 $as_echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22258
22259 cat >conftest.$ac_ext <<_ACEOF
22260 /* confdefs.h. */
22261 _ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h. */
22265 $ac_includes_default
22266 int
22267 main ()
22268 {
22269 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
22270 test_array [0] = 0
22271
22272 ;
22273 return 0;
22274 }
22275 _ACEOF
22276 rm -f conftest.$ac_objext
22277 if { (ac_try="$ac_compile"
22278 case "(($ac_try" in
22279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280 *) ac_try_echo=$ac_try;;
22281 esac
22282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22283 $as_echo "$ac_try_echo") >&5
22284 (eval "$ac_compile") 2>conftest.er1
22285 ac_status=$?
22286 grep -v '^ *+' conftest.er1 >conftest.err
22287 rm -f conftest.er1
22288 cat conftest.err >&5
22289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } && {
22291 test -z "$ac_c_werror_flag" ||
22292 test ! -s conftest.err
22293 } && test -s conftest.$ac_objext; then
22294 ac_hi=-1 ac_mid=-1
22295 while :; do
22296 cat >conftest.$ac_ext <<_ACEOF
22297 /* confdefs.h. */
22298 _ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h. */
22302 $ac_includes_default
22303 int
22304 main ()
22305 {
22306 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
22307 test_array [0] = 0
22308
22309 ;
22310 return 0;
22311 }
22312 _ACEOF
22313 rm -f conftest.$ac_objext
22314 if { (ac_try="$ac_compile"
22315 case "(($ac_try" in
22316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317 *) ac_try_echo=$ac_try;;
22318 esac
22319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22320 $as_echo "$ac_try_echo") >&5
22321 (eval "$ac_compile") 2>conftest.er1
22322 ac_status=$?
22323 grep -v '^ *+' conftest.er1 >conftest.err
22324 rm -f conftest.er1
22325 cat conftest.err >&5
22326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); } && {
22328 test -z "$ac_c_werror_flag" ||
22329 test ! -s conftest.err
22330 } && test -s conftest.$ac_objext; then
22331 ac_lo=$ac_mid; break
22332 else
22333 $as_echo "$as_me: failed program was:" >&5
22334 sed 's/^/| /' conftest.$ac_ext >&5
22335
22336 ac_hi=`expr '(' $ac_mid ')' - 1`
22337 if test $ac_mid -le $ac_hi; then
22338 ac_lo= ac_hi=
22339 break
22340 fi
22341 ac_mid=`expr 2 '*' $ac_mid`
22342 fi
22343
22344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22345 done
22346 else
22347 $as_echo "$as_me: failed program was:" >&5
22348 sed 's/^/| /' conftest.$ac_ext >&5
22349
22350 ac_lo= ac_hi=
22351 fi
22352
22353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22354 fi
22355
22356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357 # Binary search between lo and hi bounds.
22358 while test "x$ac_lo" != "x$ac_hi"; do
22359 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22360 cat >conftest.$ac_ext <<_ACEOF
22361 /* confdefs.h. */
22362 _ACEOF
22363 cat confdefs.h >>conftest.$ac_ext
22364 cat >>conftest.$ac_ext <<_ACEOF
22365 /* end confdefs.h. */
22366 $ac_includes_default
22367 int
22368 main ()
22369 {
22370 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22371 test_array [0] = 0
22372
22373 ;
22374 return 0;
22375 }
22376 _ACEOF
22377 rm -f conftest.$ac_objext
22378 if { (ac_try="$ac_compile"
22379 case "(($ac_try" in
22380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22382 esac
22383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22384 $as_echo "$ac_try_echo") >&5
22385 (eval "$ac_compile") 2>conftest.er1
22386 ac_status=$?
22387 grep -v '^ *+' conftest.er1 >conftest.err
22388 rm -f conftest.er1
22389 cat conftest.err >&5
22390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); } && {
22392 test -z "$ac_c_werror_flag" ||
22393 test ! -s conftest.err
22394 } && test -s conftest.$ac_objext; then
22395 ac_hi=$ac_mid
22396 else
22397 $as_echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22399
22400 ac_lo=`expr '(' $ac_mid ')' + 1`
22401 fi
22402
22403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22404 done
22405 case $ac_lo in
22406 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22407 '') if test "$ac_cv_type_long_long" = yes; then
22408 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22410 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22411 See \`config.log' for more details." >&5
22412 $as_echo "$as_me: error: cannot compute sizeof (long long)
22413 See \`config.log' for more details." >&2;}
22414 { (exit 77); exit 77; }; }; }
22415 else
22416 ac_cv_sizeof_long_long=0
22417 fi ;;
22418 esac
22419 else
22420 cat >conftest.$ac_ext <<_ACEOF
22421 /* confdefs.h. */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22426 $ac_includes_default
22427 static long int longval () { return (long int) (sizeof (long long)); }
22428 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
22429 #include <stdio.h>
22430 #include <stdlib.h>
22431 int
22432 main ()
22433 {
22434
22435 FILE *f = fopen ("conftest.val", "w");
22436 if (! f)
22437 return 1;
22438 if (((long int) (sizeof (long long))) < 0)
22439 {
22440 long int i = longval ();
22441 if (i != ((long int) (sizeof (long long))))
22442 return 1;
22443 fprintf (f, "%ld", i);
22444 }
22445 else
22446 {
22447 unsigned long int i = ulongval ();
22448 if (i != ((long int) (sizeof (long long))))
22449 return 1;
22450 fprintf (f, "%lu", i);
22451 }
22452 /* Do not output a trailing newline, as this causes \r\n confusion
22453 on some platforms. */
22454 return ferror (f) || fclose (f) != 0;
22455
22456 ;
22457 return 0;
22458 }
22459 _ACEOF
22460 rm -f conftest$ac_exeext
22461 if { (ac_try="$ac_link"
22462 case "(($ac_try" in
22463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464 *) ac_try_echo=$ac_try;;
22465 esac
22466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22467 $as_echo "$ac_try_echo") >&5
22468 (eval "$ac_link") 2>&5
22469 ac_status=$?
22470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22472 { (case "(($ac_try" in
22473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474 *) ac_try_echo=$ac_try;;
22475 esac
22476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22477 $as_echo "$ac_try_echo") >&5
22478 (eval "$ac_try") 2>&5
22479 ac_status=$?
22480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; }; then
22482 ac_cv_sizeof_long_long=`cat conftest.val`
22483 else
22484 $as_echo "$as_me: program exited with status $ac_status" >&5
22485 $as_echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22487
22488 ( exit $ac_status )
22489 if test "$ac_cv_type_long_long" = yes; then
22490 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22492 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22493 See \`config.log' for more details." >&5
22494 $as_echo "$as_me: error: cannot compute sizeof (long long)
22495 See \`config.log' for more details." >&2;}
22496 { (exit 77); exit 77; }; }; }
22497 else
22498 ac_cv_sizeof_long_long=0
22499 fi
22500 fi
22501 rm -rf conftest.dSYM
22502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22503 fi
22504 rm -f conftest.val
22505 fi
22506 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22507 $as_echo "$ac_cv_sizeof_long_long" >&6; }
22508
22509
22510
22511 cat >>confdefs.h <<_ACEOF
22512 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22513 _ACEOF
22514
22515
22516 if test "$ac_cv_sizeof_long_long" != 0; then
22517 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22518 fi
22519 ;;
22520 * )
22521 # The cast to long int works around a bug in the HP C Compiler
22522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22524 # This bug is HP SR number 8606223364.
22525 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
22526 $as_echo_n "checking size of long long... " >&6; }
22527 if test "${ac_cv_sizeof_long_long+set}" = set; then
22528 $as_echo_n "(cached) " >&6
22529 else
22530 if test "$cross_compiling" = yes; then
22531 # Depending upon the size, compute the lo and hi bounds.
22532 cat >conftest.$ac_ext <<_ACEOF
22533 /* confdefs.h. */
22534 _ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h. */
22538 $ac_includes_default
22539 int
22540 main ()
22541 {
22542 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
22543 test_array [0] = 0
22544
22545 ;
22546 return 0;
22547 }
22548 _ACEOF
22549 rm -f conftest.$ac_objext
22550 if { (ac_try="$ac_compile"
22551 case "(($ac_try" in
22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553 *) ac_try_echo=$ac_try;;
22554 esac
22555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22556 $as_echo "$ac_try_echo") >&5
22557 (eval "$ac_compile") 2>conftest.er1
22558 ac_status=$?
22559 grep -v '^ *+' conftest.er1 >conftest.err
22560 rm -f conftest.er1
22561 cat conftest.err >&5
22562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } && {
22564 test -z "$ac_c_werror_flag" ||
22565 test ! -s conftest.err
22566 } && test -s conftest.$ac_objext; then
22567 ac_lo=0 ac_mid=0
22568 while :; do
22569 cat >conftest.$ac_ext <<_ACEOF
22570 /* confdefs.h. */
22571 _ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h. */
22575 $ac_includes_default
22576 int
22577 main ()
22578 {
22579 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22580 test_array [0] = 0
22581
22582 ;
22583 return 0;
22584 }
22585 _ACEOF
22586 rm -f conftest.$ac_objext
22587 if { (ac_try="$ac_compile"
22588 case "(($ac_try" in
22589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590 *) ac_try_echo=$ac_try;;
22591 esac
22592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22593 $as_echo "$ac_try_echo") >&5
22594 (eval "$ac_compile") 2>conftest.er1
22595 ac_status=$?
22596 grep -v '^ *+' conftest.er1 >conftest.err
22597 rm -f conftest.er1
22598 cat conftest.err >&5
22599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); } && {
22601 test -z "$ac_c_werror_flag" ||
22602 test ! -s conftest.err
22603 } && test -s conftest.$ac_objext; then
22604 ac_hi=$ac_mid; break
22605 else
22606 $as_echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.$ac_ext >&5
22608
22609 ac_lo=`expr $ac_mid + 1`
22610 if test $ac_lo -le $ac_mid; then
22611 ac_lo= ac_hi=
22612 break
22613 fi
22614 ac_mid=`expr 2 '*' $ac_mid + 1`
22615 fi
22616
22617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22618 done
22619 else
22620 $as_echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22622
22623 cat >conftest.$ac_ext <<_ACEOF
22624 /* confdefs.h. */
22625 _ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h. */
22629 $ac_includes_default
22630 int
22631 main ()
22632 {
22633 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
22634 test_array [0] = 0
22635
22636 ;
22637 return 0;
22638 }
22639 _ACEOF
22640 rm -f conftest.$ac_objext
22641 if { (ac_try="$ac_compile"
22642 case "(($ac_try" in
22643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644 *) ac_try_echo=$ac_try;;
22645 esac
22646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22647 $as_echo "$ac_try_echo") >&5
22648 (eval "$ac_compile") 2>conftest.er1
22649 ac_status=$?
22650 grep -v '^ *+' conftest.er1 >conftest.err
22651 rm -f conftest.er1
22652 cat conftest.err >&5
22653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } && {
22655 test -z "$ac_c_werror_flag" ||
22656 test ! -s conftest.err
22657 } && test -s conftest.$ac_objext; then
22658 ac_hi=-1 ac_mid=-1
22659 while :; do
22660 cat >conftest.$ac_ext <<_ACEOF
22661 /* confdefs.h. */
22662 _ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22666 $ac_includes_default
22667 int
22668 main ()
22669 {
22670 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
22671 test_array [0] = 0
22672
22673 ;
22674 return 0;
22675 }
22676 _ACEOF
22677 rm -f conftest.$ac_objext
22678 if { (ac_try="$ac_compile"
22679 case "(($ac_try" in
22680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22682 esac
22683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22684 $as_echo "$ac_try_echo") >&5
22685 (eval "$ac_compile") 2>conftest.er1
22686 ac_status=$?
22687 grep -v '^ *+' conftest.er1 >conftest.err
22688 rm -f conftest.er1
22689 cat conftest.err >&5
22690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } && {
22692 test -z "$ac_c_werror_flag" ||
22693 test ! -s conftest.err
22694 } && test -s conftest.$ac_objext; then
22695 ac_lo=$ac_mid; break
22696 else
22697 $as_echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22699
22700 ac_hi=`expr '(' $ac_mid ')' - 1`
22701 if test $ac_mid -le $ac_hi; then
22702 ac_lo= ac_hi=
22703 break
22704 fi
22705 ac_mid=`expr 2 '*' $ac_mid`
22706 fi
22707
22708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22709 done
22710 else
22711 $as_echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22713
22714 ac_lo= ac_hi=
22715 fi
22716
22717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22718 fi
22719
22720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22721 # Binary search between lo and hi bounds.
22722 while test "x$ac_lo" != "x$ac_hi"; do
22723 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22724 cat >conftest.$ac_ext <<_ACEOF
22725 /* confdefs.h. */
22726 _ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h. */
22730 $ac_includes_default
22731 int
22732 main ()
22733 {
22734 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22735 test_array [0] = 0
22736
22737 ;
22738 return 0;
22739 }
22740 _ACEOF
22741 rm -f conftest.$ac_objext
22742 if { (ac_try="$ac_compile"
22743 case "(($ac_try" in
22744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22746 esac
22747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22748 $as_echo "$ac_try_echo") >&5
22749 (eval "$ac_compile") 2>conftest.er1
22750 ac_status=$?
22751 grep -v '^ *+' conftest.er1 >conftest.err
22752 rm -f conftest.er1
22753 cat conftest.err >&5
22754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); } && {
22756 test -z "$ac_c_werror_flag" ||
22757 test ! -s conftest.err
22758 } && test -s conftest.$ac_objext; then
22759 ac_hi=$ac_mid
22760 else
22761 $as_echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22763
22764 ac_lo=`expr '(' $ac_mid ')' + 1`
22765 fi
22766
22767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22768 done
22769 case $ac_lo in
22770 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22771 '') if test "$ac_cv_type_long_long" = yes; then
22772 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22774 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22775 See \`config.log' for more details." >&5
22776 $as_echo "$as_me: error: cannot compute sizeof (long long)
22777 See \`config.log' for more details." >&2;}
22778 { (exit 77); exit 77; }; }; }
22779 else
22780 ac_cv_sizeof_long_long=0
22781 fi ;;
22782 esac
22783 else
22784 cat >conftest.$ac_ext <<_ACEOF
22785 /* confdefs.h. */
22786 _ACEOF
22787 cat confdefs.h >>conftest.$ac_ext
22788 cat >>conftest.$ac_ext <<_ACEOF
22789 /* end confdefs.h. */
22790 $ac_includes_default
22791 static long int longval () { return (long int) (sizeof (long long)); }
22792 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
22793 #include <stdio.h>
22794 #include <stdlib.h>
22795 int
22796 main ()
22797 {
22798
22799 FILE *f = fopen ("conftest.val", "w");
22800 if (! f)
22801 return 1;
22802 if (((long int) (sizeof (long long))) < 0)
22803 {
22804 long int i = longval ();
22805 if (i != ((long int) (sizeof (long long))))
22806 return 1;
22807 fprintf (f, "%ld", i);
22808 }
22809 else
22810 {
22811 unsigned long int i = ulongval ();
22812 if (i != ((long int) (sizeof (long long))))
22813 return 1;
22814 fprintf (f, "%lu", i);
22815 }
22816 /* Do not output a trailing newline, as this causes \r\n confusion
22817 on some platforms. */
22818 return ferror (f) || fclose (f) != 0;
22819
22820 ;
22821 return 0;
22822 }
22823 _ACEOF
22824 rm -f conftest$ac_exeext
22825 if { (ac_try="$ac_link"
22826 case "(($ac_try" in
22827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828 *) ac_try_echo=$ac_try;;
22829 esac
22830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22831 $as_echo "$ac_try_echo") >&5
22832 (eval "$ac_link") 2>&5
22833 ac_status=$?
22834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22836 { (case "(($ac_try" in
22837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838 *) ac_try_echo=$ac_try;;
22839 esac
22840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22841 $as_echo "$ac_try_echo") >&5
22842 (eval "$ac_try") 2>&5
22843 ac_status=$?
22844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); }; }; then
22846 ac_cv_sizeof_long_long=`cat conftest.val`
22847 else
22848 $as_echo "$as_me: program exited with status $ac_status" >&5
22849 $as_echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22851
22852 ( exit $ac_status )
22853 if test "$ac_cv_type_long_long" = yes; then
22854 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22856 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22857 See \`config.log' for more details." >&5
22858 $as_echo "$as_me: error: cannot compute sizeof (long long)
22859 See \`config.log' for more details." >&2;}
22860 { (exit 77); exit 77; }; }; }
22861 else
22862 ac_cv_sizeof_long_long=0
22863 fi
22864 fi
22865 rm -rf conftest.dSYM
22866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22867 fi
22868 rm -f conftest.val
22869 fi
22870 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22871 $as_echo "$ac_cv_sizeof_long_long" >&6; }
22872
22873
22874
22875 cat >>confdefs.h <<_ACEOF
22876 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22877 _ACEOF
22878
22879
22880 esac
22881
22882 # The cast to long int works around a bug in the HP C Compiler
22883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22885 # This bug is HP SR number 8606223364.
22886 { $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5
22887 $as_echo_n "checking size of wchar_t... " >&6; }
22888 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22889 $as_echo_n "(cached) " >&6
22890 else
22891 if test "$cross_compiling" = yes; then
22892 # Depending upon the size, compute the lo and hi bounds.
22893 cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h. */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899
22900 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22901 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22902 # error "fake wchar_t"
22903 #endif
22904 #ifdef HAVE_WCHAR_H
22905 # ifdef __CYGWIN__
22906 # include <stddef.h>
22907 # endif
22908 # include <wchar.h>
22909 #endif
22910 #ifdef HAVE_STDLIB_H
22911 # include <stdlib.h>
22912 #endif
22913 #include <stdio.h>
22914
22915
22916
22917 int
22918 main ()
22919 {
22920 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= 0)];
22921 test_array [0] = 0
22922
22923 ;
22924 return 0;
22925 }
22926 _ACEOF
22927 rm -f conftest.$ac_objext
22928 if { (ac_try="$ac_compile"
22929 case "(($ac_try" in
22930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22931 *) ac_try_echo=$ac_try;;
22932 esac
22933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22934 $as_echo "$ac_try_echo") >&5
22935 (eval "$ac_compile") 2>conftest.er1
22936 ac_status=$?
22937 grep -v '^ *+' conftest.er1 >conftest.err
22938 rm -f conftest.er1
22939 cat conftest.err >&5
22940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } && {
22942 test -z "$ac_c_werror_flag" ||
22943 test ! -s conftest.err
22944 } && test -s conftest.$ac_objext; then
22945 ac_lo=0 ac_mid=0
22946 while :; do
22947 cat >conftest.$ac_ext <<_ACEOF
22948 /* confdefs.h. */
22949 _ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22953
22954 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22955 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22956 # error "fake wchar_t"
22957 #endif
22958 #ifdef HAVE_WCHAR_H
22959 # ifdef __CYGWIN__
22960 # include <stddef.h>
22961 # endif
22962 # include <wchar.h>
22963 #endif
22964 #ifdef HAVE_STDLIB_H
22965 # include <stdlib.h>
22966 #endif
22967 #include <stdio.h>
22968
22969
22970
22971 int
22972 main ()
22973 {
22974 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
22975 test_array [0] = 0
22976
22977 ;
22978 return 0;
22979 }
22980 _ACEOF
22981 rm -f conftest.$ac_objext
22982 if { (ac_try="$ac_compile"
22983 case "(($ac_try" in
22984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985 *) ac_try_echo=$ac_try;;
22986 esac
22987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22988 $as_echo "$ac_try_echo") >&5
22989 (eval "$ac_compile") 2>conftest.er1
22990 ac_status=$?
22991 grep -v '^ *+' conftest.er1 >conftest.err
22992 rm -f conftest.er1
22993 cat conftest.err >&5
22994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); } && {
22996 test -z "$ac_c_werror_flag" ||
22997 test ! -s conftest.err
22998 } && test -s conftest.$ac_objext; then
22999 ac_hi=$ac_mid; break
23000 else
23001 $as_echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23003
23004 ac_lo=`expr $ac_mid + 1`
23005 if test $ac_lo -le $ac_mid; then
23006 ac_lo= ac_hi=
23007 break
23008 fi
23009 ac_mid=`expr 2 '*' $ac_mid + 1`
23010 fi
23011
23012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23013 done
23014 else
23015 $as_echo "$as_me: failed program was:" >&5
23016 sed 's/^/| /' conftest.$ac_ext >&5
23017
23018 cat >conftest.$ac_ext <<_ACEOF
23019 /* confdefs.h. */
23020 _ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23024
23025 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23026 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23027 # error "fake wchar_t"
23028 #endif
23029 #ifdef HAVE_WCHAR_H
23030 # ifdef __CYGWIN__
23031 # include <stddef.h>
23032 # endif
23033 # include <wchar.h>
23034 #endif
23035 #ifdef HAVE_STDLIB_H
23036 # include <stdlib.h>
23037 #endif
23038 #include <stdio.h>
23039
23040
23041
23042 int
23043 main ()
23044 {
23045 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) < 0)];
23046 test_array [0] = 0
23047
23048 ;
23049 return 0;
23050 }
23051 _ACEOF
23052 rm -f conftest.$ac_objext
23053 if { (ac_try="$ac_compile"
23054 case "(($ac_try" in
23055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056 *) ac_try_echo=$ac_try;;
23057 esac
23058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23059 $as_echo "$ac_try_echo") >&5
23060 (eval "$ac_compile") 2>conftest.er1
23061 ac_status=$?
23062 grep -v '^ *+' conftest.er1 >conftest.err
23063 rm -f conftest.er1
23064 cat conftest.err >&5
23065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } && {
23067 test -z "$ac_c_werror_flag" ||
23068 test ! -s conftest.err
23069 } && test -s conftest.$ac_objext; then
23070 ac_hi=-1 ac_mid=-1
23071 while :; do
23072 cat >conftest.$ac_ext <<_ACEOF
23073 /* confdefs.h. */
23074 _ACEOF
23075 cat confdefs.h >>conftest.$ac_ext
23076 cat >>conftest.$ac_ext <<_ACEOF
23077 /* end confdefs.h. */
23078
23079 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23080 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23081 # error "fake wchar_t"
23082 #endif
23083 #ifdef HAVE_WCHAR_H
23084 # ifdef __CYGWIN__
23085 # include <stddef.h>
23086 # endif
23087 # include <wchar.h>
23088 #endif
23089 #ifdef HAVE_STDLIB_H
23090 # include <stdlib.h>
23091 #endif
23092 #include <stdio.h>
23093
23094
23095
23096 int
23097 main ()
23098 {
23099 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= $ac_mid)];
23100 test_array [0] = 0
23101
23102 ;
23103 return 0;
23104 }
23105 _ACEOF
23106 rm -f conftest.$ac_objext
23107 if { (ac_try="$ac_compile"
23108 case "(($ac_try" in
23109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23110 *) ac_try_echo=$ac_try;;
23111 esac
23112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23113 $as_echo "$ac_try_echo") >&5
23114 (eval "$ac_compile") 2>conftest.er1
23115 ac_status=$?
23116 grep -v '^ *+' conftest.er1 >conftest.err
23117 rm -f conftest.er1
23118 cat conftest.err >&5
23119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); } && {
23121 test -z "$ac_c_werror_flag" ||
23122 test ! -s conftest.err
23123 } && test -s conftest.$ac_objext; then
23124 ac_lo=$ac_mid; break
23125 else
23126 $as_echo "$as_me: failed program was:" >&5
23127 sed 's/^/| /' conftest.$ac_ext >&5
23128
23129 ac_hi=`expr '(' $ac_mid ')' - 1`
23130 if test $ac_mid -le $ac_hi; then
23131 ac_lo= ac_hi=
23132 break
23133 fi
23134 ac_mid=`expr 2 '*' $ac_mid`
23135 fi
23136
23137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23138 done
23139 else
23140 $as_echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23142
23143 ac_lo= ac_hi=
23144 fi
23145
23146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23147 fi
23148
23149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23150 # Binary search between lo and hi bounds.
23151 while test "x$ac_lo" != "x$ac_hi"; do
23152 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23153 cat >conftest.$ac_ext <<_ACEOF
23154 /* confdefs.h. */
23155 _ACEOF
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h. */
23159
23160 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23161 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23162 # error "fake wchar_t"
23163 #endif
23164 #ifdef HAVE_WCHAR_H
23165 # ifdef __CYGWIN__
23166 # include <stddef.h>
23167 # endif
23168 # include <wchar.h>
23169 #endif
23170 #ifdef HAVE_STDLIB_H
23171 # include <stdlib.h>
23172 #endif
23173 #include <stdio.h>
23174
23175
23176
23177 int
23178 main ()
23179 {
23180 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
23181 test_array [0] = 0
23182
23183 ;
23184 return 0;
23185 }
23186 _ACEOF
23187 rm -f conftest.$ac_objext
23188 if { (ac_try="$ac_compile"
23189 case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23192 esac
23193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23194 $as_echo "$ac_try_echo") >&5
23195 (eval "$ac_compile") 2>conftest.er1
23196 ac_status=$?
23197 grep -v '^ *+' conftest.er1 >conftest.err
23198 rm -f conftest.er1
23199 cat conftest.err >&5
23200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } && {
23202 test -z "$ac_c_werror_flag" ||
23203 test ! -s conftest.err
23204 } && test -s conftest.$ac_objext; then
23205 ac_hi=$ac_mid
23206 else
23207 $as_echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.$ac_ext >&5
23209
23210 ac_lo=`expr '(' $ac_mid ')' + 1`
23211 fi
23212
23213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23214 done
23215 case $ac_lo in
23216 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23217 '') if test "$ac_cv_type_wchar_t" = yes; then
23218 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23220 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23221 See \`config.log' for more details." >&5
23222 $as_echo "$as_me: error: cannot compute sizeof (wchar_t)
23223 See \`config.log' for more details." >&2;}
23224 { (exit 77); exit 77; }; }; }
23225 else
23226 ac_cv_sizeof_wchar_t=0
23227 fi ;;
23228 esac
23229 else
23230 cat >conftest.$ac_ext <<_ACEOF
23231 /* confdefs.h. */
23232 _ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23236
23237 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23238 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23239 # error "fake wchar_t"
23240 #endif
23241 #ifdef HAVE_WCHAR_H
23242 # ifdef __CYGWIN__
23243 # include <stddef.h>
23244 # endif
23245 # include <wchar.h>
23246 #endif
23247 #ifdef HAVE_STDLIB_H
23248 # include <stdlib.h>
23249 #endif
23250 #include <stdio.h>
23251
23252
23253
23254 static long int longval () { return (long int) (sizeof (wchar_t)); }
23255 static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); }
23256 #include <stdio.h>
23257 #include <stdlib.h>
23258 int
23259 main ()
23260 {
23261
23262 FILE *f = fopen ("conftest.val", "w");
23263 if (! f)
23264 return 1;
23265 if (((long int) (sizeof (wchar_t))) < 0)
23266 {
23267 long int i = longval ();
23268 if (i != ((long int) (sizeof (wchar_t))))
23269 return 1;
23270 fprintf (f, "%ld", i);
23271 }
23272 else
23273 {
23274 unsigned long int i = ulongval ();
23275 if (i != ((long int) (sizeof (wchar_t))))
23276 return 1;
23277 fprintf (f, "%lu", i);
23278 }
23279 /* Do not output a trailing newline, as this causes \r\n confusion
23280 on some platforms. */
23281 return ferror (f) || fclose (f) != 0;
23282
23283 ;
23284 return 0;
23285 }
23286 _ACEOF
23287 rm -f conftest$ac_exeext
23288 if { (ac_try="$ac_link"
23289 case "(($ac_try" in
23290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291 *) ac_try_echo=$ac_try;;
23292 esac
23293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23294 $as_echo "$ac_try_echo") >&5
23295 (eval "$ac_link") 2>&5
23296 ac_status=$?
23297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23299 { (case "(($ac_try" in
23300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23301 *) ac_try_echo=$ac_try;;
23302 esac
23303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23304 $as_echo "$ac_try_echo") >&5
23305 (eval "$ac_try") 2>&5
23306 ac_status=$?
23307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); }; }; then
23309 ac_cv_sizeof_wchar_t=`cat conftest.val`
23310 else
23311 $as_echo "$as_me: program exited with status $ac_status" >&5
23312 $as_echo "$as_me: failed program was:" >&5
23313 sed 's/^/| /' conftest.$ac_ext >&5
23314
23315 ( exit $ac_status )
23316 if test "$ac_cv_type_wchar_t" = yes; then
23317 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23319 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23320 See \`config.log' for more details." >&5
23321 $as_echo "$as_me: error: cannot compute sizeof (wchar_t)
23322 See \`config.log' for more details." >&2;}
23323 { (exit 77); exit 77; }; }; }
23324 else
23325 ac_cv_sizeof_wchar_t=0
23326 fi
23327 fi
23328 rm -rf conftest.dSYM
23329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23330 fi
23331 rm -f conftest.val
23332 fi
23333 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23334 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
23335
23336
23337
23338 cat >>confdefs.h <<_ACEOF
23339 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23340 _ACEOF
23341
23342
23343 if test "$ac_cv_sizeof_wchar_t" != 0; then
23344 wxUSE_WCHAR_T=yes
23345 else
23346 wxUSE_WCHAR_T=no
23347 fi
23348
23349 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
23350 $as_echo_n "checking for va_copy... " >&6; }
23351 if test "${wx_cv_func_va_copy+set}" = set; then
23352 $as_echo_n "(cached) " >&6
23353 else
23354
23355 ac_ext=cpp
23356 ac_cpp='$CXXCPP $CPPFLAGS'
23357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23360
23361 cat >conftest.$ac_ext <<_ACEOF
23362
23363 #include <stdarg.h>
23364 void foo(char *f, ...)
23365 {
23366 va_list ap1, ap2;
23367 va_start(ap1, f);
23368 va_copy(ap2, ap1);
23369 va_end(ap2);
23370 va_end(ap1);
23371 }
23372 int main()
23373 {
23374 foo("hi", 17);
23375 return 0;
23376 }
23377 _ACEOF
23378 rm -f conftest.$ac_objext conftest$ac_exeext
23379 if { (ac_try="$ac_link"
23380 case "(($ac_try" in
23381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23382 *) ac_try_echo=$ac_try;;
23383 esac
23384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23385 $as_echo "$ac_try_echo") >&5
23386 (eval "$ac_link") 2>conftest.er1
23387 ac_status=$?
23388 grep -v '^ *+' conftest.er1 >conftest.err
23389 rm -f conftest.er1
23390 cat conftest.err >&5
23391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } && {
23393 test -z "$ac_cxx_werror_flag" ||
23394 test ! -s conftest.err
23395 } && test -s conftest$ac_exeext && {
23396 test "$cross_compiling" = yes ||
23397 $as_test_x conftest$ac_exeext
23398 }; then
23399 wx_cv_func_va_copy=yes
23400 else
23401 $as_echo "$as_me: failed program was:" >&5
23402 sed 's/^/| /' conftest.$ac_ext >&5
23403
23404 wx_cv_func_va_copy=no
23405
23406 fi
23407
23408 rm -rf conftest.dSYM
23409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23410 conftest$ac_exeext conftest.$ac_ext
23411 ac_ext=c
23412 ac_cpp='$CPP $CPPFLAGS'
23413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23416
23417
23418
23419 fi
23420 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23421 $as_echo "$wx_cv_func_va_copy" >&6; }
23422
23423 if test $wx_cv_func_va_copy = "yes"; then
23424 cat >>confdefs.h <<\_ACEOF
23425 #define HAVE_VA_COPY 1
23426 _ACEOF
23427
23428 else
23429 { $as_echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23430 $as_echo_n "checking if va_list can be copied by value... " >&6; }
23431 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23432 $as_echo_n "(cached) " >&6
23433 else
23434
23435 if test "$cross_compiling" = yes; then
23436 wx_cv_type_va_list_lvalue=yes
23437
23438 else
23439 cat >conftest.$ac_ext <<_ACEOF
23440
23441 #include <stdarg.h>
23442 int foo(char *f, ...)
23443 {
23444 va_list ap1, ap2;
23445 va_start(ap1, f);
23446 ap2 = ap1;
23447 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23448 return 1;
23449 va_end(ap2);
23450 va_end(ap1);
23451 return 0;
23452 }
23453 int main()
23454 {
23455 return foo("hi", 17);
23456 }
23457 _ACEOF
23458 rm -f conftest$ac_exeext
23459 if { (ac_try="$ac_link"
23460 case "(($ac_try" in
23461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23462 *) ac_try_echo=$ac_try;;
23463 esac
23464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23465 $as_echo "$ac_try_echo") >&5
23466 (eval "$ac_link") 2>&5
23467 ac_status=$?
23468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23470 { (case "(($ac_try" in
23471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472 *) ac_try_echo=$ac_try;;
23473 esac
23474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23475 $as_echo "$ac_try_echo") >&5
23476 (eval "$ac_try") 2>&5
23477 ac_status=$?
23478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; }; then
23480 wx_cv_type_va_list_lvalue=yes
23481 else
23482 $as_echo "$as_me: program exited with status $ac_status" >&5
23483 $as_echo "$as_me: failed program was:" >&5
23484 sed 's/^/| /' conftest.$ac_ext >&5
23485
23486 ( exit $ac_status )
23487 wx_cv_type_va_list_lvalue=no
23488 fi
23489 rm -rf conftest.dSYM
23490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23491 fi
23492
23493
23494
23495
23496 fi
23497 { $as_echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23498 $as_echo "$wx_cv_type_va_list_lvalue" >&6; }
23499
23500 if test $wx_cv_type_va_list_lvalue != "yes"; then
23501 cat >>confdefs.h <<\_ACEOF
23502 #define VA_LIST_IS_ARRAY 1
23503 _ACEOF
23504
23505 fi
23506 fi
23507
23508 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23509
23510 { $as_echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23511 $as_echo_n "checking whether the compiler supports variadic macros... " >&6; }
23512 if test "${wx_cv_have_variadic_macros+set}" = set; then
23513 $as_echo_n "(cached) " >&6
23514 else
23515
23516 ac_ext=cpp
23517 ac_cpp='$CXXCPP $CPPFLAGS'
23518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23521
23522 cat >conftest.$ac_ext <<_ACEOF
23523 /* confdefs.h. */
23524 _ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23528
23529 #include <stdio.h>
23530 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23531
23532 int
23533 main ()
23534 {
23535
23536 test("%s %d %p", "test", 1, 0);
23537
23538
23539 ;
23540 return 0;
23541 }
23542 _ACEOF
23543 rm -f conftest.$ac_objext
23544 if { (ac_try="$ac_compile"
23545 case "(($ac_try" in
23546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23547 *) ac_try_echo=$ac_try;;
23548 esac
23549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23550 $as_echo "$ac_try_echo") >&5
23551 (eval "$ac_compile") 2>conftest.er1
23552 ac_status=$?
23553 grep -v '^ *+' conftest.er1 >conftest.err
23554 rm -f conftest.er1
23555 cat conftest.err >&5
23556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); } && {
23558 test -z "$ac_cxx_werror_flag" ||
23559 test ! -s conftest.err
23560 } && test -s conftest.$ac_objext; then
23561 wx_cv_have_variadic_macros=yes
23562 else
23563 $as_echo "$as_me: failed program was:" >&5
23564 sed 's/^/| /' conftest.$ac_ext >&5
23565
23566 wx_cv_have_variadic_macros=no
23567
23568 fi
23569
23570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23571 ac_ext=c
23572 ac_cpp='$CPP $CPPFLAGS'
23573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23576
23577
23578
23579 fi
23580 { $as_echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23581 $as_echo "$wx_cv_have_variadic_macros" >&6; }
23582
23583 if test $wx_cv_have_variadic_macros = "yes"; then
23584 cat >>confdefs.h <<\_ACEOF
23585 #define HAVE_VARIADIC_MACROS 1
23586 _ACEOF
23587
23588 fi
23589
23590 fi
23591
23592 LARGEFILE_CPPFLAGS=
23593 # Check whether --enable-largefile was given.
23594 if test "${enable_largefile+set}" = set; then
23595 enableval=$enable_largefile;
23596 fi
23597
23598 if test "$enable_largefile" != no; then
23599 wx_largefile=no
23600
23601 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23602 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
23603 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23604 $as_echo_n "(cached) " >&6
23605 else
23606
23607 cat >conftest.$ac_ext <<_ACEOF
23608 /* confdefs.h. */
23609 _ACEOF
23610 cat confdefs.h >>conftest.$ac_ext
23611 cat >>conftest.$ac_ext <<_ACEOF
23612 /* end confdefs.h. */
23613 #define _FILE_OFFSET_BITS 64
23614 #include <sys/types.h>
23615 int
23616 main ()
23617 {
23618 typedef struct {
23619 unsigned int field: sizeof(off_t) == 8;
23620 } wxlf;
23621
23622 ;
23623 return 0;
23624 }
23625 _ACEOF
23626 rm -f conftest.$ac_objext
23627 if { (ac_try="$ac_compile"
23628 case "(($ac_try" in
23629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23630 *) ac_try_echo=$ac_try;;
23631 esac
23632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23633 $as_echo "$ac_try_echo") >&5
23634 (eval "$ac_compile") 2>conftest.er1
23635 ac_status=$?
23636 grep -v '^ *+' conftest.er1 >conftest.err
23637 rm -f conftest.er1
23638 cat conftest.err >&5
23639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); } && {
23641 test -z "$ac_c_werror_flag" ||
23642 test ! -s conftest.err
23643 } && test -s conftest.$ac_objext; then
23644 ac_cv_sys_file_offset_bits=64
23645 else
23646 $as_echo "$as_me: failed program was:" >&5
23647 sed 's/^/| /' conftest.$ac_ext >&5
23648
23649 ac_cv_sys_file_offset_bits=no
23650 fi
23651
23652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23653
23654
23655 fi
23656 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23657 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
23658
23659 if test "$ac_cv_sys_file_offset_bits" != no; then
23660 wx_largefile=yes
23661 cat >>confdefs.h <<_ACEOF
23662 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23663 _ACEOF
23664
23665 fi
23666
23667 if test "x$wx_largefile" != "xyes"; then
23668
23669 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23670 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
23671 if test "${ac_cv_sys_large_files+set}" = set; then
23672 $as_echo_n "(cached) " >&6
23673 else
23674
23675 cat >conftest.$ac_ext <<_ACEOF
23676 /* confdefs.h. */
23677 _ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 #define _LARGE_FILES 1
23682 #include <sys/types.h>
23683 int
23684 main ()
23685 {
23686 typedef struct {
23687 unsigned int field: sizeof(off_t) == 8;
23688 } wxlf;
23689
23690 ;
23691 return 0;
23692 }
23693 _ACEOF
23694 rm -f conftest.$ac_objext
23695 if { (ac_try="$ac_compile"
23696 case "(($ac_try" in
23697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698 *) ac_try_echo=$ac_try;;
23699 esac
23700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23701 $as_echo "$ac_try_echo") >&5
23702 (eval "$ac_compile") 2>conftest.er1
23703 ac_status=$?
23704 grep -v '^ *+' conftest.er1 >conftest.err
23705 rm -f conftest.er1
23706 cat conftest.err >&5
23707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } && {
23709 test -z "$ac_c_werror_flag" ||
23710 test ! -s conftest.err
23711 } && test -s conftest.$ac_objext; then
23712 ac_cv_sys_large_files=1
23713 else
23714 $as_echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23716
23717 ac_cv_sys_large_files=no
23718 fi
23719
23720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23721
23722
23723 fi
23724 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23725 $as_echo "$ac_cv_sys_large_files" >&6; }
23726
23727 if test "$ac_cv_sys_large_files" != no; then
23728 wx_largefile=yes
23729 cat >>confdefs.h <<_ACEOF
23730 #define _LARGE_FILES $ac_cv_sys_large_files
23731 _ACEOF
23732
23733 fi
23734
23735 fi
23736
23737 { $as_echo "$as_me:$LINENO: checking if large file support is available" >&5
23738 $as_echo_n "checking if large file support is available... " >&6; }
23739 if test "x$wx_largefile" = "xyes"; then
23740 cat >>confdefs.h <<\_ACEOF
23741 #define HAVE_LARGEFILE_SUPPORT 1
23742 _ACEOF
23743
23744 fi
23745 { $as_echo "$as_me:$LINENO: result: $wx_largefile" >&5
23746 $as_echo "$wx_largefile" >&6; }
23747 fi
23748
23749 if test "$ac_cv_sys_file_offset_bits" = "64"; then
23750 LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
23751 elif test "$ac_cv_sys_large_files" = 1; then
23752 LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
23753 fi
23754
23755 if test -n "$LARGEFILE_CPPFLAGS"; then
23756 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
23757
23758 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23759 { $as_echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23760 $as_echo_n "checking if -D__STDC_EXT__ is required... " >&6; }
23761 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23762 $as_echo_n "(cached) " >&6
23763 else
23764
23765 ac_ext=cpp
23766 ac_cpp='$CXXCPP $CPPFLAGS'
23767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23770
23771 cat >conftest.$ac_ext <<_ACEOF
23772 /* confdefs.h. */
23773 _ACEOF
23774 cat confdefs.h >>conftest.$ac_ext
23775 cat >>conftest.$ac_ext <<_ACEOF
23776 /* end confdefs.h. */
23777
23778 int
23779 main ()
23780 {
23781
23782 #ifndef __STDC_EXT__
23783 choke me
23784 #endif
23785
23786 ;
23787 return 0;
23788 }
23789 _ACEOF
23790 rm -f conftest.$ac_objext
23791 if { (ac_try="$ac_compile"
23792 case "(($ac_try" in
23793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23794 *) ac_try_echo=$ac_try;;
23795 esac
23796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23797 $as_echo "$ac_try_echo") >&5
23798 (eval "$ac_compile") 2>conftest.er1
23799 ac_status=$?
23800 grep -v '^ *+' conftest.er1 >conftest.err
23801 rm -f conftest.er1
23802 cat conftest.err >&5
23803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); } && {
23805 test -z "$ac_cxx_werror_flag" ||
23806 test ! -s conftest.err
23807 } && test -s conftest.$ac_objext; then
23808 wx_cv_STDC_EXT_required=no
23809 else
23810 $as_echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23812
23813 wx_cv_STDC_EXT_required=yes
23814
23815 fi
23816
23817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23818 ac_ext=c
23819 ac_cpp='$CPP $CPPFLAGS'
23820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23823
23824
23825
23826 fi
23827 { $as_echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23828 $as_echo "$wx_cv_STDC_EXT_required" >&6; }
23829 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23830 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23831 fi
23832 fi
23833 fi
23834
23835 ac_ext=cpp
23836 ac_cpp='$CXXCPP $CPPFLAGS'
23837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23840
23841 old_CPPFLAGS="$CPPFLAGS"
23842 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
23843 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23844 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
23845 if test "${ac_cv_sys_largefile_source+set}" = set; then
23846 $as_echo_n "(cached) " >&6
23847 else
23848 while :; do
23849 cat >conftest.$ac_ext <<_ACEOF
23850 /* confdefs.h. */
23851 _ACEOF
23852 cat confdefs.h >>conftest.$ac_ext
23853 cat >>conftest.$ac_ext <<_ACEOF
23854 /* end confdefs.h. */
23855 #include <sys/types.h> /* for off_t */
23856 #include <stdio.h>
23857 int
23858 main ()
23859 {
23860 int (*fp) (FILE *, off_t, int) = fseeko;
23861 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23862 ;
23863 return 0;
23864 }
23865 _ACEOF
23866 rm -f conftest.$ac_objext conftest$ac_exeext
23867 if { (ac_try="$ac_link"
23868 case "(($ac_try" in
23869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23870 *) ac_try_echo=$ac_try;;
23871 esac
23872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23873 $as_echo "$ac_try_echo") >&5
23874 (eval "$ac_link") 2>conftest.er1
23875 ac_status=$?
23876 grep -v '^ *+' conftest.er1 >conftest.err
23877 rm -f conftest.er1
23878 cat conftest.err >&5
23879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); } && {
23881 test -z "$ac_cxx_werror_flag" ||
23882 test ! -s conftest.err
23883 } && test -s conftest$ac_exeext && {
23884 test "$cross_compiling" = yes ||
23885 $as_test_x conftest$ac_exeext
23886 }; then
23887 ac_cv_sys_largefile_source=no; break
23888 else
23889 $as_echo "$as_me: failed program was:" >&5
23890 sed 's/^/| /' conftest.$ac_ext >&5
23891
23892
23893 fi
23894
23895 rm -rf conftest.dSYM
23896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23897 conftest$ac_exeext conftest.$ac_ext
23898 cat >conftest.$ac_ext <<_ACEOF
23899 /* confdefs.h. */
23900 _ACEOF
23901 cat confdefs.h >>conftest.$ac_ext
23902 cat >>conftest.$ac_ext <<_ACEOF
23903 /* end confdefs.h. */
23904 #define _LARGEFILE_SOURCE 1
23905 #include <sys/types.h> /* for off_t */
23906 #include <stdio.h>
23907 int
23908 main ()
23909 {
23910 int (*fp) (FILE *, off_t, int) = fseeko;
23911 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23912 ;
23913 return 0;
23914 }
23915 _ACEOF
23916 rm -f conftest.$ac_objext conftest$ac_exeext
23917 if { (ac_try="$ac_link"
23918 case "(($ac_try" in
23919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23920 *) ac_try_echo=$ac_try;;
23921 esac
23922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23923 $as_echo "$ac_try_echo") >&5
23924 (eval "$ac_link") 2>conftest.er1
23925 ac_status=$?
23926 grep -v '^ *+' conftest.er1 >conftest.err
23927 rm -f conftest.er1
23928 cat conftest.err >&5
23929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); } && {
23931 test -z "$ac_cxx_werror_flag" ||
23932 test ! -s conftest.err
23933 } && test -s conftest$ac_exeext && {
23934 test "$cross_compiling" = yes ||
23935 $as_test_x conftest$ac_exeext
23936 }; then
23937 ac_cv_sys_largefile_source=1; break
23938 else
23939 $as_echo "$as_me: failed program was:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23941
23942
23943 fi
23944
23945 rm -rf conftest.dSYM
23946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23947 conftest$ac_exeext conftest.$ac_ext
23948 ac_cv_sys_largefile_source=unknown
23949 break
23950 done
23951 fi
23952 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23953 $as_echo "$ac_cv_sys_largefile_source" >&6; }
23954 case $ac_cv_sys_largefile_source in #(
23955 no | unknown) ;;
23956 *)
23957 cat >>confdefs.h <<_ACEOF
23958 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23959 _ACEOF
23960 ;;
23961 esac
23962 rm -rf conftest*
23963
23964 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23965 # in glibc 2.1.3, but that breaks too many other things.
23966 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23967 if test $ac_cv_sys_largefile_source != unknown; then
23968
23969 cat >>confdefs.h <<\_ACEOF
23970 #define HAVE_FSEEKO 1
23971 _ACEOF
23972
23973 fi
23974
23975 CPPFLAGS="$old_CPPFLAGS"
23976 ac_ext=c
23977 ac_cpp='$CPP $CPPFLAGS'
23978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23981
23982 if test "$ac_cv_sys_largefile_source" != no; then
23983 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23984 fi
23985
23986 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23987 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23988 if test "${ac_cv_c_bigendian+set}" = set; then
23989 $as_echo_n "(cached) " >&6
23990 else
23991 ac_cv_c_bigendian=unknown
23992 # See if sys/param.h defines the BYTE_ORDER macro.
23993 cat >conftest.$ac_ext <<_ACEOF
23994 /* confdefs.h. */
23995 _ACEOF
23996 cat confdefs.h >>conftest.$ac_ext
23997 cat >>conftest.$ac_ext <<_ACEOF
23998 /* end confdefs.h. */
23999 #include <sys/types.h>
24000 #include <sys/param.h>
24001 int
24002 main ()
24003 {
24004
24005 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24006 bogus endian macros
24007 #endif
24008 ;
24009 return 0;
24010 }
24011 _ACEOF
24012 rm -f conftest.$ac_objext
24013 if { (ac_try="$ac_compile"
24014 case "(($ac_try" in
24015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24016 *) ac_try_echo=$ac_try;;
24017 esac
24018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24019 $as_echo "$ac_try_echo") >&5
24020 (eval "$ac_compile") 2>conftest.er1
24021 ac_status=$?
24022 grep -v '^ *+' conftest.er1 >conftest.err
24023 rm -f conftest.er1
24024 cat conftest.err >&5
24025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); } && {
24027 test -z "$ac_c_werror_flag" ||
24028 test ! -s conftest.err
24029 } && test -s conftest.$ac_objext; then
24030 # It does; now see whether it defined to BIG_ENDIAN or not.
24031 cat >conftest.$ac_ext <<_ACEOF
24032 /* confdefs.h. */
24033 _ACEOF
24034 cat confdefs.h >>conftest.$ac_ext
24035 cat >>conftest.$ac_ext <<_ACEOF
24036 /* end confdefs.h. */
24037 #include <sys/types.h>
24038 #include <sys/param.h>
24039 int
24040 main ()
24041 {
24042
24043 #if BYTE_ORDER != BIG_ENDIAN
24044 not big endian
24045 #endif
24046 ;
24047 return 0;
24048 }
24049 _ACEOF
24050 rm -f conftest.$ac_objext
24051 if { (ac_try="$ac_compile"
24052 case "(($ac_try" in
24053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24054 *) ac_try_echo=$ac_try;;
24055 esac
24056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24057 $as_echo "$ac_try_echo") >&5
24058 (eval "$ac_compile") 2>conftest.er1
24059 ac_status=$?
24060 grep -v '^ *+' conftest.er1 >conftest.err
24061 rm -f conftest.er1
24062 cat conftest.err >&5
24063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); } && {
24065 test -z "$ac_c_werror_flag" ||
24066 test ! -s conftest.err
24067 } && test -s conftest.$ac_objext; then
24068 ac_cv_c_bigendian=yes
24069 else
24070 $as_echo "$as_me: failed program was:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24072
24073 ac_cv_c_bigendian=no
24074 fi
24075
24076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24077 else
24078 $as_echo "$as_me: failed program was:" >&5
24079 sed 's/^/| /' conftest.$ac_ext >&5
24080
24081
24082 fi
24083
24084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24085 if test $ac_cv_c_bigendian = unknown; then
24086 if test "$cross_compiling" = yes; then
24087 ac_cv_c_bigendian=unknown
24088 else
24089 cat >conftest.$ac_ext <<_ACEOF
24090 /* confdefs.h. */
24091 _ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h. */
24095 main () {
24096 /* Are we little or big endian? From Harbison&Steele. */
24097 union
24098 {
24099 long l;
24100 char c[sizeof (long)];
24101 } u;
24102 u.l = 1;
24103 exit (u.c[sizeof (long) - 1] == 1);
24104 }
24105 _ACEOF
24106 rm -f conftest$ac_exeext
24107 if { (ac_try="$ac_link"
24108 case "(($ac_try" in
24109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24110 *) ac_try_echo=$ac_try;;
24111 esac
24112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24113 $as_echo "$ac_try_echo") >&5
24114 (eval "$ac_link") 2>&5
24115 ac_status=$?
24116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24118 { (case "(($ac_try" in
24119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24120 *) ac_try_echo=$ac_try;;
24121 esac
24122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24123 $as_echo "$ac_try_echo") >&5
24124 (eval "$ac_try") 2>&5
24125 ac_status=$?
24126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); }; }; then
24128 ac_cv_c_bigendian=no
24129 else
24130 $as_echo "$as_me: program exited with status $ac_status" >&5
24131 $as_echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24133
24134 ( exit $ac_status )
24135 ac_cv_c_bigendian=yes
24136 fi
24137 rm -rf conftest.dSYM
24138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24139 fi
24140
24141
24142 fi
24143 fi
24144 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24145 $as_echo "$ac_cv_c_bigendian" >&6; }
24146 if test $ac_cv_c_bigendian = unknown; then
24147 { $as_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
24148 $as_echo "$as_me: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
24149 fi
24150 if test $ac_cv_c_bigendian = yes; then
24151 cat >>confdefs.h <<\_ACEOF
24152 #define WORDS_BIGENDIAN 1
24153 _ACEOF
24154
24155 fi
24156
24157
24158
24159
24160 ac_ext=cpp
24161 ac_cpp='$CXXCPP $CPPFLAGS'
24162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24165
24166
24167
24168 for ac_header in iostream
24169 do
24170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24171 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24172 $as_echo_n "checking for $ac_header... " >&6; }
24173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24174 $as_echo_n "(cached) " >&6
24175 else
24176 cat >conftest.$ac_ext <<_ACEOF
24177 /* confdefs.h. */
24178 _ACEOF
24179 cat confdefs.h >>conftest.$ac_ext
24180 cat >>conftest.$ac_ext <<_ACEOF
24181 /* end confdefs.h. */
24182
24183
24184 #include <$ac_header>
24185 _ACEOF
24186 rm -f conftest.$ac_objext
24187 if { (ac_try="$ac_compile"
24188 case "(($ac_try" in
24189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24190 *) ac_try_echo=$ac_try;;
24191 esac
24192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24193 $as_echo "$ac_try_echo") >&5
24194 (eval "$ac_compile") 2>conftest.er1
24195 ac_status=$?
24196 grep -v '^ *+' conftest.er1 >conftest.err
24197 rm -f conftest.er1
24198 cat conftest.err >&5
24199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } && {
24201 test -z "$ac_cxx_werror_flag" ||
24202 test ! -s conftest.err
24203 } && test -s conftest.$ac_objext; then
24204 eval "$as_ac_Header=yes"
24205 else
24206 $as_echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24208
24209 eval "$as_ac_Header=no"
24210 fi
24211
24212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24213 fi
24214 ac_res=`eval 'as_val=${'$as_ac_Header'}
24215 $as_echo "$as_val"'`
24216 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24217 $as_echo "$ac_res" >&6; }
24218 as_val=`eval 'as_val=${'$as_ac_Header'}
24219 $as_echo "$as_val"'`
24220 if test "x$as_val" = x""yes; then
24221 cat >>confdefs.h <<_ACEOF
24222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24223 _ACEOF
24224
24225 fi
24226
24227 done
24228
24229
24230 if test "$ac_cv_header_iostream" = "yes" ; then
24231 :
24232 else
24233 cat >>confdefs.h <<\_ACEOF
24234 #define wxUSE_IOSTREAMH 1
24235 _ACEOF
24236
24237 fi
24238
24239 ac_ext=c
24240 ac_cpp='$CPP $CPPFLAGS'
24241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24244
24245
24246
24247
24248 { $as_echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
24249 $as_echo_n "checking if C++ compiler supports the explicit keyword... " >&6; }
24250 if test "${wx_cv_explicit+set}" = set; then
24251 $as_echo_n "(cached) " >&6
24252 else
24253
24254
24255 ac_ext=cpp
24256 ac_cpp='$CXXCPP $CPPFLAGS'
24257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24260
24261
24262 cat >conftest.$ac_ext <<_ACEOF
24263 /* confdefs.h. */
24264 _ACEOF
24265 cat confdefs.h >>conftest.$ac_ext
24266 cat >>conftest.$ac_ext <<_ACEOF
24267 /* end confdefs.h. */
24268
24269 class Foo { public: explicit Foo(int) {} };
24270
24271 int
24272 main ()
24273 {
24274
24275 return 0;
24276
24277 ;
24278 return 0;
24279 }
24280 _ACEOF
24281 rm -f conftest.$ac_objext
24282 if { (ac_try="$ac_compile"
24283 case "(($ac_try" in
24284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24285 *) ac_try_echo=$ac_try;;
24286 esac
24287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24288 $as_echo "$ac_try_echo") >&5
24289 (eval "$ac_compile") 2>conftest.er1
24290 ac_status=$?
24291 grep -v '^ *+' conftest.er1 >conftest.err
24292 rm -f conftest.er1
24293 cat conftest.err >&5
24294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); } && {
24296 test -z "$ac_cxx_werror_flag" ||
24297 test ! -s conftest.err
24298 } && test -s conftest.$ac_objext; then
24299
24300 cat >conftest.$ac_ext <<_ACEOF
24301 /* confdefs.h. */
24302 _ACEOF
24303 cat confdefs.h >>conftest.$ac_ext
24304 cat >>conftest.$ac_ext <<_ACEOF
24305 /* end confdefs.h. */
24306
24307 class Foo { public: explicit Foo(int) {} };
24308 static void TakeFoo(const Foo& foo) { }
24309
24310 int
24311 main ()
24312 {
24313
24314 TakeFoo(17);
24315 return 0;
24316
24317 ;
24318 return 0;
24319 }
24320 _ACEOF
24321 rm -f conftest.$ac_objext
24322 if { (ac_try="$ac_compile"
24323 case "(($ac_try" in
24324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325 *) ac_try_echo=$ac_try;;
24326 esac
24327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24328 $as_echo "$ac_try_echo") >&5
24329 (eval "$ac_compile") 2>conftest.er1
24330 ac_status=$?
24331 grep -v '^ *+' conftest.er1 >conftest.err
24332 rm -f conftest.er1
24333 cat conftest.err >&5
24334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } && {
24336 test -z "$ac_cxx_werror_flag" ||
24337 test ! -s conftest.err
24338 } && test -s conftest.$ac_objext; then
24339 wx_cv_explicit=no
24340 else
24341 $as_echo "$as_me: failed program was:" >&5
24342 sed 's/^/| /' conftest.$ac_ext >&5
24343
24344 wx_cv_explicit=yes
24345
24346 fi
24347
24348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24349
24350 else
24351 $as_echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.$ac_ext >&5
24353
24354 wx_cv_explicit=no
24355
24356 fi
24357
24358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24359
24360 ac_ext=c
24361 ac_cpp='$CPP $CPPFLAGS'
24362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24365
24366
24367 fi
24368 { $as_echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24369 $as_echo "$wx_cv_explicit" >&6; }
24370
24371 if test "$wx_cv_explicit" = "yes"; then
24372 cat >>confdefs.h <<\_ACEOF
24373 #define HAVE_EXPLICIT 1
24374 _ACEOF
24375
24376 fi
24377
24378
24379 if test "x$SUNCXX" = xyes; then
24380 CXXFLAGS="-features=tmplife $CXXFLAGS"
24381 fi
24382
24383 if test "x$SUNCC" = xyes; then
24384 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24385 fi
24386
24387 if test "x$SGICC" = "xyes"; then
24388 CFLAGS="-woff 3970 $CFLAGS"
24389 fi
24390 if test "x$SGICXX" = "xyes"; then
24391 CXXFLAGS="-woff 3970 $CXXFLAGS"
24392 fi
24393
24394 if test "x$HPCC" = "xyes"; then
24395 CFLAGS="+W 2011,2450 $CFLAGS"
24396 fi
24397 if test "x$HPCXX" = "xyes"; then
24398 CXXFLAGS="+W 2340,4232 $CXXFLAGS"
24399 fi
24400
24401 if test "x$COMPAQCXX" = "xyes"; then
24402 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24403 fi
24404
24405 ac_ext=cpp
24406 ac_cpp='$CXXCPP $CPPFLAGS'
24407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24410
24411
24412 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24413 if test "$wxUSE_UNICODE" = "yes"; then
24414 std_string="std::wstring"
24415 char_type="wchar_t"
24416 else
24417 std_string="std::string"
24418 char_type="char"
24419 fi
24420
24421 { $as_echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24422 $as_echo_n "checking for $std_string in <string>... " >&6; }
24423 if test "${wx_cv_class_stdstring+set}" = set; then
24424 $as_echo_n "(cached) " >&6
24425 else
24426
24427 cat >conftest.$ac_ext <<_ACEOF
24428 /* confdefs.h. */
24429 _ACEOF
24430 cat confdefs.h >>conftest.$ac_ext
24431 cat >>conftest.$ac_ext <<_ACEOF
24432 /* end confdefs.h. */
24433 #include <string>
24434 int
24435 main ()
24436 {
24437 $std_string foo;
24438 ;
24439 return 0;
24440 }
24441 _ACEOF
24442 rm -f conftest.$ac_objext
24443 if { (ac_try="$ac_compile"
24444 case "(($ac_try" in
24445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446 *) ac_try_echo=$ac_try;;
24447 esac
24448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24449 $as_echo "$ac_try_echo") >&5
24450 (eval "$ac_compile") 2>conftest.er1
24451 ac_status=$?
24452 grep -v '^ *+' conftest.er1 >conftest.err
24453 rm -f conftest.er1
24454 cat conftest.err >&5
24455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); } && {
24457 test -z "$ac_cxx_werror_flag" ||
24458 test ! -s conftest.err
24459 } && test -s conftest.$ac_objext; then
24460 wx_cv_class_stdstring=yes
24461 else
24462 $as_echo "$as_me: failed program was:" >&5
24463 sed 's/^/| /' conftest.$ac_ext >&5
24464
24465 wx_cv_class_stdstring=no
24466
24467 fi
24468
24469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24470
24471
24472 fi
24473 { $as_echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24474 $as_echo "$wx_cv_class_stdstring" >&6; }
24475
24476 if test "$wx_cv_class_stdstring" = yes; then
24477 if test "$wxUSE_UNICODE" = "yes"; then
24478 cat >>confdefs.h <<\_ACEOF
24479 #define HAVE_STD_WSTRING 1
24480 _ACEOF
24481
24482 fi
24483 else
24484 { $as_echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24485 $as_echo_n "checking if std::basic_string<$char_type> works... " >&6; }
24486 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24487 $as_echo_n "(cached) " >&6
24488 else
24489
24490 cat >conftest.$ac_ext <<_ACEOF
24491 /* confdefs.h. */
24492 _ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h. */
24496
24497 #ifdef HAVE_WCHAR_H
24498 # ifdef __CYGWIN__
24499 # include <stddef.h>
24500 # endif
24501 # include <wchar.h>
24502 #endif
24503 #ifdef HAVE_STDLIB_H
24504 # include <stdlib.h>
24505 #endif
24506 #include <stdio.h>
24507 #include <string>
24508
24509 int
24510 main ()
24511 {
24512 std::basic_string<$char_type> foo;
24513 const $char_type* dummy = foo.c_str();
24514 ;
24515 return 0;
24516 }
24517 _ACEOF
24518 rm -f conftest.$ac_objext
24519 if { (ac_try="$ac_compile"
24520 case "(($ac_try" in
24521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24522 *) ac_try_echo=$ac_try;;
24523 esac
24524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24525 $as_echo "$ac_try_echo") >&5
24526 (eval "$ac_compile") 2>conftest.er1
24527 ac_status=$?
24528 grep -v '^ *+' conftest.er1 >conftest.err
24529 rm -f conftest.er1
24530 cat conftest.err >&5
24531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532 (exit $ac_status); } && {
24533 test -z "$ac_cxx_werror_flag" ||
24534 test ! -s conftest.err
24535 } && test -s conftest.$ac_objext; then
24536 wx_cv_class_stdbasicstring=yes
24537 else
24538 $as_echo "$as_me: failed program was:" >&5
24539 sed 's/^/| /' conftest.$ac_ext >&5
24540
24541 wx_cv_class_stdbasicstring=no
24542
24543 fi
24544
24545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24546
24547
24548 fi
24549 { $as_echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24550 $as_echo "$wx_cv_class_stdbasicstring" >&6; }
24551
24552 if test "$wx_cv_class_stdbasicstring" != yes; then
24553 if test "$wxUSE_STL" = "yes"; then
24554 { { $as_echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24555 $as_echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24556 { (exit 1); exit 1; }; }
24557 elif test "$wxUSE_STD_STRING" = "yes"; then
24558 { { $as_echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24559 $as_echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24560 { (exit 1); exit 1; }; }
24561 else
24562 { $as_echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24563 $as_echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24564 wxUSE_STD_STRING=no
24565 fi
24566 fi
24567 fi
24568 fi
24569
24570 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24571 { $as_echo "$as_me:$LINENO: checking for std::istream" >&5
24572 $as_echo_n "checking for std::istream... " >&6; }
24573 if test "${ac_cv_type_std__istream+set}" = set; then
24574 $as_echo_n "(cached) " >&6
24575 else
24576 ac_cv_type_std__istream=no
24577 cat >conftest.$ac_ext <<_ACEOF
24578 /* confdefs.h. */
24579 _ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24583 #include <iostream>
24584
24585 int
24586 main ()
24587 {
24588 if (sizeof (std::istream))
24589 return 0;
24590 ;
24591 return 0;
24592 }
24593 _ACEOF
24594 rm -f conftest.$ac_objext
24595 if { (ac_try="$ac_compile"
24596 case "(($ac_try" in
24597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598 *) ac_try_echo=$ac_try;;
24599 esac
24600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24601 $as_echo "$ac_try_echo") >&5
24602 (eval "$ac_compile") 2>conftest.er1
24603 ac_status=$?
24604 grep -v '^ *+' conftest.er1 >conftest.err
24605 rm -f conftest.er1
24606 cat conftest.err >&5
24607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } && {
24609 test -z "$ac_cxx_werror_flag" ||
24610 test ! -s conftest.err
24611 } && test -s conftest.$ac_objext; then
24612 cat >conftest.$ac_ext <<_ACEOF
24613 /* confdefs.h. */
24614 _ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h. */
24618 #include <iostream>
24619
24620 int
24621 main ()
24622 {
24623 if (sizeof ((std::istream)))
24624 return 0;
24625 ;
24626 return 0;
24627 }
24628 _ACEOF
24629 rm -f conftest.$ac_objext
24630 if { (ac_try="$ac_compile"
24631 case "(($ac_try" in
24632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633 *) ac_try_echo=$ac_try;;
24634 esac
24635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24636 $as_echo "$ac_try_echo") >&5
24637 (eval "$ac_compile") 2>conftest.er1
24638 ac_status=$?
24639 grep -v '^ *+' conftest.er1 >conftest.err
24640 rm -f conftest.er1
24641 cat conftest.err >&5
24642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); } && {
24644 test -z "$ac_cxx_werror_flag" ||
24645 test ! -s conftest.err
24646 } && test -s conftest.$ac_objext; then
24647 :
24648 else
24649 $as_echo "$as_me: failed program was:" >&5
24650 sed 's/^/| /' conftest.$ac_ext >&5
24651
24652 ac_cv_type_std__istream=yes
24653 fi
24654
24655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24656 else
24657 $as_echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24659
24660
24661 fi
24662
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24664 fi
24665 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24666 $as_echo "$ac_cv_type_std__istream" >&6; }
24667 if test "x$ac_cv_type_std__istream" = x""yes; then
24668
24669 cat >>confdefs.h <<_ACEOF
24670 #define HAVE_STD__ISTREAM 1
24671 _ACEOF
24672
24673
24674 else
24675 wxUSE_STD_IOSTREAM=no
24676 fi
24677 { $as_echo "$as_me:$LINENO: checking for std::ostream" >&5
24678 $as_echo_n "checking for std::ostream... " >&6; }
24679 if test "${ac_cv_type_std__ostream+set}" = set; then
24680 $as_echo_n "(cached) " >&6
24681 else
24682 ac_cv_type_std__ostream=no
24683 cat >conftest.$ac_ext <<_ACEOF
24684 /* confdefs.h. */
24685 _ACEOF
24686 cat confdefs.h >>conftest.$ac_ext
24687 cat >>conftest.$ac_ext <<_ACEOF
24688 /* end confdefs.h. */
24689 #include <iostream>
24690
24691 int
24692 main ()
24693 {
24694 if (sizeof (std::ostream))
24695 return 0;
24696 ;
24697 return 0;
24698 }
24699 _ACEOF
24700 rm -f conftest.$ac_objext
24701 if { (ac_try="$ac_compile"
24702 case "(($ac_try" in
24703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704 *) ac_try_echo=$ac_try;;
24705 esac
24706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24707 $as_echo "$ac_try_echo") >&5
24708 (eval "$ac_compile") 2>conftest.er1
24709 ac_status=$?
24710 grep -v '^ *+' conftest.er1 >conftest.err
24711 rm -f conftest.er1
24712 cat conftest.err >&5
24713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); } && {
24715 test -z "$ac_cxx_werror_flag" ||
24716 test ! -s conftest.err
24717 } && test -s conftest.$ac_objext; then
24718 cat >conftest.$ac_ext <<_ACEOF
24719 /* confdefs.h. */
24720 _ACEOF
24721 cat confdefs.h >>conftest.$ac_ext
24722 cat >>conftest.$ac_ext <<_ACEOF
24723 /* end confdefs.h. */
24724 #include <iostream>
24725
24726 int
24727 main ()
24728 {
24729 if (sizeof ((std::ostream)))
24730 return 0;
24731 ;
24732 return 0;
24733 }
24734 _ACEOF
24735 rm -f conftest.$ac_objext
24736 if { (ac_try="$ac_compile"
24737 case "(($ac_try" in
24738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24739 *) ac_try_echo=$ac_try;;
24740 esac
24741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24742 $as_echo "$ac_try_echo") >&5
24743 (eval "$ac_compile") 2>conftest.er1
24744 ac_status=$?
24745 grep -v '^ *+' conftest.er1 >conftest.err
24746 rm -f conftest.er1
24747 cat conftest.err >&5
24748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); } && {
24750 test -z "$ac_cxx_werror_flag" ||
24751 test ! -s conftest.err
24752 } && test -s conftest.$ac_objext; then
24753 :
24754 else
24755 $as_echo "$as_me: failed program was:" >&5
24756 sed 's/^/| /' conftest.$ac_ext >&5
24757
24758 ac_cv_type_std__ostream=yes
24759 fi
24760
24761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24762 else
24763 $as_echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24765
24766
24767 fi
24768
24769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24770 fi
24771 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24772 $as_echo "$ac_cv_type_std__ostream" >&6; }
24773 if test "x$ac_cv_type_std__ostream" = x""yes; then
24774
24775 cat >>confdefs.h <<_ACEOF
24776 #define HAVE_STD__OSTREAM 1
24777 _ACEOF
24778
24779
24780 else
24781 wxUSE_STD_IOSTREAM=no
24782 fi
24783
24784
24785 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24786 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24787 { { $as_echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24788 $as_echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24789 { (exit 1); exit 1; }; }
24790 else
24791 { $as_echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24792 $as_echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24793 fi
24794 fi
24795 fi
24796
24797 if test "$wxUSE_STL" = "yes"; then
24798 { $as_echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24799 $as_echo_n "checking for basic STL functionality... " >&6; }
24800 if test "${wx_cv_lib_stl+set}" = set; then
24801 $as_echo_n "(cached) " >&6
24802 else
24803 cat >conftest.$ac_ext <<_ACEOF
24804 /* confdefs.h. */
24805 _ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h. */
24809 #include <string>
24810 #include <functional>
24811 #include <algorithm>
24812 #include <vector>
24813 #include <list>
24814 int
24815 main ()
24816 {
24817 std::vector<int> moo;
24818 std::list<int> foo;
24819 std::vector<int>::iterator it =
24820 std::find_if(moo.begin(), moo.end(),
24821 std::bind2nd(std::less<int>(), 3));
24822 ;
24823 return 0;
24824 }
24825 _ACEOF
24826 rm -f conftest.$ac_objext
24827 if { (ac_try="$ac_compile"
24828 case "(($ac_try" in
24829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830 *) ac_try_echo=$ac_try;;
24831 esac
24832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24833 $as_echo "$ac_try_echo") >&5
24834 (eval "$ac_compile") 2>conftest.er1
24835 ac_status=$?
24836 grep -v '^ *+' conftest.er1 >conftest.err
24837 rm -f conftest.er1
24838 cat conftest.err >&5
24839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); } && {
24841 test -z "$ac_cxx_werror_flag" ||
24842 test ! -s conftest.err
24843 } && test -s conftest.$ac_objext; then
24844 wx_cv_lib_stl=yes
24845 else
24846 $as_echo "$as_me: failed program was:" >&5
24847 sed 's/^/| /' conftest.$ac_ext >&5
24848
24849 wx_cv_lib_stl=no
24850
24851 fi
24852
24853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24854
24855 fi
24856 { $as_echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24857 $as_echo "$wx_cv_lib_stl" >&6; }
24858
24859 if test "$wx_cv_lib_stl" != yes; then
24860 { { $as_echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24861 $as_echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24862 { (exit 1); exit 1; }; }
24863 fi
24864
24865 { $as_echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24866 $as_echo_n "checking for compliant std::string::compare... " >&6; }
24867 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24868 $as_echo_n "(cached) " >&6
24869 else
24870 cat >conftest.$ac_ext <<_ACEOF
24871 /* confdefs.h. */
24872 _ACEOF
24873 cat confdefs.h >>conftest.$ac_ext
24874 cat >>conftest.$ac_ext <<_ACEOF
24875 /* end confdefs.h. */
24876 #include <string>
24877 int
24878 main ()
24879 {
24880 std::string foo, bar;
24881 foo.compare(bar);
24882 foo.compare(1, 1, bar);
24883 foo.compare(1, 1, bar, 1, 1);
24884 foo.compare("");
24885 foo.compare(1, 1, "");
24886 foo.compare(1, 1, "", 2);
24887 ;
24888 return 0;
24889 }
24890 _ACEOF
24891 rm -f conftest.$ac_objext
24892 if { (ac_try="$ac_compile"
24893 case "(($ac_try" in
24894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24895 *) ac_try_echo=$ac_try;;
24896 esac
24897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24898 $as_echo "$ac_try_echo") >&5
24899 (eval "$ac_compile") 2>conftest.er1
24900 ac_status=$?
24901 grep -v '^ *+' conftest.er1 >conftest.err
24902 rm -f conftest.er1
24903 cat conftest.err >&5
24904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); } && {
24906 test -z "$ac_cxx_werror_flag" ||
24907 test ! -s conftest.err
24908 } && test -s conftest.$ac_objext; then
24909 wx_cv_func_stdstring_compare=yes
24910 else
24911 $as_echo "$as_me: failed program was:" >&5
24912 sed 's/^/| /' conftest.$ac_ext >&5
24913
24914 wx_cv_func_stdstring_compare=no
24915
24916 fi
24917
24918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24919
24920 fi
24921 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24922 $as_echo "$wx_cv_func_stdstring_compare" >&6; }
24923
24924 if test "$wx_cv_func_stdstring_compare" = yes; then
24925 cat >>confdefs.h <<\_ACEOF
24926 #define HAVE_STD_STRING_COMPARE 1
24927 _ACEOF
24928
24929 fi
24930
24931 if test "$wx_cv_class_gnuhashmapset" = yes; then
24932 cat >>confdefs.h <<\_ACEOF
24933 #define HAVE_EXT_HASH_MAP 1
24934 _ACEOF
24935
24936 cat >>confdefs.h <<\_ACEOF
24937 #define HAVE_GNU_CXX_HASH_MAP 1
24938 _ACEOF
24939
24940 fi
24941
24942 { $as_echo "$as_me:$LINENO: checking for unordered_map" >&5
24943 $as_echo_n "checking for unordered_map... " >&6; }
24944 if test "${ac_cv_header_unordered_map+set}" = set; then
24945 $as_echo_n "(cached) " >&6
24946 else
24947 cat >conftest.$ac_ext <<_ACEOF
24948 /* confdefs.h. */
24949 _ACEOF
24950 cat confdefs.h >>conftest.$ac_ext
24951 cat >>conftest.$ac_ext <<_ACEOF
24952 /* end confdefs.h. */
24953
24954
24955
24956 #include <unordered_map>
24957 _ACEOF
24958 rm -f conftest.$ac_objext
24959 if { (ac_try="$ac_compile"
24960 case "(($ac_try" in
24961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24962 *) ac_try_echo=$ac_try;;
24963 esac
24964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24965 $as_echo "$ac_try_echo") >&5
24966 (eval "$ac_compile") 2>conftest.er1
24967 ac_status=$?
24968 grep -v '^ *+' conftest.er1 >conftest.err
24969 rm -f conftest.er1
24970 cat conftest.err >&5
24971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); } && {
24973 test -z "$ac_cxx_werror_flag" ||
24974 test ! -s conftest.err
24975 } && test -s conftest.$ac_objext; then
24976 ac_cv_header_unordered_map=yes
24977 else
24978 $as_echo "$as_me: failed program was:" >&5
24979 sed 's/^/| /' conftest.$ac_ext >&5
24980
24981 ac_cv_header_unordered_map=no
24982 fi
24983
24984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24985 fi
24986 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
24987 $as_echo "$ac_cv_header_unordered_map" >&6; }
24988 if test "x$ac_cv_header_unordered_map" = x""yes; then
24989 { $as_echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
24990 $as_echo_n "checking for unordered_map and unordered_set in std... " >&6; }
24991 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
24992 $as_echo_n "(cached) " >&6
24993 else
24994 cat >conftest.$ac_ext <<_ACEOF
24995 /* confdefs.h. */
24996 _ACEOF
24997 cat confdefs.h >>conftest.$ac_ext
24998 cat >>conftest.$ac_ext <<_ACEOF
24999 /* end confdefs.h. */
25000 #include <unordered_map>
25001 #include <unordered_set>
25002 int
25003 main ()
25004 {
25005 std::unordered_map<double*, char*> test1;
25006 std::unordered_set<char*> test2;
25007 ;
25008 return 0;
25009 }
25010 _ACEOF
25011 rm -f conftest.$ac_objext
25012 if { (ac_try="$ac_compile"
25013 case "(($ac_try" in
25014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25015 *) ac_try_echo=$ac_try;;
25016 esac
25017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25018 $as_echo "$ac_try_echo") >&5
25019 (eval "$ac_compile") 2>conftest.er1
25020 ac_status=$?
25021 grep -v '^ *+' conftest.er1 >conftest.err
25022 rm -f conftest.er1
25023 cat conftest.err >&5
25024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); } && {
25026 test -z "$ac_cxx_werror_flag" ||
25027 test ! -s conftest.err
25028 } && test -s conftest.$ac_objext; then
25029 wx_cv_class_stdunorderedmapset=yes
25030 else
25031 $as_echo "$as_me: failed program was:" >&5
25032 sed 's/^/| /' conftest.$ac_ext >&5
25033
25034 wx_cv_class_stdunorderedmapset=no
25035 fi
25036
25037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25038
25039
25040 fi
25041 { $as_echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
25042 $as_echo "$wx_cv_class_stdunorderedmapset" >&6; }
25043 fi
25044
25045
25046
25047 if test "$wx_cv_class_stdunorderedmapset" = yes; then
25048 cat >>confdefs.h <<\_ACEOF
25049 #define HAVE_STD_UNORDERED_MAP 1
25050 _ACEOF
25051
25052 cat >>confdefs.h <<\_ACEOF
25053 #define HAVE_STD_UNORDERED_SET 1
25054 _ACEOF
25055
25056 else
25057 { $as_echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
25058 $as_echo_n "checking for tr1/unordered_map... " >&6; }
25059 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
25060 $as_echo_n "(cached) " >&6
25061 else
25062 cat >conftest.$ac_ext <<_ACEOF
25063 /* confdefs.h. */
25064 _ACEOF
25065 cat confdefs.h >>conftest.$ac_ext
25066 cat >>conftest.$ac_ext <<_ACEOF
25067 /* end confdefs.h. */
25068
25069
25070
25071 #include <tr1/unordered_map>
25072 _ACEOF
25073 rm -f conftest.$ac_objext
25074 if { (ac_try="$ac_compile"
25075 case "(($ac_try" in
25076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25077 *) ac_try_echo=$ac_try;;
25078 esac
25079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25080 $as_echo "$ac_try_echo") >&5
25081 (eval "$ac_compile") 2>conftest.er1
25082 ac_status=$?
25083 grep -v '^ *+' conftest.er1 >conftest.err
25084 rm -f conftest.er1
25085 cat conftest.err >&5
25086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } && {
25088 test -z "$ac_cxx_werror_flag" ||
25089 test ! -s conftest.err
25090 } && test -s conftest.$ac_objext; then
25091 ac_cv_header_tr1_unordered_map=yes
25092 else
25093 $as_echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25095
25096 ac_cv_header_tr1_unordered_map=no
25097 fi
25098
25099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25100 fi
25101 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
25102 $as_echo "$ac_cv_header_tr1_unordered_map" >&6; }
25103 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then
25104 { $as_echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
25105 $as_echo_n "checking for unordered_map and unordered_set in std::tr1... " >&6; }
25106 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
25107 $as_echo_n "(cached) " >&6
25108 else
25109 cat >conftest.$ac_ext <<_ACEOF
25110 /* confdefs.h. */
25111 _ACEOF
25112 cat confdefs.h >>conftest.$ac_ext
25113 cat >>conftest.$ac_ext <<_ACEOF
25114 /* end confdefs.h. */
25115 #include <tr1/unordered_map>
25116 #include <tr1/unordered_set>
25117 int
25118 main ()
25119 {
25120 std::tr1::unordered_map<double*, char*> test1;
25121 std::tr1::unordered_set<char*> test2;
25122 #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
25123 #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
25124 #endif
25125 ;
25126 return 0;
25127 }
25128 _ACEOF
25129 rm -f conftest.$ac_objext
25130 if { (ac_try="$ac_compile"
25131 case "(($ac_try" in
25132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25133 *) ac_try_echo=$ac_try;;
25134 esac
25135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25136 $as_echo "$ac_try_echo") >&5
25137 (eval "$ac_compile") 2>conftest.er1
25138 ac_status=$?
25139 grep -v '^ *+' conftest.er1 >conftest.err
25140 rm -f conftest.er1
25141 cat conftest.err >&5
25142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143 (exit $ac_status); } && {
25144 test -z "$ac_cxx_werror_flag" ||
25145 test ! -s conftest.err
25146 } && test -s conftest.$ac_objext; then
25147 wx_cv_class_tr1unorderedmapset=yes
25148 else
25149 $as_echo "$as_me: failed program was:" >&5
25150 sed 's/^/| /' conftest.$ac_ext >&5
25151
25152 wx_cv_class_tr1unorderedmapset=no
25153 fi
25154
25155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25156
25157
25158 fi
25159 { $as_echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25160 $as_echo "$wx_cv_class_tr1unorderedmapset" >&6; }
25161 fi
25162
25163
25164
25165 if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25166 cat >>confdefs.h <<\_ACEOF
25167 #define HAVE_TR1_UNORDERED_MAP 1
25168 _ACEOF
25169
25170 cat >>confdefs.h <<\_ACEOF
25171 #define HAVE_TR1_UNORDERED_SET 1
25172 _ACEOF
25173
25174 else
25175 { $as_echo "$as_me:$LINENO: checking for hash_map" >&5
25176 $as_echo_n "checking for hash_map... " >&6; }
25177 if test "${ac_cv_header_hash_map+set}" = set; then
25178 $as_echo_n "(cached) " >&6
25179 else
25180 cat >conftest.$ac_ext <<_ACEOF
25181 /* confdefs.h. */
25182 _ACEOF
25183 cat confdefs.h >>conftest.$ac_ext
25184 cat >>conftest.$ac_ext <<_ACEOF
25185 /* end confdefs.h. */
25186
25187
25188
25189 #include <hash_map>
25190 _ACEOF
25191 rm -f conftest.$ac_objext
25192 if { (ac_try="$ac_compile"
25193 case "(($ac_try" in
25194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195 *) ac_try_echo=$ac_try;;
25196 esac
25197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25198 $as_echo "$ac_try_echo") >&5
25199 (eval "$ac_compile") 2>conftest.er1
25200 ac_status=$?
25201 grep -v '^ *+' conftest.er1 >conftest.err
25202 rm -f conftest.er1
25203 cat conftest.err >&5
25204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); } && {
25206 test -z "$ac_cxx_werror_flag" ||
25207 test ! -s conftest.err
25208 } && test -s conftest.$ac_objext; then
25209 ac_cv_header_hash_map=yes
25210 else
25211 $as_echo "$as_me: failed program was:" >&5
25212 sed 's/^/| /' conftest.$ac_ext >&5
25213
25214 ac_cv_header_hash_map=no
25215 fi
25216
25217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25218 fi
25219 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25220 $as_echo "$ac_cv_header_hash_map" >&6; }
25221 if test "x$ac_cv_header_hash_map" = x""yes; then
25222 { $as_echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25223 $as_echo_n "checking for std::hash_map and hash_set... " >&6; }
25224 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25225 $as_echo_n "(cached) " >&6
25226 else
25227 cat >conftest.$ac_ext <<_ACEOF
25228 /* confdefs.h. */
25229 _ACEOF
25230 cat confdefs.h >>conftest.$ac_ext
25231 cat >>conftest.$ac_ext <<_ACEOF
25232 /* end confdefs.h. */
25233 #include <hash_map>
25234 #include <hash_set>
25235 int
25236 main ()
25237 {
25238 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25239 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25240 ;
25241 return 0;
25242 }
25243 _ACEOF
25244 rm -f conftest.$ac_objext
25245 if { (ac_try="$ac_compile"
25246 case "(($ac_try" in
25247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25248 *) ac_try_echo=$ac_try;;
25249 esac
25250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25251 $as_echo "$ac_try_echo") >&5
25252 (eval "$ac_compile") 2>conftest.er1
25253 ac_status=$?
25254 grep -v '^ *+' conftest.er1 >conftest.err
25255 rm -f conftest.er1
25256 cat conftest.err >&5
25257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); } && {
25259 test -z "$ac_cxx_werror_flag" ||
25260 test ! -s conftest.err
25261 } && test -s conftest.$ac_objext; then
25262 wx_cv_class_stdhashmapset=yes
25263 else
25264 $as_echo "$as_me: failed program was:" >&5
25265 sed 's/^/| /' conftest.$ac_ext >&5
25266
25267 wx_cv_class_stdhashmapset=no
25268 fi
25269
25270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25271
25272
25273 fi
25274 { $as_echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25275 $as_echo "$wx_cv_class_stdhashmapset" >&6; }
25276 fi
25277
25278
25279
25280 if test "$wx_cv_class_stdhashmapset" = yes; then
25281 cat >>confdefs.h <<\_ACEOF
25282 #define HAVE_HASH_MAP 1
25283 _ACEOF
25284
25285 cat >>confdefs.h <<\_ACEOF
25286 #define HAVE_STD_HASH_MAP 1
25287 _ACEOF
25288
25289 fi
25290
25291 { $as_echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25292 $as_echo_n "checking for ext/hash_map... " >&6; }
25293 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25294 $as_echo_n "(cached) " >&6
25295 else
25296 cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h. */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25302
25303
25304
25305 #include <ext/hash_map>
25306 _ACEOF
25307 rm -f conftest.$ac_objext
25308 if { (ac_try="$ac_compile"
25309 case "(($ac_try" in
25310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25311 *) ac_try_echo=$ac_try;;
25312 esac
25313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25314 $as_echo "$ac_try_echo") >&5
25315 (eval "$ac_compile") 2>conftest.er1
25316 ac_status=$?
25317 grep -v '^ *+' conftest.er1 >conftest.err
25318 rm -f conftest.er1
25319 cat conftest.err >&5
25320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); } && {
25322 test -z "$ac_cxx_werror_flag" ||
25323 test ! -s conftest.err
25324 } && test -s conftest.$ac_objext; then
25325 ac_cv_header_ext_hash_map=yes
25326 else
25327 $as_echo "$as_me: failed program was:" >&5
25328 sed 's/^/| /' conftest.$ac_ext >&5
25329
25330 ac_cv_header_ext_hash_map=no
25331 fi
25332
25333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25334 fi
25335 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25336 $as_echo "$ac_cv_header_ext_hash_map" >&6; }
25337 if test "x$ac_cv_header_ext_hash_map" = x""yes; then
25338 { $as_echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25339 $as_echo_n "checking for GNU hash_map and hash_set... " >&6; }
25340 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25341 $as_echo_n "(cached) " >&6
25342 else
25343 cat >conftest.$ac_ext <<_ACEOF
25344 /* confdefs.h. */
25345 _ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h. */
25349 #include <ext/hash_map>
25350 #include <ext/hash_set>
25351 int
25352 main ()
25353 {
25354 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25355 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25356 ;
25357 return 0;
25358 }
25359 _ACEOF
25360 rm -f conftest.$ac_objext
25361 if { (ac_try="$ac_compile"
25362 case "(($ac_try" in
25363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25364 *) ac_try_echo=$ac_try;;
25365 esac
25366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25367 $as_echo "$ac_try_echo") >&5
25368 (eval "$ac_compile") 2>conftest.er1
25369 ac_status=$?
25370 grep -v '^ *+' conftest.er1 >conftest.err
25371 rm -f conftest.er1
25372 cat conftest.err >&5
25373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } && {
25375 test -z "$ac_cxx_werror_flag" ||
25376 test ! -s conftest.err
25377 } && test -s conftest.$ac_objext; then
25378 wx_cv_class_gnuhashmapset=yes
25379 else
25380 $as_echo "$as_me: failed program was:" >&5
25381 sed 's/^/| /' conftest.$ac_ext >&5
25382
25383 wx_cv_class_gnuhashmapset=no
25384 fi
25385
25386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25387
25388
25389 fi
25390 { $as_echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25391 $as_echo "$wx_cv_class_gnuhashmapset" >&6; }
25392 fi
25393
25394
25395
25396 fi
25397 fi
25398 fi
25399
25400
25401
25402 if test -n "$GCC"; then
25403 { $as_echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25404 $as_echo_n "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... " >&6; }
25405 if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25406 $as_echo_n "(cached) " >&6
25407 else
25408
25409 cat >conftest.$ac_ext <<_ACEOF
25410 /* confdefs.h. */
25411 _ACEOF
25412 cat confdefs.h >>conftest.$ac_ext
25413 cat >>conftest.$ac_ext <<_ACEOF
25414 /* end confdefs.h. */
25415
25416 int
25417 main ()
25418 {
25419
25420 unsigned int value=0;
25421 /* wxAtomicInc doesn't use return value here */
25422 __sync_fetch_and_add(&value, 2);
25423 __sync_sub_and_fetch(&value, 1);
25424 /* but wxAtomicDec does, so mimic that: */
25425 unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25426
25427 ;
25428 return 0;
25429 }
25430 _ACEOF
25431 rm -f conftest.$ac_objext conftest$ac_exeext
25432 if { (ac_try="$ac_link"
25433 case "(($ac_try" in
25434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435 *) ac_try_echo=$ac_try;;
25436 esac
25437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25438 $as_echo "$ac_try_echo") >&5
25439 (eval "$ac_link") 2>conftest.er1
25440 ac_status=$?
25441 grep -v '^ *+' conftest.er1 >conftest.err
25442 rm -f conftest.er1
25443 cat conftest.err >&5
25444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); } && {
25446 test -z "$ac_cxx_werror_flag" ||
25447 test ! -s conftest.err
25448 } && test -s conftest$ac_exeext && {
25449 test "$cross_compiling" = yes ||
25450 $as_test_x conftest$ac_exeext
25451 }; then
25452 wx_cv_cc_gcc_atomic_builtins=yes
25453 else
25454 $as_echo "$as_me: failed program was:" >&5
25455 sed 's/^/| /' conftest.$ac_ext >&5
25456
25457 wx_cv_cc_gcc_atomic_builtins=no
25458 fi
25459
25460 rm -rf conftest.dSYM
25461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25462 conftest$ac_exeext conftest.$ac_ext
25463
25464 fi
25465
25466 { $as_echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25467 $as_echo "$wx_cv_cc_gcc_atomic_builtins" >&6; }
25468 if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25469 cat >>confdefs.h <<\_ACEOF
25470 #define HAVE_GCC_ATOMIC_BUILTINS 1
25471 _ACEOF
25472
25473 fi
25474 fi
25475
25476
25477 ac_ext=c
25478 ac_cpp='$CPP $CPPFLAGS'
25479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25482
25483
25484
25485 SEARCH_INCLUDE="\
25486 /usr/local/include \
25487 /usr/local/X11/include \
25488 /usr/local/include/X11 \
25489 /usr/local/X11R6/include \
25490 /usr/local/include/X11R6 \
25491 \
25492 /usr/Motif-2.1/include \
25493 /usr/Motif-1.2/include \
25494 /usr/include/Motif1.2 \
25495 \
25496 /usr/dt/include \
25497 /usr/openwin/include \
25498 \
25499 /usr/include/Xm \
25500 \
25501 /usr/X11R6/include \
25502 /usr/X11R6.4/include \
25503 \
25504 /usr/include/X11R6 \
25505 \
25506 /usr/X11/include \
25507 /usr/include/X11 \
25508 \
25509 /usr/XFree86/include/X11 \
25510 /usr/pkg/include \
25511 \
25512 /usr/local/X1R5/include \
25513 /usr/local/include/X11R5 \
25514 /usr/X11R5/include \
25515 /usr/include/X11R5 \
25516 \
25517 /usr/local/X11R4/include \
25518 /usr/local/include/X11R4 \
25519 /usr/X11R4/include \
25520 /usr/include/X11R4 \
25521 \
25522 /usr/openwin/share/include"
25523
25524 { $as_echo "$as_me:$LINENO: checking for libraries directory" >&5
25525 $as_echo_n "checking for libraries directory... " >&6; }
25526
25527 case "${host}" in
25528 *-*-irix6* )
25529 if test "${wx_cv_std_libpath+set}" = set; then
25530 $as_echo_n "(cached) " >&6
25531 else
25532
25533 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25534 for e in a so sl dylib dll.a; do
25535 libc="$d/libc.$e"
25536 if test -f $libc; then
25537 save_LIBS="$LIBS"
25538 LIBS="$libc"
25539 cat >conftest.$ac_ext <<_ACEOF
25540 int main() { return 0; }
25541 _ACEOF
25542 rm -f conftest.$ac_objext conftest$ac_exeext
25543 if { (ac_try="$ac_link"
25544 case "(($ac_try" in
25545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25546 *) ac_try_echo=$ac_try;;
25547 esac
25548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25549 $as_echo "$ac_try_echo") >&5
25550 (eval "$ac_link") 2>conftest.er1
25551 ac_status=$?
25552 grep -v '^ *+' conftest.er1 >conftest.err
25553 rm -f conftest.er1
25554 cat conftest.err >&5
25555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556 (exit $ac_status); } && {
25557 test -z "$ac_c_werror_flag" ||
25558 test ! -s conftest.err
25559 } && test -s conftest$ac_exeext && {
25560 test "$cross_compiling" = yes ||
25561 $as_test_x conftest$ac_exeext
25562 }; then
25563 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25564 else
25565 $as_echo "$as_me: failed program was:" >&5
25566 sed 's/^/| /' conftest.$ac_ext >&5
25567
25568
25569 fi
25570
25571 rm -rf conftest.dSYM
25572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25573 conftest$ac_exeext conftest.$ac_ext
25574 LIBS="$save_LIBS"
25575 if test "x$wx_cv_std_libpath" != "x"; then
25576 break 2
25577 fi
25578 fi
25579 done
25580 done
25581 if test "x$wx_cv_std_libpath" = "x"; then
25582 wx_cv_std_libpath="lib"
25583 fi
25584
25585
25586 fi
25587
25588 ;;
25589
25590 *-*-solaris2* )
25591 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25592 wx_cv_std_libpath="lib/64"
25593 else
25594 wx_cv_std_libpath="lib"
25595 fi
25596 ;;
25597
25598 *-*-linux* )
25599 if test "$ac_cv_sizeof_void_p" = 8 -a \
25600 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25601 wx_cv_std_libpath="lib64"
25602 else
25603 wx_cv_std_libpath="lib"
25604 fi
25605 ;;
25606
25607 *)
25608 wx_cv_std_libpath="lib";
25609 ;;
25610 esac
25611
25612 { $as_echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25613 $as_echo "$wx_cv_std_libpath" >&6; }
25614
25615 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25616
25617 if test "$build" != "$host" -a "$GCC" = yes; then
25618 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25619 cross_root=`dirname $cross_root`
25620 cross_root=`dirname $cross_root`
25621
25622 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25623 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25624 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25625
25626 if test -z "$PKG_CONFIG_PATH"; then
25627 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25628 export PKG_CONFIG_PATH
25629 fi
25630
25631 if test -z "$x_includes" -o "$x_includes" = NONE; then
25632
25633 ac_find_includes=
25634 for ac_dir in $SEARCH_INCLUDE /usr/include;
25635 do
25636 if test -f "$ac_dir/X11/Intrinsic.h"; then
25637 ac_find_includes=$ac_dir
25638 break
25639 fi
25640 done
25641
25642 x_includes=$ac_find_includes
25643 fi
25644 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25645
25646 ac_find_libraries=
25647 for ac_dir in $SEARCH_LIB;
25648 do
25649 for ac_extension in a so sl dylib dll.a; do
25650 if test -f "$ac_dir/libXt.$ac_extension"; then
25651 ac_find_libraries=$ac_dir
25652 break 2
25653 fi
25654 done
25655 done
25656
25657 x_libraries=$ac_find_libraries
25658 fi
25659 fi
25660 fi
25661
25662
25663 cat >confcache <<\_ACEOF
25664 # This file is a shell script that caches the results of configure
25665 # tests run on this system so they can be shared between configure
25666 # scripts and configure runs, see configure's option --config-cache.
25667 # It is not useful on other systems. If it contains results you don't
25668 # want to keep, you may remove or edit it.
25669 #
25670 # config.status only pays attention to the cache file if you give it
25671 # the --recheck option to rerun configure.
25672 #
25673 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25674 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25675 # following values.
25676
25677 _ACEOF
25678
25679 # The following way of writing the cache mishandles newlines in values,
25680 # but we know of no workaround that is simple, portable, and efficient.
25681 # So, we kill variables containing newlines.
25682 # Ultrix sh set writes to stderr and can't be redirected directly,
25683 # and sets the high bit in the cache file unless we assign to the vars.
25684 (
25685 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25686 eval ac_val=\$$ac_var
25687 case $ac_val in #(
25688 *${as_nl}*)
25689 case $ac_var in #(
25690 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
25691 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25692 esac
25693 case $ac_var in #(
25694 _ | IFS | as_nl) ;; #(
25695 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25696 *) $as_unset $ac_var ;;
25697 esac ;;
25698 esac
25699 done
25700
25701 (set) 2>&1 |
25702 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25703 *${as_nl}ac_space=\ *)
25704 # `set' does not quote correctly, so add quotes (double-quote
25705 # substitution turns \\\\ into \\, and sed turns \\ into \).
25706 sed -n \
25707 "s/'/'\\\\''/g;
25708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25709 ;; #(
25710 *)
25711 # `set' quotes correctly as required by POSIX, so do not add quotes.
25712 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25713 ;;
25714 esac |
25715 sort
25716 ) |
25717 sed '
25718 /^ac_cv_env_/b end
25719 t clear
25720 :clear
25721 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25722 t end
25723 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25724 :end' >>confcache
25725 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25726 if test -w "$cache_file"; then
25727 test "x$cache_file" != "x/dev/null" &&
25728 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25729 $as_echo "$as_me: updating cache $cache_file" >&6;}
25730 cat confcache >$cache_file
25731 else
25732 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25733 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25734 fi
25735 fi
25736 rm -f confcache
25737
25738 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25739 { $as_echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25740 $as_echo_n "checking for glibc 2.1 or later... " >&6; }
25741 if test "${wx_cv_lib_glibc21+set}" = set; then
25742 $as_echo_n "(cached) " >&6
25743 else
25744
25745 cat >conftest.$ac_ext <<_ACEOF
25746 /* confdefs.h. */
25747 _ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h. */
25751 #include <features.h>
25752 int
25753 main ()
25754 {
25755
25756 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25757 not glibc 2.1
25758 #endif
25759
25760 ;
25761 return 0;
25762 }
25763 _ACEOF
25764 rm -f conftest.$ac_objext
25765 if { (ac_try="$ac_compile"
25766 case "(($ac_try" in
25767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25768 *) ac_try_echo=$ac_try;;
25769 esac
25770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25771 $as_echo "$ac_try_echo") >&5
25772 (eval "$ac_compile") 2>conftest.er1
25773 ac_status=$?
25774 grep -v '^ *+' conftest.er1 >conftest.err
25775 rm -f conftest.er1
25776 cat conftest.err >&5
25777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); } && {
25779 test -z "$ac_c_werror_flag" ||
25780 test ! -s conftest.err
25781 } && test -s conftest.$ac_objext; then
25782
25783 wx_cv_lib_glibc21=yes
25784
25785 else
25786 $as_echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25788
25789
25790 wx_cv_lib_glibc21=no
25791
25792
25793 fi
25794
25795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25796
25797 fi
25798 { $as_echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25799 $as_echo "$wx_cv_lib_glibc21" >&6; }
25800 if test "$wx_cv_lib_glibc21" = "yes"; then
25801 cat >>confdefs.h <<\_ACEOF
25802 #define wxHAVE_GLIBC2 1
25803 _ACEOF
25804
25805 fi
25806 fi
25807
25808 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25809 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25810 cat >>confdefs.h <<\_ACEOF
25811 #define _GNU_SOURCE 1
25812 _ACEOF
25813
25814 fi
25815 fi
25816
25817 have_cos=0
25818 have_floor=0
25819
25820 for ac_func in cos
25821 do
25822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25823 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25824 $as_echo_n "checking for $ac_func... " >&6; }
25825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25826 $as_echo_n "(cached) " >&6
25827 else
25828 cat >conftest.$ac_ext <<_ACEOF
25829 /* confdefs.h. */
25830 _ACEOF
25831 cat confdefs.h >>conftest.$ac_ext
25832 cat >>conftest.$ac_ext <<_ACEOF
25833 /* end confdefs.h. */
25834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25836 #define $ac_func innocuous_$ac_func
25837
25838 /* System header to define __stub macros and hopefully few prototypes,
25839 which can conflict with char $ac_func (); below.
25840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25841 <limits.h> exists even on freestanding compilers. */
25842
25843 #ifdef __STDC__
25844 # include <limits.h>
25845 #else
25846 # include <assert.h>
25847 #endif
25848
25849 #undef $ac_func
25850
25851 /* Override any GCC internal prototype to avoid an error.
25852 Use char because int might match the return type of a GCC
25853 builtin and then its argument prototype would still apply. */
25854 #ifdef __cplusplus
25855 extern "C"
25856 #endif
25857 char $ac_func ();
25858 /* The GNU C library defines this for functions which it implements
25859 to always fail with ENOSYS. Some functions are actually named
25860 something starting with __ and the normal name is an alias. */
25861 #if defined __stub_$ac_func || defined __stub___$ac_func
25862 choke me
25863 #endif
25864
25865 int
25866 main ()
25867 {
25868 return $ac_func ();
25869 ;
25870 return 0;
25871 }
25872 _ACEOF
25873 rm -f conftest.$ac_objext conftest$ac_exeext
25874 if { (ac_try="$ac_link"
25875 case "(($ac_try" in
25876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25877 *) ac_try_echo=$ac_try;;
25878 esac
25879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25880 $as_echo "$ac_try_echo") >&5
25881 (eval "$ac_link") 2>conftest.er1
25882 ac_status=$?
25883 grep -v '^ *+' conftest.er1 >conftest.err
25884 rm -f conftest.er1
25885 cat conftest.err >&5
25886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); } && {
25888 test -z "$ac_c_werror_flag" ||
25889 test ! -s conftest.err
25890 } && test -s conftest$ac_exeext && {
25891 test "$cross_compiling" = yes ||
25892 $as_test_x conftest$ac_exeext
25893 }; then
25894 eval "$as_ac_var=yes"
25895 else
25896 $as_echo "$as_me: failed program was:" >&5
25897 sed 's/^/| /' conftest.$ac_ext >&5
25898
25899 eval "$as_ac_var=no"
25900 fi
25901
25902 rm -rf conftest.dSYM
25903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25904 conftest$ac_exeext conftest.$ac_ext
25905 fi
25906 ac_res=`eval 'as_val=${'$as_ac_var'}
25907 $as_echo "$as_val"'`
25908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25909 $as_echo "$ac_res" >&6; }
25910 as_val=`eval 'as_val=${'$as_ac_var'}
25911 $as_echo "$as_val"'`
25912 if test "x$as_val" = x""yes; then
25913 cat >>confdefs.h <<_ACEOF
25914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25915 _ACEOF
25916 have_cos=1
25917 fi
25918 done
25919
25920
25921 for ac_func in floor
25922 do
25923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25924 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25925 $as_echo_n "checking for $ac_func... " >&6; }
25926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25927 $as_echo_n "(cached) " >&6
25928 else
25929 cat >conftest.$ac_ext <<_ACEOF
25930 /* confdefs.h. */
25931 _ACEOF
25932 cat confdefs.h >>conftest.$ac_ext
25933 cat >>conftest.$ac_ext <<_ACEOF
25934 /* end confdefs.h. */
25935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25937 #define $ac_func innocuous_$ac_func
25938
25939 /* System header to define __stub macros and hopefully few prototypes,
25940 which can conflict with char $ac_func (); below.
25941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25942 <limits.h> exists even on freestanding compilers. */
25943
25944 #ifdef __STDC__
25945 # include <limits.h>
25946 #else
25947 # include <assert.h>
25948 #endif
25949
25950 #undef $ac_func
25951
25952 /* Override any GCC internal prototype to avoid an error.
25953 Use char because int might match the return type of a GCC
25954 builtin and then its argument prototype would still apply. */
25955 #ifdef __cplusplus
25956 extern "C"
25957 #endif
25958 char $ac_func ();
25959 /* The GNU C library defines this for functions which it implements
25960 to always fail with ENOSYS. Some functions are actually named
25961 something starting with __ and the normal name is an alias. */
25962 #if defined __stub_$ac_func || defined __stub___$ac_func
25963 choke me
25964 #endif
25965
25966 int
25967 main ()
25968 {
25969 return $ac_func ();
25970 ;
25971 return 0;
25972 }
25973 _ACEOF
25974 rm -f conftest.$ac_objext conftest$ac_exeext
25975 if { (ac_try="$ac_link"
25976 case "(($ac_try" in
25977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25978 *) ac_try_echo=$ac_try;;
25979 esac
25980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25981 $as_echo "$ac_try_echo") >&5
25982 (eval "$ac_link") 2>conftest.er1
25983 ac_status=$?
25984 grep -v '^ *+' conftest.er1 >conftest.err
25985 rm -f conftest.er1
25986 cat conftest.err >&5
25987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); } && {
25989 test -z "$ac_c_werror_flag" ||
25990 test ! -s conftest.err
25991 } && test -s conftest$ac_exeext && {
25992 test "$cross_compiling" = yes ||
25993 $as_test_x conftest$ac_exeext
25994 }; then
25995 eval "$as_ac_var=yes"
25996 else
25997 $as_echo "$as_me: failed program was:" >&5
25998 sed 's/^/| /' conftest.$ac_ext >&5
25999
26000 eval "$as_ac_var=no"
26001 fi
26002
26003 rm -rf conftest.dSYM
26004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26005 conftest$ac_exeext conftest.$ac_ext
26006 fi
26007 ac_res=`eval 'as_val=${'$as_ac_var'}
26008 $as_echo "$as_val"'`
26009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26010 $as_echo "$ac_res" >&6; }
26011 as_val=`eval 'as_val=${'$as_ac_var'}
26012 $as_echo "$as_val"'`
26013 if test "x$as_val" = x""yes; then
26014 cat >>confdefs.h <<_ACEOF
26015 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26016 _ACEOF
26017 have_floor=1
26018 fi
26019 done
26020
26021 { $as_echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
26022 $as_echo_n "checking if floating point functions link without -lm... " >&6; }
26023 if test "$have_cos" = 1 -a "$have_floor" = 1; then
26024 { $as_echo "$as_me:$LINENO: result: yes" >&5
26025 $as_echo "yes" >&6; }
26026 else
26027 { $as_echo "$as_me:$LINENO: result: no" >&5
26028 $as_echo "no" >&6; }
26029 LIBS="$LIBS -lm"
26030 # use different functions to avoid configure caching
26031 have_sin=0
26032 have_ceil=0
26033
26034 for ac_func in sin
26035 do
26036 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26037 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26038 $as_echo_n "checking for $ac_func... " >&6; }
26039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26040 $as_echo_n "(cached) " >&6
26041 else
26042 cat >conftest.$ac_ext <<_ACEOF
26043 /* confdefs.h. */
26044 _ACEOF
26045 cat confdefs.h >>conftest.$ac_ext
26046 cat >>conftest.$ac_ext <<_ACEOF
26047 /* end confdefs.h. */
26048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26050 #define $ac_func innocuous_$ac_func
26051
26052 /* System header to define __stub macros and hopefully few prototypes,
26053 which can conflict with char $ac_func (); below.
26054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26055 <limits.h> exists even on freestanding compilers. */
26056
26057 #ifdef __STDC__
26058 # include <limits.h>
26059 #else
26060 # include <assert.h>
26061 #endif
26062
26063 #undef $ac_func
26064
26065 /* Override any GCC internal prototype to avoid an error.
26066 Use char because int might match the return type of a GCC
26067 builtin and then its argument prototype would still apply. */
26068 #ifdef __cplusplus
26069 extern "C"
26070 #endif
26071 char $ac_func ();
26072 /* The GNU C library defines this for functions which it implements
26073 to always fail with ENOSYS. Some functions are actually named
26074 something starting with __ and the normal name is an alias. */
26075 #if defined __stub_$ac_func || defined __stub___$ac_func
26076 choke me
26077 #endif
26078
26079 int
26080 main ()
26081 {
26082 return $ac_func ();
26083 ;
26084 return 0;
26085 }
26086 _ACEOF
26087 rm -f conftest.$ac_objext conftest$ac_exeext
26088 if { (ac_try="$ac_link"
26089 case "(($ac_try" in
26090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26091 *) ac_try_echo=$ac_try;;
26092 esac
26093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26094 $as_echo "$ac_try_echo") >&5
26095 (eval "$ac_link") 2>conftest.er1
26096 ac_status=$?
26097 grep -v '^ *+' conftest.er1 >conftest.err
26098 rm -f conftest.er1
26099 cat conftest.err >&5
26100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); } && {
26102 test -z "$ac_c_werror_flag" ||
26103 test ! -s conftest.err
26104 } && test -s conftest$ac_exeext && {
26105 test "$cross_compiling" = yes ||
26106 $as_test_x conftest$ac_exeext
26107 }; then
26108 eval "$as_ac_var=yes"
26109 else
26110 $as_echo "$as_me: failed program was:" >&5
26111 sed 's/^/| /' conftest.$ac_ext >&5
26112
26113 eval "$as_ac_var=no"
26114 fi
26115
26116 rm -rf conftest.dSYM
26117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26118 conftest$ac_exeext conftest.$ac_ext
26119 fi
26120 ac_res=`eval 'as_val=${'$as_ac_var'}
26121 $as_echo "$as_val"'`
26122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26123 $as_echo "$ac_res" >&6; }
26124 as_val=`eval 'as_val=${'$as_ac_var'}
26125 $as_echo "$as_val"'`
26126 if test "x$as_val" = x""yes; then
26127 cat >>confdefs.h <<_ACEOF
26128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26129 _ACEOF
26130 have_sin=1
26131 fi
26132 done
26133
26134
26135 for ac_func in ceil
26136 do
26137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26138 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26139 $as_echo_n "checking for $ac_func... " >&6; }
26140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26141 $as_echo_n "(cached) " >&6
26142 else
26143 cat >conftest.$ac_ext <<_ACEOF
26144 /* confdefs.h. */
26145 _ACEOF
26146 cat confdefs.h >>conftest.$ac_ext
26147 cat >>conftest.$ac_ext <<_ACEOF
26148 /* end confdefs.h. */
26149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26151 #define $ac_func innocuous_$ac_func
26152
26153 /* System header to define __stub macros and hopefully few prototypes,
26154 which can conflict with char $ac_func (); below.
26155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26156 <limits.h> exists even on freestanding compilers. */
26157
26158 #ifdef __STDC__
26159 # include <limits.h>
26160 #else
26161 # include <assert.h>
26162 #endif
26163
26164 #undef $ac_func
26165
26166 /* Override any GCC internal prototype to avoid an error.
26167 Use char because int might match the return type of a GCC
26168 builtin and then its argument prototype would still apply. */
26169 #ifdef __cplusplus
26170 extern "C"
26171 #endif
26172 char $ac_func ();
26173 /* The GNU C library defines this for functions which it implements
26174 to always fail with ENOSYS. Some functions are actually named
26175 something starting with __ and the normal name is an alias. */
26176 #if defined __stub_$ac_func || defined __stub___$ac_func
26177 choke me
26178 #endif
26179
26180 int
26181 main ()
26182 {
26183 return $ac_func ();
26184 ;
26185 return 0;
26186 }
26187 _ACEOF
26188 rm -f conftest.$ac_objext conftest$ac_exeext
26189 if { (ac_try="$ac_link"
26190 case "(($ac_try" in
26191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26192 *) ac_try_echo=$ac_try;;
26193 esac
26194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26195 $as_echo "$ac_try_echo") >&5
26196 (eval "$ac_link") 2>conftest.er1
26197 ac_status=$?
26198 grep -v '^ *+' conftest.er1 >conftest.err
26199 rm -f conftest.er1
26200 cat conftest.err >&5
26201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); } && {
26203 test -z "$ac_c_werror_flag" ||
26204 test ! -s conftest.err
26205 } && test -s conftest$ac_exeext && {
26206 test "$cross_compiling" = yes ||
26207 $as_test_x conftest$ac_exeext
26208 }; then
26209 eval "$as_ac_var=yes"
26210 else
26211 $as_echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26213
26214 eval "$as_ac_var=no"
26215 fi
26216
26217 rm -rf conftest.dSYM
26218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26219 conftest$ac_exeext conftest.$ac_ext
26220 fi
26221 ac_res=`eval 'as_val=${'$as_ac_var'}
26222 $as_echo "$as_val"'`
26223 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26224 $as_echo "$ac_res" >&6; }
26225 as_val=`eval 'as_val=${'$as_ac_var'}
26226 $as_echo "$as_val"'`
26227 if test "x$as_val" = x""yes; then
26228 cat >>confdefs.h <<_ACEOF
26229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26230 _ACEOF
26231 have_ceil=1
26232 fi
26233 done
26234
26235 { $as_echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26236 $as_echo_n "checking if floating point functions link with -lm... " >&6; }
26237 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
26238 { $as_echo "$as_me:$LINENO: result: yes" >&5
26239 $as_echo "yes" >&6; }
26240 else
26241 { $as_echo "$as_me:$LINENO: result: no" >&5
26242 $as_echo "no" >&6; }
26243 # not sure we should warn the user, crash, etc.
26244 fi
26245 fi
26246
26247 ac_ext=cpp
26248 ac_cpp='$CXXCPP $CPPFLAGS'
26249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26252
26253 if test "wxUSE_UNICODE" = "yes"; then
26254
26255 for wx_func in wcstoull
26256 do
26257 { $as_echo "$as_me:$LINENO: checking for $wx_func" >&5
26258 $as_echo_n "checking for $wx_func... " >&6; }
26259 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26260 $as_echo_n "(cached) " >&6
26261 else
26262
26263 cat >conftest.$ac_ext <<_ACEOF
26264
26265 /* confdefs.h. */
26266 _ACEOF
26267 cat confdefs.h >>conftest.$ac_ext
26268 cat >>conftest.$ac_ext <<_ACEOF
26269 /* end confdefs.h. */
26270
26271
26272 $ac_includes_default
26273
26274 int
26275 main ()
26276 {
26277
26278 #ifndef $wx_func
26279 &$wx_func;
26280 #endif
26281
26282
26283 ;
26284 return 0;
26285 }
26286
26287 _ACEOF
26288 rm -f conftest.$ac_objext conftest$ac_exeext
26289 if { (ac_try="$ac_link"
26290 case "(($ac_try" in
26291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26292 *) ac_try_echo=$ac_try;;
26293 esac
26294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26295 $as_echo "$ac_try_echo") >&5
26296 (eval "$ac_link") 2>conftest.er1
26297 ac_status=$?
26298 grep -v '^ *+' conftest.er1 >conftest.err
26299 rm -f conftest.er1
26300 cat conftest.err >&5
26301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302 (exit $ac_status); } && {
26303 test -z "$ac_cxx_werror_flag" ||
26304 test ! -s conftest.err
26305 } && test -s conftest$ac_exeext && {
26306 test "$cross_compiling" = yes ||
26307 $as_test_x conftest$ac_exeext
26308 }; then
26309 eval wx_cv_func_$wx_func=yes
26310 else
26311 $as_echo "$as_me: failed program was:" >&5
26312 sed 's/^/| /' conftest.$ac_ext >&5
26313
26314 eval wx_cv_func_$wx_func=no
26315 fi
26316
26317 rm -rf conftest.dSYM
26318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26319 conftest$ac_exeext conftest.$ac_ext
26320
26321 fi
26322 ac_res=`eval 'as_val=${'wx_cv_func_$wx_func'}
26323 $as_echo "$as_val"'`
26324 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26325 $as_echo "$ac_res" >&6; }
26326
26327 if eval test \$wx_cv_func_$wx_func = yes
26328 then
26329 cat >>confdefs.h <<_ACEOF
26330 #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1
26331 _ACEOF
26332
26333
26334 else
26335 :
26336
26337 fi
26338 done
26339
26340 else
26341
26342 for wx_func in strtoull
26343 do
26344 { $as_echo "$as_me:$LINENO: checking for $wx_func" >&5
26345 $as_echo_n "checking for $wx_func... " >&6; }
26346 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26347 $as_echo_n "(cached) " >&6
26348 else
26349
26350 cat >conftest.$ac_ext <<_ACEOF
26351
26352 /* confdefs.h. */
26353 _ACEOF
26354 cat confdefs.h >>conftest.$ac_ext
26355 cat >>conftest.$ac_ext <<_ACEOF
26356 /* end confdefs.h. */
26357
26358
26359 $ac_includes_default
26360
26361 int
26362 main ()
26363 {
26364
26365 #ifndef $wx_func
26366 &$wx_func;
26367 #endif
26368
26369
26370 ;
26371 return 0;
26372 }
26373
26374 _ACEOF
26375 rm -f conftest.$ac_objext conftest$ac_exeext
26376 if { (ac_try="$ac_link"
26377 case "(($ac_try" in
26378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379 *) ac_try_echo=$ac_try;;
26380 esac
26381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26382 $as_echo "$ac_try_echo") >&5
26383 (eval "$ac_link") 2>conftest.er1
26384 ac_status=$?
26385 grep -v '^ *+' conftest.er1 >conftest.err
26386 rm -f conftest.er1
26387 cat conftest.err >&5
26388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); } && {
26390 test -z "$ac_cxx_werror_flag" ||
26391 test ! -s conftest.err
26392 } && test -s conftest$ac_exeext && {
26393 test "$cross_compiling" = yes ||
26394 $as_test_x conftest$ac_exeext
26395 }; then
26396 eval wx_cv_func_$wx_func=yes
26397 else
26398 $as_echo "$as_me: failed program was:" >&5
26399 sed 's/^/| /' conftest.$ac_ext >&5
26400
26401 eval wx_cv_func_$wx_func=no
26402 fi
26403
26404 rm -rf conftest.dSYM
26405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26406 conftest$ac_exeext conftest.$ac_ext
26407
26408 fi
26409 ac_res=`eval 'as_val=${'wx_cv_func_$wx_func'}
26410 $as_echo "$as_val"'`
26411 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26412 $as_echo "$ac_res" >&6; }
26413
26414 if eval test \$wx_cv_func_$wx_func = yes
26415 then
26416 cat >>confdefs.h <<_ACEOF
26417 #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1
26418 _ACEOF
26419
26420
26421 else
26422 :
26423
26424 fi
26425 done
26426
26427 fi
26428 ac_ext=c
26429 ac_cpp='$CPP $CPPFLAGS'
26430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26433
26434
26435
26436
26437 if test "$wxUSE_REGEX" != "no"; then
26438 cat >>confdefs.h <<\_ACEOF
26439 #define wxUSE_REGEX 1
26440 _ACEOF
26441
26442
26443 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26444 { $as_echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26445 $as_echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26446 wxUSE_REGEX=builtin
26447 fi
26448
26449 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26450 { $as_echo "$as_me:$LINENO: checking for regex.h" >&5
26451 $as_echo_n "checking for regex.h... " >&6; }
26452 if test "${ac_cv_header_regex_h+set}" = set; then
26453 $as_echo_n "(cached) " >&6
26454 else
26455 cat >conftest.$ac_ext <<_ACEOF
26456 /* confdefs.h. */
26457 _ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h. */
26461
26462
26463 #include <regex.h>
26464 _ACEOF
26465 rm -f conftest.$ac_objext
26466 if { (ac_try="$ac_compile"
26467 case "(($ac_try" in
26468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26469 *) ac_try_echo=$ac_try;;
26470 esac
26471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26472 $as_echo "$ac_try_echo") >&5
26473 (eval "$ac_compile") 2>conftest.er1
26474 ac_status=$?
26475 grep -v '^ *+' conftest.er1 >conftest.err
26476 rm -f conftest.er1
26477 cat conftest.err >&5
26478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); } && {
26480 test -z "$ac_c_werror_flag" ||
26481 test ! -s conftest.err
26482 } && test -s conftest.$ac_objext; then
26483 ac_cv_header_regex_h=yes
26484 else
26485 $as_echo "$as_me: failed program was:" >&5
26486 sed 's/^/| /' conftest.$ac_ext >&5
26487
26488 ac_cv_header_regex_h=no
26489 fi
26490
26491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26492 fi
26493 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26494 $as_echo "$ac_cv_header_regex_h" >&6; }
26495 if test "x$ac_cv_header_regex_h" = x""yes; then
26496
26497
26498 for ac_func in regcomp re_search
26499 do
26500 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26501 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26502 $as_echo_n "checking for $ac_func... " >&6; }
26503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26504 $as_echo_n "(cached) " >&6
26505 else
26506 cat >conftest.$ac_ext <<_ACEOF
26507 /* confdefs.h. */
26508 _ACEOF
26509 cat confdefs.h >>conftest.$ac_ext
26510 cat >>conftest.$ac_ext <<_ACEOF
26511 /* end confdefs.h. */
26512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26514 #define $ac_func innocuous_$ac_func
26515
26516 /* System header to define __stub macros and hopefully few prototypes,
26517 which can conflict with char $ac_func (); below.
26518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26519 <limits.h> exists even on freestanding compilers. */
26520
26521 #ifdef __STDC__
26522 # include <limits.h>
26523 #else
26524 # include <assert.h>
26525 #endif
26526
26527 #undef $ac_func
26528
26529 /* Override any GCC internal prototype to avoid an error.
26530 Use char because int might match the return type of a GCC
26531 builtin and then its argument prototype would still apply. */
26532 #ifdef __cplusplus
26533 extern "C"
26534 #endif
26535 char $ac_func ();
26536 /* The GNU C library defines this for functions which it implements
26537 to always fail with ENOSYS. Some functions are actually named
26538 something starting with __ and the normal name is an alias. */
26539 #if defined __stub_$ac_func || defined __stub___$ac_func
26540 choke me
26541 #endif
26542
26543 int
26544 main ()
26545 {
26546 return $ac_func ();
26547 ;
26548 return 0;
26549 }
26550 _ACEOF
26551 rm -f conftest.$ac_objext conftest$ac_exeext
26552 if { (ac_try="$ac_link"
26553 case "(($ac_try" in
26554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26555 *) ac_try_echo=$ac_try;;
26556 esac
26557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26558 $as_echo "$ac_try_echo") >&5
26559 (eval "$ac_link") 2>conftest.er1
26560 ac_status=$?
26561 grep -v '^ *+' conftest.er1 >conftest.err
26562 rm -f conftest.er1
26563 cat conftest.err >&5
26564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565 (exit $ac_status); } && {
26566 test -z "$ac_c_werror_flag" ||
26567 test ! -s conftest.err
26568 } && test -s conftest$ac_exeext && {
26569 test "$cross_compiling" = yes ||
26570 $as_test_x conftest$ac_exeext
26571 }; then
26572 eval "$as_ac_var=yes"
26573 else
26574 $as_echo "$as_me: failed program was:" >&5
26575 sed 's/^/| /' conftest.$ac_ext >&5
26576
26577 eval "$as_ac_var=no"
26578 fi
26579
26580 rm -rf conftest.dSYM
26581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26582 conftest$ac_exeext conftest.$ac_ext
26583 fi
26584 ac_res=`eval 'as_val=${'$as_ac_var'}
26585 $as_echo "$as_val"'`
26586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26587 $as_echo "$ac_res" >&6; }
26588 as_val=`eval 'as_val=${'$as_ac_var'}
26589 $as_echo "$as_val"'`
26590 if test "x$as_val" = x""yes; then
26591 cat >>confdefs.h <<_ACEOF
26592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26593 _ACEOF
26594
26595 fi
26596 done
26597
26598 fi
26599
26600
26601
26602 if test "x$ac_cv_func_regcomp" != "xyes"; then
26603 if test "$wxUSE_REGEX" = "sys" ; then
26604 { { $as_echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26605 $as_echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26606 { (exit 1); exit 1; }; }
26607 else
26608 { $as_echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26609 $as_echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26610 wxUSE_REGEX=builtin
26611 fi
26612 else
26613 wxUSE_REGEX=sys
26614 cat >>confdefs.h <<\_ACEOF
26615 #define WX_NO_REGEX_ADVANCED 1
26616 _ACEOF
26617
26618 fi
26619 fi
26620 fi
26621
26622
26623 ZLIB_LINK=
26624 if test "$wxUSE_ZLIB" != "no" ; then
26625 cat >>confdefs.h <<\_ACEOF
26626 #define wxUSE_ZLIB 1
26627 _ACEOF
26628
26629
26630 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26631 if test "$USE_DARWIN" = 1; then
26632 system_zlib_h_ok="yes"
26633 else
26634 { $as_echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26635 $as_echo_n "checking for zlib.h >= 1.1.4... " >&6; }
26636 if test "${ac_cv_header_zlib_h+set}" = set; then
26637 $as_echo_n "(cached) " >&6
26638 else
26639 if test "$cross_compiling" = yes; then
26640 unset ac_cv_header_zlib_h
26641
26642 else
26643 cat >conftest.$ac_ext <<_ACEOF
26644 /* confdefs.h. */
26645 _ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h. */
26649
26650 #include <zlib.h>
26651 #include <stdio.h>
26652
26653 int main()
26654 {
26655 FILE *f=fopen("conftestval", "w");
26656 if (!f) exit(1);
26657 fprintf(f, "%s",
26658 ZLIB_VERSION[0] == '1' &&
26659 (ZLIB_VERSION[2] > '1' ||
26660 (ZLIB_VERSION[2] == '1' &&
26661 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26662 exit(0);
26663 }
26664
26665 _ACEOF
26666 rm -f conftest$ac_exeext
26667 if { (ac_try="$ac_link"
26668 case "(($ac_try" in
26669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26670 *) ac_try_echo=$ac_try;;
26671 esac
26672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26673 $as_echo "$ac_try_echo") >&5
26674 (eval "$ac_link") 2>&5
26675 ac_status=$?
26676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26678 { (case "(($ac_try" in
26679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26680 *) ac_try_echo=$ac_try;;
26681 esac
26682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26683 $as_echo "$ac_try_echo") >&5
26684 (eval "$ac_try") 2>&5
26685 ac_status=$?
26686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687 (exit $ac_status); }; }; then
26688 ac_cv_header_zlib_h=`cat conftestval`
26689 else
26690 $as_echo "$as_me: program exited with status $ac_status" >&5
26691 $as_echo "$as_me: failed program was:" >&5
26692 sed 's/^/| /' conftest.$ac_ext >&5
26693
26694 ( exit $ac_status )
26695 ac_cv_header_zlib_h=no
26696 fi
26697 rm -rf conftest.dSYM
26698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26699 fi
26700
26701
26702
26703 fi
26704 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26705 $as_echo "$ac_cv_header_zlib_h" >&6; }
26706 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
26707 $as_echo_n "checking for zlib.h... " >&6; }
26708 if test "${ac_cv_header_zlib_h+set}" = set; then
26709 $as_echo_n "(cached) " >&6
26710 else
26711 cat >conftest.$ac_ext <<_ACEOF
26712 /* confdefs.h. */
26713 _ACEOF
26714 cat confdefs.h >>conftest.$ac_ext
26715 cat >>conftest.$ac_ext <<_ACEOF
26716 /* end confdefs.h. */
26717
26718
26719 #include <zlib.h>
26720 _ACEOF
26721 rm -f conftest.$ac_objext
26722 if { (ac_try="$ac_compile"
26723 case "(($ac_try" in
26724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26725 *) ac_try_echo=$ac_try;;
26726 esac
26727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26728 $as_echo "$ac_try_echo") >&5
26729 (eval "$ac_compile") 2>conftest.er1
26730 ac_status=$?
26731 grep -v '^ *+' conftest.er1 >conftest.err
26732 rm -f conftest.er1
26733 cat conftest.err >&5
26734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); } && {
26736 test -z "$ac_c_werror_flag" ||
26737 test ! -s conftest.err
26738 } && test -s conftest.$ac_objext; then
26739 ac_cv_header_zlib_h=yes
26740 else
26741 $as_echo "$as_me: failed program was:" >&5
26742 sed 's/^/| /' conftest.$ac_ext >&5
26743
26744 ac_cv_header_zlib_h=no
26745 fi
26746
26747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26748 fi
26749 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26750 $as_echo "$ac_cv_header_zlib_h" >&6; }
26751
26752
26753
26754 system_zlib_h_ok=$ac_cv_header_zlib_h
26755 fi
26756
26757 if test "$system_zlib_h_ok" = "yes"; then
26758 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26759 $as_echo_n "checking for deflate in -lz... " >&6; }
26760 if test "${ac_cv_lib_z_deflate+set}" = set; then
26761 $as_echo_n "(cached) " >&6
26762 else
26763 ac_check_lib_save_LIBS=$LIBS
26764 LIBS="-lz $LIBS"
26765 cat >conftest.$ac_ext <<_ACEOF
26766 /* confdefs.h. */
26767 _ACEOF
26768 cat confdefs.h >>conftest.$ac_ext
26769 cat >>conftest.$ac_ext <<_ACEOF
26770 /* end confdefs.h. */
26771
26772 /* Override any GCC internal prototype to avoid an error.
26773 Use char because int might match the return type of a GCC
26774 builtin and then its argument prototype would still apply. */
26775 #ifdef __cplusplus
26776 extern "C"
26777 #endif
26778 char deflate ();
26779 int
26780 main ()
26781 {
26782 return deflate ();
26783 ;
26784 return 0;
26785 }
26786 _ACEOF
26787 rm -f conftest.$ac_objext conftest$ac_exeext
26788 if { (ac_try="$ac_link"
26789 case "(($ac_try" in
26790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26791 *) ac_try_echo=$ac_try;;
26792 esac
26793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26794 $as_echo "$ac_try_echo") >&5
26795 (eval "$ac_link") 2>conftest.er1
26796 ac_status=$?
26797 grep -v '^ *+' conftest.er1 >conftest.err
26798 rm -f conftest.er1
26799 cat conftest.err >&5
26800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); } && {
26802 test -z "$ac_c_werror_flag" ||
26803 test ! -s conftest.err
26804 } && test -s conftest$ac_exeext && {
26805 test "$cross_compiling" = yes ||
26806 $as_test_x conftest$ac_exeext
26807 }; then
26808 ac_cv_lib_z_deflate=yes
26809 else
26810 $as_echo "$as_me: failed program was:" >&5
26811 sed 's/^/| /' conftest.$ac_ext >&5
26812
26813 ac_cv_lib_z_deflate=no
26814 fi
26815
26816 rm -rf conftest.dSYM
26817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26818 conftest$ac_exeext conftest.$ac_ext
26819 LIBS=$ac_check_lib_save_LIBS
26820 fi
26821 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26822 $as_echo "$ac_cv_lib_z_deflate" >&6; }
26823 if test "x$ac_cv_lib_z_deflate" = x""yes; then
26824 ZLIB_LINK=" -lz"
26825 fi
26826
26827 fi
26828
26829 if test "x$ZLIB_LINK" = "x" ; then
26830 if test "$wxUSE_ZLIB" = "sys" ; then
26831 { { $as_echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26832 $as_echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26833 { (exit 1); exit 1; }; }
26834 else
26835 { $as_echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26836 $as_echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26837 wxUSE_ZLIB=builtin
26838 fi
26839 else
26840 wxUSE_ZLIB=sys
26841 fi
26842 fi
26843 fi
26844
26845
26846 PNG_LINK=
26847 if test "$wxUSE_LIBPNG" != "no" ; then
26848 cat >>confdefs.h <<\_ACEOF
26849 #define wxUSE_LIBPNG 1
26850 _ACEOF
26851
26852
26853 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26854 { $as_echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26855 $as_echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26856 wxUSE_LIBPNG=sys
26857 fi
26858
26859 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26860 { $as_echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26861 $as_echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26862 wxUSE_LIBPNG=builtin
26863 fi
26864
26865 if test "$wxUSE_MGL" != 1 ; then
26866 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26867 { $as_echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26868 $as_echo_n "checking for png.h > 0.90... " >&6; }
26869 if test "${ac_cv_header_png_h+set}" = set; then
26870 $as_echo_n "(cached) " >&6
26871 else
26872 if test "$cross_compiling" = yes; then
26873 unset ac_cv_header_png_h
26874
26875 else
26876 cat >conftest.$ac_ext <<_ACEOF
26877 /* confdefs.h. */
26878 _ACEOF
26879 cat confdefs.h >>conftest.$ac_ext
26880 cat >>conftest.$ac_ext <<_ACEOF
26881 /* end confdefs.h. */
26882
26883 #include <png.h>
26884 #include <stdio.h>
26885
26886 int main()
26887 {
26888 FILE *f=fopen("conftestval", "w");
26889 if (!f) exit(1);
26890 fprintf(f, "%s",
26891 PNG_LIBPNG_VER > 90 ? "yes" : "no");
26892 exit(0);
26893 }
26894
26895 _ACEOF
26896 rm -f conftest$ac_exeext
26897 if { (ac_try="$ac_link"
26898 case "(($ac_try" in
26899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26900 *) ac_try_echo=$ac_try;;
26901 esac
26902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26903 $as_echo "$ac_try_echo") >&5
26904 (eval "$ac_link") 2>&5
26905 ac_status=$?
26906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26908 { (case "(($ac_try" in
26909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26910 *) ac_try_echo=$ac_try;;
26911 esac
26912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26913 $as_echo "$ac_try_echo") >&5
26914 (eval "$ac_try") 2>&5
26915 ac_status=$?
26916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); }; }; then
26918 ac_cv_header_png_h=`cat conftestval`
26919 else
26920 $as_echo "$as_me: program exited with status $ac_status" >&5
26921 $as_echo "$as_me: failed program was:" >&5
26922 sed 's/^/| /' conftest.$ac_ext >&5
26923
26924 ( exit $ac_status )
26925 ac_cv_header_png_h=no
26926 fi
26927 rm -rf conftest.dSYM
26928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26929 fi
26930
26931
26932
26933 fi
26934 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26935 $as_echo "$ac_cv_header_png_h" >&6; }
26936 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
26937 $as_echo_n "checking for png.h... " >&6; }
26938 if test "${ac_cv_header_png_h+set}" = set; then
26939 $as_echo_n "(cached) " >&6
26940 else
26941 cat >conftest.$ac_ext <<_ACEOF
26942 /* confdefs.h. */
26943 _ACEOF
26944 cat confdefs.h >>conftest.$ac_ext
26945 cat >>conftest.$ac_ext <<_ACEOF
26946 /* end confdefs.h. */
26947
26948
26949 #include <png.h>
26950 _ACEOF
26951 rm -f conftest.$ac_objext
26952 if { (ac_try="$ac_compile"
26953 case "(($ac_try" in
26954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26955 *) ac_try_echo=$ac_try;;
26956 esac
26957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26958 $as_echo "$ac_try_echo") >&5
26959 (eval "$ac_compile") 2>conftest.er1
26960 ac_status=$?
26961 grep -v '^ *+' conftest.er1 >conftest.err
26962 rm -f conftest.er1
26963 cat conftest.err >&5
26964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965 (exit $ac_status); } && {
26966 test -z "$ac_c_werror_flag" ||
26967 test ! -s conftest.err
26968 } && test -s conftest.$ac_objext; then
26969 ac_cv_header_png_h=yes
26970 else
26971 $as_echo "$as_me: failed program was:" >&5
26972 sed 's/^/| /' conftest.$ac_ext >&5
26973
26974 ac_cv_header_png_h=no
26975 fi
26976
26977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26978 fi
26979 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26980 $as_echo "$ac_cv_header_png_h" >&6; }
26981
26982
26983
26984 if test "$ac_cv_header_png_h" = "yes"; then
26985 { $as_echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26986 $as_echo_n "checking for png_check_sig in -lpng... " >&6; }
26987 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26988 $as_echo_n "(cached) " >&6
26989 else
26990 ac_check_lib_save_LIBS=$LIBS
26991 LIBS="-lpng -lz -lm $LIBS"
26992 cat >conftest.$ac_ext <<_ACEOF
26993 /* confdefs.h. */
26994 _ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h. */
26998
26999 /* Override any GCC internal prototype to avoid an error.
27000 Use char because int might match the return type of a GCC
27001 builtin and then its argument prototype would still apply. */
27002 #ifdef __cplusplus
27003 extern "C"
27004 #endif
27005 char png_check_sig ();
27006 int
27007 main ()
27008 {
27009 return png_check_sig ();
27010 ;
27011 return 0;
27012 }
27013 _ACEOF
27014 rm -f conftest.$ac_objext conftest$ac_exeext
27015 if { (ac_try="$ac_link"
27016 case "(($ac_try" in
27017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27018 *) ac_try_echo=$ac_try;;
27019 esac
27020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27021 $as_echo "$ac_try_echo") >&5
27022 (eval "$ac_link") 2>conftest.er1
27023 ac_status=$?
27024 grep -v '^ *+' conftest.er1 >conftest.err
27025 rm -f conftest.er1
27026 cat conftest.err >&5
27027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } && {
27029 test -z "$ac_c_werror_flag" ||
27030 test ! -s conftest.err
27031 } && test -s conftest$ac_exeext && {
27032 test "$cross_compiling" = yes ||
27033 $as_test_x conftest$ac_exeext
27034 }; then
27035 ac_cv_lib_png_png_check_sig=yes
27036 else
27037 $as_echo "$as_me: failed program was:" >&5
27038 sed 's/^/| /' conftest.$ac_ext >&5
27039
27040 ac_cv_lib_png_png_check_sig=no
27041 fi
27042
27043 rm -rf conftest.dSYM
27044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27045 conftest$ac_exeext conftest.$ac_ext
27046 LIBS=$ac_check_lib_save_LIBS
27047 fi
27048 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
27049 $as_echo "$ac_cv_lib_png_png_check_sig" >&6; }
27050 if test "x$ac_cv_lib_png_png_check_sig" = x""yes; then
27051 PNG_LINK=" -lpng -lz"
27052 fi
27053
27054 fi
27055
27056 if test "x$PNG_LINK" = "x" ; then
27057 if test "$wxUSE_LIBPNG" = "sys" ; then
27058 { { $as_echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
27059 $as_echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
27060 { (exit 1); exit 1; }; }
27061 else
27062 { $as_echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
27063 $as_echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
27064 wxUSE_LIBPNG=builtin
27065 fi
27066 else
27067 wxUSE_LIBPNG=sys
27068 fi
27069 fi
27070 fi
27071 fi
27072
27073
27074 JPEG_LINK=
27075 if test "$wxUSE_LIBJPEG" != "no" ; then
27076 cat >>confdefs.h <<\_ACEOF
27077 #define wxUSE_LIBJPEG 1
27078 _ACEOF
27079
27080
27081 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
27082 { $as_echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
27083 $as_echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
27084 wxUSE_LIBJPEG=sys
27085 fi
27086
27087 if test "$wxUSE_MGL" != 1 ; then
27088 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
27089 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
27090 $as_echo_n "checking for jpeglib.h... " >&6; }
27091 if test "${ac_cv_header_jpeglib_h+set}" = set; then
27092 $as_echo_n "(cached) " >&6
27093 else
27094 cat >conftest.$ac_ext <<_ACEOF
27095 /* confdefs.h. */
27096 _ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h. */
27100
27101 #undef HAVE_STDLIB_H
27102 #include <stdio.h>
27103 #include <jpeglib.h>
27104
27105 int
27106 main ()
27107 {
27108
27109
27110 ;
27111 return 0;
27112 }
27113 _ACEOF
27114 rm -f conftest.$ac_objext
27115 if { (ac_try="$ac_compile"
27116 case "(($ac_try" in
27117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118 *) ac_try_echo=$ac_try;;
27119 esac
27120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27121 $as_echo "$ac_try_echo") >&5
27122 (eval "$ac_compile") 2>conftest.er1
27123 ac_status=$?
27124 grep -v '^ *+' conftest.er1 >conftest.err
27125 rm -f conftest.er1
27126 cat conftest.err >&5
27127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); } && {
27129 test -z "$ac_c_werror_flag" ||
27130 test ! -s conftest.err
27131 } && test -s conftest.$ac_objext; then
27132 ac_cv_header_jpeglib_h=yes
27133 else
27134 $as_echo "$as_me: failed program was:" >&5
27135 sed 's/^/| /' conftest.$ac_ext >&5
27136
27137 ac_cv_header_jpeglib_h=no
27138
27139 fi
27140
27141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27142
27143 fi
27144
27145 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
27146 $as_echo "$ac_cv_header_jpeglib_h" >&6; }
27147
27148 if test "$ac_cv_header_jpeglib_h" = "yes"; then
27149 { $as_echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
27150 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
27151 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
27152 $as_echo_n "(cached) " >&6
27153 else
27154 ac_check_lib_save_LIBS=$LIBS
27155 LIBS="-ljpeg $LIBS"
27156 cat >conftest.$ac_ext <<_ACEOF
27157 /* confdefs.h. */
27158 _ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h. */
27162
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. */
27166 #ifdef __cplusplus
27167 extern "C"
27168 #endif
27169 char jpeg_read_header ();
27170 int
27171 main ()
27172 {
27173 return jpeg_read_header ();
27174 ;
27175 return 0;
27176 }
27177 _ACEOF
27178 rm -f conftest.$ac_objext conftest$ac_exeext
27179 if { (ac_try="$ac_link"
27180 case "(($ac_try" in
27181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27182 *) ac_try_echo=$ac_try;;
27183 esac
27184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27185 $as_echo "$ac_try_echo") >&5
27186 (eval "$ac_link") 2>conftest.er1
27187 ac_status=$?
27188 grep -v '^ *+' conftest.er1 >conftest.err
27189 rm -f conftest.er1
27190 cat conftest.err >&5
27191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); } && {
27193 test -z "$ac_c_werror_flag" ||
27194 test ! -s conftest.err
27195 } && test -s conftest$ac_exeext && {
27196 test "$cross_compiling" = yes ||
27197 $as_test_x conftest$ac_exeext
27198 }; then
27199 ac_cv_lib_jpeg_jpeg_read_header=yes
27200 else
27201 $as_echo "$as_me: failed program was:" >&5
27202 sed 's/^/| /' conftest.$ac_ext >&5
27203
27204 ac_cv_lib_jpeg_jpeg_read_header=no
27205 fi
27206
27207 rm -rf conftest.dSYM
27208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27209 conftest$ac_exeext conftest.$ac_ext
27210 LIBS=$ac_check_lib_save_LIBS
27211 fi
27212 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27213 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27214 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then
27215 JPEG_LINK=" -ljpeg"
27216 fi
27217
27218 fi
27219
27220 if test "x$JPEG_LINK" = "x" ; then
27221 if test "$wxUSE_LIBJPEG" = "sys" ; then
27222 { { $as_echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
27223 $as_echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
27224 { (exit 1); exit 1; }; }
27225 else
27226 { $as_echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
27227 $as_echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
27228 wxUSE_LIBJPEG=builtin
27229 fi
27230 else
27231 wxUSE_LIBJPEG=sys
27232
27233 if test "$wxUSE_MSW" = 1; then
27234 { $as_echo "$as_me:$LINENO: checking for boolean" >&5
27235 $as_echo_n "checking for boolean... " >&6; }
27236 if test "${ac_cv_type_boolean+set}" = set; then
27237 $as_echo_n "(cached) " >&6
27238 else
27239 ac_cv_type_boolean=no
27240 cat >conftest.$ac_ext <<_ACEOF
27241 /* confdefs.h. */
27242 _ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h. */
27246 #include <windows.h>
27247
27248 int
27249 main ()
27250 {
27251 if (sizeof (boolean))
27252 return 0;
27253 ;
27254 return 0;
27255 }
27256 _ACEOF
27257 rm -f conftest.$ac_objext
27258 if { (ac_try="$ac_compile"
27259 case "(($ac_try" in
27260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261 *) ac_try_echo=$ac_try;;
27262 esac
27263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27264 $as_echo "$ac_try_echo") >&5
27265 (eval "$ac_compile") 2>conftest.er1
27266 ac_status=$?
27267 grep -v '^ *+' conftest.er1 >conftest.err
27268 rm -f conftest.er1
27269 cat conftest.err >&5
27270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); } && {
27272 test -z "$ac_c_werror_flag" ||
27273 test ! -s conftest.err
27274 } && test -s conftest.$ac_objext; then
27275 cat >conftest.$ac_ext <<_ACEOF
27276 /* confdefs.h. */
27277 _ACEOF
27278 cat confdefs.h >>conftest.$ac_ext
27279 cat >>conftest.$ac_ext <<_ACEOF
27280 /* end confdefs.h. */
27281 #include <windows.h>
27282
27283 int
27284 main ()
27285 {
27286 if (sizeof ((boolean)))
27287 return 0;
27288 ;
27289 return 0;
27290 }
27291 _ACEOF
27292 rm -f conftest.$ac_objext
27293 if { (ac_try="$ac_compile"
27294 case "(($ac_try" in
27295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296 *) ac_try_echo=$ac_try;;
27297 esac
27298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27299 $as_echo "$ac_try_echo") >&5
27300 (eval "$ac_compile") 2>conftest.er1
27301 ac_status=$?
27302 grep -v '^ *+' conftest.er1 >conftest.err
27303 rm -f conftest.er1
27304 cat conftest.err >&5
27305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); } && {
27307 test -z "$ac_c_werror_flag" ||
27308 test ! -s conftest.err
27309 } && test -s conftest.$ac_objext; then
27310 :
27311 else
27312 $as_echo "$as_me: failed program was:" >&5
27313 sed 's/^/| /' conftest.$ac_ext >&5
27314
27315 ac_cv_type_boolean=yes
27316 fi
27317
27318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27319 else
27320 $as_echo "$as_me: failed program was:" >&5
27321 sed 's/^/| /' conftest.$ac_ext >&5
27322
27323
27324 fi
27325
27326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27327 fi
27328 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27329 $as_echo "$ac_cv_type_boolean" >&6; }
27330 if test "x$ac_cv_type_boolean" = x""yes; then
27331
27332 cat >>confdefs.h <<_ACEOF
27333 #define HAVE_BOOLEAN 1
27334 _ACEOF
27335
27336
27337 # The cast to long int works around a bug in the HP C Compiler
27338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27340 # This bug is HP SR number 8606223364.
27341 { $as_echo "$as_me:$LINENO: checking size of boolean" >&5
27342 $as_echo_n "checking size of boolean... " >&6; }
27343 if test "${ac_cv_sizeof_boolean+set}" = set; then
27344 $as_echo_n "(cached) " >&6
27345 else
27346 if test "$cross_compiling" = yes; then
27347 # Depending upon the size, compute the lo and hi bounds.
27348 cat >conftest.$ac_ext <<_ACEOF
27349 /* confdefs.h. */
27350 _ACEOF
27351 cat confdefs.h >>conftest.$ac_ext
27352 cat >>conftest.$ac_ext <<_ACEOF
27353 /* end confdefs.h. */
27354
27355 #undef HAVE_BOOLEAN
27356 #include <stdio.h>
27357 #include <jpeglib.h>
27358
27359
27360 int
27361 main ()
27362 {
27363 static int test_array [1 - 2 * !(((long int) (sizeof (boolean))) >= 0)];
27364 test_array [0] = 0
27365
27366 ;
27367 return 0;
27368 }
27369 _ACEOF
27370 rm -f conftest.$ac_objext
27371 if { (ac_try="$ac_compile"
27372 case "(($ac_try" in
27373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374 *) ac_try_echo=$ac_try;;
27375 esac
27376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27377 $as_echo "$ac_try_echo") >&5
27378 (eval "$ac_compile") 2>conftest.er1
27379 ac_status=$?
27380 grep -v '^ *+' conftest.er1 >conftest.err
27381 rm -f conftest.er1
27382 cat conftest.err >&5
27383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); } && {
27385 test -z "$ac_c_werror_flag" ||
27386 test ! -s conftest.err
27387 } && test -s conftest.$ac_objext; then
27388 ac_lo=0 ac_mid=0
27389 while :; do
27390 cat >conftest.$ac_ext <<_ACEOF
27391 /* confdefs.h. */
27392 _ACEOF
27393 cat confdefs.h >>conftest.$ac_ext
27394 cat >>conftest.$ac_ext <<_ACEOF
27395 /* end confdefs.h. */
27396
27397 #undef HAVE_BOOLEAN
27398 #include <stdio.h>
27399 #include <jpeglib.h>
27400
27401
27402 int
27403 main ()
27404 {
27405 static int test_array [1 - 2 * !(((long int) (sizeof (boolean))) <= $ac_mid)];
27406 test_array [0] = 0
27407
27408 ;
27409 return 0;
27410 }
27411 _ACEOF
27412 rm -f conftest.$ac_objext
27413 if { (ac_try="$ac_compile"
27414 case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27417 esac
27418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27419 $as_echo "$ac_try_echo") >&5
27420 (eval "$ac_compile") 2>conftest.er1
27421 ac_status=$?
27422 grep -v '^ *+' conftest.er1 >conftest.err
27423 rm -f conftest.er1
27424 cat conftest.err >&5
27425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426 (exit $ac_status); } && {
27427 test -z "$ac_c_werror_flag" ||
27428 test ! -s conftest.err
27429 } && test -s conftest.$ac_objext; then
27430 ac_hi=$ac_mid; break
27431 else
27432 $as_echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.$ac_ext >&5
27434
27435 ac_lo=`expr $ac_mid + 1`
27436 if test $ac_lo -le $ac_mid; then
27437 ac_lo= ac_hi=
27438 break
27439 fi
27440 ac_mid=`expr 2 '*' $ac_mid + 1`
27441 fi
27442
27443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27444 done
27445 else
27446 $as_echo "$as_me: failed program was:" >&5
27447 sed 's/^/| /' conftest.$ac_ext >&5
27448
27449 cat >conftest.$ac_ext <<_ACEOF
27450 /* confdefs.h. */
27451 _ACEOF
27452 cat confdefs.h >>conftest.$ac_ext
27453 cat >>conftest.$ac_ext <<_ACEOF
27454 /* end confdefs.h. */
27455
27456 #undef HAVE_BOOLEAN
27457 #include <stdio.h>
27458 #include <jpeglib.h>
27459
27460
27461 int
27462 main ()
27463 {
27464 static int test_array [1 - 2 * !(((long int) (sizeof (boolean))) < 0)];
27465 test_array [0] = 0
27466
27467 ;
27468 return 0;
27469 }
27470 _ACEOF
27471 rm -f conftest.$ac_objext
27472 if { (ac_try="$ac_compile"
27473 case "(($ac_try" in
27474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475 *) ac_try_echo=$ac_try;;
27476 esac
27477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27478 $as_echo "$ac_try_echo") >&5
27479 (eval "$ac_compile") 2>conftest.er1
27480 ac_status=$?
27481 grep -v '^ *+' conftest.er1 >conftest.err
27482 rm -f conftest.er1
27483 cat conftest.err >&5
27484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485 (exit $ac_status); } && {
27486 test -z "$ac_c_werror_flag" ||
27487 test ! -s conftest.err
27488 } && test -s conftest.$ac_objext; then
27489 ac_hi=-1 ac_mid=-1
27490 while :; do
27491 cat >conftest.$ac_ext <<_ACEOF
27492 /* confdefs.h. */
27493 _ACEOF
27494 cat confdefs.h >>conftest.$ac_ext
27495 cat >>conftest.$ac_ext <<_ACEOF
27496 /* end confdefs.h. */
27497
27498 #undef HAVE_BOOLEAN
27499 #include <stdio.h>
27500 #include <jpeglib.h>
27501
27502
27503 int
27504 main ()
27505 {
27506 static int test_array [1 - 2 * !(((long int) (sizeof (boolean))) >= $ac_mid)];
27507 test_array [0] = 0
27508
27509 ;
27510 return 0;
27511 }
27512 _ACEOF
27513 rm -f conftest.$ac_objext
27514 if { (ac_try="$ac_compile"
27515 case "(($ac_try" in
27516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27517 *) ac_try_echo=$ac_try;;
27518 esac
27519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27520 $as_echo "$ac_try_echo") >&5
27521 (eval "$ac_compile") 2>conftest.er1
27522 ac_status=$?
27523 grep -v '^ *+' conftest.er1 >conftest.err
27524 rm -f conftest.er1
27525 cat conftest.err >&5
27526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); } && {
27528 test -z "$ac_c_werror_flag" ||
27529 test ! -s conftest.err
27530 } && test -s conftest.$ac_objext; then
27531 ac_lo=$ac_mid; break
27532 else
27533 $as_echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27535
27536 ac_hi=`expr '(' $ac_mid ')' - 1`
27537 if test $ac_mid -le $ac_hi; then
27538 ac_lo= ac_hi=
27539 break
27540 fi
27541 ac_mid=`expr 2 '*' $ac_mid`
27542 fi
27543
27544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27545 done
27546 else
27547 $as_echo "$as_me: failed program was:" >&5
27548 sed 's/^/| /' conftest.$ac_ext >&5
27549
27550 ac_lo= ac_hi=
27551 fi
27552
27553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27554 fi
27555
27556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27557 # Binary search between lo and hi bounds.
27558 while test "x$ac_lo" != "x$ac_hi"; do
27559 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27560 cat >conftest.$ac_ext <<_ACEOF
27561 /* confdefs.h. */
27562 _ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h. */
27566
27567 #undef HAVE_BOOLEAN
27568 #include <stdio.h>
27569 #include <jpeglib.h>
27570
27571
27572 int
27573 main ()
27574 {
27575 static int test_array [1 - 2 * !(((long int) (sizeof (boolean))) <= $ac_mid)];
27576 test_array [0] = 0
27577
27578 ;
27579 return 0;
27580 }
27581 _ACEOF
27582 rm -f conftest.$ac_objext
27583 if { (ac_try="$ac_compile"
27584 case "(($ac_try" in
27585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586 *) ac_try_echo=$ac_try;;
27587 esac
27588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27589 $as_echo "$ac_try_echo") >&5
27590 (eval "$ac_compile") 2>conftest.er1
27591 ac_status=$?
27592 grep -v '^ *+' conftest.er1 >conftest.err
27593 rm -f conftest.er1
27594 cat conftest.err >&5
27595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); } && {
27597 test -z "$ac_c_werror_flag" ||
27598 test ! -s conftest.err
27599 } && test -s conftest.$ac_objext; then
27600 ac_hi=$ac_mid
27601 else
27602 $as_echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27604
27605 ac_lo=`expr '(' $ac_mid ')' + 1`
27606 fi
27607
27608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27609 done
27610 case $ac_lo in
27611 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27612 '') if test "$ac_cv_type_boolean" = yes; then
27613 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27615 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27616 See \`config.log' for more details." >&5
27617 $as_echo "$as_me: error: cannot compute sizeof (boolean)
27618 See \`config.log' for more details." >&2;}
27619 { (exit 77); exit 77; }; }; }
27620 else
27621 ac_cv_sizeof_boolean=0
27622 fi ;;
27623 esac
27624 else
27625 cat >conftest.$ac_ext <<_ACEOF
27626 /* confdefs.h. */
27627 _ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h. */
27631
27632 #undef HAVE_BOOLEAN
27633 #include <stdio.h>
27634 #include <jpeglib.h>
27635
27636
27637 static long int longval () { return (long int) (sizeof (boolean)); }
27638 static unsigned long int ulongval () { return (long int) (sizeof (boolean)); }
27639 #include <stdio.h>
27640 #include <stdlib.h>
27641 int
27642 main ()
27643 {
27644
27645 FILE *f = fopen ("conftest.val", "w");
27646 if (! f)
27647 return 1;
27648 if (((long int) (sizeof (boolean))) < 0)
27649 {
27650 long int i = longval ();
27651 if (i != ((long int) (sizeof (boolean))))
27652 return 1;
27653 fprintf (f, "%ld", i);
27654 }
27655 else
27656 {
27657 unsigned long int i = ulongval ();
27658 if (i != ((long int) (sizeof (boolean))))
27659 return 1;
27660 fprintf (f, "%lu", i);
27661 }
27662 /* Do not output a trailing newline, as this causes \r\n confusion
27663 on some platforms. */
27664 return ferror (f) || fclose (f) != 0;
27665
27666 ;
27667 return 0;
27668 }
27669 _ACEOF
27670 rm -f conftest$ac_exeext
27671 if { (ac_try="$ac_link"
27672 case "(($ac_try" in
27673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27674 *) ac_try_echo=$ac_try;;
27675 esac
27676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27677 $as_echo "$ac_try_echo") >&5
27678 (eval "$ac_link") 2>&5
27679 ac_status=$?
27680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27682 { (case "(($ac_try" in
27683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684 *) ac_try_echo=$ac_try;;
27685 esac
27686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27687 $as_echo "$ac_try_echo") >&5
27688 (eval "$ac_try") 2>&5
27689 ac_status=$?
27690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); }; }; then
27692 ac_cv_sizeof_boolean=`cat conftest.val`
27693 else
27694 $as_echo "$as_me: program exited with status $ac_status" >&5
27695 $as_echo "$as_me: failed program was:" >&5
27696 sed 's/^/| /' conftest.$ac_ext >&5
27697
27698 ( exit $ac_status )
27699 if test "$ac_cv_type_boolean" = yes; then
27700 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27702 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27703 See \`config.log' for more details." >&5
27704 $as_echo "$as_me: error: cannot compute sizeof (boolean)
27705 See \`config.log' for more details." >&2;}
27706 { (exit 77); exit 77; }; }; }
27707 else
27708 ac_cv_sizeof_boolean=0
27709 fi
27710 fi
27711 rm -rf conftest.dSYM
27712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27713 fi
27714 rm -f conftest.val
27715 fi
27716 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27717 $as_echo "$ac_cv_sizeof_boolean" >&6; }
27718
27719
27720
27721 cat >>confdefs.h <<_ACEOF
27722 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27723 _ACEOF
27724
27725
27726 cat >>confdefs.h <<_ACEOF
27727 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27728 _ACEOF
27729
27730
27731 fi
27732
27733 fi
27734 fi
27735 fi
27736 fi
27737 fi
27738
27739
27740 TIFF_LINK=
27741 TIFF_PREREQ_LINKS=-lm
27742 if test "$wxUSE_LIBTIFF" != "no" ; then
27743 cat >>confdefs.h <<\_ACEOF
27744 #define wxUSE_LIBTIFF 1
27745 _ACEOF
27746
27747
27748 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27749 if test "$wxUSE_LIBJPEG" = "sys"; then
27750 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27751 fi
27752 if test "$wxUSE_ZLIB" = "sys"; then
27753 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27754 fi
27755 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
27756 $as_echo_n "checking for tiffio.h... " >&6; }
27757 if test "${ac_cv_header_tiffio_h+set}" = set; then
27758 $as_echo_n "(cached) " >&6
27759 else
27760 cat >conftest.$ac_ext <<_ACEOF
27761 /* confdefs.h. */
27762 _ACEOF
27763 cat confdefs.h >>conftest.$ac_ext
27764 cat >>conftest.$ac_ext <<_ACEOF
27765 /* end confdefs.h. */
27766
27767
27768
27769 #include <tiffio.h>
27770 _ACEOF
27771 rm -f conftest.$ac_objext
27772 if { (ac_try="$ac_compile"
27773 case "(($ac_try" in
27774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775 *) ac_try_echo=$ac_try;;
27776 esac
27777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27778 $as_echo "$ac_try_echo") >&5
27779 (eval "$ac_compile") 2>conftest.er1
27780 ac_status=$?
27781 grep -v '^ *+' conftest.er1 >conftest.err
27782 rm -f conftest.er1
27783 cat conftest.err >&5
27784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785 (exit $ac_status); } && {
27786 test -z "$ac_c_werror_flag" ||
27787 test ! -s conftest.err
27788 } && test -s conftest.$ac_objext; then
27789 ac_cv_header_tiffio_h=yes
27790 else
27791 $as_echo "$as_me: failed program was:" >&5
27792 sed 's/^/| /' conftest.$ac_ext >&5
27793
27794 ac_cv_header_tiffio_h=no
27795 fi
27796
27797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27798 fi
27799 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27800 $as_echo "$ac_cv_header_tiffio_h" >&6; }
27801 if test "x$ac_cv_header_tiffio_h" = x""yes; then
27802
27803 { $as_echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27804 $as_echo_n "checking for TIFFError in -ltiff... " >&6; }
27805 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27806 $as_echo_n "(cached) " >&6
27807 else
27808 ac_check_lib_save_LIBS=$LIBS
27809 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27810 cat >conftest.$ac_ext <<_ACEOF
27811 /* confdefs.h. */
27812 _ACEOF
27813 cat confdefs.h >>conftest.$ac_ext
27814 cat >>conftest.$ac_ext <<_ACEOF
27815 /* end confdefs.h. */
27816
27817 /* Override any GCC internal prototype to avoid an error.
27818 Use char because int might match the return type of a GCC
27819 builtin and then its argument prototype would still apply. */
27820 #ifdef __cplusplus
27821 extern "C"
27822 #endif
27823 char TIFFError ();
27824 int
27825 main ()
27826 {
27827 return TIFFError ();
27828 ;
27829 return 0;
27830 }
27831 _ACEOF
27832 rm -f conftest.$ac_objext conftest$ac_exeext
27833 if { (ac_try="$ac_link"
27834 case "(($ac_try" in
27835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27836 *) ac_try_echo=$ac_try;;
27837 esac
27838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27839 $as_echo "$ac_try_echo") >&5
27840 (eval "$ac_link") 2>conftest.er1
27841 ac_status=$?
27842 grep -v '^ *+' conftest.er1 >conftest.err
27843 rm -f conftest.er1
27844 cat conftest.err >&5
27845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846 (exit $ac_status); } && {
27847 test -z "$ac_c_werror_flag" ||
27848 test ! -s conftest.err
27849 } && test -s conftest$ac_exeext && {
27850 test "$cross_compiling" = yes ||
27851 $as_test_x conftest$ac_exeext
27852 }; then
27853 ac_cv_lib_tiff_TIFFError=yes
27854 else
27855 $as_echo "$as_me: failed program was:" >&5
27856 sed 's/^/| /' conftest.$ac_ext >&5
27857
27858 ac_cv_lib_tiff_TIFFError=no
27859 fi
27860
27861 rm -rf conftest.dSYM
27862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27863 conftest$ac_exeext conftest.$ac_ext
27864 LIBS=$ac_check_lib_save_LIBS
27865 fi
27866 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27867 $as_echo "$ac_cv_lib_tiff_TIFFError" >&6; }
27868 if test "x$ac_cv_lib_tiff_TIFFError" = x""yes; then
27869 TIFF_LINK=" -ltiff"
27870 fi
27871
27872
27873 fi
27874
27875
27876
27877 if test "x$TIFF_LINK" = "x" ; then
27878 if test "$wxUSE_LIBTIFF" = "sys" ; then
27879 { { $as_echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27880 $as_echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27881 { (exit 1); exit 1; }; }
27882 else
27883 { $as_echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27884 $as_echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27885 wxUSE_LIBTIFF=builtin
27886 fi
27887 else
27888 wxUSE_LIBTIFF=sys
27889 fi
27890 fi
27891 if test "$wxUSE_LIBTIFF" = "builtin" ; then
27892 if test "$wxUSE_LIBJPEG" = "no"; then
27893 ac_configure_args="$ac_configure_args --disable-jpeg"
27894 fi
27895
27896
27897 subdirs="$subdirs src/tiff"
27898
27899 fi
27900 fi
27901
27902
27903 if test "$wxUSE_WCHAR_T" != "yes"; then
27904 if test "$wxUSE_EXPAT" != "no"; then
27905 { $as_echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27906 $as_echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27907 wxUSE_EXPAT=no
27908 fi
27909 if test "$wxUSE_XML" != "no"; then
27910 { $as_echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27911 $as_echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27912 wxUSE_XML=no
27913 fi
27914 fi
27915
27916 if test "$wxUSE_EXPAT" != "no"; then
27917 wxUSE_XML=yes
27918 cat >>confdefs.h <<\_ACEOF
27919 #define wxUSE_EXPAT 1
27920 _ACEOF
27921
27922 cat >>confdefs.h <<\_ACEOF
27923 #define wxUSE_XML 1
27924 _ACEOF
27925
27926
27927 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27928 { $as_echo "$as_me:$LINENO: checking for expat.h" >&5
27929 $as_echo_n "checking for expat.h... " >&6; }
27930 if test "${ac_cv_header_expat_h+set}" = set; then
27931 $as_echo_n "(cached) " >&6
27932 else
27933 cat >conftest.$ac_ext <<_ACEOF
27934 /* confdefs.h. */
27935 _ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h. */
27939
27940
27941 #include <expat.h>
27942 _ACEOF
27943 rm -f conftest.$ac_objext
27944 if { (ac_try="$ac_compile"
27945 case "(($ac_try" in
27946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947 *) ac_try_echo=$ac_try;;
27948 esac
27949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27950 $as_echo "$ac_try_echo") >&5
27951 (eval "$ac_compile") 2>conftest.er1
27952 ac_status=$?
27953 grep -v '^ *+' conftest.er1 >conftest.err
27954 rm -f conftest.er1
27955 cat conftest.err >&5
27956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); } && {
27958 test -z "$ac_c_werror_flag" ||
27959 test ! -s conftest.err
27960 } && test -s conftest.$ac_objext; then
27961 ac_cv_header_expat_h=yes
27962 else
27963 $as_echo "$as_me: failed program was:" >&5
27964 sed 's/^/| /' conftest.$ac_ext >&5
27965
27966 ac_cv_header_expat_h=no
27967 fi
27968
27969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27970 fi
27971 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27972 $as_echo "$ac_cv_header_expat_h" >&6; }
27973 if test "x$ac_cv_header_expat_h" = x""yes; then
27974 found_expat_h=1
27975 fi
27976
27977
27978 if test "x$found_expat_h" = "x1"; then
27979 { $as_echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27980 $as_echo_n "checking if expat.h is valid C++ header... " >&6; }
27981 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27982 $as_echo_n "(cached) " >&6
27983 else
27984
27985 ac_ext=cpp
27986 ac_cpp='$CXXCPP $CPPFLAGS'
27987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27990
27991 cat >conftest.$ac_ext <<_ACEOF
27992 /* confdefs.h. */
27993 _ACEOF
27994 cat confdefs.h >>conftest.$ac_ext
27995 cat >>conftest.$ac_ext <<_ACEOF
27996 /* end confdefs.h. */
27997 #include <expat.h>
27998 int
27999 main ()
28000 {
28001
28002 ;
28003 return 0;
28004 }
28005 _ACEOF
28006 rm -f conftest.$ac_objext
28007 if { (ac_try="$ac_compile"
28008 case "(($ac_try" in
28009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28010 *) ac_try_echo=$ac_try;;
28011 esac
28012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28013 $as_echo "$ac_try_echo") >&5
28014 (eval "$ac_compile") 2>conftest.er1
28015 ac_status=$?
28016 grep -v '^ *+' conftest.er1 >conftest.err
28017 rm -f conftest.er1
28018 cat conftest.err >&5
28019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020 (exit $ac_status); } && {
28021 test -z "$ac_cxx_werror_flag" ||
28022 test ! -s conftest.err
28023 } && test -s conftest.$ac_objext; then
28024 wx_cv_expat_is_not_broken=yes
28025 else
28026 $as_echo "$as_me: failed program was:" >&5
28027 sed 's/^/| /' conftest.$ac_ext >&5
28028
28029 wx_cv_expat_is_not_broken=no
28030
28031 fi
28032
28033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28034 ac_ext=c
28035 ac_cpp='$CPP $CPPFLAGS'
28036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28039
28040
28041
28042 fi
28043 { $as_echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
28044 $as_echo "$wx_cv_expat_is_not_broken" >&6; }
28045 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
28046 { $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
28047 $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
28048 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
28049 $as_echo_n "(cached) " >&6
28050 else
28051 ac_check_lib_save_LIBS=$LIBS
28052 LIBS="-lexpat $LIBS"
28053 cat >conftest.$ac_ext <<_ACEOF
28054 /* confdefs.h. */
28055 _ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h. */
28059
28060 /* Override any GCC internal prototype to avoid an error.
28061 Use char because int might match the return type of a GCC
28062 builtin and then its argument prototype would still apply. */
28063 #ifdef __cplusplus
28064 extern "C"
28065 #endif
28066 char XML_ParserCreate ();
28067 int
28068 main ()
28069 {
28070 return XML_ParserCreate ();
28071 ;
28072 return 0;
28073 }
28074 _ACEOF
28075 rm -f conftest.$ac_objext conftest$ac_exeext
28076 if { (ac_try="$ac_link"
28077 case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28080 esac
28081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28082 $as_echo "$ac_try_echo") >&5
28083 (eval "$ac_link") 2>conftest.er1
28084 ac_status=$?
28085 grep -v '^ *+' conftest.er1 >conftest.err
28086 rm -f conftest.er1
28087 cat conftest.err >&5
28088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); } && {
28090 test -z "$ac_c_werror_flag" ||
28091 test ! -s conftest.err
28092 } && test -s conftest$ac_exeext && {
28093 test "$cross_compiling" = yes ||
28094 $as_test_x conftest$ac_exeext
28095 }; then
28096 ac_cv_lib_expat_XML_ParserCreate=yes
28097 else
28098 $as_echo "$as_me: failed program was:" >&5
28099 sed 's/^/| /' conftest.$ac_ext >&5
28100
28101 ac_cv_lib_expat_XML_ParserCreate=no
28102 fi
28103
28104 rm -rf conftest.dSYM
28105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28106 conftest$ac_exeext conftest.$ac_ext
28107 LIBS=$ac_check_lib_save_LIBS
28108 fi
28109 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
28110 $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
28111 if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then
28112 EXPAT_LINK=" -lexpat"
28113 fi
28114
28115 fi
28116 fi
28117 if test "x$EXPAT_LINK" = "x" ; then
28118 if test "$wxUSE_EXPAT" = "sys" ; then
28119 { { $as_echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
28120 $as_echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
28121 { (exit 1); exit 1; }; }
28122 else
28123 { $as_echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
28124 $as_echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
28125 wxUSE_EXPAT=builtin
28126 fi
28127 else
28128 wxUSE_EXPAT=sys
28129 fi
28130 fi
28131 if test "$wxUSE_EXPAT" = "builtin" ; then
28132 subdirs="$subdirs src/expat"
28133
28134 fi
28135 fi
28136
28137
28138
28139 if test "$wxUSE_LIBMSPACK" != "no"; then
28140 { $as_echo "$as_me:$LINENO: checking for mspack.h" >&5
28141 $as_echo_n "checking for mspack.h... " >&6; }
28142 if test "${ac_cv_header_mspack_h+set}" = set; then
28143 $as_echo_n "(cached) " >&6
28144 else
28145 cat >conftest.$ac_ext <<_ACEOF
28146 /* confdefs.h. */
28147 _ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h. */
28151
28152
28153 #include <mspack.h>
28154 _ACEOF
28155 rm -f conftest.$ac_objext
28156 if { (ac_try="$ac_compile"
28157 case "(($ac_try" in
28158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28159 *) ac_try_echo=$ac_try;;
28160 esac
28161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28162 $as_echo "$ac_try_echo") >&5
28163 (eval "$ac_compile") 2>conftest.er1
28164 ac_status=$?
28165 grep -v '^ *+' conftest.er1 >conftest.err
28166 rm -f conftest.er1
28167 cat conftest.err >&5
28168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); } && {
28170 test -z "$ac_c_werror_flag" ||
28171 test ! -s conftest.err
28172 } && test -s conftest.$ac_objext; then
28173 ac_cv_header_mspack_h=yes
28174 else
28175 $as_echo "$as_me: failed program was:" >&5
28176 sed 's/^/| /' conftest.$ac_ext >&5
28177
28178 ac_cv_header_mspack_h=no
28179 fi
28180
28181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28182 fi
28183 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
28184 $as_echo "$ac_cv_header_mspack_h" >&6; }
28185 if test "x$ac_cv_header_mspack_h" = x""yes; then
28186 found_mspack_h=1
28187 fi
28188
28189
28190 if test "x$found_mspack_h" = "x1"; then
28191 { $as_echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
28192 $as_echo_n "checking for mspack_create_chm_decompressor in -lmspack... " >&6; }
28193 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
28194 $as_echo_n "(cached) " >&6
28195 else
28196 ac_check_lib_save_LIBS=$LIBS
28197 LIBS="-lmspack $LIBS"
28198 cat >conftest.$ac_ext <<_ACEOF
28199 /* confdefs.h. */
28200 _ACEOF
28201 cat confdefs.h >>conftest.$ac_ext
28202 cat >>conftest.$ac_ext <<_ACEOF
28203 /* end confdefs.h. */
28204
28205 /* Override any GCC internal prototype to avoid an error.
28206 Use char because int might match the return type of a GCC
28207 builtin and then its argument prototype would still apply. */
28208 #ifdef __cplusplus
28209 extern "C"
28210 #endif
28211 char mspack_create_chm_decompressor ();
28212 int
28213 main ()
28214 {
28215 return mspack_create_chm_decompressor ();
28216 ;
28217 return 0;
28218 }
28219 _ACEOF
28220 rm -f conftest.$ac_objext conftest$ac_exeext
28221 if { (ac_try="$ac_link"
28222 case "(($ac_try" in
28223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28224 *) ac_try_echo=$ac_try;;
28225 esac
28226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28227 $as_echo "$ac_try_echo") >&5
28228 (eval "$ac_link") 2>conftest.er1
28229 ac_status=$?
28230 grep -v '^ *+' conftest.er1 >conftest.err
28231 rm -f conftest.er1
28232 cat conftest.err >&5
28233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); } && {
28235 test -z "$ac_c_werror_flag" ||
28236 test ! -s conftest.err
28237 } && test -s conftest$ac_exeext && {
28238 test "$cross_compiling" = yes ||
28239 $as_test_x conftest$ac_exeext
28240 }; then
28241 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
28242 else
28243 $as_echo "$as_me: failed program was:" >&5
28244 sed 's/^/| /' conftest.$ac_ext >&5
28245
28246 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
28247 fi
28248
28249 rm -rf conftest.dSYM
28250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28251 conftest$ac_exeext conftest.$ac_ext
28252 LIBS=$ac_check_lib_save_LIBS
28253 fi
28254 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28255 $as_echo "$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
28256 if test "x$ac_cv_lib_mspack_mspack_create_chm_decompressor" = x""yes; then
28257 MSPACK_LINK=" -lmspack"
28258 fi
28259
28260 fi
28261 if test "x$MSPACK_LINK" = "x" ; then
28262 wxUSE_LIBMSPACK=no
28263 fi
28264 fi
28265
28266 if test "$wxUSE_LIBMSPACK" != "no"; then
28267 cat >>confdefs.h <<\_ACEOF
28268 #define wxUSE_LIBMSPACK 1
28269 _ACEOF
28270
28271 fi
28272
28273
28274
28275 AFMINSTALL=
28276 WIN32INSTALL=
28277
28278 TOOLKIT=
28279 TOOLKIT_INCLUDE=
28280 WIDGET_SET=
28281
28282 if test "$USE_WIN32" = 1 ; then
28283
28284 for ac_header in w32api.h
28285 do
28286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28287 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28288 $as_echo_n "checking for $ac_header... " >&6; }
28289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28290 $as_echo_n "(cached) " >&6
28291 else
28292 cat >conftest.$ac_ext <<_ACEOF
28293 /* confdefs.h. */
28294 _ACEOF
28295 cat confdefs.h >>conftest.$ac_ext
28296 cat >>conftest.$ac_ext <<_ACEOF
28297 /* end confdefs.h. */
28298
28299
28300 #include <$ac_header>
28301 _ACEOF
28302 rm -f conftest.$ac_objext
28303 if { (ac_try="$ac_compile"
28304 case "(($ac_try" in
28305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306 *) ac_try_echo=$ac_try;;
28307 esac
28308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28309 $as_echo "$ac_try_echo") >&5
28310 (eval "$ac_compile") 2>conftest.er1
28311 ac_status=$?
28312 grep -v '^ *+' conftest.er1 >conftest.err
28313 rm -f conftest.er1
28314 cat conftest.err >&5
28315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); } && {
28317 test -z "$ac_c_werror_flag" ||
28318 test ! -s conftest.err
28319 } && test -s conftest.$ac_objext; then
28320 eval "$as_ac_Header=yes"
28321 else
28322 $as_echo "$as_me: failed program was:" >&5
28323 sed 's/^/| /' conftest.$ac_ext >&5
28324
28325 eval "$as_ac_Header=no"
28326 fi
28327
28328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28329 fi
28330 ac_res=`eval 'as_val=${'$as_ac_Header'}
28331 $as_echo "$as_val"'`
28332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28333 $as_echo "$ac_res" >&6; }
28334 as_val=`eval 'as_val=${'$as_ac_Header'}
28335 $as_echo "$as_val"'`
28336 if test "x$as_val" = x""yes; then
28337 cat >>confdefs.h <<_ACEOF
28338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28339 _ACEOF
28340
28341 fi
28342
28343 done
28344
28345 { $as_echo "$as_me:$LINENO: checking for windows.h" >&5
28346 $as_echo_n "checking for windows.h... " >&6; }
28347 if test "${ac_cv_header_windows_h+set}" = set; then
28348 $as_echo_n "(cached) " >&6
28349 else
28350 cat >conftest.$ac_ext <<_ACEOF
28351 /* confdefs.h. */
28352 _ACEOF
28353 cat confdefs.h >>conftest.$ac_ext
28354 cat >>conftest.$ac_ext <<_ACEOF
28355 /* end confdefs.h. */
28356
28357
28358 #include <windows.h>
28359 _ACEOF
28360 rm -f conftest.$ac_objext
28361 if { (ac_try="$ac_compile"
28362 case "(($ac_try" in
28363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28364 *) ac_try_echo=$ac_try;;
28365 esac
28366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28367 $as_echo "$ac_try_echo") >&5
28368 (eval "$ac_compile") 2>conftest.er1
28369 ac_status=$?
28370 grep -v '^ *+' conftest.er1 >conftest.err
28371 rm -f conftest.er1
28372 cat conftest.err >&5
28373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); } && {
28375 test -z "$ac_c_werror_flag" ||
28376 test ! -s conftest.err
28377 } && test -s conftest.$ac_objext; then
28378 ac_cv_header_windows_h=yes
28379 else
28380 $as_echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28382
28383 ac_cv_header_windows_h=no
28384 fi
28385
28386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28387 fi
28388 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28389 $as_echo "$ac_cv_header_windows_h" >&6; }
28390 if test "x$ac_cv_header_windows_h" = x""yes; then
28391 :
28392 else
28393
28394 { { $as_echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28395 $as_echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28396 { (exit 1); exit 1; }; }
28397
28398 fi
28399
28400
28401
28402 case "${host}" in
28403 x86_64-*-mingw32* )
28404 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28405 ;;
28406 * )
28407 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28408 ;;
28409 esac
28410 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28411 LIBS="$LIBS -loleacc"
28412 fi
28413
28414 case "${host}" in
28415 *-*-cygwin* )
28416 LIBS="$LIBS -lkernel32 -luser32"
28417 esac
28418
28419 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28420 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28421
28422 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28423
28424 WIN32INSTALL=win32install
28425
28426 { $as_echo "$as_me:$LINENO: checking for pbt.h" >&5
28427 $as_echo_n "checking for pbt.h... " >&6; }
28428 if test "${ac_cv_header_pbt_h+set}" = set; then
28429 $as_echo_n "(cached) " >&6
28430 else
28431 cat >conftest.$ac_ext <<_ACEOF
28432 /* confdefs.h. */
28433 _ACEOF
28434 cat confdefs.h >>conftest.$ac_ext
28435 cat >>conftest.$ac_ext <<_ACEOF
28436 /* end confdefs.h. */
28437
28438
28439 #include <pbt.h>
28440 _ACEOF
28441 rm -f conftest.$ac_objext
28442 if { (ac_try="$ac_compile"
28443 case "(($ac_try" in
28444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28445 *) ac_try_echo=$ac_try;;
28446 esac
28447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28448 $as_echo "$ac_try_echo") >&5
28449 (eval "$ac_compile") 2>conftest.er1
28450 ac_status=$?
28451 grep -v '^ *+' conftest.er1 >conftest.err
28452 rm -f conftest.er1
28453 cat conftest.err >&5
28454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28455 (exit $ac_status); } && {
28456 test -z "$ac_c_werror_flag" ||
28457 test ! -s conftest.err
28458 } && test -s conftest.$ac_objext; then
28459 ac_cv_header_pbt_h=yes
28460 else
28461 $as_echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.$ac_ext >&5
28463
28464 ac_cv_header_pbt_h=no
28465 fi
28466
28467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28468 fi
28469 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28470 $as_echo "$ac_cv_header_pbt_h" >&6; }
28471 if test "x$ac_cv_header_pbt_h" = x""yes; then
28472 :
28473 else
28474 cat >>confdefs.h <<\_ACEOF
28475 #define NEED_PBT_H 1
28476 _ACEOF
28477
28478 fi
28479
28480
28481 fi
28482
28483 if test "$wxUSE_GUI" = "yes"; then
28484 USE_GUI=1
28485
28486 GUI_TK_LIBRARY=
28487
28488 WXGTK12=
28489 WXGTK127=
28490 WXGTK2=
28491 WXGPE=
28492
28493 if test "$wxUSE_COCOA" = 1 ; then
28494 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28495 { $as_echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28496 $as_echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28497 wxUSE_PRINTING_ARCHITECTURE=no
28498 fi
28499 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28500 { $as_echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28501 $as_echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28502 wxUSE_DRAG_AND_DROP=no
28503 fi
28504 if test "$wxUSE_DRAGIMAGE" = "yes"; then
28505 { $as_echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28506 $as_echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28507 wxUSE_DRAGIMAGE=no
28508 fi
28509 fi
28510
28511 if test "$wxUSE_MSW" = 1 ; then
28512 TOOLKIT=MSW
28513 GUIDIST=MSW_DIST
28514
28515 case "${host}" in
28516 *-*-mingw32* )
28517 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28518 esac
28519 fi
28520
28521 if test "$wxUSE_GTK" = 1; then
28522 { $as_echo "$as_me:$LINENO: checking for GTK+ version" >&5
28523 $as_echo_n "checking for GTK+ version... " >&6; }
28524
28525 gtk_version_cached=1
28526 if test "${wx_cv_lib_gtk+set}" = set; then
28527 $as_echo_n "(cached) " >&6
28528 else
28529
28530 gtk_version_cached=0
28531 { $as_echo "$as_me:$LINENO: result: " >&5
28532 $as_echo "" >&6; }
28533
28534 GTK_MODULES=
28535 if test "$wxUSE_THREADS" = "yes"; then
28536 GTK_MODULES=gthread
28537 fi
28538
28539 wx_cv_lib_gtk=
28540 if test "x$wxGTK_VERSION" != "x1"
28541 then
28542 case "${host}" in
28543 *-*-solaris2* )
28544 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28545 enable_gtktest=no
28546 fi
28547 esac
28548
28549 # Check whether --enable-gtktest was given.
28550 if test "${enable_gtktest+set}" = set; then
28551 enableval=$enable_gtktest;
28552 else
28553 enable_gtktest=yes
28554 fi
28555
28556
28557 pkg_config_args=gtk+-2.0
28558 for module in . $GTK_MODULES
28559 do
28560 case "$module" in
28561 gthread)
28562 pkg_config_args="$pkg_config_args gthread-2.0"
28563 ;;
28564 esac
28565 done
28566
28567 no_gtk=""
28568
28569 # Extract the first word of "pkg-config", so it can be a program name with args.
28570 set dummy pkg-config; ac_word=$2
28571 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28572 $as_echo_n "checking for $ac_word... " >&6; }
28573 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28574 $as_echo_n "(cached) " >&6
28575 else
28576 case $PKG_CONFIG in
28577 [\\/]* | ?:[\\/]*)
28578 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28579 ;;
28580 *)
28581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28582 for as_dir in $PATH
28583 do
28584 IFS=$as_save_IFS
28585 test -z "$as_dir" && as_dir=.
28586 for ac_exec_ext in '' $ac_executable_extensions; do
28587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28588 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28589 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28590 break 2
28591 fi
28592 done
28593 done
28594 IFS=$as_save_IFS
28595
28596 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28597 ;;
28598 esac
28599 fi
28600 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28601 if test -n "$PKG_CONFIG"; then
28602 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28603 $as_echo "$PKG_CONFIG" >&6; }
28604 else
28605 { $as_echo "$as_me:$LINENO: result: no" >&5
28606 $as_echo "no" >&6; }
28607 fi
28608
28609
28610
28611 if test x$PKG_CONFIG != xno ; then
28612 if pkg-config --atleast-pkgconfig-version 0.7 ; then
28613 :
28614 else
28615 echo "*** pkg-config too old; version 0.7 or better required."
28616 no_gtk=yes
28617 PKG_CONFIG=no
28618 fi
28619 else
28620 no_gtk=yes
28621 fi
28622
28623 min_gtk_version=2.4.0
28624 { $as_echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28625 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
28626
28627 if test x$PKG_CONFIG != xno ; then
28628 ## don't try to run the test against uninstalled libtool libs
28629 if $PKG_CONFIG --uninstalled $pkg_config_args; then
28630 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28631 enable_gtktest=no
28632 fi
28633
28634 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28635 :
28636 else
28637 no_gtk=yes
28638 fi
28639 fi
28640
28641 if test x"$no_gtk" = x ; then
28642 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28643 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28644 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28645 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28646 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28647 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28648 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28649 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28650 if test "x$enable_gtktest" = "xyes" ; then
28651 ac_save_CFLAGS="$CFLAGS"
28652 ac_save_LIBS="$LIBS"
28653 CFLAGS="$CFLAGS $GTK_CFLAGS"
28654 LIBS="$GTK_LIBS $LIBS"
28655 rm -f conf.gtktest
28656 if test "$cross_compiling" = yes; then
28657 echo $ac_n "cross compiling; assumed OK... $ac_c"
28658 else
28659 cat >conftest.$ac_ext <<_ACEOF
28660 /* confdefs.h. */
28661 _ACEOF
28662 cat confdefs.h >>conftest.$ac_ext
28663 cat >>conftest.$ac_ext <<_ACEOF
28664 /* end confdefs.h. */
28665
28666 #include <gtk/gtk.h>
28667 #include <stdio.h>
28668 #include <stdlib.h>
28669
28670 int
28671 main ()
28672 {
28673 int major, minor, micro;
28674 char *tmp_version;
28675
28676 system ("touch conf.gtktest");
28677
28678 /* HP/UX 9 (%@#!) writes to sscanf strings */
28679 tmp_version = g_strdup("$min_gtk_version");
28680 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28681 printf("%s, bad version string\n", "$min_gtk_version");
28682 exit(1);
28683 }
28684
28685 if ((gtk_major_version != $gtk_config_major_version) ||
28686 (gtk_minor_version != $gtk_config_minor_version) ||
28687 (gtk_micro_version != $gtk_config_micro_version))
28688 {
28689 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28690 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28691 gtk_major_version, gtk_minor_version, gtk_micro_version);
28692 printf ("*** was found! If pkg-config was correct, then it is best\n");
28693 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28694 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28695 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28696 printf("*** required on your system.\n");
28697 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28698 printf("*** to point to the correct configuration files\n");
28699 }
28700 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28701 (gtk_minor_version != GTK_MINOR_VERSION) ||
28702 (gtk_micro_version != GTK_MICRO_VERSION))
28703 {
28704 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28705 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28706 printf("*** library (version %d.%d.%d)\n",
28707 gtk_major_version, gtk_minor_version, gtk_micro_version);
28708 }
28709 else
28710 {
28711 if ((gtk_major_version > major) ||
28712 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28713 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28714 {
28715 return 0;
28716 }
28717 else
28718 {
28719 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28720 gtk_major_version, gtk_minor_version, gtk_micro_version);
28721 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28722 major, minor, micro);
28723 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28724 printf("***\n");
28725 printf("*** If you have already installed a sufficiently new version, this error\n");
28726 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28727 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28728 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28729 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28730 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28731 printf("*** so that the correct libraries are found at run-time))\n");
28732 }
28733 }
28734 return 1;
28735 }
28736
28737 _ACEOF
28738 rm -f conftest$ac_exeext
28739 if { (ac_try="$ac_link"
28740 case "(($ac_try" in
28741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742 *) ac_try_echo=$ac_try;;
28743 esac
28744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28745 $as_echo "$ac_try_echo") >&5
28746 (eval "$ac_link") 2>&5
28747 ac_status=$?
28748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28750 { (case "(($ac_try" in
28751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28752 *) ac_try_echo=$ac_try;;
28753 esac
28754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28755 $as_echo "$ac_try_echo") >&5
28756 (eval "$ac_try") 2>&5
28757 ac_status=$?
28758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); }; }; then
28760 :
28761 else
28762 $as_echo "$as_me: program exited with status $ac_status" >&5
28763 $as_echo "$as_me: failed program was:" >&5
28764 sed 's/^/| /' conftest.$ac_ext >&5
28765
28766 ( exit $ac_status )
28767 no_gtk=yes
28768 fi
28769 rm -rf conftest.dSYM
28770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28771 fi
28772
28773
28774 CFLAGS="$ac_save_CFLAGS"
28775 LIBS="$ac_save_LIBS"
28776 fi
28777 fi
28778 if test "x$no_gtk" = x ; then
28779 { $as_echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28780 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28781 wx_cv_lib_gtk=2.0
28782 else
28783 { $as_echo "$as_me:$LINENO: result: no" >&5
28784 $as_echo "no" >&6; }
28785 if test "$PKG_CONFIG" = "no" ; then
28786 echo "*** A new enough version of pkg-config was not found."
28787 echo "*** See http://pkgconfig.sourceforge.net"
28788 else
28789 if test -f conf.gtktest ; then
28790 :
28791 else
28792 echo "*** Could not run GTK+ test program, checking why..."
28793 ac_save_CFLAGS="$CFLAGS"
28794 ac_save_LIBS="$LIBS"
28795 CFLAGS="$CFLAGS $GTK_CFLAGS"
28796 LIBS="$LIBS $GTK_LIBS"
28797 cat >conftest.$ac_ext <<_ACEOF
28798 /* confdefs.h. */
28799 _ACEOF
28800 cat confdefs.h >>conftest.$ac_ext
28801 cat >>conftest.$ac_ext <<_ACEOF
28802 /* end confdefs.h. */
28803
28804 #include <gtk/gtk.h>
28805 #include <stdio.h>
28806
28807 int
28808 main ()
28809 {
28810 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28811 ;
28812 return 0;
28813 }
28814 _ACEOF
28815 rm -f conftest.$ac_objext conftest$ac_exeext
28816 if { (ac_try="$ac_link"
28817 case "(($ac_try" in
28818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28819 *) ac_try_echo=$ac_try;;
28820 esac
28821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28822 $as_echo "$ac_try_echo") >&5
28823 (eval "$ac_link") 2>conftest.er1
28824 ac_status=$?
28825 grep -v '^ *+' conftest.er1 >conftest.err
28826 rm -f conftest.er1
28827 cat conftest.err >&5
28828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } && {
28830 test -z "$ac_c_werror_flag" ||
28831 test ! -s conftest.err
28832 } && test -s conftest$ac_exeext && {
28833 test "$cross_compiling" = yes ||
28834 $as_test_x conftest$ac_exeext
28835 }; then
28836 echo "*** The test program compiled, but did not run. This usually means"
28837 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28838 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28839 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28840 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28841 echo "*** is required on your system"
28842 echo "***"
28843 echo "*** If you have an old version installed, it is best to remove it, although"
28844 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28845 else
28846 $as_echo "$as_me: failed program was:" >&5
28847 sed 's/^/| /' conftest.$ac_ext >&5
28848
28849 echo "*** The test program failed to compile or link. See the file config.log for the"
28850 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28851 fi
28852
28853 rm -rf conftest.dSYM
28854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28855 conftest$ac_exeext conftest.$ac_ext
28856 CFLAGS="$ac_save_CFLAGS"
28857 LIBS="$ac_save_LIBS"
28858 fi
28859 fi
28860 GTK_CFLAGS=""
28861 GTK_LIBS=""
28862 :
28863 fi
28864
28865
28866 rm -f conf.gtktest
28867
28868
28869 case "${host}" in
28870 *-*-solaris2* )
28871 if test "$wxUSE_SHARED" != "yes"; then
28872 GTK_LIBS="$GTK_LIBS -lX11"
28873 fi
28874 esac
28875 fi
28876
28877 if test -z "$wx_cv_lib_gtk"; then
28878 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28879
28880 # Check whether --with-gtk-prefix was given.
28881 if test "${with_gtk_prefix+set}" = set; then
28882 withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28883 else
28884 gtk_config_prefix=""
28885 fi
28886
28887
28888 # Check whether --with-gtk-exec-prefix was given.
28889 if test "${with_gtk_exec_prefix+set}" = set; then
28890 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28891 else
28892 gtk_config_exec_prefix=""
28893 fi
28894
28895 # Check whether --enable-gtktest was given.
28896 if test "${enable_gtktest+set}" = set; then
28897 enableval=$enable_gtktest;
28898 else
28899 enable_gtktest=yes
28900 fi
28901
28902
28903 for module in . $GTK_MODULES
28904 do
28905 case "$module" in
28906 gthread)
28907 gtk_config_args="$gtk_config_args gthread"
28908 ;;
28909 esac
28910 done
28911
28912 if test x$gtk_config_exec_prefix != x ; then
28913 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28914 if test x${GTK_CONFIG+set} != xset ; then
28915 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28916 fi
28917 fi
28918 if test x$gtk_config_prefix != x ; then
28919 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28920 if test x${GTK_CONFIG+set} != xset ; then
28921 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28922 fi
28923 fi
28924
28925 # Extract the first word of "gtk-config", so it can be a program name with args.
28926 set dummy gtk-config; ac_word=$2
28927 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28928 $as_echo_n "checking for $ac_word... " >&6; }
28929 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28930 $as_echo_n "(cached) " >&6
28931 else
28932 case $GTK_CONFIG in
28933 [\\/]* | ?:[\\/]*)
28934 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28935 ;;
28936 *)
28937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28938 for as_dir in $PATH
28939 do
28940 IFS=$as_save_IFS
28941 test -z "$as_dir" && as_dir=.
28942 for ac_exec_ext in '' $ac_executable_extensions; do
28943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28944 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28945 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28946 break 2
28947 fi
28948 done
28949 done
28950 IFS=$as_save_IFS
28951
28952 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28953 ;;
28954 esac
28955 fi
28956 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28957 if test -n "$GTK_CONFIG"; then
28958 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28959 $as_echo "$GTK_CONFIG" >&6; }
28960 else
28961 { $as_echo "$as_me:$LINENO: result: no" >&5
28962 $as_echo "no" >&6; }
28963 fi
28964
28965
28966 min_gtk_version=1.2.7
28967 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28968 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
28969 no_gtk=""
28970 if test "$GTK_CONFIG" = "no" ; then
28971 no_gtk=yes
28972 else
28973 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28974 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28975 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28976 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28977 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28978 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28979 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28980 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28981 if test "x$enable_gtktest" = "xyes" ; then
28982 ac_save_CFLAGS="$CFLAGS"
28983 ac_save_LIBS="$LIBS"
28984 CFLAGS="$CFLAGS $GTK_CFLAGS"
28985 LIBS="$GTK_LIBS $LIBS"
28986 rm -f conf.gtktest
28987 if test "$cross_compiling" = yes; then
28988 echo $ac_n "cross compiling; assumed OK... $ac_c"
28989 else
28990 cat >conftest.$ac_ext <<_ACEOF
28991 /* confdefs.h. */
28992 _ACEOF
28993 cat confdefs.h >>conftest.$ac_ext
28994 cat >>conftest.$ac_ext <<_ACEOF
28995 /* end confdefs.h. */
28996
28997 #include <gtk/gtk.h>
28998 #include <stdio.h>
28999 #include <stdlib.h>
29000
29001 int
29002 main ()
29003 {
29004 int major, minor, micro;
29005 char *tmp_version;
29006
29007 system ("touch conf.gtktest");
29008
29009 /* HP/UX 9 (%@#!) writes to sscanf strings */
29010 tmp_version = g_strdup("$min_gtk_version");
29011 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29012 printf("%s, bad version string\n", "$min_gtk_version");
29013 exit(1);
29014 }
29015
29016 if ((gtk_major_version != $gtk_config_major_version) ||
29017 (gtk_minor_version != $gtk_config_minor_version) ||
29018 (gtk_micro_version != $gtk_config_micro_version))
29019 {
29020 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29021 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29022 gtk_major_version, gtk_minor_version, gtk_micro_version);
29023 printf ("*** was found! If gtk-config was correct, then it is best\n");
29024 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29025 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29026 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29027 printf("*** required on your system.\n");
29028 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29029 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29030 printf("*** before re-running configure\n");
29031 }
29032 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29033 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29034 (gtk_minor_version != GTK_MINOR_VERSION) ||
29035 (gtk_micro_version != GTK_MICRO_VERSION))
29036 {
29037 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29038 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29039 printf("*** library (version %d.%d.%d)\n",
29040 gtk_major_version, gtk_minor_version, gtk_micro_version);
29041 }
29042 #endif /* defined (GTK_MAJOR_VERSION) ... */
29043 else
29044 {
29045 if ((gtk_major_version > major) ||
29046 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29047 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29048 {
29049 return 0;
29050 }
29051 else
29052 {
29053 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29054 gtk_major_version, gtk_minor_version, gtk_micro_version);
29055 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29056 major, minor, micro);
29057 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29058 printf("***\n");
29059 printf("*** If you have already installed a sufficiently new version, this error\n");
29060 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29061 printf("*** being found. The easiest way to fix this is to remove the old version\n");
29062 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29063 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29064 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29065 printf("*** so that the correct libraries are found at run-time))\n");
29066 }
29067 }
29068 return 1;
29069 }
29070
29071 _ACEOF
29072 rm -f conftest$ac_exeext
29073 if { (ac_try="$ac_link"
29074 case "(($ac_try" in
29075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29076 *) ac_try_echo=$ac_try;;
29077 esac
29078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29079 $as_echo "$ac_try_echo") >&5
29080 (eval "$ac_link") 2>&5
29081 ac_status=$?
29082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29084 { (case "(($ac_try" in
29085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29086 *) ac_try_echo=$ac_try;;
29087 esac
29088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29089 $as_echo "$ac_try_echo") >&5
29090 (eval "$ac_try") 2>&5
29091 ac_status=$?
29092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); }; }; then
29094 :
29095 else
29096 $as_echo "$as_me: program exited with status $ac_status" >&5
29097 $as_echo "$as_me: failed program was:" >&5
29098 sed 's/^/| /' conftest.$ac_ext >&5
29099
29100 ( exit $ac_status )
29101 no_gtk=yes
29102 fi
29103 rm -rf conftest.dSYM
29104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29105 fi
29106
29107
29108 CFLAGS="$ac_save_CFLAGS"
29109 LIBS="$ac_save_LIBS"
29110 fi
29111 fi
29112 if test "x$no_gtk" = x ; then
29113 { $as_echo "$as_me:$LINENO: result: yes" >&5
29114 $as_echo "yes" >&6; }
29115 wx_cv_lib_gtk=1.2.7
29116 else
29117 { $as_echo "$as_me:$LINENO: result: no" >&5
29118 $as_echo "no" >&6; }
29119 if test "$GTK_CONFIG" = "no" ; then
29120 echo "*** The gtk-config script installed by GTK could not be found"
29121 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29122 echo "*** your path, or set the GTK_CONFIG environment variable to the"
29123 echo "*** full path to gtk-config."
29124 else
29125 if test -f conf.gtktest ; then
29126 :
29127 else
29128 echo "*** Could not run GTK test program, checking why..."
29129 CFLAGS="$CFLAGS $GTK_CFLAGS"
29130 LIBS="$LIBS $GTK_LIBS"
29131 cat >conftest.$ac_ext <<_ACEOF
29132 /* confdefs.h. */
29133 _ACEOF
29134 cat confdefs.h >>conftest.$ac_ext
29135 cat >>conftest.$ac_ext <<_ACEOF
29136 /* end confdefs.h. */
29137
29138 #include <gtk/gtk.h>
29139 #include <stdio.h>
29140
29141 int
29142 main ()
29143 {
29144 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29145 ;
29146 return 0;
29147 }
29148 _ACEOF
29149 rm -f conftest.$ac_objext conftest$ac_exeext
29150 if { (ac_try="$ac_link"
29151 case "(($ac_try" in
29152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153 *) ac_try_echo=$ac_try;;
29154 esac
29155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29156 $as_echo "$ac_try_echo") >&5
29157 (eval "$ac_link") 2>conftest.er1
29158 ac_status=$?
29159 grep -v '^ *+' conftest.er1 >conftest.err
29160 rm -f conftest.er1
29161 cat conftest.err >&5
29162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); } && {
29164 test -z "$ac_c_werror_flag" ||
29165 test ! -s conftest.err
29166 } && test -s conftest$ac_exeext && {
29167 test "$cross_compiling" = yes ||
29168 $as_test_x conftest$ac_exeext
29169 }; then
29170 echo "*** The test program compiled, but did not run. This usually means"
29171 echo "*** that the run-time linker is not finding GTK or finding the wrong"
29172 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29173 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29174 echo "*** to the installed location Also, make sure you have run ldconfig if that"
29175 echo "*** is required on your system"
29176 echo "***"
29177 echo "*** If you have an old version installed, it is best to remove it, although"
29178 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29179 echo "***"
29180 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29181 echo "*** came with the system with the command"
29182 echo "***"
29183 echo "*** rpm --erase --nodeps gtk gtk-devel"
29184 else
29185 $as_echo "$as_me: failed program was:" >&5
29186 sed 's/^/| /' conftest.$ac_ext >&5
29187
29188 echo "*** The test program failed to compile or link. See the file config.log for the"
29189 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29190 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29191 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29192 fi
29193
29194 rm -rf conftest.dSYM
29195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29196 conftest$ac_exeext conftest.$ac_ext
29197 CFLAGS="$ac_save_CFLAGS"
29198 LIBS="$ac_save_LIBS"
29199 fi
29200 fi
29201 GTK_CFLAGS=""
29202 GTK_LIBS=""
29203 :
29204 fi
29205
29206
29207 rm -f conf.gtktest
29208
29209
29210 if test -z "$wx_cv_lib_gtk"; then
29211
29212 # Check whether --with-gtk-prefix was given.
29213 if test "${with_gtk_prefix+set}" = set; then
29214 withval=$with_gtk_prefix; gtk_config_prefix="$withval"
29215 else
29216 gtk_config_prefix=""
29217 fi
29218
29219
29220 # Check whether --with-gtk-exec-prefix was given.
29221 if test "${with_gtk_exec_prefix+set}" = set; then
29222 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
29223 else
29224 gtk_config_exec_prefix=""
29225 fi
29226
29227 # Check whether --enable-gtktest was given.
29228 if test "${enable_gtktest+set}" = set; then
29229 enableval=$enable_gtktest;
29230 else
29231 enable_gtktest=yes
29232 fi
29233
29234
29235 for module in . $GTK_MODULES
29236 do
29237 case "$module" in
29238 gthread)
29239 gtk_config_args="$gtk_config_args gthread"
29240 ;;
29241 esac
29242 done
29243
29244 if test x$gtk_config_exec_prefix != x ; then
29245 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
29246 if test x${GTK_CONFIG+set} != xset ; then
29247 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29248 fi
29249 fi
29250 if test x$gtk_config_prefix != x ; then
29251 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29252 if test x${GTK_CONFIG+set} != xset ; then
29253 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29254 fi
29255 fi
29256
29257 # Extract the first word of "gtk-config", so it can be a program name with args.
29258 set dummy gtk-config; ac_word=$2
29259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29260 $as_echo_n "checking for $ac_word... " >&6; }
29261 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29262 $as_echo_n "(cached) " >&6
29263 else
29264 case $GTK_CONFIG in
29265 [\\/]* | ?:[\\/]*)
29266 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29267 ;;
29268 *)
29269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29270 for as_dir in $PATH
29271 do
29272 IFS=$as_save_IFS
29273 test -z "$as_dir" && as_dir=.
29274 for ac_exec_ext in '' $ac_executable_extensions; do
29275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29276 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29278 break 2
29279 fi
29280 done
29281 done
29282 IFS=$as_save_IFS
29283
29284 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29285 ;;
29286 esac
29287 fi
29288 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29289 if test -n "$GTK_CONFIG"; then
29290 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29291 $as_echo "$GTK_CONFIG" >&6; }
29292 else
29293 { $as_echo "$as_me:$LINENO: result: no" >&5
29294 $as_echo "no" >&6; }
29295 fi
29296
29297
29298 min_gtk_version=1.2.3
29299 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29300 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
29301 no_gtk=""
29302 if test "$GTK_CONFIG" = "no" ; then
29303 no_gtk=yes
29304 else
29305 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29306 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29307 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29308 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29309 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29310 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29311 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29312 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29313 if test "x$enable_gtktest" = "xyes" ; then
29314 ac_save_CFLAGS="$CFLAGS"
29315 ac_save_LIBS="$LIBS"
29316 CFLAGS="$CFLAGS $GTK_CFLAGS"
29317 LIBS="$GTK_LIBS $LIBS"
29318 rm -f conf.gtktest
29319 if test "$cross_compiling" = yes; then
29320 echo $ac_n "cross compiling; assumed OK... $ac_c"
29321 else
29322 cat >conftest.$ac_ext <<_ACEOF
29323 /* confdefs.h. */
29324 _ACEOF
29325 cat confdefs.h >>conftest.$ac_ext
29326 cat >>conftest.$ac_ext <<_ACEOF
29327 /* end confdefs.h. */
29328
29329 #include <gtk/gtk.h>
29330 #include <stdio.h>
29331 #include <stdlib.h>
29332
29333 int
29334 main ()
29335 {
29336 int major, minor, micro;
29337 char *tmp_version;
29338
29339 system ("touch conf.gtktest");
29340
29341 /* HP/UX 9 (%@#!) writes to sscanf strings */
29342 tmp_version = g_strdup("$min_gtk_version");
29343 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29344 printf("%s, bad version string\n", "$min_gtk_version");
29345 exit(1);
29346 }
29347
29348 if ((gtk_major_version != $gtk_config_major_version) ||
29349 (gtk_minor_version != $gtk_config_minor_version) ||
29350 (gtk_micro_version != $gtk_config_micro_version))
29351 {
29352 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29353 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29354 gtk_major_version, gtk_minor_version, gtk_micro_version);
29355 printf ("*** was found! If gtk-config was correct, then it is best\n");
29356 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29357 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29358 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29359 printf("*** required on your system.\n");
29360 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29361 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29362 printf("*** before re-running configure\n");
29363 }
29364 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29365 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29366 (gtk_minor_version != GTK_MINOR_VERSION) ||
29367 (gtk_micro_version != GTK_MICRO_VERSION))
29368 {
29369 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29370 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29371 printf("*** library (version %d.%d.%d)\n",
29372 gtk_major_version, gtk_minor_version, gtk_micro_version);
29373 }
29374 #endif /* defined (GTK_MAJOR_VERSION) ... */
29375 else
29376 {
29377 if ((gtk_major_version > major) ||
29378 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29379 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29380 {
29381 return 0;
29382 }
29383 else
29384 {
29385 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29386 gtk_major_version, gtk_minor_version, gtk_micro_version);
29387 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29388 major, minor, micro);
29389 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29390 printf("***\n");
29391 printf("*** If you have already installed a sufficiently new version, this error\n");
29392 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29393 printf("*** being found. The easiest way to fix this is to remove the old version\n");
29394 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29395 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29396 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29397 printf("*** so that the correct libraries are found at run-time))\n");
29398 }
29399 }
29400 return 1;
29401 }
29402
29403 _ACEOF
29404 rm -f conftest$ac_exeext
29405 if { (ac_try="$ac_link"
29406 case "(($ac_try" in
29407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29408 *) ac_try_echo=$ac_try;;
29409 esac
29410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29411 $as_echo "$ac_try_echo") >&5
29412 (eval "$ac_link") 2>&5
29413 ac_status=$?
29414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29416 { (case "(($ac_try" in
29417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29418 *) ac_try_echo=$ac_try;;
29419 esac
29420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29421 $as_echo "$ac_try_echo") >&5
29422 (eval "$ac_try") 2>&5
29423 ac_status=$?
29424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); }; }; then
29426 :
29427 else
29428 $as_echo "$as_me: program exited with status $ac_status" >&5
29429 $as_echo "$as_me: failed program was:" >&5
29430 sed 's/^/| /' conftest.$ac_ext >&5
29431
29432 ( exit $ac_status )
29433 no_gtk=yes
29434 fi
29435 rm -rf conftest.dSYM
29436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29437 fi
29438
29439
29440 CFLAGS="$ac_save_CFLAGS"
29441 LIBS="$ac_save_LIBS"
29442 fi
29443 fi
29444 if test "x$no_gtk" = x ; then
29445 { $as_echo "$as_me:$LINENO: result: yes" >&5
29446 $as_echo "yes" >&6; }
29447 wx_cv_lib_gtk=1.2.3
29448 else
29449 { $as_echo "$as_me:$LINENO: result: no" >&5
29450 $as_echo "no" >&6; }
29451 if test "$GTK_CONFIG" = "no" ; then
29452 echo "*** The gtk-config script installed by GTK could not be found"
29453 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29454 echo "*** your path, or set the GTK_CONFIG environment variable to the"
29455 echo "*** full path to gtk-config."
29456 else
29457 if test -f conf.gtktest ; then
29458 :
29459 else
29460 echo "*** Could not run GTK test program, checking why..."
29461 CFLAGS="$CFLAGS $GTK_CFLAGS"
29462 LIBS="$LIBS $GTK_LIBS"
29463 cat >conftest.$ac_ext <<_ACEOF
29464 /* confdefs.h. */
29465 _ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h. */
29469
29470 #include <gtk/gtk.h>
29471 #include <stdio.h>
29472
29473 int
29474 main ()
29475 {
29476 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29477 ;
29478 return 0;
29479 }
29480 _ACEOF
29481 rm -f conftest.$ac_objext conftest$ac_exeext
29482 if { (ac_try="$ac_link"
29483 case "(($ac_try" in
29484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29485 *) ac_try_echo=$ac_try;;
29486 esac
29487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29488 $as_echo "$ac_try_echo") >&5
29489 (eval "$ac_link") 2>conftest.er1
29490 ac_status=$?
29491 grep -v '^ *+' conftest.er1 >conftest.err
29492 rm -f conftest.er1
29493 cat conftest.err >&5
29494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); } && {
29496 test -z "$ac_c_werror_flag" ||
29497 test ! -s conftest.err
29498 } && test -s conftest$ac_exeext && {
29499 test "$cross_compiling" = yes ||
29500 $as_test_x conftest$ac_exeext
29501 }; then
29502 echo "*** The test program compiled, but did not run. This usually means"
29503 echo "*** that the run-time linker is not finding GTK or finding the wrong"
29504 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29505 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29506 echo "*** to the installed location Also, make sure you have run ldconfig if that"
29507 echo "*** is required on your system"
29508 echo "***"
29509 echo "*** If you have an old version installed, it is best to remove it, although"
29510 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29511 echo "***"
29512 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29513 echo "*** came with the system with the command"
29514 echo "***"
29515 echo "*** rpm --erase --nodeps gtk gtk-devel"
29516 else
29517 $as_echo "$as_me: failed program was:" >&5
29518 sed 's/^/| /' conftest.$ac_ext >&5
29519
29520 echo "*** The test program failed to compile or link. See the file config.log for the"
29521 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29522 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29523 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29524 fi
29525
29526 rm -rf conftest.dSYM
29527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29528 conftest$ac_exeext conftest.$ac_ext
29529 CFLAGS="$ac_save_CFLAGS"
29530 LIBS="$ac_save_LIBS"
29531 fi
29532 fi
29533 GTK_CFLAGS=""
29534 GTK_LIBS=""
29535 :
29536 fi
29537
29538
29539 rm -f conf.gtktest
29540
29541 fi
29542 fi
29543 fi
29544
29545 if test -z "$wx_cv_lib_gtk"; then
29546 wx_cv_lib_gtk=none
29547 else
29548 wx_cv_cflags_gtk=$GTK_CFLAGS
29549 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29550 fi
29551
29552
29553 fi
29554
29555
29556 if test "$gtk_version_cached" = 1; then
29557 { $as_echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29558 $as_echo "$wx_cv_lib_gtk" >&6; }
29559 fi
29560
29561 case "$wx_cv_lib_gtk" in
29562 2.0) WXGTK2=1
29563 TOOLKIT_VERSION=2
29564 ;;
29565 1.2.7) WXGTK127=1
29566 WXGTK12=1
29567 ;;
29568 1.2.3) WXGTK12=1
29569 ;;
29570 *) { { $as_echo "$as_me:$LINENO: error:
29571 The development files for GTK+ were not found. For GTK+ 2, please
29572 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29573 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29574 and that the version is 1.2.3 or above. Also check that the
29575 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29576 --libs' are in the LD_LIBRARY_PATH or equivalent.
29577 " >&5
29578 $as_echo "$as_me: error:
29579 The development files for GTK+ were not found. For GTK+ 2, please
29580 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29581 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29582 and that the version is 1.2.3 or above. Also check that the
29583 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29584 --libs' are in the LD_LIBRARY_PATH or equivalent.
29585 " >&2;}
29586 { (exit 1); exit 1; }; }
29587 ;;
29588 esac
29589
29590 if test "$WXGTK2" = 1; then
29591 save_CFLAGS="$CFLAGS"
29592 save_LIBS="$LIBS"
29593 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29594 LIBS="$LIBS $wx_cv_libs_gtk"
29595
29596 { $as_echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
29597 $as_echo_n "checking if GTK+ is version >= 2.10... " >&6; }
29598 cat >conftest.$ac_ext <<_ACEOF
29599 /* confdefs.h. */
29600 _ACEOF
29601 cat confdefs.h >>conftest.$ac_ext
29602 cat >>conftest.$ac_ext <<_ACEOF
29603 /* end confdefs.h. */
29604
29605 #include <gtk/gtk.h>
29606
29607 int
29608 main ()
29609 {
29610
29611 #if !GTK_CHECK_VERSION(2,10,0)
29612 Not GTK+ 2.10
29613 #endif
29614
29615 ;
29616 return 0;
29617 }
29618 _ACEOF
29619 rm -f conftest.$ac_objext
29620 if { (ac_try="$ac_compile"
29621 case "(($ac_try" in
29622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29623 *) ac_try_echo=$ac_try;;
29624 esac
29625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29626 $as_echo "$ac_try_echo") >&5
29627 (eval "$ac_compile") 2>conftest.er1
29628 ac_status=$?
29629 grep -v '^ *+' conftest.er1 >conftest.err
29630 rm -f conftest.er1
29631 cat conftest.err >&5
29632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } && {
29634 test -z "$ac_c_werror_flag" ||
29635 test ! -s conftest.err
29636 } && test -s conftest.$ac_objext; then
29637
29638 cat >>confdefs.h <<\_ACEOF
29639 #define __WXGTK210__ 1
29640 _ACEOF
29641
29642 cat >>confdefs.h <<\_ACEOF
29643 #define __WXGTK26__ 1
29644 _ACEOF
29645
29646 { $as_echo "$as_me:$LINENO: result: yes" >&5
29647 $as_echo "yes" >&6; }
29648 ac_wxgtk210=1
29649
29650 else
29651 $as_echo "$as_me: failed program was:" >&5
29652 sed 's/^/| /' conftest.$ac_ext >&5
29653
29654
29655 { $as_echo "$as_me:$LINENO: result: no" >&5
29656 $as_echo "no" >&6; }
29657 ac_wxgtk210=0
29658
29659 fi
29660
29661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29662
29663 if test "$ac_wxgtk210" = 0; then
29664 { $as_echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29665 $as_echo_n "checking if GTK+ is version >= 2.6... " >&6; }
29666 cat >conftest.$ac_ext <<_ACEOF
29667 /* confdefs.h. */
29668 _ACEOF
29669 cat confdefs.h >>conftest.$ac_ext
29670 cat >>conftest.$ac_ext <<_ACEOF
29671 /* end confdefs.h. */
29672
29673 #include <gtk/gtk.h>
29674
29675 int
29676 main ()
29677 {
29678
29679 #if !GTK_CHECK_VERSION(2,6,0)
29680 Not GTK+ 2.6
29681 #endif
29682
29683 ;
29684 return 0;
29685 }
29686 _ACEOF
29687 rm -f conftest.$ac_objext
29688 if { (ac_try="$ac_compile"
29689 case "(($ac_try" in
29690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29691 *) ac_try_echo=$ac_try;;
29692 esac
29693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29694 $as_echo "$ac_try_echo") >&5
29695 (eval "$ac_compile") 2>conftest.er1
29696 ac_status=$?
29697 grep -v '^ *+' conftest.er1 >conftest.err
29698 rm -f conftest.er1
29699 cat conftest.err >&5
29700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701 (exit $ac_status); } && {
29702 test -z "$ac_c_werror_flag" ||
29703 test ! -s conftest.err
29704 } && test -s conftest.$ac_objext; then
29705
29706 cat >>confdefs.h <<\_ACEOF
29707 #define __WXGTK26__ 1
29708 _ACEOF
29709
29710 { $as_echo "$as_me:$LINENO: result: yes" >&5
29711 $as_echo "yes" >&6; }
29712 ac_wxgtk26=1
29713
29714 else
29715 $as_echo "$as_me: failed program was:" >&5
29716 sed 's/^/| /' conftest.$ac_ext >&5
29717
29718
29719 { $as_echo "$as_me:$LINENO: result: no" >&5
29720 $as_echo "no" >&6; }
29721 ac_wxgtk26=0
29722
29723 fi
29724
29725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29726 fi
29727
29728 CFLAGS="$save_CFLAGS"
29729 LIBS="$save_LIBS"
29730 else
29731 if test "$wxUSE_UNICODE" = "yes"; then
29732 { $as_echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29733 $as_echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29734 wxUSE_UNICODE=no
29735 fi
29736
29737 { $as_echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29738 $as_echo_n "checking for gdk_im_open in -lgdk... " >&6; }
29739 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29740 $as_echo_n "(cached) " >&6
29741 else
29742 ac_check_lib_save_LIBS=$LIBS
29743 LIBS="-lgdk $LIBS"
29744 cat >conftest.$ac_ext <<_ACEOF
29745 /* confdefs.h. */
29746 _ACEOF
29747 cat confdefs.h >>conftest.$ac_ext
29748 cat >>conftest.$ac_ext <<_ACEOF
29749 /* end confdefs.h. */
29750
29751 /* Override any GCC internal prototype to avoid an error.
29752 Use char because int might match the return type of a GCC
29753 builtin and then its argument prototype would still apply. */
29754 #ifdef __cplusplus
29755 extern "C"
29756 #endif
29757 char gdk_im_open ();
29758 int
29759 main ()
29760 {
29761 return gdk_im_open ();
29762 ;
29763 return 0;
29764 }
29765 _ACEOF
29766 rm -f conftest.$ac_objext conftest$ac_exeext
29767 if { (ac_try="$ac_link"
29768 case "(($ac_try" in
29769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770 *) ac_try_echo=$ac_try;;
29771 esac
29772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29773 $as_echo "$ac_try_echo") >&5
29774 (eval "$ac_link") 2>conftest.er1
29775 ac_status=$?
29776 grep -v '^ *+' conftest.er1 >conftest.err
29777 rm -f conftest.er1
29778 cat conftest.err >&5
29779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); } && {
29781 test -z "$ac_c_werror_flag" ||
29782 test ! -s conftest.err
29783 } && test -s conftest$ac_exeext && {
29784 test "$cross_compiling" = yes ||
29785 $as_test_x conftest$ac_exeext
29786 }; then
29787 ac_cv_lib_gdk_gdk_im_open=yes
29788 else
29789 $as_echo "$as_me: failed program was:" >&5
29790 sed 's/^/| /' conftest.$ac_ext >&5
29791
29792 ac_cv_lib_gdk_gdk_im_open=no
29793 fi
29794
29795 rm -rf conftest.dSYM
29796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29797 conftest$ac_exeext conftest.$ac_ext
29798 LIBS=$ac_check_lib_save_LIBS
29799 fi
29800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29801 $as_echo "$ac_cv_lib_gdk_gdk_im_open" >&6; }
29802 if test "x$ac_cv_lib_gdk_gdk_im_open" = x""yes; then
29803 cat >>confdefs.h <<\_ACEOF
29804 #define HAVE_XIM 1
29805 _ACEOF
29806
29807 fi
29808
29809
29810 if test "$USE_DARWIN" != 1; then
29811
29812 for ac_func in poll
29813 do
29814 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29815 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29816 $as_echo_n "checking for $ac_func... " >&6; }
29817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29818 $as_echo_n "(cached) " >&6
29819 else
29820 cat >conftest.$ac_ext <<_ACEOF
29821 /* confdefs.h. */
29822 _ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h. */
29826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29828 #define $ac_func innocuous_$ac_func
29829
29830 /* System header to define __stub macros and hopefully few prototypes,
29831 which can conflict with char $ac_func (); below.
29832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29833 <limits.h> exists even on freestanding compilers. */
29834
29835 #ifdef __STDC__
29836 # include <limits.h>
29837 #else
29838 # include <assert.h>
29839 #endif
29840
29841 #undef $ac_func
29842
29843 /* Override any GCC internal prototype to avoid an error.
29844 Use char because int might match the return type of a GCC
29845 builtin and then its argument prototype would still apply. */
29846 #ifdef __cplusplus
29847 extern "C"
29848 #endif
29849 char $ac_func ();
29850 /* The GNU C library defines this for functions which it implements
29851 to always fail with ENOSYS. Some functions are actually named
29852 something starting with __ and the normal name is an alias. */
29853 #if defined __stub_$ac_func || defined __stub___$ac_func
29854 choke me
29855 #endif
29856
29857 int
29858 main ()
29859 {
29860 return $ac_func ();
29861 ;
29862 return 0;
29863 }
29864 _ACEOF
29865 rm -f conftest.$ac_objext conftest$ac_exeext
29866 if { (ac_try="$ac_link"
29867 case "(($ac_try" in
29868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869 *) ac_try_echo=$ac_try;;
29870 esac
29871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29872 $as_echo "$ac_try_echo") >&5
29873 (eval "$ac_link") 2>conftest.er1
29874 ac_status=$?
29875 grep -v '^ *+' conftest.er1 >conftest.err
29876 rm -f conftest.er1
29877 cat conftest.err >&5
29878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); } && {
29880 test -z "$ac_c_werror_flag" ||
29881 test ! -s conftest.err
29882 } && test -s conftest$ac_exeext && {
29883 test "$cross_compiling" = yes ||
29884 $as_test_x conftest$ac_exeext
29885 }; then
29886 eval "$as_ac_var=yes"
29887 else
29888 $as_echo "$as_me: failed program was:" >&5
29889 sed 's/^/| /' conftest.$ac_ext >&5
29890
29891 eval "$as_ac_var=no"
29892 fi
29893
29894 rm -rf conftest.dSYM
29895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29896 conftest$ac_exeext conftest.$ac_ext
29897 fi
29898 ac_res=`eval 'as_val=${'$as_ac_var'}
29899 $as_echo "$as_val"'`
29900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29901 $as_echo "$ac_res" >&6; }
29902 as_val=`eval 'as_val=${'$as_ac_var'}
29903 $as_echo "$as_val"'`
29904 if test "x$as_val" = x""yes; then
29905 cat >>confdefs.h <<_ACEOF
29906 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29907 _ACEOF
29908
29909 fi
29910 done
29911
29912 fi
29913 fi
29914
29915 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29916 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29917
29918 AFMINSTALL=afminstall
29919 TOOLKIT=GTK
29920 GUIDIST=GTK_DIST
29921
29922 if test "$wxUSE_GPE" = "yes"; then
29923 { $as_echo "$as_me:$LINENO: checking for gpewidget library" >&5
29924 $as_echo_n "checking for gpewidget library... " >&6; }
29925
29926 ac_find_libraries=
29927 for ac_dir in $SEARCH_LIB;
29928 do
29929 for ac_extension in a so sl dylib dll.a; do
29930 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29931 ac_find_libraries=$ac_dir
29932 break 2
29933 fi
29934 done
29935 done
29936
29937 if test "$ac_find_libraries" != "" ; then
29938
29939 if test "$ac_find_libraries" = "default location"; then
29940 ac_path_to_link=""
29941 else
29942 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29943 result=$?
29944 if test $result = 0; then
29945 ac_path_to_link=""
29946 else
29947 ac_path_to_link=" -L$ac_find_libraries"
29948 fi
29949 fi
29950
29951 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29952 WXGPE=1
29953 { $as_echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29954 $as_echo "found in $ac_find_libraries" >&6; }
29955 else
29956 { $as_echo "$as_me:$LINENO: result: not found" >&5
29957 $as_echo "not found" >&6; }
29958 fi
29959
29960 fi
29961 fi
29962
29963 if test "$wxUSE_MGL" = 1; then
29964 { $as_echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29965 $as_echo_n "checking for SciTech MGL library... " >&6; }
29966 if test "x$MGL_ROOT" = x ; then
29967 { $as_echo "$as_me:$LINENO: result: not found" >&5
29968 $as_echo "not found" >&6; }
29969 { { $as_echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29970 $as_echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29971 { (exit 1); exit 1; }; }
29972 else
29973 { $as_echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29974 $as_echo "$MGL_ROOT" >&6; }
29975 fi
29976
29977 { $as_echo "$as_me:$LINENO: checking for libmgl location" >&5
29978 $as_echo_n "checking for libmgl location... " >&6; }
29979 case "${host}" in
29980 *-*-linux* )
29981 if test "x$wxUSE_SHARED" = xyes ; then
29982 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29983 else
29984 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29985 fi
29986 ;;
29987 *-pc-msdosdjgpp )
29988 mgl_os_candidates="dos32/dj2"
29989 ;;
29990 *)
29991 { { $as_echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29992 $as_echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29993 { (exit 1); exit 1; }; }
29994 esac
29995
29996 mgl_lib_type=""
29997 mgl_os=""
29998
29999 for mgl_os_i in $mgl_os_candidates ; do
30000 if test "x$mgl_os" = x ; then
30001 if test "$wxUSE_DEBUG_FLAG" = yes ; then
30002 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
30003 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
30004 mgl_lib_type=debug
30005 mgl_os=$mgl_os_i
30006 fi
30007 fi
30008 if test "x$mgl_lib_type" = x ; then
30009 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
30010 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
30011 mgl_lib_type=release
30012 mgl_os=$mgl_os_i
30013 fi
30014 fi
30015 fi
30016 done
30017
30018 if test "x$mgl_os" = x ; then
30019 { $as_echo "$as_me:$LINENO: result: not found" >&5
30020 $as_echo "not found" >&6; }
30021 { { $as_echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
30022 $as_echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
30023 { (exit 1); exit 1; }; }
30024 fi
30025 { $as_echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
30026 $as_echo "\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
30027
30028 wxUSE_UNIVERSAL="yes"
30029
30030 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
30031 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
30032
30033 AFMINSTALL=afminstall
30034 TOOLKIT=MGL
30035 GUIDIST=MGL_DIST
30036 fi
30037
30038 if test "$wxUSE_DFB" = 1; then
30039
30040
30041 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30042 if test -n "$ac_tool_prefix"; then
30043 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30044 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30046 $as_echo_n "checking for $ac_word... " >&6; }
30047 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30048 $as_echo_n "(cached) " >&6
30049 else
30050 case $PKG_CONFIG in
30051 [\\/]* | ?:[\\/]*)
30052 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30053 ;;
30054 *)
30055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30056 for as_dir in $PATH
30057 do
30058 IFS=$as_save_IFS
30059 test -z "$as_dir" && as_dir=.
30060 for ac_exec_ext in '' $ac_executable_extensions; do
30061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30062 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30064 break 2
30065 fi
30066 done
30067 done
30068 IFS=$as_save_IFS
30069
30070 ;;
30071 esac
30072 fi
30073 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30074 if test -n "$PKG_CONFIG"; then
30075 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30076 $as_echo "$PKG_CONFIG" >&6; }
30077 else
30078 { $as_echo "$as_me:$LINENO: result: no" >&5
30079 $as_echo "no" >&6; }
30080 fi
30081
30082
30083 fi
30084 if test -z "$ac_cv_path_PKG_CONFIG"; then
30085 ac_pt_PKG_CONFIG=$PKG_CONFIG
30086 # Extract the first word of "pkg-config", so it can be a program name with args.
30087 set dummy pkg-config; ac_word=$2
30088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30089 $as_echo_n "checking for $ac_word... " >&6; }
30090 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30091 $as_echo_n "(cached) " >&6
30092 else
30093 case $ac_pt_PKG_CONFIG in
30094 [\\/]* | ?:[\\/]*)
30095 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30096 ;;
30097 *)
30098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30099 for as_dir in $PATH
30100 do
30101 IFS=$as_save_IFS
30102 test -z "$as_dir" && as_dir=.
30103 for ac_exec_ext in '' $ac_executable_extensions; do
30104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30105 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30107 break 2
30108 fi
30109 done
30110 done
30111 IFS=$as_save_IFS
30112
30113 ;;
30114 esac
30115 fi
30116 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30117 if test -n "$ac_pt_PKG_CONFIG"; then
30118 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30119 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
30120 else
30121 { $as_echo "$as_me:$LINENO: result: no" >&5
30122 $as_echo "no" >&6; }
30123 fi
30124
30125 if test "x$ac_pt_PKG_CONFIG" = x; then
30126 PKG_CONFIG=""
30127 else
30128 case $cross_compiling:$ac_tool_warned in
30129 yes:)
30130 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
30131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30132 ac_tool_warned=yes ;;
30133 esac
30134 PKG_CONFIG=$ac_pt_PKG_CONFIG
30135 fi
30136 else
30137 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30138 fi
30139
30140 fi
30141 if test -n "$PKG_CONFIG"; then
30142 _pkg_min_version=0.9.0
30143 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30144 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
30145 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30146 { $as_echo "$as_me:$LINENO: result: yes" >&5
30147 $as_echo "yes" >&6; }
30148 else
30149 { $as_echo "$as_me:$LINENO: result: no" >&5
30150 $as_echo "no" >&6; }
30151 PKG_CONFIG=""
30152 fi
30153
30154 fi
30155
30156
30157 pkg_failed=no
30158 { $as_echo "$as_me:$LINENO: checking for DIRECTFB" >&5
30159 $as_echo_n "checking for DIRECTFB... " >&6; }
30160
30161 if test -n "$PKG_CONFIG"; then
30162 if test -n "$DIRECTFB_CFLAGS"; then
30163 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
30164 else
30165 if test -n "$PKG_CONFIG" && \
30166 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
30167 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
30168 ac_status=$?
30169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170 (exit $ac_status); }; then
30171 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
30172 else
30173 pkg_failed=yes
30174 fi
30175 fi
30176 else
30177 pkg_failed=untried
30178 fi
30179 if test -n "$PKG_CONFIG"; then
30180 if test -n "$DIRECTFB_LIBS"; then
30181 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
30182 else
30183 if test -n "$PKG_CONFIG" && \
30184 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
30185 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
30186 ac_status=$?
30187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); }; then
30189 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
30190 else
30191 pkg_failed=yes
30192 fi
30193 fi
30194 else
30195 pkg_failed=untried
30196 fi
30197
30198
30199
30200 if test $pkg_failed = yes; then
30201
30202 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30203 _pkg_short_errors_supported=yes
30204 else
30205 _pkg_short_errors_supported=no
30206 fi
30207 if test $_pkg_short_errors_supported = yes; then
30208 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
30209 else
30210 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
30211 fi
30212 # Put the nasty error message in config.log where it belongs
30213 echo "$DIRECTFB_PKG_ERRORS" >&5
30214
30215
30216 { { $as_echo "$as_me:$LINENO: error: DirectFB not found." >&5
30217 $as_echo "$as_me: error: DirectFB not found." >&2;}
30218 { (exit 1); exit 1; }; }
30219
30220
30221 elif test $pkg_failed = untried; then
30222
30223 { { $as_echo "$as_me:$LINENO: error: DirectFB not found." >&5
30224 $as_echo "$as_me: error: DirectFB not found." >&2;}
30225 { (exit 1); exit 1; }; }
30226
30227
30228 else
30229 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
30230 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
30231 { $as_echo "$as_me:$LINENO: result: yes" >&5
30232 $as_echo "yes" >&6; }
30233
30234 wxUSE_UNIVERSAL="yes"
30235 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
30236 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
30237 TOOLKIT=DFB
30238 GUIDIST=DFB_DIST
30239
30240 fi
30241 fi
30242
30243 if test "$wxUSE_MICROWIN" = 1; then
30244 { $as_echo "$as_me:$LINENO: checking for MicroWindows" >&5
30245 $as_echo_n "checking for MicroWindows... " >&6; }
30246 if test "x$MICROWINDOWS" = x ; then
30247 { $as_echo "$as_me:$LINENO: result: not found" >&5
30248 $as_echo "not found" >&6; }
30249 { { $as_echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
30250 $as_echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
30251 { (exit 1); exit 1; }; }
30252 else
30253 { $as_echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
30254 $as_echo "$MICROWINDOWS" >&6; }
30255 fi
30256
30257 if test -f $MICROWINDOWS/lib/libmwin.a; then
30258 { $as_echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
30259 $as_echo "MicroWindows' libraries found." >&6; }
30260 else
30261 { { $as_echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
30262 $as_echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
30263 { (exit 1); exit 1; }; }
30264 fi
30265
30266 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
30267 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
30268
30269 wxUSE_UNIVERSAL="yes"
30270
30271 AFMINSTALL=afminstall
30272 TOOLKIT=MICROWIN
30273 GUIDIST=MICROWIN_DIST
30274
30275 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
30276 fi
30277
30278 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30279 { $as_echo "$as_me:$LINENO: checking for X" >&5
30280 $as_echo_n "checking for X... " >&6; }
30281
30282
30283 # Check whether --with-x was given.
30284 if test "${with_x+set}" = set; then
30285 withval=$with_x;
30286 fi
30287
30288 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30289 if test "x$with_x" = xno; then
30290 # The user explicitly disabled X.
30291 have_x=disabled
30292 else
30293 case $x_includes,$x_libraries in #(
30294 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
30295 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
30296 { (exit 1); exit 1; }; };; #(
30297 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30298 $as_echo_n "(cached) " >&6
30299 else
30300 # One or both of the vars are not set, and there is no cached value.
30301 ac_x_includes=no ac_x_libraries=no
30302 rm -f -r conftest.dir
30303 if mkdir conftest.dir; then
30304 cd conftest.dir
30305 cat >Imakefile <<'_ACEOF'
30306 incroot:
30307 @echo incroot='${INCROOT}'
30308 usrlibdir:
30309 @echo usrlibdir='${USRLIBDIR}'
30310 libdir:
30311 @echo libdir='${LIBDIR}'
30312 _ACEOF
30313 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30314 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30315 for ac_var in incroot usrlibdir libdir; do
30316 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30317 done
30318 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30319 for ac_extension in a so sl dylib la dll; do
30320 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30321 test -f "$ac_im_libdir/libX11.$ac_extension"; then
30322 ac_im_usrlibdir=$ac_im_libdir; break
30323 fi
30324 done
30325 # Screen out bogus values from the imake configuration. They are
30326 # bogus both because they are the default anyway, and because
30327 # using them would break gcc on systems where it needs fixed includes.
30328 case $ac_im_incroot in
30329 /usr/include) ac_x_includes= ;;
30330 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30331 esac
30332 case $ac_im_usrlibdir in
30333 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
30334 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30335 esac
30336 fi
30337 cd ..
30338 rm -f -r conftest.dir
30339 fi
30340
30341 # Standard set of common directories for X headers.
30342 # Check X11 before X11Rn because it is often a symlink to the current release.
30343 ac_x_header_dirs='
30344 /usr/X11/include
30345 /usr/X11R6/include
30346 /usr/X11R5/include
30347 /usr/X11R4/include
30348
30349 /usr/include/X11
30350 /usr/include/X11R6
30351 /usr/include/X11R5
30352 /usr/include/X11R4
30353
30354 /usr/local/X11/include
30355 /usr/local/X11R6/include
30356 /usr/local/X11R5/include
30357 /usr/local/X11R4/include
30358
30359 /usr/local/include/X11
30360 /usr/local/include/X11R6
30361 /usr/local/include/X11R5
30362 /usr/local/include/X11R4
30363
30364 /usr/X386/include
30365 /usr/x386/include
30366 /usr/XFree86/include/X11
30367
30368 /usr/include
30369 /usr/local/include
30370 /usr/unsupported/include
30371 /usr/athena/include
30372 /usr/local/x11r5/include
30373 /usr/lpp/Xamples/include
30374
30375 /usr/openwin/include
30376 /usr/openwin/share/include'
30377
30378 if test "$ac_x_includes" = no; then
30379 # Guess where to find include files, by looking for Xlib.h.
30380 # First, try using that file with no special directory specified.
30381 cat >conftest.$ac_ext <<_ACEOF
30382 /* confdefs.h. */
30383 _ACEOF
30384 cat confdefs.h >>conftest.$ac_ext
30385 cat >>conftest.$ac_ext <<_ACEOF
30386 /* end confdefs.h. */
30387 #include <X11/Xlib.h>
30388 _ACEOF
30389 if { (ac_try="$ac_cpp conftest.$ac_ext"
30390 case "(($ac_try" in
30391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30392 *) ac_try_echo=$ac_try;;
30393 esac
30394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30395 $as_echo "$ac_try_echo") >&5
30396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30397 ac_status=$?
30398 grep -v '^ *+' conftest.er1 >conftest.err
30399 rm -f conftest.er1
30400 cat conftest.err >&5
30401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30402 (exit $ac_status); } >/dev/null && {
30403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30404 test ! -s conftest.err
30405 }; then
30406 # We can compile using X headers with no special include directory.
30407 ac_x_includes=
30408 else
30409 $as_echo "$as_me: failed program was:" >&5
30410 sed 's/^/| /' conftest.$ac_ext >&5
30411
30412 for ac_dir in $ac_x_header_dirs; do
30413 if test -r "$ac_dir/X11/Xlib.h"; then
30414 ac_x_includes=$ac_dir
30415 break
30416 fi
30417 done
30418 fi
30419
30420 rm -f conftest.err conftest.$ac_ext
30421 fi # $ac_x_includes = no
30422
30423 if test "$ac_x_libraries" = no; then
30424 # Check for the libraries.
30425 # See if we find them without any special options.
30426 # Don't add to $LIBS permanently.
30427 ac_save_LIBS=$LIBS
30428 LIBS="-lX11 $LIBS"
30429 cat >conftest.$ac_ext <<_ACEOF
30430 /* confdefs.h. */
30431 _ACEOF
30432 cat confdefs.h >>conftest.$ac_ext
30433 cat >>conftest.$ac_ext <<_ACEOF
30434 /* end confdefs.h. */
30435 #include <X11/Xlib.h>
30436 int
30437 main ()
30438 {
30439 XrmInitialize ()
30440 ;
30441 return 0;
30442 }
30443 _ACEOF
30444 rm -f conftest.$ac_objext conftest$ac_exeext
30445 if { (ac_try="$ac_link"
30446 case "(($ac_try" in
30447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30448 *) ac_try_echo=$ac_try;;
30449 esac
30450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30451 $as_echo "$ac_try_echo") >&5
30452 (eval "$ac_link") 2>conftest.er1
30453 ac_status=$?
30454 grep -v '^ *+' conftest.er1 >conftest.err
30455 rm -f conftest.er1
30456 cat conftest.err >&5
30457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); } && {
30459 test -z "$ac_c_werror_flag" ||
30460 test ! -s conftest.err
30461 } && test -s conftest$ac_exeext && {
30462 test "$cross_compiling" = yes ||
30463 $as_test_x conftest$ac_exeext
30464 }; then
30465 LIBS=$ac_save_LIBS
30466 # We can link X programs with no special library path.
30467 ac_x_libraries=
30468 else
30469 $as_echo "$as_me: failed program was:" >&5
30470 sed 's/^/| /' conftest.$ac_ext >&5
30471
30472 LIBS=$ac_save_LIBS
30473 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30474 do
30475 # Don't even attempt the hair of trying to link an X program!
30476 for ac_extension in a so sl dylib la dll; do
30477 if test -r "$ac_dir/libX11.$ac_extension"; then
30478 ac_x_libraries=$ac_dir
30479 break 2
30480 fi
30481 done
30482 done
30483 fi
30484
30485 rm -rf conftest.dSYM
30486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30487 conftest$ac_exeext conftest.$ac_ext
30488 fi # $ac_x_libraries = no
30489
30490 case $ac_x_includes,$ac_x_libraries in #(
30491 no,* | *,no | *\'*)
30492 # Didn't find X, or a directory has "'" in its name.
30493 ac_cv_have_x="have_x=no";; #(
30494 *)
30495 # Record where we found X for the cache.
30496 ac_cv_have_x="have_x=yes\
30497 ac_x_includes='$ac_x_includes'\
30498 ac_x_libraries='$ac_x_libraries'"
30499 esac
30500 fi
30501 ;; #(
30502 *) have_x=yes;;
30503 esac
30504 eval "$ac_cv_have_x"
30505 fi # $with_x != no
30506
30507 if test "$have_x" != yes; then
30508 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
30509 $as_echo "$have_x" >&6; }
30510 no_x=yes
30511 else
30512 # If each of the values was on the command line, it overrides each guess.
30513 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30514 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30515 # Update the cache value to reflect the command line values.
30516 ac_cv_have_x="have_x=yes\
30517 ac_x_includes='$x_includes'\
30518 ac_x_libraries='$x_libraries'"
30519 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30520 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
30521 fi
30522
30523 if test "$no_x" = yes; then
30524 # Not all programs may use this symbol, but it does not hurt to define it.
30525
30526 cat >>confdefs.h <<\_ACEOF
30527 #define X_DISPLAY_MISSING 1
30528 _ACEOF
30529
30530 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30531 else
30532 if test -n "$x_includes"; then
30533 X_CFLAGS="$X_CFLAGS -I$x_includes"
30534 fi
30535
30536 # It would also be nice to do this for all -L options, not just this one.
30537 if test -n "$x_libraries"; then
30538 X_LIBS="$X_LIBS -L$x_libraries"
30539 # For Solaris; some versions of Sun CC require a space after -R and
30540 # others require no space. Words are not sufficient . . . .
30541 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30542 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
30543 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30544 ac_xsave_c_werror_flag=$ac_c_werror_flag
30545 ac_c_werror_flag=yes
30546 cat >conftest.$ac_ext <<_ACEOF
30547 /* confdefs.h. */
30548 _ACEOF
30549 cat confdefs.h >>conftest.$ac_ext
30550 cat >>conftest.$ac_ext <<_ACEOF
30551 /* end confdefs.h. */
30552
30553 int
30554 main ()
30555 {
30556
30557 ;
30558 return 0;
30559 }
30560 _ACEOF
30561 rm -f conftest.$ac_objext conftest$ac_exeext
30562 if { (ac_try="$ac_link"
30563 case "(($ac_try" in
30564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30565 *) ac_try_echo=$ac_try;;
30566 esac
30567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30568 $as_echo "$ac_try_echo") >&5
30569 (eval "$ac_link") 2>conftest.er1
30570 ac_status=$?
30571 grep -v '^ *+' conftest.er1 >conftest.err
30572 rm -f conftest.er1
30573 cat conftest.err >&5
30574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); } && {
30576 test -z "$ac_c_werror_flag" ||
30577 test ! -s conftest.err
30578 } && test -s conftest$ac_exeext && {
30579 test "$cross_compiling" = yes ||
30580 $as_test_x conftest$ac_exeext
30581 }; then
30582 { $as_echo "$as_me:$LINENO: result: no" >&5
30583 $as_echo "no" >&6; }
30584 X_LIBS="$X_LIBS -R$x_libraries"
30585 else
30586 $as_echo "$as_me: failed program was:" >&5
30587 sed 's/^/| /' conftest.$ac_ext >&5
30588
30589 LIBS="$ac_xsave_LIBS -R $x_libraries"
30590 cat >conftest.$ac_ext <<_ACEOF
30591 /* confdefs.h. */
30592 _ACEOF
30593 cat confdefs.h >>conftest.$ac_ext
30594 cat >>conftest.$ac_ext <<_ACEOF
30595 /* end confdefs.h. */
30596
30597 int
30598 main ()
30599 {
30600
30601 ;
30602 return 0;
30603 }
30604 _ACEOF
30605 rm -f conftest.$ac_objext conftest$ac_exeext
30606 if { (ac_try="$ac_link"
30607 case "(($ac_try" in
30608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30609 *) ac_try_echo=$ac_try;;
30610 esac
30611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30612 $as_echo "$ac_try_echo") >&5
30613 (eval "$ac_link") 2>conftest.er1
30614 ac_status=$?
30615 grep -v '^ *+' conftest.er1 >conftest.err
30616 rm -f conftest.er1
30617 cat conftest.err >&5
30618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619 (exit $ac_status); } && {
30620 test -z "$ac_c_werror_flag" ||
30621 test ! -s conftest.err
30622 } && test -s conftest$ac_exeext && {
30623 test "$cross_compiling" = yes ||
30624 $as_test_x conftest$ac_exeext
30625 }; then
30626 { $as_echo "$as_me:$LINENO: result: yes" >&5
30627 $as_echo "yes" >&6; }
30628 X_LIBS="$X_LIBS -R $x_libraries"
30629 else
30630 $as_echo "$as_me: failed program was:" >&5
30631 sed 's/^/| /' conftest.$ac_ext >&5
30632
30633 { $as_echo "$as_me:$LINENO: result: neither works" >&5
30634 $as_echo "neither works" >&6; }
30635 fi
30636
30637 rm -rf conftest.dSYM
30638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30639 conftest$ac_exeext conftest.$ac_ext
30640 fi
30641
30642 rm -rf conftest.dSYM
30643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30644 conftest$ac_exeext conftest.$ac_ext
30645 ac_c_werror_flag=$ac_xsave_c_werror_flag
30646 LIBS=$ac_xsave_LIBS
30647 fi
30648
30649 # Check for system-dependent libraries X programs must link with.
30650 # Do this before checking for the system-independent R6 libraries
30651 # (-lICE), since we may need -lsocket or whatever for X linking.
30652
30653 if test "$ISC" = yes; then
30654 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30655 else
30656 # Martyn Johnson says this is needed for Ultrix, if the X
30657 # libraries were built with DECnet support. And Karl Berry says
30658 # the Alpha needs dnet_stub (dnet does not exist).
30659 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30660 cat >conftest.$ac_ext <<_ACEOF
30661 /* confdefs.h. */
30662 _ACEOF
30663 cat confdefs.h >>conftest.$ac_ext
30664 cat >>conftest.$ac_ext <<_ACEOF
30665 /* end confdefs.h. */
30666
30667 /* Override any GCC internal prototype to avoid an error.
30668 Use char because int might match the return type of a GCC
30669 builtin and then its argument prototype would still apply. */
30670 #ifdef __cplusplus
30671 extern "C"
30672 #endif
30673 char XOpenDisplay ();
30674 int
30675 main ()
30676 {
30677 return XOpenDisplay ();
30678 ;
30679 return 0;
30680 }
30681 _ACEOF
30682 rm -f conftest.$ac_objext conftest$ac_exeext
30683 if { (ac_try="$ac_link"
30684 case "(($ac_try" in
30685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30686 *) ac_try_echo=$ac_try;;
30687 esac
30688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30689 $as_echo "$ac_try_echo") >&5
30690 (eval "$ac_link") 2>conftest.er1
30691 ac_status=$?
30692 grep -v '^ *+' conftest.er1 >conftest.err
30693 rm -f conftest.er1
30694 cat conftest.err >&5
30695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696 (exit $ac_status); } && {
30697 test -z "$ac_c_werror_flag" ||
30698 test ! -s conftest.err
30699 } && test -s conftest$ac_exeext && {
30700 test "$cross_compiling" = yes ||
30701 $as_test_x conftest$ac_exeext
30702 }; then
30703 :
30704 else
30705 $as_echo "$as_me: failed program was:" >&5
30706 sed 's/^/| /' conftest.$ac_ext >&5
30707
30708 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30709 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
30710 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30711 $as_echo_n "(cached) " >&6
30712 else
30713 ac_check_lib_save_LIBS=$LIBS
30714 LIBS="-ldnet $LIBS"
30715 cat >conftest.$ac_ext <<_ACEOF
30716 /* confdefs.h. */
30717 _ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h. */
30721
30722 /* Override any GCC internal prototype to avoid an error.
30723 Use char because int might match the return type of a GCC
30724 builtin and then its argument prototype would still apply. */
30725 #ifdef __cplusplus
30726 extern "C"
30727 #endif
30728 char dnet_ntoa ();
30729 int
30730 main ()
30731 {
30732 return dnet_ntoa ();
30733 ;
30734 return 0;
30735 }
30736 _ACEOF
30737 rm -f conftest.$ac_objext conftest$ac_exeext
30738 if { (ac_try="$ac_link"
30739 case "(($ac_try" in
30740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741 *) ac_try_echo=$ac_try;;
30742 esac
30743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30744 $as_echo "$ac_try_echo") >&5
30745 (eval "$ac_link") 2>conftest.er1
30746 ac_status=$?
30747 grep -v '^ *+' conftest.er1 >conftest.err
30748 rm -f conftest.er1
30749 cat conftest.err >&5
30750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751 (exit $ac_status); } && {
30752 test -z "$ac_c_werror_flag" ||
30753 test ! -s conftest.err
30754 } && test -s conftest$ac_exeext && {
30755 test "$cross_compiling" = yes ||
30756 $as_test_x conftest$ac_exeext
30757 }; then
30758 ac_cv_lib_dnet_dnet_ntoa=yes
30759 else
30760 $as_echo "$as_me: failed program was:" >&5
30761 sed 's/^/| /' conftest.$ac_ext >&5
30762
30763 ac_cv_lib_dnet_dnet_ntoa=no
30764 fi
30765
30766 rm -rf conftest.dSYM
30767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30768 conftest$ac_exeext conftest.$ac_ext
30769 LIBS=$ac_check_lib_save_LIBS
30770 fi
30771 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30772 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30773 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
30774 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30775 fi
30776
30777 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30778 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30779 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30780 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30781 $as_echo_n "(cached) " >&6
30782 else
30783 ac_check_lib_save_LIBS=$LIBS
30784 LIBS="-ldnet_stub $LIBS"
30785 cat >conftest.$ac_ext <<_ACEOF
30786 /* confdefs.h. */
30787 _ACEOF
30788 cat confdefs.h >>conftest.$ac_ext
30789 cat >>conftest.$ac_ext <<_ACEOF
30790 /* end confdefs.h. */
30791
30792 /* Override any GCC internal prototype to avoid an error.
30793 Use char because int might match the return type of a GCC
30794 builtin and then its argument prototype would still apply. */
30795 #ifdef __cplusplus
30796 extern "C"
30797 #endif
30798 char dnet_ntoa ();
30799 int
30800 main ()
30801 {
30802 return dnet_ntoa ();
30803 ;
30804 return 0;
30805 }
30806 _ACEOF
30807 rm -f conftest.$ac_objext conftest$ac_exeext
30808 if { (ac_try="$ac_link"
30809 case "(($ac_try" in
30810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811 *) ac_try_echo=$ac_try;;
30812 esac
30813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30814 $as_echo "$ac_try_echo") >&5
30815 (eval "$ac_link") 2>conftest.er1
30816 ac_status=$?
30817 grep -v '^ *+' conftest.er1 >conftest.err
30818 rm -f conftest.er1
30819 cat conftest.err >&5
30820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821 (exit $ac_status); } && {
30822 test -z "$ac_c_werror_flag" ||
30823 test ! -s conftest.err
30824 } && test -s conftest$ac_exeext && {
30825 test "$cross_compiling" = yes ||
30826 $as_test_x conftest$ac_exeext
30827 }; then
30828 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30829 else
30830 $as_echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30832
30833 ac_cv_lib_dnet_stub_dnet_ntoa=no
30834 fi
30835
30836 rm -rf conftest.dSYM
30837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30838 conftest$ac_exeext conftest.$ac_ext
30839 LIBS=$ac_check_lib_save_LIBS
30840 fi
30841 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30842 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30843 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
30844 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30845 fi
30846
30847 fi
30848 fi
30849
30850 rm -rf conftest.dSYM
30851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30852 conftest$ac_exeext conftest.$ac_ext
30853 LIBS="$ac_xsave_LIBS"
30854
30855 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30856 # to get the SysV transport functions.
30857 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30858 # needs -lnsl.
30859 # The nsl library prevents programs from opening the X display
30860 # on Irix 5.2, according to T.E. Dickey.
30861 # The functions gethostbyname, getservbyname, and inet_addr are
30862 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30863 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
30864 $as_echo_n "checking for gethostbyname... " >&6; }
30865 if test "${ac_cv_func_gethostbyname+set}" = set; then
30866 $as_echo_n "(cached) " >&6
30867 else
30868 cat >conftest.$ac_ext <<_ACEOF
30869 /* confdefs.h. */
30870 _ACEOF
30871 cat confdefs.h >>conftest.$ac_ext
30872 cat >>conftest.$ac_ext <<_ACEOF
30873 /* end confdefs.h. */
30874 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30876 #define gethostbyname innocuous_gethostbyname
30877
30878 /* System header to define __stub macros and hopefully few prototypes,
30879 which can conflict with char gethostbyname (); below.
30880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30881 <limits.h> exists even on freestanding compilers. */
30882
30883 #ifdef __STDC__
30884 # include <limits.h>
30885 #else
30886 # include <assert.h>
30887 #endif
30888
30889 #undef gethostbyname
30890
30891 /* Override any GCC internal prototype to avoid an error.
30892 Use char because int might match the return type of a GCC
30893 builtin and then its argument prototype would still apply. */
30894 #ifdef __cplusplus
30895 extern "C"
30896 #endif
30897 char gethostbyname ();
30898 /* The GNU C library defines this for functions which it implements
30899 to always fail with ENOSYS. Some functions are actually named
30900 something starting with __ and the normal name is an alias. */
30901 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30902 choke me
30903 #endif
30904
30905 int
30906 main ()
30907 {
30908 return gethostbyname ();
30909 ;
30910 return 0;
30911 }
30912 _ACEOF
30913 rm -f conftest.$ac_objext conftest$ac_exeext
30914 if { (ac_try="$ac_link"
30915 case "(($ac_try" in
30916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30917 *) ac_try_echo=$ac_try;;
30918 esac
30919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30920 $as_echo "$ac_try_echo") >&5
30921 (eval "$ac_link") 2>conftest.er1
30922 ac_status=$?
30923 grep -v '^ *+' conftest.er1 >conftest.err
30924 rm -f conftest.er1
30925 cat conftest.err >&5
30926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927 (exit $ac_status); } && {
30928 test -z "$ac_c_werror_flag" ||
30929 test ! -s conftest.err
30930 } && test -s conftest$ac_exeext && {
30931 test "$cross_compiling" = yes ||
30932 $as_test_x conftest$ac_exeext
30933 }; then
30934 ac_cv_func_gethostbyname=yes
30935 else
30936 $as_echo "$as_me: failed program was:" >&5
30937 sed 's/^/| /' conftest.$ac_ext >&5
30938
30939 ac_cv_func_gethostbyname=no
30940 fi
30941
30942 rm -rf conftest.dSYM
30943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30944 conftest$ac_exeext conftest.$ac_ext
30945 fi
30946 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30947 $as_echo "$ac_cv_func_gethostbyname" >&6; }
30948
30949 if test $ac_cv_func_gethostbyname = no; then
30950 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30951 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
30952 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30953 $as_echo_n "(cached) " >&6
30954 else
30955 ac_check_lib_save_LIBS=$LIBS
30956 LIBS="-lnsl $LIBS"
30957 cat >conftest.$ac_ext <<_ACEOF
30958 /* confdefs.h. */
30959 _ACEOF
30960 cat confdefs.h >>conftest.$ac_ext
30961 cat >>conftest.$ac_ext <<_ACEOF
30962 /* end confdefs.h. */
30963
30964 /* Override any GCC internal prototype to avoid an error.
30965 Use char because int might match the return type of a GCC
30966 builtin and then its argument prototype would still apply. */
30967 #ifdef __cplusplus
30968 extern "C"
30969 #endif
30970 char gethostbyname ();
30971 int
30972 main ()
30973 {
30974 return gethostbyname ();
30975 ;
30976 return 0;
30977 }
30978 _ACEOF
30979 rm -f conftest.$ac_objext conftest$ac_exeext
30980 if { (ac_try="$ac_link"
30981 case "(($ac_try" in
30982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30983 *) ac_try_echo=$ac_try;;
30984 esac
30985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30986 $as_echo "$ac_try_echo") >&5
30987 (eval "$ac_link") 2>conftest.er1
30988 ac_status=$?
30989 grep -v '^ *+' conftest.er1 >conftest.err
30990 rm -f conftest.er1
30991 cat conftest.err >&5
30992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); } && {
30994 test -z "$ac_c_werror_flag" ||
30995 test ! -s conftest.err
30996 } && test -s conftest$ac_exeext && {
30997 test "$cross_compiling" = yes ||
30998 $as_test_x conftest$ac_exeext
30999 }; then
31000 ac_cv_lib_nsl_gethostbyname=yes
31001 else
31002 $as_echo "$as_me: failed program was:" >&5
31003 sed 's/^/| /' conftest.$ac_ext >&5
31004
31005 ac_cv_lib_nsl_gethostbyname=no
31006 fi
31007
31008 rm -rf conftest.dSYM
31009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31010 conftest$ac_exeext conftest.$ac_ext
31011 LIBS=$ac_check_lib_save_LIBS
31012 fi
31013 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
31014 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
31015 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
31016 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
31017 fi
31018
31019 if test $ac_cv_lib_nsl_gethostbyname = no; then
31020 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
31021 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
31022 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
31023 $as_echo_n "(cached) " >&6
31024 else
31025 ac_check_lib_save_LIBS=$LIBS
31026 LIBS="-lbsd $LIBS"
31027 cat >conftest.$ac_ext <<_ACEOF
31028 /* confdefs.h. */
31029 _ACEOF
31030 cat confdefs.h >>conftest.$ac_ext
31031 cat >>conftest.$ac_ext <<_ACEOF
31032 /* end confdefs.h. */
31033
31034 /* Override any GCC internal prototype to avoid an error.
31035 Use char because int might match the return type of a GCC
31036 builtin and then its argument prototype would still apply. */
31037 #ifdef __cplusplus
31038 extern "C"
31039 #endif
31040 char gethostbyname ();
31041 int
31042 main ()
31043 {
31044 return gethostbyname ();
31045 ;
31046 return 0;
31047 }
31048 _ACEOF
31049 rm -f conftest.$ac_objext conftest$ac_exeext
31050 if { (ac_try="$ac_link"
31051 case "(($ac_try" in
31052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31053 *) ac_try_echo=$ac_try;;
31054 esac
31055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31056 $as_echo "$ac_try_echo") >&5
31057 (eval "$ac_link") 2>conftest.er1
31058 ac_status=$?
31059 grep -v '^ *+' conftest.er1 >conftest.err
31060 rm -f conftest.er1
31061 cat conftest.err >&5
31062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); } && {
31064 test -z "$ac_c_werror_flag" ||
31065 test ! -s conftest.err
31066 } && test -s conftest$ac_exeext && {
31067 test "$cross_compiling" = yes ||
31068 $as_test_x conftest$ac_exeext
31069 }; then
31070 ac_cv_lib_bsd_gethostbyname=yes
31071 else
31072 $as_echo "$as_me: failed program was:" >&5
31073 sed 's/^/| /' conftest.$ac_ext >&5
31074
31075 ac_cv_lib_bsd_gethostbyname=no
31076 fi
31077
31078 rm -rf conftest.dSYM
31079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31080 conftest$ac_exeext conftest.$ac_ext
31081 LIBS=$ac_check_lib_save_LIBS
31082 fi
31083 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
31084 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
31085 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
31086 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
31087 fi
31088
31089 fi
31090 fi
31091
31092 # lieder@skyler.mavd.honeywell.com says without -lsocket,
31093 # socket/setsockopt and other routines are undefined under SCO ODT
31094 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
31095 # on later versions), says Simon Leinen: it contains gethostby*
31096 # variants that don't use the name server (or something). -lsocket
31097 # must be given before -lnsl if both are needed. We assume that
31098 # if connect needs -lnsl, so does gethostbyname.
31099 { $as_echo "$as_me:$LINENO: checking for connect" >&5
31100 $as_echo_n "checking for connect... " >&6; }
31101 if test "${ac_cv_func_connect+set}" = set; then
31102 $as_echo_n "(cached) " >&6
31103 else
31104 cat >conftest.$ac_ext <<_ACEOF
31105 /* confdefs.h. */
31106 _ACEOF
31107 cat confdefs.h >>conftest.$ac_ext
31108 cat >>conftest.$ac_ext <<_ACEOF
31109 /* end confdefs.h. */
31110 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
31111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31112 #define connect innocuous_connect
31113
31114 /* System header to define __stub macros and hopefully few prototypes,
31115 which can conflict with char connect (); below.
31116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31117 <limits.h> exists even on freestanding compilers. */
31118
31119 #ifdef __STDC__
31120 # include <limits.h>
31121 #else
31122 # include <assert.h>
31123 #endif
31124
31125 #undef connect
31126
31127 /* Override any GCC internal prototype to avoid an error.
31128 Use char because int might match the return type of a GCC
31129 builtin and then its argument prototype would still apply. */
31130 #ifdef __cplusplus
31131 extern "C"
31132 #endif
31133 char connect ();
31134 /* The GNU C library defines this for functions which it implements
31135 to always fail with ENOSYS. Some functions are actually named
31136 something starting with __ and the normal name is an alias. */
31137 #if defined __stub_connect || defined __stub___connect
31138 choke me
31139 #endif
31140
31141 int
31142 main ()
31143 {
31144 return connect ();
31145 ;
31146 return 0;
31147 }
31148 _ACEOF
31149 rm -f conftest.$ac_objext conftest$ac_exeext
31150 if { (ac_try="$ac_link"
31151 case "(($ac_try" in
31152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153 *) ac_try_echo=$ac_try;;
31154 esac
31155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31156 $as_echo "$ac_try_echo") >&5
31157 (eval "$ac_link") 2>conftest.er1
31158 ac_status=$?
31159 grep -v '^ *+' conftest.er1 >conftest.err
31160 rm -f conftest.er1
31161 cat conftest.err >&5
31162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163 (exit $ac_status); } && {
31164 test -z "$ac_c_werror_flag" ||
31165 test ! -s conftest.err
31166 } && test -s conftest$ac_exeext && {
31167 test "$cross_compiling" = yes ||
31168 $as_test_x conftest$ac_exeext
31169 }; then
31170 ac_cv_func_connect=yes
31171 else
31172 $as_echo "$as_me: failed program was:" >&5
31173 sed 's/^/| /' conftest.$ac_ext >&5
31174
31175 ac_cv_func_connect=no
31176 fi
31177
31178 rm -rf conftest.dSYM
31179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31180 conftest$ac_exeext conftest.$ac_ext
31181 fi
31182 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
31183 $as_echo "$ac_cv_func_connect" >&6; }
31184
31185 if test $ac_cv_func_connect = no; then
31186 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
31187 $as_echo_n "checking for connect in -lsocket... " >&6; }
31188 if test "${ac_cv_lib_socket_connect+set}" = set; then
31189 $as_echo_n "(cached) " >&6
31190 else
31191 ac_check_lib_save_LIBS=$LIBS
31192 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31193 cat >conftest.$ac_ext <<_ACEOF
31194 /* confdefs.h. */
31195 _ACEOF
31196 cat confdefs.h >>conftest.$ac_ext
31197 cat >>conftest.$ac_ext <<_ACEOF
31198 /* end confdefs.h. */
31199
31200 /* Override any GCC internal prototype to avoid an error.
31201 Use char because int might match the return type of a GCC
31202 builtin and then its argument prototype would still apply. */
31203 #ifdef __cplusplus
31204 extern "C"
31205 #endif
31206 char connect ();
31207 int
31208 main ()
31209 {
31210 return connect ();
31211 ;
31212 return 0;
31213 }
31214 _ACEOF
31215 rm -f conftest.$ac_objext conftest$ac_exeext
31216 if { (ac_try="$ac_link"
31217 case "(($ac_try" in
31218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219 *) ac_try_echo=$ac_try;;
31220 esac
31221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31222 $as_echo "$ac_try_echo") >&5
31223 (eval "$ac_link") 2>conftest.er1
31224 ac_status=$?
31225 grep -v '^ *+' conftest.er1 >conftest.err
31226 rm -f conftest.er1
31227 cat conftest.err >&5
31228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); } && {
31230 test -z "$ac_c_werror_flag" ||
31231 test ! -s conftest.err
31232 } && test -s conftest$ac_exeext && {
31233 test "$cross_compiling" = yes ||
31234 $as_test_x conftest$ac_exeext
31235 }; then
31236 ac_cv_lib_socket_connect=yes
31237 else
31238 $as_echo "$as_me: failed program was:" >&5
31239 sed 's/^/| /' conftest.$ac_ext >&5
31240
31241 ac_cv_lib_socket_connect=no
31242 fi
31243
31244 rm -rf conftest.dSYM
31245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31246 conftest$ac_exeext conftest.$ac_ext
31247 LIBS=$ac_check_lib_save_LIBS
31248 fi
31249 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
31250 $as_echo "$ac_cv_lib_socket_connect" >&6; }
31251 if test "x$ac_cv_lib_socket_connect" = x""yes; then
31252 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31253 fi
31254
31255 fi
31256
31257 # Guillermo Gomez says -lposix is necessary on A/UX.
31258 { $as_echo "$as_me:$LINENO: checking for remove" >&5
31259 $as_echo_n "checking for remove... " >&6; }
31260 if test "${ac_cv_func_remove+set}" = set; then
31261 $as_echo_n "(cached) " >&6
31262 else
31263 cat >conftest.$ac_ext <<_ACEOF
31264 /* confdefs.h. */
31265 _ACEOF
31266 cat confdefs.h >>conftest.$ac_ext
31267 cat >>conftest.$ac_ext <<_ACEOF
31268 /* end confdefs.h. */
31269 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
31270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31271 #define remove innocuous_remove
31272
31273 /* System header to define __stub macros and hopefully few prototypes,
31274 which can conflict with char remove (); below.
31275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31276 <limits.h> exists even on freestanding compilers. */
31277
31278 #ifdef __STDC__
31279 # include <limits.h>
31280 #else
31281 # include <assert.h>
31282 #endif
31283
31284 #undef remove
31285
31286 /* Override any GCC internal prototype to avoid an error.
31287 Use char because int might match the return type of a GCC
31288 builtin and then its argument prototype would still apply. */
31289 #ifdef __cplusplus
31290 extern "C"
31291 #endif
31292 char remove ();
31293 /* The GNU C library defines this for functions which it implements
31294 to always fail with ENOSYS. Some functions are actually named
31295 something starting with __ and the normal name is an alias. */
31296 #if defined __stub_remove || defined __stub___remove
31297 choke me
31298 #endif
31299
31300 int
31301 main ()
31302 {
31303 return remove ();
31304 ;
31305 return 0;
31306 }
31307 _ACEOF
31308 rm -f conftest.$ac_objext conftest$ac_exeext
31309 if { (ac_try="$ac_link"
31310 case "(($ac_try" in
31311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312 *) ac_try_echo=$ac_try;;
31313 esac
31314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31315 $as_echo "$ac_try_echo") >&5
31316 (eval "$ac_link") 2>conftest.er1
31317 ac_status=$?
31318 grep -v '^ *+' conftest.er1 >conftest.err
31319 rm -f conftest.er1
31320 cat conftest.err >&5
31321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); } && {
31323 test -z "$ac_c_werror_flag" ||
31324 test ! -s conftest.err
31325 } && test -s conftest$ac_exeext && {
31326 test "$cross_compiling" = yes ||
31327 $as_test_x conftest$ac_exeext
31328 }; then
31329 ac_cv_func_remove=yes
31330 else
31331 $as_echo "$as_me: failed program was:" >&5
31332 sed 's/^/| /' conftest.$ac_ext >&5
31333
31334 ac_cv_func_remove=no
31335 fi
31336
31337 rm -rf conftest.dSYM
31338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31339 conftest$ac_exeext conftest.$ac_ext
31340 fi
31341 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31342 $as_echo "$ac_cv_func_remove" >&6; }
31343
31344 if test $ac_cv_func_remove = no; then
31345 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31346 $as_echo_n "checking for remove in -lposix... " >&6; }
31347 if test "${ac_cv_lib_posix_remove+set}" = set; then
31348 $as_echo_n "(cached) " >&6
31349 else
31350 ac_check_lib_save_LIBS=$LIBS
31351 LIBS="-lposix $LIBS"
31352 cat >conftest.$ac_ext <<_ACEOF
31353 /* confdefs.h. */
31354 _ACEOF
31355 cat confdefs.h >>conftest.$ac_ext
31356 cat >>conftest.$ac_ext <<_ACEOF
31357 /* end confdefs.h. */
31358
31359 /* Override any GCC internal prototype to avoid an error.
31360 Use char because int might match the return type of a GCC
31361 builtin and then its argument prototype would still apply. */
31362 #ifdef __cplusplus
31363 extern "C"
31364 #endif
31365 char remove ();
31366 int
31367 main ()
31368 {
31369 return remove ();
31370 ;
31371 return 0;
31372 }
31373 _ACEOF
31374 rm -f conftest.$ac_objext conftest$ac_exeext
31375 if { (ac_try="$ac_link"
31376 case "(($ac_try" in
31377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31378 *) ac_try_echo=$ac_try;;
31379 esac
31380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31381 $as_echo "$ac_try_echo") >&5
31382 (eval "$ac_link") 2>conftest.er1
31383 ac_status=$?
31384 grep -v '^ *+' conftest.er1 >conftest.err
31385 rm -f conftest.er1
31386 cat conftest.err >&5
31387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); } && {
31389 test -z "$ac_c_werror_flag" ||
31390 test ! -s conftest.err
31391 } && test -s conftest$ac_exeext && {
31392 test "$cross_compiling" = yes ||
31393 $as_test_x conftest$ac_exeext
31394 }; then
31395 ac_cv_lib_posix_remove=yes
31396 else
31397 $as_echo "$as_me: failed program was:" >&5
31398 sed 's/^/| /' conftest.$ac_ext >&5
31399
31400 ac_cv_lib_posix_remove=no
31401 fi
31402
31403 rm -rf conftest.dSYM
31404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31405 conftest$ac_exeext conftest.$ac_ext
31406 LIBS=$ac_check_lib_save_LIBS
31407 fi
31408 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31409 $as_echo "$ac_cv_lib_posix_remove" >&6; }
31410 if test "x$ac_cv_lib_posix_remove" = x""yes; then
31411 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31412 fi
31413
31414 fi
31415
31416 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31417 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
31418 $as_echo_n "checking for shmat... " >&6; }
31419 if test "${ac_cv_func_shmat+set}" = set; then
31420 $as_echo_n "(cached) " >&6
31421 else
31422 cat >conftest.$ac_ext <<_ACEOF
31423 /* confdefs.h. */
31424 _ACEOF
31425 cat confdefs.h >>conftest.$ac_ext
31426 cat >>conftest.$ac_ext <<_ACEOF
31427 /* end confdefs.h. */
31428 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31430 #define shmat innocuous_shmat
31431
31432 /* System header to define __stub macros and hopefully few prototypes,
31433 which can conflict with char shmat (); below.
31434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31435 <limits.h> exists even on freestanding compilers. */
31436
31437 #ifdef __STDC__
31438 # include <limits.h>
31439 #else
31440 # include <assert.h>
31441 #endif
31442
31443 #undef shmat
31444
31445 /* Override any GCC internal prototype to avoid an error.
31446 Use char because int might match the return type of a GCC
31447 builtin and then its argument prototype would still apply. */
31448 #ifdef __cplusplus
31449 extern "C"
31450 #endif
31451 char shmat ();
31452 /* The GNU C library defines this for functions which it implements
31453 to always fail with ENOSYS. Some functions are actually named
31454 something starting with __ and the normal name is an alias. */
31455 #if defined __stub_shmat || defined __stub___shmat
31456 choke me
31457 #endif
31458
31459 int
31460 main ()
31461 {
31462 return shmat ();
31463 ;
31464 return 0;
31465 }
31466 _ACEOF
31467 rm -f conftest.$ac_objext conftest$ac_exeext
31468 if { (ac_try="$ac_link"
31469 case "(($ac_try" in
31470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31471 *) ac_try_echo=$ac_try;;
31472 esac
31473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31474 $as_echo "$ac_try_echo") >&5
31475 (eval "$ac_link") 2>conftest.er1
31476 ac_status=$?
31477 grep -v '^ *+' conftest.er1 >conftest.err
31478 rm -f conftest.er1
31479 cat conftest.err >&5
31480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); } && {
31482 test -z "$ac_c_werror_flag" ||
31483 test ! -s conftest.err
31484 } && test -s conftest$ac_exeext && {
31485 test "$cross_compiling" = yes ||
31486 $as_test_x conftest$ac_exeext
31487 }; then
31488 ac_cv_func_shmat=yes
31489 else
31490 $as_echo "$as_me: failed program was:" >&5
31491 sed 's/^/| /' conftest.$ac_ext >&5
31492
31493 ac_cv_func_shmat=no
31494 fi
31495
31496 rm -rf conftest.dSYM
31497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31498 conftest$ac_exeext conftest.$ac_ext
31499 fi
31500 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31501 $as_echo "$ac_cv_func_shmat" >&6; }
31502
31503 if test $ac_cv_func_shmat = no; then
31504 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31505 $as_echo_n "checking for shmat in -lipc... " >&6; }
31506 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31507 $as_echo_n "(cached) " >&6
31508 else
31509 ac_check_lib_save_LIBS=$LIBS
31510 LIBS="-lipc $LIBS"
31511 cat >conftest.$ac_ext <<_ACEOF
31512 /* confdefs.h. */
31513 _ACEOF
31514 cat confdefs.h >>conftest.$ac_ext
31515 cat >>conftest.$ac_ext <<_ACEOF
31516 /* end confdefs.h. */
31517
31518 /* Override any GCC internal prototype to avoid an error.
31519 Use char because int might match the return type of a GCC
31520 builtin and then its argument prototype would still apply. */
31521 #ifdef __cplusplus
31522 extern "C"
31523 #endif
31524 char shmat ();
31525 int
31526 main ()
31527 {
31528 return shmat ();
31529 ;
31530 return 0;
31531 }
31532 _ACEOF
31533 rm -f conftest.$ac_objext conftest$ac_exeext
31534 if { (ac_try="$ac_link"
31535 case "(($ac_try" in
31536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31537 *) ac_try_echo=$ac_try;;
31538 esac
31539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31540 $as_echo "$ac_try_echo") >&5
31541 (eval "$ac_link") 2>conftest.er1
31542 ac_status=$?
31543 grep -v '^ *+' conftest.er1 >conftest.err
31544 rm -f conftest.er1
31545 cat conftest.err >&5
31546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); } && {
31548 test -z "$ac_c_werror_flag" ||
31549 test ! -s conftest.err
31550 } && test -s conftest$ac_exeext && {
31551 test "$cross_compiling" = yes ||
31552 $as_test_x conftest$ac_exeext
31553 }; then
31554 ac_cv_lib_ipc_shmat=yes
31555 else
31556 $as_echo "$as_me: failed program was:" >&5
31557 sed 's/^/| /' conftest.$ac_ext >&5
31558
31559 ac_cv_lib_ipc_shmat=no
31560 fi
31561
31562 rm -rf conftest.dSYM
31563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31564 conftest$ac_exeext conftest.$ac_ext
31565 LIBS=$ac_check_lib_save_LIBS
31566 fi
31567 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31568 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
31569 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
31570 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31571 fi
31572
31573 fi
31574 fi
31575
31576 # Check for libraries that X11R6 Xt/Xaw programs need.
31577 ac_save_LDFLAGS=$LDFLAGS
31578 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31579 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31580 # check for ICE first), but we must link in the order -lSM -lICE or
31581 # we get undefined symbols. So assume we have SM if we have ICE.
31582 # These have to be linked with before -lX11, unlike the other
31583 # libraries we check for below, so use a different variable.
31584 # John Interrante, Karl Berry
31585 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31586 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
31587 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31588 $as_echo_n "(cached) " >&6
31589 else
31590 ac_check_lib_save_LIBS=$LIBS
31591 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31592 cat >conftest.$ac_ext <<_ACEOF
31593 /* confdefs.h. */
31594 _ACEOF
31595 cat confdefs.h >>conftest.$ac_ext
31596 cat >>conftest.$ac_ext <<_ACEOF
31597 /* end confdefs.h. */
31598
31599 /* Override any GCC internal prototype to avoid an error.
31600 Use char because int might match the return type of a GCC
31601 builtin and then its argument prototype would still apply. */
31602 #ifdef __cplusplus
31603 extern "C"
31604 #endif
31605 char IceConnectionNumber ();
31606 int
31607 main ()
31608 {
31609 return IceConnectionNumber ();
31610 ;
31611 return 0;
31612 }
31613 _ACEOF
31614 rm -f conftest.$ac_objext conftest$ac_exeext
31615 if { (ac_try="$ac_link"
31616 case "(($ac_try" in
31617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31618 *) ac_try_echo=$ac_try;;
31619 esac
31620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31621 $as_echo "$ac_try_echo") >&5
31622 (eval "$ac_link") 2>conftest.er1
31623 ac_status=$?
31624 grep -v '^ *+' conftest.er1 >conftest.err
31625 rm -f conftest.er1
31626 cat conftest.err >&5
31627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); } && {
31629 test -z "$ac_c_werror_flag" ||
31630 test ! -s conftest.err
31631 } && test -s conftest$ac_exeext && {
31632 test "$cross_compiling" = yes ||
31633 $as_test_x conftest$ac_exeext
31634 }; then
31635 ac_cv_lib_ICE_IceConnectionNumber=yes
31636 else
31637 $as_echo "$as_me: failed program was:" >&5
31638 sed 's/^/| /' conftest.$ac_ext >&5
31639
31640 ac_cv_lib_ICE_IceConnectionNumber=no
31641 fi
31642
31643 rm -rf conftest.dSYM
31644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31645 conftest$ac_exeext conftest.$ac_ext
31646 LIBS=$ac_check_lib_save_LIBS
31647 fi
31648 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31649 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31650 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
31651 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31652 fi
31653
31654 LDFLAGS=$ac_save_LDFLAGS
31655
31656 fi
31657
31658
31659 if test "$no_x" = "yes"; then
31660 { { $as_echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31661 $as_echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31662 { (exit 1); exit 1; }; }
31663 fi
31664
31665 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31666 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31667 AFMINSTALL=afminstall
31668 COMPILED_X_PROGRAM=0
31669
31670 fi
31671
31672 if test "$wxUSE_X11" = 1; then
31673 if test "$wxUSE_NANOX" = "yes"; then
31674 { $as_echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31675 $as_echo_n "checking for MicroWindows/NanoX distribution... " >&6; }
31676 if test "x$MICROWIN" = x ; then
31677 { $as_echo "$as_me:$LINENO: result: not found" >&5
31678 $as_echo "not found" >&6; }
31679 { { $as_echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31680 $as_echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31681 { (exit 1); exit 1; }; }
31682 else
31683 { $as_echo "$as_me:$LINENO: result: $MICROWIN" >&5
31684 $as_echo "$MICROWIN" >&6; }
31685 cat >>confdefs.h <<\_ACEOF
31686 #define wxUSE_NANOX 1
31687 _ACEOF
31688
31689 fi
31690 fi
31691
31692 if test "$wxUSE_UNICODE" = "yes"; then
31693
31694
31695 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31696 if test -n "$ac_tool_prefix"; then
31697 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31698 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31700 $as_echo_n "checking for $ac_word... " >&6; }
31701 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31702 $as_echo_n "(cached) " >&6
31703 else
31704 case $PKG_CONFIG in
31705 [\\/]* | ?:[\\/]*)
31706 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31707 ;;
31708 *)
31709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31710 for as_dir in $PATH
31711 do
31712 IFS=$as_save_IFS
31713 test -z "$as_dir" && as_dir=.
31714 for ac_exec_ext in '' $ac_executable_extensions; do
31715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31716 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31718 break 2
31719 fi
31720 done
31721 done
31722 IFS=$as_save_IFS
31723
31724 ;;
31725 esac
31726 fi
31727 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31728 if test -n "$PKG_CONFIG"; then
31729 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31730 $as_echo "$PKG_CONFIG" >&6; }
31731 else
31732 { $as_echo "$as_me:$LINENO: result: no" >&5
31733 $as_echo "no" >&6; }
31734 fi
31735
31736
31737 fi
31738 if test -z "$ac_cv_path_PKG_CONFIG"; then
31739 ac_pt_PKG_CONFIG=$PKG_CONFIG
31740 # Extract the first word of "pkg-config", so it can be a program name with args.
31741 set dummy pkg-config; ac_word=$2
31742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31743 $as_echo_n "checking for $ac_word... " >&6; }
31744 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31745 $as_echo_n "(cached) " >&6
31746 else
31747 case $ac_pt_PKG_CONFIG in
31748 [\\/]* | ?:[\\/]*)
31749 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31750 ;;
31751 *)
31752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31753 for as_dir in $PATH
31754 do
31755 IFS=$as_save_IFS
31756 test -z "$as_dir" && as_dir=.
31757 for ac_exec_ext in '' $ac_executable_extensions; do
31758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31759 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31761 break 2
31762 fi
31763 done
31764 done
31765 IFS=$as_save_IFS
31766
31767 ;;
31768 esac
31769 fi
31770 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31771 if test -n "$ac_pt_PKG_CONFIG"; then
31772 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31773 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
31774 else
31775 { $as_echo "$as_me:$LINENO: result: no" >&5
31776 $as_echo "no" >&6; }
31777 fi
31778
31779 if test "x$ac_pt_PKG_CONFIG" = x; then
31780 PKG_CONFIG=""
31781 else
31782 case $cross_compiling:$ac_tool_warned in
31783 yes:)
31784 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
31785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31786 ac_tool_warned=yes ;;
31787 esac
31788 PKG_CONFIG=$ac_pt_PKG_CONFIG
31789 fi
31790 else
31791 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31792 fi
31793
31794 fi
31795 if test -n "$PKG_CONFIG"; then
31796 _pkg_min_version=0.9.0
31797 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31798 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
31799 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31800 { $as_echo "$as_me:$LINENO: result: yes" >&5
31801 $as_echo "yes" >&6; }
31802 else
31803 { $as_echo "$as_me:$LINENO: result: no" >&5
31804 $as_echo "no" >&6; }
31805 PKG_CONFIG=""
31806 fi
31807
31808 fi
31809
31810
31811 pkg_failed=no
31812 { $as_echo "$as_me:$LINENO: checking for PANGOX" >&5
31813 $as_echo_n "checking for PANGOX... " >&6; }
31814
31815 if test -n "$PKG_CONFIG"; then
31816 if test -n "$PANGOX_CFLAGS"; then
31817 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31818 else
31819 if test -n "$PKG_CONFIG" && \
31820 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31821 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31822 ac_status=$?
31823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824 (exit $ac_status); }; then
31825 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31826 else
31827 pkg_failed=yes
31828 fi
31829 fi
31830 else
31831 pkg_failed=untried
31832 fi
31833 if test -n "$PKG_CONFIG"; then
31834 if test -n "$PANGOX_LIBS"; then
31835 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31836 else
31837 if test -n "$PKG_CONFIG" && \
31838 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31839 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31840 ac_status=$?
31841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); }; then
31843 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31844 else
31845 pkg_failed=yes
31846 fi
31847 fi
31848 else
31849 pkg_failed=untried
31850 fi
31851
31852
31853
31854 if test $pkg_failed = yes; then
31855
31856 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31857 _pkg_short_errors_supported=yes
31858 else
31859 _pkg_short_errors_supported=no
31860 fi
31861 if test $_pkg_short_errors_supported = yes; then
31862 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31863 else
31864 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31865 fi
31866 # Put the nasty error message in config.log where it belongs
31867 echo "$PANGOX_PKG_ERRORS" >&5
31868
31869
31870 { { $as_echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31871 $as_echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31872 { (exit 1); exit 1; }; }
31873
31874
31875 elif test $pkg_failed = untried; then
31876
31877 { { $as_echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31878 $as_echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31879 { (exit 1); exit 1; }; }
31880
31881
31882 else
31883 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31884 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31885 { $as_echo "$as_me:$LINENO: result: yes" >&5
31886 $as_echo "yes" >&6; }
31887
31888 CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31889 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31890 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31891
31892 fi
31893
31894 pkg_failed=no
31895 { $as_echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31896 $as_echo_n "checking for PANGOFT2... " >&6; }
31897
31898 if test -n "$PKG_CONFIG"; then
31899 if test -n "$PANGOFT2_CFLAGS"; then
31900 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31901 else
31902 if test -n "$PKG_CONFIG" && \
31903 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31904 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31905 ac_status=$?
31906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); }; then
31908 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31909 else
31910 pkg_failed=yes
31911 fi
31912 fi
31913 else
31914 pkg_failed=untried
31915 fi
31916 if test -n "$PKG_CONFIG"; then
31917 if test -n "$PANGOFT2_LIBS"; then
31918 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31919 else
31920 if test -n "$PKG_CONFIG" && \
31921 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31922 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31923 ac_status=$?
31924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925 (exit $ac_status); }; then
31926 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31927 else
31928 pkg_failed=yes
31929 fi
31930 fi
31931 else
31932 pkg_failed=untried
31933 fi
31934
31935
31936
31937 if test $pkg_failed = yes; then
31938
31939 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31940 _pkg_short_errors_supported=yes
31941 else
31942 _pkg_short_errors_supported=no
31943 fi
31944 if test $_pkg_short_errors_supported = yes; then
31945 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31946 else
31947 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31948 fi
31949 # Put the nasty error message in config.log where it belongs
31950 echo "$PANGOFT2_PKG_ERRORS" >&5
31951
31952
31953 { $as_echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31954 $as_echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31955 wxUSE_PRINTING_ARCHITECTURE="no"
31956
31957
31958 elif test $pkg_failed = untried; then
31959
31960 { $as_echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31961 $as_echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31962 wxUSE_PRINTING_ARCHITECTURE="no"
31963
31964
31965 else
31966 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31967 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31968 { $as_echo "$as_me:$LINENO: result: yes" >&5
31969 $as_echo "yes" >&6; }
31970
31971 CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31972 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31973 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31974
31975 fi
31976
31977 pkg_failed=no
31978 { $as_echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31979 $as_echo_n "checking for PANGOXFT... " >&6; }
31980
31981 if test -n "$PKG_CONFIG"; then
31982 if test -n "$PANGOXFT_CFLAGS"; then
31983 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31984 else
31985 if test -n "$PKG_CONFIG" && \
31986 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31987 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31988 ac_status=$?
31989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990 (exit $ac_status); }; then
31991 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31992 else
31993 pkg_failed=yes
31994 fi
31995 fi
31996 else
31997 pkg_failed=untried
31998 fi
31999 if test -n "$PKG_CONFIG"; then
32000 if test -n "$PANGOXFT_LIBS"; then
32001 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
32002 else
32003 if test -n "$PKG_CONFIG" && \
32004 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
32005 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
32006 ac_status=$?
32007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32008 (exit $ac_status); }; then
32009 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
32010 else
32011 pkg_failed=yes
32012 fi
32013 fi
32014 else
32015 pkg_failed=untried
32016 fi
32017
32018
32019
32020 if test $pkg_failed = yes; then
32021
32022 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32023 _pkg_short_errors_supported=yes
32024 else
32025 _pkg_short_errors_supported=no
32026 fi
32027 if test $_pkg_short_errors_supported = yes; then
32028 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
32029 else
32030 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
32031 fi
32032 # Put the nasty error message in config.log where it belongs
32033 echo "$PANGOXFT_PKG_ERRORS" >&5
32034
32035
32036 { $as_echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
32037 $as_echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
32038
32039
32040 elif test $pkg_failed = untried; then
32041
32042 { $as_echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
32043 $as_echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
32044
32045
32046 else
32047 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
32048 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
32049 { $as_echo "$as_me:$LINENO: result: yes" >&5
32050 $as_echo "yes" >&6; }
32051
32052 cat >>confdefs.h <<\_ACEOF
32053 #define HAVE_PANGO_XFT 1
32054 _ACEOF
32055
32056 CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
32057 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
32058 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
32059
32060 fi
32061 save_LIBS="$LIBS"
32062 LIBS="$LIBS $PANGOX_LIBS"
32063
32064 for ac_func in pango_font_family_is_monospace
32065 do
32066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32067 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32068 $as_echo_n "checking for $ac_func... " >&6; }
32069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32070 $as_echo_n "(cached) " >&6
32071 else
32072 cat >conftest.$ac_ext <<_ACEOF
32073 /* confdefs.h. */
32074 _ACEOF
32075 cat confdefs.h >>conftest.$ac_ext
32076 cat >>conftest.$ac_ext <<_ACEOF
32077 /* end confdefs.h. */
32078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32080 #define $ac_func innocuous_$ac_func
32081
32082 /* System header to define __stub macros and hopefully few prototypes,
32083 which can conflict with char $ac_func (); below.
32084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32085 <limits.h> exists even on freestanding compilers. */
32086
32087 #ifdef __STDC__
32088 # include <limits.h>
32089 #else
32090 # include <assert.h>
32091 #endif
32092
32093 #undef $ac_func
32094
32095 /* Override any GCC internal prototype to avoid an error.
32096 Use char because int might match the return type of a GCC
32097 builtin and then its argument prototype would still apply. */
32098 #ifdef __cplusplus
32099 extern "C"
32100 #endif
32101 char $ac_func ();
32102 /* The GNU C library defines this for functions which it implements
32103 to always fail with ENOSYS. Some functions are actually named
32104 something starting with __ and the normal name is an alias. */
32105 #if defined __stub_$ac_func || defined __stub___$ac_func
32106 choke me
32107 #endif
32108
32109 int
32110 main ()
32111 {
32112 return $ac_func ();
32113 ;
32114 return 0;
32115 }
32116 _ACEOF
32117 rm -f conftest.$ac_objext conftest$ac_exeext
32118 if { (ac_try="$ac_link"
32119 case "(($ac_try" in
32120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32121 *) ac_try_echo=$ac_try;;
32122 esac
32123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32124 $as_echo "$ac_try_echo") >&5
32125 (eval "$ac_link") 2>conftest.er1
32126 ac_status=$?
32127 grep -v '^ *+' conftest.er1 >conftest.err
32128 rm -f conftest.er1
32129 cat conftest.err >&5
32130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); } && {
32132 test -z "$ac_c_werror_flag" ||
32133 test ! -s conftest.err
32134 } && test -s conftest$ac_exeext && {
32135 test "$cross_compiling" = yes ||
32136 $as_test_x conftest$ac_exeext
32137 }; then
32138 eval "$as_ac_var=yes"
32139 else
32140 $as_echo "$as_me: failed program was:" >&5
32141 sed 's/^/| /' conftest.$ac_ext >&5
32142
32143 eval "$as_ac_var=no"
32144 fi
32145
32146 rm -rf conftest.dSYM
32147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32148 conftest$ac_exeext conftest.$ac_ext
32149 fi
32150 ac_res=`eval 'as_val=${'$as_ac_var'}
32151 $as_echo "$as_val"'`
32152 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32153 $as_echo "$ac_res" >&6; }
32154 as_val=`eval 'as_val=${'$as_ac_var'}
32155 $as_echo "$as_val"'`
32156 if test "x$as_val" = x""yes; then
32157 cat >>confdefs.h <<_ACEOF
32158 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32159 _ACEOF
32160
32161 fi
32162 done
32163
32164 LIBS="$save_LIBS"
32165 fi
32166
32167 wxUSE_UNIVERSAL="yes"
32168
32169 if test "$wxUSE_NANOX" = "yes"; then
32170 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
32171 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"
32172 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
32173 else
32174 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
32175 fi
32176
32177 TOOLKIT=X11
32178 GUIDIST=X11_DIST
32179 fi
32180
32181 if test "$wxUSE_MOTIF" = 1; then
32182 { $as_echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
32183 $as_echo_n "checking for Motif/Lesstif headers... " >&6; }
32184
32185 ac_find_includes=
32186 for ac_dir in $SEARCH_INCLUDE /usr/include;
32187 do
32188 if test -f "$ac_dir/Xm/Xm.h"; then
32189 ac_find_includes=$ac_dir
32190 break
32191 fi
32192 done
32193
32194 if test "$ac_find_includes" != "" ; then
32195 { $as_echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32196 $as_echo "found in $ac_find_includes" >&6; }
32197
32198 if test "x$ac_find_includes" = "x/usr/include"; then
32199 ac_path_to_include=""
32200 else
32201 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
32202 result=$?
32203 if test $result = 0; then
32204 ac_path_to_include=""
32205 else
32206 ac_path_to_include=" -I$ac_find_includes"
32207 fi
32208 fi
32209
32210 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
32211 else
32212 save_CFLAGS=$CFLAGS
32213 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32214
32215 cat >conftest.$ac_ext <<_ACEOF
32216 /* confdefs.h. */
32217 _ACEOF
32218 cat confdefs.h >>conftest.$ac_ext
32219 cat >>conftest.$ac_ext <<_ACEOF
32220 /* end confdefs.h. */
32221
32222 #include <Xm/Xm.h>
32223
32224 int
32225 main ()
32226 {
32227
32228 int version;
32229 version = xmUseVersion;
32230
32231 ;
32232 return 0;
32233 }
32234 _ACEOF
32235 rm -f conftest.$ac_objext
32236 if { (ac_try="$ac_compile"
32237 case "(($ac_try" in
32238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32239 *) ac_try_echo=$ac_try;;
32240 esac
32241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32242 $as_echo "$ac_try_echo") >&5
32243 (eval "$ac_compile") 2>conftest.er1
32244 ac_status=$?
32245 grep -v '^ *+' conftest.er1 >conftest.err
32246 rm -f conftest.er1
32247 cat conftest.err >&5
32248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249 (exit $ac_status); } && {
32250 test -z "$ac_c_werror_flag" ||
32251 test ! -s conftest.err
32252 } && test -s conftest.$ac_objext; then
32253
32254 { $as_echo "$as_me:$LINENO: result: found in default search path" >&5
32255 $as_echo "found in default search path" >&6; }
32256 COMPILED_X_PROGRAM=1
32257
32258 else
32259 $as_echo "$as_me: failed program was:" >&5
32260 sed 's/^/| /' conftest.$ac_ext >&5
32261
32262
32263 { $as_echo "$as_me:$LINENO: result: no" >&5
32264 $as_echo "no" >&6; }
32265 { { $as_echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
32266 $as_echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
32267 { (exit 1); exit 1; }; }
32268
32269
32270 fi
32271
32272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32273
32274 CFLAGS=$save_CFLAGS
32275 fi
32276
32277
32278 { $as_echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
32279 $as_echo_n "checking for Motif/Lesstif library... " >&6; }
32280
32281 ac_find_libraries=
32282 for ac_dir in $SEARCH_LIB;
32283 do
32284 for ac_extension in a so sl dylib dll.a; do
32285 if test -f "$ac_dir/libXm.$ac_extension"; then
32286 ac_find_libraries=$ac_dir
32287 break 2
32288 fi
32289 done
32290 done
32291
32292
32293 if test "x$ac_find_libraries" != "x" ; then
32294 { $as_echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32295 $as_echo "found in $ac_find_libraries" >&6; }
32296
32297
32298 if test "$ac_find_libraries" = "default location"; then
32299 ac_path_to_link=""
32300 else
32301 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32302 result=$?
32303 if test $result = 0; then
32304 ac_path_to_link=""
32305 else
32306 ac_path_to_link=" -L$ac_find_libraries"
32307 fi
32308 fi
32309
32310 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32311 else
32312 save_CFLAGS=$CFLAGS
32313 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32314 save_LIBS="$LIBS"
32315 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
32316
32317 cat >conftest.$ac_ext <<_ACEOF
32318 /* confdefs.h. */
32319 _ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h. */
32323
32324 #include <Xm/Xm.h>
32325
32326 int
32327 main ()
32328 {
32329
32330 int version;
32331 version = xmUseVersion;
32332
32333 ;
32334 return 0;
32335 }
32336 _ACEOF
32337 rm -f conftest.$ac_objext conftest$ac_exeext
32338 if { (ac_try="$ac_link"
32339 case "(($ac_try" in
32340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32341 *) ac_try_echo=$ac_try;;
32342 esac
32343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32344 $as_echo "$ac_try_echo") >&5
32345 (eval "$ac_link") 2>conftest.er1
32346 ac_status=$?
32347 grep -v '^ *+' conftest.er1 >conftest.err
32348 rm -f conftest.er1
32349 cat conftest.err >&5
32350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351 (exit $ac_status); } && {
32352 test -z "$ac_c_werror_flag" ||
32353 test ! -s conftest.err
32354 } && test -s conftest$ac_exeext && {
32355 test "$cross_compiling" = yes ||
32356 $as_test_x conftest$ac_exeext
32357 }; then
32358
32359 { $as_echo "$as_me:$LINENO: result: found in default search path" >&5
32360 $as_echo "found in default search path" >&6; }
32361 COMPILED_X_PROGRAM=1
32362
32363 else
32364 $as_echo "$as_me: failed program was:" >&5
32365 sed 's/^/| /' conftest.$ac_ext >&5
32366
32367
32368 { $as_echo "$as_me:$LINENO: result: no" >&5
32369 $as_echo "no" >&6; }
32370 { { $as_echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32371 $as_echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
32372 { (exit 1); exit 1; }; }
32373
32374
32375 fi
32376
32377 rm -rf conftest.dSYM
32378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32379 conftest$ac_exeext conftest.$ac_ext
32380
32381 CFLAGS=$save_CFLAGS
32382 LIBS="$save_LIBS"
32383 fi
32384
32385 { $as_echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32386 $as_echo_n "checking if we need -lXp and/or -lSM -lICE... " >&6; }
32387 libp_link=""
32388 libsm_ice_link=""
32389 libs_found=0
32390 for libp in "" " -lXp"; do
32391 if test "$libs_found" = 0; then
32392 for libsm_ice in "" " -lSM -lICE"; do
32393 if test "$libs_found" = 0; then
32394 save_LIBS="$LIBS"
32395 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
32396 save_CFLAGS=$CFLAGS
32397 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32398
32399 cat >conftest.$ac_ext <<_ACEOF
32400 /* confdefs.h. */
32401 _ACEOF
32402 cat confdefs.h >>conftest.$ac_ext
32403 cat >>conftest.$ac_ext <<_ACEOF
32404 /* end confdefs.h. */
32405
32406 #include <Xm/Xm.h>
32407 #include <Xm/List.h>
32408
32409 int
32410 main ()
32411 {
32412
32413 XmString string = NULL;
32414 Widget w = NULL;
32415 int position = 0;
32416 XmListAddItem(w, string, position);
32417
32418 ;
32419 return 0;
32420 }
32421 _ACEOF
32422 rm -f conftest.$ac_objext conftest$ac_exeext
32423 if { (ac_try="$ac_link"
32424 case "(($ac_try" in
32425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32426 *) ac_try_echo=$ac_try;;
32427 esac
32428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32429 $as_echo "$ac_try_echo") >&5
32430 (eval "$ac_link") 2>conftest.er1
32431 ac_status=$?
32432 grep -v '^ *+' conftest.er1 >conftest.err
32433 rm -f conftest.er1
32434 cat conftest.err >&5
32435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); } && {
32437 test -z "$ac_c_werror_flag" ||
32438 test ! -s conftest.err
32439 } && test -s conftest$ac_exeext && {
32440 test "$cross_compiling" = yes ||
32441 $as_test_x conftest$ac_exeext
32442 }; then
32443
32444 libp_link="$libp"
32445 libsm_ice_link="$libsm_ice"
32446 { $as_echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32447 $as_echo "need${libp_link}${libsm_ice_link}" >&6; }
32448 libs_found=1
32449
32450 else
32451 $as_echo "$as_me: failed program was:" >&5
32452 sed 's/^/| /' conftest.$ac_ext >&5
32453
32454
32455
32456 fi
32457
32458 rm -rf conftest.dSYM
32459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32460 conftest$ac_exeext conftest.$ac_ext
32461
32462 LIBS="$save_LIBS"
32463 CFLAGS=$save_CFLAGS
32464 fi
32465 done
32466 fi
32467 done
32468
32469 if test "$libs_found" = 0; then
32470 { $as_echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32471 $as_echo "can't find the right libraries" >&6; }
32472 { { $as_echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32473 $as_echo "$as_me: error: can't link a simple motif program" >&2;}
32474 { (exit 1); exit 1; }; }
32475 fi
32476
32477 { $as_echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32478 $as_echo_n "checking for SgCreateList in -lSgm... " >&6; }
32479 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32480 $as_echo_n "(cached) " >&6
32481 else
32482 ac_check_lib_save_LIBS=$LIBS
32483 LIBS="-lSgm $LIBS"
32484 cat >conftest.$ac_ext <<_ACEOF
32485 /* confdefs.h. */
32486 _ACEOF
32487 cat confdefs.h >>conftest.$ac_ext
32488 cat >>conftest.$ac_ext <<_ACEOF
32489 /* end confdefs.h. */
32490
32491 /* Override any GCC internal prototype to avoid an error.
32492 Use char because int might match the return type of a GCC
32493 builtin and then its argument prototype would still apply. */
32494 #ifdef __cplusplus
32495 extern "C"
32496 #endif
32497 char SgCreateList ();
32498 int
32499 main ()
32500 {
32501 return SgCreateList ();
32502 ;
32503 return 0;
32504 }
32505 _ACEOF
32506 rm -f conftest.$ac_objext conftest$ac_exeext
32507 if { (ac_try="$ac_link"
32508 case "(($ac_try" in
32509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32510 *) ac_try_echo=$ac_try;;
32511 esac
32512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32513 $as_echo "$ac_try_echo") >&5
32514 (eval "$ac_link") 2>conftest.er1
32515 ac_status=$?
32516 grep -v '^ *+' conftest.er1 >conftest.err
32517 rm -f conftest.er1
32518 cat conftest.err >&5
32519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); } && {
32521 test -z "$ac_c_werror_flag" ||
32522 test ! -s conftest.err
32523 } && test -s conftest$ac_exeext && {
32524 test "$cross_compiling" = yes ||
32525 $as_test_x conftest$ac_exeext
32526 }; then
32527 ac_cv_lib_Sgm_SgCreateList=yes
32528 else
32529 $as_echo "$as_me: failed program was:" >&5
32530 sed 's/^/| /' conftest.$ac_ext >&5
32531
32532 ac_cv_lib_Sgm_SgCreateList=no
32533 fi
32534
32535 rm -rf conftest.dSYM
32536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32537 conftest$ac_exeext conftest.$ac_ext
32538 LIBS=$ac_check_lib_save_LIBS
32539 fi
32540 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32541 $as_echo "$ac_cv_lib_Sgm_SgCreateList" >&6; }
32542 if test "x$ac_cv_lib_Sgm_SgCreateList" = x""yes; then
32543 libsgm_link=" -lSgm"
32544 fi
32545
32546
32547 save_CFLAGS=$CFLAGS
32548 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32549
32550 { $as_echo "$as_me:$LINENO: checking for Motif 2" >&5
32551 $as_echo_n "checking for Motif 2... " >&6; }
32552 if test "${wx_cv_lib_motif2+set}" = set; then
32553 $as_echo_n "(cached) " >&6
32554 else
32555 cat >conftest.$ac_ext <<_ACEOF
32556 /* confdefs.h. */
32557 _ACEOF
32558 cat confdefs.h >>conftest.$ac_ext
32559 cat >>conftest.$ac_ext <<_ACEOF
32560 /* end confdefs.h. */
32561
32562 #include <Xm/Xm.h>
32563
32564 int
32565 main ()
32566 {
32567
32568 #if XmVersion < 2000
32569 Not Motif 2
32570 #endif
32571
32572 ;
32573 return 0;
32574 }
32575 _ACEOF
32576 rm -f conftest.$ac_objext
32577 if { (ac_try="$ac_compile"
32578 case "(($ac_try" in
32579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32580 *) ac_try_echo=$ac_try;;
32581 esac
32582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32583 $as_echo "$ac_try_echo") >&5
32584 (eval "$ac_compile") 2>conftest.er1
32585 ac_status=$?
32586 grep -v '^ *+' conftest.er1 >conftest.err
32587 rm -f conftest.er1
32588 cat conftest.err >&5
32589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 (exit $ac_status); } && {
32591 test -z "$ac_c_werror_flag" ||
32592 test ! -s conftest.err
32593 } && test -s conftest.$ac_objext; then
32594 wx_cv_lib_motif2="yes"
32595 else
32596 $as_echo "$as_me: failed program was:" >&5
32597 sed 's/^/| /' conftest.$ac_ext >&5
32598
32599 wx_cv_lib_motif2="no"
32600 fi
32601
32602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32603 fi
32604 { $as_echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32605 $as_echo "$wx_cv_lib_motif2" >&6; }
32606 if test "$wx_cv_lib_motif2" = "yes"; then
32607 cat >>confdefs.h <<\_ACEOF
32608 #define __WXMOTIF20__ 1
32609 _ACEOF
32610
32611 else
32612 cat >>confdefs.h <<\_ACEOF
32613 #define __WXMOTIF20__ 0
32614 _ACEOF
32615
32616 fi
32617
32618 { $as_echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32619 $as_echo_n "checking whether Motif is Lesstif... " >&6; }
32620 if test "${wx_cv_lib_lesstif+set}" = set; then
32621 $as_echo_n "(cached) " >&6
32622 else
32623 cat >conftest.$ac_ext <<_ACEOF
32624 /* confdefs.h. */
32625 _ACEOF
32626 cat confdefs.h >>conftest.$ac_ext
32627 cat >>conftest.$ac_ext <<_ACEOF
32628 /* end confdefs.h. */
32629
32630 #include <Xm/Xm.h>
32631
32632 int
32633 main ()
32634 {
32635
32636 #if !defined(LesstifVersion) || LesstifVersion <= 0
32637 Not Lesstif
32638 #endif
32639
32640 ;
32641 return 0;
32642 }
32643 _ACEOF
32644 rm -f conftest.$ac_objext
32645 if { (ac_try="$ac_compile"
32646 case "(($ac_try" in
32647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648 *) ac_try_echo=$ac_try;;
32649 esac
32650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32651 $as_echo "$ac_try_echo") >&5
32652 (eval "$ac_compile") 2>conftest.er1
32653 ac_status=$?
32654 grep -v '^ *+' conftest.er1 >conftest.err
32655 rm -f conftest.er1
32656 cat conftest.err >&5
32657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); } && {
32659 test -z "$ac_c_werror_flag" ||
32660 test ! -s conftest.err
32661 } && test -s conftest.$ac_objext; then
32662 wx_cv_lib_lesstif="yes"
32663 else
32664 $as_echo "$as_me: failed program was:" >&5
32665 sed 's/^/| /' conftest.$ac_ext >&5
32666
32667 wx_cv_lib_lesstif="no"
32668 fi
32669
32670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32671
32672 fi
32673 { $as_echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32674 $as_echo "$wx_cv_lib_lesstif" >&6; }
32675 if test "$wx_cv_lib_lesstif" = "yes"; then
32676 cat >>confdefs.h <<\_ACEOF
32677 #define __WXLESSTIF__ 1
32678 _ACEOF
32679
32680 else
32681 cat >>confdefs.h <<\_ACEOF
32682 #define __WXLESSTIF__ 0
32683 _ACEOF
32684
32685 fi
32686
32687 CFLAGS=$save_CFLAGS
32688
32689 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32690 TOOLKIT=MOTIF
32691 GUIDIST=MOTIF_DIST
32692 fi
32693
32694 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32695 if test "$wxUSE_LIBXPM" = "sys"; then
32696 { $as_echo "$as_me:$LINENO: checking for Xpm library" >&5
32697 $as_echo_n "checking for Xpm library... " >&6; }
32698
32699 ac_find_libraries=
32700 for ac_dir in $SEARCH_LIB;
32701 do
32702 for ac_extension in a so sl dylib dll.a; do
32703 if test -f "$ac_dir/libXpm.$ac_extension"; then
32704 ac_find_libraries=$ac_dir
32705 break 2
32706 fi
32707 done
32708 done
32709
32710 if test "$ac_find_libraries" != "" ; then
32711
32712 if test "$ac_find_libraries" = "default location"; then
32713 ac_path_to_link=""
32714 else
32715 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32716 result=$?
32717 if test $result = 0; then
32718 ac_path_to_link=""
32719 else
32720 ac_path_to_link=" -L$ac_find_libraries"
32721 fi
32722 fi
32723
32724 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32725 { $as_echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32726 $as_echo "found in $ac_find_libraries" >&6; }
32727
32728 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32729 $as_echo_n "checking for X11/xpm.h... " >&6; }
32730 if test "${wx_cv_x11_xpm_h+set}" = set; then
32731 $as_echo_n "(cached) " >&6
32732 else
32733
32734 save_CFLAGS=$CFLAGS
32735 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32736
32737 cat >conftest.$ac_ext <<_ACEOF
32738 /* confdefs.h. */
32739 _ACEOF
32740 cat confdefs.h >>conftest.$ac_ext
32741 cat >>conftest.$ac_ext <<_ACEOF
32742 /* end confdefs.h. */
32743
32744 #include <X11/xpm.h>
32745
32746 int
32747 main ()
32748 {
32749
32750 int version;
32751 version = XpmLibraryVersion();
32752
32753 ;
32754 return 0;
32755 }
32756 _ACEOF
32757 rm -f conftest.$ac_objext
32758 if { (ac_try="$ac_compile"
32759 case "(($ac_try" in
32760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32761 *) ac_try_echo=$ac_try;;
32762 esac
32763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32764 $as_echo "$ac_try_echo") >&5
32765 (eval "$ac_compile") 2>conftest.er1
32766 ac_status=$?
32767 grep -v '^ *+' conftest.er1 >conftest.err
32768 rm -f conftest.er1
32769 cat conftest.err >&5
32770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); } && {
32772 test -z "$ac_c_werror_flag" ||
32773 test ! -s conftest.err
32774 } && test -s conftest.$ac_objext; then
32775 wx_cv_x11_xpm_h=yes
32776 else
32777 $as_echo "$as_me: failed program was:" >&5
32778 sed 's/^/| /' conftest.$ac_ext >&5
32779
32780 wx_cv_x11_xpm_h=no
32781
32782 fi
32783
32784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32785
32786 CFLAGS=$save_CFLAGS
32787
32788
32789 fi
32790 { $as_echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32791 $as_echo "$wx_cv_x11_xpm_h" >&6; }
32792
32793 if test $wx_cv_x11_xpm_h = "yes"; then
32794 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32795 cat >>confdefs.h <<\_ACEOF
32796 #define wxHAVE_LIB_XPM 1
32797 _ACEOF
32798
32799 else
32800 { $as_echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32801 $as_echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32802 fi
32803 fi
32804
32805 fi
32806
32807 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32808 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
32809 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32810 $as_echo_n "(cached) " >&6
32811 else
32812 ac_check_lib_save_LIBS=$LIBS
32813 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32814 cat >conftest.$ac_ext <<_ACEOF
32815 /* confdefs.h. */
32816 _ACEOF
32817 cat confdefs.h >>conftest.$ac_ext
32818 cat >>conftest.$ac_ext <<_ACEOF
32819 /* end confdefs.h. */
32820
32821 /* Override any GCC internal prototype to avoid an error.
32822 Use char because int might match the return type of a GCC
32823 builtin and then its argument prototype would still apply. */
32824 #ifdef __cplusplus
32825 extern "C"
32826 #endif
32827 char XShapeQueryExtension ();
32828 int
32829 main ()
32830 {
32831 return XShapeQueryExtension ();
32832 ;
32833 return 0;
32834 }
32835 _ACEOF
32836 rm -f conftest.$ac_objext conftest$ac_exeext
32837 if { (ac_try="$ac_link"
32838 case "(($ac_try" in
32839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32840 *) ac_try_echo=$ac_try;;
32841 esac
32842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32843 $as_echo "$ac_try_echo") >&5
32844 (eval "$ac_link") 2>conftest.er1
32845 ac_status=$?
32846 grep -v '^ *+' conftest.er1 >conftest.err
32847 rm -f conftest.er1
32848 cat conftest.err >&5
32849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850 (exit $ac_status); } && {
32851 test -z "$ac_c_werror_flag" ||
32852 test ! -s conftest.err
32853 } && test -s conftest$ac_exeext && {
32854 test "$cross_compiling" = yes ||
32855 $as_test_x conftest$ac_exeext
32856 }; then
32857 ac_cv_lib_Xext_XShapeQueryExtension=yes
32858 else
32859 $as_echo "$as_me: failed program was:" >&5
32860 sed 's/^/| /' conftest.$ac_ext >&5
32861
32862 ac_cv_lib_Xext_XShapeQueryExtension=no
32863 fi
32864
32865 rm -rf conftest.dSYM
32866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32867 conftest$ac_exeext conftest.$ac_ext
32868 LIBS=$ac_check_lib_save_LIBS
32869 fi
32870 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32871 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32872 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
32873
32874 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32875 wxHAVE_XEXT_LIB=1
32876
32877 fi
32878
32879
32880 if test "$wxHAVE_XEXT_LIB" = 1; then
32881 save_CFLAGS="$CFLAGS"
32882 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32883
32884 { $as_echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32885 $as_echo_n "checking for X11/extensions/shape.h... " >&6; }
32886 cat >conftest.$ac_ext <<_ACEOF
32887 /* confdefs.h. */
32888 _ACEOF
32889 cat confdefs.h >>conftest.$ac_ext
32890 cat >>conftest.$ac_ext <<_ACEOF
32891 /* end confdefs.h. */
32892
32893 #include <X11/Xlib.h>
32894 #include <X11/extensions/shape.h>
32895
32896 int
32897 main ()
32898 {
32899
32900 int dummy1, dummy2;
32901 XShapeQueryExtension((Display*)NULL,
32902 (int*)NULL, (int*)NULL);
32903
32904 ;
32905 return 0;
32906 }
32907 _ACEOF
32908 rm -f conftest.$ac_objext
32909 if { (ac_try="$ac_compile"
32910 case "(($ac_try" in
32911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32912 *) ac_try_echo=$ac_try;;
32913 esac
32914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32915 $as_echo "$ac_try_echo") >&5
32916 (eval "$ac_compile") 2>conftest.er1
32917 ac_status=$?
32918 grep -v '^ *+' conftest.er1 >conftest.err
32919 rm -f conftest.er1
32920 cat conftest.err >&5
32921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); } && {
32923 test -z "$ac_c_werror_flag" ||
32924 test ! -s conftest.err
32925 } && test -s conftest.$ac_objext; then
32926
32927 cat >>confdefs.h <<\_ACEOF
32928 #define HAVE_XSHAPE 1
32929 _ACEOF
32930
32931 { $as_echo "$as_me:$LINENO: result: found" >&5
32932 $as_echo "found" >&6; }
32933
32934 else
32935 $as_echo "$as_me: failed program was:" >&5
32936 sed 's/^/| /' conftest.$ac_ext >&5
32937
32938
32939 { $as_echo "$as_me:$LINENO: result: not found" >&5
32940 $as_echo "not found" >&6; }
32941
32942 fi
32943
32944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32945 CFLAGS="$save_CFLAGS"
32946
32947 fi
32948 fi
32949
32950 if test "$wxUSE_OSX_CARBON" = 1; then
32951 { $as_echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32952 $as_echo_n "checking for compiler syntax to enable Pascal strings... " >&6; }
32953 if test "$GCC" = yes; then
32954 { $as_echo "$as_me:$LINENO: result: gcc" >&5
32955 $as_echo "gcc" >&6; }
32956 CPPFLAGS_PASCAL="-fpascal-strings"
32957 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32958 { $as_echo "$as_me:$LINENO: result: xlc" >&5
32959 $as_echo "xlc" >&6; }
32960 CPPFLAGS_PASCAL="-qmacpstr"
32961 else
32962 { $as_echo "$as_me:$LINENO: result: none" >&5
32963 $as_echo "none" >&6; }
32964 fi
32965
32966 if test "x$wxUSE_UNIX" = "xyes"; then
32967 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32968 else
32969 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32970 fi
32971
32972 TOOLKIT=OSX_CARBON
32973 GUIDIST=OSX_CARBON_DIST
32974 WXBASEPORT="_carbon"
32975 fi
32976
32977 if test "$wxUSE_OSX_COCOA" = 1; then
32978 TOOLKIT=OSX_COCOA
32979 GUIDIST=OSX_COCOA_DIST
32980 fi
32981
32982 if test "$wxUSE_COCOA" = 1; then
32983 TOOLKIT=COCOA
32984 GUIDIST=COCOA_DIST
32985 fi
32986
32987 if test "$wxUSE_PM" = 1; then
32988 TOOLKIT=PM
32989 GUIDIST=PM_DIST
32990 { $as_echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32991 $as_echo_n "checking for type SPBCDATA... " >&6; }
32992 if test "${wx_cv_spbcdata+set}" = set; then
32993 $as_echo_n "(cached) " >&6
32994 else
32995
32996 cat >conftest.$ac_ext <<_ACEOF
32997 /* confdefs.h. */
32998 _ACEOF
32999 cat confdefs.h >>conftest.$ac_ext
33000 cat >>conftest.$ac_ext <<_ACEOF
33001 /* end confdefs.h. */
33002
33003 #define INCL_PM
33004 #include <os2.h>
33005
33006 int
33007 main ()
33008 {
33009
33010 SPBCDATA test;
33011
33012 ;
33013 return 0;
33014 }
33015 _ACEOF
33016 rm -f conftest.$ac_objext
33017 if { (ac_try="$ac_compile"
33018 case "(($ac_try" in
33019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33020 *) ac_try_echo=$ac_try;;
33021 esac
33022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33023 $as_echo "$ac_try_echo") >&5
33024 (eval "$ac_compile") 2>conftest.er1
33025 ac_status=$?
33026 grep -v '^ *+' conftest.er1 >conftest.err
33027 rm -f conftest.er1
33028 cat conftest.err >&5
33029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030 (exit $ac_status); } && {
33031 test -z "$ac_c_werror_flag" ||
33032 test ! -s conftest.err
33033 } && test -s conftest.$ac_objext; then
33034 wx_cv_spbcdata=yes
33035 else
33036 $as_echo "$as_me: failed program was:" >&5
33037 sed 's/^/| /' conftest.$ac_ext >&5
33038
33039 wx_cv_spbcdata=no
33040
33041 fi
33042
33043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33044
33045
33046 fi
33047 { $as_echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
33048 $as_echo "$wx_cv_spbcdata" >&6; }
33049
33050 if test $wx_cv_spbcdata = "yes"; then
33051 cat >>confdefs.h <<\_ACEOF
33052 #define HAVE_SPBCDATA 1
33053 _ACEOF
33054
33055 fi
33056 fi
33057
33058 if test "$TOOLKIT" = "PM" ; then
33059 TOOLKIT_DIR="os2"
33060 else
33061 TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
33062 fi
33063
33064 if test "$wxUSE_UNIVERSAL" = "yes"; then
33065 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
33066 WIDGET_SET=univ
33067 fi
33068
33069 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
33070 DISTDIR="wx\$(TOOLKIT)"
33071 else
33072 USE_GUI=0
33073
33074 TOOLKIT_DIR="base"
33075
33076 if test "$USE_WIN32" = 1 ; then
33077 TOOLKIT="MSW"
33078 fi
33079
33080 GUIDIST="BASE_DIST"
33081 DISTDIR="wxBase"
33082 fi
33083
33084
33085
33086 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
33087 if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
33088 wxUSE_UNICODE_UTF8=yes
33089 elif test "$USE_OS2" = 1 ; then
33090 wxUSE_UNICODE_UTF8=yes
33091 else
33092 wxUSE_UNICODE_UTF8=no
33093 fi
33094 fi
33095
33096
33097 if test "$wxUSE_GUI" = "yes"; then
33098 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
33099
33100 for ac_header in X11/Xlib.h
33101 do
33102 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33104 $as_echo_n "checking for $ac_header... " >&6; }
33105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33106 $as_echo_n "(cached) " >&6
33107 else
33108 cat >conftest.$ac_ext <<_ACEOF
33109 /* confdefs.h. */
33110 _ACEOF
33111 cat confdefs.h >>conftest.$ac_ext
33112 cat >>conftest.$ac_ext <<_ACEOF
33113 /* end confdefs.h. */
33114
33115
33116 #include <$ac_header>
33117 _ACEOF
33118 rm -f conftest.$ac_objext
33119 if { (ac_try="$ac_compile"
33120 case "(($ac_try" in
33121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33122 *) ac_try_echo=$ac_try;;
33123 esac
33124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33125 $as_echo "$ac_try_echo") >&5
33126 (eval "$ac_compile") 2>conftest.er1
33127 ac_status=$?
33128 grep -v '^ *+' conftest.er1 >conftest.err
33129 rm -f conftest.er1
33130 cat conftest.err >&5
33131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); } && {
33133 test -z "$ac_c_werror_flag" ||
33134 test ! -s conftest.err
33135 } && test -s conftest.$ac_objext; then
33136 eval "$as_ac_Header=yes"
33137 else
33138 $as_echo "$as_me: failed program was:" >&5
33139 sed 's/^/| /' conftest.$ac_ext >&5
33140
33141 eval "$as_ac_Header=no"
33142 fi
33143
33144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33145 fi
33146 ac_res=`eval 'as_val=${'$as_ac_Header'}
33147 $as_echo "$as_val"'`
33148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33149 $as_echo "$ac_res" >&6; }
33150 as_val=`eval 'as_val=${'$as_ac_Header'}
33151 $as_echo "$as_val"'`
33152 if test "x$as_val" = x""yes; then
33153 cat >>confdefs.h <<_ACEOF
33154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33155 _ACEOF
33156
33157 fi
33158
33159 done
33160
33161
33162 for ac_header in X11/XKBlib.h
33163 do
33164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33165 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33166 $as_echo_n "checking for $ac_header... " >&6; }
33167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33168 $as_echo_n "(cached) " >&6
33169 else
33170 cat >conftest.$ac_ext <<_ACEOF
33171 /* confdefs.h. */
33172 _ACEOF
33173 cat confdefs.h >>conftest.$ac_ext
33174 cat >>conftest.$ac_ext <<_ACEOF
33175 /* end confdefs.h. */
33176
33177 #if HAVE_X11_XLIB_H
33178 #include <X11/Xlib.h>
33179 #endif
33180
33181
33182 #include <$ac_header>
33183 _ACEOF
33184 rm -f conftest.$ac_objext
33185 if { (ac_try="$ac_compile"
33186 case "(($ac_try" in
33187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33188 *) ac_try_echo=$ac_try;;
33189 esac
33190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33191 $as_echo "$ac_try_echo") >&5
33192 (eval "$ac_compile") 2>conftest.er1
33193 ac_status=$?
33194 grep -v '^ *+' conftest.er1 >conftest.err
33195 rm -f conftest.er1
33196 cat conftest.err >&5
33197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198 (exit $ac_status); } && {
33199 test -z "$ac_c_werror_flag" ||
33200 test ! -s conftest.err
33201 } && test -s conftest.$ac_objext; then
33202 eval "$as_ac_Header=yes"
33203 else
33204 $as_echo "$as_me: failed program was:" >&5
33205 sed 's/^/| /' conftest.$ac_ext >&5
33206
33207 eval "$as_ac_Header=no"
33208 fi
33209
33210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33211 fi
33212 ac_res=`eval 'as_val=${'$as_ac_Header'}
33213 $as_echo "$as_val"'`
33214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33215 $as_echo "$ac_res" >&6; }
33216 as_val=`eval 'as_val=${'$as_ac_Header'}
33217 $as_echo "$as_val"'`
33218 if test "x$as_val" = x""yes; then
33219 cat >>confdefs.h <<_ACEOF
33220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33221 _ACEOF
33222
33223 fi
33224
33225 done
33226
33227 fi
33228 fi
33229
33230
33231
33232 if test "$wxUSE_DISPLAY" = "yes"; then
33233 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33234 { $as_echo "$as_me:$LINENO: checking for Xinerama" >&5
33235 $as_echo_n "checking for Xinerama... " >&6; }
33236
33237 ac_find_libraries=
33238 for ac_dir in $SEARCH_LIB;
33239 do
33240 for ac_extension in a so sl dylib dll.a; do
33241 if test -f "$ac_dir/libXinerama.$ac_extension"; then
33242 ac_find_libraries=$ac_dir
33243 break 2
33244 fi
33245 done
33246 done
33247
33248 if test "$ac_find_libraries" != "" ; then
33249
33250 if test "$ac_find_libraries" = "default location"; then
33251 ac_path_to_link=""
33252 else
33253 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33254 result=$?
33255 if test $result = 0; then
33256 ac_path_to_link=""
33257 else
33258 ac_path_to_link=" -L$ac_find_libraries"
33259 fi
33260 fi
33261
33262 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33263 LDFLAGS="$LDFLAGS $ac_path_to_link"
33264 fi
33265 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
33266 { $as_echo "$as_me:$LINENO: result: yes" >&5
33267 $as_echo "yes" >&6; }
33268
33269 { $as_echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
33270 $as_echo_n "checking for Xxf86vm extension... " >&6; }
33271
33272 ac_find_libraries=
33273 for ac_dir in $SEARCH_LIB;
33274 do
33275 for ac_extension in a so sl dylib dll.a; do
33276 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
33277 ac_find_libraries=$ac_dir
33278 break 2
33279 fi
33280 done
33281 done
33282
33283 if test "$ac_find_libraries" != "" ; then
33284 { $as_echo "$as_me:$LINENO: result: yes" >&5
33285 $as_echo "yes" >&6; }
33286
33287 for ac_header in X11/extensions/xf86vmode.h
33288 do
33289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33290 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33291 $as_echo_n "checking for $ac_header... " >&6; }
33292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33293 $as_echo_n "(cached) " >&6
33294 else
33295 cat >conftest.$ac_ext <<_ACEOF
33296 /* confdefs.h. */
33297 _ACEOF
33298 cat confdefs.h >>conftest.$ac_ext
33299 cat >>conftest.$ac_ext <<_ACEOF
33300 /* end confdefs.h. */
33301
33302 #if HAVE_X11_XLIB_H
33303 #include <X11/Xlib.h>
33304 #endif
33305
33306
33307 #include <$ac_header>
33308 _ACEOF
33309 rm -f conftest.$ac_objext
33310 if { (ac_try="$ac_compile"
33311 case "(($ac_try" in
33312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33313 *) ac_try_echo=$ac_try;;
33314 esac
33315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33316 $as_echo "$ac_try_echo") >&5
33317 (eval "$ac_compile") 2>conftest.er1
33318 ac_status=$?
33319 grep -v '^ *+' conftest.er1 >conftest.err
33320 rm -f conftest.er1
33321 cat conftest.err >&5
33322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33323 (exit $ac_status); } && {
33324 test -z "$ac_c_werror_flag" ||
33325 test ! -s conftest.err
33326 } && test -s conftest.$ac_objext; then
33327 eval "$as_ac_Header=yes"
33328 else
33329 $as_echo "$as_me: failed program was:" >&5
33330 sed 's/^/| /' conftest.$ac_ext >&5
33331
33332 eval "$as_ac_Header=no"
33333 fi
33334
33335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33336 fi
33337 ac_res=`eval 'as_val=${'$as_ac_Header'}
33338 $as_echo "$as_val"'`
33339 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33340 $as_echo "$ac_res" >&6; }
33341 as_val=`eval 'as_val=${'$as_ac_Header'}
33342 $as_echo "$as_val"'`
33343 if test "x$as_val" = x""yes; then
33344 cat >>confdefs.h <<_ACEOF
33345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33346 _ACEOF
33347
33348 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33349
33350 fi
33351
33352 done
33353
33354 else
33355 { $as_echo "$as_me:$LINENO: result: no" >&5
33356 $as_echo "no" >&6; }
33357 fi
33358
33359 else
33360 { $as_echo "$as_me:$LINENO: result: no" >&5
33361 $as_echo "no" >&6; }
33362 { $as_echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33363 $as_echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
33364 wxUSE_DISPLAY="no"
33365 fi
33366 elif test "$wxUSE_MSW" = 1; then
33367 { $as_echo "$as_me:$LINENO: checking for ddraw.h" >&5
33368 $as_echo_n "checking for ddraw.h... " >&6; }
33369 if test "${ac_cv_header_ddraw_h+set}" = set; then
33370 $as_echo_n "(cached) " >&6
33371 else
33372 cat >conftest.$ac_ext <<_ACEOF
33373 /* confdefs.h. */
33374 _ACEOF
33375 cat confdefs.h >>conftest.$ac_ext
33376 cat >>conftest.$ac_ext <<_ACEOF
33377 /* end confdefs.h. */
33378 #include <windows.h>
33379
33380 #include <ddraw.h>
33381 _ACEOF
33382 rm -f conftest.$ac_objext
33383 if { (ac_try="$ac_compile"
33384 case "(($ac_try" in
33385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33386 *) ac_try_echo=$ac_try;;
33387 esac
33388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33389 $as_echo "$ac_try_echo") >&5
33390 (eval "$ac_compile") 2>conftest.er1
33391 ac_status=$?
33392 grep -v '^ *+' conftest.er1 >conftest.err
33393 rm -f conftest.er1
33394 cat conftest.err >&5
33395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); } && {
33397 test -z "$ac_c_werror_flag" ||
33398 test ! -s conftest.err
33399 } && test -s conftest.$ac_objext; then
33400 ac_cv_header_ddraw_h=yes
33401 else
33402 $as_echo "$as_me: failed program was:" >&5
33403 sed 's/^/| /' conftest.$ac_ext >&5
33404
33405 ac_cv_header_ddraw_h=no
33406 fi
33407
33408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33409 fi
33410 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33411 $as_echo "$ac_cv_header_ddraw_h" >&6; }
33412
33413
33414 fi
33415 fi
33416
33417 if test "$wxUSE_DETECT_SM" = "yes"; then
33418 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33419 { $as_echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33420 $as_echo_n "checking for -lSM - X11 session management... " >&6; }
33421
33422 ac_find_libraries=
33423 for ac_dir in $SEARCH_LIB;
33424 do
33425 for ac_extension in a so sl dylib dll.a; do
33426 if test -f "$ac_dir/libSM.$ac_extension"; then
33427 ac_find_libraries=$ac_dir
33428 break 2
33429 fi
33430 done
33431 done
33432
33433 if test "$ac_find_libraries" != "" ; then
33434
33435 if test "$ac_find_libraries" = "default location"; then
33436 ac_path_to_link=""
33437 else
33438 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33439 result=$?
33440 if test $result = 0; then
33441 ac_path_to_link=""
33442 else
33443 ac_path_to_link=" -L$ac_find_libraries"
33444 fi
33445 fi
33446
33447 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33448 LDFLAGS="$LDFLAGS $ac_path_to_link"
33449 fi
33450 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33451 { $as_echo "$as_me:$LINENO: result: yes" >&5
33452 $as_echo "yes" >&6; }
33453 else
33454 { $as_echo "$as_me:$LINENO: result: no" >&5
33455 $as_echo "no" >&6; }
33456 { $as_echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33457 $as_echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33458 wxUSE_DETECT_SM="no"
33459 fi
33460 else
33461 wxUSE_DETECT_SM="no"
33462 fi
33463 fi
33464
33465
33466
33467 USE_OPENGL=0
33468 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
33469
33470
33471 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33472 OPENGL_LIBS="-framework OpenGL -framework AGL"
33473 elif test "$wxUSE_MSW" = 1; then
33474 OPENGL_LIBS="-lopengl32 -lglu32"
33475 elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
33476
33477 { $as_echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33478 $as_echo_n "checking for OpenGL headers... " >&6; }
33479
33480 ac_find_includes=
33481 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33482 do
33483 if test -f "$ac_dir/GL/gl.h"; then
33484 ac_find_includes=$ac_dir
33485 break
33486 fi
33487 done
33488
33489 if test "$ac_find_includes" != "" ; then
33490 { $as_echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33491 $as_echo "found in $ac_find_includes" >&6; }
33492
33493 if test "x$ac_find_includes" = "x/usr/include"; then
33494 ac_path_to_include=""
33495 else
33496 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33497 result=$?
33498 if test $result = 0; then
33499 ac_path_to_include=""
33500 else
33501 ac_path_to_include=" -I$ac_find_includes"
33502 fi
33503 fi
33504
33505 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33506 else
33507 { $as_echo "$as_me:$LINENO: result: not found" >&5
33508 $as_echo "not found" >&6; }
33509 fi
33510
33511 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33512 $as_echo_n "checking for GL/gl.h... " >&6; }
33513 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33514 $as_echo_n "(cached) " >&6
33515 else
33516 cat >conftest.$ac_ext <<_ACEOF
33517 /* confdefs.h. */
33518 _ACEOF
33519 cat confdefs.h >>conftest.$ac_ext
33520 cat >>conftest.$ac_ext <<_ACEOF
33521 /* end confdefs.h. */
33522
33523
33524 #include <GL/gl.h>
33525 _ACEOF
33526 rm -f conftest.$ac_objext
33527 if { (ac_try="$ac_compile"
33528 case "(($ac_try" in
33529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33530 *) ac_try_echo=$ac_try;;
33531 esac
33532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33533 $as_echo "$ac_try_echo") >&5
33534 (eval "$ac_compile") 2>conftest.er1
33535 ac_status=$?
33536 grep -v '^ *+' conftest.er1 >conftest.err
33537 rm -f conftest.er1
33538 cat conftest.err >&5
33539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); } && {
33541 test -z "$ac_c_werror_flag" ||
33542 test ! -s conftest.err
33543 } && test -s conftest.$ac_objext; then
33544 ac_cv_header_GL_gl_h=yes
33545 else
33546 $as_echo "$as_me: failed program was:" >&5
33547 sed 's/^/| /' conftest.$ac_ext >&5
33548
33549 ac_cv_header_GL_gl_h=no
33550 fi
33551
33552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33553 fi
33554 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33555 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
33556 if test "x$ac_cv_header_GL_gl_h" = x""yes; then
33557
33558 { $as_echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33559 $as_echo_n "checking for GL/glu.h... " >&6; }
33560 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33561 $as_echo_n "(cached) " >&6
33562 else
33563 cat >conftest.$ac_ext <<_ACEOF
33564 /* confdefs.h. */
33565 _ACEOF
33566 cat confdefs.h >>conftest.$ac_ext
33567 cat >>conftest.$ac_ext <<_ACEOF
33568 /* end confdefs.h. */
33569
33570
33571 #include <GL/glu.h>
33572 _ACEOF
33573 rm -f conftest.$ac_objext
33574 if { (ac_try="$ac_compile"
33575 case "(($ac_try" in
33576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33577 *) ac_try_echo=$ac_try;;
33578 esac
33579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33580 $as_echo "$ac_try_echo") >&5
33581 (eval "$ac_compile") 2>conftest.er1
33582 ac_status=$?
33583 grep -v '^ *+' conftest.er1 >conftest.err
33584 rm -f conftest.er1
33585 cat conftest.err >&5
33586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); } && {
33588 test -z "$ac_c_werror_flag" ||
33589 test ! -s conftest.err
33590 } && test -s conftest.$ac_objext; then
33591 ac_cv_header_GL_glu_h=yes
33592 else
33593 $as_echo "$as_me: failed program was:" >&5
33594 sed 's/^/| /' conftest.$ac_ext >&5
33595
33596 ac_cv_header_GL_glu_h=no
33597 fi
33598
33599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33600 fi
33601 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33602 $as_echo "$ac_cv_header_GL_glu_h" >&6; }
33603 if test "x$ac_cv_header_GL_glu_h" = x""yes; then
33604
33605 found_gl=0
33606
33607 { $as_echo "$as_me:$LINENO: checking for -lGL" >&5
33608 $as_echo_n "checking for -lGL... " >&6; }
33609
33610 ac_find_libraries=
33611 for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33612 do
33613 for ac_extension in a so sl dylib dll.a; do
33614 if test -f "$ac_dir/libGL.$ac_extension"; then
33615 ac_find_libraries=$ac_dir
33616 break 2
33617 fi
33618 done
33619 done
33620
33621 if test "$ac_find_libraries" != "" ; then
33622 { $as_echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33623 $as_echo "found in $ac_find_libraries" >&6; }
33624
33625
33626 if test "$ac_find_libraries" = "default location"; then
33627 ac_path_to_link=""
33628 else
33629 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33630 result=$?
33631 if test $result = 0; then
33632 ac_path_to_link=""
33633 else
33634 ac_path_to_link=" -L$ac_find_libraries"
33635 fi
33636 fi
33637
33638 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33639 LDFLAGS_GL="$ac_path_to_link"
33640 fi
33641
33642 { $as_echo "$as_me:$LINENO: checking for -lGLU" >&5
33643 $as_echo_n "checking for -lGLU... " >&6; }
33644
33645 ac_find_libraries=
33646 for ac_dir in $SEARCH_LIB;
33647 do
33648 for ac_extension in a so sl dylib dll.a; do
33649 if test -f "$ac_dir/libGLU.$ac_extension"; then
33650 ac_find_libraries=$ac_dir
33651 break 2
33652 fi
33653 done
33654 done
33655
33656 if test "$ac_find_libraries" != "" ; then
33657
33658 if test "$ac_find_libraries" = "default location"; then
33659 ac_path_to_link=""
33660 else
33661 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33662 result=$?
33663 if test $result = 0; then
33664 ac_path_to_link=""
33665 else
33666 ac_path_to_link=" -L$ac_find_libraries"
33667 fi
33668 fi
33669
33670 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33671 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33672 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33673 fi
33674
33675 found_gl=1
33676 OPENGL_LIBS="-lGL -lGLU"
33677 { $as_echo "$as_me:$LINENO: result: yes" >&5
33678 $as_echo "yes" >&6; }
33679 else
33680 { $as_echo "$as_me:$LINENO: result: no" >&5
33681 $as_echo "no" >&6; }
33682 fi
33683 else
33684 { $as_echo "$as_me:$LINENO: result: no" >&5
33685 $as_echo "no" >&6; }
33686 fi
33687
33688 if test "$found_gl" != 1; then
33689 { $as_echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33690 $as_echo_n "checking for -lMesaGL... " >&6; }
33691
33692 ac_find_libraries=
33693 for ac_dir in $SEARCH_LIB;
33694 do
33695 for ac_extension in a so sl dylib dll.a; do
33696 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33697 ac_find_libraries=$ac_dir
33698 break 2
33699 fi
33700 done
33701 done
33702
33703 if test "$ac_find_libraries" != "" ; then
33704
33705 if test "$ac_find_libraries" = "default location"; then
33706 ac_path_to_link=""
33707 else
33708 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33709 result=$?
33710 if test $result = 0; then
33711 ac_path_to_link=""
33712 else
33713 ac_path_to_link=" -L$ac_find_libraries"
33714 fi
33715 fi
33716
33717 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33718 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33719 { $as_echo "$as_me:$LINENO: result: yes" >&5
33720 $as_echo "yes" >&6; }
33721 else
33722 { $as_echo "$as_me:$LINENO: result: no" >&5
33723 $as_echo "no" >&6; }
33724 fi
33725 fi
33726
33727 fi
33728
33729
33730
33731 fi
33732
33733
33734
33735 if test "x$OPENGL_LIBS" = "x"; then
33736 if test "$wxUSE_OPENGL" = "yes"; then
33737 { { $as_echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33738 $as_echo "$as_me: error: OpenGL libraries not available" >&2;}
33739 { (exit 1); exit 1; }; }
33740 else
33741 { $as_echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
33742 $as_echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
33743 wxUSE_OPENGL=no
33744 USE_OPENGL=0
33745 fi
33746 else
33747 wxUSE_OPENGL=yes
33748 fi
33749 else
33750 { $as_echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33751 $as_echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33752 wxUSE_OPENGL="no"
33753 fi
33754
33755 if test "$wxUSE_OPENGL" = "yes"; then
33756 USE_OPENGL=1
33757 cat >>confdefs.h <<\_ACEOF
33758 #define wxUSE_OPENGL 1
33759 _ACEOF
33760
33761 cat >>confdefs.h <<\_ACEOF
33762 #define wxUSE_GLCANVAS 1
33763 _ACEOF
33764
33765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33766 fi
33767 fi
33768
33769
33770 if test -n "$TOOLKIT" ; then
33771 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33772 fi
33773
33774
33775
33776 if test "$wxUSE_SHARED" = "yes"; then
33777 case "${host}" in
33778 *-pc-msdosdjgpp )
33779 wxUSE_SHARED=no
33780 { $as_echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33781 $as_echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33782 ;;
33783 esac
33784 fi
33785
33786 if test "$wxUSE_SHARED" = "yes"; then
33787
33788
33789 case "${host}" in
33790 *-*-cygwin* | *-*-mingw* )
33791 wx_cv_version_script=no
33792 ;;
33793
33794 *)
33795 { $as_echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33796 $as_echo_n "checking if the linker accepts --version-script... " >&6; }
33797 if test "${wx_cv_version_script+set}" = set; then
33798 $as_echo_n "(cached) " >&6
33799 else
33800
33801 echo "VER_1 { *; };" >conftest.sym
33802 echo "int main() { return 0; }" >conftest.cpp
33803
33804 if { ac_try='
33805 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33806 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33808 (eval $ac_try) 2>&5
33809 ac_status=$?
33810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; } ; then
33812 if test -s conftest.stderr ; then
33813 wx_cv_version_script=no
33814 else
33815 wx_cv_version_script=yes
33816 fi
33817 else
33818 wx_cv_version_script=no
33819 fi
33820
33821 if test $wx_cv_version_script = yes
33822 then
33823 echo "struct B { virtual ~B() { } }; \
33824 struct D : public B { }; \
33825 void F() { D d; }" > conftest.cpp
33826
33827 if { ac_try='
33828 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33829 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33831 (eval $ac_try) 2>&5
33832 ac_status=$?
33833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834 (exit $ac_status); }; } &&
33835 { ac_try='
33836 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33837 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33839 (eval $ac_try) 2>&5
33840 ac_status=$?
33841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842 (exit $ac_status); }; }
33843 then
33844 if { ac_try='
33845 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33846 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33848 (eval $ac_try) 2>&5
33849 ac_status=$?
33850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33851 (exit $ac_status); }; }
33852 then
33853 wx_cv_version_script=yes
33854 else
33855 wx_cv_version_script=no
33856 fi
33857 fi
33858 fi
33859
33860 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33861 rm -f conftest1.output conftest2.output conftest3.output
33862
33863 fi
33864 { $as_echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33865 $as_echo "$wx_cv_version_script" >&6; }
33866
33867 if test $wx_cv_version_script = yes ; then
33868 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33869 fi
33870 ;;
33871 esac
33872
33873
33874 if test "$wxUSE_VISIBILITY" != "no"; then
33875
33876
33877 if test -n "$GCC"; then
33878 CFLAGS_VISIBILITY="-fvisibility=hidden"
33879 CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33880 { $as_echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33881 $as_echo_n "checking for symbols visibility support... " >&6; }
33882 if test "${wx_cv_cc_visibility+set}" = set; then
33883 $as_echo_n "(cached) " >&6
33884 else
33885
33886 wx_save_CXXFLAGS="$CXXFLAGS"
33887 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33888 ac_ext=cpp
33889 ac_cpp='$CXXCPP $CPPFLAGS'
33890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33893
33894 cat >conftest.$ac_ext <<_ACEOF
33895 /* confdefs.h. */
33896 _ACEOF
33897 cat confdefs.h >>conftest.$ac_ext
33898 cat >>conftest.$ac_ext <<_ACEOF
33899 /* end confdefs.h. */
33900
33901 /* we need gcc >= 4.0, older versions with visibility support
33902 didn't have class visibility: */
33903 #if defined(__GNUC__) && __GNUC__ < 4
33904 error this gcc is too old;
33905 #endif
33906
33907 /* visibility only makes sense for ELF shared libs: */
33908 #if !defined(__ELF__) && !defined(__APPLE__)
33909 error this platform has no visibility;
33910 #endif
33911
33912 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33913 extern __attribute__((__visibility__("default"))) int exportedvar;
33914 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33915 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33916 class __attribute__((__visibility__("default"))) Foo {
33917 Foo() {}
33918 };
33919
33920 int
33921 main ()
33922 {
33923
33924 ;
33925 return 0;
33926 }
33927 _ACEOF
33928 rm -f conftest.$ac_objext
33929 if { (ac_try="$ac_compile"
33930 case "(($ac_try" in
33931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33932 *) ac_try_echo=$ac_try;;
33933 esac
33934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33935 $as_echo "$ac_try_echo") >&5
33936 (eval "$ac_compile") 2>conftest.er1
33937 ac_status=$?
33938 grep -v '^ *+' conftest.er1 >conftest.err
33939 rm -f conftest.er1
33940 cat conftest.err >&5
33941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); } && {
33943 test -z "$ac_cxx_werror_flag" ||
33944 test ! -s conftest.err
33945 } && test -s conftest.$ac_objext; then
33946 wx_cv_cc_visibility=yes
33947 else
33948 $as_echo "$as_me: failed program was:" >&5
33949 sed 's/^/| /' conftest.$ac_ext >&5
33950
33951 wx_cv_cc_visibility=no
33952 fi
33953
33954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33955 ac_ext=c
33956 ac_cpp='$CPP $CPPFLAGS'
33957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33960
33961 CXXFLAGS="$wx_save_CXXFLAGS"
33962 fi
33963
33964 { $as_echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33965 $as_echo "$wx_cv_cc_visibility" >&6; }
33966 if test $wx_cv_cc_visibility = yes; then
33967 { $as_echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33968 $as_echo_n "checking for broken libstdc++ visibility... " >&6; }
33969 if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33970 $as_echo_n "(cached) " >&6
33971 else
33972
33973 wx_save_CXXFLAGS="$CXXFLAGS"
33974 wx_save_LDFLAGS="$LDFLAGS"
33975 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33976 LDFLAGS="$LDFLAGS -shared -fPIC"
33977 ac_ext=cpp
33978 ac_cpp='$CXXCPP $CPPFLAGS'
33979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33982
33983 cat >conftest.$ac_ext <<_ACEOF
33984 /* confdefs.h. */
33985 _ACEOF
33986 cat confdefs.h >>conftest.$ac_ext
33987 cat >>conftest.$ac_ext <<_ACEOF
33988 /* end confdefs.h. */
33989
33990 #include <string>
33991
33992 int
33993 main ()
33994 {
33995
33996 std::string s("hello");
33997 return s.length();
33998
33999 ;
34000 return 0;
34001 }
34002 _ACEOF
34003 rm -f conftest.$ac_objext conftest$ac_exeext
34004 if { (ac_try="$ac_link"
34005 case "(($ac_try" in
34006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34007 *) ac_try_echo=$ac_try;;
34008 esac
34009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34010 $as_echo "$ac_try_echo") >&5
34011 (eval "$ac_link") 2>conftest.er1
34012 ac_status=$?
34013 grep -v '^ *+' conftest.er1 >conftest.err
34014 rm -f conftest.er1
34015 cat conftest.err >&5
34016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34017 (exit $ac_status); } && {
34018 test -z "$ac_cxx_werror_flag" ||
34019 test ! -s conftest.err
34020 } && test -s conftest$ac_exeext && {
34021 test "$cross_compiling" = yes ||
34022 $as_test_x conftest$ac_exeext
34023 }; then
34024 wx_cv_cc_broken_libstdcxx_visibility=no
34025 else
34026 $as_echo "$as_me: failed program was:" >&5
34027 sed 's/^/| /' conftest.$ac_ext >&5
34028
34029 wx_cv_cc_broken_libstdcxx_visibility=yes
34030 fi
34031
34032 rm -rf conftest.dSYM
34033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34034 conftest$ac_exeext conftest.$ac_ext
34035 ac_ext=c
34036 ac_cpp='$CPP $CPPFLAGS'
34037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34040
34041 CXXFLAGS="$wx_save_CXXFLAGS"
34042 LDFLAGS="$wx_save_LDFLAGS"
34043 fi
34044
34045 { $as_echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
34046 $as_echo "$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
34047
34048 if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
34049 { $as_echo "$as_me:$LINENO: checking whether we can work around it" >&5
34050 $as_echo_n "checking whether we can work around it... " >&6; }
34051 if test "${wx_cv_cc_visibility_workaround+set}" = set; then
34052 $as_echo_n "(cached) " >&6
34053 else
34054
34055 ac_ext=cpp
34056 ac_cpp='$CXXCPP $CPPFLAGS'
34057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34060
34061 cat >conftest.$ac_ext <<_ACEOF
34062 /* confdefs.h. */
34063 _ACEOF
34064 cat confdefs.h >>conftest.$ac_ext
34065 cat >>conftest.$ac_ext <<_ACEOF
34066 /* end confdefs.h. */
34067
34068 #pragma GCC visibility push(default)
34069 #include <string>
34070 #pragma GCC visibility pop
34071
34072 int
34073 main ()
34074 {
34075
34076 std::string s("hello");
34077 return s.length();
34078
34079 ;
34080 return 0;
34081 }
34082 _ACEOF
34083 rm -f conftest.$ac_objext conftest$ac_exeext
34084 if { (ac_try="$ac_link"
34085 case "(($ac_try" in
34086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087 *) ac_try_echo=$ac_try;;
34088 esac
34089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34090 $as_echo "$ac_try_echo") >&5
34091 (eval "$ac_link") 2>conftest.er1
34092 ac_status=$?
34093 grep -v '^ *+' conftest.er1 >conftest.err
34094 rm -f conftest.er1
34095 cat conftest.err >&5
34096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097 (exit $ac_status); } && {
34098 test -z "$ac_cxx_werror_flag" ||
34099 test ! -s conftest.err
34100 } && test -s conftest$ac_exeext && {
34101 test "$cross_compiling" = yes ||
34102 $as_test_x conftest$ac_exeext
34103 }; then
34104 wx_cv_cc_visibility_workaround=no
34105 else
34106 $as_echo "$as_me: failed program was:" >&5
34107 sed 's/^/| /' conftest.$ac_ext >&5
34108
34109 wx_cv_cc_visibility_workaround=yes
34110 fi
34111
34112 rm -rf conftest.dSYM
34113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34114 conftest$ac_exeext conftest.$ac_ext
34115 ac_ext=c
34116 ac_cpp='$CPP $CPPFLAGS'
34117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34120
34121
34122 fi
34123
34124 { $as_echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
34125 $as_echo "$wx_cv_cc_visibility_workaround" >&6; }
34126
34127 if test $wx_cv_cc_visibility_workaround = no; then
34128 wx_cv_cc_visibility=no
34129 fi
34130 fi
34131 fi
34132
34133 if test $wx_cv_cc_visibility = yes; then
34134 cat >>confdefs.h <<\_ACEOF
34135 #define HAVE_VISIBILITY 1
34136 _ACEOF
34137
34138 if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
34139 cat >>confdefs.h <<\_ACEOF
34140 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
34141 _ACEOF
34142
34143 fi
34144 else
34145 CFLAGS_VISIBILITY=""
34146 CXXFLAGS_VISIBILITY=""
34147 fi
34148
34149
34150 fi
34151
34152 fi
34153
34154 if test "x$SUNCXX" = xyes; then
34155 SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
34156 WXCONFIG_RPATH="-R\$libdir"
34157 else
34158 case "${host}" in
34159 *-*-linux* | *-*-gnu* )
34160 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
34161 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
34162 ;;
34163
34164 *-*-solaris2* )
34165
34166 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
34167
34168 saveLdflags="$LDFLAGS"
34169 LDFLAGS="$saveLdflags -Wl,-rpath,/"
34170 { $as_echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
34171 $as_echo_n "checking if the linker accepts -rpath... " >&6; }
34172 cat >conftest.$ac_ext <<_ACEOF
34173 /* confdefs.h. */
34174 _ACEOF
34175 cat confdefs.h >>conftest.$ac_ext
34176 cat >>conftest.$ac_ext <<_ACEOF
34177 /* end confdefs.h. */
34178
34179 int
34180 main ()
34181 {
34182
34183 ;
34184 return 0;
34185 }
34186 _ACEOF
34187 rm -f conftest.$ac_objext conftest$ac_exeext
34188 if { (ac_try="$ac_link"
34189 case "(($ac_try" in
34190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34191 *) ac_try_echo=$ac_try;;
34192 esac
34193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34194 $as_echo "$ac_try_echo") >&5
34195 (eval "$ac_link") 2>conftest.er1
34196 ac_status=$?
34197 grep -v '^ *+' conftest.er1 >conftest.err
34198 rm -f conftest.er1
34199 cat conftest.err >&5
34200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201 (exit $ac_status); } && {
34202 test -z "$ac_c_werror_flag" ||
34203 test ! -s conftest.err
34204 } && test -s conftest$ac_exeext && {
34205 test "$cross_compiling" = yes ||
34206 $as_test_x conftest$ac_exeext
34207 }; then
34208
34209 { $as_echo "$as_me:$LINENO: result: yes" >&5
34210 $as_echo "yes" >&6; }
34211 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
34212 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
34213
34214 else
34215 $as_echo "$as_me: failed program was:" >&5
34216 sed 's/^/| /' conftest.$ac_ext >&5
34217
34218
34219 { $as_echo "$as_me:$LINENO: result: no" >&5
34220 $as_echo "no" >&6; }
34221 { $as_echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
34222 $as_echo_n "checking if the linker accepts -R... " >&6; }
34223 LDFLAGS="$saveLdflags -Wl,-R,/"
34224 cat >conftest.$ac_ext <<_ACEOF
34225 /* confdefs.h. */
34226 _ACEOF
34227 cat confdefs.h >>conftest.$ac_ext
34228 cat >>conftest.$ac_ext <<_ACEOF
34229 /* end confdefs.h. */
34230
34231 int
34232 main ()
34233 {
34234
34235 ;
34236 return 0;
34237 }
34238 _ACEOF
34239 rm -f conftest.$ac_objext conftest$ac_exeext
34240 if { (ac_try="$ac_link"
34241 case "(($ac_try" in
34242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34243 *) ac_try_echo=$ac_try;;
34244 esac
34245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34246 $as_echo "$ac_try_echo") >&5
34247 (eval "$ac_link") 2>conftest.er1
34248 ac_status=$?
34249 grep -v '^ *+' conftest.er1 >conftest.err
34250 rm -f conftest.er1
34251 cat conftest.err >&5
34252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34253 (exit $ac_status); } && {
34254 test -z "$ac_c_werror_flag" ||
34255 test ! -s conftest.err
34256 } && test -s conftest$ac_exeext && {
34257 test "$cross_compiling" = yes ||
34258 $as_test_x conftest$ac_exeext
34259 }; then
34260
34261 { $as_echo "$as_me:$LINENO: result: yes" >&5
34262 $as_echo "yes" >&6; }
34263 SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
34264 WXCONFIG_RPATH="-Wl,-R,\$libdir"
34265
34266 else
34267 $as_echo "$as_me: failed program was:" >&5
34268 sed 's/^/| /' conftest.$ac_ext >&5
34269
34270
34271 { $as_echo "$as_me:$LINENO: result: no" >&5
34272 $as_echo "no" >&6; }
34273
34274 fi
34275
34276 rm -rf conftest.dSYM
34277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34278 conftest$ac_exeext conftest.$ac_ext
34279
34280 fi
34281
34282 rm -rf conftest.dSYM
34283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34284 conftest$ac_exeext conftest.$ac_ext
34285 LDFLAGS="$saveLdflags"
34286 ;;
34287
34288 *-*-darwin* )
34289 install_name_tool=`which ${HOST_PREFIX}install_name_tool`
34290 if test "$install_name_tool" -a -x "$install_name_tool"; then
34291 DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
34292 cat <<EOF >change-install-names
34293 #!/bin/sh
34294 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
34295 for i in \${libnames} ; do
34296 ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i}
34297 for dep in \${libnames} ; do
34298 ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i}
34299 done
34300 done
34301 EOF
34302 chmod +x change-install-names
34303 DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${libdir} \$(wx_top_builddir)/lib"
34304 fi
34305
34306 HEADER_PAD_OPTION="-headerpad_max_install_names"
34307 ;;
34308
34309 *-*-cygwin* | *-*-mingw32* )
34310 ;;
34311
34312 *-*-hpux* )
34313 SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
34314 WXCONFIG_RPATH="-Wl,+b,\$libdir"
34315 ;;
34316
34317 esac
34318 fi
34319
34320 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
34321
34322 if test $wxUSE_RPATH = "no"; then
34323 SAMPLES_RPATH_FLAG=''
34324 DYLIB_PATH_POSTLINK=''
34325 WXCONFIG_RPATH=''
34326 fi
34327
34328 SHARED=1
34329
34330 else
34331
34332 config_linkage_component="-static"
34333 SHARED=0
34334
34335 fi
34336
34337
34338 UNICODE=0
34339 lib_unicode_suffix=
34340 WX_CHARTYPE="ansi"
34341 if test "$wxUSE_UNICODE" = "yes"; then
34342 lib_unicode_suffix=u
34343 WX_CHARTYPE="unicode"
34344 UNICODE=1
34345 fi
34346
34347 lib_debug_suffix=
34348 WX_DEBUGTYPE="release"
34349 DEBUG_FLAG=0
34350 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
34351 lib_debug_suffix=d
34352 WX_DEBUGTYPE="debug"
34353 DEBUG_FLAG=1
34354 fi
34355
34356 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
34357 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
34358
34359 DEBUG_INFO=0
34360 if test "$wxUSE_DEBUG_INFO" = "yes"; then
34361 DEBUG_INFO=1
34362 fi
34363
34364 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
34365
34366 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
34367
34368 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
34369
34370
34371 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
34372 WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34373 else
34374 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34375 fi
34376 if test "${TOOLKIT_DIR}" = "os2"; then
34377 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34378 else
34379 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34380 fi
34381
34382
34383
34384 if test "$wxUSE_COCOA" = 1; then
34385
34386 ac_ext=c
34387 ac_cpp='$CPP $CPPFLAGS'
34388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34391
34392 ac_ext=m
34393
34394 { $as_echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34395 $as_echo_n "checking if AppKit/NSEvent.h conflicts with CoreFoundation... " >&6; }
34396 cat >conftest.$ac_ext <<_ACEOF
34397 /* confdefs.h. */
34398 _ACEOF
34399 cat confdefs.h >>conftest.$ac_ext
34400 cat >>conftest.$ac_ext <<_ACEOF
34401 /* end confdefs.h. */
34402 #include <AppKit/NSEvent.h>
34403 #include <CoreFoundation/CoreFoundation.h>
34404
34405 int
34406 main ()
34407 {
34408
34409 ;
34410 return 0;
34411 }
34412 _ACEOF
34413 rm -f conftest.$ac_objext
34414 if { (ac_try="$ac_compile"
34415 case "(($ac_try" in
34416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34417 *) ac_try_echo=$ac_try;;
34418 esac
34419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34420 $as_echo "$ac_try_echo") >&5
34421 (eval "$ac_compile") 2>conftest.er1
34422 ac_status=$?
34423 grep -v '^ *+' conftest.er1 >conftest.err
34424 rm -f conftest.er1
34425 cat conftest.err >&5
34426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34427 (exit $ac_status); } && {
34428 test -z "$ac_c_werror_flag" ||
34429 test ! -s conftest.err
34430 } && test -s conftest.$ac_objext; then
34431 { $as_echo "$as_me:$LINENO: result: no" >&5
34432 $as_echo "no" >&6; }
34433 else
34434 $as_echo "$as_me: failed program was:" >&5
34435 sed 's/^/| /' conftest.$ac_ext >&5
34436
34437 { $as_echo "$as_me:$LINENO: result: yes" >&5
34438 $as_echo "yes" >&6; }
34439 { $as_echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34440 $as_echo_n "checking if defining __Point__ will fix it... " >&6; }
34441 cat >conftest.$ac_ext <<_ACEOF
34442 /* confdefs.h. */
34443 _ACEOF
34444 cat confdefs.h >>conftest.$ac_ext
34445 cat >>conftest.$ac_ext <<_ACEOF
34446 /* end confdefs.h. */
34447 #define __Point__ 1
34448 #include <AppKit/NSEvent.h>
34449 #include <CoreFoundation/CoreFoundation.h>
34450
34451 int
34452 main ()
34453 {
34454
34455 ;
34456 return 0;
34457 }
34458 _ACEOF
34459 rm -f conftest.$ac_objext
34460 if { (ac_try="$ac_compile"
34461 case "(($ac_try" in
34462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34463 *) ac_try_echo=$ac_try;;
34464 esac
34465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34466 $as_echo "$ac_try_echo") >&5
34467 (eval "$ac_compile") 2>conftest.er1
34468 ac_status=$?
34469 grep -v '^ *+' conftest.er1 >conftest.err
34470 rm -f conftest.er1
34471 cat conftest.err >&5
34472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34473 (exit $ac_status); } && {
34474 test -z "$ac_c_werror_flag" ||
34475 test ! -s conftest.err
34476 } && test -s conftest.$ac_objext; then
34477 { $as_echo "$as_me:$LINENO: result: yes" >&5
34478 $as_echo "yes" >&6; }
34479 cat >>confdefs.h <<\_ACEOF
34480 #define __Point__ 1
34481 _ACEOF
34482
34483
34484 else
34485 $as_echo "$as_me: failed program was:" >&5
34486 sed 's/^/| /' conftest.$ac_ext >&5
34487
34488 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
34489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34490 { { $as_echo "$as_me:$LINENO: error: no
34491 See \`config.log' for more details." >&5
34492 $as_echo "$as_me: error: no
34493 See \`config.log' for more details." >&2;}
34494 { (exit 1); exit 1; }; }; }
34495
34496 fi
34497
34498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34499
34500 fi
34501
34502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34503 ac_ext=c
34504 ac_cpp='$CPP $CPPFLAGS'
34505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34508
34509 fi
34510
34511
34512 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
34513 $as_echo_n "checking for mode_t... " >&6; }
34514 if test "${ac_cv_type_mode_t+set}" = set; then
34515 $as_echo_n "(cached) " >&6
34516 else
34517 ac_cv_type_mode_t=no
34518 cat >conftest.$ac_ext <<_ACEOF
34519 /* confdefs.h. */
34520 _ACEOF
34521 cat confdefs.h >>conftest.$ac_ext
34522 cat >>conftest.$ac_ext <<_ACEOF
34523 /* end confdefs.h. */
34524 $ac_includes_default
34525 int
34526 main ()
34527 {
34528 if (sizeof (mode_t))
34529 return 0;
34530 ;
34531 return 0;
34532 }
34533 _ACEOF
34534 rm -f conftest.$ac_objext
34535 if { (ac_try="$ac_compile"
34536 case "(($ac_try" in
34537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34538 *) ac_try_echo=$ac_try;;
34539 esac
34540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34541 $as_echo "$ac_try_echo") >&5
34542 (eval "$ac_compile") 2>conftest.er1
34543 ac_status=$?
34544 grep -v '^ *+' conftest.er1 >conftest.err
34545 rm -f conftest.er1
34546 cat conftest.err >&5
34547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548 (exit $ac_status); } && {
34549 test -z "$ac_c_werror_flag" ||
34550 test ! -s conftest.err
34551 } && test -s conftest.$ac_objext; then
34552 cat >conftest.$ac_ext <<_ACEOF
34553 /* confdefs.h. */
34554 _ACEOF
34555 cat confdefs.h >>conftest.$ac_ext
34556 cat >>conftest.$ac_ext <<_ACEOF
34557 /* end confdefs.h. */
34558 $ac_includes_default
34559 int
34560 main ()
34561 {
34562 if (sizeof ((mode_t)))
34563 return 0;
34564 ;
34565 return 0;
34566 }
34567 _ACEOF
34568 rm -f conftest.$ac_objext
34569 if { (ac_try="$ac_compile"
34570 case "(($ac_try" in
34571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34572 *) ac_try_echo=$ac_try;;
34573 esac
34574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34575 $as_echo "$ac_try_echo") >&5
34576 (eval "$ac_compile") 2>conftest.er1
34577 ac_status=$?
34578 grep -v '^ *+' conftest.er1 >conftest.err
34579 rm -f conftest.er1
34580 cat conftest.err >&5
34581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34582 (exit $ac_status); } && {
34583 test -z "$ac_c_werror_flag" ||
34584 test ! -s conftest.err
34585 } && test -s conftest.$ac_objext; then
34586 :
34587 else
34588 $as_echo "$as_me: failed program was:" >&5
34589 sed 's/^/| /' conftest.$ac_ext >&5
34590
34591 ac_cv_type_mode_t=yes
34592 fi
34593
34594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34595 else
34596 $as_echo "$as_me: failed program was:" >&5
34597 sed 's/^/| /' conftest.$ac_ext >&5
34598
34599
34600 fi
34601
34602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34603 fi
34604 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34605 $as_echo "$ac_cv_type_mode_t" >&6; }
34606 if test "x$ac_cv_type_mode_t" = x""yes; then
34607 :
34608 else
34609
34610 cat >>confdefs.h <<_ACEOF
34611 #define mode_t int
34612 _ACEOF
34613
34614 fi
34615
34616 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
34617 $as_echo_n "checking for off_t... " >&6; }
34618 if test "${ac_cv_type_off_t+set}" = set; then
34619 $as_echo_n "(cached) " >&6
34620 else
34621 ac_cv_type_off_t=no
34622 cat >conftest.$ac_ext <<_ACEOF
34623 /* confdefs.h. */
34624 _ACEOF
34625 cat confdefs.h >>conftest.$ac_ext
34626 cat >>conftest.$ac_ext <<_ACEOF
34627 /* end confdefs.h. */
34628 $ac_includes_default
34629 int
34630 main ()
34631 {
34632 if (sizeof (off_t))
34633 return 0;
34634 ;
34635 return 0;
34636 }
34637 _ACEOF
34638 rm -f conftest.$ac_objext
34639 if { (ac_try="$ac_compile"
34640 case "(($ac_try" in
34641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34642 *) ac_try_echo=$ac_try;;
34643 esac
34644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34645 $as_echo "$ac_try_echo") >&5
34646 (eval "$ac_compile") 2>conftest.er1
34647 ac_status=$?
34648 grep -v '^ *+' conftest.er1 >conftest.err
34649 rm -f conftest.er1
34650 cat conftest.err >&5
34651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34652 (exit $ac_status); } && {
34653 test -z "$ac_c_werror_flag" ||
34654 test ! -s conftest.err
34655 } && test -s conftest.$ac_objext; then
34656 cat >conftest.$ac_ext <<_ACEOF
34657 /* confdefs.h. */
34658 _ACEOF
34659 cat confdefs.h >>conftest.$ac_ext
34660 cat >>conftest.$ac_ext <<_ACEOF
34661 /* end confdefs.h. */
34662 $ac_includes_default
34663 int
34664 main ()
34665 {
34666 if (sizeof ((off_t)))
34667 return 0;
34668 ;
34669 return 0;
34670 }
34671 _ACEOF
34672 rm -f conftest.$ac_objext
34673 if { (ac_try="$ac_compile"
34674 case "(($ac_try" in
34675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34676 *) ac_try_echo=$ac_try;;
34677 esac
34678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34679 $as_echo "$ac_try_echo") >&5
34680 (eval "$ac_compile") 2>conftest.er1
34681 ac_status=$?
34682 grep -v '^ *+' conftest.er1 >conftest.err
34683 rm -f conftest.er1
34684 cat conftest.err >&5
34685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34686 (exit $ac_status); } && {
34687 test -z "$ac_c_werror_flag" ||
34688 test ! -s conftest.err
34689 } && test -s conftest.$ac_objext; then
34690 :
34691 else
34692 $as_echo "$as_me: failed program was:" >&5
34693 sed 's/^/| /' conftest.$ac_ext >&5
34694
34695 ac_cv_type_off_t=yes
34696 fi
34697
34698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34699 else
34700 $as_echo "$as_me: failed program was:" >&5
34701 sed 's/^/| /' conftest.$ac_ext >&5
34702
34703
34704 fi
34705
34706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34707 fi
34708 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34709 $as_echo "$ac_cv_type_off_t" >&6; }
34710 if test "x$ac_cv_type_off_t" = x""yes; then
34711 :
34712 else
34713
34714 cat >>confdefs.h <<_ACEOF
34715 #define off_t long int
34716 _ACEOF
34717
34718 fi
34719
34720 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
34721 $as_echo_n "checking for pid_t... " >&6; }
34722 if test "${ac_cv_type_pid_t+set}" = set; then
34723 $as_echo_n "(cached) " >&6
34724 else
34725 ac_cv_type_pid_t=no
34726 cat >conftest.$ac_ext <<_ACEOF
34727 /* confdefs.h. */
34728 _ACEOF
34729 cat confdefs.h >>conftest.$ac_ext
34730 cat >>conftest.$ac_ext <<_ACEOF
34731 /* end confdefs.h. */
34732 $ac_includes_default
34733 int
34734 main ()
34735 {
34736 if (sizeof (pid_t))
34737 return 0;
34738 ;
34739 return 0;
34740 }
34741 _ACEOF
34742 rm -f conftest.$ac_objext
34743 if { (ac_try="$ac_compile"
34744 case "(($ac_try" in
34745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34746 *) ac_try_echo=$ac_try;;
34747 esac
34748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34749 $as_echo "$ac_try_echo") >&5
34750 (eval "$ac_compile") 2>conftest.er1
34751 ac_status=$?
34752 grep -v '^ *+' conftest.er1 >conftest.err
34753 rm -f conftest.er1
34754 cat conftest.err >&5
34755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756 (exit $ac_status); } && {
34757 test -z "$ac_c_werror_flag" ||
34758 test ! -s conftest.err
34759 } && test -s conftest.$ac_objext; then
34760 cat >conftest.$ac_ext <<_ACEOF
34761 /* confdefs.h. */
34762 _ACEOF
34763 cat confdefs.h >>conftest.$ac_ext
34764 cat >>conftest.$ac_ext <<_ACEOF
34765 /* end confdefs.h. */
34766 $ac_includes_default
34767 int
34768 main ()
34769 {
34770 if (sizeof ((pid_t)))
34771 return 0;
34772 ;
34773 return 0;
34774 }
34775 _ACEOF
34776 rm -f conftest.$ac_objext
34777 if { (ac_try="$ac_compile"
34778 case "(($ac_try" in
34779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34780 *) ac_try_echo=$ac_try;;
34781 esac
34782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34783 $as_echo "$ac_try_echo") >&5
34784 (eval "$ac_compile") 2>conftest.er1
34785 ac_status=$?
34786 grep -v '^ *+' conftest.er1 >conftest.err
34787 rm -f conftest.er1
34788 cat conftest.err >&5
34789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790 (exit $ac_status); } && {
34791 test -z "$ac_c_werror_flag" ||
34792 test ! -s conftest.err
34793 } && test -s conftest.$ac_objext; then
34794 :
34795 else
34796 $as_echo "$as_me: failed program was:" >&5
34797 sed 's/^/| /' conftest.$ac_ext >&5
34798
34799 ac_cv_type_pid_t=yes
34800 fi
34801
34802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34803 else
34804 $as_echo "$as_me: failed program was:" >&5
34805 sed 's/^/| /' conftest.$ac_ext >&5
34806
34807
34808 fi
34809
34810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34811 fi
34812 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34813 $as_echo "$ac_cv_type_pid_t" >&6; }
34814 if test "x$ac_cv_type_pid_t" = x""yes; then
34815 :
34816 else
34817
34818 cat >>confdefs.h <<_ACEOF
34819 #define pid_t int
34820 _ACEOF
34821
34822 fi
34823
34824 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
34825 $as_echo_n "checking for size_t... " >&6; }
34826 if test "${ac_cv_type_size_t+set}" = set; then
34827 $as_echo_n "(cached) " >&6
34828 else
34829 ac_cv_type_size_t=no
34830 cat >conftest.$ac_ext <<_ACEOF
34831 /* confdefs.h. */
34832 _ACEOF
34833 cat confdefs.h >>conftest.$ac_ext
34834 cat >>conftest.$ac_ext <<_ACEOF
34835 /* end confdefs.h. */
34836 $ac_includes_default
34837 int
34838 main ()
34839 {
34840 if (sizeof (size_t))
34841 return 0;
34842 ;
34843 return 0;
34844 }
34845 _ACEOF
34846 rm -f conftest.$ac_objext
34847 if { (ac_try="$ac_compile"
34848 case "(($ac_try" in
34849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34850 *) ac_try_echo=$ac_try;;
34851 esac
34852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34853 $as_echo "$ac_try_echo") >&5
34854 (eval "$ac_compile") 2>conftest.er1
34855 ac_status=$?
34856 grep -v '^ *+' conftest.er1 >conftest.err
34857 rm -f conftest.er1
34858 cat conftest.err >&5
34859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860 (exit $ac_status); } && {
34861 test -z "$ac_c_werror_flag" ||
34862 test ! -s conftest.err
34863 } && test -s conftest.$ac_objext; then
34864 cat >conftest.$ac_ext <<_ACEOF
34865 /* confdefs.h. */
34866 _ACEOF
34867 cat confdefs.h >>conftest.$ac_ext
34868 cat >>conftest.$ac_ext <<_ACEOF
34869 /* end confdefs.h. */
34870 $ac_includes_default
34871 int
34872 main ()
34873 {
34874 if (sizeof ((size_t)))
34875 return 0;
34876 ;
34877 return 0;
34878 }
34879 _ACEOF
34880 rm -f conftest.$ac_objext
34881 if { (ac_try="$ac_compile"
34882 case "(($ac_try" in
34883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34884 *) ac_try_echo=$ac_try;;
34885 esac
34886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34887 $as_echo "$ac_try_echo") >&5
34888 (eval "$ac_compile") 2>conftest.er1
34889 ac_status=$?
34890 grep -v '^ *+' conftest.er1 >conftest.err
34891 rm -f conftest.er1
34892 cat conftest.err >&5
34893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34894 (exit $ac_status); } && {
34895 test -z "$ac_c_werror_flag" ||
34896 test ! -s conftest.err
34897 } && test -s conftest.$ac_objext; then
34898 :
34899 else
34900 $as_echo "$as_me: failed program was:" >&5
34901 sed 's/^/| /' conftest.$ac_ext >&5
34902
34903 ac_cv_type_size_t=yes
34904 fi
34905
34906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34907 else
34908 $as_echo "$as_me: failed program was:" >&5
34909 sed 's/^/| /' conftest.$ac_ext >&5
34910
34911
34912 fi
34913
34914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34915 fi
34916 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34917 $as_echo "$ac_cv_type_size_t" >&6; }
34918 if test "x$ac_cv_type_size_t" = x""yes; then
34919 :
34920 else
34921
34922 cat >>confdefs.h <<_ACEOF
34923 #define size_t unsigned int
34924 _ACEOF
34925
34926 fi
34927
34928
34929 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
34930 $as_echo_n "checking for ssize_t... " >&6; }
34931 if test "${ac_cv_type_ssize_t+set}" = set; then
34932 $as_echo_n "(cached) " >&6
34933 else
34934 ac_cv_type_ssize_t=no
34935 cat >conftest.$ac_ext <<_ACEOF
34936 /* confdefs.h. */
34937 _ACEOF
34938 cat confdefs.h >>conftest.$ac_ext
34939 cat >>conftest.$ac_ext <<_ACEOF
34940 /* end confdefs.h. */
34941 $ac_includes_default
34942 int
34943 main ()
34944 {
34945 if (sizeof (ssize_t))
34946 return 0;
34947 ;
34948 return 0;
34949 }
34950 _ACEOF
34951 rm -f conftest.$ac_objext
34952 if { (ac_try="$ac_compile"
34953 case "(($ac_try" in
34954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34955 *) ac_try_echo=$ac_try;;
34956 esac
34957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34958 $as_echo "$ac_try_echo") >&5
34959 (eval "$ac_compile") 2>conftest.er1
34960 ac_status=$?
34961 grep -v '^ *+' conftest.er1 >conftest.err
34962 rm -f conftest.er1
34963 cat conftest.err >&5
34964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965 (exit $ac_status); } && {
34966 test -z "$ac_c_werror_flag" ||
34967 test ! -s conftest.err
34968 } && test -s conftest.$ac_objext; then
34969 cat >conftest.$ac_ext <<_ACEOF
34970 /* confdefs.h. */
34971 _ACEOF
34972 cat confdefs.h >>conftest.$ac_ext
34973 cat >>conftest.$ac_ext <<_ACEOF
34974 /* end confdefs.h. */
34975 $ac_includes_default
34976 int
34977 main ()
34978 {
34979 if (sizeof ((ssize_t)))
34980 return 0;
34981 ;
34982 return 0;
34983 }
34984 _ACEOF
34985 rm -f conftest.$ac_objext
34986 if { (ac_try="$ac_compile"
34987 case "(($ac_try" in
34988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34989 *) ac_try_echo=$ac_try;;
34990 esac
34991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34992 $as_echo "$ac_try_echo") >&5
34993 (eval "$ac_compile") 2>conftest.er1
34994 ac_status=$?
34995 grep -v '^ *+' conftest.er1 >conftest.err
34996 rm -f conftest.er1
34997 cat conftest.err >&5
34998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999 (exit $ac_status); } && {
35000 test -z "$ac_c_werror_flag" ||
35001 test ! -s conftest.err
35002 } && test -s conftest.$ac_objext; then
35003 :
35004 else
35005 $as_echo "$as_me: failed program was:" >&5
35006 sed 's/^/| /' conftest.$ac_ext >&5
35007
35008 ac_cv_type_ssize_t=yes
35009 fi
35010
35011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35012 else
35013 $as_echo "$as_me: failed program was:" >&5
35014 sed 's/^/| /' conftest.$ac_ext >&5
35015
35016
35017 fi
35018
35019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35020 fi
35021 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
35022 $as_echo "$ac_cv_type_ssize_t" >&6; }
35023 if test "x$ac_cv_type_ssize_t" = x""yes; then
35024
35025 cat >>confdefs.h <<_ACEOF
35026 #define HAVE_SSIZE_T 1
35027 _ACEOF
35028
35029
35030 fi
35031
35032
35033 ac_ext=cpp
35034 ac_cpp='$CXXCPP $CPPFLAGS'
35035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35038 { $as_echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
35039 $as_echo_n "checking if size_t is unsigned int... " >&6; }
35040 if test "${wx_cv_size_t_is_uint+set}" = set; then
35041 $as_echo_n "(cached) " >&6
35042 else
35043
35044 cat >conftest.$ac_ext <<_ACEOF
35045 /* confdefs.h. */
35046 _ACEOF
35047 cat confdefs.h >>conftest.$ac_ext
35048 cat >>conftest.$ac_ext <<_ACEOF
35049 /* end confdefs.h. */
35050 #include <stddef.h>
35051 int
35052 main ()
35053 {
35054
35055 return 0; }
35056
35057 struct Foo { void foo(size_t); void foo(unsigned int); };
35058
35059 int bar() {
35060
35061 ;
35062 return 0;
35063 }
35064 _ACEOF
35065 rm -f conftest.$ac_objext
35066 if { (ac_try="$ac_compile"
35067 case "(($ac_try" in
35068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35069 *) ac_try_echo=$ac_try;;
35070 esac
35071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35072 $as_echo "$ac_try_echo") >&5
35073 (eval "$ac_compile") 2>conftest.er1
35074 ac_status=$?
35075 grep -v '^ *+' conftest.er1 >conftest.err
35076 rm -f conftest.er1
35077 cat conftest.err >&5
35078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35079 (exit $ac_status); } && {
35080 test -z "$ac_cxx_werror_flag" ||
35081 test ! -s conftest.err
35082 } && test -s conftest.$ac_objext; then
35083 wx_cv_size_t_is_uint=no
35084 else
35085 $as_echo "$as_me: failed program was:" >&5
35086 sed 's/^/| /' conftest.$ac_ext >&5
35087
35088 wx_cv_size_t_is_uint=yes
35089
35090 fi
35091
35092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35093
35094
35095 fi
35096 { $as_echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
35097 $as_echo "$wx_cv_size_t_is_uint" >&6; }
35098
35099 if test "$wx_cv_size_t_is_uint" = "yes"; then
35100 cat >>confdefs.h <<\_ACEOF
35101 #define wxSIZE_T_IS_UINT 1
35102 _ACEOF
35103
35104 else
35105 { $as_echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
35106 $as_echo_n "checking if size_t is unsigned long... " >&6; }
35107 if test "${wx_cv_size_t_is_ulong+set}" = set; then
35108 $as_echo_n "(cached) " >&6
35109 else
35110 cat >conftest.$ac_ext <<_ACEOF
35111 /* confdefs.h. */
35112 _ACEOF
35113 cat confdefs.h >>conftest.$ac_ext
35114 cat >>conftest.$ac_ext <<_ACEOF
35115 /* end confdefs.h. */
35116 #include <stddef.h>
35117 int
35118 main ()
35119 {
35120
35121 return 0; }
35122
35123 struct Foo { void foo(size_t); void foo(unsigned long); };
35124
35125 int bar() {
35126
35127 ;
35128 return 0;
35129 }
35130 _ACEOF
35131 rm -f conftest.$ac_objext
35132 if { (ac_try="$ac_compile"
35133 case "(($ac_try" in
35134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35135 *) ac_try_echo=$ac_try;;
35136 esac
35137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35138 $as_echo "$ac_try_echo") >&5
35139 (eval "$ac_compile") 2>conftest.er1
35140 ac_status=$?
35141 grep -v '^ *+' conftest.er1 >conftest.err
35142 rm -f conftest.er1
35143 cat conftest.err >&5
35144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145 (exit $ac_status); } && {
35146 test -z "$ac_cxx_werror_flag" ||
35147 test ! -s conftest.err
35148 } && test -s conftest.$ac_objext; then
35149 wx_cv_size_t_is_ulong=no
35150 else
35151 $as_echo "$as_me: failed program was:" >&5
35152 sed 's/^/| /' conftest.$ac_ext >&5
35153
35154 wx_cv_size_t_is_ulong=yes
35155
35156 fi
35157
35158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35159
35160 fi
35161 { $as_echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
35162 $as_echo "$wx_cv_size_t_is_ulong" >&6; }
35163
35164 if test "$wx_cv_size_t_is_ulong" = "yes"; then
35165 cat >>confdefs.h <<\_ACEOF
35166 #define wxSIZE_T_IS_ULONG 1
35167 _ACEOF
35168
35169 fi
35170 fi
35171
35172 { $as_echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
35173 $as_echo_n "checking if wchar_t is separate type... " >&6; }
35174 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
35175 $as_echo_n "(cached) " >&6
35176 else
35177 cat >conftest.$ac_ext <<_ACEOF
35178 /* confdefs.h. */
35179 _ACEOF
35180 cat confdefs.h >>conftest.$ac_ext
35181 cat >>conftest.$ac_ext <<_ACEOF
35182 /* end confdefs.h. */
35183 #include <wchar.h>
35184 int
35185 main ()
35186 {
35187
35188 return 0; }
35189
35190 struct Foo { void foo(wchar_t);
35191 void foo(unsigned short);
35192 void foo(unsigned int);
35193 void foo(unsigned long); };
35194
35195 int bar() {
35196
35197 ;
35198 return 0;
35199 }
35200 _ACEOF
35201 rm -f conftest.$ac_objext
35202 if { (ac_try="$ac_compile"
35203 case "(($ac_try" in
35204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35205 *) ac_try_echo=$ac_try;;
35206 esac
35207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35208 $as_echo "$ac_try_echo") >&5
35209 (eval "$ac_compile") 2>conftest.er1
35210 ac_status=$?
35211 grep -v '^ *+' conftest.er1 >conftest.err
35212 rm -f conftest.er1
35213 cat conftest.err >&5
35214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35215 (exit $ac_status); } && {
35216 test -z "$ac_cxx_werror_flag" ||
35217 test ! -s conftest.err
35218 } && test -s conftest.$ac_objext; then
35219 wx_cv_wchar_t_is_separate_type=yes
35220 else
35221 $as_echo "$as_me: failed program was:" >&5
35222 sed 's/^/| /' conftest.$ac_ext >&5
35223
35224 wx_cv_wchar_t_is_separate_type=no
35225
35226 fi
35227
35228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35229
35230 fi
35231 { $as_echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
35232 $as_echo "$wx_cv_wchar_t_is_separate_type" >&6; }
35233
35234 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
35235 cat >>confdefs.h <<\_ACEOF
35236 #define wxWCHAR_T_IS_REAL_TYPE 1
35237 _ACEOF
35238
35239 else
35240 cat >>confdefs.h <<\_ACEOF
35241 #define wxWCHAR_T_IS_REAL_TYPE 0
35242 _ACEOF
35243
35244 fi
35245
35246 ac_ext=c
35247 ac_cpp='$CPP $CPPFLAGS'
35248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35251
35252
35253 { $as_echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
35254 $as_echo_n "checking for pw_gecos in struct passwd... " >&6; }
35255 if test "${wx_cv_struct_pw_gecos+set}" = set; then
35256 $as_echo_n "(cached) " >&6
35257 else
35258
35259 cat >conftest.$ac_ext <<_ACEOF
35260 /* confdefs.h. */
35261 _ACEOF
35262 cat confdefs.h >>conftest.$ac_ext
35263 cat >>conftest.$ac_ext <<_ACEOF
35264 /* end confdefs.h. */
35265 #include <pwd.h>
35266 int
35267 main ()
35268 {
35269
35270 char *p;
35271 struct passwd *pw;
35272 p = pw->pw_gecos;
35273
35274 ;
35275 return 0;
35276 }
35277 _ACEOF
35278 rm -f conftest.$ac_objext
35279 if { (ac_try="$ac_compile"
35280 case "(($ac_try" in
35281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35282 *) ac_try_echo=$ac_try;;
35283 esac
35284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35285 $as_echo "$ac_try_echo") >&5
35286 (eval "$ac_compile") 2>conftest.er1
35287 ac_status=$?
35288 grep -v '^ *+' conftest.er1 >conftest.err
35289 rm -f conftest.er1
35290 cat conftest.err >&5
35291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292 (exit $ac_status); } && {
35293 test -z "$ac_c_werror_flag" ||
35294 test ! -s conftest.err
35295 } && test -s conftest.$ac_objext; then
35296
35297 wx_cv_struct_pw_gecos=yes
35298
35299 else
35300 $as_echo "$as_me: failed program was:" >&5
35301 sed 's/^/| /' conftest.$ac_ext >&5
35302
35303
35304 wx_cv_struct_pw_gecos=no
35305
35306
35307 fi
35308
35309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35310
35311
35312 fi
35313 { $as_echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
35314 $as_echo "$wx_cv_struct_pw_gecos" >&6; }
35315
35316 if test "$wx_cv_struct_pw_gecos" = "yes"; then
35317 cat >>confdefs.h <<\_ACEOF
35318 #define HAVE_PW_GECOS 1
35319 _ACEOF
35320
35321 fi
35322
35323
35324 if test "$wxUSE_WCHAR_T" = "yes"; then
35325 cat >>confdefs.h <<\_ACEOF
35326 #define wxUSE_WCHAR_T 1
35327 _ACEOF
35328
35329
35330 WCSLEN_FOUND=0
35331 WCHAR_LINK=
35332
35333 for ac_func in wcslen
35334 do
35335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35336 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35337 $as_echo_n "checking for $ac_func... " >&6; }
35338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35339 $as_echo_n "(cached) " >&6
35340 else
35341 cat >conftest.$ac_ext <<_ACEOF
35342 /* confdefs.h. */
35343 _ACEOF
35344 cat confdefs.h >>conftest.$ac_ext
35345 cat >>conftest.$ac_ext <<_ACEOF
35346 /* end confdefs.h. */
35347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35349 #define $ac_func innocuous_$ac_func
35350
35351 /* System header to define __stub macros and hopefully few prototypes,
35352 which can conflict with char $ac_func (); below.
35353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35354 <limits.h> exists even on freestanding compilers. */
35355
35356 #ifdef __STDC__
35357 # include <limits.h>
35358 #else
35359 # include <assert.h>
35360 #endif
35361
35362 #undef $ac_func
35363
35364 /* Override any GCC internal prototype to avoid an error.
35365 Use char because int might match the return type of a GCC
35366 builtin and then its argument prototype would still apply. */
35367 #ifdef __cplusplus
35368 extern "C"
35369 #endif
35370 char $ac_func ();
35371 /* The GNU C library defines this for functions which it implements
35372 to always fail with ENOSYS. Some functions are actually named
35373 something starting with __ and the normal name is an alias. */
35374 #if defined __stub_$ac_func || defined __stub___$ac_func
35375 choke me
35376 #endif
35377
35378 int
35379 main ()
35380 {
35381 return $ac_func ();
35382 ;
35383 return 0;
35384 }
35385 _ACEOF
35386 rm -f conftest.$ac_objext conftest$ac_exeext
35387 if { (ac_try="$ac_link"
35388 case "(($ac_try" in
35389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35390 *) ac_try_echo=$ac_try;;
35391 esac
35392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35393 $as_echo "$ac_try_echo") >&5
35394 (eval "$ac_link") 2>conftest.er1
35395 ac_status=$?
35396 grep -v '^ *+' conftest.er1 >conftest.err
35397 rm -f conftest.er1
35398 cat conftest.err >&5
35399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35400 (exit $ac_status); } && {
35401 test -z "$ac_c_werror_flag" ||
35402 test ! -s conftest.err
35403 } && test -s conftest$ac_exeext && {
35404 test "$cross_compiling" = yes ||
35405 $as_test_x conftest$ac_exeext
35406 }; then
35407 eval "$as_ac_var=yes"
35408 else
35409 $as_echo "$as_me: failed program was:" >&5
35410 sed 's/^/| /' conftest.$ac_ext >&5
35411
35412 eval "$as_ac_var=no"
35413 fi
35414
35415 rm -rf conftest.dSYM
35416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35417 conftest$ac_exeext conftest.$ac_ext
35418 fi
35419 ac_res=`eval 'as_val=${'$as_ac_var'}
35420 $as_echo "$as_val"'`
35421 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35422 $as_echo "$ac_res" >&6; }
35423 as_val=`eval 'as_val=${'$as_ac_var'}
35424 $as_echo "$as_val"'`
35425 if test "x$as_val" = x""yes; then
35426 cat >>confdefs.h <<_ACEOF
35427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35428 _ACEOF
35429 WCSLEN_FOUND=1
35430 fi
35431 done
35432
35433
35434 if test "$WCSLEN_FOUND" = 0; then
35435 if test "$TOOLKIT" = "MSW"; then
35436 { $as_echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
35437 $as_echo_n "checking for wcslen in -lmsvcrt... " >&6; }
35438 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
35439 $as_echo_n "(cached) " >&6
35440 else
35441 ac_check_lib_save_LIBS=$LIBS
35442 LIBS="-lmsvcrt $LIBS"
35443 cat >conftest.$ac_ext <<_ACEOF
35444 /* confdefs.h. */
35445 _ACEOF
35446 cat confdefs.h >>conftest.$ac_ext
35447 cat >>conftest.$ac_ext <<_ACEOF
35448 /* end confdefs.h. */
35449
35450 /* Override any GCC internal prototype to avoid an error.
35451 Use char because int might match the return type of a GCC
35452 builtin and then its argument prototype would still apply. */
35453 #ifdef __cplusplus
35454 extern "C"
35455 #endif
35456 char wcslen ();
35457 int
35458 main ()
35459 {
35460 return wcslen ();
35461 ;
35462 return 0;
35463 }
35464 _ACEOF
35465 rm -f conftest.$ac_objext conftest$ac_exeext
35466 if { (ac_try="$ac_link"
35467 case "(($ac_try" in
35468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35469 *) ac_try_echo=$ac_try;;
35470 esac
35471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35472 $as_echo "$ac_try_echo") >&5
35473 (eval "$ac_link") 2>conftest.er1
35474 ac_status=$?
35475 grep -v '^ *+' conftest.er1 >conftest.err
35476 rm -f conftest.er1
35477 cat conftest.err >&5
35478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479 (exit $ac_status); } && {
35480 test -z "$ac_c_werror_flag" ||
35481 test ! -s conftest.err
35482 } && test -s conftest$ac_exeext && {
35483 test "$cross_compiling" = yes ||
35484 $as_test_x conftest$ac_exeext
35485 }; then
35486 ac_cv_lib_msvcrt_wcslen=yes
35487 else
35488 $as_echo "$as_me: failed program was:" >&5
35489 sed 's/^/| /' conftest.$ac_ext >&5
35490
35491 ac_cv_lib_msvcrt_wcslen=no
35492 fi
35493
35494 rm -rf conftest.dSYM
35495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35496 conftest$ac_exeext conftest.$ac_ext
35497 LIBS=$ac_check_lib_save_LIBS
35498 fi
35499 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
35500 $as_echo "$ac_cv_lib_msvcrt_wcslen" >&6; }
35501 if test "x$ac_cv_lib_msvcrt_wcslen" = x""yes; then
35502 WCHAR_OK=1
35503 fi
35504
35505 else
35506 { $as_echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
35507 $as_echo_n "checking for wcslen in -lw... " >&6; }
35508 if test "${ac_cv_lib_w_wcslen+set}" = set; then
35509 $as_echo_n "(cached) " >&6
35510 else
35511 ac_check_lib_save_LIBS=$LIBS
35512 LIBS="-lw $LIBS"
35513 cat >conftest.$ac_ext <<_ACEOF
35514 /* confdefs.h. */
35515 _ACEOF
35516 cat confdefs.h >>conftest.$ac_ext
35517 cat >>conftest.$ac_ext <<_ACEOF
35518 /* end confdefs.h. */
35519
35520 /* Override any GCC internal prototype to avoid an error.
35521 Use char because int might match the return type of a GCC
35522 builtin and then its argument prototype would still apply. */
35523 #ifdef __cplusplus
35524 extern "C"
35525 #endif
35526 char wcslen ();
35527 int
35528 main ()
35529 {
35530 return wcslen ();
35531 ;
35532 return 0;
35533 }
35534 _ACEOF
35535 rm -f conftest.$ac_objext conftest$ac_exeext
35536 if { (ac_try="$ac_link"
35537 case "(($ac_try" in
35538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35539 *) ac_try_echo=$ac_try;;
35540 esac
35541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35542 $as_echo "$ac_try_echo") >&5
35543 (eval "$ac_link") 2>conftest.er1
35544 ac_status=$?
35545 grep -v '^ *+' conftest.er1 >conftest.err
35546 rm -f conftest.er1
35547 cat conftest.err >&5
35548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35549 (exit $ac_status); } && {
35550 test -z "$ac_c_werror_flag" ||
35551 test ! -s conftest.err
35552 } && test -s conftest$ac_exeext && {
35553 test "$cross_compiling" = yes ||
35554 $as_test_x conftest$ac_exeext
35555 }; then
35556 ac_cv_lib_w_wcslen=yes
35557 else
35558 $as_echo "$as_me: failed program was:" >&5
35559 sed 's/^/| /' conftest.$ac_ext >&5
35560
35561 ac_cv_lib_w_wcslen=no
35562 fi
35563
35564 rm -rf conftest.dSYM
35565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35566 conftest$ac_exeext conftest.$ac_ext
35567 LIBS=$ac_check_lib_save_LIBS
35568 fi
35569 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
35570 $as_echo "$ac_cv_lib_w_wcslen" >&6; }
35571 if test "x$ac_cv_lib_w_wcslen" = x""yes; then
35572
35573 WCHAR_LINK=" -lw"
35574 WCSLEN_FOUND=1
35575
35576 fi
35577
35578 fi
35579 fi
35580
35581 if test "$WCSLEN_FOUND" = 1; then
35582 cat >>confdefs.h <<\_ACEOF
35583 #define HAVE_WCSLEN 1
35584 _ACEOF
35585
35586 fi
35587
35588
35589
35590
35591
35592
35593 for ac_func in wcsdup strnlen wcsnlen wcscasecmp wcsncasecmp
35594 do
35595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35596 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35597 $as_echo_n "checking for $ac_func... " >&6; }
35598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35599 $as_echo_n "(cached) " >&6
35600 else
35601 cat >conftest.$ac_ext <<_ACEOF
35602 /* confdefs.h. */
35603 _ACEOF
35604 cat confdefs.h >>conftest.$ac_ext
35605 cat >>conftest.$ac_ext <<_ACEOF
35606 /* end confdefs.h. */
35607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35609 #define $ac_func innocuous_$ac_func
35610
35611 /* System header to define __stub macros and hopefully few prototypes,
35612 which can conflict with char $ac_func (); below.
35613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35614 <limits.h> exists even on freestanding compilers. */
35615
35616 #ifdef __STDC__
35617 # include <limits.h>
35618 #else
35619 # include <assert.h>
35620 #endif
35621
35622 #undef $ac_func
35623
35624 /* Override any GCC internal prototype to avoid an error.
35625 Use char because int might match the return type of a GCC
35626 builtin and then its argument prototype would still apply. */
35627 #ifdef __cplusplus
35628 extern "C"
35629 #endif
35630 char $ac_func ();
35631 /* The GNU C library defines this for functions which it implements
35632 to always fail with ENOSYS. Some functions are actually named
35633 something starting with __ and the normal name is an alias. */
35634 #if defined __stub_$ac_func || defined __stub___$ac_func
35635 choke me
35636 #endif
35637
35638 int
35639 main ()
35640 {
35641 return $ac_func ();
35642 ;
35643 return 0;
35644 }
35645 _ACEOF
35646 rm -f conftest.$ac_objext conftest$ac_exeext
35647 if { (ac_try="$ac_link"
35648 case "(($ac_try" in
35649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35650 *) ac_try_echo=$ac_try;;
35651 esac
35652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35653 $as_echo "$ac_try_echo") >&5
35654 (eval "$ac_link") 2>conftest.er1
35655 ac_status=$?
35656 grep -v '^ *+' conftest.er1 >conftest.err
35657 rm -f conftest.er1
35658 cat conftest.err >&5
35659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660 (exit $ac_status); } && {
35661 test -z "$ac_c_werror_flag" ||
35662 test ! -s conftest.err
35663 } && test -s conftest$ac_exeext && {
35664 test "$cross_compiling" = yes ||
35665 $as_test_x conftest$ac_exeext
35666 }; then
35667 eval "$as_ac_var=yes"
35668 else
35669 $as_echo "$as_me: failed program was:" >&5
35670 sed 's/^/| /' conftest.$ac_ext >&5
35671
35672 eval "$as_ac_var=no"
35673 fi
35674
35675 rm -rf conftest.dSYM
35676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35677 conftest$ac_exeext conftest.$ac_ext
35678 fi
35679 ac_res=`eval 'as_val=${'$as_ac_var'}
35680 $as_echo "$as_val"'`
35681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35682 $as_echo "$ac_res" >&6; }
35683 as_val=`eval 'as_val=${'$as_ac_var'}
35684 $as_echo "$as_val"'`
35685 if test "x$as_val" = x""yes; then
35686 cat >>confdefs.h <<_ACEOF
35687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35688 _ACEOF
35689
35690 fi
35691 done
35692
35693
35694 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
35695 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
35696 fi
35697
35698 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
35699 $as_echo_n "checking for mbstate_t... " >&6; }
35700 if test "${ac_cv_type_mbstate_t+set}" = set; then
35701 $as_echo_n "(cached) " >&6
35702 else
35703 ac_cv_type_mbstate_t=no
35704 cat >conftest.$ac_ext <<_ACEOF
35705 /* confdefs.h. */
35706 _ACEOF
35707 cat confdefs.h >>conftest.$ac_ext
35708 cat >>conftest.$ac_ext <<_ACEOF
35709 /* end confdefs.h. */
35710 #include <wchar.h>
35711
35712 int
35713 main ()
35714 {
35715 if (sizeof (mbstate_t))
35716 return 0;
35717 ;
35718 return 0;
35719 }
35720 _ACEOF
35721 rm -f conftest.$ac_objext
35722 if { (ac_try="$ac_compile"
35723 case "(($ac_try" in
35724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35725 *) ac_try_echo=$ac_try;;
35726 esac
35727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35728 $as_echo "$ac_try_echo") >&5
35729 (eval "$ac_compile") 2>conftest.er1
35730 ac_status=$?
35731 grep -v '^ *+' conftest.er1 >conftest.err
35732 rm -f conftest.er1
35733 cat conftest.err >&5
35734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35735 (exit $ac_status); } && {
35736 test -z "$ac_c_werror_flag" ||
35737 test ! -s conftest.err
35738 } && test -s conftest.$ac_objext; then
35739 cat >conftest.$ac_ext <<_ACEOF
35740 /* confdefs.h. */
35741 _ACEOF
35742 cat confdefs.h >>conftest.$ac_ext
35743 cat >>conftest.$ac_ext <<_ACEOF
35744 /* end confdefs.h. */
35745 #include <wchar.h>
35746
35747 int
35748 main ()
35749 {
35750 if (sizeof ((mbstate_t)))
35751 return 0;
35752 ;
35753 return 0;
35754 }
35755 _ACEOF
35756 rm -f conftest.$ac_objext
35757 if { (ac_try="$ac_compile"
35758 case "(($ac_try" in
35759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35760 *) ac_try_echo=$ac_try;;
35761 esac
35762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35763 $as_echo "$ac_try_echo") >&5
35764 (eval "$ac_compile") 2>conftest.er1
35765 ac_status=$?
35766 grep -v '^ *+' conftest.er1 >conftest.err
35767 rm -f conftest.er1
35768 cat conftest.err >&5
35769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35770 (exit $ac_status); } && {
35771 test -z "$ac_c_werror_flag" ||
35772 test ! -s conftest.err
35773 } && test -s conftest.$ac_objext; then
35774 :
35775 else
35776 $as_echo "$as_me: failed program was:" >&5
35777 sed 's/^/| /' conftest.$ac_ext >&5
35778
35779 ac_cv_type_mbstate_t=yes
35780 fi
35781
35782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35783 else
35784 $as_echo "$as_me: failed program was:" >&5
35785 sed 's/^/| /' conftest.$ac_ext >&5
35786
35787
35788 fi
35789
35790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35791 fi
35792 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35793 $as_echo "$ac_cv_type_mbstate_t" >&6; }
35794 if test "x$ac_cv_type_mbstate_t" = x""yes; then
35795
35796 cat >>confdefs.h <<_ACEOF
35797 #define HAVE_MBSTATE_T 1
35798 _ACEOF
35799
35800
35801 for ac_func in wcsrtombs
35802 do
35803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35804 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35805 $as_echo_n "checking for $ac_func... " >&6; }
35806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35807 $as_echo_n "(cached) " >&6
35808 else
35809 cat >conftest.$ac_ext <<_ACEOF
35810 /* confdefs.h. */
35811 _ACEOF
35812 cat confdefs.h >>conftest.$ac_ext
35813 cat >>conftest.$ac_ext <<_ACEOF
35814 /* end confdefs.h. */
35815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35817 #define $ac_func innocuous_$ac_func
35818
35819 /* System header to define __stub macros and hopefully few prototypes,
35820 which can conflict with char $ac_func (); below.
35821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35822 <limits.h> exists even on freestanding compilers. */
35823
35824 #ifdef __STDC__
35825 # include <limits.h>
35826 #else
35827 # include <assert.h>
35828 #endif
35829
35830 #undef $ac_func
35831
35832 /* Override any GCC internal prototype to avoid an error.
35833 Use char because int might match the return type of a GCC
35834 builtin and then its argument prototype would still apply. */
35835 #ifdef __cplusplus
35836 extern "C"
35837 #endif
35838 char $ac_func ();
35839 /* The GNU C library defines this for functions which it implements
35840 to always fail with ENOSYS. Some functions are actually named
35841 something starting with __ and the normal name is an alias. */
35842 #if defined __stub_$ac_func || defined __stub___$ac_func
35843 choke me
35844 #endif
35845
35846 int
35847 main ()
35848 {
35849 return $ac_func ();
35850 ;
35851 return 0;
35852 }
35853 _ACEOF
35854 rm -f conftest.$ac_objext conftest$ac_exeext
35855 if { (ac_try="$ac_link"
35856 case "(($ac_try" in
35857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35858 *) ac_try_echo=$ac_try;;
35859 esac
35860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35861 $as_echo "$ac_try_echo") >&5
35862 (eval "$ac_link") 2>conftest.er1
35863 ac_status=$?
35864 grep -v '^ *+' conftest.er1 >conftest.err
35865 rm -f conftest.er1
35866 cat conftest.err >&5
35867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35868 (exit $ac_status); } && {
35869 test -z "$ac_c_werror_flag" ||
35870 test ! -s conftest.err
35871 } && test -s conftest$ac_exeext && {
35872 test "$cross_compiling" = yes ||
35873 $as_test_x conftest$ac_exeext
35874 }; then
35875 eval "$as_ac_var=yes"
35876 else
35877 $as_echo "$as_me: failed program was:" >&5
35878 sed 's/^/| /' conftest.$ac_ext >&5
35879
35880 eval "$as_ac_var=no"
35881 fi
35882
35883 rm -rf conftest.dSYM
35884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35885 conftest$ac_exeext conftest.$ac_ext
35886 fi
35887 ac_res=`eval 'as_val=${'$as_ac_var'}
35888 $as_echo "$as_val"'`
35889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35890 $as_echo "$ac_res" >&6; }
35891 as_val=`eval 'as_val=${'$as_ac_var'}
35892 $as_echo "$as_val"'`
35893 if test "x$as_val" = x""yes; then
35894 cat >>confdefs.h <<_ACEOF
35895 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35896 _ACEOF
35897
35898 fi
35899 done
35900
35901 fi
35902
35903 else
35904 { $as_echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35905 $as_echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35906 fi
35907
35908
35909
35910
35911 for ac_func in snprintf vsnprintf vsscanf
35912 do
35913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35914 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35915 $as_echo_n "checking for $ac_func... " >&6; }
35916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35917 $as_echo_n "(cached) " >&6
35918 else
35919 cat >conftest.$ac_ext <<_ACEOF
35920 /* confdefs.h. */
35921 _ACEOF
35922 cat confdefs.h >>conftest.$ac_ext
35923 cat >>conftest.$ac_ext <<_ACEOF
35924 /* end confdefs.h. */
35925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35927 #define $ac_func innocuous_$ac_func
35928
35929 /* System header to define __stub macros and hopefully few prototypes,
35930 which can conflict with char $ac_func (); below.
35931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35932 <limits.h> exists even on freestanding compilers. */
35933
35934 #ifdef __STDC__
35935 # include <limits.h>
35936 #else
35937 # include <assert.h>
35938 #endif
35939
35940 #undef $ac_func
35941
35942 /* Override any GCC internal prototype to avoid an error.
35943 Use char because int might match the return type of a GCC
35944 builtin and then its argument prototype would still apply. */
35945 #ifdef __cplusplus
35946 extern "C"
35947 #endif
35948 char $ac_func ();
35949 /* The GNU C library defines this for functions which it implements
35950 to always fail with ENOSYS. Some functions are actually named
35951 something starting with __ and the normal name is an alias. */
35952 #if defined __stub_$ac_func || defined __stub___$ac_func
35953 choke me
35954 #endif
35955
35956 int
35957 main ()
35958 {
35959 return $ac_func ();
35960 ;
35961 return 0;
35962 }
35963 _ACEOF
35964 rm -f conftest.$ac_objext conftest$ac_exeext
35965 if { (ac_try="$ac_link"
35966 case "(($ac_try" in
35967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35968 *) ac_try_echo=$ac_try;;
35969 esac
35970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35971 $as_echo "$ac_try_echo") >&5
35972 (eval "$ac_link") 2>conftest.er1
35973 ac_status=$?
35974 grep -v '^ *+' conftest.er1 >conftest.err
35975 rm -f conftest.er1
35976 cat conftest.err >&5
35977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35978 (exit $ac_status); } && {
35979 test -z "$ac_c_werror_flag" ||
35980 test ! -s conftest.err
35981 } && test -s conftest$ac_exeext && {
35982 test "$cross_compiling" = yes ||
35983 $as_test_x conftest$ac_exeext
35984 }; then
35985 eval "$as_ac_var=yes"
35986 else
35987 $as_echo "$as_me: failed program was:" >&5
35988 sed 's/^/| /' conftest.$ac_ext >&5
35989
35990 eval "$as_ac_var=no"
35991 fi
35992
35993 rm -rf conftest.dSYM
35994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35995 conftest$ac_exeext conftest.$ac_ext
35996 fi
35997 ac_res=`eval 'as_val=${'$as_ac_var'}
35998 $as_echo "$as_val"'`
35999 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36000 $as_echo "$ac_res" >&6; }
36001 as_val=`eval 'as_val=${'$as_ac_var'}
36002 $as_echo "$as_val"'`
36003 if test "x$as_val" = x""yes; then
36004 cat >>confdefs.h <<_ACEOF
36005 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36006 _ACEOF
36007
36008 fi
36009 done
36010
36011
36012 ac_ext=cpp
36013 ac_cpp='$CXXCPP $CPPFLAGS'
36014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36017
36018 if test "$ac_cv_func_vsnprintf" = "yes"; then
36019 { $as_echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
36020 $as_echo_n "checking for vsnprintf declaration... " >&6; }
36021 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
36022 $as_echo_n "(cached) " >&6
36023 else
36024
36025 cat >conftest.$ac_ext <<_ACEOF
36026 /* confdefs.h. */
36027 _ACEOF
36028 cat confdefs.h >>conftest.$ac_ext
36029 cat >>conftest.$ac_ext <<_ACEOF
36030 /* end confdefs.h. */
36031
36032 #include <stdio.h>
36033 #include <stdarg.h>
36034 #ifdef __MSL__
36035 #if __MSL__ >= 0x6000
36036 namespace std {}
36037 using namespace std;
36038 #endif
36039 #endif
36040
36041 int
36042 main ()
36043 {
36044
36045 char *buf;
36046 va_list ap;
36047 vsnprintf(buf, 10u, "%s", ap);
36048
36049 ;
36050 return 0;
36051 }
36052 _ACEOF
36053 rm -f conftest.$ac_objext
36054 if { (ac_try="$ac_compile"
36055 case "(($ac_try" in
36056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36057 *) ac_try_echo=$ac_try;;
36058 esac
36059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36060 $as_echo "$ac_try_echo") >&5
36061 (eval "$ac_compile") 2>conftest.er1
36062 ac_status=$?
36063 grep -v '^ *+' conftest.er1 >conftest.err
36064 rm -f conftest.er1
36065 cat conftest.err >&5
36066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067 (exit $ac_status); } && {
36068 test -z "$ac_cxx_werror_flag" ||
36069 test ! -s conftest.err
36070 } && test -s conftest.$ac_objext; then
36071 wx_cv_func_vsnprintf_decl=yes
36072 else
36073 $as_echo "$as_me: failed program was:" >&5
36074 sed 's/^/| /' conftest.$ac_ext >&5
36075
36076 wx_cv_func_vsnprintf_decl=no
36077
36078 fi
36079
36080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36081
36082
36083 fi
36084 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
36085 $as_echo "$wx_cv_func_vsnprintf_decl" >&6; }
36086
36087 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
36088 cat >>confdefs.h <<\_ACEOF
36089 #define HAVE_VSNPRINTF_DECL 1
36090 _ACEOF
36091
36092
36093 { $as_echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
36094 $as_echo_n "checking if vsnprintf declaration is broken... " >&6; }
36095 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
36096 $as_echo_n "(cached) " >&6
36097 else
36098
36099 cat >conftest.$ac_ext <<_ACEOF
36100 /* confdefs.h. */
36101 _ACEOF
36102 cat confdefs.h >>conftest.$ac_ext
36103 cat >>conftest.$ac_ext <<_ACEOF
36104 /* end confdefs.h. */
36105
36106 #include <stdio.h>
36107 #include <stdarg.h>
36108 #ifdef __MSL__
36109 #if __MSL__ >= 0x6000
36110 namespace std {}
36111 using namespace std;
36112 #endif
36113 #endif
36114
36115 int
36116 main ()
36117 {
36118
36119 char *buf;
36120 va_list ap;
36121 const char *fmt = "%s";
36122 vsnprintf(buf, 10u, fmt, ap);
36123
36124 ;
36125 return 0;
36126 }
36127 _ACEOF
36128 rm -f conftest.$ac_objext
36129 if { (ac_try="$ac_compile"
36130 case "(($ac_try" in
36131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36132 *) ac_try_echo=$ac_try;;
36133 esac
36134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36135 $as_echo "$ac_try_echo") >&5
36136 (eval "$ac_compile") 2>conftest.er1
36137 ac_status=$?
36138 grep -v '^ *+' conftest.er1 >conftest.err
36139 rm -f conftest.er1
36140 cat conftest.err >&5
36141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36142 (exit $ac_status); } && {
36143 test -z "$ac_cxx_werror_flag" ||
36144 test ! -s conftest.err
36145 } && test -s conftest.$ac_objext; then
36146 wx_cv_func_broken_vsnprintf_decl=no
36147 else
36148 $as_echo "$as_me: failed program was:" >&5
36149 sed 's/^/| /' conftest.$ac_ext >&5
36150
36151 wx_cv_func_broken_vsnprintf_decl=yes
36152
36153 fi
36154
36155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36156
36157
36158 fi
36159 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
36160 $as_echo "$wx_cv_func_broken_vsnprintf_decl" >&6; }
36161
36162 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
36163 cat >>confdefs.h <<\_ACEOF
36164 #define HAVE_BROKEN_VSNPRINTF_DECL 1
36165 _ACEOF
36166
36167 fi
36168 fi
36169 fi
36170
36171 if test "$ac_cv_func_snprintf" = "yes"; then
36172 { $as_echo "$as_me:$LINENO: checking for snprintf declaration" >&5
36173 $as_echo_n "checking for snprintf declaration... " >&6; }
36174 if test "${wx_cv_func_snprintf_decl+set}" = set; then
36175 $as_echo_n "(cached) " >&6
36176 else
36177
36178 cat >conftest.$ac_ext <<_ACEOF
36179 /* confdefs.h. */
36180 _ACEOF
36181 cat confdefs.h >>conftest.$ac_ext
36182 cat >>conftest.$ac_ext <<_ACEOF
36183 /* end confdefs.h. */
36184
36185 #include <stdio.h>
36186 #include <stdarg.h>
36187 #ifdef __MSL__
36188 #if __MSL__ >= 0x6000
36189 namespace std {}
36190 using namespace std;
36191 #endif
36192 #endif
36193
36194 int
36195 main ()
36196 {
36197
36198 char *buf;
36199 snprintf(buf, 10u, "%s", "wx");
36200
36201 ;
36202 return 0;
36203 }
36204 _ACEOF
36205 rm -f conftest.$ac_objext
36206 if { (ac_try="$ac_compile"
36207 case "(($ac_try" in
36208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36209 *) ac_try_echo=$ac_try;;
36210 esac
36211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36212 $as_echo "$ac_try_echo") >&5
36213 (eval "$ac_compile") 2>conftest.er1
36214 ac_status=$?
36215 grep -v '^ *+' conftest.er1 >conftest.err
36216 rm -f conftest.er1
36217 cat conftest.err >&5
36218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36219 (exit $ac_status); } && {
36220 test -z "$ac_cxx_werror_flag" ||
36221 test ! -s conftest.err
36222 } && test -s conftest.$ac_objext; then
36223 wx_cv_func_snprintf_decl=yes
36224 else
36225 $as_echo "$as_me: failed program was:" >&5
36226 sed 's/^/| /' conftest.$ac_ext >&5
36227
36228 wx_cv_func_snprintf_decl=no
36229
36230 fi
36231
36232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36233
36234
36235 fi
36236 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
36237 $as_echo "$wx_cv_func_snprintf_decl" >&6; }
36238
36239 if test "$wx_cv_func_snprintf_decl" = "yes"; then
36240 cat >>confdefs.h <<\_ACEOF
36241 #define HAVE_SNPRINTF_DECL 1
36242 _ACEOF
36243
36244 fi
36245
36246 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
36247
36248 { $as_echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
36249 $as_echo_n "checking if snprintf supports positional arguments... " >&6; }
36250 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
36251 $as_echo_n "(cached) " >&6
36252 else
36253
36254 if test "$cross_compiling" = yes; then
36255
36256 { $as_echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
36257 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
36258 $as_echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
36259 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
36260 wx_cv_func_snprintf_pos_params=no
36261
36262
36263 else
36264 cat >conftest.$ac_ext <<_ACEOF
36265 /* confdefs.h. */
36266 _ACEOF
36267 cat confdefs.h >>conftest.$ac_ext
36268 cat >>conftest.$ac_ext <<_ACEOF
36269 /* end confdefs.h. */
36270
36271 #include <stdio.h>
36272
36273 int main (void)
36274 {
36275 char buffer[128];
36276 snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
36277 if (strcmp ("2 3 1", buffer) == 0)
36278 exit (0);
36279 exit (1);
36280 }
36281
36282 _ACEOF
36283 rm -f conftest$ac_exeext
36284 if { (ac_try="$ac_link"
36285 case "(($ac_try" in
36286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36287 *) ac_try_echo=$ac_try;;
36288 esac
36289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36290 $as_echo "$ac_try_echo") >&5
36291 (eval "$ac_link") 2>&5
36292 ac_status=$?
36293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36295 { (case "(($ac_try" in
36296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36297 *) ac_try_echo=$ac_try;;
36298 esac
36299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36300 $as_echo "$ac_try_echo") >&5
36301 (eval "$ac_try") 2>&5
36302 ac_status=$?
36303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36304 (exit $ac_status); }; }; then
36305 wx_cv_func_snprintf_pos_params=no
36306 else
36307 $as_echo "$as_me: program exited with status $ac_status" >&5
36308 $as_echo "$as_me: failed program was:" >&5
36309 sed 's/^/| /' conftest.$ac_ext >&5
36310
36311 ( exit $ac_status )
36312 wx_cv_func_snprintf_pos_params=yes
36313 fi
36314 rm -rf conftest.dSYM
36315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36316 fi
36317
36318
36319
36320
36321 fi
36322 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
36323 $as_echo "$wx_cv_func_snprintf_pos_params" >&6; }
36324
36325 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
36326 cat >>confdefs.h <<\_ACEOF
36327 #define HAVE_UNIX98_PRINTF 1
36328 _ACEOF
36329
36330 fi
36331 fi
36332 fi
36333
36334 if test "$ac_cv_func_vsscanf" = "yes"; then
36335 { $as_echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
36336 $as_echo_n "checking for vsscanf declaration... " >&6; }
36337 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
36338 $as_echo_n "(cached) " >&6
36339 else
36340
36341 cat >conftest.$ac_ext <<_ACEOF
36342 /* confdefs.h. */
36343 _ACEOF
36344 cat confdefs.h >>conftest.$ac_ext
36345 cat >>conftest.$ac_ext <<_ACEOF
36346 /* end confdefs.h. */
36347
36348 #include <stdio.h>
36349 #include <stdarg.h>
36350 #ifdef __MSL__
36351 #if __MSL__ >= 0x6000
36352 namespace std {}
36353 using namespace std;
36354 #endif
36355 #endif
36356
36357 int
36358 main ()
36359 {
36360
36361 char *buf;
36362 va_list args;
36363 vsscanf(buf, "%s", args);
36364
36365 ;
36366 return 0;
36367 }
36368 _ACEOF
36369 rm -f conftest.$ac_objext
36370 if { (ac_try="$ac_compile"
36371 case "(($ac_try" in
36372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36373 *) ac_try_echo=$ac_try;;
36374 esac
36375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36376 $as_echo "$ac_try_echo") >&5
36377 (eval "$ac_compile") 2>conftest.er1
36378 ac_status=$?
36379 grep -v '^ *+' conftest.er1 >conftest.err
36380 rm -f conftest.er1
36381 cat conftest.err >&5
36382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36383 (exit $ac_status); } && {
36384 test -z "$ac_cxx_werror_flag" ||
36385 test ! -s conftest.err
36386 } && test -s conftest.$ac_objext; then
36387 wx_cv_func_vsscanf_decl=yes
36388 else
36389 $as_echo "$as_me: failed program was:" >&5
36390 sed 's/^/| /' conftest.$ac_ext >&5
36391
36392 wx_cv_func_vsscanf_decl=no
36393
36394 fi
36395
36396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36397
36398
36399 fi
36400 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
36401 $as_echo "$wx_cv_func_vsscanf_decl" >&6; }
36402
36403 if test "$wx_cv_func_vsscanf_decl" = "yes"; then
36404 cat >>confdefs.h <<\_ACEOF
36405 #define HAVE_VSSCANF_DECL 1
36406 _ACEOF
36407
36408 fi
36409 fi
36410 ac_ext=c
36411 ac_cpp='$CPP $CPPFLAGS'
36412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36415
36416
36417 if test "$wxUSE_UNICODE" = yes; then
36418
36419 wchar_headers="#include <stdio.h>
36420 #include <wchar.h>"
36421 case "${host}" in
36422 *-*-solaris2* )
36423
36424 for ac_header in widec.h
36425 do
36426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36427 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36428 $as_echo_n "checking for $ac_header... " >&6; }
36429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36430 $as_echo_n "(cached) " >&6
36431 else
36432 cat >conftest.$ac_ext <<_ACEOF
36433 /* confdefs.h. */
36434 _ACEOF
36435 cat confdefs.h >>conftest.$ac_ext
36436 cat >>conftest.$ac_ext <<_ACEOF
36437 /* end confdefs.h. */
36438 $ac_includes_default
36439
36440 #include <$ac_header>
36441 _ACEOF
36442 rm -f conftest.$ac_objext
36443 if { (ac_try="$ac_compile"
36444 case "(($ac_try" in
36445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36446 *) ac_try_echo=$ac_try;;
36447 esac
36448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36449 $as_echo "$ac_try_echo") >&5
36450 (eval "$ac_compile") 2>conftest.er1
36451 ac_status=$?
36452 grep -v '^ *+' conftest.er1 >conftest.err
36453 rm -f conftest.er1
36454 cat conftest.err >&5
36455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456 (exit $ac_status); } && {
36457 test -z "$ac_c_werror_flag" ||
36458 test ! -s conftest.err
36459 } && test -s conftest.$ac_objext; then
36460 eval "$as_ac_Header=yes"
36461 else
36462 $as_echo "$as_me: failed program was:" >&5
36463 sed 's/^/| /' conftest.$ac_ext >&5
36464
36465 eval "$as_ac_Header=no"
36466 fi
36467
36468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36469 fi
36470 ac_res=`eval 'as_val=${'$as_ac_Header'}
36471 $as_echo "$as_val"'`
36472 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36473 $as_echo "$ac_res" >&6; }
36474 as_val=`eval 'as_val=${'$as_ac_Header'}
36475 $as_echo "$as_val"'`
36476 if test "x$as_val" = x""yes; then
36477 cat >>confdefs.h <<_ACEOF
36478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36479 _ACEOF
36480
36481 fi
36482
36483 done
36484
36485 if test "$ac_cv_header_widec_h" = "yes"; then
36486 wchar_headers="$wchar_headers
36487 #include <widec.h>"
36488 fi
36489 esac
36490
36491
36492 for wx_func in putws fputws wprintf vswprintf vswscanf
36493 do
36494 { $as_echo "$as_me:$LINENO: checking for $wx_func" >&5
36495 $as_echo_n "checking for $wx_func... " >&6; }
36496 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36497 $as_echo_n "(cached) " >&6
36498 else
36499
36500 cat >conftest.$ac_ext <<_ACEOF
36501
36502 /* confdefs.h. */
36503 _ACEOF
36504 cat confdefs.h >>conftest.$ac_ext
36505 cat >>conftest.$ac_ext <<_ACEOF
36506 /* end confdefs.h. */
36507
36508 $wchar_headers
36509 $ac_includes_default
36510
36511 int
36512 main ()
36513 {
36514
36515 #ifndef $wx_func
36516 &$wx_func;
36517 #endif
36518
36519
36520 ;
36521 return 0;
36522 }
36523
36524 _ACEOF
36525 rm -f conftest.$ac_objext conftest$ac_exeext
36526 if { (ac_try="$ac_link"
36527 case "(($ac_try" in
36528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36529 *) ac_try_echo=$ac_try;;
36530 esac
36531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36532 $as_echo "$ac_try_echo") >&5
36533 (eval "$ac_link") 2>conftest.er1
36534 ac_status=$?
36535 grep -v '^ *+' conftest.er1 >conftest.err
36536 rm -f conftest.er1
36537 cat conftest.err >&5
36538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36539 (exit $ac_status); } && {
36540 test -z "$ac_c_werror_flag" ||
36541 test ! -s conftest.err
36542 } && test -s conftest$ac_exeext && {
36543 test "$cross_compiling" = yes ||
36544 $as_test_x conftest$ac_exeext
36545 }; then
36546 eval wx_cv_func_$wx_func=yes
36547 else
36548 $as_echo "$as_me: failed program was:" >&5
36549 sed 's/^/| /' conftest.$ac_ext >&5
36550
36551 eval wx_cv_func_$wx_func=no
36552 fi
36553
36554 rm -rf conftest.dSYM
36555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36556 conftest$ac_exeext conftest.$ac_ext
36557
36558 fi
36559 ac_res=`eval 'as_val=${'wx_cv_func_$wx_func'}
36560 $as_echo "$as_val"'`
36561 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36562 $as_echo "$ac_res" >&6; }
36563
36564 if eval test \$wx_cv_func_$wx_func = yes
36565 then
36566 cat >>confdefs.h <<_ACEOF
36567 #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1
36568 _ACEOF
36569
36570
36571 else
36572 :
36573
36574 fi
36575 done
36576
36577
36578 { $as_echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
36579 $as_echo_n "checking for _vsnwprintf... " >&6; }
36580 cat >conftest.$ac_ext <<_ACEOF
36581 /* confdefs.h. */
36582 _ACEOF
36583 cat confdefs.h >>conftest.$ac_ext
36584 cat >>conftest.$ac_ext <<_ACEOF
36585 /* end confdefs.h. */
36586 #include <wchar.h>
36587 int
36588 main ()
36589 {
36590 &_vsnwprintf;
36591 ;
36592 return 0;
36593 }
36594 _ACEOF
36595 rm -f conftest.$ac_objext
36596 if { (ac_try="$ac_compile"
36597 case "(($ac_try" in
36598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36599 *) ac_try_echo=$ac_try;;
36600 esac
36601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36602 $as_echo "$ac_try_echo") >&5
36603 (eval "$ac_compile") 2>conftest.er1
36604 ac_status=$?
36605 grep -v '^ *+' conftest.er1 >conftest.err
36606 rm -f conftest.er1
36607 cat conftest.err >&5
36608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36609 (exit $ac_status); } && {
36610 test -z "$ac_c_werror_flag" ||
36611 test ! -s conftest.err
36612 } && test -s conftest.$ac_objext; then
36613 { $as_echo "$as_me:$LINENO: result: yes" >&5
36614 $as_echo "yes" >&6; }
36615 cat >>confdefs.h <<\_ACEOF
36616 #define HAVE__VSNWPRINTF 1
36617 _ACEOF
36618
36619 else
36620 $as_echo "$as_me: failed program was:" >&5
36621 sed 's/^/| /' conftest.$ac_ext >&5
36622
36623 { $as_echo "$as_me:$LINENO: result: no" >&5
36624 $as_echo "no" >&6; }
36625 fi
36626
36627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
36628 fi
36629
36630 if test "$wxUSE_FILE" = "yes"; then
36631
36632 for wx_func in fsync
36633 do
36634 { $as_echo "$as_me:$LINENO: checking for $wx_func" >&5
36635 $as_echo_n "checking for $wx_func... " >&6; }
36636 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36637 $as_echo_n "(cached) " >&6
36638 else
36639
36640 cat >conftest.$ac_ext <<_ACEOF
36641
36642 /* confdefs.h. */
36643 _ACEOF
36644 cat confdefs.h >>conftest.$ac_ext
36645 cat >>conftest.$ac_ext <<_ACEOF
36646 /* end confdefs.h. */
36647
36648
36649 $ac_includes_default
36650
36651 int
36652 main ()
36653 {
36654
36655 #ifndef $wx_func
36656 &$wx_func;
36657 #endif
36658
36659
36660 ;
36661 return 0;
36662 }
36663
36664 _ACEOF
36665 rm -f conftest.$ac_objext conftest$ac_exeext
36666 if { (ac_try="$ac_link"
36667 case "(($ac_try" in
36668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36669 *) ac_try_echo=$ac_try;;
36670 esac
36671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36672 $as_echo "$ac_try_echo") >&5
36673 (eval "$ac_link") 2>conftest.er1
36674 ac_status=$?
36675 grep -v '^ *+' conftest.er1 >conftest.err
36676 rm -f conftest.er1
36677 cat conftest.err >&5
36678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36679 (exit $ac_status); } && {
36680 test -z "$ac_c_werror_flag" ||
36681 test ! -s conftest.err
36682 } && test -s conftest$ac_exeext && {
36683 test "$cross_compiling" = yes ||
36684 $as_test_x conftest$ac_exeext
36685 }; then
36686 eval wx_cv_func_$wx_func=yes
36687 else
36688 $as_echo "$as_me: failed program was:" >&5
36689 sed 's/^/| /' conftest.$ac_ext >&5
36690
36691 eval wx_cv_func_$wx_func=no
36692 fi
36693
36694 rm -rf conftest.dSYM
36695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36696 conftest$ac_exeext conftest.$ac_ext
36697
36698 fi
36699 ac_res=`eval 'as_val=${'wx_cv_func_$wx_func'}
36700 $as_echo "$as_val"'`
36701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36702 $as_echo "$ac_res" >&6; }
36703
36704 if eval test \$wx_cv_func_$wx_func = yes
36705 then
36706 cat >>confdefs.h <<_ACEOF
36707 #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1
36708 _ACEOF
36709
36710
36711 else
36712 :
36713
36714 fi
36715 done
36716
36717 fi
36718
36719 ac_ext=cpp
36720 ac_cpp='$CXXCPP $CPPFLAGS'
36721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36724
36725
36726 for wx_func in round
36727 do
36728 { $as_echo "$as_me:$LINENO: checking for $wx_func" >&5
36729 $as_echo_n "checking for $wx_func... " >&6; }
36730 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36731 $as_echo_n "(cached) " >&6
36732 else
36733
36734 cat >conftest.$ac_ext <<_ACEOF
36735
36736 /* confdefs.h. */
36737 _ACEOF
36738 cat confdefs.h >>conftest.$ac_ext
36739 cat >>conftest.$ac_ext <<_ACEOF
36740 /* end confdefs.h. */
36741
36742 #include <math.h>
36743 $ac_includes_default
36744
36745 int
36746 main ()
36747 {
36748
36749 #ifndef $wx_func
36750 &$wx_func;
36751 #endif
36752
36753
36754 ;
36755 return 0;
36756 }
36757
36758 _ACEOF
36759 rm -f conftest.$ac_objext conftest$ac_exeext
36760 if { (ac_try="$ac_link"
36761 case "(($ac_try" in
36762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36763 *) ac_try_echo=$ac_try;;
36764 esac
36765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36766 $as_echo "$ac_try_echo") >&5
36767 (eval "$ac_link") 2>conftest.er1
36768 ac_status=$?
36769 grep -v '^ *+' conftest.er1 >conftest.err
36770 rm -f conftest.er1
36771 cat conftest.err >&5
36772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773 (exit $ac_status); } && {
36774 test -z "$ac_cxx_werror_flag" ||
36775 test ! -s conftest.err
36776 } && test -s conftest$ac_exeext && {
36777 test "$cross_compiling" = yes ||
36778 $as_test_x conftest$ac_exeext
36779 }; then
36780 eval wx_cv_func_$wx_func=yes
36781 else
36782 $as_echo "$as_me: failed program was:" >&5
36783 sed 's/^/| /' conftest.$ac_ext >&5
36784
36785 eval wx_cv_func_$wx_func=no
36786 fi
36787
36788 rm -rf conftest.dSYM
36789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36790 conftest$ac_exeext conftest.$ac_ext
36791
36792 fi
36793 ac_res=`eval 'as_val=${'wx_cv_func_$wx_func'}
36794 $as_echo "$as_val"'`
36795 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36796 $as_echo "$ac_res" >&6; }
36797
36798 if eval test \$wx_cv_func_$wx_func = yes
36799 then
36800 cat >>confdefs.h <<_ACEOF
36801 #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1
36802 _ACEOF
36803
36804
36805 else
36806 :
36807
36808 fi
36809 done
36810
36811 ac_ext=c
36812 ac_cpp='$CPP $CPPFLAGS'
36813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36816
36817
36818 if test "$TOOLKIT" != "MSW"; then
36819
36820 if test "$wxUSE_LIBICONV" != "no" ; then
36821
36822
36823
36824 # Check whether --with-libiconv-prefix was given.
36825 if test "${with_libiconv_prefix+set}" = set; then
36826 withval=$with_libiconv_prefix;
36827 for dir in `echo "$withval" | tr : ' '`; do
36828 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36829 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36830 done
36831
36832 fi
36833
36834
36835 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
36836 $as_echo_n "checking for iconv... " >&6; }
36837 if test "${am_cv_func_iconv+set}" = set; then
36838 $as_echo_n "(cached) " >&6
36839 else
36840
36841 am_cv_func_iconv="no, consider installing GNU libiconv"
36842 am_cv_lib_iconv=no
36843 cat >conftest.$ac_ext <<_ACEOF
36844 /* confdefs.h. */
36845 _ACEOF
36846 cat confdefs.h >>conftest.$ac_ext
36847 cat >>conftest.$ac_ext <<_ACEOF
36848 /* end confdefs.h. */
36849 #include <stdlib.h>
36850 #include <iconv.h>
36851 int
36852 main ()
36853 {
36854 iconv_t cd = iconv_open("","");
36855 iconv(cd,NULL,NULL,NULL,NULL);
36856 iconv_close(cd);
36857 ;
36858 return 0;
36859 }
36860 _ACEOF
36861 rm -f conftest.$ac_objext conftest$ac_exeext
36862 if { (ac_try="$ac_link"
36863 case "(($ac_try" in
36864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36865 *) ac_try_echo=$ac_try;;
36866 esac
36867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36868 $as_echo "$ac_try_echo") >&5
36869 (eval "$ac_link") 2>conftest.er1
36870 ac_status=$?
36871 grep -v '^ *+' conftest.er1 >conftest.err
36872 rm -f conftest.er1
36873 cat conftest.err >&5
36874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875 (exit $ac_status); } && {
36876 test -z "$ac_c_werror_flag" ||
36877 test ! -s conftest.err
36878 } && test -s conftest$ac_exeext && {
36879 test "$cross_compiling" = yes ||
36880 $as_test_x conftest$ac_exeext
36881 }; then
36882 am_cv_func_iconv=yes
36883 else
36884 $as_echo "$as_me: failed program was:" >&5
36885 sed 's/^/| /' conftest.$ac_ext >&5
36886
36887
36888 fi
36889
36890 rm -rf conftest.dSYM
36891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36892 conftest$ac_exeext conftest.$ac_ext
36893 if test "$am_cv_func_iconv" != yes; then
36894 am_save_LIBS="$LIBS"
36895 LIBS="$LIBS -liconv"
36896 cat >conftest.$ac_ext <<_ACEOF
36897 /* confdefs.h. */
36898 _ACEOF
36899 cat confdefs.h >>conftest.$ac_ext
36900 cat >>conftest.$ac_ext <<_ACEOF
36901 /* end confdefs.h. */
36902 #include <stdlib.h>
36903 #include <iconv.h>
36904 int
36905 main ()
36906 {
36907 iconv_t cd = iconv_open("","");
36908 iconv(cd,NULL,NULL,NULL,NULL);
36909 iconv_close(cd);
36910 ;
36911 return 0;
36912 }
36913 _ACEOF
36914 rm -f conftest.$ac_objext conftest$ac_exeext
36915 if { (ac_try="$ac_link"
36916 case "(($ac_try" in
36917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36918 *) ac_try_echo=$ac_try;;
36919 esac
36920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36921 $as_echo "$ac_try_echo") >&5
36922 (eval "$ac_link") 2>conftest.er1
36923 ac_status=$?
36924 grep -v '^ *+' conftest.er1 >conftest.err
36925 rm -f conftest.er1
36926 cat conftest.err >&5
36927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36928 (exit $ac_status); } && {
36929 test -z "$ac_c_werror_flag" ||
36930 test ! -s conftest.err
36931 } && test -s conftest$ac_exeext && {
36932 test "$cross_compiling" = yes ||
36933 $as_test_x conftest$ac_exeext
36934 }; then
36935 am_cv_lib_iconv=yes
36936 am_cv_func_iconv=yes
36937 else
36938 $as_echo "$as_me: failed program was:" >&5
36939 sed 's/^/| /' conftest.$ac_ext >&5
36940
36941
36942 fi
36943
36944 rm -rf conftest.dSYM
36945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36946 conftest$ac_exeext conftest.$ac_ext
36947 LIBS="$am_save_LIBS"
36948 fi
36949
36950 fi
36951 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36952 $as_echo "$am_cv_func_iconv" >&6; }
36953 if test "$am_cv_func_iconv" = yes; then
36954
36955 cat >>confdefs.h <<\_ACEOF
36956 #define HAVE_ICONV 1
36957 _ACEOF
36958
36959 { $as_echo "$as_me:$LINENO: checking if iconv needs const" >&5
36960 $as_echo_n "checking if iconv needs const... " >&6; }
36961 if test "${wx_cv_func_iconv_const+set}" = set; then
36962 $as_echo_n "(cached) " >&6
36963 else
36964 cat >conftest.$ac_ext <<_ACEOF
36965 /* confdefs.h. */
36966 _ACEOF
36967 cat confdefs.h >>conftest.$ac_ext
36968 cat >>conftest.$ac_ext <<_ACEOF
36969 /* end confdefs.h. */
36970
36971 #include <stdlib.h>
36972 #include <iconv.h>
36973 extern
36974 #ifdef __cplusplus
36975 "C"
36976 #endif
36977 #if defined(__STDC__) || defined(__cplusplus)
36978 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36979 #else
36980 size_t iconv();
36981 #endif
36982
36983 int
36984 main ()
36985 {
36986
36987 ;
36988 return 0;
36989 }
36990 _ACEOF
36991 rm -f conftest.$ac_objext
36992 if { (ac_try="$ac_compile"
36993 case "(($ac_try" in
36994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36995 *) ac_try_echo=$ac_try;;
36996 esac
36997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36998 $as_echo "$ac_try_echo") >&5
36999 (eval "$ac_compile") 2>conftest.er1
37000 ac_status=$?
37001 grep -v '^ *+' conftest.er1 >conftest.err
37002 rm -f conftest.er1
37003 cat conftest.err >&5
37004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005 (exit $ac_status); } && {
37006 test -z "$ac_c_werror_flag" ||
37007 test ! -s conftest.err
37008 } && test -s conftest.$ac_objext; then
37009 wx_cv_func_iconv_const="no"
37010 else
37011 $as_echo "$as_me: failed program was:" >&5
37012 sed 's/^/| /' conftest.$ac_ext >&5
37013
37014 wx_cv_func_iconv_const="yes"
37015
37016 fi
37017
37018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37019
37020 fi
37021 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
37022 $as_echo "$wx_cv_func_iconv_const" >&6; }
37023
37024 iconv_const=
37025 if test "x$wx_cv_func_iconv_const" = "xyes"; then
37026 iconv_const="const"
37027 fi
37028
37029
37030 cat >>confdefs.h <<_ACEOF
37031 #define ICONV_CONST $iconv_const
37032 _ACEOF
37033
37034 fi
37035 LIBICONV=
37036 if test "$am_cv_lib_iconv" = yes; then
37037 LIBICONV="-liconv"
37038 fi
37039
37040
37041 LIBS="$LIBICONV $LIBS"
37042 fi
37043
37044 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37045
37046 for ac_func in sigaction
37047 do
37048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37049 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37050 $as_echo_n "checking for $ac_func... " >&6; }
37051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37052 $as_echo_n "(cached) " >&6
37053 else
37054 cat >conftest.$ac_ext <<_ACEOF
37055 /* confdefs.h. */
37056 _ACEOF
37057 cat confdefs.h >>conftest.$ac_ext
37058 cat >>conftest.$ac_ext <<_ACEOF
37059 /* end confdefs.h. */
37060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37062 #define $ac_func innocuous_$ac_func
37063
37064 /* System header to define __stub macros and hopefully few prototypes,
37065 which can conflict with char $ac_func (); below.
37066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37067 <limits.h> exists even on freestanding compilers. */
37068
37069 #ifdef __STDC__
37070 # include <limits.h>
37071 #else
37072 # include <assert.h>
37073 #endif
37074
37075 #undef $ac_func
37076
37077 /* Override any GCC internal prototype to avoid an error.
37078 Use char because int might match the return type of a GCC
37079 builtin and then its argument prototype would still apply. */
37080 #ifdef __cplusplus
37081 extern "C"
37082 #endif
37083 char $ac_func ();
37084 /* The GNU C library defines this for functions which it implements
37085 to always fail with ENOSYS. Some functions are actually named
37086 something starting with __ and the normal name is an alias. */
37087 #if defined __stub_$ac_func || defined __stub___$ac_func
37088 choke me
37089 #endif
37090
37091 int
37092 main ()
37093 {
37094 return $ac_func ();
37095 ;
37096 return 0;
37097 }
37098 _ACEOF
37099 rm -f conftest.$ac_objext conftest$ac_exeext
37100 if { (ac_try="$ac_link"
37101 case "(($ac_try" in
37102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37103 *) ac_try_echo=$ac_try;;
37104 esac
37105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37106 $as_echo "$ac_try_echo") >&5
37107 (eval "$ac_link") 2>conftest.er1
37108 ac_status=$?
37109 grep -v '^ *+' conftest.er1 >conftest.err
37110 rm -f conftest.er1
37111 cat conftest.err >&5
37112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37113 (exit $ac_status); } && {
37114 test -z "$ac_c_werror_flag" ||
37115 test ! -s conftest.err
37116 } && test -s conftest$ac_exeext && {
37117 test "$cross_compiling" = yes ||
37118 $as_test_x conftest$ac_exeext
37119 }; then
37120 eval "$as_ac_var=yes"
37121 else
37122 $as_echo "$as_me: failed program was:" >&5
37123 sed 's/^/| /' conftest.$ac_ext >&5
37124
37125 eval "$as_ac_var=no"
37126 fi
37127
37128 rm -rf conftest.dSYM
37129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37130 conftest$ac_exeext conftest.$ac_ext
37131 fi
37132 ac_res=`eval 'as_val=${'$as_ac_var'}
37133 $as_echo "$as_val"'`
37134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37135 $as_echo "$ac_res" >&6; }
37136 as_val=`eval 'as_val=${'$as_ac_var'}
37137 $as_echo "$as_val"'`
37138 if test "x$as_val" = x""yes; then
37139 cat >>confdefs.h <<_ACEOF
37140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37141 _ACEOF
37142
37143 fi
37144 done
37145
37146
37147 if test "$ac_cv_func_sigaction" = "no"; then
37148 { $as_echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
37149 $as_echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
37150 wxUSE_ON_FATAL_EXCEPTION=no
37151 fi
37152
37153 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37154 { $as_echo "$as_me:$LINENO: checking for sa_handler type" >&5
37155 $as_echo_n "checking for sa_handler type... " >&6; }
37156 if test "${wx_cv_type_sa_handler+set}" = set; then
37157 $as_echo_n "(cached) " >&6
37158 else
37159
37160 ac_ext=cpp
37161 ac_cpp='$CXXCPP $CPPFLAGS'
37162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37165
37166 cat >conftest.$ac_ext <<_ACEOF
37167 /* confdefs.h. */
37168 _ACEOF
37169 cat confdefs.h >>conftest.$ac_ext
37170 cat >>conftest.$ac_ext <<_ACEOF
37171 /* end confdefs.h. */
37172 #include <signal.h>
37173 int
37174 main ()
37175 {
37176
37177 extern void testSigHandler(int);
37178
37179 struct sigaction sa;
37180 sa.sa_handler = testSigHandler;
37181
37182 ;
37183 return 0;
37184 }
37185 _ACEOF
37186 rm -f conftest.$ac_objext
37187 if { (ac_try="$ac_compile"
37188 case "(($ac_try" in
37189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37190 *) ac_try_echo=$ac_try;;
37191 esac
37192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37193 $as_echo "$ac_try_echo") >&5
37194 (eval "$ac_compile") 2>conftest.er1
37195 ac_status=$?
37196 grep -v '^ *+' conftest.er1 >conftest.err
37197 rm -f conftest.er1
37198 cat conftest.err >&5
37199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200 (exit $ac_status); } && {
37201 test -z "$ac_cxx_werror_flag" ||
37202 test ! -s conftest.err
37203 } && test -s conftest.$ac_objext; then
37204
37205 wx_cv_type_sa_handler=int
37206
37207 else
37208 $as_echo "$as_me: failed program was:" >&5
37209 sed 's/^/| /' conftest.$ac_ext >&5
37210
37211
37212 wx_cv_type_sa_handler=void
37213
37214 fi
37215
37216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37217 ac_ext=c
37218 ac_cpp='$CPP $CPPFLAGS'
37219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37222
37223
37224 fi
37225 { $as_echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
37226 $as_echo "$wx_cv_type_sa_handler" >&6; }
37227
37228 cat >>confdefs.h <<_ACEOF
37229 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
37230 _ACEOF
37231
37232 fi
37233 fi
37234
37235 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37236 { $as_echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
37237 $as_echo_n "checking for backtrace() in <execinfo.h>... " >&6; }
37238 if test "${wx_cv_func_backtrace+set}" = set; then
37239 $as_echo_n "(cached) " >&6
37240 else
37241
37242 ac_ext=cpp
37243 ac_cpp='$CXXCPP $CPPFLAGS'
37244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37247
37248 cat >conftest.$ac_ext <<_ACEOF
37249 /* confdefs.h. */
37250 _ACEOF
37251 cat confdefs.h >>conftest.$ac_ext
37252 cat >>conftest.$ac_ext <<_ACEOF
37253 /* end confdefs.h. */
37254 #include <execinfo.h>
37255 int
37256 main ()
37257 {
37258
37259 void *trace[1];
37260 char **messages;
37261
37262 backtrace(trace, 1);
37263 messages = backtrace_symbols(trace, 1);
37264
37265 ;
37266 return 0;
37267 }
37268 _ACEOF
37269 rm -f conftest.$ac_objext
37270 if { (ac_try="$ac_compile"
37271 case "(($ac_try" in
37272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37273 *) ac_try_echo=$ac_try;;
37274 esac
37275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37276 $as_echo "$ac_try_echo") >&5
37277 (eval "$ac_compile") 2>conftest.er1
37278 ac_status=$?
37279 grep -v '^ *+' conftest.er1 >conftest.err
37280 rm -f conftest.er1
37281 cat conftest.err >&5
37282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37283 (exit $ac_status); } && {
37284 test -z "$ac_cxx_werror_flag" ||
37285 test ! -s conftest.err
37286 } && test -s conftest.$ac_objext; then
37287 wx_cv_func_backtrace=yes
37288 else
37289 $as_echo "$as_me: failed program was:" >&5
37290 sed 's/^/| /' conftest.$ac_ext >&5
37291
37292 wx_cv_func_backtrace=no
37293
37294 fi
37295
37296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37297 ac_ext=c
37298 ac_cpp='$CPP $CPPFLAGS'
37299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37302
37303
37304
37305 fi
37306 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
37307 $as_echo "$wx_cv_func_backtrace" >&6; }
37308
37309
37310 if test "$wx_cv_func_backtrace" = "no"; then
37311 { $as_echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
37312 $as_echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
37313 wxUSE_STACKWALKER=no
37314 else
37315 { $as_echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
37316 $as_echo_n "checking for __cxa_demangle() in <cxxabi.h>... " >&6; }
37317 if test "${wx_cv_func_cxa_demangle+set}" = set; then
37318 $as_echo_n "(cached) " >&6
37319 else
37320
37321 ac_ext=cpp
37322 ac_cpp='$CXXCPP $CPPFLAGS'
37323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37326
37327 cat >conftest.$ac_ext <<_ACEOF
37328 /* confdefs.h. */
37329 _ACEOF
37330 cat confdefs.h >>conftest.$ac_ext
37331 cat >>conftest.$ac_ext <<_ACEOF
37332 /* end confdefs.h. */
37333 #include <cxxabi.h>
37334 int
37335 main ()
37336 {
37337
37338 int rc;
37339 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
37340
37341 ;
37342 return 0;
37343 }
37344 _ACEOF
37345 rm -f conftest.$ac_objext conftest$ac_exeext
37346 if { (ac_try="$ac_link"
37347 case "(($ac_try" in
37348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37349 *) ac_try_echo=$ac_try;;
37350 esac
37351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37352 $as_echo "$ac_try_echo") >&5
37353 (eval "$ac_link") 2>conftest.er1
37354 ac_status=$?
37355 grep -v '^ *+' conftest.er1 >conftest.err
37356 rm -f conftest.er1
37357 cat conftest.err >&5
37358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37359 (exit $ac_status); } && {
37360 test -z "$ac_cxx_werror_flag" ||
37361 test ! -s conftest.err
37362 } && test -s conftest$ac_exeext && {
37363 test "$cross_compiling" = yes ||
37364 $as_test_x conftest$ac_exeext
37365 }; then
37366 wx_cv_func_cxa_demangle=yes
37367 else
37368 $as_echo "$as_me: failed program was:" >&5
37369 sed 's/^/| /' conftest.$ac_ext >&5
37370
37371 wx_cv_func_cxa_demangle=no
37372
37373 fi
37374
37375 rm -rf conftest.dSYM
37376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37377 conftest$ac_exeext conftest.$ac_ext
37378 ac_ext=c
37379 ac_cpp='$CPP $CPPFLAGS'
37380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37383
37384
37385
37386 fi
37387 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
37388 $as_echo "$wx_cv_func_cxa_demangle" >&6; }
37389
37390 if test "$wx_cv_func_cxa_demangle" = "yes"; then
37391 cat >>confdefs.h <<\_ACEOF
37392 #define HAVE_CXA_DEMANGLE 1
37393 _ACEOF
37394
37395 fi
37396 fi
37397 fi
37398
37399 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
37400 { $as_echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
37401 $as_echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
37402 wxUSE_STACKWALKER=no
37403 fi
37404
37405
37406
37407
37408 for ac_func in mkstemp mktemp
37409 do
37410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37411 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37412 $as_echo_n "checking for $ac_func... " >&6; }
37413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37414 $as_echo_n "(cached) " >&6
37415 else
37416 cat >conftest.$ac_ext <<_ACEOF
37417 /* confdefs.h. */
37418 _ACEOF
37419 cat confdefs.h >>conftest.$ac_ext
37420 cat >>conftest.$ac_ext <<_ACEOF
37421 /* end confdefs.h. */
37422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37424 #define $ac_func innocuous_$ac_func
37425
37426 /* System header to define __stub macros and hopefully few prototypes,
37427 which can conflict with char $ac_func (); below.
37428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37429 <limits.h> exists even on freestanding compilers. */
37430
37431 #ifdef __STDC__
37432 # include <limits.h>
37433 #else
37434 # include <assert.h>
37435 #endif
37436
37437 #undef $ac_func
37438
37439 /* Override any GCC internal prototype to avoid an error.
37440 Use char because int might match the return type of a GCC
37441 builtin and then its argument prototype would still apply. */
37442 #ifdef __cplusplus
37443 extern "C"
37444 #endif
37445 char $ac_func ();
37446 /* The GNU C library defines this for functions which it implements
37447 to always fail with ENOSYS. Some functions are actually named
37448 something starting with __ and the normal name is an alias. */
37449 #if defined __stub_$ac_func || defined __stub___$ac_func
37450 choke me
37451 #endif
37452
37453 int
37454 main ()
37455 {
37456 return $ac_func ();
37457 ;
37458 return 0;
37459 }
37460 _ACEOF
37461 rm -f conftest.$ac_objext conftest$ac_exeext
37462 if { (ac_try="$ac_link"
37463 case "(($ac_try" in
37464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37465 *) ac_try_echo=$ac_try;;
37466 esac
37467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37468 $as_echo "$ac_try_echo") >&5
37469 (eval "$ac_link") 2>conftest.er1
37470 ac_status=$?
37471 grep -v '^ *+' conftest.er1 >conftest.err
37472 rm -f conftest.er1
37473 cat conftest.err >&5
37474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475 (exit $ac_status); } && {
37476 test -z "$ac_c_werror_flag" ||
37477 test ! -s conftest.err
37478 } && test -s conftest$ac_exeext && {
37479 test "$cross_compiling" = yes ||
37480 $as_test_x conftest$ac_exeext
37481 }; then
37482 eval "$as_ac_var=yes"
37483 else
37484 $as_echo "$as_me: failed program was:" >&5
37485 sed 's/^/| /' conftest.$ac_ext >&5
37486
37487 eval "$as_ac_var=no"
37488 fi
37489
37490 rm -rf conftest.dSYM
37491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37492 conftest$ac_exeext conftest.$ac_ext
37493 fi
37494 ac_res=`eval 'as_val=${'$as_ac_var'}
37495 $as_echo "$as_val"'`
37496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37497 $as_echo "$ac_res" >&6; }
37498 as_val=`eval 'as_val=${'$as_ac_var'}
37499 $as_echo "$as_val"'`
37500 if test "x$as_val" = x""yes; then
37501 cat >>confdefs.h <<_ACEOF
37502 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37503 _ACEOF
37504 break
37505 fi
37506 done
37507
37508
37509 { $as_echo "$as_me:$LINENO: checking for statfs" >&5
37510 $as_echo_n "checking for statfs... " >&6; }
37511 if test "${wx_cv_func_statfs+set}" = set; then
37512 $as_echo_n "(cached) " >&6
37513 else
37514 cat >conftest.$ac_ext <<_ACEOF
37515 /* confdefs.h. */
37516 _ACEOF
37517 cat confdefs.h >>conftest.$ac_ext
37518 cat >>conftest.$ac_ext <<_ACEOF
37519 /* end confdefs.h. */
37520
37521 #if defined(__BSD__)
37522 #include <sys/param.h>
37523 #include <sys/mount.h>
37524 #else
37525 #include <sys/vfs.h>
37526 #endif
37527
37528 int
37529 main ()
37530 {
37531
37532 long l;
37533 struct statfs fs;
37534 statfs("/", &fs);
37535 l = fs.f_bsize;
37536 l += fs.f_blocks;
37537 l += fs.f_bavail;
37538
37539 ;
37540 return 0;
37541 }
37542 _ACEOF
37543 rm -f conftest.$ac_objext
37544 if { (ac_try="$ac_compile"
37545 case "(($ac_try" in
37546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37547 *) ac_try_echo=$ac_try;;
37548 esac
37549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37550 $as_echo "$ac_try_echo") >&5
37551 (eval "$ac_compile") 2>conftest.er1
37552 ac_status=$?
37553 grep -v '^ *+' conftest.er1 >conftest.err
37554 rm -f conftest.er1
37555 cat conftest.err >&5
37556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557 (exit $ac_status); } && {
37558 test -z "$ac_c_werror_flag" ||
37559 test ! -s conftest.err
37560 } && test -s conftest.$ac_objext; then
37561 wx_cv_func_statfs=yes
37562 else
37563 $as_echo "$as_me: failed program was:" >&5
37564 sed 's/^/| /' conftest.$ac_ext >&5
37565
37566 wx_cv_func_statfs=no
37567
37568 fi
37569
37570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37571
37572 fi
37573 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
37574 $as_echo "$wx_cv_func_statfs" >&6; }
37575
37576 if test "$wx_cv_func_statfs" = "yes"; then
37577 { $as_echo "$as_me:$LINENO: checking for statfs declaration" >&5
37578 $as_echo_n "checking for statfs declaration... " >&6; }
37579 if test "${wx_cv_func_statfs_decl+set}" = set; then
37580 $as_echo_n "(cached) " >&6
37581 else
37582 ac_ext=cpp
37583 ac_cpp='$CXXCPP $CPPFLAGS'
37584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37587
37588 cat >conftest.$ac_ext <<_ACEOF
37589 /* confdefs.h. */
37590 _ACEOF
37591 cat confdefs.h >>conftest.$ac_ext
37592 cat >>conftest.$ac_ext <<_ACEOF
37593 /* end confdefs.h. */
37594
37595 #if defined(__BSD__)
37596 #include <sys/param.h>
37597 #include <sys/mount.h>
37598 #else
37599 #include <sys/vfs.h>
37600 #endif
37601
37602 int
37603 main ()
37604 {
37605
37606 struct statfs fs;
37607 statfs("", &fs);
37608
37609 ;
37610 return 0;
37611 }
37612 _ACEOF
37613 rm -f conftest.$ac_objext
37614 if { (ac_try="$ac_compile"
37615 case "(($ac_try" in
37616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37617 *) ac_try_echo=$ac_try;;
37618 esac
37619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37620 $as_echo "$ac_try_echo") >&5
37621 (eval "$ac_compile") 2>conftest.er1
37622 ac_status=$?
37623 grep -v '^ *+' conftest.er1 >conftest.err
37624 rm -f conftest.er1
37625 cat conftest.err >&5
37626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627 (exit $ac_status); } && {
37628 test -z "$ac_cxx_werror_flag" ||
37629 test ! -s conftest.err
37630 } && test -s conftest.$ac_objext; then
37631 wx_cv_func_statfs_decl=yes
37632 else
37633 $as_echo "$as_me: failed program was:" >&5
37634 sed 's/^/| /' conftest.$ac_ext >&5
37635
37636 wx_cv_func_statfs_decl=no
37637
37638 fi
37639
37640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37641 ac_ext=c
37642 ac_cpp='$CPP $CPPFLAGS'
37643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37646
37647
37648 fi
37649 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37650 $as_echo "$wx_cv_func_statfs_decl" >&6; }
37651
37652 if test "$wx_cv_func_statfs_decl" = "yes"; then
37653 cat >>confdefs.h <<\_ACEOF
37654 #define HAVE_STATFS_DECL 1
37655 _ACEOF
37656
37657 fi
37658
37659 wx_cv_type_statvfs_t="struct statfs"
37660 cat >>confdefs.h <<\_ACEOF
37661 #define HAVE_STATFS 1
37662 _ACEOF
37663
37664 else
37665 { $as_echo "$as_me:$LINENO: checking for statvfs" >&5
37666 $as_echo_n "checking for statvfs... " >&6; }
37667 if test "${wx_cv_func_statvfs+set}" = set; then
37668 $as_echo_n "(cached) " >&6
37669 else
37670 cat >conftest.$ac_ext <<_ACEOF
37671 /* confdefs.h. */
37672 _ACEOF
37673 cat confdefs.h >>conftest.$ac_ext
37674 cat >>conftest.$ac_ext <<_ACEOF
37675 /* end confdefs.h. */
37676
37677 #include <stddef.h>
37678 #include <sys/statvfs.h>
37679
37680 int
37681 main ()
37682 {
37683
37684 statvfs("/", NULL);
37685
37686 ;
37687 return 0;
37688 }
37689 _ACEOF
37690 rm -f conftest.$ac_objext
37691 if { (ac_try="$ac_compile"
37692 case "(($ac_try" in
37693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37694 *) ac_try_echo=$ac_try;;
37695 esac
37696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37697 $as_echo "$ac_try_echo") >&5
37698 (eval "$ac_compile") 2>conftest.er1
37699 ac_status=$?
37700 grep -v '^ *+' conftest.er1 >conftest.err
37701 rm -f conftest.er1
37702 cat conftest.err >&5
37703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37704 (exit $ac_status); } && {
37705 test -z "$ac_c_werror_flag" ||
37706 test ! -s conftest.err
37707 } && test -s conftest.$ac_objext; then
37708 wx_cv_func_statvfs=yes
37709 else
37710 $as_echo "$as_me: failed program was:" >&5
37711 sed 's/^/| /' conftest.$ac_ext >&5
37712
37713 wx_cv_func_statvfs=no
37714
37715 fi
37716
37717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37718
37719 fi
37720 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37721 $as_echo "$wx_cv_func_statvfs" >&6; }
37722
37723 if test "$wx_cv_func_statvfs" = "yes"; then
37724 { $as_echo "$as_me:$LINENO: checking for statvfs argument type" >&5
37725 $as_echo_n "checking for statvfs argument type... " >&6; }
37726 if test "${wx_cv_type_statvfs_t+set}" = set; then
37727 $as_echo_n "(cached) " >&6
37728 else
37729 ac_ext=cpp
37730 ac_cpp='$CXXCPP $CPPFLAGS'
37731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37734
37735 cat >conftest.$ac_ext <<_ACEOF
37736 /* confdefs.h. */
37737 _ACEOF
37738 cat confdefs.h >>conftest.$ac_ext
37739 cat >>conftest.$ac_ext <<_ACEOF
37740 /* end confdefs.h. */
37741
37742 #include <sys/statvfs.h>
37743
37744 int
37745 main ()
37746 {
37747
37748 long l;
37749 statvfs_t fs;
37750 statvfs("/", &fs);
37751 l = fs.f_bsize;
37752 l += fs.f_blocks;
37753 l += fs.f_bavail;
37754
37755 ;
37756 return 0;
37757 }
37758 _ACEOF
37759 rm -f conftest.$ac_objext
37760 if { (ac_try="$ac_compile"
37761 case "(($ac_try" in
37762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37763 *) ac_try_echo=$ac_try;;
37764 esac
37765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37766 $as_echo "$ac_try_echo") >&5
37767 (eval "$ac_compile") 2>conftest.er1
37768 ac_status=$?
37769 grep -v '^ *+' conftest.er1 >conftest.err
37770 rm -f conftest.er1
37771 cat conftest.err >&5
37772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773 (exit $ac_status); } && {
37774 test -z "$ac_cxx_werror_flag" ||
37775 test ! -s conftest.err
37776 } && test -s conftest.$ac_objext; then
37777 wx_cv_type_statvfs_t=statvfs_t
37778 else
37779 $as_echo "$as_me: failed program was:" >&5
37780 sed 's/^/| /' conftest.$ac_ext >&5
37781
37782
37783 cat >conftest.$ac_ext <<_ACEOF
37784 /* confdefs.h. */
37785 _ACEOF
37786 cat confdefs.h >>conftest.$ac_ext
37787 cat >>conftest.$ac_ext <<_ACEOF
37788 /* end confdefs.h. */
37789
37790 #include <sys/statvfs.h>
37791
37792 int
37793 main ()
37794 {
37795
37796 long l;
37797 struct statvfs fs;
37798 statvfs("/", &fs);
37799 l = fs.f_bsize;
37800 l += fs.f_blocks;
37801 l += fs.f_bavail;
37802
37803 ;
37804 return 0;
37805 }
37806 _ACEOF
37807 rm -f conftest.$ac_objext
37808 if { (ac_try="$ac_compile"
37809 case "(($ac_try" in
37810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37811 *) ac_try_echo=$ac_try;;
37812 esac
37813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37814 $as_echo "$ac_try_echo") >&5
37815 (eval "$ac_compile") 2>conftest.er1
37816 ac_status=$?
37817 grep -v '^ *+' conftest.er1 >conftest.err
37818 rm -f conftest.er1
37819 cat conftest.err >&5
37820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821 (exit $ac_status); } && {
37822 test -z "$ac_cxx_werror_flag" ||
37823 test ! -s conftest.err
37824 } && test -s conftest.$ac_objext; then
37825 wx_cv_type_statvfs_t="struct statvfs"
37826 else
37827 $as_echo "$as_me: failed program was:" >&5
37828 sed 's/^/| /' conftest.$ac_ext >&5
37829
37830 wx_cv_type_statvfs_t="unknown"
37831
37832 fi
37833
37834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37835
37836
37837 fi
37838
37839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37840 ac_ext=c
37841 ac_cpp='$CPP $CPPFLAGS'
37842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37845
37846
37847 fi
37848 { $as_echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37849 $as_echo "$wx_cv_type_statvfs_t" >&6; }
37850
37851 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37852 cat >>confdefs.h <<\_ACEOF
37853 #define HAVE_STATVFS 1
37854 _ACEOF
37855
37856 fi
37857 else
37858 wx_cv_type_statvfs_t="unknown"
37859 fi
37860 fi
37861
37862 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37863 cat >>confdefs.h <<_ACEOF
37864 #define WX_STATFS_T $wx_cv_type_statvfs_t
37865 _ACEOF
37866
37867 else
37868 { $as_echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37869 $as_echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37870 fi
37871
37872 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37873
37874
37875 for ac_func in fcntl flock
37876 do
37877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37878 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37879 $as_echo_n "checking for $ac_func... " >&6; }
37880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37881 $as_echo_n "(cached) " >&6
37882 else
37883 cat >conftest.$ac_ext <<_ACEOF
37884 /* confdefs.h. */
37885 _ACEOF
37886 cat confdefs.h >>conftest.$ac_ext
37887 cat >>conftest.$ac_ext <<_ACEOF
37888 /* end confdefs.h. */
37889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37891 #define $ac_func innocuous_$ac_func
37892
37893 /* System header to define __stub macros and hopefully few prototypes,
37894 which can conflict with char $ac_func (); below.
37895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37896 <limits.h> exists even on freestanding compilers. */
37897
37898 #ifdef __STDC__
37899 # include <limits.h>
37900 #else
37901 # include <assert.h>
37902 #endif
37903
37904 #undef $ac_func
37905
37906 /* Override any GCC internal prototype to avoid an error.
37907 Use char because int might match the return type of a GCC
37908 builtin and then its argument prototype would still apply. */
37909 #ifdef __cplusplus
37910 extern "C"
37911 #endif
37912 char $ac_func ();
37913 /* The GNU C library defines this for functions which it implements
37914 to always fail with ENOSYS. Some functions are actually named
37915 something starting with __ and the normal name is an alias. */
37916 #if defined __stub_$ac_func || defined __stub___$ac_func
37917 choke me
37918 #endif
37919
37920 int
37921 main ()
37922 {
37923 return $ac_func ();
37924 ;
37925 return 0;
37926 }
37927 _ACEOF
37928 rm -f conftest.$ac_objext conftest$ac_exeext
37929 if { (ac_try="$ac_link"
37930 case "(($ac_try" in
37931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37932 *) ac_try_echo=$ac_try;;
37933 esac
37934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37935 $as_echo "$ac_try_echo") >&5
37936 (eval "$ac_link") 2>conftest.er1
37937 ac_status=$?
37938 grep -v '^ *+' conftest.er1 >conftest.err
37939 rm -f conftest.er1
37940 cat conftest.err >&5
37941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37942 (exit $ac_status); } && {
37943 test -z "$ac_c_werror_flag" ||
37944 test ! -s conftest.err
37945 } && test -s conftest$ac_exeext && {
37946 test "$cross_compiling" = yes ||
37947 $as_test_x conftest$ac_exeext
37948 }; then
37949 eval "$as_ac_var=yes"
37950 else
37951 $as_echo "$as_me: failed program was:" >&5
37952 sed 's/^/| /' conftest.$ac_ext >&5
37953
37954 eval "$as_ac_var=no"
37955 fi
37956
37957 rm -rf conftest.dSYM
37958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37959 conftest$ac_exeext conftest.$ac_ext
37960 fi
37961 ac_res=`eval 'as_val=${'$as_ac_var'}
37962 $as_echo "$as_val"'`
37963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37964 $as_echo "$ac_res" >&6; }
37965 as_val=`eval 'as_val=${'$as_ac_var'}
37966 $as_echo "$as_val"'`
37967 if test "x$as_val" = x""yes; then
37968 cat >>confdefs.h <<_ACEOF
37969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37970 _ACEOF
37971 break
37972 fi
37973 done
37974
37975
37976 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37977 { $as_echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37978 $as_echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37979 wxUSE_SNGLINST_CHECKER=no
37980 fi
37981 fi
37982
37983
37984
37985 for ac_func in setenv putenv
37986 do
37987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37988 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37989 $as_echo_n "checking for $ac_func... " >&6; }
37990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37991 $as_echo_n "(cached) " >&6
37992 else
37993 cat >conftest.$ac_ext <<_ACEOF
37994 /* confdefs.h. */
37995 _ACEOF
37996 cat confdefs.h >>conftest.$ac_ext
37997 cat >>conftest.$ac_ext <<_ACEOF
37998 /* end confdefs.h. */
37999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38001 #define $ac_func innocuous_$ac_func
38002
38003 /* System header to define __stub macros and hopefully few prototypes,
38004 which can conflict with char $ac_func (); below.
38005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38006 <limits.h> exists even on freestanding compilers. */
38007
38008 #ifdef __STDC__
38009 # include <limits.h>
38010 #else
38011 # include <assert.h>
38012 #endif
38013
38014 #undef $ac_func
38015
38016 /* Override any GCC internal prototype to avoid an error.
38017 Use char because int might match the return type of a GCC
38018 builtin and then its argument prototype would still apply. */
38019 #ifdef __cplusplus
38020 extern "C"
38021 #endif
38022 char $ac_func ();
38023 /* The GNU C library defines this for functions which it implements
38024 to always fail with ENOSYS. Some functions are actually named
38025 something starting with __ and the normal name is an alias. */
38026 #if defined __stub_$ac_func || defined __stub___$ac_func
38027 choke me
38028 #endif
38029
38030 int
38031 main ()
38032 {
38033 return $ac_func ();
38034 ;
38035 return 0;
38036 }
38037 _ACEOF
38038 rm -f conftest.$ac_objext conftest$ac_exeext
38039 if { (ac_try="$ac_link"
38040 case "(($ac_try" in
38041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38042 *) ac_try_echo=$ac_try;;
38043 esac
38044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38045 $as_echo "$ac_try_echo") >&5
38046 (eval "$ac_link") 2>conftest.er1
38047 ac_status=$?
38048 grep -v '^ *+' conftest.er1 >conftest.err
38049 rm -f conftest.er1
38050 cat conftest.err >&5
38051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38052 (exit $ac_status); } && {
38053 test -z "$ac_c_werror_flag" ||
38054 test ! -s conftest.err
38055 } && test -s conftest$ac_exeext && {
38056 test "$cross_compiling" = yes ||
38057 $as_test_x conftest$ac_exeext
38058 }; then
38059 eval "$as_ac_var=yes"
38060 else
38061 $as_echo "$as_me: failed program was:" >&5
38062 sed 's/^/| /' conftest.$ac_ext >&5
38063
38064 eval "$as_ac_var=no"
38065 fi
38066
38067 rm -rf conftest.dSYM
38068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38069 conftest$ac_exeext conftest.$ac_ext
38070 fi
38071 ac_res=`eval 'as_val=${'$as_ac_var'}
38072 $as_echo "$as_val"'`
38073 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38074 $as_echo "$ac_res" >&6; }
38075 as_val=`eval 'as_val=${'$as_ac_var'}
38076 $as_echo "$as_val"'`
38077 if test "x$as_val" = x""yes; then
38078 cat >>confdefs.h <<_ACEOF
38079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38080 _ACEOF
38081 break
38082 fi
38083 done
38084
38085 if test "$ac_cv_func_setenv" = "yes"; then
38086
38087 for ac_func in unsetenv
38088 do
38089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38090 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38091 $as_echo_n "checking for $ac_func... " >&6; }
38092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38093 $as_echo_n "(cached) " >&6
38094 else
38095 cat >conftest.$ac_ext <<_ACEOF
38096 /* confdefs.h. */
38097 _ACEOF
38098 cat confdefs.h >>conftest.$ac_ext
38099 cat >>conftest.$ac_ext <<_ACEOF
38100 /* end confdefs.h. */
38101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38103 #define $ac_func innocuous_$ac_func
38104
38105 /* System header to define __stub macros and hopefully few prototypes,
38106 which can conflict with char $ac_func (); below.
38107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38108 <limits.h> exists even on freestanding compilers. */
38109
38110 #ifdef __STDC__
38111 # include <limits.h>
38112 #else
38113 # include <assert.h>
38114 #endif
38115
38116 #undef $ac_func
38117
38118 /* Override any GCC internal prototype to avoid an error.
38119 Use char because int might match the return type of a GCC
38120 builtin and then its argument prototype would still apply. */
38121 #ifdef __cplusplus
38122 extern "C"
38123 #endif
38124 char $ac_func ();
38125 /* The GNU C library defines this for functions which it implements
38126 to always fail with ENOSYS. Some functions are actually named
38127 something starting with __ and the normal name is an alias. */
38128 #if defined __stub_$ac_func || defined __stub___$ac_func
38129 choke me
38130 #endif
38131
38132 int
38133 main ()
38134 {
38135 return $ac_func ();
38136 ;
38137 return 0;
38138 }
38139 _ACEOF
38140 rm -f conftest.$ac_objext conftest$ac_exeext
38141 if { (ac_try="$ac_link"
38142 case "(($ac_try" in
38143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38144 *) ac_try_echo=$ac_try;;
38145 esac
38146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38147 $as_echo "$ac_try_echo") >&5
38148 (eval "$ac_link") 2>conftest.er1
38149 ac_status=$?
38150 grep -v '^ *+' conftest.er1 >conftest.err
38151 rm -f conftest.er1
38152 cat conftest.err >&5
38153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38154 (exit $ac_status); } && {
38155 test -z "$ac_c_werror_flag" ||
38156 test ! -s conftest.err
38157 } && test -s conftest$ac_exeext && {
38158 test "$cross_compiling" = yes ||
38159 $as_test_x conftest$ac_exeext
38160 }; then
38161 eval "$as_ac_var=yes"
38162 else
38163 $as_echo "$as_me: failed program was:" >&5
38164 sed 's/^/| /' conftest.$ac_ext >&5
38165
38166 eval "$as_ac_var=no"
38167 fi
38168
38169 rm -rf conftest.dSYM
38170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38171 conftest$ac_exeext conftest.$ac_ext
38172 fi
38173 ac_res=`eval 'as_val=${'$as_ac_var'}
38174 $as_echo "$as_val"'`
38175 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38176 $as_echo "$ac_res" >&6; }
38177 as_val=`eval 'as_val=${'$as_ac_var'}
38178 $as_echo "$as_val"'`
38179 if test "x$as_val" = x""yes; then
38180 cat >>confdefs.h <<_ACEOF
38181 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38182 _ACEOF
38183
38184 fi
38185 done
38186
38187 fi
38188
38189 HAVE_SOME_SLEEP_FUNC=0
38190 if test "$USE_BEOS" = 1; then
38191 cat >>confdefs.h <<\_ACEOF
38192 #define HAVE_SLEEP 1
38193 _ACEOF
38194
38195 HAVE_SOME_SLEEP_FUNC=1
38196 fi
38197
38198 if test "$USE_DARWIN" = 1; then
38199 cat >>confdefs.h <<\_ACEOF
38200 #define HAVE_USLEEP 1
38201 _ACEOF
38202
38203 HAVE_SOME_SLEEP_FUNC=1
38204 fi
38205
38206 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
38207 POSIX4_LINK=
38208
38209 for ac_func in nanosleep
38210 do
38211 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38212 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38213 $as_echo_n "checking for $ac_func... " >&6; }
38214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38215 $as_echo_n "(cached) " >&6
38216 else
38217 cat >conftest.$ac_ext <<_ACEOF
38218 /* confdefs.h. */
38219 _ACEOF
38220 cat confdefs.h >>conftest.$ac_ext
38221 cat >>conftest.$ac_ext <<_ACEOF
38222 /* end confdefs.h. */
38223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38225 #define $ac_func innocuous_$ac_func
38226
38227 /* System header to define __stub macros and hopefully few prototypes,
38228 which can conflict with char $ac_func (); below.
38229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38230 <limits.h> exists even on freestanding compilers. */
38231
38232 #ifdef __STDC__
38233 # include <limits.h>
38234 #else
38235 # include <assert.h>
38236 #endif
38237
38238 #undef $ac_func
38239
38240 /* Override any GCC internal prototype to avoid an error.
38241 Use char because int might match the return type of a GCC
38242 builtin and then its argument prototype would still apply. */
38243 #ifdef __cplusplus
38244 extern "C"
38245 #endif
38246 char $ac_func ();
38247 /* The GNU C library defines this for functions which it implements
38248 to always fail with ENOSYS. Some functions are actually named
38249 something starting with __ and the normal name is an alias. */
38250 #if defined __stub_$ac_func || defined __stub___$ac_func
38251 choke me
38252 #endif
38253
38254 int
38255 main ()
38256 {
38257 return $ac_func ();
38258 ;
38259 return 0;
38260 }
38261 _ACEOF
38262 rm -f conftest.$ac_objext conftest$ac_exeext
38263 if { (ac_try="$ac_link"
38264 case "(($ac_try" in
38265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38266 *) ac_try_echo=$ac_try;;
38267 esac
38268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38269 $as_echo "$ac_try_echo") >&5
38270 (eval "$ac_link") 2>conftest.er1
38271 ac_status=$?
38272 grep -v '^ *+' conftest.er1 >conftest.err
38273 rm -f conftest.er1
38274 cat conftest.err >&5
38275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38276 (exit $ac_status); } && {
38277 test -z "$ac_c_werror_flag" ||
38278 test ! -s conftest.err
38279 } && test -s conftest$ac_exeext && {
38280 test "$cross_compiling" = yes ||
38281 $as_test_x conftest$ac_exeext
38282 }; then
38283 eval "$as_ac_var=yes"
38284 else
38285 $as_echo "$as_me: failed program was:" >&5
38286 sed 's/^/| /' conftest.$ac_ext >&5
38287
38288 eval "$as_ac_var=no"
38289 fi
38290
38291 rm -rf conftest.dSYM
38292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38293 conftest$ac_exeext conftest.$ac_ext
38294 fi
38295 ac_res=`eval 'as_val=${'$as_ac_var'}
38296 $as_echo "$as_val"'`
38297 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38298 $as_echo "$ac_res" >&6; }
38299 as_val=`eval 'as_val=${'$as_ac_var'}
38300 $as_echo "$as_val"'`
38301 if test "x$as_val" = x""yes; then
38302 cat >>confdefs.h <<_ACEOF
38303 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38304 _ACEOF
38305 cat >>confdefs.h <<\_ACEOF
38306 #define HAVE_NANOSLEEP 1
38307 _ACEOF
38308
38309 else
38310
38311 { $as_echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
38312 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
38313 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
38314 $as_echo_n "(cached) " >&6
38315 else
38316 ac_check_lib_save_LIBS=$LIBS
38317 LIBS="-lposix4 $LIBS"
38318 cat >conftest.$ac_ext <<_ACEOF
38319 /* confdefs.h. */
38320 _ACEOF
38321 cat confdefs.h >>conftest.$ac_ext
38322 cat >>conftest.$ac_ext <<_ACEOF
38323 /* end confdefs.h. */
38324
38325 /* Override any GCC internal prototype to avoid an error.
38326 Use char because int might match the return type of a GCC
38327 builtin and then its argument prototype would still apply. */
38328 #ifdef __cplusplus
38329 extern "C"
38330 #endif
38331 char nanosleep ();
38332 int
38333 main ()
38334 {
38335 return nanosleep ();
38336 ;
38337 return 0;
38338 }
38339 _ACEOF
38340 rm -f conftest.$ac_objext conftest$ac_exeext
38341 if { (ac_try="$ac_link"
38342 case "(($ac_try" in
38343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38344 *) ac_try_echo=$ac_try;;
38345 esac
38346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38347 $as_echo "$ac_try_echo") >&5
38348 (eval "$ac_link") 2>conftest.er1
38349 ac_status=$?
38350 grep -v '^ *+' conftest.er1 >conftest.err
38351 rm -f conftest.er1
38352 cat conftest.err >&5
38353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38354 (exit $ac_status); } && {
38355 test -z "$ac_c_werror_flag" ||
38356 test ! -s conftest.err
38357 } && test -s conftest$ac_exeext && {
38358 test "$cross_compiling" = yes ||
38359 $as_test_x conftest$ac_exeext
38360 }; then
38361 ac_cv_lib_posix4_nanosleep=yes
38362 else
38363 $as_echo "$as_me: failed program was:" >&5
38364 sed 's/^/| /' conftest.$ac_ext >&5
38365
38366 ac_cv_lib_posix4_nanosleep=no
38367 fi
38368
38369 rm -rf conftest.dSYM
38370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38371 conftest$ac_exeext conftest.$ac_ext
38372 LIBS=$ac_check_lib_save_LIBS
38373 fi
38374 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
38375 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
38376 if test "x$ac_cv_lib_posix4_nanosleep" = x""yes; then
38377
38378 cat >>confdefs.h <<\_ACEOF
38379 #define HAVE_NANOSLEEP 1
38380 _ACEOF
38381
38382 POSIX4_LINK=" -lposix4"
38383
38384 else
38385
38386
38387 for wx_func in usleep
38388 do
38389 { $as_echo "$as_me:$LINENO: checking for $wx_func" >&5
38390 $as_echo_n "checking for $wx_func... " >&6; }
38391 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38392 $as_echo_n "(cached) " >&6
38393 else
38394
38395 cat >conftest.$ac_ext <<_ACEOF
38396
38397 /* confdefs.h. */
38398 _ACEOF
38399 cat confdefs.h >>conftest.$ac_ext
38400 cat >>conftest.$ac_ext <<_ACEOF
38401 /* end confdefs.h. */
38402
38403
38404 $ac_includes_default
38405
38406 int
38407 main ()
38408 {
38409
38410 #ifndef $wx_func
38411 &$wx_func;
38412 #endif
38413
38414
38415 ;
38416 return 0;
38417 }
38418
38419 _ACEOF
38420 rm -f conftest.$ac_objext conftest$ac_exeext
38421 if { (ac_try="$ac_link"
38422 case "(($ac_try" in
38423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38424 *) ac_try_echo=$ac_try;;
38425 esac
38426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38427 $as_echo "$ac_try_echo") >&5
38428 (eval "$ac_link") 2>conftest.er1
38429 ac_status=$?
38430 grep -v '^ *+' conftest.er1 >conftest.err
38431 rm -f conftest.er1
38432 cat conftest.err >&5
38433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38434 (exit $ac_status); } && {
38435 test -z "$ac_c_werror_flag" ||
38436 test ! -s conftest.err
38437 } && test -s conftest$ac_exeext && {
38438 test "$cross_compiling" = yes ||
38439 $as_test_x conftest$ac_exeext
38440 }; then
38441 eval wx_cv_func_$wx_func=yes
38442 else
38443 $as_echo "$as_me: failed program was:" >&5
38444 sed 's/^/| /' conftest.$ac_ext >&5
38445
38446 eval wx_cv_func_$wx_func=no
38447 fi
38448
38449 rm -rf conftest.dSYM
38450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38451 conftest$ac_exeext conftest.$ac_ext
38452
38453 fi
38454 ac_res=`eval 'as_val=${'wx_cv_func_$wx_func'}
38455 $as_echo "$as_val"'`
38456 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38457 $as_echo "$ac_res" >&6; }
38458
38459 if eval test \$wx_cv_func_$wx_func = yes
38460 then
38461 cat >>confdefs.h <<_ACEOF
38462 #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1
38463 _ACEOF
38464
38465
38466 else
38467 :
38468 { $as_echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
38469 $as_echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
38470
38471 fi
38472 done
38473
38474
38475
38476 fi
38477
38478
38479
38480 fi
38481 done
38482
38483 fi
38484
38485
38486 for wx_func in uname
38487 do
38488 { $as_echo "$as_me:$LINENO: checking for $wx_func" >&5
38489 $as_echo_n "checking for $wx_func... " >&6; }
38490 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38491 $as_echo_n "(cached) " >&6
38492 else
38493
38494 cat >conftest.$ac_ext <<_ACEOF
38495
38496 /* confdefs.h. */
38497 _ACEOF
38498 cat confdefs.h >>conftest.$ac_ext
38499 cat >>conftest.$ac_ext <<_ACEOF
38500 /* end confdefs.h. */
38501
38502 #include <sys/utsname.h>
38503 $ac_includes_default
38504
38505 int
38506 main ()
38507 {
38508
38509 #ifndef $wx_func
38510 &$wx_func;
38511 #endif
38512
38513
38514 ;
38515 return 0;
38516 }
38517
38518 _ACEOF
38519 rm -f conftest.$ac_objext conftest$ac_exeext
38520 if { (ac_try="$ac_link"
38521 case "(($ac_try" in
38522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38523 *) ac_try_echo=$ac_try;;
38524 esac
38525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38526 $as_echo "$ac_try_echo") >&5
38527 (eval "$ac_link") 2>conftest.er1
38528 ac_status=$?
38529 grep -v '^ *+' conftest.er1 >conftest.err
38530 rm -f conftest.er1
38531 cat conftest.err >&5
38532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533 (exit $ac_status); } && {
38534 test -z "$ac_c_werror_flag" ||
38535 test ! -s conftest.err
38536 } && test -s conftest$ac_exeext && {
38537 test "$cross_compiling" = yes ||
38538 $as_test_x conftest$ac_exeext
38539 }; then
38540 eval wx_cv_func_$wx_func=yes
38541 else
38542 $as_echo "$as_me: failed program was:" >&5
38543 sed 's/^/| /' conftest.$ac_ext >&5
38544
38545 eval wx_cv_func_$wx_func=no
38546 fi
38547
38548 rm -rf conftest.dSYM
38549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38550 conftest$ac_exeext conftest.$ac_ext
38551
38552 fi
38553 ac_res=`eval 'as_val=${'wx_cv_func_$wx_func'}
38554 $as_echo "$as_val"'`
38555 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38556 $as_echo "$ac_res" >&6; }
38557
38558 if eval test \$wx_cv_func_$wx_func = yes
38559 then
38560 cat >>confdefs.h <<_ACEOF
38561 #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1
38562 _ACEOF
38563
38564
38565 else
38566 :
38567
38568 fi
38569 done
38570
38571 if test "$wx_cv_func_uname" != yes; then
38572
38573 for wx_func in gethostname
38574 do
38575 { $as_echo "$as_me:$LINENO: checking for $wx_func" >&5
38576 $as_echo_n "checking for $wx_func... " >&6; }
38577 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38578 $as_echo_n "(cached) " >&6
38579 else
38580
38581 cat >conftest.$ac_ext <<_ACEOF
38582
38583 /* confdefs.h. */
38584 _ACEOF
38585 cat confdefs.h >>conftest.$ac_ext
38586 cat >>conftest.$ac_ext <<_ACEOF
38587 /* end confdefs.h. */
38588
38589
38590 $ac_includes_default
38591
38592 int
38593 main ()
38594 {
38595
38596 #ifndef $wx_func
38597 &$wx_func;
38598 #endif
38599
38600
38601 ;
38602 return 0;
38603 }
38604
38605 _ACEOF
38606 rm -f conftest.$ac_objext conftest$ac_exeext
38607 if { (ac_try="$ac_link"
38608 case "(($ac_try" in
38609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38610 *) ac_try_echo=$ac_try;;
38611 esac
38612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38613 $as_echo "$ac_try_echo") >&5
38614 (eval "$ac_link") 2>conftest.er1
38615 ac_status=$?
38616 grep -v '^ *+' conftest.er1 >conftest.err
38617 rm -f conftest.er1
38618 cat conftest.err >&5
38619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38620 (exit $ac_status); } && {
38621 test -z "$ac_c_werror_flag" ||
38622 test ! -s conftest.err
38623 } && test -s conftest$ac_exeext && {
38624 test "$cross_compiling" = yes ||
38625 $as_test_x conftest$ac_exeext
38626 }; then
38627 eval wx_cv_func_$wx_func=yes
38628 else
38629 $as_echo "$as_me: failed program was:" >&5
38630 sed 's/^/| /' conftest.$ac_ext >&5
38631
38632 eval wx_cv_func_$wx_func=no
38633 fi
38634
38635 rm -rf conftest.dSYM
38636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38637 conftest$ac_exeext conftest.$ac_ext
38638
38639 fi
38640 ac_res=`eval 'as_val=${'wx_cv_func_$wx_func'}
38641 $as_echo "$as_val"'`
38642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38643 $as_echo "$ac_res" >&6; }
38644
38645 if eval test \$wx_cv_func_$wx_func = yes
38646 then
38647 cat >>confdefs.h <<_ACEOF
38648 #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1
38649 _ACEOF
38650
38651
38652 else
38653 :
38654
38655 fi
38656 done
38657
38658 fi
38659
38660
38661 for wx_func in strtok_r
38662 do
38663 { $as_echo "$as_me:$LINENO: checking for $wx_func" >&5
38664 $as_echo_n "checking for $wx_func... " >&6; }
38665 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38666 $as_echo_n "(cached) " >&6
38667 else
38668
38669 cat >conftest.$ac_ext <<_ACEOF
38670
38671 /* confdefs.h. */
38672 _ACEOF
38673 cat confdefs.h >>conftest.$ac_ext
38674 cat >>conftest.$ac_ext <<_ACEOF
38675 /* end confdefs.h. */
38676
38677 #define _REENTRANT
38678 $ac_includes_default
38679
38680 int
38681 main ()
38682 {
38683
38684 #ifndef $wx_func
38685 &$wx_func;
38686 #endif
38687
38688
38689 ;
38690 return 0;
38691 }
38692
38693 _ACEOF
38694 rm -f conftest.$ac_objext conftest$ac_exeext
38695 if { (ac_try="$ac_link"
38696 case "(($ac_try" in
38697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38698 *) ac_try_echo=$ac_try;;
38699 esac
38700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38701 $as_echo "$ac_try_echo") >&5
38702 (eval "$ac_link") 2>conftest.er1
38703 ac_status=$?
38704 grep -v '^ *+' conftest.er1 >conftest.err
38705 rm -f conftest.er1
38706 cat conftest.err >&5
38707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38708 (exit $ac_status); } && {
38709 test -z "$ac_c_werror_flag" ||
38710 test ! -s conftest.err
38711 } && test -s conftest$ac_exeext && {
38712 test "$cross_compiling" = yes ||
38713 $as_test_x conftest$ac_exeext
38714 }; then
38715 eval wx_cv_func_$wx_func=yes
38716 else
38717 $as_echo "$as_me: failed program was:" >&5
38718 sed 's/^/| /' conftest.$ac_ext >&5
38719
38720 eval wx_cv_func_$wx_func=no
38721 fi
38722
38723 rm -rf conftest.dSYM
38724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38725 conftest$ac_exeext conftest.$ac_ext
38726
38727 fi
38728 ac_res=`eval 'as_val=${'wx_cv_func_$wx_func'}
38729 $as_echo "$as_val"'`
38730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38731 $as_echo "$ac_res" >&6; }
38732
38733 if eval test \$wx_cv_func_$wx_func = yes
38734 then
38735 cat >>confdefs.h <<_ACEOF
38736 #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1
38737 _ACEOF
38738
38739
38740 else
38741 :
38742
38743 fi
38744 done
38745
38746
38747 INET_LINK=
38748
38749 for ac_func in inet_addr
38750 do
38751 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38752 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38753 $as_echo_n "checking for $ac_func... " >&6; }
38754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38755 $as_echo_n "(cached) " >&6
38756 else
38757 cat >conftest.$ac_ext <<_ACEOF
38758 /* confdefs.h. */
38759 _ACEOF
38760 cat confdefs.h >>conftest.$ac_ext
38761 cat >>conftest.$ac_ext <<_ACEOF
38762 /* end confdefs.h. */
38763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38765 #define $ac_func innocuous_$ac_func
38766
38767 /* System header to define __stub macros and hopefully few prototypes,
38768 which can conflict with char $ac_func (); below.
38769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38770 <limits.h> exists even on freestanding compilers. */
38771
38772 #ifdef __STDC__
38773 # include <limits.h>
38774 #else
38775 # include <assert.h>
38776 #endif
38777
38778 #undef $ac_func
38779
38780 /* Override any GCC internal prototype to avoid an error.
38781 Use char because int might match the return type of a GCC
38782 builtin and then its argument prototype would still apply. */
38783 #ifdef __cplusplus
38784 extern "C"
38785 #endif
38786 char $ac_func ();
38787 /* The GNU C library defines this for functions which it implements
38788 to always fail with ENOSYS. Some functions are actually named
38789 something starting with __ and the normal name is an alias. */
38790 #if defined __stub_$ac_func || defined __stub___$ac_func
38791 choke me
38792 #endif
38793
38794 int
38795 main ()
38796 {
38797 return $ac_func ();
38798 ;
38799 return 0;
38800 }
38801 _ACEOF
38802 rm -f conftest.$ac_objext conftest$ac_exeext
38803 if { (ac_try="$ac_link"
38804 case "(($ac_try" in
38805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38806 *) ac_try_echo=$ac_try;;
38807 esac
38808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38809 $as_echo "$ac_try_echo") >&5
38810 (eval "$ac_link") 2>conftest.er1
38811 ac_status=$?
38812 grep -v '^ *+' conftest.er1 >conftest.err
38813 rm -f conftest.er1
38814 cat conftest.err >&5
38815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38816 (exit $ac_status); } && {
38817 test -z "$ac_c_werror_flag" ||
38818 test ! -s conftest.err
38819 } && test -s conftest$ac_exeext && {
38820 test "$cross_compiling" = yes ||
38821 $as_test_x conftest$ac_exeext
38822 }; then
38823 eval "$as_ac_var=yes"
38824 else
38825 $as_echo "$as_me: failed program was:" >&5
38826 sed 's/^/| /' conftest.$ac_ext >&5
38827
38828 eval "$as_ac_var=no"
38829 fi
38830
38831 rm -rf conftest.dSYM
38832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38833 conftest$ac_exeext conftest.$ac_ext
38834 fi
38835 ac_res=`eval 'as_val=${'$as_ac_var'}
38836 $as_echo "$as_val"'`
38837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38838 $as_echo "$ac_res" >&6; }
38839 as_val=`eval 'as_val=${'$as_ac_var'}
38840 $as_echo "$as_val"'`
38841 if test "x$as_val" = x""yes; then
38842 cat >>confdefs.h <<_ACEOF
38843 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38844 _ACEOF
38845 cat >>confdefs.h <<\_ACEOF
38846 #define HAVE_INET_ADDR 1
38847 _ACEOF
38848
38849 else
38850
38851 { $as_echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38852 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
38853 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38854 $as_echo_n "(cached) " >&6
38855 else
38856 ac_check_lib_save_LIBS=$LIBS
38857 LIBS="-lnsl $LIBS"
38858 cat >conftest.$ac_ext <<_ACEOF
38859 /* confdefs.h. */
38860 _ACEOF
38861 cat confdefs.h >>conftest.$ac_ext
38862 cat >>conftest.$ac_ext <<_ACEOF
38863 /* end confdefs.h. */
38864
38865 /* Override any GCC internal prototype to avoid an error.
38866 Use char because int might match the return type of a GCC
38867 builtin and then its argument prototype would still apply. */
38868 #ifdef __cplusplus
38869 extern "C"
38870 #endif
38871 char inet_addr ();
38872 int
38873 main ()
38874 {
38875 return inet_addr ();
38876 ;
38877 return 0;
38878 }
38879 _ACEOF
38880 rm -f conftest.$ac_objext conftest$ac_exeext
38881 if { (ac_try="$ac_link"
38882 case "(($ac_try" in
38883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38884 *) ac_try_echo=$ac_try;;
38885 esac
38886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38887 $as_echo "$ac_try_echo") >&5
38888 (eval "$ac_link") 2>conftest.er1
38889 ac_status=$?
38890 grep -v '^ *+' conftest.er1 >conftest.err
38891 rm -f conftest.er1
38892 cat conftest.err >&5
38893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38894 (exit $ac_status); } && {
38895 test -z "$ac_c_werror_flag" ||
38896 test ! -s conftest.err
38897 } && test -s conftest$ac_exeext && {
38898 test "$cross_compiling" = yes ||
38899 $as_test_x conftest$ac_exeext
38900 }; then
38901 ac_cv_lib_nsl_inet_addr=yes
38902 else
38903 $as_echo "$as_me: failed program was:" >&5
38904 sed 's/^/| /' conftest.$ac_ext >&5
38905
38906 ac_cv_lib_nsl_inet_addr=no
38907 fi
38908
38909 rm -rf conftest.dSYM
38910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38911 conftest$ac_exeext conftest.$ac_ext
38912 LIBS=$ac_check_lib_save_LIBS
38913 fi
38914 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38915 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
38916 if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then
38917 INET_LINK="nsl"
38918 else
38919
38920 { $as_echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38921 $as_echo_n "checking for inet_addr in -lresolv... " >&6; }
38922 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38923 $as_echo_n "(cached) " >&6
38924 else
38925 ac_check_lib_save_LIBS=$LIBS
38926 LIBS="-lresolv $LIBS"
38927 cat >conftest.$ac_ext <<_ACEOF
38928 /* confdefs.h. */
38929 _ACEOF
38930 cat confdefs.h >>conftest.$ac_ext
38931 cat >>conftest.$ac_ext <<_ACEOF
38932 /* end confdefs.h. */
38933
38934 /* Override any GCC internal prototype to avoid an error.
38935 Use char because int might match the return type of a GCC
38936 builtin and then its argument prototype would still apply. */
38937 #ifdef __cplusplus
38938 extern "C"
38939 #endif
38940 char inet_addr ();
38941 int
38942 main ()
38943 {
38944 return inet_addr ();
38945 ;
38946 return 0;
38947 }
38948 _ACEOF
38949 rm -f conftest.$ac_objext conftest$ac_exeext
38950 if { (ac_try="$ac_link"
38951 case "(($ac_try" in
38952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38953 *) ac_try_echo=$ac_try;;
38954 esac
38955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38956 $as_echo "$ac_try_echo") >&5
38957 (eval "$ac_link") 2>conftest.er1
38958 ac_status=$?
38959 grep -v '^ *+' conftest.er1 >conftest.err
38960 rm -f conftest.er1
38961 cat conftest.err >&5
38962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38963 (exit $ac_status); } && {
38964 test -z "$ac_c_werror_flag" ||
38965 test ! -s conftest.err
38966 } && test -s conftest$ac_exeext && {
38967 test "$cross_compiling" = yes ||
38968 $as_test_x conftest$ac_exeext
38969 }; then
38970 ac_cv_lib_resolv_inet_addr=yes
38971 else
38972 $as_echo "$as_me: failed program was:" >&5
38973 sed 's/^/| /' conftest.$ac_ext >&5
38974
38975 ac_cv_lib_resolv_inet_addr=no
38976 fi
38977
38978 rm -rf conftest.dSYM
38979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38980 conftest$ac_exeext conftest.$ac_ext
38981 LIBS=$ac_check_lib_save_LIBS
38982 fi
38983 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38984 $as_echo "$ac_cv_lib_resolv_inet_addr" >&6; }
38985 if test "x$ac_cv_lib_resolv_inet_addr" = x""yes; then
38986 INET_LINK="resolv"
38987 else
38988
38989 { $as_echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38990 $as_echo_n "checking for inet_addr in -lsocket... " >&6; }
38991 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38992 $as_echo_n "(cached) " >&6
38993 else
38994 ac_check_lib_save_LIBS=$LIBS
38995 LIBS="-lsocket $LIBS"
38996 cat >conftest.$ac_ext <<_ACEOF
38997 /* confdefs.h. */
38998 _ACEOF
38999 cat confdefs.h >>conftest.$ac_ext
39000 cat >>conftest.$ac_ext <<_ACEOF
39001 /* end confdefs.h. */
39002
39003 /* Override any GCC internal prototype to avoid an error.
39004 Use char because int might match the return type of a GCC
39005 builtin and then its argument prototype would still apply. */
39006 #ifdef __cplusplus
39007 extern "C"
39008 #endif
39009 char inet_addr ();
39010 int
39011 main ()
39012 {
39013 return inet_addr ();
39014 ;
39015 return 0;
39016 }
39017 _ACEOF
39018 rm -f conftest.$ac_objext conftest$ac_exeext
39019 if { (ac_try="$ac_link"
39020 case "(($ac_try" in
39021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39022 *) ac_try_echo=$ac_try;;
39023 esac
39024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39025 $as_echo "$ac_try_echo") >&5
39026 (eval "$ac_link") 2>conftest.er1
39027 ac_status=$?
39028 grep -v '^ *+' conftest.er1 >conftest.err
39029 rm -f conftest.er1
39030 cat conftest.err >&5
39031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39032 (exit $ac_status); } && {
39033 test -z "$ac_c_werror_flag" ||
39034 test ! -s conftest.err
39035 } && test -s conftest$ac_exeext && {
39036 test "$cross_compiling" = yes ||
39037 $as_test_x conftest$ac_exeext
39038 }; then
39039 ac_cv_lib_socket_inet_addr=yes
39040 else
39041 $as_echo "$as_me: failed program was:" >&5
39042 sed 's/^/| /' conftest.$ac_ext >&5
39043
39044 ac_cv_lib_socket_inet_addr=no
39045 fi
39046
39047 rm -rf conftest.dSYM
39048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39049 conftest$ac_exeext conftest.$ac_ext
39050 LIBS=$ac_check_lib_save_LIBS
39051 fi
39052 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
39053 $as_echo "$ac_cv_lib_socket_inet_addr" >&6; }
39054 if test "x$ac_cv_lib_socket_inet_addr" = x""yes; then
39055 INET_LINK="socket"
39056
39057 fi
39058
39059
39060
39061 fi
39062
39063
39064
39065 fi
39066
39067
39068
39069 fi
39070 done
39071
39072
39073
39074 for ac_func in inet_aton
39075 do
39076 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39077 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39078 $as_echo_n "checking for $ac_func... " >&6; }
39079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39080 $as_echo_n "(cached) " >&6
39081 else
39082 cat >conftest.$ac_ext <<_ACEOF
39083 /* confdefs.h. */
39084 _ACEOF
39085 cat confdefs.h >>conftest.$ac_ext
39086 cat >>conftest.$ac_ext <<_ACEOF
39087 /* end confdefs.h. */
39088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39090 #define $ac_func innocuous_$ac_func
39091
39092 /* System header to define __stub macros and hopefully few prototypes,
39093 which can conflict with char $ac_func (); below.
39094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39095 <limits.h> exists even on freestanding compilers. */
39096
39097 #ifdef __STDC__
39098 # include <limits.h>
39099 #else
39100 # include <assert.h>
39101 #endif
39102
39103 #undef $ac_func
39104
39105 /* Override any GCC internal prototype to avoid an error.
39106 Use char because int might match the return type of a GCC
39107 builtin and then its argument prototype would still apply. */
39108 #ifdef __cplusplus
39109 extern "C"
39110 #endif
39111 char $ac_func ();
39112 /* The GNU C library defines this for functions which it implements
39113 to always fail with ENOSYS. Some functions are actually named
39114 something starting with __ and the normal name is an alias. */
39115 #if defined __stub_$ac_func || defined __stub___$ac_func
39116 choke me
39117 #endif
39118
39119 int
39120 main ()
39121 {
39122 return $ac_func ();
39123 ;
39124 return 0;
39125 }
39126 _ACEOF
39127 rm -f conftest.$ac_objext conftest$ac_exeext
39128 if { (ac_try="$ac_link"
39129 case "(($ac_try" in
39130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39131 *) ac_try_echo=$ac_try;;
39132 esac
39133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39134 $as_echo "$ac_try_echo") >&5
39135 (eval "$ac_link") 2>conftest.er1
39136 ac_status=$?
39137 grep -v '^ *+' conftest.er1 >conftest.err
39138 rm -f conftest.er1
39139 cat conftest.err >&5
39140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39141 (exit $ac_status); } && {
39142 test -z "$ac_c_werror_flag" ||
39143 test ! -s conftest.err
39144 } && test -s conftest$ac_exeext && {
39145 test "$cross_compiling" = yes ||
39146 $as_test_x conftest$ac_exeext
39147 }; then
39148 eval "$as_ac_var=yes"
39149 else
39150 $as_echo "$as_me: failed program was:" >&5
39151 sed 's/^/| /' conftest.$ac_ext >&5
39152
39153 eval "$as_ac_var=no"
39154 fi
39155
39156 rm -rf conftest.dSYM
39157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39158 conftest$ac_exeext conftest.$ac_ext
39159 fi
39160 ac_res=`eval 'as_val=${'$as_ac_var'}
39161 $as_echo "$as_val"'`
39162 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39163 $as_echo "$ac_res" >&6; }
39164 as_val=`eval 'as_val=${'$as_ac_var'}
39165 $as_echo "$as_val"'`
39166 if test "x$as_val" = x""yes; then
39167 cat >>confdefs.h <<_ACEOF
39168 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39169 _ACEOF
39170 cat >>confdefs.h <<\_ACEOF
39171 #define HAVE_INET_ATON 1
39172 _ACEOF
39173
39174 else
39175
39176 as_ac_Lib=`$as_echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
39177 { $as_echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
39178 $as_echo_n "checking for inet_aton in -l$INET_LINK... " >&6; }
39179 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39180 $as_echo_n "(cached) " >&6
39181 else
39182 ac_check_lib_save_LIBS=$LIBS
39183 LIBS="-l$INET_LINK $LIBS"
39184 cat >conftest.$ac_ext <<_ACEOF
39185 /* confdefs.h. */
39186 _ACEOF
39187 cat confdefs.h >>conftest.$ac_ext
39188 cat >>conftest.$ac_ext <<_ACEOF
39189 /* end confdefs.h. */
39190
39191 /* Override any GCC internal prototype to avoid an error.
39192 Use char because int might match the return type of a GCC
39193 builtin and then its argument prototype would still apply. */
39194 #ifdef __cplusplus
39195 extern "C"
39196 #endif
39197 char inet_aton ();
39198 int
39199 main ()
39200 {
39201 return inet_aton ();
39202 ;
39203 return 0;
39204 }
39205 _ACEOF
39206 rm -f conftest.$ac_objext conftest$ac_exeext
39207 if { (ac_try="$ac_link"
39208 case "(($ac_try" in
39209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39210 *) ac_try_echo=$ac_try;;
39211 esac
39212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39213 $as_echo "$ac_try_echo") >&5
39214 (eval "$ac_link") 2>conftest.er1
39215 ac_status=$?
39216 grep -v '^ *+' conftest.er1 >conftest.err
39217 rm -f conftest.er1
39218 cat conftest.err >&5
39219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39220 (exit $ac_status); } && {
39221 test -z "$ac_c_werror_flag" ||
39222 test ! -s conftest.err
39223 } && test -s conftest$ac_exeext && {
39224 test "$cross_compiling" = yes ||
39225 $as_test_x conftest$ac_exeext
39226 }; then
39227 eval "$as_ac_Lib=yes"
39228 else
39229 $as_echo "$as_me: failed program was:" >&5
39230 sed 's/^/| /' conftest.$ac_ext >&5
39231
39232 eval "$as_ac_Lib=no"
39233 fi
39234
39235 rm -rf conftest.dSYM
39236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39237 conftest$ac_exeext conftest.$ac_ext
39238 LIBS=$ac_check_lib_save_LIBS
39239 fi
39240 ac_res=`eval 'as_val=${'$as_ac_Lib'}
39241 $as_echo "$as_val"'`
39242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39243 $as_echo "$ac_res" >&6; }
39244 as_val=`eval 'as_val=${'$as_ac_Lib'}
39245 $as_echo "$as_val"'`
39246 if test "x$as_val" = x""yes; then
39247 cat >>confdefs.h <<\_ACEOF
39248 #define HAVE_INET_ATON 1
39249 _ACEOF
39250
39251 fi
39252
39253
39254 fi
39255 done
39256
39257
39258 if test "x$INET_LINK" != "x"; then
39259 cat >>confdefs.h <<\_ACEOF
39260 #define HAVE_INET_ADDR 1
39261 _ACEOF
39262
39263 INET_LINK=" -l$INET_LINK"
39264 fi
39265
39266
39267 for wx_func in fdopen
39268 do
39269 { $as_echo "$as_me:$LINENO: checking for $wx_func" >&5
39270 $as_echo_n "checking for $wx_func... " >&6; }
39271 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39272 $as_echo_n "(cached) " >&6
39273 else
39274
39275 cat >conftest.$ac_ext <<_ACEOF
39276
39277 /* confdefs.h. */
39278 _ACEOF
39279 cat confdefs.h >>conftest.$ac_ext
39280 cat >>conftest.$ac_ext <<_ACEOF
39281 /* end confdefs.h. */
39282
39283
39284 $ac_includes_default
39285
39286 int
39287 main ()
39288 {
39289
39290 #ifndef $wx_func
39291 &$wx_func;
39292 #endif
39293
39294
39295 ;
39296 return 0;
39297 }
39298
39299 _ACEOF
39300 rm -f conftest.$ac_objext conftest$ac_exeext
39301 if { (ac_try="$ac_link"
39302 case "(($ac_try" in
39303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39304 *) ac_try_echo=$ac_try;;
39305 esac
39306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39307 $as_echo "$ac_try_echo") >&5
39308 (eval "$ac_link") 2>conftest.er1
39309 ac_status=$?
39310 grep -v '^ *+' conftest.er1 >conftest.err
39311 rm -f conftest.er1
39312 cat conftest.err >&5
39313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39314 (exit $ac_status); } && {
39315 test -z "$ac_c_werror_flag" ||
39316 test ! -s conftest.err
39317 } && test -s conftest$ac_exeext && {
39318 test "$cross_compiling" = yes ||
39319 $as_test_x conftest$ac_exeext
39320 }; then
39321 eval wx_cv_func_$wx_func=yes
39322 else
39323 $as_echo "$as_me: failed program was:" >&5
39324 sed 's/^/| /' conftest.$ac_ext >&5
39325
39326 eval wx_cv_func_$wx_func=no
39327 fi
39328
39329 rm -rf conftest.dSYM
39330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39331 conftest$ac_exeext conftest.$ac_ext
39332
39333 fi
39334 ac_res=`eval 'as_val=${'wx_cv_func_$wx_func'}
39335 $as_echo "$as_val"'`
39336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39337 $as_echo "$ac_res" >&6; }
39338
39339 if eval test \$wx_cv_func_$wx_func = yes
39340 then
39341 cat >>confdefs.h <<_ACEOF
39342 #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1
39343 _ACEOF
39344
39345
39346 else
39347 :
39348
39349 fi
39350 done
39351
39352
39353 if test "$wxUSE_TARSTREAM" = "yes"; then
39354
39355 for wx_func in sysconf
39356 do
39357 { $as_echo "$as_me:$LINENO: checking for $wx_func" >&5
39358 $as_echo_n "checking for $wx_func... " >&6; }
39359 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39360 $as_echo_n "(cached) " >&6
39361 else
39362
39363 cat >conftest.$ac_ext <<_ACEOF
39364
39365 /* confdefs.h. */
39366 _ACEOF
39367 cat confdefs.h >>conftest.$ac_ext
39368 cat >>conftest.$ac_ext <<_ACEOF
39369 /* end confdefs.h. */
39370
39371
39372 $ac_includes_default
39373
39374 int
39375 main ()
39376 {
39377
39378 #ifndef $wx_func
39379 &$wx_func;
39380 #endif
39381
39382
39383 ;
39384 return 0;
39385 }
39386
39387 _ACEOF
39388 rm -f conftest.$ac_objext conftest$ac_exeext
39389 if { (ac_try="$ac_link"
39390 case "(($ac_try" in
39391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39392 *) ac_try_echo=$ac_try;;
39393 esac
39394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39395 $as_echo "$ac_try_echo") >&5
39396 (eval "$ac_link") 2>conftest.er1
39397 ac_status=$?
39398 grep -v '^ *+' conftest.er1 >conftest.err
39399 rm -f conftest.er1
39400 cat conftest.err >&5
39401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39402 (exit $ac_status); } && {
39403 test -z "$ac_c_werror_flag" ||
39404 test ! -s conftest.err
39405 } && test -s conftest$ac_exeext && {
39406 test "$cross_compiling" = yes ||
39407 $as_test_x conftest$ac_exeext
39408 }; then
39409 eval wx_cv_func_$wx_func=yes
39410 else
39411 $as_echo "$as_me: failed program was:" >&5
39412 sed 's/^/| /' conftest.$ac_ext >&5
39413
39414 eval wx_cv_func_$wx_func=no
39415 fi
39416
39417 rm -rf conftest.dSYM
39418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39419 conftest$ac_exeext conftest.$ac_ext
39420
39421 fi
39422 ac_res=`eval 'as_val=${'wx_cv_func_$wx_func'}
39423 $as_echo "$as_val"'`
39424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39425 $as_echo "$ac_res" >&6; }
39426
39427 if eval test \$wx_cv_func_$wx_func = yes
39428 then
39429 cat >>confdefs.h <<_ACEOF
39430 #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1
39431 _ACEOF
39432
39433
39434 else
39435 :
39436
39437 fi
39438 done
39439
39440
39441
39442 for wx_func in getpwuid_r
39443 do
39444 { $as_echo "$as_me:$LINENO: checking for $wx_func" >&5
39445 $as_echo_n "checking for $wx_func... " >&6; }
39446 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39447 $as_echo_n "(cached) " >&6
39448 else
39449
39450 cat >conftest.$ac_ext <<_ACEOF
39451
39452 /* confdefs.h. */
39453 _ACEOF
39454 cat confdefs.h >>conftest.$ac_ext
39455 cat >>conftest.$ac_ext <<_ACEOF
39456 /* end confdefs.h. */
39457
39458
39459 #define _REENTRANT
39460 #include <pwd.h>
39461
39462 $ac_includes_default
39463
39464 int
39465 main ()
39466 {
39467
39468 #ifndef $wx_func
39469 &$wx_func;
39470 #endif
39471
39472 struct passwd pw, *ppw;
39473 char buf[1024];
39474 getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
39475
39476
39477 ;
39478 return 0;
39479 }
39480
39481 _ACEOF
39482 rm -f conftest.$ac_objext conftest$ac_exeext
39483 if { (ac_try="$ac_link"
39484 case "(($ac_try" in
39485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39486 *) ac_try_echo=$ac_try;;
39487 esac
39488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39489 $as_echo "$ac_try_echo") >&5
39490 (eval "$ac_link") 2>conftest.er1
39491 ac_status=$?
39492 grep -v '^ *+' conftest.er1 >conftest.err
39493 rm -f conftest.er1
39494 cat conftest.err >&5
39495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496 (exit $ac_status); } && {
39497 test -z "$ac_c_werror_flag" ||
39498 test ! -s conftest.err
39499 } && test -s conftest$ac_exeext && {
39500 test "$cross_compiling" = yes ||
39501 $as_test_x conftest$ac_exeext
39502 }; then
39503 eval wx_cv_func_$wx_func=yes
39504 else
39505 $as_echo "$as_me: failed program was:" >&5
39506 sed 's/^/| /' conftest.$ac_ext >&5
39507
39508 eval wx_cv_func_$wx_func=no
39509 fi
39510
39511 rm -rf conftest.dSYM
39512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39513 conftest$ac_exeext conftest.$ac_ext
39514
39515 fi
39516 ac_res=`eval 'as_val=${'wx_cv_func_$wx_func'}
39517 $as_echo "$as_val"'`
39518 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39519 $as_echo "$ac_res" >&6; }
39520
39521 if eval test \$wx_cv_func_$wx_func = yes
39522 then
39523 cat >>confdefs.h <<_ACEOF
39524 #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1
39525 _ACEOF
39526
39527
39528 else
39529 :
39530
39531 fi
39532 done
39533
39534
39535
39536 for wx_func in getgrgid_r
39537 do
39538 { $as_echo "$as_me:$LINENO: checking for $wx_func" >&5
39539 $as_echo_n "checking for $wx_func... " >&6; }
39540 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39541 $as_echo_n "(cached) " >&6
39542 else
39543
39544 cat >conftest.$ac_ext <<_ACEOF
39545
39546 /* confdefs.h. */
39547 _ACEOF
39548 cat confdefs.h >>conftest.$ac_ext
39549 cat >>conftest.$ac_ext <<_ACEOF
39550 /* end confdefs.h. */
39551
39552
39553 #define _REENTRANT
39554 #include <grp.h>
39555
39556 $ac_includes_default
39557
39558 int
39559 main ()
39560 {
39561
39562 #ifndef $wx_func
39563 &$wx_func;
39564 #endif
39565
39566 struct group grp, *pgrp;
39567 char buf[1024];
39568 getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
39569
39570
39571 ;
39572 return 0;
39573 }
39574
39575 _ACEOF
39576 rm -f conftest.$ac_objext conftest$ac_exeext
39577 if { (ac_try="$ac_link"
39578 case "(($ac_try" in
39579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39580 *) ac_try_echo=$ac_try;;
39581 esac
39582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39583 $as_echo "$ac_try_echo") >&5
39584 (eval "$ac_link") 2>conftest.er1
39585 ac_status=$?
39586 grep -v '^ *+' conftest.er1 >conftest.err
39587 rm -f conftest.er1
39588 cat conftest.err >&5
39589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590 (exit $ac_status); } && {
39591 test -z "$ac_c_werror_flag" ||
39592 test ! -s conftest.err
39593 } && test -s conftest$ac_exeext && {
39594 test "$cross_compiling" = yes ||
39595 $as_test_x conftest$ac_exeext
39596 }; then
39597 eval wx_cv_func_$wx_func=yes
39598 else
39599 $as_echo "$as_me: failed program was:" >&5
39600 sed 's/^/| /' conftest.$ac_ext >&5
39601
39602 eval wx_cv_func_$wx_func=no
39603 fi
39604
39605 rm -rf conftest.dSYM
39606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39607 conftest$ac_exeext conftest.$ac_ext
39608
39609 fi
39610 ac_res=`eval 'as_val=${'wx_cv_func_$wx_func'}
39611 $as_echo "$as_val"'`
39612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39613 $as_echo "$ac_res" >&6; }
39614
39615 if eval test \$wx_cv_func_$wx_func = yes
39616 then
39617 cat >>confdefs.h <<_ACEOF
39618 #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1
39619 _ACEOF
39620
39621
39622 else
39623 :
39624
39625 fi
39626 done
39627
39628 fi
39629
39630 fi
39631
39632
39633
39634 cat >confcache <<\_ACEOF
39635 # This file is a shell script that caches the results of configure
39636 # tests run on this system so they can be shared between configure
39637 # scripts and configure runs, see configure's option --config-cache.
39638 # It is not useful on other systems. If it contains results you don't
39639 # want to keep, you may remove or edit it.
39640 #
39641 # config.status only pays attention to the cache file if you give it
39642 # the --recheck option to rerun configure.
39643 #
39644 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39645 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39646 # following values.
39647
39648 _ACEOF
39649
39650 # The following way of writing the cache mishandles newlines in values,
39651 # but we know of no workaround that is simple, portable, and efficient.
39652 # So, we kill variables containing newlines.
39653 # Ultrix sh set writes to stderr and can't be redirected directly,
39654 # and sets the high bit in the cache file unless we assign to the vars.
39655 (
39656 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39657 eval ac_val=\$$ac_var
39658 case $ac_val in #(
39659 *${as_nl}*)
39660 case $ac_var in #(
39661 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
39662 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
39663 esac
39664 case $ac_var in #(
39665 _ | IFS | as_nl) ;; #(
39666 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
39667 *) $as_unset $ac_var ;;
39668 esac ;;
39669 esac
39670 done
39671
39672 (set) 2>&1 |
39673 case $as_nl`(ac_space=' '; set) 2>&1` in #(
39674 *${as_nl}ac_space=\ *)
39675 # `set' does not quote correctly, so add quotes (double-quote
39676 # substitution turns \\\\ into \\, and sed turns \\ into \).
39677 sed -n \
39678 "s/'/'\\\\''/g;
39679 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39680 ;; #(
39681 *)
39682 # `set' quotes correctly as required by POSIX, so do not add quotes.
39683 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39684 ;;
39685 esac |
39686 sort
39687 ) |
39688 sed '
39689 /^ac_cv_env_/b end
39690 t clear
39691 :clear
39692 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39693 t end
39694 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39695 :end' >>confcache
39696 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39697 if test -w "$cache_file"; then
39698 test "x$cache_file" != "x/dev/null" &&
39699 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
39700 $as_echo "$as_me: updating cache $cache_file" >&6;}
39701 cat confcache >$cache_file
39702 else
39703 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39704 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39705 fi
39706 fi
39707 rm -f confcache
39708
39709
39710 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39711
39712
39713 THREADS_LINK=
39714 THREADS_CFLAGS=
39715
39716 if test "$wxUSE_THREADS" = "yes" ; then
39717 if test "$USE_BEOS" = 1; then
39718 { $as_echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
39719 $as_echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
39720 wxUSE_THREADS="no"
39721 fi
39722 fi
39723
39724 if test "$wxUSE_THREADS" = "yes" ; then
39725
39726
39727 THREAD_OPTS="-pthread"
39728 if test "x$SUNCXX" = xyes; then
39729 THREAD_OPTS="-mt lthread $THREAD_OPTS"
39730 fi
39731
39732 case "${host}" in
39733 *-*-solaris2* | *-*-sunos4* )
39734 if test "x$GCC" = "xyes"; then
39735 THREAD_OPTS="-pthreads $THREAD_OPTS"
39736 fi
39737 ;;
39738 *-*-freebsd*)
39739 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
39740 ;;
39741 *-*-darwin* | *-*-cygwin* )
39742 THREAD_OPTS=""
39743 ;;
39744 *-*-aix*)
39745 THREAD_OPTS="pthreads"
39746 ;;
39747 *-hp-hpux* )
39748 if test "x$GCC" = "xyes"; then
39749 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39750 THREAD_OPTS=""
39751 else
39752 THREAD_OPTS="-mt"
39753 fi
39754 ;;
39755
39756 *-*-irix* )
39757 if test "x$GCC" = "xyes"; then
39758 THREAD_OPTS=""
39759 fi
39760 ;;
39761
39762 *-*-*UnixWare*)
39763 if test "x$GCC" != "xyes"; then
39764 THREAD_OPTS="-Ethread"
39765 fi
39766 ;;
39767 esac
39768
39769 THREAD_OPTS="$THREAD_OPTS pthread none"
39770
39771 THREADS_OK=no
39772 for flag in $THREAD_OPTS; do
39773 case $flag in
39774 none)
39775 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39776 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
39777 ;;
39778
39779 -*)
39780 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39781 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
39782 THREADS_CFLAGS="$flag"
39783 ;;
39784
39785 *)
39786 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39787 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
39788 THREADS_LINK="-l$flag"
39789 ;;
39790 esac
39791
39792 save_LIBS="$LIBS"
39793 save_CFLAGS="$CFLAGS"
39794 LIBS="$THREADS_LINK $LIBS"
39795 CFLAGS="$THREADS_CFLAGS $CFLAGS"
39796
39797 cat >conftest.$ac_ext <<_ACEOF
39798 /* confdefs.h. */
39799 _ACEOF
39800 cat confdefs.h >>conftest.$ac_ext
39801 cat >>conftest.$ac_ext <<_ACEOF
39802 /* end confdefs.h. */
39803 #include <pthread.h>
39804 int
39805 main ()
39806 {
39807 pthread_create(0,0,0,0);
39808 ;
39809 return 0;
39810 }
39811 _ACEOF
39812 rm -f conftest.$ac_objext conftest$ac_exeext
39813 if { (ac_try="$ac_link"
39814 case "(($ac_try" in
39815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39816 *) ac_try_echo=$ac_try;;
39817 esac
39818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39819 $as_echo "$ac_try_echo") >&5
39820 (eval "$ac_link") 2>conftest.er1
39821 ac_status=$?
39822 grep -v '^ *+' conftest.er1 >conftest.err
39823 rm -f conftest.er1
39824 cat conftest.err >&5
39825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39826 (exit $ac_status); } && {
39827 test -z "$ac_c_werror_flag" ||
39828 test ! -s conftest.err
39829 } && test -s conftest$ac_exeext && {
39830 test "$cross_compiling" = yes ||
39831 $as_test_x conftest$ac_exeext
39832 }; then
39833 THREADS_OK=yes
39834 else
39835 $as_echo "$as_me: failed program was:" >&5
39836 sed 's/^/| /' conftest.$ac_ext >&5
39837
39838
39839 fi
39840
39841 rm -rf conftest.dSYM
39842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39843 conftest$ac_exeext conftest.$ac_ext
39844
39845 LIBS="$save_LIBS"
39846 CFLAGS="$save_CFLAGS"
39847
39848 { $as_echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39849 $as_echo "$THREADS_OK" >&6; }
39850 if test "x$THREADS_OK" = "xyes"; then
39851 break;
39852 fi
39853
39854 THREADS_LINK=""
39855 THREADS_CFLAGS=""
39856 done
39857
39858 if test "x$THREADS_OK" != "xyes"; then
39859 wxUSE_THREADS=no
39860 { $as_echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39861 $as_echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39862 else
39863 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
39864 LIBS="$THREADS_LINK $LIBS"
39865
39866 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39867 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
39868 flag=no
39869 case "${host}" in
39870 *-aix*)
39871 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39872 flag="-D_THREAD_SAFE"
39873 ;;
39874 *-freebsd*)
39875 flag="-D_THREAD_SAFE"
39876 ;;
39877 *-hp-hpux* )
39878 flag="-D_REENTRANT"
39879 if test "x$GCC" != "xyes"; then
39880 flag="$flag -D_RWSTD_MULTI_THREAD"
39881 fi
39882 ;;
39883 *solaris* | alpha*-osf*)
39884 flag="-D_REENTRANT"
39885 ;;
39886 esac
39887 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
39888 $as_echo "${flag}" >&6; }
39889 if test "x$flag" != xno; then
39890 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39891 fi
39892
39893 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39894 fi
39895 fi
39896
39897 if test "$wxUSE_THREADS" = "yes" ; then
39898
39899 for ac_func in thr_setconcurrency
39900 do
39901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39902 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39903 $as_echo_n "checking for $ac_func... " >&6; }
39904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39905 $as_echo_n "(cached) " >&6
39906 else
39907 cat >conftest.$ac_ext <<_ACEOF
39908 /* confdefs.h. */
39909 _ACEOF
39910 cat confdefs.h >>conftest.$ac_ext
39911 cat >>conftest.$ac_ext <<_ACEOF
39912 /* end confdefs.h. */
39913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39915 #define $ac_func innocuous_$ac_func
39916
39917 /* System header to define __stub macros and hopefully few prototypes,
39918 which can conflict with char $ac_func (); below.
39919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39920 <limits.h> exists even on freestanding compilers. */
39921
39922 #ifdef __STDC__
39923 # include <limits.h>
39924 #else
39925 # include <assert.h>
39926 #endif
39927
39928 #undef $ac_func
39929
39930 /* Override any GCC internal prototype to avoid an error.
39931 Use char because int might match the return type of a GCC
39932 builtin and then its argument prototype would still apply. */
39933 #ifdef __cplusplus
39934 extern "C"
39935 #endif
39936 char $ac_func ();
39937 /* The GNU C library defines this for functions which it implements
39938 to always fail with ENOSYS. Some functions are actually named
39939 something starting with __ and the normal name is an alias. */
39940 #if defined __stub_$ac_func || defined __stub___$ac_func
39941 choke me
39942 #endif
39943
39944 int
39945 main ()
39946 {
39947 return $ac_func ();
39948 ;
39949 return 0;
39950 }
39951 _ACEOF
39952 rm -f conftest.$ac_objext conftest$ac_exeext
39953 if { (ac_try="$ac_link"
39954 case "(($ac_try" in
39955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39956 *) ac_try_echo=$ac_try;;
39957 esac
39958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39959 $as_echo "$ac_try_echo") >&5
39960 (eval "$ac_link") 2>conftest.er1
39961 ac_status=$?
39962 grep -v '^ *+' conftest.er1 >conftest.err
39963 rm -f conftest.er1
39964 cat conftest.err >&5
39965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39966 (exit $ac_status); } && {
39967 test -z "$ac_c_werror_flag" ||
39968 test ! -s conftest.err
39969 } && test -s conftest$ac_exeext && {
39970 test "$cross_compiling" = yes ||
39971 $as_test_x conftest$ac_exeext
39972 }; then
39973 eval "$as_ac_var=yes"
39974 else
39975 $as_echo "$as_me: failed program was:" >&5
39976 sed 's/^/| /' conftest.$ac_ext >&5
39977
39978 eval "$as_ac_var=no"
39979 fi
39980
39981 rm -rf conftest.dSYM
39982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39983 conftest$ac_exeext conftest.$ac_ext
39984 fi
39985 ac_res=`eval 'as_val=${'$as_ac_var'}
39986 $as_echo "$as_val"'`
39987 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39988 $as_echo "$ac_res" >&6; }
39989 as_val=`eval 'as_val=${'$as_ac_var'}
39990 $as_echo "$as_val"'`
39991 if test "x$as_val" = x""yes; then
39992 cat >>confdefs.h <<_ACEOF
39993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39994 _ACEOF
39995
39996 fi
39997 done
39998
39999
40000 { $as_echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
40001 $as_echo_n "checking for pthread_cleanup_push/pop... " >&6; }
40002 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
40003 $as_echo_n "(cached) " >&6
40004 else
40005
40006 ac_ext=cpp
40007 ac_cpp='$CXXCPP $CPPFLAGS'
40008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40011
40012 cat >conftest.$ac_ext <<_ACEOF
40013 /* confdefs.h. */
40014 _ACEOF
40015 cat confdefs.h >>conftest.$ac_ext
40016 cat >>conftest.$ac_ext <<_ACEOF
40017 /* end confdefs.h. */
40018 #include <pthread.h>
40019 void ThreadCleanupFunc(void *p);
40020
40021 int
40022 main ()
40023 {
40024
40025 void *p;
40026 pthread_cleanup_push(ThreadCleanupFunc, p);
40027 pthread_cleanup_pop(0);
40028
40029 ;
40030 return 0;
40031 }
40032 _ACEOF
40033 rm -f conftest.$ac_objext
40034 if { (ac_try="$ac_compile"
40035 case "(($ac_try" in
40036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40037 *) ac_try_echo=$ac_try;;
40038 esac
40039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40040 $as_echo "$ac_try_echo") >&5
40041 (eval "$ac_compile") 2>conftest.er1
40042 ac_status=$?
40043 grep -v '^ *+' conftest.er1 >conftest.err
40044 rm -f conftest.er1
40045 cat conftest.err >&5
40046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); } && {
40048 test -z "$ac_cxx_werror_flag" ||
40049 test ! -s conftest.err
40050 } && test -s conftest.$ac_objext; then
40051
40052 wx_cv_func_pthread_cleanup=yes
40053
40054 else
40055 $as_echo "$as_me: failed program was:" >&5
40056 sed 's/^/| /' conftest.$ac_ext >&5
40057
40058
40059 wx_cv_func_pthread_cleanup=no
40060
40061
40062 fi
40063
40064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40065 ac_ext=c
40066 ac_cpp='$CPP $CPPFLAGS'
40067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40070
40071
40072 fi
40073 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
40074 $as_echo "$wx_cv_func_pthread_cleanup" >&6; }
40075 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
40076 cat >>confdefs.h <<\_ACEOF
40077 #define wxHAVE_PTHREAD_CLEANUP 1
40078 _ACEOF
40079
40080 fi
40081
40082
40083 for ac_header in sched.h
40084 do
40085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40086 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40087 $as_echo_n "checking for $ac_header... " >&6; }
40088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40089 $as_echo_n "(cached) " >&6
40090 else
40091 cat >conftest.$ac_ext <<_ACEOF
40092 /* confdefs.h. */
40093 _ACEOF
40094 cat confdefs.h >>conftest.$ac_ext
40095 cat >>conftest.$ac_ext <<_ACEOF
40096 /* end confdefs.h. */
40097 $ac_includes_default
40098
40099 #include <$ac_header>
40100 _ACEOF
40101 rm -f conftest.$ac_objext
40102 if { (ac_try="$ac_compile"
40103 case "(($ac_try" in
40104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40105 *) ac_try_echo=$ac_try;;
40106 esac
40107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40108 $as_echo "$ac_try_echo") >&5
40109 (eval "$ac_compile") 2>conftest.er1
40110 ac_status=$?
40111 grep -v '^ *+' conftest.er1 >conftest.err
40112 rm -f conftest.er1
40113 cat conftest.err >&5
40114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40115 (exit $ac_status); } && {
40116 test -z "$ac_c_werror_flag" ||
40117 test ! -s conftest.err
40118 } && test -s conftest.$ac_objext; then
40119 eval "$as_ac_Header=yes"
40120 else
40121 $as_echo "$as_me: failed program was:" >&5
40122 sed 's/^/| /' conftest.$ac_ext >&5
40123
40124 eval "$as_ac_Header=no"
40125 fi
40126
40127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40128 fi
40129 ac_res=`eval 'as_val=${'$as_ac_Header'}
40130 $as_echo "$as_val"'`
40131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40132 $as_echo "$ac_res" >&6; }
40133 as_val=`eval 'as_val=${'$as_ac_Header'}
40134 $as_echo "$as_val"'`
40135 if test "x$as_val" = x""yes; then
40136 cat >>confdefs.h <<_ACEOF
40137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40138 _ACEOF
40139
40140 fi
40141
40142 done
40143
40144 if test "$ac_cv_header_sched_h" = "yes"; then
40145 { $as_echo "$as_me:$LINENO: checking for sched_yield" >&5
40146 $as_echo_n "checking for sched_yield... " >&6; }
40147 if test "${ac_cv_func_sched_yield+set}" = set; then
40148 $as_echo_n "(cached) " >&6
40149 else
40150 cat >conftest.$ac_ext <<_ACEOF
40151 /* confdefs.h. */
40152 _ACEOF
40153 cat confdefs.h >>conftest.$ac_ext
40154 cat >>conftest.$ac_ext <<_ACEOF
40155 /* end confdefs.h. */
40156 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
40157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40158 #define sched_yield innocuous_sched_yield
40159
40160 /* System header to define __stub macros and hopefully few prototypes,
40161 which can conflict with char sched_yield (); below.
40162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40163 <limits.h> exists even on freestanding compilers. */
40164
40165 #ifdef __STDC__
40166 # include <limits.h>
40167 #else
40168 # include <assert.h>
40169 #endif
40170
40171 #undef sched_yield
40172
40173 /* Override any GCC internal prototype to avoid an error.
40174 Use char because int might match the return type of a GCC
40175 builtin and then its argument prototype would still apply. */
40176 #ifdef __cplusplus
40177 extern "C"
40178 #endif
40179 char sched_yield ();
40180 /* The GNU C library defines this for functions which it implements
40181 to always fail with ENOSYS. Some functions are actually named
40182 something starting with __ and the normal name is an alias. */
40183 #if defined __stub_sched_yield || defined __stub___sched_yield
40184 choke me
40185 #endif
40186
40187 int
40188 main ()
40189 {
40190 return sched_yield ();
40191 ;
40192 return 0;
40193 }
40194 _ACEOF
40195 rm -f conftest.$ac_objext conftest$ac_exeext
40196 if { (ac_try="$ac_link"
40197 case "(($ac_try" in
40198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40199 *) ac_try_echo=$ac_try;;
40200 esac
40201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40202 $as_echo "$ac_try_echo") >&5
40203 (eval "$ac_link") 2>conftest.er1
40204 ac_status=$?
40205 grep -v '^ *+' conftest.er1 >conftest.err
40206 rm -f conftest.er1
40207 cat conftest.err >&5
40208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209 (exit $ac_status); } && {
40210 test -z "$ac_c_werror_flag" ||
40211 test ! -s conftest.err
40212 } && test -s conftest$ac_exeext && {
40213 test "$cross_compiling" = yes ||
40214 $as_test_x conftest$ac_exeext
40215 }; then
40216 ac_cv_func_sched_yield=yes
40217 else
40218 $as_echo "$as_me: failed program was:" >&5
40219 sed 's/^/| /' conftest.$ac_ext >&5
40220
40221 ac_cv_func_sched_yield=no
40222 fi
40223
40224 rm -rf conftest.dSYM
40225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40226 conftest$ac_exeext conftest.$ac_ext
40227 fi
40228 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
40229 $as_echo "$ac_cv_func_sched_yield" >&6; }
40230 if test "x$ac_cv_func_sched_yield" = x""yes; then
40231 cat >>confdefs.h <<\_ACEOF
40232 #define HAVE_SCHED_YIELD 1
40233 _ACEOF
40234
40235 else
40236
40237 { $as_echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
40238 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
40239 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
40240 $as_echo_n "(cached) " >&6
40241 else
40242 ac_check_lib_save_LIBS=$LIBS
40243 LIBS="-lposix4 $LIBS"
40244 cat >conftest.$ac_ext <<_ACEOF
40245 /* confdefs.h. */
40246 _ACEOF
40247 cat confdefs.h >>conftest.$ac_ext
40248 cat >>conftest.$ac_ext <<_ACEOF
40249 /* end confdefs.h. */
40250
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. */
40254 #ifdef __cplusplus
40255 extern "C"
40256 #endif
40257 char sched_yield ();
40258 int
40259 main ()
40260 {
40261 return sched_yield ();
40262 ;
40263 return 0;
40264 }
40265 _ACEOF
40266 rm -f conftest.$ac_objext conftest$ac_exeext
40267 if { (ac_try="$ac_link"
40268 case "(($ac_try" in
40269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40270 *) ac_try_echo=$ac_try;;
40271 esac
40272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40273 $as_echo "$ac_try_echo") >&5
40274 (eval "$ac_link") 2>conftest.er1
40275 ac_status=$?
40276 grep -v '^ *+' conftest.er1 >conftest.err
40277 rm -f conftest.er1
40278 cat conftest.err >&5
40279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40280 (exit $ac_status); } && {
40281 test -z "$ac_c_werror_flag" ||
40282 test ! -s conftest.err
40283 } && test -s conftest$ac_exeext && {
40284 test "$cross_compiling" = yes ||
40285 $as_test_x conftest$ac_exeext
40286 }; then
40287 ac_cv_lib_posix4_sched_yield=yes
40288 else
40289 $as_echo "$as_me: failed program was:" >&5
40290 sed 's/^/| /' conftest.$ac_ext >&5
40291
40292 ac_cv_lib_posix4_sched_yield=no
40293 fi
40294
40295 rm -rf conftest.dSYM
40296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40297 conftest$ac_exeext conftest.$ac_ext
40298 LIBS=$ac_check_lib_save_LIBS
40299 fi
40300 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40301 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
40302 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then
40303 cat >>confdefs.h <<\_ACEOF
40304 #define HAVE_SCHED_YIELD 1
40305 _ACEOF
40306 POSIX4_LINK=" -lposix4"
40307 else
40308 { $as_echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40309 $as_echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
40310
40311 fi
40312
40313
40314
40315 fi
40316
40317 fi
40318
40319 HAVE_PRIOR_FUNCS=0
40320 { $as_echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
40321 $as_echo_n "checking for pthread_attr_getschedpolicy... " >&6; }
40322 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
40323 $as_echo_n "(cached) " >&6
40324 else
40325 cat >conftest.$ac_ext <<_ACEOF
40326 /* confdefs.h. */
40327 _ACEOF
40328 cat confdefs.h >>conftest.$ac_ext
40329 cat >>conftest.$ac_ext <<_ACEOF
40330 /* end confdefs.h. */
40331 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40333 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40334
40335 /* System header to define __stub macros and hopefully few prototypes,
40336 which can conflict with char pthread_attr_getschedpolicy (); below.
40337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40338 <limits.h> exists even on freestanding compilers. */
40339
40340 #ifdef __STDC__
40341 # include <limits.h>
40342 #else
40343 # include <assert.h>
40344 #endif
40345
40346 #undef pthread_attr_getschedpolicy
40347
40348 /* Override any GCC internal prototype to avoid an error.
40349 Use char because int might match the return type of a GCC
40350 builtin and then its argument prototype would still apply. */
40351 #ifdef __cplusplus
40352 extern "C"
40353 #endif
40354 char pthread_attr_getschedpolicy ();
40355 /* The GNU C library defines this for functions which it implements
40356 to always fail with ENOSYS. Some functions are actually named
40357 something starting with __ and the normal name is an alias. */
40358 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
40359 choke me
40360 #endif
40361
40362 int
40363 main ()
40364 {
40365 return pthread_attr_getschedpolicy ();
40366 ;
40367 return 0;
40368 }
40369 _ACEOF
40370 rm -f conftest.$ac_objext conftest$ac_exeext
40371 if { (ac_try="$ac_link"
40372 case "(($ac_try" in
40373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40374 *) ac_try_echo=$ac_try;;
40375 esac
40376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40377 $as_echo "$ac_try_echo") >&5
40378 (eval "$ac_link") 2>conftest.er1
40379 ac_status=$?
40380 grep -v '^ *+' conftest.er1 >conftest.err
40381 rm -f conftest.er1
40382 cat conftest.err >&5
40383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40384 (exit $ac_status); } && {
40385 test -z "$ac_c_werror_flag" ||
40386 test ! -s conftest.err
40387 } && test -s conftest$ac_exeext && {
40388 test "$cross_compiling" = yes ||
40389 $as_test_x conftest$ac_exeext
40390 }; then
40391 ac_cv_func_pthread_attr_getschedpolicy=yes
40392 else
40393 $as_echo "$as_me: failed program was:" >&5
40394 sed 's/^/| /' conftest.$ac_ext >&5
40395
40396 ac_cv_func_pthread_attr_getschedpolicy=no
40397 fi
40398
40399 rm -rf conftest.dSYM
40400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40401 conftest$ac_exeext conftest.$ac_ext
40402 fi
40403 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40404 $as_echo "$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
40405 if test "x$ac_cv_func_pthread_attr_getschedpolicy" = x""yes; then
40406 { $as_echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40407 $as_echo_n "checking for pthread_attr_setschedparam... " >&6; }
40408 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
40409 $as_echo_n "(cached) " >&6
40410 else
40411 cat >conftest.$ac_ext <<_ACEOF
40412 /* confdefs.h. */
40413 _ACEOF
40414 cat confdefs.h >>conftest.$ac_ext
40415 cat >>conftest.$ac_ext <<_ACEOF
40416 /* end confdefs.h. */
40417 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
40418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40419 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
40420
40421 /* System header to define __stub macros and hopefully few prototypes,
40422 which can conflict with char pthread_attr_setschedparam (); below.
40423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40424 <limits.h> exists even on freestanding compilers. */
40425
40426 #ifdef __STDC__
40427 # include <limits.h>
40428 #else
40429 # include <assert.h>
40430 #endif
40431
40432 #undef pthread_attr_setschedparam
40433
40434 /* Override any GCC internal prototype to avoid an error.
40435 Use char because int might match the return type of a GCC
40436 builtin and then its argument prototype would still apply. */
40437 #ifdef __cplusplus
40438 extern "C"
40439 #endif
40440 char pthread_attr_setschedparam ();
40441 /* The GNU C library defines this for functions which it implements
40442 to always fail with ENOSYS. Some functions are actually named
40443 something starting with __ and the normal name is an alias. */
40444 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
40445 choke me
40446 #endif
40447
40448 int
40449 main ()
40450 {
40451 return pthread_attr_setschedparam ();
40452 ;
40453 return 0;
40454 }
40455 _ACEOF
40456 rm -f conftest.$ac_objext conftest$ac_exeext
40457 if { (ac_try="$ac_link"
40458 case "(($ac_try" in
40459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40460 *) ac_try_echo=$ac_try;;
40461 esac
40462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40463 $as_echo "$ac_try_echo") >&5
40464 (eval "$ac_link") 2>conftest.er1
40465 ac_status=$?
40466 grep -v '^ *+' conftest.er1 >conftest.err
40467 rm -f conftest.er1
40468 cat conftest.err >&5
40469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40470 (exit $ac_status); } && {
40471 test -z "$ac_c_werror_flag" ||
40472 test ! -s conftest.err
40473 } && test -s conftest$ac_exeext && {
40474 test "$cross_compiling" = yes ||
40475 $as_test_x conftest$ac_exeext
40476 }; then
40477 ac_cv_func_pthread_attr_setschedparam=yes
40478 else
40479 $as_echo "$as_me: failed program was:" >&5
40480 sed 's/^/| /' conftest.$ac_ext >&5
40481
40482 ac_cv_func_pthread_attr_setschedparam=no
40483 fi
40484
40485 rm -rf conftest.dSYM
40486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40487 conftest$ac_exeext conftest.$ac_ext
40488 fi
40489 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
40490 $as_echo "$ac_cv_func_pthread_attr_setschedparam" >&6; }
40491 if test "x$ac_cv_func_pthread_attr_setschedparam" = x""yes; then
40492 { $as_echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
40493 $as_echo_n "checking for sched_get_priority_max... " >&6; }
40494 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
40495 $as_echo_n "(cached) " >&6
40496 else
40497 cat >conftest.$ac_ext <<_ACEOF
40498 /* confdefs.h. */
40499 _ACEOF
40500 cat confdefs.h >>conftest.$ac_ext
40501 cat >>conftest.$ac_ext <<_ACEOF
40502 /* end confdefs.h. */
40503 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
40504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40505 #define sched_get_priority_max innocuous_sched_get_priority_max
40506
40507 /* System header to define __stub macros and hopefully few prototypes,
40508 which can conflict with char sched_get_priority_max (); below.
40509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40510 <limits.h> exists even on freestanding compilers. */
40511
40512 #ifdef __STDC__
40513 # include <limits.h>
40514 #else
40515 # include <assert.h>
40516 #endif
40517
40518 #undef sched_get_priority_max
40519
40520 /* Override any GCC internal prototype to avoid an error.
40521 Use char because int might match the return type of a GCC
40522 builtin and then its argument prototype would still apply. */
40523 #ifdef __cplusplus
40524 extern "C"
40525 #endif
40526 char sched_get_priority_max ();
40527 /* The GNU C library defines this for functions which it implements
40528 to always fail with ENOSYS. Some functions are actually named
40529 something starting with __ and the normal name is an alias. */
40530 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
40531 choke me
40532 #endif
40533
40534 int
40535 main ()
40536 {
40537 return sched_get_priority_max ();
40538 ;
40539 return 0;
40540 }
40541 _ACEOF
40542 rm -f conftest.$ac_objext conftest$ac_exeext
40543 if { (ac_try="$ac_link"
40544 case "(($ac_try" in
40545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40546 *) ac_try_echo=$ac_try;;
40547 esac
40548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40549 $as_echo "$ac_try_echo") >&5
40550 (eval "$ac_link") 2>conftest.er1
40551 ac_status=$?
40552 grep -v '^ *+' conftest.er1 >conftest.err
40553 rm -f conftest.er1
40554 cat conftest.err >&5
40555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40556 (exit $ac_status); } && {
40557 test -z "$ac_c_werror_flag" ||
40558 test ! -s conftest.err
40559 } && test -s conftest$ac_exeext && {
40560 test "$cross_compiling" = yes ||
40561 $as_test_x conftest$ac_exeext
40562 }; then
40563 ac_cv_func_sched_get_priority_max=yes
40564 else
40565 $as_echo "$as_me: failed program was:" >&5
40566 sed 's/^/| /' conftest.$ac_ext >&5
40567
40568 ac_cv_func_sched_get_priority_max=no
40569 fi
40570
40571 rm -rf conftest.dSYM
40572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40573 conftest$ac_exeext conftest.$ac_ext
40574 fi
40575 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
40576 $as_echo "$ac_cv_func_sched_get_priority_max" >&6; }
40577 if test "x$ac_cv_func_sched_get_priority_max" = x""yes; then
40578 HAVE_PRIOR_FUNCS=1
40579 else
40580 { $as_echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
40581 $as_echo_n "checking for sched_get_priority_max in -lposix4... " >&6; }
40582 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
40583 $as_echo_n "(cached) " >&6
40584 else
40585 ac_check_lib_save_LIBS=$LIBS
40586 LIBS="-lposix4 $LIBS"
40587 cat >conftest.$ac_ext <<_ACEOF
40588 /* confdefs.h. */
40589 _ACEOF
40590 cat confdefs.h >>conftest.$ac_ext
40591 cat >>conftest.$ac_ext <<_ACEOF
40592 /* end confdefs.h. */
40593
40594 /* Override any GCC internal prototype to avoid an error.
40595 Use char because int might match the return type of a GCC
40596 builtin and then its argument prototype would still apply. */
40597 #ifdef __cplusplus
40598 extern "C"
40599 #endif
40600 char sched_get_priority_max ();
40601 int
40602 main ()
40603 {
40604 return sched_get_priority_max ();
40605 ;
40606 return 0;
40607 }
40608 _ACEOF
40609 rm -f conftest.$ac_objext conftest$ac_exeext
40610 if { (ac_try="$ac_link"
40611 case "(($ac_try" in
40612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40613 *) ac_try_echo=$ac_try;;
40614 esac
40615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40616 $as_echo "$ac_try_echo") >&5
40617 (eval "$ac_link") 2>conftest.er1
40618 ac_status=$?
40619 grep -v '^ *+' conftest.er1 >conftest.err
40620 rm -f conftest.er1
40621 cat conftest.err >&5
40622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40623 (exit $ac_status); } && {
40624 test -z "$ac_c_werror_flag" ||
40625 test ! -s conftest.err
40626 } && test -s conftest$ac_exeext && {
40627 test "$cross_compiling" = yes ||
40628 $as_test_x conftest$ac_exeext
40629 }; then
40630 ac_cv_lib_posix4_sched_get_priority_max=yes
40631 else
40632 $as_echo "$as_me: failed program was:" >&5
40633 sed 's/^/| /' conftest.$ac_ext >&5
40634
40635 ac_cv_lib_posix4_sched_get_priority_max=no
40636 fi
40637
40638 rm -rf conftest.dSYM
40639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40640 conftest$ac_exeext conftest.$ac_ext
40641 LIBS=$ac_check_lib_save_LIBS
40642 fi
40643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
40644 $as_echo "$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
40645 if test "x$ac_cv_lib_posix4_sched_get_priority_max" = x""yes; then
40646
40647 HAVE_PRIOR_FUNCS=1
40648 POSIX4_LINK=" -lposix4"
40649
40650 fi
40651
40652
40653 fi
40654
40655
40656 fi
40657
40658
40659 fi
40660
40661
40662 if test "$HAVE_PRIOR_FUNCS" = 1; then
40663 cat >>confdefs.h <<\_ACEOF
40664 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
40665 _ACEOF
40666
40667 else
40668 { $as_echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40669 $as_echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40670 fi
40671
40672 { $as_echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40673 $as_echo_n "checking for pthread_cancel... " >&6; }
40674 if test "${ac_cv_func_pthread_cancel+set}" = set; then
40675 $as_echo_n "(cached) " >&6
40676 else
40677 cat >conftest.$ac_ext <<_ACEOF
40678 /* confdefs.h. */
40679 _ACEOF
40680 cat confdefs.h >>conftest.$ac_ext
40681 cat >>conftest.$ac_ext <<_ACEOF
40682 /* end confdefs.h. */
40683 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40685 #define pthread_cancel innocuous_pthread_cancel
40686
40687 /* System header to define __stub macros and hopefully few prototypes,
40688 which can conflict with char pthread_cancel (); below.
40689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40690 <limits.h> exists even on freestanding compilers. */
40691
40692 #ifdef __STDC__
40693 # include <limits.h>
40694 #else
40695 # include <assert.h>
40696 #endif
40697
40698 #undef pthread_cancel
40699
40700 /* Override any GCC internal prototype to avoid an error.
40701 Use char because int might match the return type of a GCC
40702 builtin and then its argument prototype would still apply. */
40703 #ifdef __cplusplus
40704 extern "C"
40705 #endif
40706 char pthread_cancel ();
40707 /* The GNU C library defines this for functions which it implements
40708 to always fail with ENOSYS. Some functions are actually named
40709 something starting with __ and the normal name is an alias. */
40710 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
40711 choke me
40712 #endif
40713
40714 int
40715 main ()
40716 {
40717 return pthread_cancel ();
40718 ;
40719 return 0;
40720 }
40721 _ACEOF
40722 rm -f conftest.$ac_objext conftest$ac_exeext
40723 if { (ac_try="$ac_link"
40724 case "(($ac_try" in
40725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40726 *) ac_try_echo=$ac_try;;
40727 esac
40728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40729 $as_echo "$ac_try_echo") >&5
40730 (eval "$ac_link") 2>conftest.er1
40731 ac_status=$?
40732 grep -v '^ *+' conftest.er1 >conftest.err
40733 rm -f conftest.er1
40734 cat conftest.err >&5
40735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40736 (exit $ac_status); } && {
40737 test -z "$ac_c_werror_flag" ||
40738 test ! -s conftest.err
40739 } && test -s conftest$ac_exeext && {
40740 test "$cross_compiling" = yes ||
40741 $as_test_x conftest$ac_exeext
40742 }; then
40743 ac_cv_func_pthread_cancel=yes
40744 else
40745 $as_echo "$as_me: failed program was:" >&5
40746 sed 's/^/| /' conftest.$ac_ext >&5
40747
40748 ac_cv_func_pthread_cancel=no
40749 fi
40750
40751 rm -rf conftest.dSYM
40752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40753 conftest$ac_exeext conftest.$ac_ext
40754 fi
40755 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40756 $as_echo "$ac_cv_func_pthread_cancel" >&6; }
40757 if test "x$ac_cv_func_pthread_cancel" = x""yes; then
40758 cat >>confdefs.h <<\_ACEOF
40759 #define HAVE_PTHREAD_CANCEL 1
40760 _ACEOF
40761
40762 else
40763 { $as_echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40764 $as_echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40765 fi
40766
40767
40768 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
40769 $as_echo_n "checking for pthread_mutex_timedlock... " >&6; }
40770 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
40771 $as_echo_n "(cached) " >&6
40772 else
40773 cat >conftest.$ac_ext <<_ACEOF
40774 /* confdefs.h. */
40775 _ACEOF
40776 cat confdefs.h >>conftest.$ac_ext
40777 cat >>conftest.$ac_ext <<_ACEOF
40778 /* end confdefs.h. */
40779 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
40780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40781 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
40782
40783 /* System header to define __stub macros and hopefully few prototypes,
40784 which can conflict with char pthread_mutex_timedlock (); below.
40785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40786 <limits.h> exists even on freestanding compilers. */
40787
40788 #ifdef __STDC__
40789 # include <limits.h>
40790 #else
40791 # include <assert.h>
40792 #endif
40793
40794 #undef pthread_mutex_timedlock
40795
40796 /* Override any GCC internal prototype to avoid an error.
40797 Use char because int might match the return type of a GCC
40798 builtin and then its argument prototype would still apply. */
40799 #ifdef __cplusplus
40800 extern "C"
40801 #endif
40802 char pthread_mutex_timedlock ();
40803 /* The GNU C library defines this for functions which it implements
40804 to always fail with ENOSYS. Some functions are actually named
40805 something starting with __ and the normal name is an alias. */
40806 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
40807 choke me
40808 #endif
40809
40810 int
40811 main ()
40812 {
40813 return pthread_mutex_timedlock ();
40814 ;
40815 return 0;
40816 }
40817 _ACEOF
40818 rm -f conftest.$ac_objext conftest$ac_exeext
40819 if { (ac_try="$ac_link"
40820 case "(($ac_try" in
40821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40822 *) ac_try_echo=$ac_try;;
40823 esac
40824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40825 $as_echo "$ac_try_echo") >&5
40826 (eval "$ac_link") 2>conftest.er1
40827 ac_status=$?
40828 grep -v '^ *+' conftest.er1 >conftest.err
40829 rm -f conftest.er1
40830 cat conftest.err >&5
40831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40832 (exit $ac_status); } && {
40833 test -z "$ac_c_werror_flag" ||
40834 test ! -s conftest.err
40835 } && test -s conftest$ac_exeext && {
40836 test "$cross_compiling" = yes ||
40837 $as_test_x conftest$ac_exeext
40838 }; then
40839 ac_cv_func_pthread_mutex_timedlock=yes
40840 else
40841 $as_echo "$as_me: failed program was:" >&5
40842 sed 's/^/| /' conftest.$ac_ext >&5
40843
40844 ac_cv_func_pthread_mutex_timedlock=no
40845 fi
40846
40847 rm -rf conftest.dSYM
40848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40849 conftest$ac_exeext conftest.$ac_ext
40850 fi
40851 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
40852 $as_echo "$ac_cv_func_pthread_mutex_timedlock" >&6; }
40853 if test "x$ac_cv_func_pthread_mutex_timedlock" = x""yes; then
40854 cat >>confdefs.h <<\_ACEOF
40855 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
40856 _ACEOF
40857
40858 else
40859 { $as_echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
40860 $as_echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
40861 fi
40862
40863
40864 { $as_echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40865 $as_echo_n "checking for pthread_attr_setstacksize... " >&6; }
40866 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40867 $as_echo_n "(cached) " >&6
40868 else
40869 cat >conftest.$ac_ext <<_ACEOF
40870 /* confdefs.h. */
40871 _ACEOF
40872 cat confdefs.h >>conftest.$ac_ext
40873 cat >>conftest.$ac_ext <<_ACEOF
40874 /* end confdefs.h. */
40875 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40877 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40878
40879 /* System header to define __stub macros and hopefully few prototypes,
40880 which can conflict with char pthread_attr_setstacksize (); below.
40881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40882 <limits.h> exists even on freestanding compilers. */
40883
40884 #ifdef __STDC__
40885 # include <limits.h>
40886 #else
40887 # include <assert.h>
40888 #endif
40889
40890 #undef pthread_attr_setstacksize
40891
40892 /* Override any GCC internal prototype to avoid an error.
40893 Use char because int might match the return type of a GCC
40894 builtin and then its argument prototype would still apply. */
40895 #ifdef __cplusplus
40896 extern "C"
40897 #endif
40898 char pthread_attr_setstacksize ();
40899 /* The GNU C library defines this for functions which it implements
40900 to always fail with ENOSYS. Some functions are actually named
40901 something starting with __ and the normal name is an alias. */
40902 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
40903 choke me
40904 #endif
40905
40906 int
40907 main ()
40908 {
40909 return pthread_attr_setstacksize ();
40910 ;
40911 return 0;
40912 }
40913 _ACEOF
40914 rm -f conftest.$ac_objext conftest$ac_exeext
40915 if { (ac_try="$ac_link"
40916 case "(($ac_try" in
40917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40918 *) ac_try_echo=$ac_try;;
40919 esac
40920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40921 $as_echo "$ac_try_echo") >&5
40922 (eval "$ac_link") 2>conftest.er1
40923 ac_status=$?
40924 grep -v '^ *+' conftest.er1 >conftest.err
40925 rm -f conftest.er1
40926 cat conftest.err >&5
40927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40928 (exit $ac_status); } && {
40929 test -z "$ac_c_werror_flag" ||
40930 test ! -s conftest.err
40931 } && test -s conftest$ac_exeext && {
40932 test "$cross_compiling" = yes ||
40933 $as_test_x conftest$ac_exeext
40934 }; then
40935 ac_cv_func_pthread_attr_setstacksize=yes
40936 else
40937 $as_echo "$as_me: failed program was:" >&5
40938 sed 's/^/| /' conftest.$ac_ext >&5
40939
40940 ac_cv_func_pthread_attr_setstacksize=no
40941 fi
40942
40943 rm -rf conftest.dSYM
40944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40945 conftest$ac_exeext conftest.$ac_ext
40946 fi
40947 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40948 $as_echo "$ac_cv_func_pthread_attr_setstacksize" >&6; }
40949 if test "x$ac_cv_func_pthread_attr_setstacksize" = x""yes; then
40950 cat >>confdefs.h <<\_ACEOF
40951 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40952 _ACEOF
40953
40954 fi
40955
40956
40957
40958 { $as_echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40959 $as_echo_n "checking for pthread_mutexattr_t... " >&6; }
40960 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40961 $as_echo_n "(cached) " >&6
40962 else
40963
40964 cat >conftest.$ac_ext <<_ACEOF
40965 /* confdefs.h. */
40966 _ACEOF
40967 cat confdefs.h >>conftest.$ac_ext
40968 cat >>conftest.$ac_ext <<_ACEOF
40969 /* end confdefs.h. */
40970 #include <pthread.h>
40971 int
40972 main ()
40973 {
40974
40975 pthread_mutexattr_t attr;
40976 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40977
40978 ;
40979 return 0;
40980 }
40981 _ACEOF
40982 rm -f conftest.$ac_objext
40983 if { (ac_try="$ac_compile"
40984 case "(($ac_try" in
40985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40986 *) ac_try_echo=$ac_try;;
40987 esac
40988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40989 $as_echo "$ac_try_echo") >&5
40990 (eval "$ac_compile") 2>conftest.er1
40991 ac_status=$?
40992 grep -v '^ *+' conftest.er1 >conftest.err
40993 rm -f conftest.er1
40994 cat conftest.err >&5
40995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40996 (exit $ac_status); } && {
40997 test -z "$ac_c_werror_flag" ||
40998 test ! -s conftest.err
40999 } && test -s conftest.$ac_objext; then
41000 wx_cv_type_pthread_mutexattr_t=yes
41001 else
41002 $as_echo "$as_me: failed program was:" >&5
41003 sed 's/^/| /' conftest.$ac_ext >&5
41004
41005 wx_cv_type_pthread_mutexattr_t=no
41006
41007 fi
41008
41009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41010
41011 fi
41012 { $as_echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
41013 $as_echo "$wx_cv_type_pthread_mutexattr_t" >&6; }
41014
41015 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
41016 cat >>confdefs.h <<\_ACEOF
41017 #define HAVE_PTHREAD_MUTEXATTR_T 1
41018 _ACEOF
41019
41020
41021 { $as_echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
41022 $as_echo_n "checking for pthread_mutexattr_settype declaration... " >&6; }
41023 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
41024 $as_echo_n "(cached) " >&6
41025 else
41026
41027 cat >conftest.$ac_ext <<_ACEOF
41028 /* confdefs.h. */
41029 _ACEOF
41030 cat confdefs.h >>conftest.$ac_ext
41031 cat >>conftest.$ac_ext <<_ACEOF
41032 /* end confdefs.h. */
41033 #include <pthread.h>
41034 int
41035 main ()
41036 {
41037
41038 pthread_mutexattr_t attr;
41039 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41040
41041 ;
41042 return 0;
41043 }
41044 _ACEOF
41045 rm -f conftest.$ac_objext
41046 if { (ac_try="$ac_compile"
41047 case "(($ac_try" in
41048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41049 *) ac_try_echo=$ac_try;;
41050 esac
41051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41052 $as_echo "$ac_try_echo") >&5
41053 (eval "$ac_compile") 2>conftest.er1
41054 ac_status=$?
41055 grep -v '^ *+' conftest.er1 >conftest.err
41056 rm -f conftest.er1
41057 cat conftest.err >&5
41058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41059 (exit $ac_status); } && {
41060 test -z "$ac_c_werror_flag" ||
41061 test ! -s conftest.err
41062 } && test -s conftest.$ac_objext; then
41063 wx_cv_func_pthread_mutexattr_settype_decl=yes
41064 else
41065 $as_echo "$as_me: failed program was:" >&5
41066 sed 's/^/| /' conftest.$ac_ext >&5
41067
41068 wx_cv_func_pthread_mutexattr_settype_decl=no
41069
41070 fi
41071
41072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41073
41074 fi
41075 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
41076 $as_echo "$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
41077 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
41078 cat >>confdefs.h <<\_ACEOF
41079 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
41080 _ACEOF
41081
41082 fi
41083 else
41084 { $as_echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
41085 $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... " >&6; }
41086 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
41087 $as_echo_n "(cached) " >&6
41088 else
41089
41090 cat >conftest.$ac_ext <<_ACEOF
41091 /* confdefs.h. */
41092 _ACEOF
41093 cat confdefs.h >>conftest.$ac_ext
41094 cat >>conftest.$ac_ext <<_ACEOF
41095 /* end confdefs.h. */
41096 #include <pthread.h>
41097 int
41098 main ()
41099 {
41100
41101 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
41102
41103 ;
41104 return 0;
41105 }
41106 _ACEOF
41107 rm -f conftest.$ac_objext
41108 if { (ac_try="$ac_compile"
41109 case "(($ac_try" in
41110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41111 *) ac_try_echo=$ac_try;;
41112 esac
41113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41114 $as_echo "$ac_try_echo") >&5
41115 (eval "$ac_compile") 2>conftest.er1
41116 ac_status=$?
41117 grep -v '^ *+' conftest.er1 >conftest.err
41118 rm -f conftest.er1
41119 cat conftest.err >&5
41120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41121 (exit $ac_status); } && {
41122 test -z "$ac_c_werror_flag" ||
41123 test ! -s conftest.err
41124 } && test -s conftest.$ac_objext; then
41125
41126 wx_cv_type_pthread_rec_mutex_init=yes
41127
41128 else
41129 $as_echo "$as_me: failed program was:" >&5
41130 sed 's/^/| /' conftest.$ac_ext >&5
41131
41132
41133 wx_cv_type_pthread_rec_mutex_init=no
41134
41135
41136 fi
41137
41138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41139
41140 fi
41141 { $as_echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
41142 $as_echo "$wx_cv_type_pthread_rec_mutex_init" >&6; }
41143 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
41144 cat >>confdefs.h <<\_ACEOF
41145 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
41146 _ACEOF
41147
41148 else
41149 { $as_echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
41150 $as_echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
41151 fi
41152 fi
41153
41154 { $as_echo "$as_me:$LINENO: checking for __thread keyword" >&5
41155 $as_echo_n "checking for __thread keyword... " >&6; }
41156 if test "${wx_cv_cc___thread+set}" = set; then
41157 $as_echo_n "(cached) " >&6
41158 else
41159
41160 cat >conftest.$ac_ext <<_ACEOF
41161 /* confdefs.h. */
41162 _ACEOF
41163 cat confdefs.h >>conftest.$ac_ext
41164 cat >>conftest.$ac_ext <<_ACEOF
41165 /* end confdefs.h. */
41166 #include <pthread.h>
41167 int
41168 main ()
41169 {
41170
41171 static __thread int n = 0;
41172 static __thread int *p = 0;
41173
41174 ;
41175 return 0;
41176 }
41177 _ACEOF
41178 rm -f conftest.$ac_objext
41179 if { (ac_try="$ac_compile"
41180 case "(($ac_try" in
41181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41182 *) ac_try_echo=$ac_try;;
41183 esac
41184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41185 $as_echo "$ac_try_echo") >&5
41186 (eval "$ac_compile") 2>conftest.er1
41187 ac_status=$?
41188 grep -v '^ *+' conftest.er1 >conftest.err
41189 rm -f conftest.er1
41190 cat conftest.err >&5
41191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41192 (exit $ac_status); } && {
41193 test -z "$ac_c_werror_flag" ||
41194 test ! -s conftest.err
41195 } && test -s conftest.$ac_objext; then
41196 wx_cv_cc___thread=yes
41197 else
41198 $as_echo "$as_me: failed program was:" >&5
41199 sed 's/^/| /' conftest.$ac_ext >&5
41200
41201 wx_cv_cc___thread=no
41202
41203 fi
41204
41205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41206
41207
41208 fi
41209 { $as_echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
41210 $as_echo "$wx_cv_cc___thread" >&6; }
41211
41212 if test "$wx_cv_cc___thread" = "yes"; then
41213
41214 GXX_VERSION=""
41215
41216
41217
41218 { $as_echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
41219 $as_echo_n "checking if gcc accepts -dumpversion option... " >&6; }
41220
41221 if test "x$GCC" = "xyes" ; then
41222
41223 if test -z "" ; then
41224
41225 ax_gcc_option_test="int main()
41226 {
41227 return 0;
41228 }"
41229
41230 else
41231
41232 ax_gcc_option_test=""
41233
41234 fi
41235
41236
41237 # Dump the test program to file
41238 cat <<EOF > conftest.c
41239 $ax_gcc_option_test
41240 EOF
41241
41242 # Dump back the file to the log, useful for debugging purposes
41243 { ac_try='cat conftest.c 1>&5'
41244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41245 (eval $ac_try) 2>&5
41246 ac_status=$?
41247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41248 (exit $ac_status); }; }
41249
41250 if { ac_try='$CC -dumpversion -c conftest.c 1>&5'
41251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41252 (eval $ac_try) 2>&5
41253 ac_status=$?
41254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41255 (exit $ac_status); }; } ; then
41256
41257 { $as_echo "$as_me:$LINENO: result: yes" >&5
41258 $as_echo "yes" >&6; }
41259
41260 ax_gcc_version_option=yes
41261
41262
41263 else
41264
41265 { $as_echo "$as_me:$LINENO: result: no" >&5
41266 $as_echo "no" >&6; }
41267
41268 ax_gcc_version_option=no
41269
41270
41271 fi
41272
41273
41274 else
41275
41276 { $as_echo "$as_me:$LINENO: result: no gcc available" >&5
41277 $as_echo "no gcc available" >&6; }
41278
41279 fi
41280
41281
41282 if test "x$GXX" = "xyes"; then
41283
41284 if test "x$ax_gxx_version_option" != "no"; then
41285
41286 { $as_echo "$as_me:$LINENO: checking gxx version" >&5
41287 $as_echo_n "checking gxx version... " >&6; }
41288 if test "${ax_cv_gxx_version+set}" = set; then
41289 $as_echo_n "(cached) " >&6
41290 else
41291
41292 ax_cv_gxx_version="`$CXX -dumpversion`"
41293 if test "x$ax_cv_gxx_version" = "x"; then
41294
41295 ax_cv_gxx_version=""
41296
41297 fi
41298
41299
41300 fi
41301 { $as_echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
41302 $as_echo "$ax_cv_gxx_version" >&6; }
41303 GXX_VERSION=$ax_cv_gxx_version
41304
41305 fi
41306
41307
41308 fi
41309
41310
41311
41312 if test -n "$ax_cv_gxx_version"; then
41313 { $as_echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
41314 $as_echo_n "checking whether __thread support in g++ is usable... " >&6; }
41315 case "$ax_cv_gxx_version" in
41316 1.* | 2.* | 3.* )
41317 { $as_echo "$as_me:$LINENO: result: no, it's broken" >&5
41318 $as_echo "no, it's broken" >&6; }
41319 wx_cv_cc___thread=no
41320 ;;
41321 *)
41322 { $as_echo "$as_me:$LINENO: result: yes, it works" >&5
41323 $as_echo "yes, it works" >&6; }
41324 ;;
41325 esac
41326 fi
41327 fi
41328
41329 if test "$wx_cv_cc___thread" = "yes"; then
41330 cat >>confdefs.h <<\_ACEOF
41331 #define HAVE___THREAD_KEYWORD 1
41332 _ACEOF
41333
41334 fi
41335 fi
41336
41337 else
41338 if test "$wxUSE_THREADS" = "yes" ; then
41339 case "${host}" in
41340 x86_64-*-mingw32* )
41341 ;;
41342 *-*-mingw32* )
41343 { $as_echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
41344 $as_echo_n "checking if compiler supports -mthreads... " >&6; }
41345 if test "${wx_cv_cflags_mthread+set}" = set; then
41346 $as_echo_n "(cached) " >&6
41347 else
41348
41349 CFLAGS_OLD="$CFLAGS"
41350 CFLAGS="-mthreads $CFLAGS"
41351 cat >conftest.$ac_ext <<_ACEOF
41352 /* confdefs.h. */
41353 _ACEOF
41354 cat confdefs.h >>conftest.$ac_ext
41355 cat >>conftest.$ac_ext <<_ACEOF
41356 /* end confdefs.h. */
41357
41358 int
41359 main ()
41360 {
41361
41362 ;
41363 return 0;
41364 }
41365 _ACEOF
41366 rm -f conftest.$ac_objext
41367 if { (ac_try="$ac_compile"
41368 case "(($ac_try" in
41369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41370 *) ac_try_echo=$ac_try;;
41371 esac
41372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41373 $as_echo "$ac_try_echo") >&5
41374 (eval "$ac_compile") 2>conftest.er1
41375 ac_status=$?
41376 grep -v '^ *+' conftest.er1 >conftest.err
41377 rm -f conftest.er1
41378 cat conftest.err >&5
41379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41380 (exit $ac_status); } && {
41381 test -z "$ac_c_werror_flag" ||
41382 test ! -s conftest.err
41383 } && test -s conftest.$ac_objext; then
41384 wx_cv_cflags_mthread=yes
41385 else
41386 $as_echo "$as_me: failed program was:" >&5
41387 sed 's/^/| /' conftest.$ac_ext >&5
41388
41389 wx_cv_cflags_mthread=no
41390
41391 fi
41392
41393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41394
41395
41396 fi
41397 { $as_echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
41398 $as_echo "$wx_cv_cflags_mthread" >&6; }
41399
41400 if test "$wx_cv_cflags_mthread" = "yes"; then
41401 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
41402 LDFLAGS="$LDFLAGS -mthreads"
41403 else
41404 CFLAGS="$CFLAGS_OLD"
41405 fi
41406 ;;
41407 *-pc-os2*emx )
41408 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
41409 LDFLAGS="$LDFLAGS -Zmt"
41410 ;;
41411 esac
41412 fi
41413 fi
41414
41415 { $as_echo "$as_me:$LINENO: checking for localtime_r" >&5
41416 $as_echo_n "checking for localtime_r... " >&6; }
41417 if test "${ac_cv_func_localtime_r+set}" = set; then
41418 $as_echo_n "(cached) " >&6
41419 else
41420 cat >conftest.$ac_ext <<_ACEOF
41421 /* confdefs.h. */
41422 _ACEOF
41423 cat confdefs.h >>conftest.$ac_ext
41424 cat >>conftest.$ac_ext <<_ACEOF
41425 /* end confdefs.h. */
41426 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
41427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41428 #define localtime_r innocuous_localtime_r
41429
41430 /* System header to define __stub macros and hopefully few prototypes,
41431 which can conflict with char localtime_r (); below.
41432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41433 <limits.h> exists even on freestanding compilers. */
41434
41435 #ifdef __STDC__
41436 # include <limits.h>
41437 #else
41438 # include <assert.h>
41439 #endif
41440
41441 #undef localtime_r
41442
41443 /* Override any GCC internal prototype to avoid an error.
41444 Use char because int might match the return type of a GCC
41445 builtin and then its argument prototype would still apply. */
41446 #ifdef __cplusplus
41447 extern "C"
41448 #endif
41449 char localtime_r ();
41450 /* The GNU C library defines this for functions which it implements
41451 to always fail with ENOSYS. Some functions are actually named
41452 something starting with __ and the normal name is an alias. */
41453 #if defined __stub_localtime_r || defined __stub___localtime_r
41454 choke me
41455 #endif
41456
41457 int
41458 main ()
41459 {
41460 return localtime_r ();
41461 ;
41462 return 0;
41463 }
41464 _ACEOF
41465 rm -f conftest.$ac_objext conftest$ac_exeext
41466 if { (ac_try="$ac_link"
41467 case "(($ac_try" in
41468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41469 *) ac_try_echo=$ac_try;;
41470 esac
41471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41472 $as_echo "$ac_try_echo") >&5
41473 (eval "$ac_link") 2>conftest.er1
41474 ac_status=$?
41475 grep -v '^ *+' conftest.er1 >conftest.err
41476 rm -f conftest.er1
41477 cat conftest.err >&5
41478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41479 (exit $ac_status); } && {
41480 test -z "$ac_c_werror_flag" ||
41481 test ! -s conftest.err
41482 } && test -s conftest$ac_exeext && {
41483 test "$cross_compiling" = yes ||
41484 $as_test_x conftest$ac_exeext
41485 }; then
41486 ac_cv_func_localtime_r=yes
41487 else
41488 $as_echo "$as_me: failed program was:" >&5
41489 sed 's/^/| /' conftest.$ac_ext >&5
41490
41491 ac_cv_func_localtime_r=no
41492 fi
41493
41494 rm -rf conftest.dSYM
41495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41496 conftest$ac_exeext conftest.$ac_ext
41497 fi
41498 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
41499 $as_echo "$ac_cv_func_localtime_r" >&6; }
41500 if test "x$ac_cv_func_localtime_r" = x""yes; then
41501 cat >>confdefs.h <<\_ACEOF
41502 #define HAVE_LOCALTIME_R 1
41503 _ACEOF
41504
41505 fi
41506
41507 { $as_echo "$as_me:$LINENO: checking for gmtime_r" >&5
41508 $as_echo_n "checking for gmtime_r... " >&6; }
41509 if test "${ac_cv_func_gmtime_r+set}" = set; then
41510 $as_echo_n "(cached) " >&6
41511 else
41512 cat >conftest.$ac_ext <<_ACEOF
41513 /* confdefs.h. */
41514 _ACEOF
41515 cat confdefs.h >>conftest.$ac_ext
41516 cat >>conftest.$ac_ext <<_ACEOF
41517 /* end confdefs.h. */
41518 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
41519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41520 #define gmtime_r innocuous_gmtime_r
41521
41522 /* System header to define __stub macros and hopefully few prototypes,
41523 which can conflict with char gmtime_r (); below.
41524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41525 <limits.h> exists even on freestanding compilers. */
41526
41527 #ifdef __STDC__
41528 # include <limits.h>
41529 #else
41530 # include <assert.h>
41531 #endif
41532
41533 #undef gmtime_r
41534
41535 /* Override any GCC internal prototype to avoid an error.
41536 Use char because int might match the return type of a GCC
41537 builtin and then its argument prototype would still apply. */
41538 #ifdef __cplusplus
41539 extern "C"
41540 #endif
41541 char gmtime_r ();
41542 /* The GNU C library defines this for functions which it implements
41543 to always fail with ENOSYS. Some functions are actually named
41544 something starting with __ and the normal name is an alias. */
41545 #if defined __stub_gmtime_r || defined __stub___gmtime_r
41546 choke me
41547 #endif
41548
41549 int
41550 main ()
41551 {
41552 return gmtime_r ();
41553 ;
41554 return 0;
41555 }
41556 _ACEOF
41557 rm -f conftest.$ac_objext conftest$ac_exeext
41558 if { (ac_try="$ac_link"
41559 case "(($ac_try" in
41560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41561 *) ac_try_echo=$ac_try;;
41562 esac
41563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41564 $as_echo "$ac_try_echo") >&5
41565 (eval "$ac_link") 2>conftest.er1
41566 ac_status=$?
41567 grep -v '^ *+' conftest.er1 >conftest.err
41568 rm -f conftest.er1
41569 cat conftest.err >&5
41570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41571 (exit $ac_status); } && {
41572 test -z "$ac_c_werror_flag" ||
41573 test ! -s conftest.err
41574 } && test -s conftest$ac_exeext && {
41575 test "$cross_compiling" = yes ||
41576 $as_test_x conftest$ac_exeext
41577 }; then
41578 ac_cv_func_gmtime_r=yes
41579 else
41580 $as_echo "$as_me: failed program was:" >&5
41581 sed 's/^/| /' conftest.$ac_ext >&5
41582
41583 ac_cv_func_gmtime_r=no
41584 fi
41585
41586 rm -rf conftest.dSYM
41587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41588 conftest$ac_exeext conftest.$ac_ext
41589 fi
41590 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
41591 $as_echo "$ac_cv_func_gmtime_r" >&6; }
41592 if test "x$ac_cv_func_gmtime_r" = x""yes; then
41593 cat >>confdefs.h <<\_ACEOF
41594 #define HAVE_GMTIME_R 1
41595 _ACEOF
41596
41597 fi
41598
41599
41600
41601
41602 ac_ext=c
41603 ac_cpp='$CPP $CPPFLAGS'
41604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41607
41608 { $as_echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
41609 $as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; }
41610
41611 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
41612 $as_echo_n "(cached) " >&6
41613 else
41614
41615
41616 ################################################################
41617
41618 ac_cv_func_which_gethostbyname_r=unknown
41619
41620 #
41621 # ONE ARGUMENT (sanity check)
41622 #
41623
41624 # This should fail, as there is no variant of gethostbyname_r() that takes
41625 # a single argument. If it actually compiles, then we can assume that
41626 # netdb.h is not declaring the function, and the compiler is thereby
41627 # assuming an implicit prototype. In which case, we're out of luck.
41628 #
41629 cat >conftest.$ac_ext <<_ACEOF
41630 /* confdefs.h. */
41631 _ACEOF
41632 cat confdefs.h >>conftest.$ac_ext
41633 cat >>conftest.$ac_ext <<_ACEOF
41634 /* end confdefs.h. */
41635 #include <netdb.h>
41636 int
41637 main ()
41638 {
41639
41640 char *name = "www.gnu.org";
41641 (void)gethostbyname_r(name) /* ; */
41642
41643 ;
41644 return 0;
41645 }
41646 _ACEOF
41647 rm -f conftest.$ac_objext
41648 if { (ac_try="$ac_compile"
41649 case "(($ac_try" in
41650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41651 *) ac_try_echo=$ac_try;;
41652 esac
41653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41654 $as_echo "$ac_try_echo") >&5
41655 (eval "$ac_compile") 2>conftest.er1
41656 ac_status=$?
41657 grep -v '^ *+' conftest.er1 >conftest.err
41658 rm -f conftest.er1
41659 cat conftest.err >&5
41660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41661 (exit $ac_status); } && {
41662 test -z "$ac_c_werror_flag" ||
41663 test ! -s conftest.err
41664 } && test -s conftest.$ac_objext; then
41665 ac_cv_func_which_gethostbyname_r=no
41666 else
41667 $as_echo "$as_me: failed program was:" >&5
41668 sed 's/^/| /' conftest.$ac_ext >&5
41669
41670
41671 fi
41672
41673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41674
41675 #
41676 # SIX ARGUMENTS
41677 # (e.g. Linux)
41678 #
41679
41680 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41681
41682 cat >conftest.$ac_ext <<_ACEOF
41683 /* confdefs.h. */
41684 _ACEOF
41685 cat confdefs.h >>conftest.$ac_ext
41686 cat >>conftest.$ac_ext <<_ACEOF
41687 /* end confdefs.h. */
41688 #include <netdb.h>
41689 int
41690 main ()
41691 {
41692
41693 char *name = "www.gnu.org";
41694 struct hostent ret, *retp;
41695 char buf[1024];
41696 int buflen = 1024;
41697 int my_h_errno;
41698 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
41699
41700 ;
41701 return 0;
41702 }
41703 _ACEOF
41704 rm -f conftest.$ac_objext
41705 if { (ac_try="$ac_compile"
41706 case "(($ac_try" in
41707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41708 *) ac_try_echo=$ac_try;;
41709 esac
41710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41711 $as_echo "$ac_try_echo") >&5
41712 (eval "$ac_compile") 2>conftest.er1
41713 ac_status=$?
41714 grep -v '^ *+' conftest.er1 >conftest.err
41715 rm -f conftest.er1
41716 cat conftest.err >&5
41717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41718 (exit $ac_status); } && {
41719 test -z "$ac_c_werror_flag" ||
41720 test ! -s conftest.err
41721 } && test -s conftest.$ac_objext; then
41722 ac_cv_func_which_gethostbyname_r=six
41723 else
41724 $as_echo "$as_me: failed program was:" >&5
41725 sed 's/^/| /' conftest.$ac_ext >&5
41726
41727
41728 fi
41729
41730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41731
41732 fi
41733
41734 #
41735 # FIVE ARGUMENTS
41736 # (e.g. Solaris)
41737 #
41738
41739 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41740
41741 cat >conftest.$ac_ext <<_ACEOF
41742 /* confdefs.h. */
41743 _ACEOF
41744 cat confdefs.h >>conftest.$ac_ext
41745 cat >>conftest.$ac_ext <<_ACEOF
41746 /* end confdefs.h. */
41747 #include <netdb.h>
41748 int
41749 main ()
41750 {
41751
41752 char *name = "www.gnu.org";
41753 struct hostent ret;
41754 char buf[1024];
41755 int buflen = 1024;
41756 int my_h_errno;
41757 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
41758
41759 ;
41760 return 0;
41761 }
41762 _ACEOF
41763 rm -f conftest.$ac_objext
41764 if { (ac_try="$ac_compile"
41765 case "(($ac_try" in
41766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41767 *) ac_try_echo=$ac_try;;
41768 esac
41769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41770 $as_echo "$ac_try_echo") >&5
41771 (eval "$ac_compile") 2>conftest.er1
41772 ac_status=$?
41773 grep -v '^ *+' conftest.er1 >conftest.err
41774 rm -f conftest.er1
41775 cat conftest.err >&5
41776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41777 (exit $ac_status); } && {
41778 test -z "$ac_c_werror_flag" ||
41779 test ! -s conftest.err
41780 } && test -s conftest.$ac_objext; then
41781 ac_cv_func_which_gethostbyname_r=five
41782 else
41783 $as_echo "$as_me: failed program was:" >&5
41784 sed 's/^/| /' conftest.$ac_ext >&5
41785
41786
41787 fi
41788
41789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41790
41791 fi
41792
41793 #
41794 # THREE ARGUMENTS
41795 # (e.g. AIX, HP-UX, Tru64)
41796 #
41797
41798 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41799
41800 cat >conftest.$ac_ext <<_ACEOF
41801 /* confdefs.h. */
41802 _ACEOF
41803 cat confdefs.h >>conftest.$ac_ext
41804 cat >>conftest.$ac_ext <<_ACEOF
41805 /* end confdefs.h. */
41806 #include <netdb.h>
41807 int
41808 main ()
41809 {
41810
41811 char *name = "www.gnu.org";
41812 struct hostent ret;
41813 struct hostent_data data;
41814 (void)gethostbyname_r(name, &ret, &data) /* ; */
41815
41816 ;
41817 return 0;
41818 }
41819 _ACEOF
41820 rm -f conftest.$ac_objext
41821 if { (ac_try="$ac_compile"
41822 case "(($ac_try" in
41823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41824 *) ac_try_echo=$ac_try;;
41825 esac
41826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41827 $as_echo "$ac_try_echo") >&5
41828 (eval "$ac_compile") 2>conftest.er1
41829 ac_status=$?
41830 grep -v '^ *+' conftest.er1 >conftest.err
41831 rm -f conftest.er1
41832 cat conftest.err >&5
41833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41834 (exit $ac_status); } && {
41835 test -z "$ac_c_werror_flag" ||
41836 test ! -s conftest.err
41837 } && test -s conftest.$ac_objext; then
41838 ac_cv_func_which_gethostbyname_r=three
41839 else
41840 $as_echo "$as_me: failed program was:" >&5
41841 sed 's/^/| /' conftest.$ac_ext >&5
41842
41843
41844 fi
41845
41846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41847
41848 fi
41849
41850 ################################################################
41851
41852
41853 fi
41854
41855 case "$ac_cv_func_which_gethostbyname_r" in
41856 three)
41857 { $as_echo "$as_me:$LINENO: result: three" >&5
41858 $as_echo "three" >&6; }
41859 cat >>confdefs.h <<\_ACEOF
41860 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41861 _ACEOF
41862
41863 ;;
41864
41865 five)
41866 { $as_echo "$as_me:$LINENO: result: five" >&5
41867 $as_echo "five" >&6; }
41868 cat >>confdefs.h <<\_ACEOF
41869 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41870 _ACEOF
41871
41872 ;;
41873
41874 six)
41875 { $as_echo "$as_me:$LINENO: result: six" >&5
41876 $as_echo "six" >&6; }
41877 cat >>confdefs.h <<\_ACEOF
41878 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41879 _ACEOF
41880
41881 ;;
41882
41883 no)
41884 { $as_echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41885 $as_echo "cannot find function declaration in netdb.h" >&6; }
41886 ;;
41887
41888 unknown)
41889 { $as_echo "$as_me:$LINENO: result: can't tell" >&5
41890 $as_echo "can't tell" >&6; }
41891 ;;
41892
41893 *)
41894 { { $as_echo "$as_me:$LINENO: error: internal error" >&5
41895 $as_echo "$as_me: error: internal error" >&2;}
41896 { (exit 1); exit 1; }; }
41897 ;;
41898 esac
41899
41900 ac_ext=c
41901 ac_cpp='$CPP $CPPFLAGS'
41902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41905
41906
41907
41908 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
41909 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
41910 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
41911 $as_echo_n "checking for gethostbyname... " >&6; }
41912 if test "${ac_cv_func_gethostbyname+set}" = set; then
41913 $as_echo_n "(cached) " >&6
41914 else
41915 cat >conftest.$ac_ext <<_ACEOF
41916 /* confdefs.h. */
41917 _ACEOF
41918 cat confdefs.h >>conftest.$ac_ext
41919 cat >>conftest.$ac_ext <<_ACEOF
41920 /* end confdefs.h. */
41921 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41923 #define gethostbyname innocuous_gethostbyname
41924
41925 /* System header to define __stub macros and hopefully few prototypes,
41926 which can conflict with char gethostbyname (); below.
41927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41928 <limits.h> exists even on freestanding compilers. */
41929
41930 #ifdef __STDC__
41931 # include <limits.h>
41932 #else
41933 # include <assert.h>
41934 #endif
41935
41936 #undef gethostbyname
41937
41938 /* Override any GCC internal prototype to avoid an error.
41939 Use char because int might match the return type of a GCC
41940 builtin and then its argument prototype would still apply. */
41941 #ifdef __cplusplus
41942 extern "C"
41943 #endif
41944 char gethostbyname ();
41945 /* The GNU C library defines this for functions which it implements
41946 to always fail with ENOSYS. Some functions are actually named
41947 something starting with __ and the normal name is an alias. */
41948 #if defined __stub_gethostbyname || defined __stub___gethostbyname
41949 choke me
41950 #endif
41951
41952 int
41953 main ()
41954 {
41955 return gethostbyname ();
41956 ;
41957 return 0;
41958 }
41959 _ACEOF
41960 rm -f conftest.$ac_objext conftest$ac_exeext
41961 if { (ac_try="$ac_link"
41962 case "(($ac_try" in
41963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41964 *) ac_try_echo=$ac_try;;
41965 esac
41966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41967 $as_echo "$ac_try_echo") >&5
41968 (eval "$ac_link") 2>conftest.er1
41969 ac_status=$?
41970 grep -v '^ *+' conftest.er1 >conftest.err
41971 rm -f conftest.er1
41972 cat conftest.err >&5
41973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41974 (exit $ac_status); } && {
41975 test -z "$ac_c_werror_flag" ||
41976 test ! -s conftest.err
41977 } && test -s conftest$ac_exeext && {
41978 test "$cross_compiling" = yes ||
41979 $as_test_x conftest$ac_exeext
41980 }; then
41981 ac_cv_func_gethostbyname=yes
41982 else
41983 $as_echo "$as_me: failed program was:" >&5
41984 sed 's/^/| /' conftest.$ac_ext >&5
41985
41986 ac_cv_func_gethostbyname=no
41987 fi
41988
41989 rm -rf conftest.dSYM
41990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41991 conftest$ac_exeext conftest.$ac_ext
41992 fi
41993 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41994 $as_echo "$ac_cv_func_gethostbyname" >&6; }
41995 if test "x$ac_cv_func_gethostbyname" = x""yes; then
41996 cat >>confdefs.h <<\_ACEOF
41997 #define HAVE_GETHOSTBYNAME 1
41998 _ACEOF
41999
42000 fi
42001
42002 fi
42003
42004 { $as_echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
42005 $as_echo_n "checking how many arguments getservbyname_r() takes... " >&6; }
42006 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
42007 $as_echo_n "(cached) " >&6
42008 else
42009
42010 ac_ext=cpp
42011 ac_cpp='$CXXCPP $CPPFLAGS'
42012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42015
42016
42017 cat >conftest.$ac_ext <<_ACEOF
42018 /* confdefs.h. */
42019 _ACEOF
42020 cat confdefs.h >>conftest.$ac_ext
42021 cat >>conftest.$ac_ext <<_ACEOF
42022 /* end confdefs.h. */
42023 #include <netdb.h>
42024 int
42025 main ()
42026 {
42027
42028 char *name;
42029 char *proto;
42030 struct servent *se, *res;
42031 char buffer[2048];
42032 int buflen = 2048;
42033 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
42034
42035 ;
42036 return 0;
42037 }
42038 _ACEOF
42039 rm -f conftest.$ac_objext
42040 if { (ac_try="$ac_compile"
42041 case "(($ac_try" in
42042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42043 *) ac_try_echo=$ac_try;;
42044 esac
42045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42046 $as_echo "$ac_try_echo") >&5
42047 (eval "$ac_compile") 2>conftest.er1
42048 ac_status=$?
42049 grep -v '^ *+' conftest.er1 >conftest.err
42050 rm -f conftest.er1
42051 cat conftest.err >&5
42052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42053 (exit $ac_status); } && {
42054 test -z "$ac_cxx_werror_flag" ||
42055 test ! -s conftest.err
42056 } && test -s conftest.$ac_objext; then
42057 ac_cv_func_which_getservbyname_r=six
42058 else
42059 $as_echo "$as_me: failed program was:" >&5
42060 sed 's/^/| /' conftest.$ac_ext >&5
42061
42062
42063 cat >conftest.$ac_ext <<_ACEOF
42064 /* confdefs.h. */
42065 _ACEOF
42066 cat confdefs.h >>conftest.$ac_ext
42067 cat >>conftest.$ac_ext <<_ACEOF
42068 /* end confdefs.h. */
42069 #include <netdb.h>
42070 int
42071 main ()
42072 {
42073
42074 char *name;
42075 char *proto;
42076 struct servent *se;
42077 char buffer[2048];
42078 int buflen = 2048;
42079 (void) getservbyname_r(name, proto, se, buffer, buflen)
42080
42081 ;
42082 return 0;
42083 }
42084 _ACEOF
42085 rm -f conftest.$ac_objext
42086 if { (ac_try="$ac_compile"
42087 case "(($ac_try" in
42088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42089 *) ac_try_echo=$ac_try;;
42090 esac
42091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42092 $as_echo "$ac_try_echo") >&5
42093 (eval "$ac_compile") 2>conftest.er1
42094 ac_status=$?
42095 grep -v '^ *+' conftest.er1 >conftest.err
42096 rm -f conftest.er1
42097 cat conftest.err >&5
42098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42099 (exit $ac_status); } && {
42100 test -z "$ac_cxx_werror_flag" ||
42101 test ! -s conftest.err
42102 } && test -s conftest.$ac_objext; then
42103 ac_cv_func_which_getservbyname_r=five
42104 else
42105 $as_echo "$as_me: failed program was:" >&5
42106 sed 's/^/| /' conftest.$ac_ext >&5
42107
42108
42109 cat >conftest.$ac_ext <<_ACEOF
42110 /* confdefs.h. */
42111 _ACEOF
42112 cat confdefs.h >>conftest.$ac_ext
42113 cat >>conftest.$ac_ext <<_ACEOF
42114 /* end confdefs.h. */
42115 #include <netdb.h>
42116 int
42117 main ()
42118 {
42119
42120 char *name;
42121 char *proto;
42122 struct servent *se;
42123 struct servent_data data;
42124 (void) getservbyname_r(name, proto, se, &data);
42125
42126 ;
42127 return 0;
42128 }
42129 _ACEOF
42130 rm -f conftest.$ac_objext
42131 if { (ac_try="$ac_compile"
42132 case "(($ac_try" in
42133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42134 *) ac_try_echo=$ac_try;;
42135 esac
42136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42137 $as_echo "$ac_try_echo") >&5
42138 (eval "$ac_compile") 2>conftest.er1
42139 ac_status=$?
42140 grep -v '^ *+' conftest.er1 >conftest.err
42141 rm -f conftest.er1
42142 cat conftest.err >&5
42143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42144 (exit $ac_status); } && {
42145 test -z "$ac_cxx_werror_flag" ||
42146 test ! -s conftest.err
42147 } && test -s conftest.$ac_objext; then
42148 ac_cv_func_which_getservbyname_r=four
42149 else
42150 $as_echo "$as_me: failed program was:" >&5
42151 sed 's/^/| /' conftest.$ac_ext >&5
42152
42153 ac_cv_func_which_getservbyname_r=no
42154
42155 fi
42156
42157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42158
42159
42160 fi
42161
42162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42163
42164
42165 fi
42166
42167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42168 ac_ext=c
42169 ac_cpp='$CPP $CPPFLAGS'
42170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42173
42174
42175
42176 fi
42177 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
42178 $as_echo "$ac_cv_func_which_getservbyname_r" >&6; }
42179
42180 if test $ac_cv_func_which_getservbyname_r = six; then
42181 cat >>confdefs.h <<\_ACEOF
42182 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
42183 _ACEOF
42184
42185 elif test $ac_cv_func_which_getservbyname_r = five; then
42186 cat >>confdefs.h <<\_ACEOF
42187 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
42188 _ACEOF
42189
42190 elif test $ac_cv_func_which_getservbyname_r = four; then
42191 cat >>confdefs.h <<\_ACEOF
42192 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
42193 _ACEOF
42194
42195 fi
42196
42197
42198 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
42199 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
42200
42201 for ac_func in getservbyname
42202 do
42203 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42204 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42205 $as_echo_n "checking for $ac_func... " >&6; }
42206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42207 $as_echo_n "(cached) " >&6
42208 else
42209 cat >conftest.$ac_ext <<_ACEOF
42210 /* confdefs.h. */
42211 _ACEOF
42212 cat confdefs.h >>conftest.$ac_ext
42213 cat >>conftest.$ac_ext <<_ACEOF
42214 /* end confdefs.h. */
42215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42217 #define $ac_func innocuous_$ac_func
42218
42219 /* System header to define __stub macros and hopefully few prototypes,
42220 which can conflict with char $ac_func (); below.
42221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42222 <limits.h> exists even on freestanding compilers. */
42223
42224 #ifdef __STDC__
42225 # include <limits.h>
42226 #else
42227 # include <assert.h>
42228 #endif
42229
42230 #undef $ac_func
42231
42232 /* Override any GCC internal prototype to avoid an error.
42233 Use char because int might match the return type of a GCC
42234 builtin and then its argument prototype would still apply. */
42235 #ifdef __cplusplus
42236 extern "C"
42237 #endif
42238 char $ac_func ();
42239 /* The GNU C library defines this for functions which it implements
42240 to always fail with ENOSYS. Some functions are actually named
42241 something starting with __ and the normal name is an alias. */
42242 #if defined __stub_$ac_func || defined __stub___$ac_func
42243 choke me
42244 #endif
42245
42246 int
42247 main ()
42248 {
42249 return $ac_func ();
42250 ;
42251 return 0;
42252 }
42253 _ACEOF
42254 rm -f conftest.$ac_objext conftest$ac_exeext
42255 if { (ac_try="$ac_link"
42256 case "(($ac_try" in
42257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42258 *) ac_try_echo=$ac_try;;
42259 esac
42260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42261 $as_echo "$ac_try_echo") >&5
42262 (eval "$ac_link") 2>conftest.er1
42263 ac_status=$?
42264 grep -v '^ *+' conftest.er1 >conftest.err
42265 rm -f conftest.er1
42266 cat conftest.err >&5
42267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42268 (exit $ac_status); } && {
42269 test -z "$ac_c_werror_flag" ||
42270 test ! -s conftest.err
42271 } && test -s conftest$ac_exeext && {
42272 test "$cross_compiling" = yes ||
42273 $as_test_x conftest$ac_exeext
42274 }; then
42275 eval "$as_ac_var=yes"
42276 else
42277 $as_echo "$as_me: failed program was:" >&5
42278 sed 's/^/| /' conftest.$ac_ext >&5
42279
42280 eval "$as_ac_var=no"
42281 fi
42282
42283 rm -rf conftest.dSYM
42284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42285 conftest$ac_exeext conftest.$ac_ext
42286 fi
42287 ac_res=`eval 'as_val=${'$as_ac_var'}
42288 $as_echo "$as_val"'`
42289 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42290 $as_echo "$ac_res" >&6; }
42291 as_val=`eval 'as_val=${'$as_ac_var'}
42292 $as_echo "$as_val"'`
42293 if test "x$as_val" = x""yes; then
42294 cat >>confdefs.h <<_ACEOF
42295 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42296 _ACEOF
42297 cat >>confdefs.h <<\_ACEOF
42298 #define HAVE_GETSERVBYNAME 1
42299 _ACEOF
42300
42301 fi
42302 done
42303
42304 fi
42305
42306 if test "$wxUSE_THREADS" = "yes"; then
42307 cat >>confdefs.h <<\_ACEOF
42308 #define wxUSE_THREADS 1
42309 _ACEOF
42310
42311
42312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
42313 else
42314 if test "$wx_cv_func_strtok_r" = "yes"; then
42315 { $as_echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
42316 $as_echo_n "checking if -D_REENTRANT is needed... " >&6; }
42317 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
42318 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
42319 { $as_echo "$as_me:$LINENO: result: yes" >&5
42320 $as_echo "yes" >&6; }
42321 else
42322 { $as_echo "$as_me:$LINENO: result: no" >&5
42323 $as_echo "no" >&6; }
42324 fi
42325 fi
42326 fi
42327
42328 if test "$WXGTK2" = 1 ; then
42329 cat >>confdefs.h <<_ACEOF
42330 #define __WXGTK20__ $WXGTK2
42331 _ACEOF
42332
42333 WXGTK12=1
42334 fi
42335
42336 if test "$WXGTK12" = 1 ; then
42337 cat >>confdefs.h <<_ACEOF
42338 #define __WXGTK12__ $WXGTK12
42339 _ACEOF
42340
42341 fi
42342
42343 if test "$WXGTK127" = 1 ; then
42344 cat >>confdefs.h <<_ACEOF
42345 #define __WXGTK127__ $WXGTK127
42346 _ACEOF
42347
42348 fi
42349
42350 if test "$WXGPE" = 1 ; then
42351 cat >>confdefs.h <<_ACEOF
42352 #define __WXGPE__ $WXGPE
42353 _ACEOF
42354
42355 fi
42356
42357 DEBUG_CFLAGS=
42358 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
42359 { $as_echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
42360 $as_echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
42361 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
42362 DEBUG_CFLAGS="-g"
42363 fi
42364
42365 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
42366 wxUSE_DEBUG_INFO=yes
42367 if test "$GCC" = yes; then
42368 DEBUG_CFLAGS="-ggdb"
42369 fi
42370 fi
42371
42372 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
42373 cat >>confdefs.h <<\_ACEOF
42374 #define WXDEBUG 1
42375 _ACEOF
42376
42377 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
42378 else
42379 if test "$wxUSE_GTK" = 1 ; then
42380 if test "x$wxGTK_VERSION" = "x1" ; then
42381 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
42382 fi
42383 fi
42384 fi
42385
42386 if test "$wxUSE_MEM_TRACING" = "yes" ; then
42387 cat >>confdefs.h <<\_ACEOF
42388 #define wxUSE_MEMORY_TRACING 1
42389 _ACEOF
42390
42391 cat >>confdefs.h <<\_ACEOF
42392 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
42393 _ACEOF
42394
42395 cat >>confdefs.h <<\_ACEOF
42396 #define wxUSE_DEBUG_NEW_ALWAYS 1
42397 _ACEOF
42398
42399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
42400 fi
42401
42402 if test "$wxUSE_DMALLOC" = "yes" ; then
42403 DMALLOC_LIBS="-ldmallocthcxx"
42404 fi
42405
42406 PROFILE_FLAGS=
42407 if test "$wxUSE_PROFILE" = "yes" ; then
42408 PROFILE_FLAGS=" -pg"
42409 fi
42410
42411 if test "$GCC" = "yes" ; then
42412 if test "$wxUSE_NO_RTTI" = "yes" ; then
42413 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
42414 fi
42415 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42416 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
42417 fi
42418 if test "$wxUSE_PERMISSIVE" = "yes" ; then
42419 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
42420 fi
42421
42422 case "${host}" in
42423 powerpc*-*-aix* )
42424 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
42425 ;;
42426 *-hppa* )
42427 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
42428 ;;
42429 esac
42430 fi
42431
42432 OPTIMISE_CFLAGS=
42433 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
42434 { $as_echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
42435 $as_echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
42436 else
42437 if test "$wxUSE_OPTIMISE" = "no" ; then
42438 if test "$GCC" = yes ; then
42439 OPTIMISE_CFLAGS="-O0"
42440 fi
42441 else
42442 if test "$GCC" = yes ; then
42443 case "${host}" in
42444 *-pc-os2_emx | *-pc-os2-emx )
42445 OPTIMISE_CFLAGS="-O2"
42446 ;;
42447 *)
42448 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
42449 ;;
42450 esac
42451 else
42452 OPTIMISE_CFLAGS="-O"
42453 fi
42454 fi
42455 fi
42456
42457
42458 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
42459 cat >>confdefs.h <<\_ACEOF
42460 #define WXWIN_COMPATIBILITY_2_6 1
42461 _ACEOF
42462
42463
42464 WXWIN_COMPATIBILITY_2_8="yes"
42465 fi
42466
42467 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
42468 cat >>confdefs.h <<\_ACEOF
42469 #define WXWIN_COMPATIBILITY_2_8 1
42470 _ACEOF
42471
42472 fi
42473
42474
42475 if test "$wxUSE_GUI" = "yes"; then
42476 cat >>confdefs.h <<\_ACEOF
42477 #define wxUSE_GUI 1
42478 _ACEOF
42479
42480
42481 fi
42482
42483
42484 if test "$wxUSE_UNIX" = "yes"; then
42485 cat >>confdefs.h <<\_ACEOF
42486 #define wxUSE_UNIX 1
42487 _ACEOF
42488
42489 fi
42490
42491
42492 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42493
42494 HAVE_DL_FUNCS=0
42495 HAVE_SHL_FUNCS=0
42496 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42497 if test "$USE_DOS" = 1; then
42498 HAVE_DL_FUNCS=0
42499 else
42500
42501 for ac_func in dlopen
42502 do
42503 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42504 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42505 $as_echo_n "checking for $ac_func... " >&6; }
42506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42507 $as_echo_n "(cached) " >&6
42508 else
42509 cat >conftest.$ac_ext <<_ACEOF
42510 /* confdefs.h. */
42511 _ACEOF
42512 cat confdefs.h >>conftest.$ac_ext
42513 cat >>conftest.$ac_ext <<_ACEOF
42514 /* end confdefs.h. */
42515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42517 #define $ac_func innocuous_$ac_func
42518
42519 /* System header to define __stub macros and hopefully few prototypes,
42520 which can conflict with char $ac_func (); below.
42521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42522 <limits.h> exists even on freestanding compilers. */
42523
42524 #ifdef __STDC__
42525 # include <limits.h>
42526 #else
42527 # include <assert.h>
42528 #endif
42529
42530 #undef $ac_func
42531
42532 /* Override any GCC internal prototype to avoid an error.
42533 Use char because int might match the return type of a GCC
42534 builtin and then its argument prototype would still apply. */
42535 #ifdef __cplusplus
42536 extern "C"
42537 #endif
42538 char $ac_func ();
42539 /* The GNU C library defines this for functions which it implements
42540 to always fail with ENOSYS. Some functions are actually named
42541 something starting with __ and the normal name is an alias. */
42542 #if defined __stub_$ac_func || defined __stub___$ac_func
42543 choke me
42544 #endif
42545
42546 int
42547 main ()
42548 {
42549 return $ac_func ();
42550 ;
42551 return 0;
42552 }
42553 _ACEOF
42554 rm -f conftest.$ac_objext conftest$ac_exeext
42555 if { (ac_try="$ac_link"
42556 case "(($ac_try" in
42557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42558 *) ac_try_echo=$ac_try;;
42559 esac
42560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42561 $as_echo "$ac_try_echo") >&5
42562 (eval "$ac_link") 2>conftest.er1
42563 ac_status=$?
42564 grep -v '^ *+' conftest.er1 >conftest.err
42565 rm -f conftest.er1
42566 cat conftest.err >&5
42567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42568 (exit $ac_status); } && {
42569 test -z "$ac_c_werror_flag" ||
42570 test ! -s conftest.err
42571 } && test -s conftest$ac_exeext && {
42572 test "$cross_compiling" = yes ||
42573 $as_test_x conftest$ac_exeext
42574 }; then
42575 eval "$as_ac_var=yes"
42576 else
42577 $as_echo "$as_me: failed program was:" >&5
42578 sed 's/^/| /' conftest.$ac_ext >&5
42579
42580 eval "$as_ac_var=no"
42581 fi
42582
42583 rm -rf conftest.dSYM
42584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42585 conftest$ac_exeext conftest.$ac_ext
42586 fi
42587 ac_res=`eval 'as_val=${'$as_ac_var'}
42588 $as_echo "$as_val"'`
42589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42590 $as_echo "$ac_res" >&6; }
42591 as_val=`eval 'as_val=${'$as_ac_var'}
42592 $as_echo "$as_val"'`
42593 if test "x$as_val" = x""yes; then
42594 cat >>confdefs.h <<_ACEOF
42595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42596 _ACEOF
42597
42598 cat >>confdefs.h <<\_ACEOF
42599 #define HAVE_DLOPEN 1
42600 _ACEOF
42601
42602 HAVE_DL_FUNCS=1
42603
42604 else
42605
42606 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
42607 $as_echo_n "checking for dlopen in -ldl... " >&6; }
42608 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
42609 $as_echo_n "(cached) " >&6
42610 else
42611 ac_check_lib_save_LIBS=$LIBS
42612 LIBS="-ldl $LIBS"
42613 cat >conftest.$ac_ext <<_ACEOF
42614 /* confdefs.h. */
42615 _ACEOF
42616 cat confdefs.h >>conftest.$ac_ext
42617 cat >>conftest.$ac_ext <<_ACEOF
42618 /* end confdefs.h. */
42619
42620 /* Override any GCC internal prototype to avoid an error.
42621 Use char because int might match the return type of a GCC
42622 builtin and then its argument prototype would still apply. */
42623 #ifdef __cplusplus
42624 extern "C"
42625 #endif
42626 char dlopen ();
42627 int
42628 main ()
42629 {
42630 return dlopen ();
42631 ;
42632 return 0;
42633 }
42634 _ACEOF
42635 rm -f conftest.$ac_objext conftest$ac_exeext
42636 if { (ac_try="$ac_link"
42637 case "(($ac_try" in
42638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42639 *) ac_try_echo=$ac_try;;
42640 esac
42641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42642 $as_echo "$ac_try_echo") >&5
42643 (eval "$ac_link") 2>conftest.er1
42644 ac_status=$?
42645 grep -v '^ *+' conftest.er1 >conftest.err
42646 rm -f conftest.er1
42647 cat conftest.err >&5
42648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42649 (exit $ac_status); } && {
42650 test -z "$ac_c_werror_flag" ||
42651 test ! -s conftest.err
42652 } && test -s conftest$ac_exeext && {
42653 test "$cross_compiling" = yes ||
42654 $as_test_x conftest$ac_exeext
42655 }; then
42656 ac_cv_lib_dl_dlopen=yes
42657 else
42658 $as_echo "$as_me: failed program was:" >&5
42659 sed 's/^/| /' conftest.$ac_ext >&5
42660
42661 ac_cv_lib_dl_dlopen=no
42662 fi
42663
42664 rm -rf conftest.dSYM
42665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42666 conftest$ac_exeext conftest.$ac_ext
42667 LIBS=$ac_check_lib_save_LIBS
42668 fi
42669 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
42670 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
42671 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
42672
42673 cat >>confdefs.h <<\_ACEOF
42674 #define HAVE_DLOPEN 1
42675 _ACEOF
42676
42677 HAVE_DL_FUNCS=1
42678 DL_LINK=" -ldl$DL_LINK"
42679
42680 else
42681
42682
42683 for ac_func in shl_load
42684 do
42685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42686 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42687 $as_echo_n "checking for $ac_func... " >&6; }
42688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42689 $as_echo_n "(cached) " >&6
42690 else
42691 cat >conftest.$ac_ext <<_ACEOF
42692 /* confdefs.h. */
42693 _ACEOF
42694 cat confdefs.h >>conftest.$ac_ext
42695 cat >>conftest.$ac_ext <<_ACEOF
42696 /* end confdefs.h. */
42697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42699 #define $ac_func innocuous_$ac_func
42700
42701 /* System header to define __stub macros and hopefully few prototypes,
42702 which can conflict with char $ac_func (); below.
42703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42704 <limits.h> exists even on freestanding compilers. */
42705
42706 #ifdef __STDC__
42707 # include <limits.h>
42708 #else
42709 # include <assert.h>
42710 #endif
42711
42712 #undef $ac_func
42713
42714 /* Override any GCC internal prototype to avoid an error.
42715 Use char because int might match the return type of a GCC
42716 builtin and then its argument prototype would still apply. */
42717 #ifdef __cplusplus
42718 extern "C"
42719 #endif
42720 char $ac_func ();
42721 /* The GNU C library defines this for functions which it implements
42722 to always fail with ENOSYS. Some functions are actually named
42723 something starting with __ and the normal name is an alias. */
42724 #if defined __stub_$ac_func || defined __stub___$ac_func
42725 choke me
42726 #endif
42727
42728 int
42729 main ()
42730 {
42731 return $ac_func ();
42732 ;
42733 return 0;
42734 }
42735 _ACEOF
42736 rm -f conftest.$ac_objext conftest$ac_exeext
42737 if { (ac_try="$ac_link"
42738 case "(($ac_try" in
42739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42740 *) ac_try_echo=$ac_try;;
42741 esac
42742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42743 $as_echo "$ac_try_echo") >&5
42744 (eval "$ac_link") 2>conftest.er1
42745 ac_status=$?
42746 grep -v '^ *+' conftest.er1 >conftest.err
42747 rm -f conftest.er1
42748 cat conftest.err >&5
42749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42750 (exit $ac_status); } && {
42751 test -z "$ac_c_werror_flag" ||
42752 test ! -s conftest.err
42753 } && test -s conftest$ac_exeext && {
42754 test "$cross_compiling" = yes ||
42755 $as_test_x conftest$ac_exeext
42756 }; then
42757 eval "$as_ac_var=yes"
42758 else
42759 $as_echo "$as_me: failed program was:" >&5
42760 sed 's/^/| /' conftest.$ac_ext >&5
42761
42762 eval "$as_ac_var=no"
42763 fi
42764
42765 rm -rf conftest.dSYM
42766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42767 conftest$ac_exeext conftest.$ac_ext
42768 fi
42769 ac_res=`eval 'as_val=${'$as_ac_var'}
42770 $as_echo "$as_val"'`
42771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42772 $as_echo "$ac_res" >&6; }
42773 as_val=`eval 'as_val=${'$as_ac_var'}
42774 $as_echo "$as_val"'`
42775 if test "x$as_val" = x""yes; then
42776 cat >>confdefs.h <<_ACEOF
42777 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42778 _ACEOF
42779
42780 cat >>confdefs.h <<\_ACEOF
42781 #define HAVE_SHL_LOAD 1
42782 _ACEOF
42783
42784 HAVE_SHL_FUNCS=1
42785
42786 else
42787
42788 { $as_echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
42789 $as_echo_n "checking for dld in -lshl_load... " >&6; }
42790 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
42791 $as_echo_n "(cached) " >&6
42792 else
42793 ac_check_lib_save_LIBS=$LIBS
42794 LIBS="-lshl_load $LIBS"
42795 cat >conftest.$ac_ext <<_ACEOF
42796 /* confdefs.h. */
42797 _ACEOF
42798 cat confdefs.h >>conftest.$ac_ext
42799 cat >>conftest.$ac_ext <<_ACEOF
42800 /* end confdefs.h. */
42801
42802 /* Override any GCC internal prototype to avoid an error.
42803 Use char because int might match the return type of a GCC
42804 builtin and then its argument prototype would still apply. */
42805 #ifdef __cplusplus
42806 extern "C"
42807 #endif
42808 char dld ();
42809 int
42810 main ()
42811 {
42812 return dld ();
42813 ;
42814 return 0;
42815 }
42816 _ACEOF
42817 rm -f conftest.$ac_objext conftest$ac_exeext
42818 if { (ac_try="$ac_link"
42819 case "(($ac_try" in
42820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42821 *) ac_try_echo=$ac_try;;
42822 esac
42823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42824 $as_echo "$ac_try_echo") >&5
42825 (eval "$ac_link") 2>conftest.er1
42826 ac_status=$?
42827 grep -v '^ *+' conftest.er1 >conftest.err
42828 rm -f conftest.er1
42829 cat conftest.err >&5
42830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42831 (exit $ac_status); } && {
42832 test -z "$ac_c_werror_flag" ||
42833 test ! -s conftest.err
42834 } && test -s conftest$ac_exeext && {
42835 test "$cross_compiling" = yes ||
42836 $as_test_x conftest$ac_exeext
42837 }; then
42838 ac_cv_lib_shl_load_dld=yes
42839 else
42840 $as_echo "$as_me: failed program was:" >&5
42841 sed 's/^/| /' conftest.$ac_ext >&5
42842
42843 ac_cv_lib_shl_load_dld=no
42844 fi
42845
42846 rm -rf conftest.dSYM
42847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42848 conftest$ac_exeext conftest.$ac_ext
42849 LIBS=$ac_check_lib_save_LIBS
42850 fi
42851 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42852 $as_echo "$ac_cv_lib_shl_load_dld" >&6; }
42853 if test "x$ac_cv_lib_shl_load_dld" = x""yes; then
42854
42855 HAVE_SHL_FUNCS=1
42856 DL_LINK=" -ldld$DL_LINK"
42857
42858 fi
42859
42860
42861 fi
42862 done
42863
42864
42865 fi
42866
42867
42868 fi
42869 done
42870
42871
42872 if test "$HAVE_DL_FUNCS" = 1; then
42873
42874 for ac_func in dlerror
42875 do
42876 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42877 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42878 $as_echo_n "checking for $ac_func... " >&6; }
42879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42880 $as_echo_n "(cached) " >&6
42881 else
42882 cat >conftest.$ac_ext <<_ACEOF
42883 /* confdefs.h. */
42884 _ACEOF
42885 cat confdefs.h >>conftest.$ac_ext
42886 cat >>conftest.$ac_ext <<_ACEOF
42887 /* end confdefs.h. */
42888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42890 #define $ac_func innocuous_$ac_func
42891
42892 /* System header to define __stub macros and hopefully few prototypes,
42893 which can conflict with char $ac_func (); below.
42894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42895 <limits.h> exists even on freestanding compilers. */
42896
42897 #ifdef __STDC__
42898 # include <limits.h>
42899 #else
42900 # include <assert.h>
42901 #endif
42902
42903 #undef $ac_func
42904
42905 /* Override any GCC internal prototype to avoid an error.
42906 Use char because int might match the return type of a GCC
42907 builtin and then its argument prototype would still apply. */
42908 #ifdef __cplusplus
42909 extern "C"
42910 #endif
42911 char $ac_func ();
42912 /* The GNU C library defines this for functions which it implements
42913 to always fail with ENOSYS. Some functions are actually named
42914 something starting with __ and the normal name is an alias. */
42915 #if defined __stub_$ac_func || defined __stub___$ac_func
42916 choke me
42917 #endif
42918
42919 int
42920 main ()
42921 {
42922 return $ac_func ();
42923 ;
42924 return 0;
42925 }
42926 _ACEOF
42927 rm -f conftest.$ac_objext conftest$ac_exeext
42928 if { (ac_try="$ac_link"
42929 case "(($ac_try" in
42930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42931 *) ac_try_echo=$ac_try;;
42932 esac
42933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42934 $as_echo "$ac_try_echo") >&5
42935 (eval "$ac_link") 2>conftest.er1
42936 ac_status=$?
42937 grep -v '^ *+' conftest.er1 >conftest.err
42938 rm -f conftest.er1
42939 cat conftest.err >&5
42940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42941 (exit $ac_status); } && {
42942 test -z "$ac_c_werror_flag" ||
42943 test ! -s conftest.err
42944 } && test -s conftest$ac_exeext && {
42945 test "$cross_compiling" = yes ||
42946 $as_test_x conftest$ac_exeext
42947 }; then
42948 eval "$as_ac_var=yes"
42949 else
42950 $as_echo "$as_me: failed program was:" >&5
42951 sed 's/^/| /' conftest.$ac_ext >&5
42952
42953 eval "$as_ac_var=no"
42954 fi
42955
42956 rm -rf conftest.dSYM
42957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42958 conftest$ac_exeext conftest.$ac_ext
42959 fi
42960 ac_res=`eval 'as_val=${'$as_ac_var'}
42961 $as_echo "$as_val"'`
42962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42963 $as_echo "$ac_res" >&6; }
42964 as_val=`eval 'as_val=${'$as_ac_var'}
42965 $as_echo "$as_val"'`
42966 if test "x$as_val" = x""yes; then
42967 cat >>confdefs.h <<_ACEOF
42968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42969 _ACEOF
42970 cat >>confdefs.h <<\_ACEOF
42971 #define HAVE_DLERROR 1
42972 _ACEOF
42973
42974 else
42975
42976 { $as_echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42977 $as_echo_n "checking for dlerror in -ldl... " >&6; }
42978 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42979 $as_echo_n "(cached) " >&6
42980 else
42981 ac_check_lib_save_LIBS=$LIBS
42982 LIBS="-ldl $LIBS"
42983 cat >conftest.$ac_ext <<_ACEOF
42984 /* confdefs.h. */
42985 _ACEOF
42986 cat confdefs.h >>conftest.$ac_ext
42987 cat >>conftest.$ac_ext <<_ACEOF
42988 /* end confdefs.h. */
42989
42990 /* Override any GCC internal prototype to avoid an error.
42991 Use char because int might match the return type of a GCC
42992 builtin and then its argument prototype would still apply. */
42993 #ifdef __cplusplus
42994 extern "C"
42995 #endif
42996 char dlerror ();
42997 int
42998 main ()
42999 {
43000 return dlerror ();
43001 ;
43002 return 0;
43003 }
43004 _ACEOF
43005 rm -f conftest.$ac_objext conftest$ac_exeext
43006 if { (ac_try="$ac_link"
43007 case "(($ac_try" in
43008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43009 *) ac_try_echo=$ac_try;;
43010 esac
43011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43012 $as_echo "$ac_try_echo") >&5
43013 (eval "$ac_link") 2>conftest.er1
43014 ac_status=$?
43015 grep -v '^ *+' conftest.er1 >conftest.err
43016 rm -f conftest.er1
43017 cat conftest.err >&5
43018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43019 (exit $ac_status); } && {
43020 test -z "$ac_c_werror_flag" ||
43021 test ! -s conftest.err
43022 } && test -s conftest$ac_exeext && {
43023 test "$cross_compiling" = yes ||
43024 $as_test_x conftest$ac_exeext
43025 }; then
43026 ac_cv_lib_dl_dlerror=yes
43027 else
43028 $as_echo "$as_me: failed program was:" >&5
43029 sed 's/^/| /' conftest.$ac_ext >&5
43030
43031 ac_cv_lib_dl_dlerror=no
43032 fi
43033
43034 rm -rf conftest.dSYM
43035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43036 conftest$ac_exeext conftest.$ac_ext
43037 LIBS=$ac_check_lib_save_LIBS
43038 fi
43039 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
43040 $as_echo "$ac_cv_lib_dl_dlerror" >&6; }
43041 if test "x$ac_cv_lib_dl_dlerror" = x""yes; then
43042 cat >>confdefs.h <<\_ACEOF
43043 #define HAVE_DLERROR 1
43044 _ACEOF
43045
43046 fi
43047
43048
43049
43050 fi
43051 done
43052
43053 fi
43054 fi
43055
43056 if test "$USE_DARWIN" = 1; then
43057 HAVE_DL_FUNCS=1
43058 fi
43059
43060 if test "$HAVE_DL_FUNCS" = 0; then
43061 if test "$HAVE_SHL_FUNCS" = 0; then
43062 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
43063 { $as_echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
43064 $as_echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
43065 wxUSE_DYNAMIC_LOADER=no
43066 wxUSE_DYNLIB_CLASS=no
43067 else
43068 { $as_echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
43069 $as_echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
43070 fi
43071 fi
43072 fi
43073 fi
43074 fi
43075
43076 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
43077 cat >>confdefs.h <<\_ACEOF
43078 #define wxUSE_DYNAMIC_LOADER 1
43079 _ACEOF
43080
43081 fi
43082 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43083 cat >>confdefs.h <<\_ACEOF
43084 #define wxUSE_DYNLIB_CLASS 1
43085 _ACEOF
43086
43087 fi
43088
43089
43090
43091 if test "$wxUSE_PLUGINS" = "yes" ; then
43092 if test "$wxUSE_SHARED" = "no" ; then
43093 { $as_echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
43094 $as_echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
43095 wxUSE_PLUGINS=no
43096 fi
43097 if test "$wxUSE_MONOLITHIC" = "yes" ; then
43098 { $as_echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
43099 $as_echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
43100 wxUSE_PLUGINS=no
43101 fi
43102 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
43103 { $as_echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
43104 $as_echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
43105 wxUSE_PLUGINS=no
43106 fi
43107 if test "$wxUSE_PLUGINS" = "yes" ; then
43108 cat >>confdefs.h <<\_ACEOF
43109 #define wxUSE_PLUGINS 1
43110 _ACEOF
43111
43112 fi
43113 fi
43114
43115
43116 if test "$wxUSE_STL" = "yes"; then
43117 cat >>confdefs.h <<\_ACEOF
43118 #define wxUSE_STL 1
43119 _ACEOF
43120
43121 fi
43122
43123 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
43124 cat >>confdefs.h <<\_ACEOF
43125 #define wxUSE_EXTENDED_RTTI 1
43126 _ACEOF
43127
43128 fi
43129
43130 if test "$wxUSE_APPLE_IEEE" = "yes"; then
43131 cat >>confdefs.h <<\_ACEOF
43132 #define wxUSE_APPLE_IEEE 1
43133 _ACEOF
43134
43135 fi
43136
43137 if test "$wxUSE_TIMER" = "yes"; then
43138 cat >>confdefs.h <<\_ACEOF
43139 #define wxUSE_TIMER 1
43140 _ACEOF
43141
43142 fi
43143
43144 if test "$USE_UNIX" = 1 ; then
43145 if test "$wxUSE_MGL" != 1; then
43146 { $as_echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
43147 $as_echo_n "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... " >&6; }
43148 if test "${ac_cv_header_sys_soundcard+set}" = set; then
43149 $as_echo_n "(cached) " >&6
43150 else
43151
43152 cat >conftest.$ac_ext <<_ACEOF
43153 /* confdefs.h. */
43154 _ACEOF
43155 cat confdefs.h >>conftest.$ac_ext
43156 cat >>conftest.$ac_ext <<_ACEOF
43157 /* end confdefs.h. */
43158
43159 #include <sys/ioctl.h>
43160 #include <sys/soundcard.h>
43161
43162 int
43163 main ()
43164 {
43165
43166 ioctl(0, SNDCTL_DSP_SPEED, 0);
43167
43168 ;
43169 return 0;
43170 }
43171 _ACEOF
43172 rm -f conftest.$ac_objext conftest$ac_exeext
43173 if { (ac_try="$ac_link"
43174 case "(($ac_try" in
43175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43176 *) ac_try_echo=$ac_try;;
43177 esac
43178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43179 $as_echo "$ac_try_echo") >&5
43180 (eval "$ac_link") 2>conftest.er1
43181 ac_status=$?
43182 grep -v '^ *+' conftest.er1 >conftest.err
43183 rm -f conftest.er1
43184 cat conftest.err >&5
43185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43186 (exit $ac_status); } && {
43187 test -z "$ac_c_werror_flag" ||
43188 test ! -s conftest.err
43189 } && test -s conftest$ac_exeext && {
43190 test "$cross_compiling" = yes ||
43191 $as_test_x conftest$ac_exeext
43192 }; then
43193 ac_cv_header_sys_soundcard=yes
43194 else
43195 $as_echo "$as_me: failed program was:" >&5
43196 sed 's/^/| /' conftest.$ac_ext >&5
43197
43198
43199 saveLibs="$LIBS"
43200 LIBS="$saveLibs -lossaudio"
43201 cat >conftest.$ac_ext <<_ACEOF
43202 /* confdefs.h. */
43203 _ACEOF
43204 cat confdefs.h >>conftest.$ac_ext
43205 cat >>conftest.$ac_ext <<_ACEOF
43206 /* end confdefs.h. */
43207
43208 #include <sys/ioctl.h>
43209 #include <sys/soundcard.h>
43210
43211 int
43212 main ()
43213 {
43214
43215 ioctl(0, SNDCTL_DSP_SPEED, 0);
43216
43217 ;
43218 return 0;
43219 }
43220 _ACEOF
43221 rm -f conftest.$ac_objext conftest$ac_exeext
43222 if { (ac_try="$ac_link"
43223 case "(($ac_try" in
43224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43225 *) ac_try_echo=$ac_try;;
43226 esac
43227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43228 $as_echo "$ac_try_echo") >&5
43229 (eval "$ac_link") 2>conftest.er1
43230 ac_status=$?
43231 grep -v '^ *+' conftest.er1 >conftest.err
43232 rm -f conftest.er1
43233 cat conftest.err >&5
43234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43235 (exit $ac_status); } && {
43236 test -z "$ac_c_werror_flag" ||
43237 test ! -s conftest.err
43238 } && test -s conftest$ac_exeext && {
43239 test "$cross_compiling" = yes ||
43240 $as_test_x conftest$ac_exeext
43241 }; then
43242 ac_cv_header_sys_soundcard=yes
43243 else
43244 $as_echo "$as_me: failed program was:" >&5
43245 sed 's/^/| /' conftest.$ac_ext >&5
43246
43247
43248 LIBS="$saveLibs"
43249 ac_cv_header_sys_soundcard=no
43250
43251
43252 fi
43253
43254 rm -rf conftest.dSYM
43255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43256 conftest$ac_exeext conftest.$ac_ext
43257
43258
43259 fi
43260
43261 rm -rf conftest.dSYM
43262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43263 conftest$ac_exeext conftest.$ac_ext
43264
43265 fi
43266 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
43267 $as_echo "$ac_cv_header_sys_soundcard" >&6; }
43268 fi
43269
43270 if test "$ac_cv_header_sys_soundcard" = "yes"; then
43271 cat >>confdefs.h <<\_ACEOF
43272 #define HAVE_SYS_SOUNDCARD_H 1
43273 _ACEOF
43274
43275 fi
43276 fi
43277
43278 WITH_PLUGIN_SDL=0
43279 if test "$wxUSE_SOUND" = "yes"; then
43280 if test "$USE_UNIX" = 1 ; then
43281 if test "$wxUSE_LIBSDL" != "no"; then
43282
43283 # Check whether --with-sdl-prefix was given.
43284 if test "${with_sdl_prefix+set}" = set; then
43285 withval=$with_sdl_prefix; sdl_prefix="$withval"
43286 else
43287 sdl_prefix=""
43288 fi
43289
43290
43291 # Check whether --with-sdl-exec-prefix was given.
43292 if test "${with_sdl_exec_prefix+set}" = set; then
43293 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
43294 else
43295 sdl_exec_prefix=""
43296 fi
43297
43298 # Check whether --enable-sdltest was given.
43299 if test "${enable_sdltest+set}" = set; then
43300 enableval=$enable_sdltest;
43301 else
43302 enable_sdltest=yes
43303 fi
43304
43305
43306 if test x$sdl_exec_prefix != x ; then
43307 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
43308 if test x${SDL_CONFIG+set} != xset ; then
43309 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
43310 fi
43311 fi
43312 if test x$sdl_prefix != x ; then
43313 sdl_args="$sdl_args --prefix=$sdl_prefix"
43314 if test x${SDL_CONFIG+set} != xset ; then
43315 SDL_CONFIG=$sdl_prefix/bin/sdl-config
43316 fi
43317 fi
43318
43319 if test "x$prefix" != xNONE; then
43320 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
43321 fi
43322 # Extract the first word of "sdl-config", so it can be a program name with args.
43323 set dummy sdl-config; ac_word=$2
43324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43325 $as_echo_n "checking for $ac_word... " >&6; }
43326 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
43327 $as_echo_n "(cached) " >&6
43328 else
43329 case $SDL_CONFIG in
43330 [\\/]* | ?:[\\/]*)
43331 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
43332 ;;
43333 *)
43334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43335 for as_dir in $PATH
43336 do
43337 IFS=$as_save_IFS
43338 test -z "$as_dir" && as_dir=.
43339 for ac_exec_ext in '' $ac_executable_extensions; do
43340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43341 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43343 break 2
43344 fi
43345 done
43346 done
43347 IFS=$as_save_IFS
43348
43349 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
43350 ;;
43351 esac
43352 fi
43353 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
43354 if test -n "$SDL_CONFIG"; then
43355 { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
43356 $as_echo "$SDL_CONFIG" >&6; }
43357 else
43358 { $as_echo "$as_me:$LINENO: result: no" >&5
43359 $as_echo "no" >&6; }
43360 fi
43361
43362
43363 min_sdl_version=1.2.0
43364 { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
43365 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
43366 no_sdl=""
43367 if test "$SDL_CONFIG" = "no" ; then
43368 no_sdl=yes
43369 else
43370 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
43371 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
43372
43373 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
43374 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43375 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
43376 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43377 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
43378 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43379 if test "x$enable_sdltest" = "xyes" ; then
43380 ac_save_CFLAGS="$CFLAGS"
43381 ac_save_CXXFLAGS="$CXXFLAGS"
43382 ac_save_LIBS="$LIBS"
43383 CFLAGS="$CFLAGS $SDL_CFLAGS"
43384 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
43385 LIBS="$LIBS $SDL_LIBS"
43386 rm -f conf.sdltest
43387 if test "$cross_compiling" = yes; then
43388 echo $ac_n "cross compiling; assumed OK... $ac_c"
43389 else
43390 cat >conftest.$ac_ext <<_ACEOF
43391 /* confdefs.h. */
43392 _ACEOF
43393 cat confdefs.h >>conftest.$ac_ext
43394 cat >>conftest.$ac_ext <<_ACEOF
43395 /* end confdefs.h. */
43396
43397 #include <stdio.h>
43398 #include <stdlib.h>
43399 #include <string.h>
43400 #include "SDL.h"
43401
43402 char*
43403 my_strdup (char *str)
43404 {
43405 char *new_str;
43406
43407 if (str)
43408 {
43409 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
43410 strcpy (new_str, str);
43411 }
43412 else
43413 new_str = NULL;
43414
43415 return new_str;
43416 }
43417
43418 int main (int argc, char *argv[])
43419 {
43420 int major, minor, micro;
43421 char *tmp_version;
43422
43423 /* This hangs on some systems (?)
43424 system ("touch conf.sdltest");
43425 */
43426 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
43427
43428 /* HP/UX 9 (%@#!) writes to sscanf strings */
43429 tmp_version = my_strdup("$min_sdl_version");
43430 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
43431 printf("%s, bad version string\n", "$min_sdl_version");
43432 exit(1);
43433 }
43434
43435 if (($sdl_major_version > major) ||
43436 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
43437 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
43438 {
43439 return 0;
43440 }
43441 else
43442 {
43443 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
43444 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
43445 printf("*** best to upgrade to the required version.\n");
43446 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
43447 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
43448 printf("*** config.cache before re-running configure\n");
43449 return 1;
43450 }
43451 }
43452
43453
43454 _ACEOF
43455 rm -f conftest$ac_exeext
43456 if { (ac_try="$ac_link"
43457 case "(($ac_try" in
43458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43459 *) ac_try_echo=$ac_try;;
43460 esac
43461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43462 $as_echo "$ac_try_echo") >&5
43463 (eval "$ac_link") 2>&5
43464 ac_status=$?
43465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43467 { (case "(($ac_try" in
43468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43469 *) ac_try_echo=$ac_try;;
43470 esac
43471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43472 $as_echo "$ac_try_echo") >&5
43473 (eval "$ac_try") 2>&5
43474 ac_status=$?
43475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43476 (exit $ac_status); }; }; then
43477 :
43478 else
43479 $as_echo "$as_me: program exited with status $ac_status" >&5
43480 $as_echo "$as_me: failed program was:" >&5
43481 sed 's/^/| /' conftest.$ac_ext >&5
43482
43483 ( exit $ac_status )
43484 no_sdl=yes
43485 fi
43486 rm -rf conftest.dSYM
43487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43488 fi
43489
43490
43491 CFLAGS="$ac_save_CFLAGS"
43492 CXXFLAGS="$ac_save_CXXFLAGS"
43493 LIBS="$ac_save_LIBS"
43494 fi
43495 fi
43496 if test "x$no_sdl" = x ; then
43497 { $as_echo "$as_me:$LINENO: result: yes" >&5
43498 $as_echo "yes" >&6; }
43499
43500 EXTRALIBS_SDL="$SDL_LIBS"
43501 CFLAGS="$SDL_CFLAGS $CFLAGS"
43502 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
43503 cat >>confdefs.h <<\_ACEOF
43504 #define wxUSE_LIBSDL 1
43505 _ACEOF
43506
43507
43508 else
43509 { $as_echo "$as_me:$LINENO: result: no" >&5
43510 $as_echo "no" >&6; }
43511 if test "$SDL_CONFIG" = "no" ; then
43512 echo "*** The sdl-config script installed by SDL could not be found"
43513 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
43514 echo "*** your path, or set the SDL_CONFIG environment variable to the"
43515 echo "*** full path to sdl-config."
43516 else
43517 if test -f conf.sdltest ; then
43518 :
43519 else
43520 echo "*** Could not run SDL test program, checking why..."
43521 CFLAGS="$CFLAGS $SDL_CFLAGS"
43522 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
43523 LIBS="$LIBS $SDL_LIBS"
43524 cat >conftest.$ac_ext <<_ACEOF
43525 /* confdefs.h. */
43526 _ACEOF
43527 cat confdefs.h >>conftest.$ac_ext
43528 cat >>conftest.$ac_ext <<_ACEOF
43529 /* end confdefs.h. */
43530
43531 #include <stdio.h>
43532 #include "SDL.h"
43533
43534 int main(int argc, char *argv[])
43535 { return 0; }
43536 #undef main
43537 #define main K_and_R_C_main
43538
43539 int
43540 main ()
43541 {
43542 return 0;
43543 ;
43544 return 0;
43545 }
43546 _ACEOF
43547 rm -f conftest.$ac_objext conftest$ac_exeext
43548 if { (ac_try="$ac_link"
43549 case "(($ac_try" in
43550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43551 *) ac_try_echo=$ac_try;;
43552 esac
43553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43554 $as_echo "$ac_try_echo") >&5
43555 (eval "$ac_link") 2>conftest.er1
43556 ac_status=$?
43557 grep -v '^ *+' conftest.er1 >conftest.err
43558 rm -f conftest.er1
43559 cat conftest.err >&5
43560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43561 (exit $ac_status); } && {
43562 test -z "$ac_c_werror_flag" ||
43563 test ! -s conftest.err
43564 } && test -s conftest$ac_exeext && {
43565 test "$cross_compiling" = yes ||
43566 $as_test_x conftest$ac_exeext
43567 }; then
43568 echo "*** The test program compiled, but did not run. This usually means"
43569 echo "*** that the run-time linker is not finding SDL or finding the wrong"
43570 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
43571 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
43572 echo "*** to the installed location Also, make sure you have run ldconfig if that"
43573 echo "*** is required on your system"
43574 echo "***"
43575 echo "*** If you have an old version installed, it is best to remove it, although"
43576 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
43577 else
43578 $as_echo "$as_me: failed program was:" >&5
43579 sed 's/^/| /' conftest.$ac_ext >&5
43580
43581 echo "*** The test program failed to compile or link. See the file config.log for the"
43582 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
43583 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
43584 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
43585 fi
43586
43587 rm -rf conftest.dSYM
43588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43589 conftest$ac_exeext conftest.$ac_ext
43590 CFLAGS="$ac_save_CFLAGS"
43591 CXXFLAGS="$ac_save_CXXFLAGS"
43592 LIBS="$ac_save_LIBS"
43593 fi
43594 fi
43595 SDL_CFLAGS=""
43596 SDL_LIBS=""
43597 wxUSE_LIBSDL="no"
43598 fi
43599
43600
43601 rm -f conf.sdltest
43602
43603 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
43604 WITH_PLUGIN_SDL=1
43605 fi
43606 fi
43607 else
43608 if test "$wxUSE_MGL" = 1; then
43609 { $as_echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
43610 $as_echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
43611 wxUSE_SOUND="no"
43612 fi
43613 fi
43614 fi
43615
43616 if test "$wxUSE_SOUND" = "yes"; then
43617 cat >>confdefs.h <<\_ACEOF
43618 #define wxUSE_SOUND 1
43619 _ACEOF
43620
43621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
43622 fi
43623
43624 if test "$WXGTK2" = 1; then
43625
43626
43627 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
43628 if test -n "$ac_tool_prefix"; then
43629 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43630 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43631 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43632 $as_echo_n "checking for $ac_word... " >&6; }
43633 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
43634 $as_echo_n "(cached) " >&6
43635 else
43636 case $PKG_CONFIG in
43637 [\\/]* | ?:[\\/]*)
43638 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
43639 ;;
43640 *)
43641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43642 for as_dir in $PATH
43643 do
43644 IFS=$as_save_IFS
43645 test -z "$as_dir" && as_dir=.
43646 for ac_exec_ext in '' $ac_executable_extensions; do
43647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43648 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43650 break 2
43651 fi
43652 done
43653 done
43654 IFS=$as_save_IFS
43655
43656 ;;
43657 esac
43658 fi
43659 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
43660 if test -n "$PKG_CONFIG"; then
43661 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
43662 $as_echo "$PKG_CONFIG" >&6; }
43663 else
43664 { $as_echo "$as_me:$LINENO: result: no" >&5
43665 $as_echo "no" >&6; }
43666 fi
43667
43668
43669 fi
43670 if test -z "$ac_cv_path_PKG_CONFIG"; then
43671 ac_pt_PKG_CONFIG=$PKG_CONFIG
43672 # Extract the first word of "pkg-config", so it can be a program name with args.
43673 set dummy pkg-config; ac_word=$2
43674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43675 $as_echo_n "checking for $ac_word... " >&6; }
43676 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
43677 $as_echo_n "(cached) " >&6
43678 else
43679 case $ac_pt_PKG_CONFIG in
43680 [\\/]* | ?:[\\/]*)
43681 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
43682 ;;
43683 *)
43684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43685 for as_dir in $PATH
43686 do
43687 IFS=$as_save_IFS
43688 test -z "$as_dir" && as_dir=.
43689 for ac_exec_ext in '' $ac_executable_extensions; do
43690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43691 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43693 break 2
43694 fi
43695 done
43696 done
43697 IFS=$as_save_IFS
43698
43699 ;;
43700 esac
43701 fi
43702 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
43703 if test -n "$ac_pt_PKG_CONFIG"; then
43704 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
43705 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
43706 else
43707 { $as_echo "$as_me:$LINENO: result: no" >&5
43708 $as_echo "no" >&6; }
43709 fi
43710
43711 if test "x$ac_pt_PKG_CONFIG" = x; then
43712 PKG_CONFIG=""
43713 else
43714 case $cross_compiling:$ac_tool_warned in
43715 yes:)
43716 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
43717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43718 ac_tool_warned=yes ;;
43719 esac
43720 PKG_CONFIG=$ac_pt_PKG_CONFIG
43721 fi
43722 else
43723 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43724 fi
43725
43726 fi
43727 if test -n "$PKG_CONFIG"; then
43728 _pkg_min_version=0.9.0
43729 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
43730 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
43731 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
43732 { $as_echo "$as_me:$LINENO: result: yes" >&5
43733 $as_echo "yes" >&6; }
43734 else
43735 { $as_echo "$as_me:$LINENO: result: no" >&5
43736 $as_echo "no" >&6; }
43737 PKG_CONFIG=""
43738 fi
43739
43740 fi
43741
43742 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43743
43744 if test "$wxUSE_GTKPRINT" = "yes" ; then
43745
43746
43747 pkg_failed=no
43748 { $as_echo "$as_me:$LINENO: checking for GTKPRINT" >&5
43749 $as_echo_n "checking for GTKPRINT... " >&6; }
43750
43751 if test -n "$PKG_CONFIG"; then
43752 if test -n "$GTKPRINT_CFLAGS"; then
43753 pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
43754 else
43755 if test -n "$PKG_CONFIG" && \
43756 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
43757 ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
43758 ac_status=$?
43759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43760 (exit $ac_status); }; then
43761 pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
43762 else
43763 pkg_failed=yes
43764 fi
43765 fi
43766 else
43767 pkg_failed=untried
43768 fi
43769 if test -n "$PKG_CONFIG"; then
43770 if test -n "$GTKPRINT_LIBS"; then
43771 pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
43772 else
43773 if test -n "$PKG_CONFIG" && \
43774 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
43775 ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
43776 ac_status=$?
43777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43778 (exit $ac_status); }; then
43779 pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
43780 else
43781 pkg_failed=yes
43782 fi
43783 fi
43784 else
43785 pkg_failed=untried
43786 fi
43787
43788
43789
43790 if test $pkg_failed = yes; then
43791
43792 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43793 _pkg_short_errors_supported=yes
43794 else
43795 _pkg_short_errors_supported=no
43796 fi
43797 if test $_pkg_short_errors_supported = yes; then
43798 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
43799 else
43800 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
43801 fi
43802 # Put the nasty error message in config.log where it belongs
43803 echo "$GTKPRINT_PKG_ERRORS" >&5
43804
43805
43806 { $as_echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
43807 $as_echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
43808 wxUSE_GTKPRINT="no"
43809
43810
43811 elif test $pkg_failed = untried; then
43812
43813 { $as_echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
43814 $as_echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
43815 wxUSE_GTKPRINT="no"
43816
43817
43818 else
43819 GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
43820 GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
43821 { $as_echo "$as_me:$LINENO: result: yes" >&5
43822 $as_echo "yes" >&6; }
43823
43824 CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
43825 CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
43826 cat >>confdefs.h <<\_ACEOF
43827 #define wxUSE_GTKPRINT 1
43828 _ACEOF
43829
43830
43831 fi
43832 fi
43833
43834 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
43835
43836
43837 pkg_failed=no
43838 { $as_echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
43839 $as_echo_n "checking for LIBGNOMEPRINTUI... " >&6; }
43840
43841 if test -n "$PKG_CONFIG"; then
43842 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
43843 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
43844 else
43845 if test -n "$PKG_CONFIG" && \
43846 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43847 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43848 ac_status=$?
43849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43850 (exit $ac_status); }; then
43851 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
43852 else
43853 pkg_failed=yes
43854 fi
43855 fi
43856 else
43857 pkg_failed=untried
43858 fi
43859 if test -n "$PKG_CONFIG"; then
43860 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
43861 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
43862 else
43863 if test -n "$PKG_CONFIG" && \
43864 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43865 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43866 ac_status=$?
43867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43868 (exit $ac_status); }; then
43869 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
43870 else
43871 pkg_failed=yes
43872 fi
43873 fi
43874 else
43875 pkg_failed=untried
43876 fi
43877
43878
43879
43880 if test $pkg_failed = yes; then
43881
43882 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43883 _pkg_short_errors_supported=yes
43884 else
43885 _pkg_short_errors_supported=no
43886 fi
43887 if test $_pkg_short_errors_supported = yes; then
43888 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43889 else
43890 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43891 fi
43892 # Put the nasty error message in config.log where it belongs
43893 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
43894
43895
43896 { $as_echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43897 $as_echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43898 wxUSE_LIBGNOMEPRINT="no"
43899
43900
43901 elif test $pkg_failed = untried; then
43902
43903 { $as_echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43904 $as_echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43905 wxUSE_LIBGNOMEPRINT="no"
43906
43907
43908 else
43909 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
43910 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
43911 { $as_echo "$as_me:$LINENO: result: yes" >&5
43912 $as_echo "yes" >&6; }
43913
43914 CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
43915 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
43916 cat >>confdefs.h <<\_ACEOF
43917 #define wxUSE_LIBGNOMEPRINT 1
43918 _ACEOF
43919
43920
43921 fi
43922 fi
43923 fi
43924
43925 if test "$wxUSE_MIMETYPE" = "yes" ; then
43926 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
43927
43928
43929 pkg_failed=no
43930 { $as_echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
43931 $as_echo_n "checking for GNOMEVFS... " >&6; }
43932
43933 if test -n "$PKG_CONFIG"; then
43934 if test -n "$GNOMEVFS_CFLAGS"; then
43935 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43936 else
43937 if test -n "$PKG_CONFIG" && \
43938 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43939 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43940 ac_status=$?
43941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43942 (exit $ac_status); }; then
43943 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43944 else
43945 pkg_failed=yes
43946 fi
43947 fi
43948 else
43949 pkg_failed=untried
43950 fi
43951 if test -n "$PKG_CONFIG"; then
43952 if test -n "$GNOMEVFS_LIBS"; then
43953 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43954 else
43955 if test -n "$PKG_CONFIG" && \
43956 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43957 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43958 ac_status=$?
43959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43960 (exit $ac_status); }; then
43961 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43962 else
43963 pkg_failed=yes
43964 fi
43965 fi
43966 else
43967 pkg_failed=untried
43968 fi
43969
43970
43971
43972 if test $pkg_failed = yes; then
43973
43974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43975 _pkg_short_errors_supported=yes
43976 else
43977 _pkg_short_errors_supported=no
43978 fi
43979 if test $_pkg_short_errors_supported = yes; then
43980 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43981 else
43982 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43983 fi
43984 # Put the nasty error message in config.log where it belongs
43985 echo "$GNOMEVFS_PKG_ERRORS" >&5
43986
43987
43988 { $as_echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43989 $as_echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43990 wxUSE_LIBGNOMEVFS="no"
43991
43992
43993 elif test $pkg_failed = untried; then
43994
43995 { $as_echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43996 $as_echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43997 wxUSE_LIBGNOMEVFS="no"
43998
43999
44000 else
44001 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
44002 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
44003 { $as_echo "$as_me:$LINENO: result: yes" >&5
44004 $as_echo "yes" >&6; }
44005
44006 CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
44007 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
44008 cat >>confdefs.h <<\_ACEOF
44009 #define wxUSE_LIBGNOMEVFS 1
44010 _ACEOF
44011
44012
44013 fi
44014 fi
44015 fi
44016
44017 if test "$wxUSE_LIBHILDON" = "yes" ; then
44018
44019 pkg_failed=no
44020 { $as_echo "$as_me:$LINENO: checking for HILDON" >&5
44021 $as_echo_n "checking for HILDON... " >&6; }
44022
44023 if test -n "$PKG_CONFIG"; then
44024 if test -n "$HILDON_CFLAGS"; then
44025 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
44026 else
44027 if test -n "$PKG_CONFIG" && \
44028 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44029 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44030 ac_status=$?
44031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44032 (exit $ac_status); }; then
44033 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
44034 else
44035 pkg_failed=yes
44036 fi
44037 fi
44038 else
44039 pkg_failed=untried
44040 fi
44041 if test -n "$PKG_CONFIG"; then
44042 if test -n "$HILDON_LIBS"; then
44043 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
44044 else
44045 if test -n "$PKG_CONFIG" && \
44046 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44047 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44048 ac_status=$?
44049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44050 (exit $ac_status); }; then
44051 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
44052 else
44053 pkg_failed=yes
44054 fi
44055 fi
44056 else
44057 pkg_failed=untried
44058 fi
44059
44060
44061
44062 if test $pkg_failed = yes; then
44063
44064 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44065 _pkg_short_errors_supported=yes
44066 else
44067 _pkg_short_errors_supported=no
44068 fi
44069 if test $_pkg_short_errors_supported = yes; then
44070 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44071 else
44072 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44073 fi
44074 # Put the nasty error message in config.log where it belongs
44075 echo "$HILDON_PKG_ERRORS" >&5
44076
44077
44078 { $as_echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44079 $as_echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44080 wxUSE_LIBHILDON="no"
44081
44082
44083 elif test $pkg_failed = untried; then
44084
44085 { $as_echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44086 $as_echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44087 wxUSE_LIBHILDON="no"
44088
44089
44090 else
44091 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
44092 HILDON_LIBS=$pkg_cv_HILDON_LIBS
44093 { $as_echo "$as_me:$LINENO: result: yes" >&5
44094 $as_echo "yes" >&6; }
44095
44096 EXTRALIBS_HILDON="$HILDON_LIBS"
44097 CFLAGS="$CFLAGS $HILDON_CFLAGS"
44098 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
44099 cat >>confdefs.h <<\_ACEOF
44100 #define wxUSE_LIBHILDON 1
44101 _ACEOF
44102
44103
44104 fi
44105 fi
44106 fi
44107
44108 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
44109 cat >>confdefs.h <<\_ACEOF
44110 #define wxUSE_CMDLINE_PARSER 1
44111 _ACEOF
44112
44113 fi
44114
44115 if test "$wxUSE_STOPWATCH" = "yes"; then
44116 cat >>confdefs.h <<\_ACEOF
44117 #define wxUSE_STOPWATCH 1
44118 _ACEOF
44119
44120 fi
44121
44122 if test "$wxUSE_DATETIME" = "yes"; then
44123 cat >>confdefs.h <<\_ACEOF
44124 #define wxUSE_DATETIME 1
44125 _ACEOF
44126
44127 fi
44128
44129 if test "$wxUSE_FILE" = "yes"; then
44130 cat >>confdefs.h <<\_ACEOF
44131 #define wxUSE_FILE 1
44132 _ACEOF
44133
44134 fi
44135
44136 if test "$wxUSE_FFILE" = "yes"; then
44137 cat >>confdefs.h <<\_ACEOF
44138 #define wxUSE_FFILE 1
44139 _ACEOF
44140
44141 fi
44142
44143 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
44144 if test "$wxUSE_STREAMS" != yes; then
44145 { $as_echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
44146 $as_echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
44147 wxUSE_ARCHIVE_STREAMS=no
44148 else
44149 cat >>confdefs.h <<\_ACEOF
44150 #define wxUSE_ARCHIVE_STREAMS 1
44151 _ACEOF
44152
44153 fi
44154 fi
44155
44156 if test "$wxUSE_ZIPSTREAM" = "yes"; then
44157 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
44158 { $as_echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
44159 $as_echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
44160 elif test "$wxUSE_ZLIB" = "no"; then
44161 { $as_echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
44162 $as_echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
44163 else
44164 cat >>confdefs.h <<\_ACEOF
44165 #define wxUSE_ZIPSTREAM 1
44166 _ACEOF
44167
44168 fi
44169 fi
44170
44171 if test "$wxUSE_TARSTREAM" = "yes"; then
44172 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
44173 { $as_echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
44174 $as_echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
44175 else
44176 cat >>confdefs.h <<\_ACEOF
44177 #define wxUSE_TARSTREAM 1
44178 _ACEOF
44179
44180 fi
44181 fi
44182
44183 if test "$wxUSE_FILESYSTEM" = "yes"; then
44184 if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
44185 { $as_echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
44186 $as_echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
44187 wxUSE_FILESYSTEM=no
44188 else
44189 cat >>confdefs.h <<\_ACEOF
44190 #define wxUSE_FILESYSTEM 1
44191 _ACEOF
44192
44193 fi
44194 fi
44195
44196 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
44197 if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
44198 { $as_echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
44199 $as_echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
44200 else
44201 cat >>confdefs.h <<\_ACEOF
44202 #define wxUSE_FS_ARCHIVE 1
44203 _ACEOF
44204
44205 fi
44206 fi
44207
44208 if test "$wxUSE_FS_ZIP" = "yes"; then
44209 if test "$wxUSE_FS_ARCHIVE" != yes; then
44210 { $as_echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
44211 $as_echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
44212 else
44213 cat >>confdefs.h <<\_ACEOF
44214 #define wxUSE_FS_ZIP 1
44215 _ACEOF
44216
44217 fi
44218 fi
44219
44220 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
44221 if test "$USE_UNIX" != 1; then
44222 { $as_echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
44223 $as_echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
44224 wxUSE_ON_FATAL_EXCEPTION=no
44225 else
44226 cat >>confdefs.h <<\_ACEOF
44227 #define wxUSE_ON_FATAL_EXCEPTION 1
44228 _ACEOF
44229
44230 fi
44231 fi
44232
44233 if test "$wxUSE_STACKWALKER" = "yes"; then
44234 cat >>confdefs.h <<\_ACEOF
44235 #define wxUSE_STACKWALKER 1
44236 _ACEOF
44237
44238 fi
44239
44240 if test "$wxUSE_DEBUGREPORT" = "yes"; then
44241 if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
44242 { $as_echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
44243 $as_echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
44244 wxUSE_DEBUGREPORT=no
44245 else
44246 cat >>confdefs.h <<\_ACEOF
44247 #define wxUSE_DEBUGREPORT 1
44248 _ACEOF
44249
44250 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
44251 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
44252 fi
44253 fi
44254 fi
44255
44256 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
44257 cat >>confdefs.h <<\_ACEOF
44258 #define wxUSE_SNGLINST_CHECKER 1
44259 _ACEOF
44260
44261 fi
44262
44263 if test "$wxUSE_BUSYINFO" = "yes"; then
44264 cat >>confdefs.h <<\_ACEOF
44265 #define wxUSE_BUSYINFO 1
44266 _ACEOF
44267
44268 fi
44269
44270 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
44271 cat >>confdefs.h <<\_ACEOF
44272 #define wxUSE_STD_IOSTREAM 1
44273 _ACEOF
44274
44275 fi
44276
44277 if test "$wxUSE_STD_STRING" = "yes"; then
44278 cat >>confdefs.h <<\_ACEOF
44279 #define wxUSE_STD_STRING 1
44280 _ACEOF
44281
44282 fi
44283
44284 if test "$wxUSE_STDPATHS" = "yes"; then
44285 cat >>confdefs.h <<\_ACEOF
44286 #define wxUSE_STDPATHS 1
44287 _ACEOF
44288
44289 fi
44290
44291 if test "$wxUSE_TEXTBUFFER" = "yes"; then
44292 cat >>confdefs.h <<\_ACEOF
44293 #define wxUSE_TEXTBUFFER 1
44294 _ACEOF
44295
44296 fi
44297
44298 if test "$wxUSE_TEXTFILE" = "yes"; then
44299 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
44300 { $as_echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
44301 $as_echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
44302 else
44303 cat >>confdefs.h <<\_ACEOF
44304 #define wxUSE_TEXTFILE 1
44305 _ACEOF
44306
44307 fi
44308 fi
44309
44310 if test "$wxUSE_CONFIG" = "yes" ; then
44311 if test "$wxUSE_TEXTFILE" != "yes"; then
44312 { $as_echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
44313 $as_echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
44314 else
44315 cat >>confdefs.h <<\_ACEOF
44316 #define wxUSE_CONFIG 1
44317 _ACEOF
44318
44319 cat >>confdefs.h <<\_ACEOF
44320 #define wxUSE_CONFIG_NATIVE 1
44321 _ACEOF
44322
44323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
44324 fi
44325 fi
44326
44327 if test "$wxUSE_INTL" = "yes" ; then
44328 if test "$wxUSE_FILE" != "yes"; then
44329 { $as_echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
44330 $as_echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
44331 else
44332 cat >>confdefs.h <<\_ACEOF
44333 #define wxUSE_INTL 1
44334 _ACEOF
44335
44336 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
44337 GUIDIST="$GUIDIST INTL_DIST"
44338 fi
44339 fi
44340
44341 if test "$wxUSE_XLOCALE" = "yes" ; then
44342 cat >>confdefs.h <<\_ACEOF
44343 #define wxUSE_XLOCALE 1
44344 _ACEOF
44345
44346 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
44347 $as_echo_n "checking for locale_t... " >&6; }
44348 if test "${ac_cv_type_locale_t+set}" = set; then
44349 $as_echo_n "(cached) " >&6
44350 else
44351 ac_cv_type_locale_t=no
44352 cat >conftest.$ac_ext <<_ACEOF
44353 /* confdefs.h. */
44354 _ACEOF
44355 cat confdefs.h >>conftest.$ac_ext
44356 cat >>conftest.$ac_ext <<_ACEOF
44357 /* end confdefs.h. */
44358 #include <xlocale.h>
44359 #include <locale.h>
44360
44361 int
44362 main ()
44363 {
44364 if (sizeof (locale_t))
44365 return 0;
44366 ;
44367 return 0;
44368 }
44369 _ACEOF
44370 rm -f conftest.$ac_objext
44371 if { (ac_try="$ac_compile"
44372 case "(($ac_try" in
44373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44374 *) ac_try_echo=$ac_try;;
44375 esac
44376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44377 $as_echo "$ac_try_echo") >&5
44378 (eval "$ac_compile") 2>conftest.er1
44379 ac_status=$?
44380 grep -v '^ *+' conftest.er1 >conftest.err
44381 rm -f conftest.er1
44382 cat conftest.err >&5
44383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44384 (exit $ac_status); } && {
44385 test -z "$ac_c_werror_flag" ||
44386 test ! -s conftest.err
44387 } && test -s conftest.$ac_objext; then
44388 cat >conftest.$ac_ext <<_ACEOF
44389 /* confdefs.h. */
44390 _ACEOF
44391 cat confdefs.h >>conftest.$ac_ext
44392 cat >>conftest.$ac_ext <<_ACEOF
44393 /* end confdefs.h. */
44394 #include <xlocale.h>
44395 #include <locale.h>
44396
44397 int
44398 main ()
44399 {
44400 if (sizeof ((locale_t)))
44401 return 0;
44402 ;
44403 return 0;
44404 }
44405 _ACEOF
44406 rm -f conftest.$ac_objext
44407 if { (ac_try="$ac_compile"
44408 case "(($ac_try" in
44409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44410 *) ac_try_echo=$ac_try;;
44411 esac
44412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44413 $as_echo "$ac_try_echo") >&5
44414 (eval "$ac_compile") 2>conftest.er1
44415 ac_status=$?
44416 grep -v '^ *+' conftest.er1 >conftest.err
44417 rm -f conftest.er1
44418 cat conftest.err >&5
44419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44420 (exit $ac_status); } && {
44421 test -z "$ac_c_werror_flag" ||
44422 test ! -s conftest.err
44423 } && test -s conftest.$ac_objext; then
44424 :
44425 else
44426 $as_echo "$as_me: failed program was:" >&5
44427 sed 's/^/| /' conftest.$ac_ext >&5
44428
44429 ac_cv_type_locale_t=yes
44430 fi
44431
44432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44433 else
44434 $as_echo "$as_me: failed program was:" >&5
44435 sed 's/^/| /' conftest.$ac_ext >&5
44436
44437
44438 fi
44439
44440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44441 fi
44442 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
44443 $as_echo "$ac_cv_type_locale_t" >&6; }
44444 if test "x$ac_cv_type_locale_t" = x""yes; then
44445
44446 cat >>confdefs.h <<_ACEOF
44447 #define HAVE_LOCALE_T 1
44448 _ACEOF
44449
44450
44451 fi
44452
44453 fi
44454
44455 if test "$wxUSE_LOG" = "yes"; then
44456 cat >>confdefs.h <<\_ACEOF
44457 #define wxUSE_LOG 1
44458 _ACEOF
44459
44460
44461 if test "$wxUSE_LOGGUI" = "yes"; then
44462 cat >>confdefs.h <<\_ACEOF
44463 #define wxUSE_LOGGUI 1
44464 _ACEOF
44465
44466 fi
44467
44468 if test "$wxUSE_LOGWINDOW" = "yes"; then
44469 cat >>confdefs.h <<\_ACEOF
44470 #define wxUSE_LOGWINDOW 1
44471 _ACEOF
44472
44473 fi
44474
44475 if test "$wxUSE_LOGDIALOG" = "yes"; then
44476 cat >>confdefs.h <<\_ACEOF
44477 #define wxUSE_LOG_DIALOG 1
44478 _ACEOF
44479
44480 fi
44481
44482 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
44483 fi
44484
44485 if test "$wxUSE_LONGLONG" = "yes"; then
44486 cat >>confdefs.h <<\_ACEOF
44487 #define wxUSE_LONGLONG 1
44488 _ACEOF
44489
44490 fi
44491
44492 if test "$wxUSE_GEOMETRY" = "yes"; then
44493 cat >>confdefs.h <<\_ACEOF
44494 #define wxUSE_GEOMETRY 1
44495 _ACEOF
44496
44497 fi
44498
44499 if test "$wxUSE_BASE64" = "yes"; then
44500 cat >>confdefs.h <<\_ACEOF
44501 #define wxUSE_BASE64 1
44502 _ACEOF
44503
44504 fi
44505
44506 if test "$wxUSE_STREAMS" = "yes" ; then
44507 cat >>confdefs.h <<\_ACEOF
44508 #define wxUSE_STREAMS 1
44509 _ACEOF
44510
44511 fi
44512
44513 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
44514 cat >>confdefs.h <<\_ACEOF
44515 #define wxUSE_PRINTF_POS_PARAMS 1
44516 _ACEOF
44517
44518 fi
44519
44520 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
44521 cat >>confdefs.h <<\_ACEOF
44522 #define wxUSE_OBJC_UNIQUIFYING 1
44523 _ACEOF
44524
44525 fi
44526
44527
44528 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
44529 cat >>confdefs.h <<\_ACEOF
44530 #define wxUSE_CONSOLE_EVENTLOOP 1
44531 _ACEOF
44532
44533
44534 if test "$wxUSE_UNIX" = "yes"; then
44535 if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
44536 cat >>confdefs.h <<\_ACEOF
44537 #define wxUSE_SELECT_DISPATCHER 1
44538 _ACEOF
44539
44540 fi
44541
44542 if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
44543
44544 for ac_header in sys/epoll.h
44545 do
44546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44547 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
44548 $as_echo_n "checking for $ac_header... " >&6; }
44549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44550 $as_echo_n "(cached) " >&6
44551 else
44552 cat >conftest.$ac_ext <<_ACEOF
44553 /* confdefs.h. */
44554 _ACEOF
44555 cat confdefs.h >>conftest.$ac_ext
44556 cat >>conftest.$ac_ext <<_ACEOF
44557 /* end confdefs.h. */
44558 $ac_includes_default
44559
44560 #include <$ac_header>
44561 _ACEOF
44562 rm -f conftest.$ac_objext
44563 if { (ac_try="$ac_compile"
44564 case "(($ac_try" in
44565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44566 *) ac_try_echo=$ac_try;;
44567 esac
44568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44569 $as_echo "$ac_try_echo") >&5
44570 (eval "$ac_compile") 2>conftest.er1
44571 ac_status=$?
44572 grep -v '^ *+' conftest.er1 >conftest.err
44573 rm -f conftest.er1
44574 cat conftest.err >&5
44575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44576 (exit $ac_status); } && {
44577 test -z "$ac_c_werror_flag" ||
44578 test ! -s conftest.err
44579 } && test -s conftest.$ac_objext; then
44580 eval "$as_ac_Header=yes"
44581 else
44582 $as_echo "$as_me: failed program was:" >&5
44583 sed 's/^/| /' conftest.$ac_ext >&5
44584
44585 eval "$as_ac_Header=no"
44586 fi
44587
44588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44589 fi
44590 ac_res=`eval 'as_val=${'$as_ac_Header'}
44591 $as_echo "$as_val"'`
44592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44593 $as_echo "$ac_res" >&6; }
44594 as_val=`eval 'as_val=${'$as_ac_Header'}
44595 $as_echo "$as_val"'`
44596 if test "x$as_val" = x""yes; then
44597 cat >>confdefs.h <<_ACEOF
44598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44599 _ACEOF
44600
44601 fi
44602
44603 done
44604
44605 if test "$ac_cv_header_sys_epoll_h" = "yes"; then
44606 cat >>confdefs.h <<\_ACEOF
44607 #define wxUSE_EPOLL_DISPATCHER 1
44608 _ACEOF
44609
44610 else
44611 { $as_echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
44612 $as_echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
44613 fi
44614 fi
44615 fi
44616 fi
44617
44618
44619
44620
44621 for ac_func in gettimeofday ftime
44622 do
44623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44624 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44625 $as_echo_n "checking for $ac_func... " >&6; }
44626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44627 $as_echo_n "(cached) " >&6
44628 else
44629 cat >conftest.$ac_ext <<_ACEOF
44630 /* confdefs.h. */
44631 _ACEOF
44632 cat confdefs.h >>conftest.$ac_ext
44633 cat >>conftest.$ac_ext <<_ACEOF
44634 /* end confdefs.h. */
44635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44637 #define $ac_func innocuous_$ac_func
44638
44639 /* System header to define __stub macros and hopefully few prototypes,
44640 which can conflict with char $ac_func (); below.
44641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44642 <limits.h> exists even on freestanding compilers. */
44643
44644 #ifdef __STDC__
44645 # include <limits.h>
44646 #else
44647 # include <assert.h>
44648 #endif
44649
44650 #undef $ac_func
44651
44652 /* Override any GCC internal prototype to avoid an error.
44653 Use char because int might match the return type of a GCC
44654 builtin and then its argument prototype would still apply. */
44655 #ifdef __cplusplus
44656 extern "C"
44657 #endif
44658 char $ac_func ();
44659 /* The GNU C library defines this for functions which it implements
44660 to always fail with ENOSYS. Some functions are actually named
44661 something starting with __ and the normal name is an alias. */
44662 #if defined __stub_$ac_func || defined __stub___$ac_func
44663 choke me
44664 #endif
44665
44666 int
44667 main ()
44668 {
44669 return $ac_func ();
44670 ;
44671 return 0;
44672 }
44673 _ACEOF
44674 rm -f conftest.$ac_objext conftest$ac_exeext
44675 if { (ac_try="$ac_link"
44676 case "(($ac_try" in
44677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44678 *) ac_try_echo=$ac_try;;
44679 esac
44680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44681 $as_echo "$ac_try_echo") >&5
44682 (eval "$ac_link") 2>conftest.er1
44683 ac_status=$?
44684 grep -v '^ *+' conftest.er1 >conftest.err
44685 rm -f conftest.er1
44686 cat conftest.err >&5
44687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44688 (exit $ac_status); } && {
44689 test -z "$ac_c_werror_flag" ||
44690 test ! -s conftest.err
44691 } && test -s conftest$ac_exeext && {
44692 test "$cross_compiling" = yes ||
44693 $as_test_x conftest$ac_exeext
44694 }; then
44695 eval "$as_ac_var=yes"
44696 else
44697 $as_echo "$as_me: failed program was:" >&5
44698 sed 's/^/| /' conftest.$ac_ext >&5
44699
44700 eval "$as_ac_var=no"
44701 fi
44702
44703 rm -rf conftest.dSYM
44704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44705 conftest$ac_exeext conftest.$ac_ext
44706 fi
44707 ac_res=`eval 'as_val=${'$as_ac_var'}
44708 $as_echo "$as_val"'`
44709 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44710 $as_echo "$ac_res" >&6; }
44711 as_val=`eval 'as_val=${'$as_ac_var'}
44712 $as_echo "$as_val"'`
44713 if test "x$as_val" = x""yes; then
44714 cat >>confdefs.h <<_ACEOF
44715 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44716 _ACEOF
44717 break
44718 fi
44719 done
44720
44721
44722 if test "$ac_cv_func_gettimeofday" = "yes"; then
44723 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
44724 $as_echo_n "checking whether gettimeofday takes two arguments... " >&6; }
44725 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
44726 $as_echo_n "(cached) " >&6
44727 else
44728
44729 cat >conftest.$ac_ext <<_ACEOF
44730 /* confdefs.h. */
44731 _ACEOF
44732 cat confdefs.h >>conftest.$ac_ext
44733 cat >>conftest.$ac_ext <<_ACEOF
44734 /* end confdefs.h. */
44735
44736 #include <sys/time.h>
44737 #include <unistd.h>
44738
44739 int
44740 main ()
44741 {
44742
44743 struct timeval tv;
44744 gettimeofday(&tv, NULL);
44745
44746 ;
44747 return 0;
44748 }
44749 _ACEOF
44750 rm -f conftest.$ac_objext
44751 if { (ac_try="$ac_compile"
44752 case "(($ac_try" in
44753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44754 *) ac_try_echo=$ac_try;;
44755 esac
44756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44757 $as_echo "$ac_try_echo") >&5
44758 (eval "$ac_compile") 2>conftest.er1
44759 ac_status=$?
44760 grep -v '^ *+' conftest.er1 >conftest.err
44761 rm -f conftest.er1
44762 cat conftest.err >&5
44763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44764 (exit $ac_status); } && {
44765 test -z "$ac_c_werror_flag" ||
44766 test ! -s conftest.err
44767 } && test -s conftest.$ac_objext; then
44768 wx_cv_func_gettimeofday_has_2_args=yes
44769 else
44770 $as_echo "$as_me: failed program was:" >&5
44771 sed 's/^/| /' conftest.$ac_ext >&5
44772
44773 cat >conftest.$ac_ext <<_ACEOF
44774 /* confdefs.h. */
44775 _ACEOF
44776 cat confdefs.h >>conftest.$ac_ext
44777 cat >>conftest.$ac_ext <<_ACEOF
44778 /* end confdefs.h. */
44779
44780 #include <sys/time.h>
44781 #include <unistd.h>
44782
44783 int
44784 main ()
44785 {
44786
44787 struct timeval tv;
44788 gettimeofday(&tv);
44789
44790 ;
44791 return 0;
44792 }
44793 _ACEOF
44794 rm -f conftest.$ac_objext
44795 if { (ac_try="$ac_compile"
44796 case "(($ac_try" in
44797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44798 *) ac_try_echo=$ac_try;;
44799 esac
44800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44801 $as_echo "$ac_try_echo") >&5
44802 (eval "$ac_compile") 2>conftest.er1
44803 ac_status=$?
44804 grep -v '^ *+' conftest.er1 >conftest.err
44805 rm -f conftest.er1
44806 cat conftest.err >&5
44807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44808 (exit $ac_status); } && {
44809 test -z "$ac_c_werror_flag" ||
44810 test ! -s conftest.err
44811 } && test -s conftest.$ac_objext; then
44812 wx_cv_func_gettimeofday_has_2_args=no
44813 else
44814 $as_echo "$as_me: failed program was:" >&5
44815 sed 's/^/| /' conftest.$ac_ext >&5
44816
44817
44818 { $as_echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44819 $as_echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44820 wx_cv_func_gettimeofday_has_2_args=unknown
44821
44822
44823 fi
44824
44825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44826
44827 fi
44828
44829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44830
44831 fi
44832 { $as_echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44833 $as_echo "$wx_cv_func_gettimeofday_has_2_args" >&6; }
44834
44835 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44836 cat >>confdefs.h <<\_ACEOF
44837 #define WX_GETTIMEOFDAY_NO_TZ 1
44838 _ACEOF
44839
44840 fi
44841 fi
44842
44843 if test "$wxUSE_DATETIME" = "yes"; then
44844 { $as_echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
44845 $as_echo_n "checking for timezone variable in <time.h>... " >&6; }
44846 if test "${wx_cv_var_timezone+set}" = set; then
44847 $as_echo_n "(cached) " >&6
44848 else
44849
44850 ac_ext=cpp
44851 ac_cpp='$CXXCPP $CPPFLAGS'
44852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44855
44856 cat >conftest.$ac_ext <<_ACEOF
44857 /* confdefs.h. */
44858 _ACEOF
44859 cat confdefs.h >>conftest.$ac_ext
44860 cat >>conftest.$ac_ext <<_ACEOF
44861 /* end confdefs.h. */
44862
44863 #include <time.h>
44864
44865 int
44866 main ()
44867 {
44868
44869 int tz;
44870 tz = timezone;
44871
44872 ;
44873 return 0;
44874 }
44875 _ACEOF
44876 rm -f conftest.$ac_objext
44877 if { (ac_try="$ac_compile"
44878 case "(($ac_try" in
44879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44880 *) ac_try_echo=$ac_try;;
44881 esac
44882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44883 $as_echo "$ac_try_echo") >&5
44884 (eval "$ac_compile") 2>conftest.er1
44885 ac_status=$?
44886 grep -v '^ *+' conftest.er1 >conftest.err
44887 rm -f conftest.er1
44888 cat conftest.err >&5
44889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44890 (exit $ac_status); } && {
44891 test -z "$ac_cxx_werror_flag" ||
44892 test ! -s conftest.err
44893 } && test -s conftest.$ac_objext; then
44894
44895 wx_cv_var_timezone=timezone
44896
44897 else
44898 $as_echo "$as_me: failed program was:" >&5
44899 sed 's/^/| /' conftest.$ac_ext >&5
44900
44901
44902 cat >conftest.$ac_ext <<_ACEOF
44903 /* confdefs.h. */
44904 _ACEOF
44905 cat confdefs.h >>conftest.$ac_ext
44906 cat >>conftest.$ac_ext <<_ACEOF
44907 /* end confdefs.h. */
44908
44909 #include <time.h>
44910
44911 int
44912 main ()
44913 {
44914
44915 int tz;
44916 tz = _timezone;
44917
44918 ;
44919 return 0;
44920 }
44921 _ACEOF
44922 rm -f conftest.$ac_objext
44923 if { (ac_try="$ac_compile"
44924 case "(($ac_try" in
44925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44926 *) ac_try_echo=$ac_try;;
44927 esac
44928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44929 $as_echo "$ac_try_echo") >&5
44930 (eval "$ac_compile") 2>conftest.er1
44931 ac_status=$?
44932 grep -v '^ *+' conftest.er1 >conftest.err
44933 rm -f conftest.er1
44934 cat conftest.err >&5
44935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44936 (exit $ac_status); } && {
44937 test -z "$ac_cxx_werror_flag" ||
44938 test ! -s conftest.err
44939 } && test -s conftest.$ac_objext; then
44940
44941 wx_cv_var_timezone=_timezone
44942
44943 else
44944 $as_echo "$as_me: failed program was:" >&5
44945 sed 's/^/| /' conftest.$ac_ext >&5
44946
44947
44948 cat >conftest.$ac_ext <<_ACEOF
44949 /* confdefs.h. */
44950 _ACEOF
44951 cat confdefs.h >>conftest.$ac_ext
44952 cat >>conftest.$ac_ext <<_ACEOF
44953 /* end confdefs.h. */
44954
44955 #include <time.h>
44956
44957 int
44958 main ()
44959 {
44960
44961 int tz;
44962 tz = __timezone;
44963
44964 ;
44965 return 0;
44966 }
44967 _ACEOF
44968 rm -f conftest.$ac_objext
44969 if { (ac_try="$ac_compile"
44970 case "(($ac_try" in
44971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44972 *) ac_try_echo=$ac_try;;
44973 esac
44974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44975 $as_echo "$ac_try_echo") >&5
44976 (eval "$ac_compile") 2>conftest.er1
44977 ac_status=$?
44978 grep -v '^ *+' conftest.er1 >conftest.err
44979 rm -f conftest.er1
44980 cat conftest.err >&5
44981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44982 (exit $ac_status); } && {
44983 test -z "$ac_cxx_werror_flag" ||
44984 test ! -s conftest.err
44985 } && test -s conftest.$ac_objext; then
44986
44987 wx_cv_var_timezone=__timezone
44988
44989 else
44990 $as_echo "$as_me: failed program was:" >&5
44991 sed 's/^/| /' conftest.$ac_ext >&5
44992
44993
44994 if test "$USE_DOS" = 0 ; then
44995 { $as_echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44996 $as_echo "$as_me: WARNING: no timezone variable" >&2;}
44997 fi
44998
44999
45000 fi
45001
45002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45003
45004
45005 fi
45006
45007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45008
45009
45010 fi
45011
45012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45013 ac_ext=c
45014 ac_cpp='$CPP $CPPFLAGS'
45015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45018
45019
45020
45021 fi
45022 { $as_echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
45023 $as_echo "$wx_cv_var_timezone" >&6; }
45024
45025 if test "x$wx_cv_var_timezone" != x ; then
45026 cat >>confdefs.h <<_ACEOF
45027 #define WX_TIMEZONE $wx_cv_var_timezone
45028 _ACEOF
45029
45030 fi
45031
45032
45033 for ac_func in localtime
45034 do
45035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45036 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45037 $as_echo_n "checking for $ac_func... " >&6; }
45038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45039 $as_echo_n "(cached) " >&6
45040 else
45041 cat >conftest.$ac_ext <<_ACEOF
45042 /* confdefs.h. */
45043 _ACEOF
45044 cat confdefs.h >>conftest.$ac_ext
45045 cat >>conftest.$ac_ext <<_ACEOF
45046 /* end confdefs.h. */
45047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45049 #define $ac_func innocuous_$ac_func
45050
45051 /* System header to define __stub macros and hopefully few prototypes,
45052 which can conflict with char $ac_func (); below.
45053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45054 <limits.h> exists even on freestanding compilers. */
45055
45056 #ifdef __STDC__
45057 # include <limits.h>
45058 #else
45059 # include <assert.h>
45060 #endif
45061
45062 #undef $ac_func
45063
45064 /* Override any GCC internal prototype to avoid an error.
45065 Use char because int might match the return type of a GCC
45066 builtin and then its argument prototype would still apply. */
45067 #ifdef __cplusplus
45068 extern "C"
45069 #endif
45070 char $ac_func ();
45071 /* The GNU C library defines this for functions which it implements
45072 to always fail with ENOSYS. Some functions are actually named
45073 something starting with __ and the normal name is an alias. */
45074 #if defined __stub_$ac_func || defined __stub___$ac_func
45075 choke me
45076 #endif
45077
45078 int
45079 main ()
45080 {
45081 return $ac_func ();
45082 ;
45083 return 0;
45084 }
45085 _ACEOF
45086 rm -f conftest.$ac_objext conftest$ac_exeext
45087 if { (ac_try="$ac_link"
45088 case "(($ac_try" in
45089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45090 *) ac_try_echo=$ac_try;;
45091 esac
45092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45093 $as_echo "$ac_try_echo") >&5
45094 (eval "$ac_link") 2>conftest.er1
45095 ac_status=$?
45096 grep -v '^ *+' conftest.er1 >conftest.err
45097 rm -f conftest.er1
45098 cat conftest.err >&5
45099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45100 (exit $ac_status); } && {
45101 test -z "$ac_c_werror_flag" ||
45102 test ! -s conftest.err
45103 } && test -s conftest$ac_exeext && {
45104 test "$cross_compiling" = yes ||
45105 $as_test_x conftest$ac_exeext
45106 }; then
45107 eval "$as_ac_var=yes"
45108 else
45109 $as_echo "$as_me: failed program was:" >&5
45110 sed 's/^/| /' conftest.$ac_ext >&5
45111
45112 eval "$as_ac_var=no"
45113 fi
45114
45115 rm -rf conftest.dSYM
45116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45117 conftest$ac_exeext conftest.$ac_ext
45118 fi
45119 ac_res=`eval 'as_val=${'$as_ac_var'}
45120 $as_echo "$as_val"'`
45121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45122 $as_echo "$ac_res" >&6; }
45123 as_val=`eval 'as_val=${'$as_ac_var'}
45124 $as_echo "$as_val"'`
45125 if test "x$as_val" = x""yes; then
45126 cat >>confdefs.h <<_ACEOF
45127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45128 _ACEOF
45129
45130 fi
45131 done
45132
45133
45134 if test "$ac_cv_func_localtime" = "yes"; then
45135 { $as_echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
45136 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
45137 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
45138 $as_echo_n "(cached) " >&6
45139 else
45140
45141 cat >conftest.$ac_ext <<_ACEOF
45142 /* confdefs.h. */
45143 _ACEOF
45144 cat confdefs.h >>conftest.$ac_ext
45145 cat >>conftest.$ac_ext <<_ACEOF
45146 /* end confdefs.h. */
45147
45148 #include <time.h>
45149
45150 int
45151 main ()
45152 {
45153
45154 struct tm tm;
45155 tm.tm_gmtoff++;
45156
45157 ;
45158 return 0;
45159 }
45160 _ACEOF
45161 rm -f conftest.$ac_objext
45162 if { (ac_try="$ac_compile"
45163 case "(($ac_try" in
45164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45165 *) ac_try_echo=$ac_try;;
45166 esac
45167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45168 $as_echo "$ac_try_echo") >&5
45169 (eval "$ac_compile") 2>conftest.er1
45170 ac_status=$?
45171 grep -v '^ *+' conftest.er1 >conftest.err
45172 rm -f conftest.er1
45173 cat conftest.err >&5
45174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45175 (exit $ac_status); } && {
45176 test -z "$ac_c_werror_flag" ||
45177 test ! -s conftest.err
45178 } && test -s conftest.$ac_objext; then
45179
45180 wx_cv_struct_tm_has_gmtoff=yes
45181
45182 else
45183 $as_echo "$as_me: failed program was:" >&5
45184 sed 's/^/| /' conftest.$ac_ext >&5
45185
45186 wx_cv_struct_tm_has_gmtoff=no
45187
45188 fi
45189
45190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45191
45192 fi
45193 { $as_echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
45194 $as_echo "$wx_cv_struct_tm_has_gmtoff" >&6; }
45195 fi
45196
45197 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
45198 cat >>confdefs.h <<\_ACEOF
45199 #define WX_GMTOFF_IN_TM 1
45200 _ACEOF
45201
45202 fi
45203
45204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
45205 fi
45206
45207
45208 if test "$wxUSE_SOCKETS" = "yes"; then
45209 if test "$wxUSE_MGL" = 1; then
45210 { $as_echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
45211 $as_echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
45212 wxUSE_SOCKETS="no"
45213 fi
45214 fi
45215
45216 if test "$wxUSE_SOCKETS" = "yes"; then
45217 if test "$TOOLKIT" != "MSW"; then
45218 { $as_echo "$as_me:$LINENO: checking for socket" >&5
45219 $as_echo_n "checking for socket... " >&6; }
45220 if test "${ac_cv_func_socket+set}" = set; then
45221 $as_echo_n "(cached) " >&6
45222 else
45223 cat >conftest.$ac_ext <<_ACEOF
45224 /* confdefs.h. */
45225 _ACEOF
45226 cat confdefs.h >>conftest.$ac_ext
45227 cat >>conftest.$ac_ext <<_ACEOF
45228 /* end confdefs.h. */
45229 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
45230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45231 #define socket innocuous_socket
45232
45233 /* System header to define __stub macros and hopefully few prototypes,
45234 which can conflict with char socket (); below.
45235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45236 <limits.h> exists even on freestanding compilers. */
45237
45238 #ifdef __STDC__
45239 # include <limits.h>
45240 #else
45241 # include <assert.h>
45242 #endif
45243
45244 #undef socket
45245
45246 /* Override any GCC internal prototype to avoid an error.
45247 Use char because int might match the return type of a GCC
45248 builtin and then its argument prototype would still apply. */
45249 #ifdef __cplusplus
45250 extern "C"
45251 #endif
45252 char socket ();
45253 /* The GNU C library defines this for functions which it implements
45254 to always fail with ENOSYS. Some functions are actually named
45255 something starting with __ and the normal name is an alias. */
45256 #if defined __stub_socket || defined __stub___socket
45257 choke me
45258 #endif
45259
45260 int
45261 main ()
45262 {
45263 return socket ();
45264 ;
45265 return 0;
45266 }
45267 _ACEOF
45268 rm -f conftest.$ac_objext conftest$ac_exeext
45269 if { (ac_try="$ac_link"
45270 case "(($ac_try" in
45271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45272 *) ac_try_echo=$ac_try;;
45273 esac
45274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45275 $as_echo "$ac_try_echo") >&5
45276 (eval "$ac_link") 2>conftest.er1
45277 ac_status=$?
45278 grep -v '^ *+' conftest.er1 >conftest.err
45279 rm -f conftest.er1
45280 cat conftest.err >&5
45281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45282 (exit $ac_status); } && {
45283 test -z "$ac_c_werror_flag" ||
45284 test ! -s conftest.err
45285 } && test -s conftest$ac_exeext && {
45286 test "$cross_compiling" = yes ||
45287 $as_test_x conftest$ac_exeext
45288 }; then
45289 ac_cv_func_socket=yes
45290 else
45291 $as_echo "$as_me: failed program was:" >&5
45292 sed 's/^/| /' conftest.$ac_ext >&5
45293
45294 ac_cv_func_socket=no
45295 fi
45296
45297 rm -rf conftest.dSYM
45298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45299 conftest$ac_exeext conftest.$ac_ext
45300 fi
45301 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
45302 $as_echo "$ac_cv_func_socket" >&6; }
45303 if test "x$ac_cv_func_socket" = x""yes; then
45304 :
45305 else
45306
45307 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
45308 $as_echo_n "checking for socket in -lsocket... " >&6; }
45309 if test "${ac_cv_lib_socket_socket+set}" = set; then
45310 $as_echo_n "(cached) " >&6
45311 else
45312 ac_check_lib_save_LIBS=$LIBS
45313 LIBS="-lsocket $LIBS"
45314 cat >conftest.$ac_ext <<_ACEOF
45315 /* confdefs.h. */
45316 _ACEOF
45317 cat confdefs.h >>conftest.$ac_ext
45318 cat >>conftest.$ac_ext <<_ACEOF
45319 /* end confdefs.h. */
45320
45321 /* Override any GCC internal prototype to avoid an error.
45322 Use char because int might match the return type of a GCC
45323 builtin and then its argument prototype would still apply. */
45324 #ifdef __cplusplus
45325 extern "C"
45326 #endif
45327 char socket ();
45328 int
45329 main ()
45330 {
45331 return socket ();
45332 ;
45333 return 0;
45334 }
45335 _ACEOF
45336 rm -f conftest.$ac_objext conftest$ac_exeext
45337 if { (ac_try="$ac_link"
45338 case "(($ac_try" in
45339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45340 *) ac_try_echo=$ac_try;;
45341 esac
45342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45343 $as_echo "$ac_try_echo") >&5
45344 (eval "$ac_link") 2>conftest.er1
45345 ac_status=$?
45346 grep -v '^ *+' conftest.er1 >conftest.err
45347 rm -f conftest.er1
45348 cat conftest.err >&5
45349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45350 (exit $ac_status); } && {
45351 test -z "$ac_c_werror_flag" ||
45352 test ! -s conftest.err
45353 } && test -s conftest$ac_exeext && {
45354 test "$cross_compiling" = yes ||
45355 $as_test_x conftest$ac_exeext
45356 }; then
45357 ac_cv_lib_socket_socket=yes
45358 else
45359 $as_echo "$as_me: failed program was:" >&5
45360 sed 's/^/| /' conftest.$ac_ext >&5
45361
45362 ac_cv_lib_socket_socket=no
45363 fi
45364
45365 rm -rf conftest.dSYM
45366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45367 conftest$ac_exeext conftest.$ac_ext
45368 LIBS=$ac_check_lib_save_LIBS
45369 fi
45370 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
45371 $as_echo "$ac_cv_lib_socket_socket" >&6; }
45372 if test "x$ac_cv_lib_socket_socket" = x""yes; then
45373 if test "$INET_LINK" != " -lsocket"; then
45374 INET_LINK="$INET_LINK -lsocket"
45375 fi
45376 else
45377
45378 { $as_echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
45379 $as_echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
45380 wxUSE_SOCKETS=no
45381
45382
45383 fi
45384
45385
45386
45387 fi
45388
45389 fi
45390 fi
45391
45392 if test "$wxUSE_SOCKETS" = "yes" ; then
45393 if test "$TOOLKIT" != "MSW"; then
45394 { $as_echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
45395 $as_echo_n "checking what is the type of the third argument of getsockname... " >&6; }
45396 if test "${wx_cv_type_getsockname3+set}" = set; then
45397 $as_echo_n "(cached) " >&6
45398 else
45399
45400 ac_ext=cpp
45401 ac_cpp='$CXXCPP $CPPFLAGS'
45402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45405
45406 cat >conftest.$ac_ext <<_ACEOF
45407 /* confdefs.h. */
45408 _ACEOF
45409 cat confdefs.h >>conftest.$ac_ext
45410 cat >>conftest.$ac_ext <<_ACEOF
45411 /* end confdefs.h. */
45412
45413 #include <sys/types.h>
45414 #include <sys/socket.h>
45415
45416 int
45417 main ()
45418 {
45419
45420 socklen_t len;
45421 getsockname(0, 0, &len);
45422
45423 ;
45424 return 0;
45425 }
45426 _ACEOF
45427 rm -f conftest.$ac_objext
45428 if { (ac_try="$ac_compile"
45429 case "(($ac_try" in
45430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45431 *) ac_try_echo=$ac_try;;
45432 esac
45433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45434 $as_echo "$ac_try_echo") >&5
45435 (eval "$ac_compile") 2>conftest.er1
45436 ac_status=$?
45437 grep -v '^ *+' conftest.er1 >conftest.err
45438 rm -f conftest.er1
45439 cat conftest.err >&5
45440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45441 (exit $ac_status); } && {
45442 test -z "$ac_cxx_werror_flag" ||
45443 test ! -s conftest.err
45444 } && test -s conftest.$ac_objext; then
45445 wx_cv_type_getsockname3=socklen_t
45446 else
45447 $as_echo "$as_me: failed program was:" >&5
45448 sed 's/^/| /' conftest.$ac_ext >&5
45449
45450
45451 CFLAGS_OLD="$CFLAGS"
45452 if test "$GCC" = yes ; then
45453 CFLAGS="-Werror $CFLAGS"
45454 fi
45455
45456 cat >conftest.$ac_ext <<_ACEOF
45457 /* confdefs.h. */
45458 _ACEOF
45459 cat confdefs.h >>conftest.$ac_ext
45460 cat >>conftest.$ac_ext <<_ACEOF
45461 /* end confdefs.h. */
45462
45463 #include <sys/types.h>
45464 #include <sys/socket.h>
45465
45466 int
45467 main ()
45468 {
45469
45470 size_t len;
45471 getsockname(0, 0, &len);
45472
45473 ;
45474 return 0;
45475 }
45476 _ACEOF
45477 rm -f conftest.$ac_objext
45478 if { (ac_try="$ac_compile"
45479 case "(($ac_try" in
45480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45481 *) ac_try_echo=$ac_try;;
45482 esac
45483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45484 $as_echo "$ac_try_echo") >&5
45485 (eval "$ac_compile") 2>conftest.er1
45486 ac_status=$?
45487 grep -v '^ *+' conftest.er1 >conftest.err
45488 rm -f conftest.er1
45489 cat conftest.err >&5
45490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45491 (exit $ac_status); } && {
45492 test -z "$ac_cxx_werror_flag" ||
45493 test ! -s conftest.err
45494 } && test -s conftest.$ac_objext; then
45495 wx_cv_type_getsockname3=size_t
45496 else
45497 $as_echo "$as_me: failed program was:" >&5
45498 sed 's/^/| /' conftest.$ac_ext >&5
45499
45500 cat >conftest.$ac_ext <<_ACEOF
45501 /* confdefs.h. */
45502 _ACEOF
45503 cat confdefs.h >>conftest.$ac_ext
45504 cat >>conftest.$ac_ext <<_ACEOF
45505 /* end confdefs.h. */
45506
45507 #include <sys/types.h>
45508 #include <sys/socket.h>
45509
45510 int
45511 main ()
45512 {
45513
45514 int len;
45515 getsockname(0, 0, &len);
45516
45517 ;
45518 return 0;
45519 }
45520 _ACEOF
45521 rm -f conftest.$ac_objext
45522 if { (ac_try="$ac_compile"
45523 case "(($ac_try" in
45524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45525 *) ac_try_echo=$ac_try;;
45526 esac
45527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45528 $as_echo "$ac_try_echo") >&5
45529 (eval "$ac_compile") 2>conftest.er1
45530 ac_status=$?
45531 grep -v '^ *+' conftest.er1 >conftest.err
45532 rm -f conftest.er1
45533 cat conftest.err >&5
45534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45535 (exit $ac_status); } && {
45536 test -z "$ac_cxx_werror_flag" ||
45537 test ! -s conftest.err
45538 } && test -s conftest.$ac_objext; then
45539 wx_cv_type_getsockname3=int
45540 else
45541 $as_echo "$as_me: failed program was:" >&5
45542 sed 's/^/| /' conftest.$ac_ext >&5
45543
45544 wx_cv_type_getsockname3=unknown
45545
45546 fi
45547
45548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45549
45550 fi
45551
45552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45553
45554 CFLAGS="$CFLAGS_OLD"
45555
45556
45557 fi
45558
45559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45560 ac_ext=c
45561 ac_cpp='$CPP $CPPFLAGS'
45562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45565
45566
45567 fi
45568 { $as_echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
45569 $as_echo "$wx_cv_type_getsockname3" >&6; }
45570
45571 if test "$wx_cv_type_getsockname3" = "unknown"; then
45572 wxUSE_SOCKETS=no
45573 { $as_echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45574 $as_echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45575 else
45576 cat >>confdefs.h <<_ACEOF
45577 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
45578 _ACEOF
45579
45580 fi
45581 { $as_echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
45582 $as_echo_n "checking what is the type of the fifth argument of getsockopt... " >&6; }
45583 if test "${wx_cv_type_getsockopt5+set}" = set; then
45584 $as_echo_n "(cached) " >&6
45585 else
45586
45587 ac_ext=cpp
45588 ac_cpp='$CXXCPP $CPPFLAGS'
45589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45592
45593 cat >conftest.$ac_ext <<_ACEOF
45594 /* confdefs.h. */
45595 _ACEOF
45596 cat confdefs.h >>conftest.$ac_ext
45597 cat >>conftest.$ac_ext <<_ACEOF
45598 /* end confdefs.h. */
45599
45600 #include <sys/types.h>
45601 #include <sys/socket.h>
45602
45603 int
45604 main ()
45605 {
45606
45607 socklen_t len;
45608 getsockopt(0, 0, 0, 0, &len);
45609
45610 ;
45611 return 0;
45612 }
45613 _ACEOF
45614 rm -f conftest.$ac_objext
45615 if { (ac_try="$ac_compile"
45616 case "(($ac_try" in
45617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45618 *) ac_try_echo=$ac_try;;
45619 esac
45620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45621 $as_echo "$ac_try_echo") >&5
45622 (eval "$ac_compile") 2>conftest.er1
45623 ac_status=$?
45624 grep -v '^ *+' conftest.er1 >conftest.err
45625 rm -f conftest.er1
45626 cat conftest.err >&5
45627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45628 (exit $ac_status); } && {
45629 test -z "$ac_cxx_werror_flag" ||
45630 test ! -s conftest.err
45631 } && test -s conftest.$ac_objext; then
45632 wx_cv_type_getsockopt5=socklen_t
45633 else
45634 $as_echo "$as_me: failed program was:" >&5
45635 sed 's/^/| /' conftest.$ac_ext >&5
45636
45637
45638 cat >conftest.$ac_ext <<_ACEOF
45639 /* confdefs.h. */
45640 _ACEOF
45641 cat confdefs.h >>conftest.$ac_ext
45642 cat >>conftest.$ac_ext <<_ACEOF
45643 /* end confdefs.h. */
45644
45645 #include <sys/types.h>
45646 #include <sys/socket.h>
45647
45648 int
45649 main ()
45650 {
45651
45652 size_t len;
45653 getsockopt(0, 0, 0, 0, &len);
45654
45655 ;
45656 return 0;
45657 }
45658 _ACEOF
45659 rm -f conftest.$ac_objext
45660 if { (ac_try="$ac_compile"
45661 case "(($ac_try" in
45662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45663 *) ac_try_echo=$ac_try;;
45664 esac
45665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45666 $as_echo "$ac_try_echo") >&5
45667 (eval "$ac_compile") 2>conftest.er1
45668 ac_status=$?
45669 grep -v '^ *+' conftest.er1 >conftest.err
45670 rm -f conftest.er1
45671 cat conftest.err >&5
45672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45673 (exit $ac_status); } && {
45674 test -z "$ac_cxx_werror_flag" ||
45675 test ! -s conftest.err
45676 } && test -s conftest.$ac_objext; then
45677 wx_cv_type_getsockopt5=size_t
45678 else
45679 $as_echo "$as_me: failed program was:" >&5
45680 sed 's/^/| /' conftest.$ac_ext >&5
45681
45682 cat >conftest.$ac_ext <<_ACEOF
45683 /* confdefs.h. */
45684 _ACEOF
45685 cat confdefs.h >>conftest.$ac_ext
45686 cat >>conftest.$ac_ext <<_ACEOF
45687 /* end confdefs.h. */
45688
45689 #include <sys/types.h>
45690 #include <sys/socket.h>
45691
45692 int
45693 main ()
45694 {
45695
45696 int len;
45697 getsockopt(0, 0, 0, 0, &len);
45698
45699 ;
45700 return 0;
45701 }
45702 _ACEOF
45703 rm -f conftest.$ac_objext
45704 if { (ac_try="$ac_compile"
45705 case "(($ac_try" in
45706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45707 *) ac_try_echo=$ac_try;;
45708 esac
45709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45710 $as_echo "$ac_try_echo") >&5
45711 (eval "$ac_compile") 2>conftest.er1
45712 ac_status=$?
45713 grep -v '^ *+' conftest.er1 >conftest.err
45714 rm -f conftest.er1
45715 cat conftest.err >&5
45716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45717 (exit $ac_status); } && {
45718 test -z "$ac_cxx_werror_flag" ||
45719 test ! -s conftest.err
45720 } && test -s conftest.$ac_objext; then
45721 wx_cv_type_getsockopt5=int
45722 else
45723 $as_echo "$as_me: failed program was:" >&5
45724 sed 's/^/| /' conftest.$ac_ext >&5
45725
45726 wx_cv_type_getsockopt5=unknown
45727
45728 fi
45729
45730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45731
45732 fi
45733
45734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45735
45736
45737 fi
45738
45739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45740 ac_ext=c
45741 ac_cpp='$CPP $CPPFLAGS'
45742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45745
45746
45747 fi
45748 { $as_echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
45749 $as_echo "$wx_cv_type_getsockopt5" >&6; }
45750
45751 if test "$wx_cv_type_getsockopt5" = "unknown"; then
45752 wxUSE_SOCKETS=no
45753 { $as_echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45754 $as_echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45755 else
45756 cat >>confdefs.h <<_ACEOF
45757 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
45758 _ACEOF
45759
45760 fi
45761 fi
45762 fi
45763
45764 if test "$wxUSE_SOCKETS" = "yes" ; then
45765 if test "$wxUSE_IPV6" = "yes"; then
45766 { $as_echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
45767 $as_echo_n "checking whether we have sockaddr_in6... " >&6; }
45768 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
45769 $as_echo_n "(cached) " >&6
45770 else
45771
45772 cat >conftest.$ac_ext <<_ACEOF
45773 /* confdefs.h. */
45774 _ACEOF
45775 cat confdefs.h >>conftest.$ac_ext
45776 cat >>conftest.$ac_ext <<_ACEOF
45777 /* end confdefs.h. */
45778
45779 #include <sys/types.h>
45780 #include <sys/socket.h>
45781 #include <netinet/in.h>
45782
45783 int
45784 main ()
45785 {
45786
45787 struct sockaddr_in6 sa6;
45788
45789 ;
45790 return 0;
45791 }
45792 _ACEOF
45793 rm -f conftest.$ac_objext
45794 if { (ac_try="$ac_compile"
45795 case "(($ac_try" in
45796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45797 *) ac_try_echo=$ac_try;;
45798 esac
45799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45800 $as_echo "$ac_try_echo") >&5
45801 (eval "$ac_compile") 2>conftest.er1
45802 ac_status=$?
45803 grep -v '^ *+' conftest.er1 >conftest.err
45804 rm -f conftest.er1
45805 cat conftest.err >&5
45806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45807 (exit $ac_status); } && {
45808 test -z "$ac_c_werror_flag" ||
45809 test ! -s conftest.err
45810 } && test -s conftest.$ac_objext; then
45811 wx_cv_type_sockaddr_in6=yes
45812 else
45813 $as_echo "$as_me: failed program was:" >&5
45814 sed 's/^/| /' conftest.$ac_ext >&5
45815
45816 wx_cv_type_sockaddr_in6=no
45817
45818 fi
45819
45820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45821
45822
45823 fi
45824 { $as_echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
45825 $as_echo "$wx_cv_type_sockaddr_in6" >&6; }
45826
45827 if test "$wx_cv_type_sockaddr_in6"="yes"; then
45828 cat >>confdefs.h <<\_ACEOF
45829 #define wxUSE_IPV6 1
45830 _ACEOF
45831
45832 else
45833 { $as_echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
45834 $as_echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
45835 fi
45836 fi
45837
45838 cat >>confdefs.h <<\_ACEOF
45839 #define wxUSE_SOCKETS 1
45840 _ACEOF
45841
45842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
45843 fi
45844
45845 if test "$wxUSE_PROTOCOL" = "yes"; then
45846 if test "$wxUSE_SOCKETS" != "yes"; then
45847 { $as_echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
45848 $as_echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
45849 wxUSE_PROTOCOL=no
45850 fi
45851 fi
45852
45853 if test "$wxUSE_PROTOCOL" = "yes"; then
45854 cat >>confdefs.h <<\_ACEOF
45855 #define wxUSE_PROTOCOL 1
45856 _ACEOF
45857
45858
45859 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
45860 cat >>confdefs.h <<\_ACEOF
45861 #define wxUSE_PROTOCOL_HTTP 1
45862 _ACEOF
45863
45864 fi
45865 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45866 cat >>confdefs.h <<\_ACEOF
45867 #define wxUSE_PROTOCOL_FTP 1
45868 _ACEOF
45869
45870 fi
45871 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45872 cat >>confdefs.h <<\_ACEOF
45873 #define wxUSE_PROTOCOL_FILE 1
45874 _ACEOF
45875
45876 fi
45877 else
45878 if test "$wxUSE_FS_INET" = "yes"; then
45879 { $as_echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45880 $as_echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
45881 wxUSE_FS_INET="no"
45882 fi
45883 fi
45884
45885 if test "$wxUSE_URL" = "yes"; then
45886 if test "$wxUSE_PROTOCOL" != "yes"; then
45887 { $as_echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45888 $as_echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
45889 wxUSE_URL=no
45890 fi
45891 if test "$wxUSE_URL" = "yes"; then
45892 cat >>confdefs.h <<\_ACEOF
45893 #define wxUSE_URL 1
45894 _ACEOF
45895
45896 fi
45897 fi
45898
45899 if test "$wxUSE_VARIANT" = "yes"; then
45900 cat >>confdefs.h <<\_ACEOF
45901 #define wxUSE_VARIANT 1
45902 _ACEOF
45903
45904 fi
45905
45906 if test "$wxUSE_FS_INET" = "yes"; then
45907 cat >>confdefs.h <<\_ACEOF
45908 #define wxUSE_FS_INET 1
45909 _ACEOF
45910
45911 fi
45912
45913
45914 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45915 wxUSE_JOYSTICK=no
45916
45917 if test "$TOOLKIT" = "MSW"; then
45918 wxUSE_JOYSTICK=yes
45919
45920 elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
45921 if test "$USE_DARWIN" = 1; then
45922 { $as_echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45923 $as_echo_n "checking headers have declarations needed for joystick support... " >&6; }
45924 ac_ext=cpp
45925 ac_cpp='$CXXCPP $CPPFLAGS'
45926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45929
45930 cat >conftest.$ac_ext <<_ACEOF
45931 /* confdefs.h. */
45932 _ACEOF
45933 cat confdefs.h >>conftest.$ac_ext
45934 cat >>conftest.$ac_ext <<_ACEOF
45935 /* end confdefs.h. */
45936 #include <IOKit/hid/IOHIDLib.h>
45937 int
45938 main ()
45939 {
45940 IOHIDQueueInterface *qi = NULL;
45941 IOHIDCallbackFunction cb = NULL;
45942 qi->setEventCallout(NULL, cb, NULL, NULL);
45943 ;
45944 return 0;
45945 }
45946 _ACEOF
45947 rm -f conftest.$ac_objext
45948 if { (ac_try="$ac_compile"
45949 case "(($ac_try" in
45950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45951 *) ac_try_echo=$ac_try;;
45952 esac
45953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45954 $as_echo "$ac_try_echo") >&5
45955 (eval "$ac_compile") 2>conftest.er1
45956 ac_status=$?
45957 grep -v '^ *+' conftest.er1 >conftest.err
45958 rm -f conftest.er1
45959 cat conftest.err >&5
45960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45961 (exit $ac_status); } && {
45962 test -z "$ac_cxx_werror_flag" ||
45963 test ! -s conftest.err
45964 } && test -s conftest.$ac_objext; then
45965 wxUSE_JOYSTICK=yes
45966
45967 else
45968 $as_echo "$as_me: failed program was:" >&5
45969 sed 's/^/| /' conftest.$ac_ext >&5
45970
45971
45972 fi
45973
45974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45975 ac_ext=c
45976 ac_cpp='$CPP $CPPFLAGS'
45977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45980
45981 { $as_echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45982 $as_echo "$wxUSE_JOYSTICK" >&6; }
45983 fi
45984
45985 else
45986 if test "$wxUSE_MGL" != 1; then
45987
45988 for ac_header in linux/joystick.h
45989 do
45990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
45991 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45992 $as_echo_n "checking for $ac_header... " >&6; }
45993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45994 $as_echo_n "(cached) " >&6
45995 else
45996 cat >conftest.$ac_ext <<_ACEOF
45997 /* confdefs.h. */
45998 _ACEOF
45999 cat confdefs.h >>conftest.$ac_ext
46000 cat >>conftest.$ac_ext <<_ACEOF
46001 /* end confdefs.h. */
46002 $ac_includes_default
46003
46004 #include <$ac_header>
46005 _ACEOF
46006 rm -f conftest.$ac_objext
46007 if { (ac_try="$ac_compile"
46008 case "(($ac_try" in
46009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46010 *) ac_try_echo=$ac_try;;
46011 esac
46012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46013 $as_echo "$ac_try_echo") >&5
46014 (eval "$ac_compile") 2>conftest.er1
46015 ac_status=$?
46016 grep -v '^ *+' conftest.er1 >conftest.err
46017 rm -f conftest.er1
46018 cat conftest.err >&5
46019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46020 (exit $ac_status); } && {
46021 test -z "$ac_c_werror_flag" ||
46022 test ! -s conftest.err
46023 } && test -s conftest.$ac_objext; then
46024 eval "$as_ac_Header=yes"
46025 else
46026 $as_echo "$as_me: failed program was:" >&5
46027 sed 's/^/| /' conftest.$ac_ext >&5
46028
46029 eval "$as_ac_Header=no"
46030 fi
46031
46032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46033 fi
46034 ac_res=`eval 'as_val=${'$as_ac_Header'}
46035 $as_echo "$as_val"'`
46036 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46037 $as_echo "$ac_res" >&6; }
46038 as_val=`eval 'as_val=${'$as_ac_Header'}
46039 $as_echo "$as_val"'`
46040 if test "x$as_val" = x""yes; then
46041 cat >>confdefs.h <<_ACEOF
46042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46043 _ACEOF
46044 wxUSE_JOYSTICK=yes
46045 fi
46046
46047 done
46048
46049 fi
46050 fi
46051
46052 if test "$wxUSE_JOYSTICK" = "yes"; then
46053 cat >>confdefs.h <<\_ACEOF
46054 #define wxUSE_JOYSTICK 1
46055 _ACEOF
46056
46057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
46058 else
46059 { $as_echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
46060 $as_echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
46061 fi
46062 fi
46063
46064
46065
46066 if test "$wxUSE_FONTENUM" = "yes" ; then
46067 cat >>confdefs.h <<\_ACEOF
46068 #define wxUSE_FONTENUM 1
46069 _ACEOF
46070
46071 fi
46072
46073 if test "$wxUSE_FONTMAP" = "yes" ; then
46074 cat >>confdefs.h <<\_ACEOF
46075 #define wxUSE_FONTMAP 1
46076 _ACEOF
46077
46078 fi
46079
46080 if test "$wxUSE_UNICODE" = "yes" ; then
46081 cat >>confdefs.h <<\_ACEOF
46082 #define wxUSE_UNICODE 1
46083 _ACEOF
46084
46085
46086 if test "$USE_WIN32" != 1; then
46087 wxUSE_UNICODE_MSLU=no
46088 fi
46089
46090 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
46091 { $as_echo "$as_me:$LINENO: checking for main in -lunicows" >&5
46092 $as_echo_n "checking for main in -lunicows... " >&6; }
46093 if test "${ac_cv_lib_unicows_main+set}" = set; then
46094 $as_echo_n "(cached) " >&6
46095 else
46096 ac_check_lib_save_LIBS=$LIBS
46097 LIBS="-lunicows $LIBS"
46098 cat >conftest.$ac_ext <<_ACEOF
46099 /* confdefs.h. */
46100 _ACEOF
46101 cat confdefs.h >>conftest.$ac_ext
46102 cat >>conftest.$ac_ext <<_ACEOF
46103 /* end confdefs.h. */
46104
46105
46106 int
46107 main ()
46108 {
46109 return main ();
46110 ;
46111 return 0;
46112 }
46113 _ACEOF
46114 rm -f conftest.$ac_objext conftest$ac_exeext
46115 if { (ac_try="$ac_link"
46116 case "(($ac_try" in
46117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46118 *) ac_try_echo=$ac_try;;
46119 esac
46120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46121 $as_echo "$ac_try_echo") >&5
46122 (eval "$ac_link") 2>conftest.er1
46123 ac_status=$?
46124 grep -v '^ *+' conftest.er1 >conftest.err
46125 rm -f conftest.er1
46126 cat conftest.err >&5
46127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46128 (exit $ac_status); } && {
46129 test -z "$ac_c_werror_flag" ||
46130 test ! -s conftest.err
46131 } && test -s conftest$ac_exeext && {
46132 test "$cross_compiling" = yes ||
46133 $as_test_x conftest$ac_exeext
46134 }; then
46135 ac_cv_lib_unicows_main=yes
46136 else
46137 $as_echo "$as_me: failed program was:" >&5
46138 sed 's/^/| /' conftest.$ac_ext >&5
46139
46140 ac_cv_lib_unicows_main=no
46141 fi
46142
46143 rm -rf conftest.dSYM
46144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46145 conftest$ac_exeext conftest.$ac_ext
46146 LIBS=$ac_check_lib_save_LIBS
46147 fi
46148 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
46149 $as_echo "$ac_cv_lib_unicows_main" >&6; }
46150 if test "x$ac_cv_lib_unicows_main" = x""yes; then
46151
46152 cat >>confdefs.h <<\_ACEOF
46153 #define wxUSE_UNICODE_MSLU 1
46154 _ACEOF
46155
46156
46157 else
46158
46159 { $as_echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46160 Applications will only run on Windows NT/2000/XP!" >&5
46161 $as_echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46162 Applications will only run on Windows NT/2000/XP!" >&2;}
46163 wxUSE_UNICODE_MSLU=no
46164
46165 fi
46166
46167 fi
46168 fi
46169
46170 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
46171 cat >>confdefs.h <<\_ACEOF
46172 #define wxUSE_UNICODE_UTF8 1
46173 _ACEOF
46174
46175
46176 if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
46177 cat >>confdefs.h <<\_ACEOF
46178 #define wxUSE_UTF8_LOCALE_ONLY 1
46179 _ACEOF
46180
46181 fi
46182 fi
46183
46184
46185 if test "$wxUSE_CONSTRAINTS" = "yes"; then
46186 cat >>confdefs.h <<\_ACEOF
46187 #define wxUSE_CONSTRAINTS 1
46188 _ACEOF
46189
46190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
46191 fi
46192
46193 if test "$wxUSE_MDI" = "yes"; then
46194 cat >>confdefs.h <<\_ACEOF
46195 #define wxUSE_MDI 1
46196 _ACEOF
46197
46198
46199 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
46200 cat >>confdefs.h <<\_ACEOF
46201 #define wxUSE_MDI_ARCHITECTURE 1
46202 _ACEOF
46203
46204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
46205 fi
46206 fi
46207
46208 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
46209 cat >>confdefs.h <<\_ACEOF
46210 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
46211 _ACEOF
46212
46213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
46214 fi
46215
46216 if test "$wxUSE_HELP" = "yes"; then
46217 cat >>confdefs.h <<\_ACEOF
46218 #define wxUSE_HELP 1
46219 _ACEOF
46220
46221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
46222
46223 if test "$wxUSE_MSW" = 1; then
46224 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
46225 cat >>confdefs.h <<\_ACEOF
46226 #define wxUSE_MS_HTML_HELP 1
46227 _ACEOF
46228
46229 fi
46230 fi
46231
46232 if test "$wxUSE_WXHTML_HELP" = "yes"; then
46233 if test "$wxUSE_HTML" = "yes"; then
46234 cat >>confdefs.h <<\_ACEOF
46235 #define wxUSE_WXHTML_HELP 1
46236 _ACEOF
46237
46238 else
46239 { $as_echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
46240 $as_echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
46241 wxUSE_WXHTML_HELP=no
46242 fi
46243 fi
46244 fi
46245
46246 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
46247 cat >>confdefs.h <<\_ACEOF
46248 #define wxUSE_PRINTING_ARCHITECTURE 1
46249 _ACEOF
46250
46251 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
46252 fi
46253
46254 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
46255 cat >>confdefs.h <<\_ACEOF
46256 #define wxUSE_POSTSCRIPT 1
46257 _ACEOF
46258
46259 fi
46260
46261 cat >>confdefs.h <<\_ACEOF
46262 #define wxUSE_AFM_FOR_POSTSCRIPT 1
46263 _ACEOF
46264
46265
46266 if test "$wxUSE_SVG" = "yes"; then
46267 cat >>confdefs.h <<\_ACEOF
46268 #define wxUSE_SVG 1
46269 _ACEOF
46270
46271 fi
46272
46273
46274 if test "$wxUSE_METAFILE" = "yes"; then
46275 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
46276 { $as_echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
46277 $as_echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
46278 wxUSE_METAFILE=no
46279 fi
46280 fi
46281
46282
46283 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
46284 -o "$wxUSE_CLIPBOARD" = "yes" \
46285 -o "$wxUSE_OLE" = "yes" \
46286 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
46287 { $as_echo "$as_me:$LINENO: checking for ole2.h" >&5
46288 $as_echo_n "checking for ole2.h... " >&6; }
46289 if test "${ac_cv_header_ole2_h+set}" = set; then
46290 $as_echo_n "(cached) " >&6
46291 else
46292 cat >conftest.$ac_ext <<_ACEOF
46293 /* confdefs.h. */
46294 _ACEOF
46295 cat confdefs.h >>conftest.$ac_ext
46296 cat >>conftest.$ac_ext <<_ACEOF
46297 /* end confdefs.h. */
46298
46299
46300 #include <ole2.h>
46301 _ACEOF
46302 rm -f conftest.$ac_objext
46303 if { (ac_try="$ac_compile"
46304 case "(($ac_try" in
46305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46306 *) ac_try_echo=$ac_try;;
46307 esac
46308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46309 $as_echo "$ac_try_echo") >&5
46310 (eval "$ac_compile") 2>conftest.er1
46311 ac_status=$?
46312 grep -v '^ *+' conftest.er1 >conftest.err
46313 rm -f conftest.er1
46314 cat conftest.err >&5
46315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46316 (exit $ac_status); } && {
46317 test -z "$ac_c_werror_flag" ||
46318 test ! -s conftest.err
46319 } && test -s conftest.$ac_objext; then
46320 ac_cv_header_ole2_h=yes
46321 else
46322 $as_echo "$as_me: failed program was:" >&5
46323 sed 's/^/| /' conftest.$ac_ext >&5
46324
46325 ac_cv_header_ole2_h=no
46326 fi
46327
46328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46329 fi
46330 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
46331 $as_echo "$ac_cv_header_ole2_h" >&6; }
46332
46333
46334
46335 if test "$ac_cv_header_ole2_h" = "yes" ; then
46336 if test "$GCC" = yes ; then
46337 { $as_echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
46338 $as_echo_n "checking if g++ requires -fvtable-thunks... " >&6; }
46339 cat >conftest.$ac_ext <<_ACEOF
46340 /* confdefs.h. */
46341 _ACEOF
46342 cat confdefs.h >>conftest.$ac_ext
46343 cat >>conftest.$ac_ext <<_ACEOF
46344 /* end confdefs.h. */
46345 #include <windows.h>
46346 #include <ole2.h>
46347 int
46348 main ()
46349 {
46350
46351 ;
46352 return 0;
46353 }
46354 _ACEOF
46355 rm -f conftest.$ac_objext
46356 if { (ac_try="$ac_compile"
46357 case "(($ac_try" in
46358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46359 *) ac_try_echo=$ac_try;;
46360 esac
46361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46362 $as_echo "$ac_try_echo") >&5
46363 (eval "$ac_compile") 2>conftest.er1
46364 ac_status=$?
46365 grep -v '^ *+' conftest.er1 >conftest.err
46366 rm -f conftest.er1
46367 cat conftest.err >&5
46368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46369 (exit $ac_status); } && {
46370 test -z "$ac_c_werror_flag" ||
46371 test ! -s conftest.err
46372 } && test -s conftest.$ac_objext; then
46373 { $as_echo "$as_me:$LINENO: result: no" >&5
46374 $as_echo "no" >&6; }
46375 else
46376 $as_echo "$as_me: failed program was:" >&5
46377 sed 's/^/| /' conftest.$ac_ext >&5
46378
46379 { $as_echo "$as_me:$LINENO: result: yes" >&5
46380 $as_echo "yes" >&6; }
46381 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
46382 fi
46383
46384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46385 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
46386 if test "$wxUSE_OLE" = "yes" ; then
46387 cat >>confdefs.h <<\_ACEOF
46388 #define wxUSE_OLE 1
46389 _ACEOF
46390
46391 cat >>confdefs.h <<\_ACEOF
46392 #define wxUSE_OLE_AUTOMATION 1
46393 _ACEOF
46394
46395 cat >>confdefs.h <<\_ACEOF
46396 #define wxUSE_ACTIVEX 1
46397 _ACEOF
46398
46399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
46400 fi
46401 fi
46402
46403 if test "$wxUSE_DATAOBJ" = "yes" ; then
46404 cat >>confdefs.h <<\_ACEOF
46405 #define wxUSE_DATAOBJ 1
46406 _ACEOF
46407
46408 fi
46409 else
46410 { $as_echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
46411 $as_echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
46412
46413 wxUSE_CLIPBOARD=no
46414 wxUSE_DRAG_AND_DROP=no
46415 wxUSE_DATAOBJ=no
46416 wxUSE_OLE=no
46417 fi
46418
46419 if test "$wxUSE_METAFILE" = "yes"; then
46420 cat >>confdefs.h <<\_ACEOF
46421 #define wxUSE_METAFILE 1
46422 _ACEOF
46423
46424
46425 cat >>confdefs.h <<\_ACEOF
46426 #define wxUSE_ENH_METAFILE 1
46427 _ACEOF
46428
46429 fi
46430 fi
46431
46432 if test "$wxUSE_IPC" = "yes"; then
46433 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
46434 { $as_echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
46435 $as_echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
46436 wxUSE_IPC=no
46437 fi
46438
46439 if test "$wxUSE_IPC" = "yes"; then
46440 cat >>confdefs.h <<\_ACEOF
46441 #define wxUSE_IPC 1
46442 _ACEOF
46443
46444 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46445 fi
46446 fi
46447
46448 if test "$wxUSE_DATAOBJ" = "yes"; then
46449 if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
46450 { $as_echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
46451 $as_echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
46452 wxUSE_DATAOBJ=no
46453 else
46454 cat >>confdefs.h <<\_ACEOF
46455 #define wxUSE_DATAOBJ 1
46456 _ACEOF
46457
46458 fi
46459 else
46460 { $as_echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
46461 $as_echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
46462 wxUSE_CLIPBOARD=no
46463 wxUSE_DRAG_AND_DROP=no
46464 fi
46465
46466 if test "$wxUSE_CLIPBOARD" = "yes"; then
46467 if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
46468 { $as_echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
46469 $as_echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
46470 wxUSE_CLIPBOARD=no
46471 fi
46472
46473 if test "$wxUSE_CLIPBOARD" = "yes"; then
46474 cat >>confdefs.h <<\_ACEOF
46475 #define wxUSE_CLIPBOARD 1
46476 _ACEOF
46477
46478 fi
46479 fi
46480
46481 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
46482 if test "$wxUSE_GTK" = 1; then
46483 if test "$WXGTK12" != 1; then
46484 { $as_echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
46485 $as_echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
46486 wxUSE_DRAG_AND_DROP=no
46487 fi
46488 fi
46489
46490 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
46491 "$wxUSE_DFB" = 1; then
46492 { $as_echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
46493 $as_echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
46494 wxUSE_DRAG_AND_DROP=no
46495 fi
46496
46497 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
46498 cat >>confdefs.h <<\_ACEOF
46499 #define wxUSE_DRAG_AND_DROP 1
46500 _ACEOF
46501
46502 fi
46503
46504 fi
46505
46506 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
46507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
46508 fi
46509
46510 if test "$wxUSE_CLIPBOARD" = "yes"; then
46511 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
46512 fi
46513
46514 if test "$wxUSE_SPLINES" = "yes" ; then
46515 cat >>confdefs.h <<\_ACEOF
46516 #define wxUSE_SPLINES 1
46517 _ACEOF
46518
46519 fi
46520
46521 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
46522 cat >>confdefs.h <<\_ACEOF
46523 #define wxUSE_MOUSEWHEEL 1
46524 _ACEOF
46525
46526 fi
46527
46528
46529 USES_CONTROLS=0
46530 if test "$wxUSE_CONTROLS" = "yes"; then
46531 USES_CONTROLS=1
46532 fi
46533
46534 if test "$wxUSE_ACCEL" = "yes"; then
46535 cat >>confdefs.h <<\_ACEOF
46536 #define wxUSE_ACCEL 1
46537 _ACEOF
46538
46539 USES_CONTROLS=1
46540 fi
46541
46542 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
46543 cat >>confdefs.h <<\_ACEOF
46544 #define wxUSE_ANIMATIONCTRL 1
46545 _ACEOF
46546
46547 USES_CONTROLS=1
46548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
46549 fi
46550
46551 if test "$wxUSE_BUTTON" = "yes"; then
46552 cat >>confdefs.h <<\_ACEOF
46553 #define wxUSE_BUTTON 1
46554 _ACEOF
46555
46556 USES_CONTROLS=1
46557 fi
46558
46559 if test "$wxUSE_BMPBUTTON" = "yes"; then
46560 cat >>confdefs.h <<\_ACEOF
46561 #define wxUSE_BMPBUTTON 1
46562 _ACEOF
46563
46564 USES_CONTROLS=1
46565 fi
46566
46567 if test "$wxUSE_CALCTRL" = "yes"; then
46568 cat >>confdefs.h <<\_ACEOF
46569 #define wxUSE_CALENDARCTRL 1
46570 _ACEOF
46571
46572 USES_CONTROLS=1
46573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
46574 fi
46575
46576 if test "$wxUSE_CARET" = "yes"; then
46577 cat >>confdefs.h <<\_ACEOF
46578 #define wxUSE_CARET 1
46579 _ACEOF
46580
46581 USES_CONTROLS=1
46582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
46583 fi
46584
46585 if test "$wxUSE_COLLPANE" = "yes"; then
46586 cat >>confdefs.h <<\_ACEOF
46587 #define wxUSE_COLLPANE 1
46588 _ACEOF
46589
46590 USES_CONTROLS=1
46591 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
46592 fi
46593
46594 if test "$wxUSE_COMBOBOX" = "yes"; then
46595 cat >>confdefs.h <<\_ACEOF
46596 #define wxUSE_COMBOBOX 1
46597 _ACEOF
46598
46599 USES_CONTROLS=1
46600 fi
46601
46602 if test "$wxUSE_COMBOCTRL" = "yes"; then
46603 cat >>confdefs.h <<\_ACEOF
46604 #define wxUSE_COMBOCTRL 1
46605 _ACEOF
46606
46607 USES_CONTROLS=1
46608 fi
46609
46610 if test "$wxUSE_CHOICE" = "yes"; then
46611 cat >>confdefs.h <<\_ACEOF
46612 #define wxUSE_CHOICE 1
46613 _ACEOF
46614
46615 USES_CONTROLS=1
46616 fi
46617
46618 if test "$wxUSE_CHOICEBOOK" = "yes"; then
46619 cat >>confdefs.h <<\_ACEOF
46620 #define wxUSE_CHOICEBOOK 1
46621 _ACEOF
46622
46623 USES_CONTROLS=1
46624 fi
46625
46626 if test "$wxUSE_CHECKBOX" = "yes"; then
46627 cat >>confdefs.h <<\_ACEOF
46628 #define wxUSE_CHECKBOX 1
46629 _ACEOF
46630
46631 USES_CONTROLS=1
46632 fi
46633
46634 if test "$wxUSE_CHECKLST" = "yes"; then
46635 cat >>confdefs.h <<\_ACEOF
46636 #define wxUSE_CHECKLISTBOX 1
46637 _ACEOF
46638
46639 USES_CONTROLS=1
46640 fi
46641
46642 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
46643 cat >>confdefs.h <<\_ACEOF
46644 #define wxUSE_COLOURPICKERCTRL 1
46645 _ACEOF
46646
46647 USES_CONTROLS=1
46648 fi
46649
46650 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
46651 cat >>confdefs.h <<\_ACEOF
46652 #define wxUSE_DATEPICKCTRL 1
46653 _ACEOF
46654
46655 USES_CONTROLS=1
46656 fi
46657
46658 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
46659 cat >>confdefs.h <<\_ACEOF
46660 #define wxUSE_DIRPICKERCTRL 1
46661 _ACEOF
46662
46663 USES_CONTROLS=1
46664 fi
46665
46666 if test "$wxUSE_FILECTRL" = "yes"; then
46667 cat >>confdefs.h <<\_ACEOF
46668 #define wxUSE_FILECTRL 1
46669 _ACEOF
46670
46671 USES_CONTROLS=1
46672 fi
46673
46674 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
46675 cat >>confdefs.h <<\_ACEOF
46676 #define wxUSE_FILEPICKERCTRL 1
46677 _ACEOF
46678
46679 USES_CONTROLS=1
46680 fi
46681
46682 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
46683 cat >>confdefs.h <<\_ACEOF
46684 #define wxUSE_FONTPICKERCTRL 1
46685 _ACEOF
46686
46687 USES_CONTROLS=1
46688 fi
46689
46690 if test "$wxUSE_DISPLAY" = "yes"; then
46691 if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
46692 { $as_echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
46693 $as_echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
46694 wxUSE_DISPLAY=no
46695 else
46696 cat >>confdefs.h <<\_ACEOF
46697 #define wxUSE_DISPLAY 1
46698 _ACEOF
46699
46700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
46701 fi
46702 fi
46703
46704 if test "$wxUSE_DETECT_SM" = "yes"; then
46705 cat >>confdefs.h <<\_ACEOF
46706 #define wxUSE_DETECT_SM 1
46707 _ACEOF
46708
46709 fi
46710
46711 if test "$wxUSE_GAUGE" = "yes"; then
46712 cat >>confdefs.h <<\_ACEOF
46713 #define wxUSE_GAUGE 1
46714 _ACEOF
46715
46716 USES_CONTROLS=1
46717 fi
46718
46719 if test "$wxUSE_GRID" = "yes"; then
46720 cat >>confdefs.h <<\_ACEOF
46721 #define wxUSE_GRID 1
46722 _ACEOF
46723
46724 USES_CONTROLS=1
46725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
46726 fi
46727
46728 if test "$wxUSE_HEADERCTRL" = "yes"; then
46729 cat >>confdefs.h <<\_ACEOF
46730 #define wxUSE_HEADERCTRL 1
46731 _ACEOF
46732
46733 USES_CONTROLS=1
46734 fi
46735
46736 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
46737 cat >>confdefs.h <<\_ACEOF
46738 #define wxUSE_HYPERLINKCTRL 1
46739 _ACEOF
46740
46741 USES_CONTROLS=1
46742 fi
46743
46744 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
46745 cat >>confdefs.h <<\_ACEOF
46746 #define wxUSE_BITMAPCOMBOBOX 1
46747 _ACEOF
46748
46749 USES_CONTROLS=1
46750 fi
46751
46752 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
46753 cat >>confdefs.h <<\_ACEOF
46754 #define wxUSE_DATAVIEWCTRL 1
46755 _ACEOF
46756
46757 USES_CONTROLS=1
46758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
46759 fi
46760
46761 if test "$wxUSE_IMAGLIST" = "yes"; then
46762 cat >>confdefs.h <<\_ACEOF
46763 #define wxUSE_IMAGLIST 1
46764 _ACEOF
46765
46766 fi
46767
46768 if test "$wxUSE_LISTBOOK" = "yes"; then
46769 cat >>confdefs.h <<\_ACEOF
46770 #define wxUSE_LISTBOOK 1
46771 _ACEOF
46772
46773 USES_CONTROLS=1
46774 fi
46775
46776 if test "$wxUSE_LISTBOX" = "yes"; then
46777 cat >>confdefs.h <<\_ACEOF
46778 #define wxUSE_LISTBOX 1
46779 _ACEOF
46780
46781 USES_CONTROLS=1
46782 fi
46783
46784 if test "$wxUSE_LISTCTRL" = "yes"; then
46785 if test "$wxUSE_IMAGLIST" = "yes"; then
46786 cat >>confdefs.h <<\_ACEOF
46787 #define wxUSE_LISTCTRL 1
46788 _ACEOF
46789
46790 USES_CONTROLS=1
46791 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
46792 else
46793 { $as_echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
46794 $as_echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
46795 fi
46796 fi
46797
46798 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
46799 cat >>confdefs.h <<\_ACEOF
46800 #define wxUSE_EDITABLELISTBOX 1
46801 _ACEOF
46802
46803 USES_CONTROLS=1
46804 fi
46805
46806 if test "$wxUSE_NOTEBOOK" = "yes"; then
46807 cat >>confdefs.h <<\_ACEOF
46808 #define wxUSE_NOTEBOOK 1
46809 _ACEOF
46810
46811 USES_CONTROLS=1
46812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
46813 fi
46814
46815 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
46816 cat >>confdefs.h <<\_ACEOF
46817 #define wxUSE_NOTIFICATION_MESSAGE 1
46818 _ACEOF
46819
46820 fi
46821
46822 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
46823 cat >>confdefs.h <<\_ACEOF
46824 #define wxUSE_ODCOMBOBOX 1
46825 _ACEOF
46826
46827 USES_CONTROLS=1
46828 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
46829 fi
46830
46831 if test "$wxUSE_RADIOBOX" = "yes"; then
46832 cat >>confdefs.h <<\_ACEOF
46833 #define wxUSE_RADIOBOX 1
46834 _ACEOF
46835
46836 USES_CONTROLS=1
46837 fi
46838
46839 if test "$wxUSE_RADIOBTN" = "yes"; then
46840 cat >>confdefs.h <<\_ACEOF
46841 #define wxUSE_RADIOBTN 1
46842 _ACEOF
46843
46844 USES_CONTROLS=1
46845 fi
46846
46847 if test "$wxUSE_REARRANGECTRL" = "yes"; then
46848 cat >>confdefs.h <<\_ACEOF
46849 #define wxUSE_REARRANGECTRL 1
46850 _ACEOF
46851
46852 fi
46853
46854 if test "$wxUSE_SASH" = "yes"; then
46855 cat >>confdefs.h <<\_ACEOF
46856 #define wxUSE_SASH 1
46857 _ACEOF
46858
46859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46860 fi
46861
46862 if test "$wxUSE_SCROLLBAR" = "yes"; then
46863 cat >>confdefs.h <<\_ACEOF
46864 #define wxUSE_SCROLLBAR 1
46865 _ACEOF
46866
46867 USES_CONTROLS=1
46868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
46869 fi
46870
46871 if test "$wxUSE_SEARCHCTRL" = "yes"; then
46872 cat >>confdefs.h <<\_ACEOF
46873 #define wxUSE_SEARCHCTRL 1
46874 _ACEOF
46875
46876 USES_CONTROLS=1
46877 fi
46878
46879 if test "$wxUSE_SLIDER" = "yes"; then
46880 cat >>confdefs.h <<\_ACEOF
46881 #define wxUSE_SLIDER 1
46882 _ACEOF
46883
46884 USES_CONTROLS=1
46885 fi
46886
46887 if test "$wxUSE_SPINBTN" = "yes"; then
46888 cat >>confdefs.h <<\_ACEOF
46889 #define wxUSE_SPINBTN 1
46890 _ACEOF
46891
46892 USES_CONTROLS=1
46893 fi
46894
46895 if test "$wxUSE_SPINCTRL" = "yes"; then
46896 cat >>confdefs.h <<\_ACEOF
46897 #define wxUSE_SPINCTRL 1
46898 _ACEOF
46899
46900 USES_CONTROLS=1
46901 fi
46902
46903 if test "$wxUSE_SPLITTER" = "yes"; then
46904 cat >>confdefs.h <<\_ACEOF
46905 #define wxUSE_SPLITTER 1
46906 _ACEOF
46907
46908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46909 fi
46910
46911 if test "$wxUSE_STATBMP" = "yes"; then
46912 cat >>confdefs.h <<\_ACEOF
46913 #define wxUSE_STATBMP 1
46914 _ACEOF
46915
46916 USES_CONTROLS=1
46917 fi
46918
46919 if test "$wxUSE_STATBOX" = "yes"; then
46920 cat >>confdefs.h <<\_ACEOF
46921 #define wxUSE_STATBOX 1
46922 _ACEOF
46923
46924 USES_CONTROLS=1
46925 fi
46926
46927 if test "$wxUSE_STATTEXT" = "yes"; then
46928 cat >>confdefs.h <<\_ACEOF
46929 #define wxUSE_STATTEXT 1
46930 _ACEOF
46931
46932 USES_CONTROLS=1
46933 fi
46934
46935 if test "$wxUSE_STATLINE" = "yes"; then
46936 cat >>confdefs.h <<\_ACEOF
46937 #define wxUSE_STATLINE 1
46938 _ACEOF
46939
46940 USES_CONTROLS=1
46941 fi
46942
46943 if test "$wxUSE_STATUSBAR" = "yes"; then
46944 cat >>confdefs.h <<\_ACEOF
46945 #define wxUSE_NATIVE_STATUSBAR 1
46946 _ACEOF
46947
46948 cat >>confdefs.h <<\_ACEOF
46949 #define wxUSE_STATUSBAR 1
46950 _ACEOF
46951
46952 USES_CONTROLS=1
46953
46954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46955 fi
46956
46957 if test "$wxUSE_TEXTCTRL" = "yes"; then
46958 cat >>confdefs.h <<\_ACEOF
46959 #define wxUSE_TEXTCTRL 1
46960 _ACEOF
46961
46962 USES_CONTROLS=1
46963 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46964
46965 cat >>confdefs.h <<\_ACEOF
46966 #define wxUSE_RICHEDIT 1
46967 _ACEOF
46968
46969 cat >>confdefs.h <<\_ACEOF
46970 #define wxUSE_RICHEDIT2 1
46971 _ACEOF
46972
46973 fi
46974
46975 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46976 if test "$wxUSE_COCOA" = 1 ; then
46977 { $as_echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46978 $as_echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46979 wxUSE_TOGGLEBTN=no
46980 fi
46981
46982 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46983 cat >>confdefs.h <<\_ACEOF
46984 #define wxUSE_TOGGLEBTN 1
46985 _ACEOF
46986
46987 USES_CONTROLS=1
46988 fi
46989 fi
46990
46991 if test "$wxUSE_TOOLBAR" = "yes"; then
46992 cat >>confdefs.h <<\_ACEOF
46993 #define wxUSE_TOOLBAR 1
46994 _ACEOF
46995
46996 USES_CONTROLS=1
46997
46998 if test "$wxUSE_UNIVERSAL" = "yes"; then
46999 wxUSE_TOOLBAR_NATIVE="no"
47000 else
47001 wxUSE_TOOLBAR_NATIVE="yes"
47002 cat >>confdefs.h <<\_ACEOF
47003 #define wxUSE_TOOLBAR_NATIVE 1
47004 _ACEOF
47005
47006 fi
47007
47008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
47009 fi
47010
47011 if test "$wxUSE_TOOLTIPS" = "yes"; then
47012 if test "$wxUSE_MOTIF" = 1; then
47013 { $as_echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
47014 $as_echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
47015 else
47016 if test "$wxUSE_UNIVERSAL" = "yes"; then
47017 { $as_echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
47018 $as_echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
47019 else
47020 cat >>confdefs.h <<\_ACEOF
47021 #define wxUSE_TOOLTIPS 1
47022 _ACEOF
47023
47024 fi
47025 fi
47026 fi
47027
47028 if test "$wxUSE_TREEBOOK" = "yes"; then
47029 cat >>confdefs.h <<\_ACEOF
47030 #define wxUSE_TREEBOOK 1
47031 _ACEOF
47032
47033 USES_CONTROLS=1
47034 fi
47035
47036 if test "$wxUSE_TOOLBOOK" = "yes"; then
47037 cat >>confdefs.h <<\_ACEOF
47038 #define wxUSE_TOOLBOOK 1
47039 _ACEOF
47040
47041 USES_CONTROLS=1
47042 fi
47043
47044 if test "$wxUSE_TREECTRL" = "yes"; then
47045 if test "$wxUSE_IMAGLIST" = "yes"; then
47046 cat >>confdefs.h <<\_ACEOF
47047 #define wxUSE_TREECTRL 1
47048 _ACEOF
47049
47050 USES_CONTROLS=1
47051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
47052 else
47053 { $as_echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
47054 $as_echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
47055 fi
47056 fi
47057
47058 if test "$wxUSE_POPUPWIN" = "yes"; then
47059 if test "$wxUSE_COCOA" = 1 ; then
47060 { $as_echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
47061 $as_echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
47062 else
47063 if test "$wxUSE_PM" = 1; then
47064 { $as_echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
47065 $as_echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
47066 else
47067 cat >>confdefs.h <<\_ACEOF
47068 #define wxUSE_POPUPWIN 1
47069 _ACEOF
47070
47071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
47072
47073 USES_CONTROLS=1
47074 fi
47075 fi
47076 fi
47077
47078 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
47079 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
47080 { $as_echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
47081 $as_echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
47082 else
47083 cat >>confdefs.h <<\_ACEOF
47084 #define wxUSE_DIALUP_MANAGER 1
47085 _ACEOF
47086
47087 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
47088 fi
47089 fi
47090
47091 if test "$wxUSE_TIPWINDOW" = "yes"; then
47092 if test "$wxUSE_PM" = 1; then
47093 { $as_echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
47094 $as_echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
47095 else
47096 cat >>confdefs.h <<\_ACEOF
47097 #define wxUSE_TIPWINDOW 1
47098 _ACEOF
47099
47100 fi
47101 fi
47102
47103 if test "$USES_CONTROLS" = 1; then
47104 cat >>confdefs.h <<\_ACEOF
47105 #define wxUSE_CONTROLS 1
47106 _ACEOF
47107
47108 fi
47109
47110
47111 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
47112 cat >>confdefs.h <<\_ACEOF
47113 #define wxUSE_ACCESSIBILITY 1
47114 _ACEOF
47115
47116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
47117 fi
47118
47119 if test "$wxUSE_DRAGIMAGE" = "yes"; then
47120 cat >>confdefs.h <<\_ACEOF
47121 #define wxUSE_DRAGIMAGE 1
47122 _ACEOF
47123
47124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
47125 fi
47126
47127 if test "$wxUSE_EXCEPTIONS" = "yes"; then
47128 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
47129 { $as_echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
47130 $as_echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
47131 else
47132 cat >>confdefs.h <<\_ACEOF
47133 #define wxUSE_EXCEPTIONS 1
47134 _ACEOF
47135
47136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
47137 fi
47138 fi
47139
47140 USE_HTML=0
47141 if test "$wxUSE_HTML" = "yes"; then
47142 cat >>confdefs.h <<\_ACEOF
47143 #define wxUSE_HTML 1
47144 _ACEOF
47145
47146 USE_HTML=1
47147 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
47148 fi
47149 if test "$wxUSE_WEBKIT" = "yes"; then
47150 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
47151 old_CPPFLAGS="$CPPFLAGS"
47152 CPPFLAGS="-x objective-c++ $CPPFLAGS"
47153 { $as_echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
47154 $as_echo_n "checking for WebKit/HIWebView.h... " >&6; }
47155 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
47156 $as_echo_n "(cached) " >&6
47157 else
47158 cat >conftest.$ac_ext <<_ACEOF
47159 /* confdefs.h. */
47160 _ACEOF
47161 cat confdefs.h >>conftest.$ac_ext
47162 cat >>conftest.$ac_ext <<_ACEOF
47163 /* end confdefs.h. */
47164
47165 #include <Carbon/Carbon.h>
47166 #include <WebKit/WebKit.h>
47167
47168
47169 #include <WebKit/HIWebView.h>
47170 _ACEOF
47171 rm -f conftest.$ac_objext
47172 if { (ac_try="$ac_compile"
47173 case "(($ac_try" in
47174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47175 *) ac_try_echo=$ac_try;;
47176 esac
47177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47178 $as_echo "$ac_try_echo") >&5
47179 (eval "$ac_compile") 2>conftest.er1
47180 ac_status=$?
47181 grep -v '^ *+' conftest.er1 >conftest.err
47182 rm -f conftest.er1
47183 cat conftest.err >&5
47184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47185 (exit $ac_status); } && {
47186 test -z "$ac_c_werror_flag" ||
47187 test ! -s conftest.err
47188 } && test -s conftest.$ac_objext; then
47189 ac_cv_header_WebKit_HIWebView_h=yes
47190 else
47191 $as_echo "$as_me: failed program was:" >&5
47192 sed 's/^/| /' conftest.$ac_ext >&5
47193
47194 ac_cv_header_WebKit_HIWebView_h=no
47195 fi
47196
47197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47198 fi
47199 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
47200 $as_echo "$ac_cv_header_WebKit_HIWebView_h" >&6; }
47201 if test "x$ac_cv_header_WebKit_HIWebView_h" = x""yes; then
47202
47203 cat >>confdefs.h <<\_ACEOF
47204 #define wxUSE_WEBKIT 1
47205 _ACEOF
47206
47207 WEBKIT_LINK="-framework WebKit"
47208
47209 else
47210
47211 { $as_echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
47212 $as_echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
47213 wxUSE_WEBKIT=no
47214
47215 fi
47216
47217
47218 CPPFLAGS="$old_CPPFLAGS"
47219 elif test "$wxUSE_COCOA" = 1; then
47220 cat >>confdefs.h <<\_ACEOF
47221 #define wxUSE_WEBKIT 1
47222 _ACEOF
47223
47224 else
47225 wxUSE_WEBKIT=no
47226 fi
47227 if test "$wxUSE_WEBKIT" = "yes"; then
47228 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
47229 fi
47230 fi
47231
47232 USE_XRC=0
47233 if test "$wxUSE_XRC" = "yes"; then
47234 if test "$wxUSE_XML" != "yes"; then
47235 { $as_echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
47236 $as_echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
47237 wxUSE_XRC=no
47238 else
47239 cat >>confdefs.h <<\_ACEOF
47240 #define wxUSE_XRC 1
47241 _ACEOF
47242
47243 USE_XRC=1
47244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
47245 fi
47246 fi
47247
47248 USE_AUI=0
47249 if test "$wxUSE_AUI" = "yes"; then
47250 cat >>confdefs.h <<\_ACEOF
47251 #define wxUSE_AUI 1
47252 _ACEOF
47253
47254 USE_AUI=1
47255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
47256 fi
47257
47258 USE_PROPGRID=0
47259 if test "$wxUSE_PROPGRID" = "yes"; then
47260 cat >>confdefs.h <<\_ACEOF
47261 #define wxUSE_PROPGRID 1
47262 _ACEOF
47263
47264 USE_PROPGRID=1
47265 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
47266 fi
47267
47268 USE_STC=0
47269 if test "$wxUSE_STC" = "yes"; then
47270 cat >>confdefs.h <<\_ACEOF
47271 #define wxUSE_STC 1
47272 _ACEOF
47273
47274 USE_STC=1
47275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
47276 fi
47277
47278 if test "$wxUSE_MENUS" = "yes"; then
47279 cat >>confdefs.h <<\_ACEOF
47280 #define wxUSE_MENUS 1
47281 _ACEOF
47282
47283 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
47284 fi
47285
47286 if test "$wxUSE_METAFILE" = "yes"; then
47287 cat >>confdefs.h <<\_ACEOF
47288 #define wxUSE_METAFILE 1
47289 _ACEOF
47290
47291 fi
47292
47293 if test "$wxUSE_MIMETYPE" = "yes"; then
47294 cat >>confdefs.h <<\_ACEOF
47295 #define wxUSE_MIMETYPE 1
47296 _ACEOF
47297
47298 fi
47299
47300 if test "$wxUSE_MINIFRAME" = "yes"; then
47301 cat >>confdefs.h <<\_ACEOF
47302 #define wxUSE_MINIFRAME 1
47303 _ACEOF
47304
47305 fi
47306
47307 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
47308 cat >>confdefs.h <<\_ACEOF
47309 #define wxUSE_SYSTEM_OPTIONS 1
47310 _ACEOF
47311
47312 fi
47313
47314 if test "$wxUSE_TASKBARICON" = "yes"; then
47315 cat >>confdefs.h <<\_ACEOF
47316 #define wxUSE_TASKBARICON 1
47317 _ACEOF
47318
47319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
47320 fi
47321
47322
47323 if test "$wxUSE_VALIDATORS" = "yes"; then
47324 cat >>confdefs.h <<\_ACEOF
47325 #define wxUSE_VALIDATORS 1
47326 _ACEOF
47327
47328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
47329 fi
47330
47331 if test "$wxUSE_PALETTE" = "yes" ; then
47332 if test "$wxUSE_DFB" = 1; then
47333 { $as_echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
47334 $as_echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
47335 wxUSE_PALETTE=no
47336 else
47337 cat >>confdefs.h <<\_ACEOF
47338 #define wxUSE_PALETTE 1
47339 _ACEOF
47340
47341 fi
47342 fi
47343
47344 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
47345 LIBS=" -lunicows $LIBS"
47346 fi
47347
47348 USE_RICHTEXT=0
47349 if test "$wxUSE_RICHTEXT" = "yes"; then
47350 cat >>confdefs.h <<\_ACEOF
47351 #define wxUSE_RICHTEXT 1
47352 _ACEOF
47353
47354 USE_RICHTEXT=1
47355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
47356 fi
47357
47358
47359 if test "$wxUSE_IMAGE" = "yes" ; then
47360 cat >>confdefs.h <<\_ACEOF
47361 #define wxUSE_IMAGE 1
47362 _ACEOF
47363
47364
47365 if test "$wxUSE_GIF" = "yes" ; then
47366 cat >>confdefs.h <<\_ACEOF
47367 #define wxUSE_GIF 1
47368 _ACEOF
47369
47370 fi
47371
47372 if test "$wxUSE_PCX" = "yes" ; then
47373 cat >>confdefs.h <<\_ACEOF
47374 #define wxUSE_PCX 1
47375 _ACEOF
47376
47377 fi
47378
47379 if test "$wxUSE_TGA" = "yes" ; then
47380 cat >>confdefs.h <<\_ACEOF
47381 #define wxUSE_TGA 1
47382 _ACEOF
47383
47384 fi
47385
47386 if test "$wxUSE_IFF" = "yes" ; then
47387 cat >>confdefs.h <<\_ACEOF
47388 #define wxUSE_IFF 1
47389 _ACEOF
47390
47391 fi
47392
47393 if test "$wxUSE_PNM" = "yes" ; then
47394 cat >>confdefs.h <<\_ACEOF
47395 #define wxUSE_PNM 1
47396 _ACEOF
47397
47398 fi
47399
47400 if test "$wxUSE_XPM" = "yes" ; then
47401 cat >>confdefs.h <<\_ACEOF
47402 #define wxUSE_XPM 1
47403 _ACEOF
47404
47405 fi
47406
47407 if test "$wxUSE_ICO_CUR" = "yes" ; then
47408 cat >>confdefs.h <<\_ACEOF
47409 #define wxUSE_ICO_CUR 1
47410 _ACEOF
47411
47412 fi
47413 fi
47414
47415
47416 if test "$wxUSE_ABOUTDLG" = "yes"; then
47417 cat >>confdefs.h <<\_ACEOF
47418 #define wxUSE_ABOUTDLG 1
47419 _ACEOF
47420
47421 fi
47422
47423 if test "$wxUSE_CHOICEDLG" = "yes"; then
47424 cat >>confdefs.h <<\_ACEOF
47425 #define wxUSE_CHOICEDLG 1
47426 _ACEOF
47427
47428 fi
47429
47430 if test "$wxUSE_COLOURDLG" = "yes"; then
47431 cat >>confdefs.h <<\_ACEOF
47432 #define wxUSE_COLOURDLG 1
47433 _ACEOF
47434
47435 fi
47436
47437 if test "$wxUSE_FILEDLG" = "yes"; then
47438 cat >>confdefs.h <<\_ACEOF
47439 #define wxUSE_FILEDLG 1
47440 _ACEOF
47441
47442 fi
47443
47444 if test "$wxUSE_FINDREPLDLG" = "yes"; then
47445 cat >>confdefs.h <<\_ACEOF
47446 #define wxUSE_FINDREPLDLG 1
47447 _ACEOF
47448
47449 fi
47450
47451 if test "$wxUSE_FONTDLG" = "yes"; then
47452 cat >>confdefs.h <<\_ACEOF
47453 #define wxUSE_FONTDLG 1
47454 _ACEOF
47455
47456 fi
47457
47458 if test "$wxUSE_DIRDLG" = "yes"; then
47459 if test "$wxUSE_TREECTRL" != "yes"; then
47460 { $as_echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
47461 $as_echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
47462 else
47463 cat >>confdefs.h <<\_ACEOF
47464 #define wxUSE_DIRDLG 1
47465 _ACEOF
47466
47467 fi
47468 fi
47469
47470 if test "$wxUSE_MSGDLG" = "yes"; then
47471 cat >>confdefs.h <<\_ACEOF
47472 #define wxUSE_MSGDLG 1
47473 _ACEOF
47474
47475 fi
47476
47477 if test "$wxUSE_NUMBERDLG" = "yes"; then
47478 cat >>confdefs.h <<\_ACEOF
47479 #define wxUSE_NUMBERDLG 1
47480 _ACEOF
47481
47482 fi
47483
47484 if test "$wxUSE_PROGRESSDLG" = "yes"; then
47485 cat >>confdefs.h <<\_ACEOF
47486 #define wxUSE_PROGRESSDLG 1
47487 _ACEOF
47488
47489 fi
47490
47491 if test "$wxUSE_SPLASH" = "yes"; then
47492 cat >>confdefs.h <<\_ACEOF
47493 #define wxUSE_SPLASH 1
47494 _ACEOF
47495
47496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
47497 fi
47498
47499 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
47500 cat >>confdefs.h <<\_ACEOF
47501 #define wxUSE_STARTUP_TIPS 1
47502 _ACEOF
47503
47504 fi
47505
47506 if test "$wxUSE_TEXTDLG" = "yes"; then
47507 cat >>confdefs.h <<\_ACEOF
47508 #define wxUSE_TEXTDLG 1
47509 _ACEOF
47510
47511 fi
47512
47513 if test "$wxUSE_WIZARDDLG" = "yes"; then
47514 cat >>confdefs.h <<\_ACEOF
47515 #define wxUSE_WIZARDDLG 1
47516 _ACEOF
47517
47518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
47519 fi
47520
47521
47522 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
47523 if test "$wxUSE_OWNER_DRAWN" = "yes"; then
47524 cat >>confdefs.h <<\_ACEOF
47525 #define wxUSE_OWNER_DRAWN 1
47526 _ACEOF
47527
47528 fi
47529 fi
47530
47531
47532 if test "$wxUSE_MSW" = 1 ; then
47533
47534 if test "$wxUSE_DC_CACHEING" = "yes"; then
47535 cat >>confdefs.h <<\_ACEOF
47536 #define wxUSE_DC_CACHEING 1
47537 _ACEOF
47538
47539 fi
47540
47541 if test "$wxUSE_DIB" = "yes"; then
47542 cat >>confdefs.h <<\_ACEOF
47543 #define wxUSE_WXDIB 1
47544 _ACEOF
47545
47546 fi
47547
47548 if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
47549 cat >>confdefs.h <<\_ACEOF
47550 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
47551 _ACEOF
47552
47553 fi
47554
47555 if test "$wxUSE_UXTHEME" = "yes"; then
47556 cat >>confdefs.h <<\_ACEOF
47557 #define wxUSE_UXTHEME 1
47558 _ACEOF
47559
47560 fi
47561
47562 fi
47563
47564 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
47565 cat >>confdefs.h <<\_ACEOF
47566 #define wxUSE_AUTOID_MANAGEMENT 1
47567 _ACEOF
47568
47569 fi
47570
47571 if test "$USE_WIN32" = 1 ; then
47572 if test "$wxUSE_INICONF" = "yes"; then
47573 cat >>confdefs.h <<\_ACEOF
47574 #define wxUSE_INICONF 1
47575 _ACEOF
47576
47577 fi
47578
47579 if test "$wxUSE_REGKEY" = "yes"; then
47580 cat >>confdefs.h <<\_ACEOF
47581 #define wxUSE_REGKEY 1
47582 _ACEOF
47583
47584 fi
47585 fi
47586
47587
47588 if test "$wxUSE_MAC" = 1; then
47589 wxUSE_GRAPHICS_CONTEXT="yes"
47590 fi
47591
47592 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
47593 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
47594 cat >>confdefs.h <<\_ACEOF
47595 #define wxUSE_GRAPHICS_CONTEXT 1
47596 _ACEOF
47597
47598 elif test "$wxUSE_GTK" != 1; then
47599 cat >>confdefs.h <<\_ACEOF
47600 #define wxUSE_GRAPHICS_CONTEXT 1
47601 _ACEOF
47602
47603 else
47604
47605 pkg_failed=no
47606 { $as_echo "$as_me:$LINENO: checking for CAIRO" >&5
47607 $as_echo_n "checking for CAIRO... " >&6; }
47608
47609 if test -n "$PKG_CONFIG"; then
47610 if test -n "$CAIRO_CFLAGS"; then
47611 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
47612 else
47613 if test -n "$PKG_CONFIG" && \
47614 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47615 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47616 ac_status=$?
47617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47618 (exit $ac_status); }; then
47619 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
47620 else
47621 pkg_failed=yes
47622 fi
47623 fi
47624 else
47625 pkg_failed=untried
47626 fi
47627 if test -n "$PKG_CONFIG"; then
47628 if test -n "$CAIRO_LIBS"; then
47629 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
47630 else
47631 if test -n "$PKG_CONFIG" && \
47632 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47633 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47634 ac_status=$?
47635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47636 (exit $ac_status); }; then
47637 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
47638 else
47639 pkg_failed=yes
47640 fi
47641 fi
47642 else
47643 pkg_failed=untried
47644 fi
47645
47646
47647
47648 if test $pkg_failed = yes; then
47649
47650 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47651 _pkg_short_errors_supported=yes
47652 else
47653 _pkg_short_errors_supported=no
47654 fi
47655 if test $_pkg_short_errors_supported = yes; then
47656 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
47657 else
47658 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
47659 fi
47660 # Put the nasty error message in config.log where it belongs
47661 echo "$CAIRO_PKG_ERRORS" >&5
47662
47663 { $as_echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
47664 $as_echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
47665
47666 elif test $pkg_failed = untried; then
47667 { $as_echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
47668 $as_echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
47669
47670 else
47671 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
47672 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
47673 { $as_echo "$as_me:$LINENO: result: yes" >&5
47674 $as_echo "yes" >&6; }
47675 cat >>confdefs.h <<\_ACEOF
47676 #define wxUSE_GRAPHICS_CONTEXT 1
47677 _ACEOF
47678
47679 fi
47680 fi
47681 fi
47682
47683
47684 USE_MEDIA=0
47685
47686 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
47687 USE_MEDIA=1
47688
47689 if test "$wxUSE_GTK" = 1; then
47690 wxUSE_GSTREAMER="no"
47691
47692 GST_VERSION_MAJOR=0
47693 GST_VERSION_MINOR=10
47694 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
47695
47696 if test "$wxUSE_GSTREAMER8" = "no"; then
47697
47698 pkg_failed=no
47699 { $as_echo "$as_me:$LINENO: checking for GST" >&5
47700 $as_echo_n "checking for GST... " >&6; }
47701
47702 if test -n "$PKG_CONFIG"; then
47703 if test -n "$GST_CFLAGS"; then
47704 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47705 else
47706 if test -n "$PKG_CONFIG" && \
47707 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47708 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47709 ac_status=$?
47710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47711 (exit $ac_status); }; then
47712 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
47713 else
47714 pkg_failed=yes
47715 fi
47716 fi
47717 else
47718 pkg_failed=untried
47719 fi
47720 if test -n "$PKG_CONFIG"; then
47721 if test -n "$GST_LIBS"; then
47722 pkg_cv_GST_LIBS="$GST_LIBS"
47723 else
47724 if test -n "$PKG_CONFIG" && \
47725 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47726 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47727 ac_status=$?
47728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47729 (exit $ac_status); }; then
47730 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
47731 else
47732 pkg_failed=yes
47733 fi
47734 fi
47735 else
47736 pkg_failed=untried
47737 fi
47738
47739
47740
47741 if test $pkg_failed = yes; then
47742
47743 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47744 _pkg_short_errors_supported=yes
47745 else
47746 _pkg_short_errors_supported=no
47747 fi
47748 if test $_pkg_short_errors_supported = yes; then
47749 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
47750 else
47751 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
47752 fi
47753 # Put the nasty error message in config.log where it belongs
47754 echo "$GST_PKG_ERRORS" >&5
47755
47756
47757 { $as_echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47758 $as_echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
47759 GST_VERSION_MINOR=8
47760
47761
47762 elif test $pkg_failed = untried; then
47763
47764 { $as_echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47765 $as_echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
47766 GST_VERSION_MINOR=8
47767
47768
47769 else
47770 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47771 GST_LIBS=$pkg_cv_GST_LIBS
47772 { $as_echo "$as_me:$LINENO: result: yes" >&5
47773 $as_echo "yes" >&6; }
47774
47775 wxUSE_GSTREAMER="yes"
47776 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
47777
47778 fi
47779 else
47780 GST_VERSION_MINOR=8
47781 fi
47782
47783 if test $GST_VERSION_MINOR = "8"; then
47784 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
47785
47786 pkg_failed=no
47787 { $as_echo "$as_me:$LINENO: checking for GST" >&5
47788 $as_echo_n "checking for GST... " >&6; }
47789
47790 if test -n "$PKG_CONFIG"; then
47791 if test -n "$GST_CFLAGS"; then
47792 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47793 else
47794 if test -n "$PKG_CONFIG" && \
47795 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47796 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47797 ac_status=$?
47798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47799 (exit $ac_status); }; then
47800 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
47801 else
47802 pkg_failed=yes
47803 fi
47804 fi
47805 else
47806 pkg_failed=untried
47807 fi
47808 if test -n "$PKG_CONFIG"; then
47809 if test -n "$GST_LIBS"; then
47810 pkg_cv_GST_LIBS="$GST_LIBS"
47811 else
47812 if test -n "$PKG_CONFIG" && \
47813 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47814 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47815 ac_status=$?
47816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47817 (exit $ac_status); }; then
47818 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
47819 else
47820 pkg_failed=yes
47821 fi
47822 fi
47823 else
47824 pkg_failed=untried
47825 fi
47826
47827
47828
47829 if test $pkg_failed = yes; then
47830
47831 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47832 _pkg_short_errors_supported=yes
47833 else
47834 _pkg_short_errors_supported=no
47835 fi
47836 if test $_pkg_short_errors_supported = yes; then
47837 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47838 else
47839 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47840 fi
47841 # Put the nasty error message in config.log where it belongs
47842 echo "$GST_PKG_ERRORS" >&5
47843
47844
47845 { $as_echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47846 $as_echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47847
47848 elif test $pkg_failed = untried; then
47849
47850 { $as_echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47851 $as_echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47852
47853 else
47854 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47855 GST_LIBS=$pkg_cv_GST_LIBS
47856 { $as_echo "$as_me:$LINENO: result: yes" >&5
47857 $as_echo "yes" >&6; }
47858 wxUSE_GSTREAMER="yes"
47859 fi
47860 fi
47861
47862
47863 if test "$wxUSE_GSTREAMER" = "yes"; then
47864 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
47865 EXTRALIBS_MEDIA="$GST_LIBS"
47866
47867 cat >>confdefs.h <<\_ACEOF
47868 #define wxUSE_GSTREAMER 1
47869 _ACEOF
47870
47871 else
47872 USE_MEDIA=0
47873 fi
47874 fi
47875
47876 if test $USE_MEDIA = 1; then
47877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47878 cat >>confdefs.h <<\_ACEOF
47879 #define wxUSE_MEDIACTRL 1
47880 _ACEOF
47881
47882 else
47883 if test "$wxUSE_MEDIACTRL" = "yes"; then
47884 { { $as_echo "$as_me:$LINENO: error: GStreamer not available" >&5
47885 $as_echo "$as_me: error: GStreamer not available" >&2;}
47886 { (exit 1); exit 1; }; }
47887 else
47888 { $as_echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
47889 $as_echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
47890 fi
47891 fi
47892 fi
47893
47894
47895 if test "$cross_compiling" != "no"; then
47896 OSINFO="\"$host\""
47897 else
47898 OSINFO=`uname -s -r -m`
47899 OSINFO="\"$OSINFO\""
47900 fi
47901
47902 cat >>confdefs.h <<_ACEOF
47903 #define WXWIN_OS_DESCRIPTION $OSINFO
47904 _ACEOF
47905
47906
47907
47908 if test "x$prefix" != "xNONE"; then
47909 wxPREFIX=$prefix
47910 else
47911 wxPREFIX=$ac_default_prefix
47912 fi
47913
47914 cat >>confdefs.h <<_ACEOF
47915 #define wxINSTALL_PREFIX "$wxPREFIX"
47916 _ACEOF
47917
47918
47919
47920
47921 STD_BASE_LIBS="base"
47922 STD_GUI_LIBS=""
47923 BUILT_WX_LIBS="base"
47924 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
47925
47926 if test "$wxUSE_SOCKETS" = "yes" ; then
47927 STD_BASE_LIBS="net $STD_BASE_LIBS"
47928 BUILT_WX_LIBS="net $BUILT_WX_LIBS"
47929 fi
47930 if test "$wxUSE_XML" = "yes" ; then
47931 STD_BASE_LIBS="xml $STD_BASE_LIBS"
47932 BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
47933 fi
47934
47935 if test "$wxUSE_GUI" = "yes"; then
47936 STD_GUI_LIBS="adv core"
47937 BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
47938
47939 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47940 STD_GUI_LIBS="qa $STD_GUI_LIBS"
47941 BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
47942 fi
47943 if test "$wxUSE_HTML" = "yes" ; then
47944 STD_GUI_LIBS="html $STD_GUI_LIBS"
47945 BUILT_WX_LIBS="html $BUILT_WX_LIBS"
47946 fi
47947 if test "$wxUSE_MEDIACTRL" = "yes" ; then
47948 BUILT_WX_LIBS="media $BUILT_WX_LIBS"
47949 fi
47950 if test "$wxUSE_OPENGL" = "yes" ; then
47951 BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
47952 fi
47953 if test "$wxUSE_AUI" = "yes" ; then
47954 BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
47955 fi
47956 if test "$wxUSE_PROPGRID" = "yes" ; then
47957 BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
47958 fi
47959 if test "$wxUSE_RICHTEXT" = "yes" ; then
47960 BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
47961 fi
47962 if test "$wxUSE_STC" = "yes" ; then
47963 BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
47964 fi
47965 if test "$wxUSE_XRC" = "yes" ; then
47966 STD_GUI_LIBS="xrc $STD_GUI_LIBS"
47967 BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
47968 fi
47969 fi
47970
47971
47972
47973
47974
47975
47976
47977
47978 if test "$wxUSE_MAC" = 1 ; then
47979 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
47980 if test "$USE_DARWIN" = 1; then
47981 LDFLAGS="$LDFLAGS -framework QuickTime"
47982 fi
47983 fi
47984 if test "$USE_DARWIN" = 1; then
47985 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL"
47986 fi
47987 fi
47988 if test "$wxUSE_COCOA" = 1 ; then
47989 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
47990 if test "$wxUSE_MEDIACTRL" = "yes"; then
47991 LDFLAGS="$LDFLAGS -framework QuickTime"
47992 fi
47993 fi
47994 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47995 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47996 fi
47997
47998 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47999
48000 if test "$wxUSE_GUI" = "yes"; then
48001
48002
48003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
48004 erase event exec font image minimal render \
48005 shaped svg taborder vscroll widgets wrapsizer"
48006
48007 if test "$wxUSE_MONOLITHIC" != "yes"; then
48008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
48009 fi
48010 if test "$TOOLKIT" = "MSW"; then
48011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
48012 if test "$wxUSE_UNIVERSAL" != "yes"; then
48013 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
48014 fi
48015 fi
48016 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
48017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
48018 fi
48019 else
48020 SAMPLES_SUBDIRS="console"
48021 if test "$wxUSE_SOCKETS" = "yes" ; then
48022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
48023 fi
48024 if test "$wxUSE_IPC" = "yes" ; then
48025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
48026 fi
48027 fi
48028
48029
48030 if test "x$INTELCC" = "xyes" ; then
48031 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
48032 elif test "$GCC" = yes ; then
48033 CWARNINGS="-Wall -Wundef"
48034 fi
48035
48036 if test "x$INTELCXX" = "xyes" ; then
48037 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
48038 elif test "$GXX" = yes ; then
48039 CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
48040 { $as_echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
48041 $as_echo_n "checking CXXWARNINGS for gcc -Woverloaded-virtual... " >&6; }
48042 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
48043 $as_echo_n "(cached) " >&6
48044 else
48045 ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
48046
48047 ac_ext=cpp
48048 ac_cpp='$CXXCPP $CPPFLAGS'
48049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48052
48053 ac_save_CXXFLAGS="$CXXFLAGS"
48054 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual" "-pedantic % -Woverloaded-virtual %% no, obsolete" #
48055 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
48056 cat >conftest.$ac_ext <<_ACEOF
48057 /* confdefs.h. */
48058 _ACEOF
48059 cat confdefs.h >>conftest.$ac_ext
48060 cat >>conftest.$ac_ext <<_ACEOF
48061 /* end confdefs.h. */
48062
48063 int
48064 main ()
48065 {
48066 return 0;
48067 ;
48068 return 0;
48069 }
48070 _ACEOF
48071 rm -f conftest.$ac_objext
48072 if { (ac_try="$ac_compile"
48073 case "(($ac_try" in
48074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48075 *) ac_try_echo=$ac_try;;
48076 esac
48077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48078 $as_echo "$ac_try_echo") >&5
48079 (eval "$ac_compile") 2>conftest.er1
48080 ac_status=$?
48081 grep -v '^ *+' conftest.er1 >conftest.err
48082 rm -f conftest.er1
48083 cat conftest.err >&5
48084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48085 (exit $ac_status); } && {
48086 test -z "$ac_cxx_werror_flag" ||
48087 test ! -s conftest.err
48088 } && test -s conftest.$ac_objext; then
48089 ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
48090 else
48091 $as_echo "$as_me: failed program was:" >&5
48092 sed 's/^/| /' conftest.$ac_ext >&5
48093
48094
48095 fi
48096
48097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48098 done
48099 CXXFLAGS="$ac_save_CXXFLAGS"
48100 ac_ext=c
48101 ac_cpp='$CPP $CPPFLAGS'
48102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48105
48106
48107 fi
48108 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
48109 $as_echo "$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
48110 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
48111 .ok|.ok,*) ;;
48112 .|.no|.no,*) ;;
48113 *)
48114 if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
48115 then { ($as_echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
48116 (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
48117 ac_status=$?
48118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48119 (exit $ac_status); }
48120 else { ($as_echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
48121 (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
48122 ac_status=$?
48123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48124 (exit $ac_status); }
48125 CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
48126 fi
48127 ;;
48128 esac
48129
48130 fi
48131
48132
48133 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
48134 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
48135
48136
48137 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
48138 -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
48139 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
48140 $CPPFLAGS `
48141
48142 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
48143 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
48144 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
48145 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
48146 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
48147
48148 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
48149
48150
48151 if test "x$MWCC" = "xyes"; then
48152
48153 CC="$CC -cwd source -I-"
48154 CXX="$CXX -cwd source -I-"
48155 fi
48156
48157
48158 LIBS=`echo $LIBS`
48159 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
48160 EXTRALIBS_XML="$EXPAT_LINK"
48161 EXTRALIBS_HTML="$MSPACK_LINK"
48162 EXTRALIBS_MEDIA="$GST_LIBS"
48163 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
48164 if test "$wxUSE_GUI" = "yes"; then
48165 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
48166 fi
48167 if test "$wxUSE_OPENGL" = "yes"; then
48168 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
48169 fi
48170
48171 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
48172
48173 WXCONFIG_LIBS="$LIBS"
48174
48175 if test "$wxUSE_REGEX" = "builtin" ; then
48176 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
48177 fi
48178 if test "$wxUSE_EXPAT" = "builtin" ; then
48179 wxconfig_3rdparty="expat $wxconfig_3rdparty"
48180 fi
48181 if test "$wxUSE_LIBTIFF" = "builtin" ; then
48182 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
48183 fi
48184 if test "$wxUSE_LIBJPEG" = "builtin" ; then
48185 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
48186 fi
48187 if test "$wxUSE_LIBPNG" = "builtin" ; then
48188 wxconfig_3rdparty="png $wxconfig_3rdparty"
48189 fi
48190 if test "$wxUSE_ZLIB" = "builtin" ; then
48191 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
48192 fi
48193
48194 for i in $wxconfig_3rdparty ; do
48195 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
48196 done
48197
48198
48199 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
48200 WXUNIV=1
48201
48202 case "$wxUNIV_THEMES" in
48203 ''|all)
48204 cat >>confdefs.h <<\_ACEOF
48205 #define wxUSE_ALL_THEMES 1
48206 _ACEOF
48207
48208 ;;
48209
48210 *)
48211 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
48212 cat >>confdefs.h <<_ACEOF
48213 #define wxUSE_THEME_$t 1
48214 _ACEOF
48215
48216 done
48217 esac
48218 else
48219 WXUNIV=0
48220 fi
48221
48222
48223
48224
48225
48226
48227
48228
48229 if test $wxUSE_MONOLITHIC = "yes" ; then
48230 MONOLITHIC=1
48231 else
48232 MONOLITHIC=0
48233 fi
48234
48235 if test $wxUSE_PLUGINS = "yes" ; then
48236 USE_PLUGINS=1
48237 else
48238 USE_PLUGINS=0
48239 fi
48240
48241 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
48242 USE_QA=1
48243 else
48244 USE_QA=0
48245 fi
48246
48247 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
48248 OFFICIAL_BUILD=1
48249 else
48250 OFFICIAL_BUILD=0
48251 fi
48252
48253
48254
48255
48256
48257
48258
48259
48260
48261
48262
48263
48264
48265
48266
48267
48268
48269
48270
48271
48272
48273
48274
48275
48276
48277
48278
48279
48280 TOOLKIT_LOWERCASE=xxx
48281 if test "$TOOLKIT" = "MAC"; then
48282 TOOLKIT_LOWERCASE=osx_carbon
48283 fi
48284 if test "$TOOLKIT" = "OSX_CARBON"; then
48285 TOOLKIT_LOWERCASE=osx_carbon
48286 fi
48287 if test "$TOOLKIT" = "OSX_COCOA"; then
48288 TOOLKIT_LOWERCASE=osx_cocoa
48289 fi
48290 if test "$TOOLKIT_LOWERCASE" = "xxx"; then
48291 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
48292 fi
48293
48294
48295
48296
48297
48298
48299
48300
48301
48302
48303 case "$TOOLKIT" in
48304 GTK)
48305 TOOLKIT_DESC="GTK+"
48306 if test "$WXGTK2" = 1; then
48307 TOOLKIT_DESC="$TOOLKIT_DESC 2"
48308 if test "$wxUSE_GTKPRINT" = "yes" ; then
48309 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
48310 fi
48311 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
48312 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
48313 fi
48314 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
48315 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
48316 fi
48317 if test "$wxUSE_LIBHILDON" = "yes"; then
48318 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
48319 fi
48320
48321 if test "$TOOLKIT_EXTRA" != ""; then
48322 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
48323 fi
48324 fi
48325 ;;
48326
48327 ?*)
48328 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
48329 ;;
48330
48331 *)
48332 TOOLKIT_DESC="base only"
48333 ;;
48334 esac
48335
48336 if test "$wxUSE_WINE" = "yes"; then
48337 BAKEFILE_FORCE_PLATFORM=win32
48338 fi
48339
48340 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
48341 then
48342 { $as_echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
48343 $as_echo_n "checking for gcc precompiled header bug... " >&6; }
48344 if test "${wx_cv_gcc_pch_bug+set}" = set; then
48345 $as_echo_n "(cached) " >&6
48346 else
48347
48348 echo '#include <stdio.h>
48349 const wchar_t test_var[] = L"awidetest";' > conftest.h
48350
48351 echo '#include "conftest.h"
48352 int main()
48353 {
48354 printf("%ls", test_var);
48355 return 0;
48356 }' > conftest.cpp
48357
48358 wx_cv_gcc_pch_bug="pch not supported"
48359
48360 if $CXX conftest.h >/dev/null 2>&1
48361 then
48362 wx_cv_gcc_pch_bug=
48363
48364 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
48365 then
48366 if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
48367 grep awidetest >/dev/null
48368 then
48369 wx_cv_gcc_pch_bug=no
48370 else
48371 wx_cv_gcc_pch_bug=yes
48372 fi
48373 fi
48374 fi
48375
48376 rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
48377
48378 fi
48379 { $as_echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
48380 $as_echo "$wx_cv_gcc_pch_bug" >&6; }
48381
48382 if test "$wx_cv_gcc_pch_bug" = yes; then
48383 bk_use_pch=no
48384 fi
48385 fi
48386
48387
48388
48389
48390
48391
48392
48393 if test "x$BAKEFILE_HOST" = "x"; then
48394 if test "x${host}" = "x" ; then
48395 { { $as_echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
48396 $as_echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
48397 { (exit 1); exit 1; }; }
48398 fi
48399
48400 BAKEFILE_HOST="${host}"
48401 fi
48402
48403 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
48404
48405 if test -n "$ac_tool_prefix"; then
48406 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
48407 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
48408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48409 $as_echo_n "checking for $ac_word... " >&6; }
48410 if test "${ac_cv_prog_RANLIB+set}" = set; then
48411 $as_echo_n "(cached) " >&6
48412 else
48413 if test -n "$RANLIB"; then
48414 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
48415 else
48416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48417 for as_dir in $PATH
48418 do
48419 IFS=$as_save_IFS
48420 test -z "$as_dir" && as_dir=.
48421 for ac_exec_ext in '' $ac_executable_extensions; do
48422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48423 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
48424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48425 break 2
48426 fi
48427 done
48428 done
48429 IFS=$as_save_IFS
48430
48431 fi
48432 fi
48433 RANLIB=$ac_cv_prog_RANLIB
48434 if test -n "$RANLIB"; then
48435 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
48436 $as_echo "$RANLIB" >&6; }
48437 else
48438 { $as_echo "$as_me:$LINENO: result: no" >&5
48439 $as_echo "no" >&6; }
48440 fi
48441
48442
48443 fi
48444 if test -z "$ac_cv_prog_RANLIB"; then
48445 ac_ct_RANLIB=$RANLIB
48446 # Extract the first word of "ranlib", so it can be a program name with args.
48447 set dummy ranlib; ac_word=$2
48448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48449 $as_echo_n "checking for $ac_word... " >&6; }
48450 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
48451 $as_echo_n "(cached) " >&6
48452 else
48453 if test -n "$ac_ct_RANLIB"; then
48454 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
48455 else
48456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48457 for as_dir in $PATH
48458 do
48459 IFS=$as_save_IFS
48460 test -z "$as_dir" && as_dir=.
48461 for ac_exec_ext in '' $ac_executable_extensions; do
48462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48463 ac_cv_prog_ac_ct_RANLIB="ranlib"
48464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48465 break 2
48466 fi
48467 done
48468 done
48469 IFS=$as_save_IFS
48470
48471 fi
48472 fi
48473 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
48474 if test -n "$ac_ct_RANLIB"; then
48475 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
48476 $as_echo "$ac_ct_RANLIB" >&6; }
48477 else
48478 { $as_echo "$as_me:$LINENO: result: no" >&5
48479 $as_echo "no" >&6; }
48480 fi
48481
48482 if test "x$ac_ct_RANLIB" = x; then
48483 RANLIB=":"
48484 else
48485 case $cross_compiling:$ac_tool_warned in
48486 yes:)
48487 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48489 ac_tool_warned=yes ;;
48490 esac
48491 RANLIB=$ac_ct_RANLIB
48492 fi
48493 else
48494 RANLIB="$ac_cv_prog_RANLIB"
48495 fi
48496
48497 # Find a good install program. We prefer a C program (faster),
48498 # so one script is as good as another. But avoid the broken or
48499 # incompatible versions:
48500 # SysV /etc/install, /usr/sbin/install
48501 # SunOS /usr/etc/install
48502 # IRIX /sbin/install
48503 # AIX /bin/install
48504 # AmigaOS /C/install, which installs bootblocks on floppy discs
48505 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
48506 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
48507 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
48508 # OS/2's system install, which has a completely different semantic
48509 # ./install, which can be erroneously created by make from ./install.sh.
48510 # Reject install programs that cannot install multiple files.
48511 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
48512 $as_echo_n "checking for a BSD-compatible install... " >&6; }
48513 if test -z "$INSTALL"; then
48514 if test "${ac_cv_path_install+set}" = set; then
48515 $as_echo_n "(cached) " >&6
48516 else
48517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48518 for as_dir in $PATH
48519 do
48520 IFS=$as_save_IFS
48521 test -z "$as_dir" && as_dir=.
48522 # Account for people who put trailing slashes in PATH elements.
48523 case $as_dir/ in
48524 ./ | .// | /cC/* | \
48525 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
48526 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
48527 /usr/ucb/* ) ;;
48528 *)
48529 # OSF1 and SCO ODT 3.0 have their own names for install.
48530 # Don't use installbsd from OSF since it installs stuff as root
48531 # by default.
48532 for ac_prog in ginstall scoinst install; do
48533 for ac_exec_ext in '' $ac_executable_extensions; do
48534 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
48535 if test $ac_prog = install &&
48536 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
48537 # AIX install. It has an incompatible calling convention.
48538 :
48539 elif test $ac_prog = install &&
48540 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
48541 # program-specific install script used by HP pwplus--don't use.
48542 :
48543 else
48544 rm -rf conftest.one conftest.two conftest.dir
48545 echo one > conftest.one
48546 echo two > conftest.two
48547 mkdir conftest.dir
48548 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
48549 test -s conftest.one && test -s conftest.two &&
48550 test -s conftest.dir/conftest.one &&
48551 test -s conftest.dir/conftest.two
48552 then
48553 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
48554 break 3
48555 fi
48556 fi
48557 fi
48558 done
48559 done
48560 ;;
48561 esac
48562
48563 done
48564 IFS=$as_save_IFS
48565
48566 rm -rf conftest.one conftest.two conftest.dir
48567
48568 fi
48569 if test "${ac_cv_path_install+set}" = set; then
48570 INSTALL=$ac_cv_path_install
48571 else
48572 # As a last resort, use the slow shell script. Don't cache a
48573 # value for INSTALL within a source directory, because that will
48574 # break other packages using the cache if that directory is
48575 # removed, or if the value is a relative name.
48576 INSTALL=$ac_install_sh
48577 fi
48578 fi
48579 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
48580 $as_echo "$INSTALL" >&6; }
48581
48582 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
48583 # It thinks the first close brace ends the variable substitution.
48584 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
48585
48586 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
48587
48588 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
48589
48590 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
48591 $as_echo_n "checking whether ln -s works... " >&6; }
48592 LN_S=$as_ln_s
48593 if test "$LN_S" = "ln -s"; then
48594 { $as_echo "$as_me:$LINENO: result: yes" >&5
48595 $as_echo "yes" >&6; }
48596 else
48597 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
48598 $as_echo "no, using $LN_S" >&6; }
48599 fi
48600
48601
48602 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48603 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
48604 set x ${MAKE-make}
48605 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
48606 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
48607 $as_echo_n "(cached) " >&6
48608 else
48609 cat >conftest.make <<\_ACEOF
48610 SHELL = /bin/sh
48611 all:
48612 @echo '@@@%%%=$(MAKE)=@@@%%%'
48613 _ACEOF
48614 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48615 case `${MAKE-make} -f conftest.make 2>/dev/null` in
48616 *@@@%%%=?*=@@@%%%*)
48617 eval ac_cv_prog_make_${ac_make}_set=yes;;
48618 *)
48619 eval ac_cv_prog_make_${ac_make}_set=no;;
48620 esac
48621 rm -f conftest.make
48622 fi
48623 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
48624 { $as_echo "$as_me:$LINENO: result: yes" >&5
48625 $as_echo "yes" >&6; }
48626 SET_MAKE=
48627 else
48628 { $as_echo "$as_me:$LINENO: result: no" >&5
48629 $as_echo "no" >&6; }
48630 SET_MAKE="MAKE=${MAKE-make}"
48631 fi
48632
48633
48634
48635 if test "x$SUNCXX" = "xyes"; then
48636 AR=$CXX
48637 AROPTIONS="-xar -o"
48638
48639 elif test "x$SGICC" = "xyes"; then
48640 AR=$CXX
48641 AROPTIONS="-ar -o"
48642
48643 else
48644 if test -n "$ac_tool_prefix"; then
48645 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
48646 set dummy ${ac_tool_prefix}ar; ac_word=$2
48647 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48648 $as_echo_n "checking for $ac_word... " >&6; }
48649 if test "${ac_cv_prog_AR+set}" = set; then
48650 $as_echo_n "(cached) " >&6
48651 else
48652 if test -n "$AR"; then
48653 ac_cv_prog_AR="$AR" # Let the user override the test.
48654 else
48655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48656 for as_dir in $PATH
48657 do
48658 IFS=$as_save_IFS
48659 test -z "$as_dir" && as_dir=.
48660 for ac_exec_ext in '' $ac_executable_extensions; do
48661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48662 ac_cv_prog_AR="${ac_tool_prefix}ar"
48663 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48664 break 2
48665 fi
48666 done
48667 done
48668 IFS=$as_save_IFS
48669
48670 fi
48671 fi
48672 AR=$ac_cv_prog_AR
48673 if test -n "$AR"; then
48674 { $as_echo "$as_me:$LINENO: result: $AR" >&5
48675 $as_echo "$AR" >&6; }
48676 else
48677 { $as_echo "$as_me:$LINENO: result: no" >&5
48678 $as_echo "no" >&6; }
48679 fi
48680
48681
48682 fi
48683 if test -z "$ac_cv_prog_AR"; then
48684 ac_ct_AR=$AR
48685 # Extract the first word of "ar", so it can be a program name with args.
48686 set dummy ar; ac_word=$2
48687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48688 $as_echo_n "checking for $ac_word... " >&6; }
48689 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
48690 $as_echo_n "(cached) " >&6
48691 else
48692 if test -n "$ac_ct_AR"; then
48693 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
48694 else
48695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48696 for as_dir in $PATH
48697 do
48698 IFS=$as_save_IFS
48699 test -z "$as_dir" && as_dir=.
48700 for ac_exec_ext in '' $ac_executable_extensions; do
48701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48702 ac_cv_prog_ac_ct_AR="ar"
48703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48704 break 2
48705 fi
48706 done
48707 done
48708 IFS=$as_save_IFS
48709
48710 fi
48711 fi
48712 ac_ct_AR=$ac_cv_prog_ac_ct_AR
48713 if test -n "$ac_ct_AR"; then
48714 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
48715 $as_echo "$ac_ct_AR" >&6; }
48716 else
48717 { $as_echo "$as_me:$LINENO: result: no" >&5
48718 $as_echo "no" >&6; }
48719 fi
48720
48721 if test "x$ac_ct_AR" = x; then
48722 AR="ar"
48723 else
48724 case $cross_compiling:$ac_tool_warned in
48725 yes:)
48726 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48728 ac_tool_warned=yes ;;
48729 esac
48730 AR=$ac_ct_AR
48731 fi
48732 else
48733 AR="$ac_cv_prog_AR"
48734 fi
48735
48736 AROPTIONS=rcu
48737 fi
48738
48739
48740 if test -n "$ac_tool_prefix"; then
48741 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
48742 set dummy ${ac_tool_prefix}strip; ac_word=$2
48743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48744 $as_echo_n "checking for $ac_word... " >&6; }
48745 if test "${ac_cv_prog_STRIP+set}" = set; then
48746 $as_echo_n "(cached) " >&6
48747 else
48748 if test -n "$STRIP"; then
48749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
48750 else
48751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48752 for as_dir in $PATH
48753 do
48754 IFS=$as_save_IFS
48755 test -z "$as_dir" && as_dir=.
48756 for ac_exec_ext in '' $ac_executable_extensions; do
48757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48758 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
48759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48760 break 2
48761 fi
48762 done
48763 done
48764 IFS=$as_save_IFS
48765
48766 fi
48767 fi
48768 STRIP=$ac_cv_prog_STRIP
48769 if test -n "$STRIP"; then
48770 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
48771 $as_echo "$STRIP" >&6; }
48772 else
48773 { $as_echo "$as_me:$LINENO: result: no" >&5
48774 $as_echo "no" >&6; }
48775 fi
48776
48777
48778 fi
48779 if test -z "$ac_cv_prog_STRIP"; then
48780 ac_ct_STRIP=$STRIP
48781 # Extract the first word of "strip", so it can be a program name with args.
48782 set dummy strip; ac_word=$2
48783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48784 $as_echo_n "checking for $ac_word... " >&6; }
48785 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
48786 $as_echo_n "(cached) " >&6
48787 else
48788 if test -n "$ac_ct_STRIP"; then
48789 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
48790 else
48791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48792 for as_dir in $PATH
48793 do
48794 IFS=$as_save_IFS
48795 test -z "$as_dir" && as_dir=.
48796 for ac_exec_ext in '' $ac_executable_extensions; do
48797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48798 ac_cv_prog_ac_ct_STRIP="strip"
48799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48800 break 2
48801 fi
48802 done
48803 done
48804 IFS=$as_save_IFS
48805
48806 fi
48807 fi
48808 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
48809 if test -n "$ac_ct_STRIP"; then
48810 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
48811 $as_echo "$ac_ct_STRIP" >&6; }
48812 else
48813 { $as_echo "$as_me:$LINENO: result: no" >&5
48814 $as_echo "no" >&6; }
48815 fi
48816
48817 if test "x$ac_ct_STRIP" = x; then
48818 STRIP=":"
48819 else
48820 case $cross_compiling:$ac_tool_warned in
48821 yes:)
48822 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48824 ac_tool_warned=yes ;;
48825 esac
48826 STRIP=$ac_ct_STRIP
48827 fi
48828 else
48829 STRIP="$ac_cv_prog_STRIP"
48830 fi
48831
48832 if test -n "$ac_tool_prefix"; then
48833 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
48834 set dummy ${ac_tool_prefix}nm; ac_word=$2
48835 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48836 $as_echo_n "checking for $ac_word... " >&6; }
48837 if test "${ac_cv_prog_NM+set}" = set; then
48838 $as_echo_n "(cached) " >&6
48839 else
48840 if test -n "$NM"; then
48841 ac_cv_prog_NM="$NM" # Let the user override the test.
48842 else
48843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48844 for as_dir in $PATH
48845 do
48846 IFS=$as_save_IFS
48847 test -z "$as_dir" && as_dir=.
48848 for ac_exec_ext in '' $ac_executable_extensions; do
48849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48850 ac_cv_prog_NM="${ac_tool_prefix}nm"
48851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48852 break 2
48853 fi
48854 done
48855 done
48856 IFS=$as_save_IFS
48857
48858 fi
48859 fi
48860 NM=$ac_cv_prog_NM
48861 if test -n "$NM"; then
48862 { $as_echo "$as_me:$LINENO: result: $NM" >&5
48863 $as_echo "$NM" >&6; }
48864 else
48865 { $as_echo "$as_me:$LINENO: result: no" >&5
48866 $as_echo "no" >&6; }
48867 fi
48868
48869
48870 fi
48871 if test -z "$ac_cv_prog_NM"; then
48872 ac_ct_NM=$NM
48873 # Extract the first word of "nm", so it can be a program name with args.
48874 set dummy nm; ac_word=$2
48875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48876 $as_echo_n "checking for $ac_word... " >&6; }
48877 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
48878 $as_echo_n "(cached) " >&6
48879 else
48880 if test -n "$ac_ct_NM"; then
48881 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
48882 else
48883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48884 for as_dir in $PATH
48885 do
48886 IFS=$as_save_IFS
48887 test -z "$as_dir" && as_dir=.
48888 for ac_exec_ext in '' $ac_executable_extensions; do
48889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48890 ac_cv_prog_ac_ct_NM="nm"
48891 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48892 break 2
48893 fi
48894 done
48895 done
48896 IFS=$as_save_IFS
48897
48898 fi
48899 fi
48900 ac_ct_NM=$ac_cv_prog_ac_ct_NM
48901 if test -n "$ac_ct_NM"; then
48902 { $as_echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
48903 $as_echo "$ac_ct_NM" >&6; }
48904 else
48905 { $as_echo "$as_me:$LINENO: result: no" >&5
48906 $as_echo "no" >&6; }
48907 fi
48908
48909 if test "x$ac_ct_NM" = x; then
48910 NM=":"
48911 else
48912 case $cross_compiling:$ac_tool_warned in
48913 yes:)
48914 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48916 ac_tool_warned=yes ;;
48917 esac
48918 NM=$ac_ct_NM
48919 fi
48920 else
48921 NM="$ac_cv_prog_NM"
48922 fi
48923
48924
48925 { $as_echo "$as_me:$LINENO: checking for command to install directories" >&5
48926 $as_echo_n "checking for command to install directories... " >&6; }
48927 INSTALL_TEST_DIR=acbftest$$
48928 $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
48929 if test $? = 0 -a -d $INSTALL_TEST_DIR; then
48930 rmdir $INSTALL_TEST_DIR
48931 INSTALL_DIR='$(INSTALL) -d'
48932 { $as_echo "$as_me:$LINENO: result: $INSTALL -d" >&5
48933 $as_echo "$INSTALL -d" >&6; }
48934 else
48935 INSTALL_DIR="mkdir -p"
48936 { $as_echo "$as_me:$LINENO: result: mkdir -p" >&5
48937 $as_echo "mkdir -p" >&6; }
48938 fi
48939
48940
48941 LDFLAGS_GUI=
48942 case ${BAKEFILE_HOST} in
48943 *-*-cygwin* | *-*-mingw32* )
48944 LDFLAGS_GUI="-mwindows"
48945 esac
48946
48947
48948 fi
48949
48950 { $as_echo "$as_me:$LINENO: checking if make is GNU make" >&5
48951 $as_echo_n "checking if make is GNU make... " >&6; }
48952 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
48953 $as_echo_n "(cached) " >&6
48954 else
48955
48956 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
48957 egrep -s GNU > /dev/null); then
48958 bakefile_cv_prog_makeisgnu="yes"
48959 else
48960 bakefile_cv_prog_makeisgnu="no"
48961 fi
48962
48963 fi
48964 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
48965 $as_echo "$bakefile_cv_prog_makeisgnu" >&6; }
48966
48967 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
48968 IF_GNU_MAKE=""
48969 else
48970 IF_GNU_MAKE="#"
48971 fi
48972
48973
48974
48975 PLATFORM_UNIX=0
48976 PLATFORM_WIN32=0
48977 PLATFORM_MSDOS=0
48978 PLATFORM_MAC=0
48979 PLATFORM_MACOS=0
48980 PLATFORM_MACOSX=0
48981 PLATFORM_OS2=0
48982 PLATFORM_BEOS=0
48983
48984 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
48985 case "${BAKEFILE_HOST}" in
48986 *-*-mingw32* )
48987 PLATFORM_WIN32=1
48988 ;;
48989 *-pc-msdosdjgpp )
48990 PLATFORM_MSDOS=1
48991 ;;
48992 *-pc-os2_emx | *-pc-os2-emx )
48993 PLATFORM_OS2=1
48994 ;;
48995 *-*-darwin* )
48996 PLATFORM_MAC=1
48997 PLATFORM_MACOSX=1
48998 ;;
48999 *-*-beos* )
49000 PLATFORM_BEOS=1
49001 ;;
49002 powerpc-apple-macos* )
49003 PLATFORM_MAC=1
49004 PLATFORM_MACOS=1
49005 ;;
49006 * )
49007 PLATFORM_UNIX=1
49008 ;;
49009 esac
49010 else
49011 case "$BAKEFILE_FORCE_PLATFORM" in
49012 win32 )
49013 PLATFORM_WIN32=1
49014 ;;
49015 msdos )
49016 PLATFORM_MSDOS=1
49017 ;;
49018 os2 )
49019 PLATFORM_OS2=1
49020 ;;
49021 darwin )
49022 PLATFORM_MAC=1
49023 PLATFORM_MACOSX=1
49024 ;;
49025 unix )
49026 PLATFORM_UNIX=1
49027 ;;
49028 beos )
49029 PLATFORM_BEOS=1
49030 ;;
49031 * )
49032 ;;
49033 esac
49034 fi
49035
49036
49037
49038
49039
49040
49041
49042
49043
49044
49045
49046 # Check whether --enable-omf was given.
49047 if test "${enable_omf+set}" = set; then
49048 enableval=$enable_omf; bk_os2_use_omf="$enableval"
49049 fi
49050
49051
49052 case "${BAKEFILE_HOST}" in
49053 *-*-darwin* )
49054 if test "x$GCC" = "xyes"; then
49055 CFLAGS="$CFLAGS -fno-common"
49056 CXXFLAGS="$CXXFLAGS -fno-common"
49057 fi
49058 if test "x$XLCC" = "xyes"; then
49059 CFLAGS="$CFLAGS -qnocommon"
49060 CXXFLAGS="$CXXFLAGS -qnocommon"
49061 fi
49062 ;;
49063
49064 *-pc-os2_emx | *-pc-os2-emx )
49065 if test "x$bk_os2_use_omf" = "xyes" ; then
49066 AR=emxomfar
49067 RANLIB=:
49068 LDFLAGS="-Zomf $LDFLAGS"
49069 CFLAGS="-Zomf $CFLAGS"
49070 CXXFLAGS="-Zomf $CXXFLAGS"
49071 OS2_LIBEXT="lib"
49072 else
49073 OS2_LIBEXT="a"
49074 fi
49075 ;;
49076
49077 i*86-*-beos* )
49078 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
49079 ;;
49080 esac
49081
49082
49083 SO_SUFFIX="so"
49084 SO_SUFFIX_MODULE="so"
49085 EXEEXT=""
49086 LIBPREFIX="lib"
49087 LIBEXT=".a"
49088 DLLPREFIX="lib"
49089 DLLPREFIX_MODULE=""
49090 DLLIMP_SUFFIX=""
49091 dlldir="$libdir"
49092
49093 case "${BAKEFILE_HOST}" in
49094 ia64-hp-hpux* )
49095 ;;
49096 *-hp-hpux* )
49097 SO_SUFFIX="sl"
49098 SO_SUFFIX_MODULE="sl"
49099 ;;
49100 *-*-aix* )
49101 SO_SUFFIX="a"
49102 SO_SUFFIX_MODULE="a"
49103 ;;
49104 *-*-cygwin* )
49105 SO_SUFFIX="dll"
49106 SO_SUFFIX_MODULE="dll"
49107 DLLIMP_SUFFIX="dll.a"
49108 EXEEXT=".exe"
49109 DLLPREFIX="cyg"
49110 dlldir="$bindir"
49111 ;;
49112 *-*-mingw32* )
49113 SO_SUFFIX="dll"
49114 SO_SUFFIX_MODULE="dll"
49115 DLLIMP_SUFFIX="dll.a"
49116 EXEEXT=".exe"
49117 DLLPREFIX=""
49118 dlldir="$bindir"
49119 ;;
49120 *-pc-msdosdjgpp )
49121 EXEEXT=".exe"
49122 DLLPREFIX=""
49123 dlldir="$bindir"
49124 ;;
49125 *-pc-os2_emx | *-pc-os2-emx )
49126 SO_SUFFIX="dll"
49127 SO_SUFFIX_MODULE="dll"
49128 DLLIMP_SUFFIX=$OS2_LIBEXT
49129 EXEEXT=".exe"
49130 DLLPREFIX=""
49131 LIBPREFIX=""
49132 LIBEXT=".$OS2_LIBEXT"
49133 dlldir="$bindir"
49134 ;;
49135 *-*-darwin* )
49136 SO_SUFFIX="dylib"
49137 SO_SUFFIX_MODULE="bundle"
49138 ;;
49139 esac
49140
49141 if test "x$DLLIMP_SUFFIX" = "x" ; then
49142 DLLIMP_SUFFIX="$SO_SUFFIX"
49143 fi
49144
49145
49146
49147
49148
49149
49150
49151
49152
49153
49154
49155
49156 PIC_FLAG=""
49157 if test "x$GCC" = "xyes"; then
49158 PIC_FLAG="-fPIC"
49159 fi
49160
49161 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
49162 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
49163 WINDOWS_IMPLIB=0
49164
49165 case "${BAKEFILE_HOST}" in
49166 *-hp-hpux* )
49167 if test "x$GCC" != "xyes"; then
49168 LDFLAGS="$LDFLAGS -L/usr/lib"
49169
49170 SHARED_LD_CC="${CC} -b -o"
49171 SHARED_LD_CXX="${CXX} -b -o"
49172 PIC_FLAG="+Z"
49173 fi
49174 ;;
49175
49176 *-*-linux* )
49177 if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
49178 PIC_FLAG="-KPIC"
49179 elif test "x$SUNCXX" = "xyes"; then
49180 SHARED_LD_CC="${CC} -G -o"
49181 SHARED_LD_CXX="${CXX} -G -o"
49182 PIC_FLAG="-KPIC"
49183 fi
49184 ;;
49185
49186 *-*-solaris2* )
49187 if test "x$SUNCXX" = xyes ; then
49188 SHARED_LD_CC="${CC} -G -o"
49189 SHARED_LD_CXX="${CXX} -G -o"
49190 PIC_FLAG="-KPIC"
49191 fi
49192 ;;
49193
49194 *-*-darwin* )
49195
49196 D='$'
49197 cat <<EOF >shared-ld-sh
49198 #!/bin/sh
49199 #-----------------------------------------------------------------------------
49200 #-- Name: distrib/mac/shared-ld-sh
49201 #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
49202 #-- Author: Gilles Depeyrot
49203 #-- Copyright: (c) 2002 Gilles Depeyrot
49204 #-- Licence: any use permitted
49205 #-----------------------------------------------------------------------------
49206
49207 verbose=0
49208 args=""
49209 objects=""
49210 linking_flag="-dynamiclib"
49211 ldargs="-r -keep_private_externs -nostdlib"
49212
49213 if test "x${D}CXX" = "x"; then
49214 CXX="c++"
49215 fi
49216
49217 while test ${D}# -gt 0; do
49218 case ${D}1 in
49219
49220 -v)
49221 verbose=1
49222 ;;
49223
49224 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
49225 # collect these options and values
49226 args="${D}{args} ${D}1 ${D}2"
49227 shift
49228 ;;
49229
49230 -arch|-isysroot)
49231 # collect these options and values
49232 ldargs="${D}{ldargs} ${D}1 ${D}2"
49233 shift
49234 ;;
49235
49236 -s|-Wl,*)
49237 # collect these load args
49238 ldargs="${D}{ldargs} ${D}1"
49239 ;;
49240
49241 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
49242 # collect these options
49243 args="${D}{args} ${D}1"
49244 ;;
49245
49246 -dynamiclib|-bundle)
49247 linking_flag="${D}1"
49248 ;;
49249
49250 -*)
49251 echo "shared-ld: unhandled option '${D}1'"
49252 exit 1
49253 ;;
49254
49255 *.o | *.a | *.dylib)
49256 # collect object files
49257 objects="${D}{objects} ${D}1"
49258 ;;
49259
49260 *)
49261 echo "shared-ld: unhandled argument '${D}1'"
49262 exit 1
49263 ;;
49264
49265 esac
49266 shift
49267 done
49268
49269 status=0
49270
49271 #
49272 # Link one module containing all the others
49273 #
49274 if test ${D}{verbose} = 1; then
49275 echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
49276 fi
49277 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
49278 status=${D}?
49279
49280 #
49281 # Link the shared library from the single module created, but only if the
49282 # previous command didn't fail:
49283 #
49284 if test ${D}{status} = 0; then
49285 if test ${D}{verbose} = 1; then
49286 echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
49287 fi
49288 ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
49289 status=${D}?
49290 fi
49291
49292 #
49293 # Remove intermediate module
49294 #
49295 rm -f master.${D}${D}.o
49296
49297 exit ${D}status
49298 EOF
49299
49300 chmod +x shared-ld-sh
49301
49302 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
49303 SHARED_LD_MODULE_CXX="CXX=\$(CXX) $SHARED_LD_MODULE_CC"
49304
49305
49306 { $as_echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
49307 $as_echo_n "checking for gcc 3.1 or later... " >&6; }
49308 if test "${bakefile_cv_gcc31+set}" = set; then
49309 $as_echo_n "(cached) " >&6
49310 else
49311
49312 cat >conftest.$ac_ext <<_ACEOF
49313 /* confdefs.h. */
49314 _ACEOF
49315 cat confdefs.h >>conftest.$ac_ext
49316 cat >>conftest.$ac_ext <<_ACEOF
49317 /* end confdefs.h. */
49318
49319 int
49320 main ()
49321 {
49322
49323 #if (__GNUC__ < 3) || \
49324 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
49325 This is old gcc
49326 #endif
49327
49328 ;
49329 return 0;
49330 }
49331 _ACEOF
49332 rm -f conftest.$ac_objext
49333 if { (ac_try="$ac_compile"
49334 case "(($ac_try" in
49335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49336 *) ac_try_echo=$ac_try;;
49337 esac
49338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49339 $as_echo "$ac_try_echo") >&5
49340 (eval "$ac_compile") 2>conftest.er1
49341 ac_status=$?
49342 grep -v '^ *+' conftest.er1 >conftest.err
49343 rm -f conftest.er1
49344 cat conftest.err >&5
49345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49346 (exit $ac_status); } && {
49347 test -z "$ac_c_werror_flag" ||
49348 test ! -s conftest.err
49349 } && test -s conftest.$ac_objext; then
49350
49351 bakefile_cv_gcc31=yes
49352
49353 else
49354 $as_echo "$as_me: failed program was:" >&5
49355 sed 's/^/| /' conftest.$ac_ext >&5
49356
49357
49358 bakefile_cv_gcc31=no
49359
49360
49361 fi
49362
49363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49364
49365 fi
49366 { $as_echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
49367 $as_echo "$bakefile_cv_gcc31" >&6; }
49368 if test "$bakefile_cv_gcc31" = "no"; then
49369 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
49370 SHARED_LD_CXX="$SHARED_LD_CC"
49371 else
49372 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
49373 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
49374 fi
49375
49376 if test "x$GCC" == "xyes"; then
49377 PIC_FLAG="-dynamic -fPIC"
49378 fi
49379 if test "x$XLCC" = "xyes"; then
49380 PIC_FLAG="-dynamic -DPIC"
49381 fi
49382 ;;
49383
49384 *-*-aix* )
49385 if test "x$GCC" = "xyes"; then
49386 PIC_FLAG=""
49387
49388 case "${BAKEFILE_HOST}" in
49389 *-*-aix5* )
49390 LD_EXPFULL="-Wl,-bexpfull"
49391 ;;
49392 esac
49393
49394 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
49395 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
49396 else
49397 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
49398 set dummy makeC++SharedLib; ac_word=$2
49399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
49400 $as_echo_n "checking for $ac_word... " >&6; }
49401 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
49402 $as_echo_n "(cached) " >&6
49403 else
49404 if test -n "$AIX_CXX_LD"; then
49405 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
49406 else
49407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49408 for as_dir in $PATH
49409 do
49410 IFS=$as_save_IFS
49411 test -z "$as_dir" && as_dir=.
49412 for ac_exec_ext in '' $ac_executable_extensions; do
49413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49414 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
49415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49416 break 2
49417 fi
49418 done
49419 done
49420 IFS=$as_save_IFS
49421
49422 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
49423 fi
49424 fi
49425 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
49426 if test -n "$AIX_CXX_LD"; then
49427 { $as_echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
49428 $as_echo "$AIX_CXX_LD" >&6; }
49429 else
49430 { $as_echo "$as_me:$LINENO: result: no" >&5
49431 $as_echo "no" >&6; }
49432 fi
49433
49434
49435 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
49436 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
49437 fi
49438 ;;
49439
49440 *-*-beos* )
49441 SHARED_LD_CC="${LD} -nostart -o"
49442 SHARED_LD_CXX="${LD} -nostart -o"
49443 ;;
49444
49445 *-*-irix* )
49446 if test "x$GCC" != "xyes"; then
49447 PIC_FLAG="-KPIC"
49448 fi
49449 ;;
49450
49451 *-*-cygwin* | *-*-mingw32* )
49452 PIC_FLAG=""
49453 SHARED_LD_CC="\$(CC) -shared -o"
49454 SHARED_LD_CXX="\$(CXX) -shared -o"
49455 WINDOWS_IMPLIB=1
49456 ;;
49457
49458 *-pc-os2_emx | *-pc-os2-emx )
49459 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49460 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49461 PIC_FLAG=""
49462
49463 D='$'
49464 cat <<EOF >dllar.sh
49465 #!/bin/sh
49466 #
49467 # dllar - a tool to build both a .dll and an .a file
49468 # from a set of object (.o) files for EMX/OS2.
49469 #
49470 # Written by Andrew Zabolotny, bit@freya.etu.ru
49471 # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
49472 #
49473 # This script will accept a set of files on the command line.
49474 # All the public symbols from the .o files will be exported into
49475 # a .DEF file, then linker will be run (through gcc) against them to
49476 # build a shared library consisting of all given .o files. All libraries
49477 # (.a) will be first decompressed into component .o files then act as
49478 # described above. You can optionally give a description (-d "description")
49479 # which will be put into .DLL. To see the list of accepted options (as well
49480 # as command-line format) simply run this program without options. The .DLL
49481 # is built to be imported by name (there is no guarantee that new versions
49482 # of the library you build will have same ordinals for same symbols).
49483 #
49484 # dllar is free software; you can redistribute it and/or modify
49485 # it under the terms of the GNU General Public License as published by
49486 # the Free Software Foundation; either version 2, or (at your option)
49487 # any later version.
49488 #
49489 # dllar is distributed in the hope that it will be useful,
49490 # but WITHOUT ANY WARRANTY; without even the implied warranty of
49491 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49492 # GNU General Public License for more details.
49493 #
49494 # You should have received a copy of the GNU General Public License
49495 # along with dllar; see the file COPYING. If not, write to the Free
49496 # Software Foundation, 59 Temple Place - Suite 330, Boston, MA
49497 # 02111-1307, USA.
49498
49499 # To successfuly run this program you will need:
49500 # - Current drive should have LFN support (HPFS, ext2, network, etc)
49501 # (Sometimes dllar generates filenames which won't fit 8.3 scheme)
49502 # - gcc
49503 # (used to build the .dll)
49504 # - emxexp
49505 # (used to create .def file from .o files)
49506 # - emximp
49507 # (used to create .a file from .def file)
49508 # - GNU text utilites (cat, sort, uniq)
49509 # used to process emxexp output
49510 # - GNU file utilities (mv, rm)
49511 # - GNU sed
49512 # - lxlite (optional, see flag below)
49513 # (used for general .dll cleanup)
49514 #
49515
49516 flag_USE_LXLITE=1;
49517
49518 #
49519 # helper functions
49520 # basnam, variant of basename, which does _not_ remove the path, _iff_
49521 # second argument (suffix to remove) is given
49522 basnam(){
49523 case ${D}# in
49524 1)
49525 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
49526 ;;
49527 2)
49528 echo ${D}1 | sed 's/'${D}2'${D}//'
49529 ;;
49530 *)
49531 echo "error in basnam ${D}*"
49532 exit 8
49533 ;;
49534 esac
49535 }
49536
49537 # Cleanup temporary files and output
49538 CleanUp() {
49539 cd ${D}curDir
49540 for i in ${D}inputFiles ; do
49541 case ${D}i in
49542 *!)
49543 rm -rf \`basnam ${D}i !\`
49544 ;;
49545 *)
49546 ;;
49547 esac
49548 done
49549
49550 # Kill result in case of failure as there is just to many stupid make/nmake
49551 # things out there which doesn't do this.
49552 if [ ${D}# -eq 0 ]; then
49553 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
49554 fi
49555 }
49556
49557 # Print usage and exit script with rc=1.
49558 PrintHelp() {
49559 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
49560 echo ' [-name-mangler-script script.sh]'
49561 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
49562 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
49563 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
49564 echo ' [*.o] [*.a]'
49565 echo '*> "output_file" should have no extension.'
49566 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
49567 echo ' The import library name is derived from this and is set to "name".a,'
49568 echo ' unless overridden by -import'
49569 echo '*> "importlib_name" should have no extension.'
49570 echo ' If it has the .o, or .a extension, it is automatically removed.'
49571 echo ' This name is used as the import library name and may be longer and'
49572 echo ' more descriptive than the DLL name which has to follow the old '
49573 echo ' 8.3 convention of FAT.'
49574 echo '*> "script.sh may be given to override the output_file name by a'
49575 echo ' different name. It is mainly useful if the regular make process'
49576 echo ' of some package does not take into account OS/2 restriction of'
49577 echo ' DLL name lengths. It takes the importlib name as input and is'
49578 echo ' supposed to procude a shorter name as output. The script should'
49579 echo ' expect to get importlib_name without extension and should produce'
49580 echo ' a (max.) 8 letter name without extension.'
49581 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
49582 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
49583 echo ' These flags will be put at the start of GCC command line.'
49584 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
49585 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
49586 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
49587 echo ' If the last character of a symbol is "*", all symbols beginning'
49588 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
49589 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
49590 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
49591 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
49592 echo ' C runtime DLLs.'
49593 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
49594 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
49595 echo ' unchanged to GCC at the end of command line.'
49596 echo '*> If you create a DLL from a library and you do not specify -o,'
49597 echo ' the basename for DLL and import library will be set to library name,'
49598 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
49599 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
49600 echo ' library will be renamed into gcc_s.a.'
49601 echo '--------'
49602 echo 'Example:'
49603 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
49604 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
49605 CleanUp
49606 exit 1
49607 }
49608
49609 # Execute a command.
49610 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
49611 # @Uses Whatever CleanUp() uses.
49612 doCommand() {
49613 echo "${D}*"
49614 eval ${D}*
49615 rcCmd=${D}?
49616
49617 if [ ${D}rcCmd -ne 0 ]; then
49618 echo "command failed, exit code="${D}rcCmd
49619 CleanUp
49620 exit ${D}rcCmd
49621 fi
49622 }
49623
49624 # main routine
49625 # setup globals
49626 cmdLine=${D}*
49627 outFile=""
49628 outimpFile=""
49629 inputFiles=""
49630 renameScript=""
49631 description=""
49632 CC=gcc.exe
49633 CFLAGS="-s -Zcrtdll"
49634 EXTRA_CFLAGS=""
49635 EXPORT_BY_ORDINALS=0
49636 exclude_symbols=""
49637 library_flags=""
49638 curDir=\`pwd\`
49639 curDirS=curDir
49640 case ${D}curDirS in
49641 */)
49642 ;;
49643 *)
49644 curDirS=${D}{curDirS}"/"
49645 ;;
49646 esac
49647 # Parse commandline
49648 libsToLink=0
49649 omfLinking=0
49650 while [ ${D}1 ]; do
49651 case ${D}1 in
49652 -ord*)
49653 EXPORT_BY_ORDINALS=1;
49654 ;;
49655 -o*)
49656 shift
49657 outFile=${D}1
49658 ;;
49659 -i*)
49660 shift
49661 outimpFile=${D}1
49662 ;;
49663 -name-mangler-script)
49664 shift
49665 renameScript=${D}1
49666 ;;
49667 -d*)
49668 shift
49669 description=${D}1
49670 ;;
49671 -f*)
49672 shift
49673 CFLAGS=${D}1
49674 ;;
49675 -c*)
49676 shift
49677 CC=${D}1
49678 ;;
49679 -h*)
49680 PrintHelp
49681 ;;
49682 -ex*)
49683 shift
49684 exclude_symbols=${D}{exclude_symbols}${D}1" "
49685 ;;
49686 -libf*)
49687 shift
49688 library_flags=${D}{library_flags}${D}1" "
49689 ;;
49690 -nocrt*)
49691 CFLAGS="-s"
49692 ;;
49693 -nolxl*)
49694 flag_USE_LXLITE=0
49695 ;;
49696 -* | /*)
49697 case ${D}1 in
49698 -L* | -l*)
49699 libsToLink=1
49700 ;;
49701 -Zomf)
49702 omfLinking=1
49703 ;;
49704 *)
49705 ;;
49706 esac
49707 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49708 ;;
49709 *.dll)
49710 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
49711 if [ ${D}omfLinking -eq 1 ]; then
49712 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
49713 else
49714 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
49715 fi
49716 ;;
49717 *)
49718 found=0;
49719 if [ ${D}libsToLink -ne 0 ]; then
49720 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49721 else
49722 for file in ${D}1 ; do
49723 if [ -f ${D}file ]; then
49724 inputFiles="${D}{inputFiles} ${D}file"
49725 found=1
49726 fi
49727 done
49728 if [ ${D}found -eq 0 ]; then
49729 echo "ERROR: No file(s) found: "${D}1
49730 exit 8
49731 fi
49732 fi
49733 ;;
49734 esac
49735 shift
49736 done # iterate cmdline words
49737
49738 #
49739 if [ -z "${D}inputFiles" ]; then
49740 echo "dllar: no input files"
49741 PrintHelp
49742 fi
49743
49744 # Now extract all .o files from .a files
49745 newInputFiles=""
49746 for file in ${D}inputFiles ; do
49747 case ${D}file in
49748 *.a | *.lib)
49749 case ${D}file in
49750 *.a)
49751 suffix=".a"
49752 AR="ar"
49753 ;;
49754 *.lib)
49755 suffix=".lib"
49756 AR="emxomfar"
49757 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
49758 ;;
49759 *)
49760 ;;
49761 esac
49762 dirname=\`basnam ${D}file ${D}suffix\`"_%"
49763 mkdir ${D}dirname
49764 if [ ${D}? -ne 0 ]; then
49765 echo "Failed to create subdirectory ./${D}dirname"
49766 CleanUp
49767 exit 8;
49768 fi
49769 # Append '!' to indicate archive
49770 newInputFiles="${D}newInputFiles ${D}{dirname}!"
49771 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
49772 cd ${D}curDir
49773 found=0;
49774 for subfile in ${D}dirname/*.o* ; do
49775 if [ -f ${D}subfile ]; then
49776 found=1
49777 if [ -s ${D}subfile ]; then
49778 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
49779 newInputFiles="${D}newInputFiles ${D}subfile"
49780 fi
49781 fi
49782 done
49783 if [ ${D}found -eq 0 ]; then
49784 echo "WARNING: there are no files in archive \\'${D}file\\'"
49785 fi
49786 ;;
49787 *)
49788 newInputFiles="${D}{newInputFiles} ${D}file"
49789 ;;
49790 esac
49791 done
49792 inputFiles="${D}newInputFiles"
49793
49794 # Output filename(s).
49795 do_backup=0;
49796 if [ -z ${D}outFile ]; then
49797 do_backup=1;
49798 set outFile ${D}inputFiles; outFile=${D}2
49799 fi
49800
49801 # If it is an archive, remove the '!' and the '_%' suffixes
49802 case ${D}outFile in
49803 *_%!)
49804 outFile=\`basnam ${D}outFile _%!\`
49805 ;;
49806 *)
49807 ;;
49808 esac
49809 case ${D}outFile in
49810 *.dll)
49811 outFile=\`basnam ${D}outFile .dll\`
49812 ;;
49813 *.DLL)
49814 outFile=\`basnam ${D}outFile .DLL\`
49815 ;;
49816 *.o)
49817 outFile=\`basnam ${D}outFile .o\`
49818 ;;
49819 *.obj)
49820 outFile=\`basnam ${D}outFile .obj\`
49821 ;;
49822 *.a)
49823 outFile=\`basnam ${D}outFile .a\`
49824 ;;
49825 *.lib)
49826 outFile=\`basnam ${D}outFile .lib\`
49827 ;;
49828 *)
49829 ;;
49830 esac
49831 case ${D}outimpFile in
49832 *.a)
49833 outimpFile=\`basnam ${D}outimpFile .a\`
49834 ;;
49835 *.lib)
49836 outimpFile=\`basnam ${D}outimpFile .lib\`
49837 ;;
49838 *)
49839 ;;
49840 esac
49841 if [ -z ${D}outimpFile ]; then
49842 outimpFile=${D}outFile
49843 fi
49844 defFile="${D}{outFile}.def"
49845 arcFile="${D}{outimpFile}.a"
49846 arcFile2="${D}{outimpFile}.lib"
49847
49848 #create ${D}dllFile as something matching 8.3 restrictions,
49849 if [ -z ${D}renameScript ] ; then
49850 dllFile="${D}outFile"
49851 else
49852 dllFile=\`${D}renameScript ${D}outimpFile\`
49853 fi
49854
49855 if [ ${D}do_backup -ne 0 ] ; then
49856 if [ -f ${D}arcFile ] ; then
49857 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
49858 fi
49859 if [ -f ${D}arcFile2 ] ; then
49860 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
49861 fi
49862 fi
49863
49864 # Extract public symbols from all the object files.
49865 tmpdefFile=${D}{defFile}_%
49866 rm -f ${D}tmpdefFile
49867 for file in ${D}inputFiles ; do
49868 case ${D}file in
49869 *!)
49870 ;;
49871 *)
49872 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
49873 ;;
49874 esac
49875 done
49876
49877 # Create the def file.
49878 rm -f ${D}defFile
49879 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
49880 dllFile="${D}{dllFile}.dll"
49881 if [ ! -z ${D}description ]; then
49882 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
49883 fi
49884 echo "EXPORTS" >> ${D}defFile
49885
49886 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
49887 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
49888
49889 # Checks if the export is ok or not.
49890 for word in ${D}exclude_symbols; do
49891 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
49892 mv ${D}{tmpdefFile}% ${D}tmpdefFile
49893 done
49894
49895
49896 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49897 sed "=" < ${D}tmpdefFile | \\
49898 sed '
49899 N
49900 : loop
49901 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
49902 t loop
49903 ' > ${D}{tmpdefFile}%
49904 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
49905 else
49906 rm -f ${D}{tmpdefFile}%
49907 fi
49908 cat ${D}tmpdefFile >> ${D}defFile
49909 rm -f ${D}tmpdefFile
49910
49911 # Do linking, create implib, and apply lxlite.
49912 gccCmdl="";
49913 for file in ${D}inputFiles ; do
49914 case ${D}file in
49915 *!)
49916 ;;
49917 *)
49918 gccCmdl="${D}gccCmdl ${D}file"
49919 ;;
49920 esac
49921 done
49922 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49923 touch "${D}{outFile}.dll"
49924
49925 doCommand "emximp -o ${D}arcFile ${D}defFile"
49926 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
49927 add_flags="";
49928 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49929 add_flags="-ynd"
49930 fi
49931 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
49932 fi
49933 doCommand "emxomf -s -l ${D}arcFile"
49934
49935 # Successful exit.
49936 CleanUp 1
49937 exit 0
49938 EOF
49939
49940 chmod +x dllar.sh
49941 ;;
49942
49943 powerpc-apple-macos* | \
49944 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
49945 *-*-mirbsd* | \
49946 *-*-sunos4* | \
49947 *-*-osf* | \
49948 *-*-dgux5* | \
49949 *-*-sysv5* | \
49950 *-pc-msdosdjgpp )
49951 ;;
49952
49953 *)
49954 { { $as_echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
49955 $as_echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
49956 { (exit 1); exit 1; }; }
49957 esac
49958
49959 if test "x$PIC_FLAG" != "x" ; then
49960 PIC_FLAG="$PIC_FLAG -DPIC"
49961 fi
49962
49963 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
49964 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
49965 fi
49966 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
49967 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
49968 fi
49969
49970
49971
49972
49973
49974
49975
49976
49977
49978 USE_SOVERSION=0
49979 USE_SOVERLINUX=0
49980 USE_SOVERSOLARIS=0
49981 USE_SOVERCYGWIN=0
49982 USE_SOSYMLINKS=0
49983 USE_MACVERSION=0
49984 SONAME_FLAG=
49985
49986 case "${BAKEFILE_HOST}" in
49987 *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
49988 *-*-k*bsd*-gnu | *-*-mirbsd* )
49989 if test "x$SUNCXX" = "xyes"; then
49990 SONAME_FLAG="-h "
49991 else
49992 SONAME_FLAG="-Wl,-soname,"
49993 fi
49994 USE_SOVERSION=1
49995 USE_SOVERLINUX=1
49996 USE_SOSYMLINKS=1
49997 ;;
49998
49999 *-*-solaris2* )
50000 SONAME_FLAG="-h "
50001 USE_SOVERSION=1
50002 USE_SOVERSOLARIS=1
50003 USE_SOSYMLINKS=1
50004 ;;
50005
50006 *-*-darwin* )
50007 USE_MACVERSION=1
50008 USE_SOVERSION=1
50009 USE_SOSYMLINKS=1
50010 ;;
50011
50012 *-*-cygwin* )
50013 USE_SOVERSION=1
50014 USE_SOVERCYGWIN=1
50015 ;;
50016 esac
50017
50018
50019
50020
50021
50022
50023
50024
50025
50026
50027 # Check whether --enable-dependency-tracking was given.
50028 if test "${enable_dependency_tracking+set}" = set; then
50029 enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
50030 fi
50031
50032
50033 { $as_echo "$as_me:$LINENO: checking for dependency tracking method" >&5
50034 $as_echo_n "checking for dependency tracking method... " >&6; }
50035
50036 BK_DEPS=""
50037 if test "x$bk_use_trackdeps" = "xno" ; then
50038 DEPS_TRACKING=0
50039 { $as_echo "$as_me:$LINENO: result: disabled" >&5
50040 $as_echo "disabled" >&6; }
50041 else
50042 DEPS_TRACKING=1
50043
50044 if test "x$GCC" = "xyes"; then
50045 DEPSMODE=gcc
50046 case "${BAKEFILE_HOST}" in
50047 *-*-darwin* )
50048 DEPSFLAG="-no-cpp-precomp -MMD"
50049 ;;
50050 * )
50051 DEPSFLAG="-MMD"
50052 ;;
50053 esac
50054 { $as_echo "$as_me:$LINENO: result: gcc" >&5
50055 $as_echo "gcc" >&6; }
50056 elif test "x$MWCC" = "xyes"; then
50057 DEPSMODE=mwcc
50058 DEPSFLAG="-MM"
50059 { $as_echo "$as_me:$LINENO: result: mwcc" >&5
50060 $as_echo "mwcc" >&6; }
50061 elif test "x$SUNCC" = "xyes"; then
50062 DEPSMODE=unixcc
50063 DEPSFLAG="-xM1"
50064 { $as_echo "$as_me:$LINENO: result: Sun cc" >&5
50065 $as_echo "Sun cc" >&6; }
50066 elif test "x$SGICC" = "xyes"; then
50067 DEPSMODE=unixcc
50068 DEPSFLAG="-M"
50069 { $as_echo "$as_me:$LINENO: result: SGI cc" >&5
50070 $as_echo "SGI cc" >&6; }
50071 elif test "x$HPCC" = "xyes"; then
50072 DEPSMODE=unixcc
50073 DEPSFLAG="+make"
50074 { $as_echo "$as_me:$LINENO: result: HP cc" >&5
50075 $as_echo "HP cc" >&6; }
50076 elif test "x$COMPAQCC" = "xyes"; then
50077 DEPSMODE=gcc
50078 DEPSFLAG="-MD"
50079 { $as_echo "$as_me:$LINENO: result: Compaq cc" >&5
50080 $as_echo "Compaq cc" >&6; }
50081 else
50082 DEPS_TRACKING=0
50083 { $as_echo "$as_me:$LINENO: result: none" >&5
50084 $as_echo "none" >&6; }
50085 fi
50086
50087 if test $DEPS_TRACKING = 1 ; then
50088
50089 D='$'
50090 cat <<EOF >bk-deps
50091 #!/bin/sh
50092
50093 # This script is part of Bakefile (http://www.bakefile.org) autoconf
50094 # script. It is used to track C/C++ files dependencies in portable way.
50095 #
50096 # Permission is given to use this file in any way.
50097
50098 DEPSMODE=${DEPSMODE}
50099 DEPSFLAG="${DEPSFLAG}"
50100 DEPSDIRBASE=.deps
50101
50102 if test ${D}DEPSMODE = gcc ; then
50103 ${D}* ${D}{DEPSFLAG}
50104 status=${D}?
50105
50106 # determine location of created files:
50107 while test ${D}# -gt 0; do
50108 case "${D}1" in
50109 -o )
50110 shift
50111 objfile=${D}1
50112 ;;
50113 -* )
50114 ;;
50115 * )
50116 srcfile=${D}1
50117 ;;
50118 esac
50119 shift
50120 done
50121 objfilebase=\`basename ${D}objfile\`
50122 builddir=\`dirname ${D}objfile\`
50123 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
50124 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
50125 depsdir=${D}builddir/${D}DEPSDIRBASE
50126 mkdir -p ${D}depsdir
50127
50128 # if the compiler failed, we're done:
50129 if test ${D}{status} != 0 ; then
50130 rm -f ${D}depfile
50131 exit ${D}{status}
50132 fi
50133
50134 # move created file to the location we want it in:
50135 if test -f ${D}depfile ; then
50136 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
50137 rm -f ${D}depfile
50138 else
50139 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
50140 depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
50141 if test ! -f ${D}depfile ; then
50142 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
50143 depfile="${D}objfile.d"
50144 fi
50145 if test -f ${D}depfile ; then
50146 sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
50147 rm -f ${D}depfile
50148 fi
50149 fi
50150 exit 0
50151
50152 elif test ${D}DEPSMODE = mwcc ; then
50153 ${D}* || exit ${D}?
50154 # Run mwcc again with -MM and redirect into the dep file we want
50155 # NOTE: We can't use shift here because we need ${D}* to be valid
50156 prevarg=
50157 for arg in ${D}* ; do
50158 if test "${D}prevarg" = "-o"; then
50159 objfile=${D}arg
50160 else
50161 case "${D}arg" in
50162 -* )
50163 ;;
50164 * )
50165 srcfile=${D}arg
50166 ;;
50167 esac
50168 fi
50169 prevarg="${D}arg"
50170 done
50171
50172 objfilebase=\`basename ${D}objfile\`
50173 builddir=\`dirname ${D}objfile\`
50174 depsdir=${D}builddir/${D}DEPSDIRBASE
50175 mkdir -p ${D}depsdir
50176
50177 ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
50178 exit 0
50179
50180 elif test ${D}DEPSMODE = unixcc; then
50181 ${D}* || exit ${D}?
50182 # Run compiler again with deps flag and redirect into the dep file.
50183 # It doesn't work if the '-o FILE' option is used, but without it the
50184 # dependency file will contain the wrong name for the object. So it is
50185 # removed from the command line, and the dep file is fixed with sed.
50186 cmd=""
50187 while test ${D}# -gt 0; do
50188 case "${D}1" in
50189 -o )
50190 shift
50191 objfile=${D}1
50192 ;;
50193 * )
50194 eval arg${D}#=\\${D}1
50195 cmd="${D}cmd \\${D}arg${D}#"
50196 ;;
50197 esac
50198 shift
50199 done
50200
50201 objfilebase=\`basename ${D}objfile\`
50202 builddir=\`dirname ${D}objfile\`
50203 depsdir=${D}builddir/${D}DEPSDIRBASE
50204 mkdir -p ${D}depsdir
50205
50206 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
50207 exit 0
50208
50209 else
50210 ${D}*
50211 exit ${D}?
50212 fi
50213 EOF
50214
50215 chmod +x bk-deps
50216 BK_DEPS="`pwd`/bk-deps"
50217 fi
50218 fi
50219
50220
50221
50222
50223
50224 case ${BAKEFILE_HOST} in
50225 *-*-cygwin* | *-*-mingw32* )
50226 if test -n "$ac_tool_prefix"; then
50227 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
50228 set dummy ${ac_tool_prefix}windres; ac_word=$2
50229 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
50230 $as_echo_n "checking for $ac_word... " >&6; }
50231 if test "${ac_cv_prog_WINDRES+set}" = set; then
50232 $as_echo_n "(cached) " >&6
50233 else
50234 if test -n "$WINDRES"; then
50235 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
50236 else
50237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50238 for as_dir in $PATH
50239 do
50240 IFS=$as_save_IFS
50241 test -z "$as_dir" && as_dir=.
50242 for ac_exec_ext in '' $ac_executable_extensions; do
50243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50244 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
50245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50246 break 2
50247 fi
50248 done
50249 done
50250 IFS=$as_save_IFS
50251
50252 fi
50253 fi
50254 WINDRES=$ac_cv_prog_WINDRES
50255 if test -n "$WINDRES"; then
50256 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
50257 $as_echo "$WINDRES" >&6; }
50258 else
50259 { $as_echo "$as_me:$LINENO: result: no" >&5
50260 $as_echo "no" >&6; }
50261 fi
50262
50263
50264 fi
50265 if test -z "$ac_cv_prog_WINDRES"; then
50266 ac_ct_WINDRES=$WINDRES
50267 # Extract the first word of "windres", so it can be a program name with args.
50268 set dummy windres; ac_word=$2
50269 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
50270 $as_echo_n "checking for $ac_word... " >&6; }
50271 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
50272 $as_echo_n "(cached) " >&6
50273 else
50274 if test -n "$ac_ct_WINDRES"; then
50275 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
50276 else
50277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50278 for as_dir in $PATH
50279 do
50280 IFS=$as_save_IFS
50281 test -z "$as_dir" && as_dir=.
50282 for ac_exec_ext in '' $ac_executable_extensions; do
50283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50284 ac_cv_prog_ac_ct_WINDRES="windres"
50285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50286 break 2
50287 fi
50288 done
50289 done
50290 IFS=$as_save_IFS
50291
50292 fi
50293 fi
50294 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
50295 if test -n "$ac_ct_WINDRES"; then
50296 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
50297 $as_echo "$ac_ct_WINDRES" >&6; }
50298 else
50299 { $as_echo "$as_me:$LINENO: result: no" >&5
50300 $as_echo "no" >&6; }
50301 fi
50302
50303 if test "x$ac_ct_WINDRES" = x; then
50304 WINDRES=""
50305 else
50306 case $cross_compiling:$ac_tool_warned in
50307 yes:)
50308 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
50309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
50310 ac_tool_warned=yes ;;
50311 esac
50312 WINDRES=$ac_ct_WINDRES
50313 fi
50314 else
50315 WINDRES="$ac_cv_prog_WINDRES"
50316 fi
50317
50318 ;;
50319
50320 *-*-darwin* | powerpc-apple-macos* )
50321 # Extract the first word of "Rez", so it can be a program name with args.
50322 set dummy Rez; ac_word=$2
50323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
50324 $as_echo_n "checking for $ac_word... " >&6; }
50325 if test "${ac_cv_prog_REZ+set}" = set; then
50326 $as_echo_n "(cached) " >&6
50327 else
50328 if test -n "$REZ"; then
50329 ac_cv_prog_REZ="$REZ" # Let the user override the test.
50330 else
50331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50332 for as_dir in $PATH
50333 do
50334 IFS=$as_save_IFS
50335 test -z "$as_dir" && as_dir=.
50336 for ac_exec_ext in '' $ac_executable_extensions; do
50337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50338 ac_cv_prog_REZ="Rez"
50339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50340 break 2
50341 fi
50342 done
50343 done
50344 IFS=$as_save_IFS
50345
50346 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
50347 fi
50348 fi
50349 REZ=$ac_cv_prog_REZ
50350 if test -n "$REZ"; then
50351 { $as_echo "$as_me:$LINENO: result: $REZ" >&5
50352 $as_echo "$REZ" >&6; }
50353 else
50354 { $as_echo "$as_me:$LINENO: result: no" >&5
50355 $as_echo "no" >&6; }
50356 fi
50357
50358
50359 # Extract the first word of "SetFile", so it can be a program name with args.
50360 set dummy SetFile; ac_word=$2
50361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
50362 $as_echo_n "checking for $ac_word... " >&6; }
50363 if test "${ac_cv_prog_SETFILE+set}" = set; then
50364 $as_echo_n "(cached) " >&6
50365 else
50366 if test -n "$SETFILE"; then
50367 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
50368 else
50369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50370 for as_dir in $PATH
50371 do
50372 IFS=$as_save_IFS
50373 test -z "$as_dir" && as_dir=.
50374 for ac_exec_ext in '' $ac_executable_extensions; do
50375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50376 ac_cv_prog_SETFILE="SetFile"
50377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50378 break 2
50379 fi
50380 done
50381 done
50382 IFS=$as_save_IFS
50383
50384 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
50385 fi
50386 fi
50387 SETFILE=$ac_cv_prog_SETFILE
50388 if test -n "$SETFILE"; then
50389 { $as_echo "$as_me:$LINENO: result: $SETFILE" >&5
50390 $as_echo "$SETFILE" >&6; }
50391 else
50392 { $as_echo "$as_me:$LINENO: result: no" >&5
50393 $as_echo "no" >&6; }
50394 fi
50395
50396
50397 ;;
50398 esac
50399
50400
50401
50402
50403
50404
50405
50406
50407
50408 BAKEFILE_BAKEFILE_M4_VERSION="0.2.5"
50409
50410
50411 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.5"
50412
50413
50414
50415 # Check whether --enable-precomp-headers was given.
50416 if test "${enable_precomp_headers+set}" = set; then
50417 enableval=$enable_precomp_headers; bk_use_pch="$enableval"
50418 fi
50419
50420
50421 GCC_PCH=0
50422 ICC_PCH=0
50423 USE_PCH=0
50424 BK_MAKE_PCH=""
50425
50426 case ${BAKEFILE_HOST} in
50427 *-*-cygwin* )
50428 bk_use_pch="no"
50429 ;;
50430 esac
50431
50432 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
50433 if test "x$GCC" = "xyes"; then
50434 { $as_echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
50435 $as_echo_n "checking if the compiler supports precompiled headers... " >&6; }
50436 cat >conftest.$ac_ext <<_ACEOF
50437 /* confdefs.h. */
50438 _ACEOF
50439 cat confdefs.h >>conftest.$ac_ext
50440 cat >>conftest.$ac_ext <<_ACEOF
50441 /* end confdefs.h. */
50442
50443 int
50444 main ()
50445 {
50446
50447 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
50448 There is no PCH support
50449 #endif
50450 #if (__GNUC__ < 3)
50451 There is no PCH support
50452 #endif
50453 #if (__GNUC__ == 3) && \
50454 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
50455 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
50456 ( defined(__INTEL_COMPILER) )
50457 There is no PCH support
50458 #endif
50459
50460 ;
50461 return 0;
50462 }
50463 _ACEOF
50464 rm -f conftest.$ac_objext
50465 if { (ac_try="$ac_compile"
50466 case "(($ac_try" in
50467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50468 *) ac_try_echo=$ac_try;;
50469 esac
50470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50471 $as_echo "$ac_try_echo") >&5
50472 (eval "$ac_compile") 2>conftest.er1
50473 ac_status=$?
50474 grep -v '^ *+' conftest.er1 >conftest.err
50475 rm -f conftest.er1
50476 cat conftest.err >&5
50477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50478 (exit $ac_status); } && {
50479 test -z "$ac_c_werror_flag" ||
50480 test ! -s conftest.err
50481 } && test -s conftest.$ac_objext; then
50482
50483 { $as_echo "$as_me:$LINENO: result: yes" >&5
50484 $as_echo "yes" >&6; }
50485 GCC_PCH=1
50486
50487 else
50488 $as_echo "$as_me: failed program was:" >&5
50489 sed 's/^/| /' conftest.$ac_ext >&5
50490
50491
50492 if test "$INTELCXX8" = "yes"; then
50493 { $as_echo "$as_me:$LINENO: result: yes" >&5
50494 $as_echo "yes" >&6; }
50495 ICC_PCH=1
50496 if test "$INTELCXX10" = "yes"; then
50497 ICC_PCH_CREATE_SWITCH="-pch-create"
50498 ICC_PCH_USE_SWITCH="-pch-use"
50499 else
50500 ICC_PCH_CREATE_SWITCH="-create-pch"
50501 ICC_PCH_USE_SWITCH="-use-pch"
50502 fi
50503 else
50504 { $as_echo "$as_me:$LINENO: result: no" >&5
50505 $as_echo "no" >&6; }
50506 fi
50507
50508 fi
50509
50510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50511 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
50512 USE_PCH=1
50513
50514 D='$'
50515 cat <<EOF >bk-make-pch
50516 #!/bin/sh
50517
50518 # This script is part of Bakefile (http://www.bakefile.org) autoconf
50519 # script. It is used to generated precompiled headers.
50520 #
50521 # Permission is given to use this file in any way.
50522
50523 outfile="${D}{1}"
50524 header="${D}{2}"
50525 shift
50526 shift
50527
50528 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
50529
50530 compiler=""
50531 headerfile=""
50532
50533 while test ${D}{#} -gt 0; do
50534 add_to_cmdline=1
50535 case "${D}{1}" in
50536 -I* )
50537 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
50538 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
50539 headerfile="${D}{incdir}/${D}{header}"
50540 fi
50541 ;;
50542 -use-pch|-use_pch|-pch-use )
50543 shift
50544 add_to_cmdline=0
50545 ;;
50546 esac
50547 if test ${D}add_to_cmdline = 1 ; then
50548 compiler="${D}{compiler} ${D}{1}"
50549 fi
50550 shift
50551 done
50552
50553 if test "x${D}{headerfile}" = "x" ; then
50554 echo "error: can't find header ${D}{header} in include paths" >&2
50555 else
50556 if test -f ${D}{outfile} ; then
50557 rm -f ${D}{outfile}
50558 else
50559 mkdir -p \`dirname ${D}{outfile}\`
50560 fi
50561 depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
50562 mkdir -p ${D}{builddir}/.deps
50563 if test "x${GCC_PCH}" = "x1" ; then
50564 # can do this because gcc is >= 3.4:
50565 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
50566 elif test "x${ICC_PCH}" = "x1" ; then
50567 filename=pch_gen-${D}${D}
50568 file=${D}{filename}.c
50569 dfile=${D}{filename}.d
50570 cat > ${D}file <<EOT
50571 #include "${D}header"
50572 EOT
50573 # using -MF icc complains about differing command lines in creation/use
50574 ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
50575 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
50576 rm -f ${D}file ${D}dfile ${D}{filename}.o
50577 fi
50578 exit ${D}{?}
50579 fi
50580 EOF
50581
50582 chmod +x bk-make-pch
50583 BK_MAKE_PCH="`pwd`/bk-make-pch"
50584 fi
50585 fi
50586 fi
50587
50588
50589
50590
50591
50592
50593
50594 COND_BUILD_DEBUG="#"
50595 if test "x$BUILD" = "xdebug" ; then
50596 COND_BUILD_DEBUG=""
50597 fi
50598
50599 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
50600 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
50601 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
50602 fi
50603
50604 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
50605 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
50606 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
50607 fi
50608
50609 COND_BUILD_DEBUG_UNICODE_0="#"
50610 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
50611 COND_BUILD_DEBUG_UNICODE_0=""
50612 fi
50613
50614 COND_BUILD_DEBUG_UNICODE_1="#"
50615 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
50616 COND_BUILD_DEBUG_UNICODE_1=""
50617 fi
50618
50619 COND_BUILD_RELEASE="#"
50620 if test "x$BUILD" = "xrelease" ; then
50621 COND_BUILD_RELEASE=""
50622 fi
50623
50624 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
50625 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
50626 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
50627 fi
50628
50629 COND_BUILD_RELEASE_UNICODE_0="#"
50630 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
50631 COND_BUILD_RELEASE_UNICODE_0=""
50632 fi
50633
50634 COND_BUILD_RELEASE_UNICODE_1="#"
50635 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
50636 COND_BUILD_RELEASE_UNICODE_1=""
50637 fi
50638
50639 COND_BUILD_debug="#"
50640 if test "x$BUILD" = "xdebug" ; then
50641 COND_BUILD_debug=""
50642 fi
50643
50644 COND_BUILD_debug_DEBUG_FLAG_default="#"
50645 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
50646 COND_BUILD_debug_DEBUG_FLAG_default=""
50647 fi
50648
50649 COND_BUILD_debug_DEBUG_INFO_default="#"
50650 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
50651 COND_BUILD_debug_DEBUG_INFO_default=""
50652 fi
50653
50654 COND_BUILD_debug_UNICODE_0="#"
50655 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
50656 COND_BUILD_debug_UNICODE_0=""
50657 fi
50658
50659 COND_BUILD_debug_UNICODE_1="#"
50660 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
50661 COND_BUILD_debug_UNICODE_1=""
50662 fi
50663
50664 COND_BUILD_release="#"
50665 if test "x$BUILD" = "xrelease" ; then
50666 COND_BUILD_release=""
50667 fi
50668
50669 COND_BUILD_release_DEBUG_INFO_default="#"
50670 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
50671 COND_BUILD_release_DEBUG_INFO_default=""
50672 fi
50673
50674 COND_BUILD_release_UNICODE_0="#"
50675 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
50676 COND_BUILD_release_UNICODE_0=""
50677 fi
50678
50679 COND_BUILD_release_UNICODE_1="#"
50680 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
50681 COND_BUILD_release_UNICODE_1=""
50682 fi
50683
50684 COND_DEBUG_FLAG_1="#"
50685 if test "x$DEBUG_FLAG" = "x1" ; then
50686 COND_DEBUG_FLAG_1=""
50687 fi
50688
50689 COND_DEBUG_INFO_0="#"
50690 if test "x$DEBUG_INFO" = "x0" ; then
50691 COND_DEBUG_INFO_0=""
50692 fi
50693
50694 COND_DEBUG_INFO_1="#"
50695 if test "x$DEBUG_INFO" = "x1" ; then
50696 COND_DEBUG_INFO_1=""
50697 fi
50698
50699 COND_DEPS_TRACKING_0="#"
50700 if test "x$DEPS_TRACKING" = "x0" ; then
50701 COND_DEPS_TRACKING_0=""
50702 fi
50703
50704 COND_DEPS_TRACKING_1="#"
50705 if test "x$DEPS_TRACKING" = "x1" ; then
50706 COND_DEPS_TRACKING_1=""
50707 fi
50708
50709 COND_GCC_PCH_1="#"
50710 if test "x$GCC_PCH" = "x1" ; then
50711 COND_GCC_PCH_1=""
50712 fi
50713
50714 COND_ICC_PCH_1="#"
50715 if test "x$ICC_PCH" = "x1" ; then
50716 COND_ICC_PCH_1=""
50717 fi
50718
50719 COND_MONOLITHIC_0="#"
50720 if test "x$MONOLITHIC" = "x0" ; then
50721 COND_MONOLITHIC_0=""
50722 fi
50723
50724 COND_MONOLITHIC_0_SHARED_0="#"
50725 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
50726 COND_MONOLITHIC_0_SHARED_0=""
50727 fi
50728
50729 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
50730 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
50731 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
50732 fi
50733
50734 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
50735 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
50736 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
50737 fi
50738
50739 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
50740 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50741 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
50742 fi
50743
50744 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
50745 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50746 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
50747 fi
50748
50749 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
50750 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50751 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
50752 fi
50753
50754 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
50755 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
50756 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
50757 fi
50758
50759 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
50760 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50761 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
50762 fi
50763
50764 COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
50765 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
50766 COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
50767 fi
50768
50769 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
50770 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50771 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
50772 fi
50773
50774 COND_MONOLITHIC_0_SHARED_1="#"
50775 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
50776 COND_MONOLITHIC_0_SHARED_1=""
50777 fi
50778
50779 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
50780 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
50781 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
50782 fi
50783
50784 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
50785 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
50786 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
50787 fi
50788
50789 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
50790 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50791 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
50792 fi
50793
50794 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
50795 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50796 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
50797 fi
50798
50799 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
50800 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50801 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
50802 fi
50803
50804 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
50805 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
50806 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
50807 fi
50808
50809 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
50810 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
50811 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
50812 fi
50813
50814 COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
50815 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
50816 COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
50817 fi
50818
50819 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
50820 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50821 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
50822 fi
50823
50824 COND_MONOLITHIC_0_USE_AUI_1="#"
50825 if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
50826 COND_MONOLITHIC_0_USE_AUI_1=""
50827 fi
50828
50829 COND_MONOLITHIC_0_USE_GUI_1="#"
50830 if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
50831 COND_MONOLITHIC_0_USE_GUI_1=""
50832 fi
50833
50834 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
50835 if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50836 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
50837 fi
50838
50839 COND_MONOLITHIC_0_USE_HTML_1="#"
50840 if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
50841 COND_MONOLITHIC_0_USE_HTML_1=""
50842 fi
50843
50844 COND_MONOLITHIC_0_USE_MEDIA_1="#"
50845 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
50846 COND_MONOLITHIC_0_USE_MEDIA_1=""
50847 fi
50848
50849 COND_MONOLITHIC_0_USE_PROPGRID_1="#"
50850 if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
50851 COND_MONOLITHIC_0_USE_PROPGRID_1=""
50852 fi
50853
50854 COND_MONOLITHIC_0_USE_QA_1="#"
50855 if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
50856 COND_MONOLITHIC_0_USE_QA_1=""
50857 fi
50858
50859 COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
50860 if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50861 COND_MONOLITHIC_0_USE_RICHTEXT_1=""
50862 fi
50863
50864 COND_MONOLITHIC_0_USE_STC_1="#"
50865 if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
50866 COND_MONOLITHIC_0_USE_STC_1=""
50867 fi
50868
50869 COND_MONOLITHIC_0_USE_XRC_1="#"
50870 if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
50871 COND_MONOLITHIC_0_USE_XRC_1=""
50872 fi
50873
50874 COND_MONOLITHIC_1="#"
50875 if test "x$MONOLITHIC" = "x1" ; then
50876 COND_MONOLITHIC_1=""
50877 fi
50878
50879 COND_MONOLITHIC_1_SHARED_0="#"
50880 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
50881 COND_MONOLITHIC_1_SHARED_0=""
50882 fi
50883
50884 COND_MONOLITHIC_1_SHARED_1="#"
50885 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
50886 COND_MONOLITHIC_1_SHARED_1=""
50887 fi
50888
50889 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
50890 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
50891 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
50892 fi
50893
50894 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
50895 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
50896 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
50897 fi
50898
50899 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
50900 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50901 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
50902 fi
50903
50904 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
50905 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50906 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
50907 fi
50908
50909 COND_PLATFORM_MACOSX_1="#"
50910 if test "x$PLATFORM_MACOSX" = "x1" ; then
50911 COND_PLATFORM_MACOSX_1=""
50912 fi
50913
50914 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
50915 if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
50916 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
50917 fi
50918
50919 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50920 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50921 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50922 fi
50923
50924 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
50925 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50926 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
50927 fi
50928
50929 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50930 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50931 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50932 fi
50933
50934 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
50935 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50936 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
50937 fi
50938
50939 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
50940 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
50941 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
50942 fi
50943
50944 COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
50945 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50946 COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
50947 fi
50948
50949 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
50950 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50951 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
50952 fi
50953
50954 COND_PLATFORM_MACOS_1="#"
50955 if test "x$PLATFORM_MACOS" = "x1" ; then
50956 COND_PLATFORM_MACOS_1=""
50957 fi
50958
50959 COND_PLATFORM_MAC_0="#"
50960 if test "x$PLATFORM_MAC" = "x0" ; then
50961 COND_PLATFORM_MAC_0=""
50962 fi
50963
50964 COND_PLATFORM_MAC_1="#"
50965 if test "x$PLATFORM_MAC" = "x1" ; then
50966 COND_PLATFORM_MAC_1=""
50967 fi
50968
50969 COND_PLATFORM_MSDOS_0="#"
50970 if test "x$PLATFORM_MSDOS" = "x0" ; then
50971 COND_PLATFORM_MSDOS_0=""
50972 fi
50973
50974 COND_PLATFORM_MSDOS_1="#"
50975 if test "x$PLATFORM_MSDOS" = "x1" ; then
50976 COND_PLATFORM_MSDOS_1=""
50977 fi
50978
50979 COND_PLATFORM_OS2_1="#"
50980 if test "x$PLATFORM_OS2" = "x1" ; then
50981 COND_PLATFORM_OS2_1=""
50982 fi
50983
50984 COND_PLATFORM_UNIX_0="#"
50985 if test "x$PLATFORM_UNIX" = "x0" ; then
50986 COND_PLATFORM_UNIX_0=""
50987 fi
50988
50989 COND_PLATFORM_UNIX_1="#"
50990 if test "x$PLATFORM_UNIX" = "x1" ; then
50991 COND_PLATFORM_UNIX_1=""
50992 fi
50993
50994 COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
50995 if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
50996 COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
50997 fi
50998
50999 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
51000 if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
51001 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
51002 fi
51003
51004 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
51005 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
51006 COND_PLATFORM_UNIX_1_USE_GUI_1=""
51007 fi
51008
51009 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
51010 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
51011 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
51012 fi
51013
51014 COND_PLATFORM_WIN32_0="#"
51015 if test "x$PLATFORM_WIN32" = "x0" ; then
51016 COND_PLATFORM_WIN32_0=""
51017 fi
51018
51019 COND_PLATFORM_WIN32_1="#"
51020 if test "x$PLATFORM_WIN32" = "x1" ; then
51021 COND_PLATFORM_WIN32_1=""
51022 fi
51023
51024 COND_SHARED_0="#"
51025 if test "x$SHARED" = "x0" ; then
51026 COND_SHARED_0=""
51027 fi
51028
51029 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
51030 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
51031 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
51032 fi
51033
51034 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
51035 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
51036 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
51037 fi
51038
51039 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
51040 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
51041 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
51042 fi
51043
51044 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
51045 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51046 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
51047 fi
51048
51049 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
51050 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51051 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
51052 fi
51053
51054 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
51055 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51056 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
51057 fi
51058
51059 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
51060 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51061 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
51062 fi
51063
51064 COND_SHARED_0_USE_STC_1="#"
51065 if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51066 COND_SHARED_0_USE_STC_1=""
51067 fi
51068
51069 COND_SHARED_0_wxUSE_EXPAT_builtin="#"
51070 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
51071 COND_SHARED_0_wxUSE_EXPAT_builtin=""
51072 fi
51073
51074 COND_SHARED_0_wxUSE_REGEX_builtin="#"
51075 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
51076 COND_SHARED_0_wxUSE_REGEX_builtin=""
51077 fi
51078
51079 COND_SHARED_0_wxUSE_ZLIB_builtin="#"
51080 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
51081 COND_SHARED_0_wxUSE_ZLIB_builtin=""
51082 fi
51083
51084 COND_SHARED_1="#"
51085 if test "x$SHARED" = "x1" ; then
51086 COND_SHARED_1=""
51087 fi
51088
51089 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
51090 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51091 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
51092 fi
51093
51094 COND_TOOLKIT_="#"
51095 if test "x$TOOLKIT" = "x" ; then
51096 COND_TOOLKIT_=""
51097 fi
51098
51099 COND_TOOLKIT_COCOA="#"
51100 if test "x$TOOLKIT" = "xCOCOA" ; then
51101 COND_TOOLKIT_COCOA=""
51102 fi
51103
51104 COND_TOOLKIT_COCOA_USE_GUI_1="#"
51105 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
51106 COND_TOOLKIT_COCOA_USE_GUI_1=""
51107 fi
51108
51109 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
51110 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51111 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
51112 fi
51113
51114 COND_TOOLKIT_DFB="#"
51115 if test "x$TOOLKIT" = "xDFB" ; then
51116 COND_TOOLKIT_DFB=""
51117 fi
51118
51119 COND_TOOLKIT_DFB_USE_GUI_1="#"
51120 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
51121 COND_TOOLKIT_DFB_USE_GUI_1=""
51122 fi
51123
51124 COND_TOOLKIT_GTK="#"
51125 if test "x$TOOLKIT" = "xGTK" ; then
51126 COND_TOOLKIT_GTK=""
51127 fi
51128
51129 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
51130 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
51131 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
51132 fi
51133
51134 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
51135 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
51136 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
51137 fi
51138
51139 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
51140 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
51141 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
51142 fi
51143
51144 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
51145 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51146 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
51147 fi
51148
51149 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
51150 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
51151 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
51152 fi
51153
51154 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
51155 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51156 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
51157 fi
51158
51159 COND_TOOLKIT_GTK_USE_GUI_1="#"
51160 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
51161 COND_TOOLKIT_GTK_USE_GUI_1=""
51162 fi
51163
51164 COND_TOOLKIT_MAC="#"
51165 if test "x$TOOLKIT" = "xMAC" ; then
51166 COND_TOOLKIT_MAC=""
51167 fi
51168
51169 COND_TOOLKIT_MGL="#"
51170 if test "x$TOOLKIT" = "xMGL" ; then
51171 COND_TOOLKIT_MGL=""
51172 fi
51173
51174 COND_TOOLKIT_MGL_USE_GUI_1="#"
51175 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
51176 COND_TOOLKIT_MGL_USE_GUI_1=""
51177 fi
51178
51179 COND_TOOLKIT_MOTIF="#"
51180 if test "x$TOOLKIT" = "xMOTIF" ; then
51181 COND_TOOLKIT_MOTIF=""
51182 fi
51183
51184 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
51185 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
51186 COND_TOOLKIT_MOTIF_USE_GUI_1=""
51187 fi
51188
51189 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
51190 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51191 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
51192 fi
51193
51194 COND_TOOLKIT_MSW="#"
51195 if test "x$TOOLKIT" = "xMSW" ; then
51196 COND_TOOLKIT_MSW=""
51197 fi
51198
51199 COND_TOOLKIT_MSW_USE_GUI_1="#"
51200 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
51201 COND_TOOLKIT_MSW_USE_GUI_1=""
51202 fi
51203
51204 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
51205 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51206 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
51207 fi
51208
51209 COND_TOOLKIT_MSW_WXUNIV_0="#"
51210 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
51211 COND_TOOLKIT_MSW_WXUNIV_0=""
51212 fi
51213
51214 COND_TOOLKIT_OSX_CARBON="#"
51215 if test "x$TOOLKIT" = "xOSX_CARBON" ; then
51216 COND_TOOLKIT_OSX_CARBON=""
51217 fi
51218
51219 COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
51220 if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
51221 COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
51222 fi
51223
51224 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
51225 if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51226 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
51227 fi
51228
51229 COND_TOOLKIT_OSX_COCOA="#"
51230 if test "x$TOOLKIT" = "xOSX_COCOA" ; then
51231 COND_TOOLKIT_OSX_COCOA=""
51232 fi
51233
51234 COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
51235 if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
51236 COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
51237 fi
51238
51239 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
51240 if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51241 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
51242 fi
51243
51244 COND_TOOLKIT_OSX_IPHONE="#"
51245 if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
51246 COND_TOOLKIT_OSX_IPHONE=""
51247 fi
51248
51249 COND_TOOLKIT_PM="#"
51250 if test "x$TOOLKIT" = "xPM" ; then
51251 COND_TOOLKIT_PM=""
51252 fi
51253
51254 COND_TOOLKIT_PM_USE_GUI_1="#"
51255 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
51256 COND_TOOLKIT_PM_USE_GUI_1=""
51257 fi
51258
51259 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
51260 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51261 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
51262 fi
51263
51264 COND_TOOLKIT_WINCE="#"
51265 if test "x$TOOLKIT" = "xWINCE" ; then
51266 COND_TOOLKIT_WINCE=""
51267 fi
51268
51269 COND_TOOLKIT_WINCE_USE_GUI_1="#"
51270 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
51271 COND_TOOLKIT_WINCE_USE_GUI_1=""
51272 fi
51273
51274 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
51275 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51276 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
51277 fi
51278
51279 COND_TOOLKIT_WINCE_WXUNIV_0="#"
51280 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
51281 COND_TOOLKIT_WINCE_WXUNIV_0=""
51282 fi
51283
51284 COND_TOOLKIT_X11="#"
51285 if test "x$TOOLKIT" = "xX11" ; then
51286 COND_TOOLKIT_X11=""
51287 fi
51288
51289 COND_TOOLKIT_X11_USE_GUI_1="#"
51290 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
51291 COND_TOOLKIT_X11_USE_GUI_1=""
51292 fi
51293
51294 COND_UNICODE_1="#"
51295 if test "x$UNICODE" = "x1" ; then
51296 COND_UNICODE_1=""
51297 fi
51298
51299 COND_USE_EXCEPTIONS_0="#"
51300 if test "x$USE_EXCEPTIONS" = "x0" ; then
51301 COND_USE_EXCEPTIONS_0=""
51302 fi
51303
51304 COND_USE_EXCEPTIONS_1="#"
51305 if test "x$USE_EXCEPTIONS" = "x1" ; then
51306 COND_USE_EXCEPTIONS_1=""
51307 fi
51308
51309 COND_USE_GUI_0="#"
51310 if test "x$USE_GUI" = "x0" ; then
51311 COND_USE_GUI_0=""
51312 fi
51313
51314 COND_USE_GUI_1="#"
51315 if test "x$USE_GUI" = "x1" ; then
51316 COND_USE_GUI_1=""
51317 fi
51318
51319 COND_USE_GUI_1_USE_OPENGL_1="#"
51320 if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51321 COND_USE_GUI_1_USE_OPENGL_1=""
51322 fi
51323
51324 COND_USE_GUI_1_WXUNIV_0="#"
51325 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51326 COND_USE_GUI_1_WXUNIV_0=""
51327 fi
51328
51329 COND_USE_GUI_1_WXUNIV_1="#"
51330 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
51331 COND_USE_GUI_1_WXUNIV_1=""
51332 fi
51333
51334 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
51335 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51336 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
51337 fi
51338
51339 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
51340 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51341 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
51342 fi
51343
51344 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
51345 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51346 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
51347 fi
51348
51349 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
51350 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51351 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
51352 fi
51353
51354 COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
51355 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51356 COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
51357 fi
51358
51359 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
51360 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51361 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
51362 fi
51363
51364 COND_USE_OPENGL_1="#"
51365 if test "x$USE_OPENGL" = "x1" ; then
51366 COND_USE_OPENGL_1=""
51367 fi
51368
51369 COND_USE_PCH_1="#"
51370 if test "x$USE_PCH" = "x1" ; then
51371 COND_USE_PCH_1=""
51372 fi
51373
51374 COND_USE_PLUGINS_0="#"
51375 if test "x$USE_PLUGINS" = "x0" ; then
51376 COND_USE_PLUGINS_0=""
51377 fi
51378
51379 COND_USE_RTTI_0="#"
51380 if test "x$USE_RTTI" = "x0" ; then
51381 COND_USE_RTTI_0=""
51382 fi
51383
51384 COND_USE_RTTI_1="#"
51385 if test "x$USE_RTTI" = "x1" ; then
51386 COND_USE_RTTI_1=""
51387 fi
51388
51389 COND_USE_SOSYMLINKS_1="#"
51390 if test "x$USE_SOSYMLINKS" = "x1" ; then
51391 COND_USE_SOSYMLINKS_1=""
51392 fi
51393
51394 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
51395 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51396 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
51397 fi
51398
51399 COND_USE_SOVERLINUX_1="#"
51400 if test "x$USE_SOVERLINUX" = "x1" ; then
51401 COND_USE_SOVERLINUX_1=""
51402 fi
51403
51404 COND_USE_SOVERSION_0="#"
51405 if test "x$USE_SOVERSION" = "x0" ; then
51406 COND_USE_SOVERSION_0=""
51407 fi
51408
51409 COND_USE_SOVERSOLARIS_1="#"
51410 if test "x$USE_SOVERSOLARIS" = "x1" ; then
51411 COND_USE_SOVERSOLARIS_1=""
51412 fi
51413
51414 COND_USE_STC_1="#"
51415 if test "x$USE_STC" = "x1" ; then
51416 COND_USE_STC_1=""
51417 fi
51418
51419 COND_USE_THREADS_0="#"
51420 if test "x$USE_THREADS" = "x0" ; then
51421 COND_USE_THREADS_0=""
51422 fi
51423
51424 COND_USE_THREADS_1="#"
51425 if test "x$USE_THREADS" = "x1" ; then
51426 COND_USE_THREADS_1=""
51427 fi
51428
51429 COND_USE_XRC_1="#"
51430 if test "x$USE_XRC" = "x1" ; then
51431 COND_USE_XRC_1=""
51432 fi
51433
51434 COND_WINDOWS_IMPLIB_1="#"
51435 if test "x$WINDOWS_IMPLIB" = "x1" ; then
51436 COND_WINDOWS_IMPLIB_1=""
51437 fi
51438
51439 COND_WITH_PLUGIN_SDL_1="#"
51440 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
51441 COND_WITH_PLUGIN_SDL_1=""
51442 fi
51443
51444 COND_WXUNIV_0="#"
51445 if test "x$WXUNIV" = "x0" ; then
51446 COND_WXUNIV_0=""
51447 fi
51448
51449 COND_WXUNIV_1="#"
51450 if test "x$WXUNIV" = "x1" ; then
51451 COND_WXUNIV_1=""
51452 fi
51453
51454 COND_WXUSE_EXPAT_BUILTIN="#"
51455 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
51456 COND_WXUSE_EXPAT_BUILTIN=""
51457 fi
51458
51459 COND_WXUSE_LIBJPEG_BUILTIN="#"
51460 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51461 COND_WXUSE_LIBJPEG_BUILTIN=""
51462 fi
51463
51464 COND_WXUSE_LIBPNG_BUILTIN="#"
51465 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51466 COND_WXUSE_LIBPNG_BUILTIN=""
51467 fi
51468
51469 COND_WXUSE_LIBTIFF_BUILTIN="#"
51470 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51471 COND_WXUSE_LIBTIFF_BUILTIN=""
51472 fi
51473
51474 COND_WXUSE_REGEX_BUILTIN="#"
51475 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
51476 COND_WXUSE_REGEX_BUILTIN=""
51477 fi
51478
51479 COND_WXUSE_ZLIB_BUILTIN="#"
51480 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
51481 COND_WXUSE_ZLIB_BUILTIN=""
51482 fi
51483
51484 COND_wxUSE_EXPAT_builtin="#"
51485 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
51486 COND_wxUSE_EXPAT_builtin=""
51487 fi
51488
51489 COND_wxUSE_LIBJPEG_builtin="#"
51490 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51491 COND_wxUSE_LIBJPEG_builtin=""
51492 fi
51493
51494 COND_wxUSE_LIBPNG_builtin="#"
51495 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51496 COND_wxUSE_LIBPNG_builtin=""
51497 fi
51498
51499 COND_wxUSE_LIBTIFF_builtin="#"
51500 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51501 COND_wxUSE_LIBTIFF_builtin=""
51502 fi
51503
51504 COND_wxUSE_REGEX_builtin="#"
51505 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
51506 COND_wxUSE_REGEX_builtin=""
51507 fi
51508
51509 COND_wxUSE_ZLIB_builtin="#"
51510 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
51511 COND_wxUSE_ZLIB_builtin=""
51512 fi
51513
51514
51515
51516 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
51517 { { $as_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
51518 $as_echo "$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;}
51519 { (exit 1); exit 1; }; }
51520 fi
51521
51522 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
51523 { { $as_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
51524 $as_echo "$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;}
51525 { (exit 1); exit 1; }; }
51526 fi
51527
51528
51529 case ${INSTALL} in
51530 /* ) # Absolute
51531 ;;
51532 ?:* ) # Drive letter, considered as absolute.
51533 ;;
51534 *)
51535 INSTALL=`pwd`/${INSTALL} ;;
51536 esac
51537
51538 if test "$wxUSE_GUI" = "yes"; then
51539
51540 if test "$wxUSE_MSW" = 1 ; then
51541 if test "x$WINDRES" = "x"; then
51542 { { $as_echo "$as_me:$LINENO: error: Required windres program not found" >&5
51543 $as_echo "$as_me: error: Required windres program not found" >&2;}
51544 { (exit 1); exit 1; }; }
51545 fi
51546
51547 RESCOMP="$WINDRES"
51548 fi
51549
51550 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
51551 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
51552 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
51553
51554 LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
51555
51556 # Extract the first word of "DeRez", so it can be a program name with args.
51557 set dummy DeRez; ac_word=$2
51558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
51559 $as_echo_n "checking for $ac_word... " >&6; }
51560 if test "${ac_cv_prog_DEREZ+set}" = set; then
51561 $as_echo_n "(cached) " >&6
51562 else
51563 if test -n "$DEREZ"; then
51564 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
51565 else
51566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51567 for as_dir in $PATH
51568 do
51569 IFS=$as_save_IFS
51570 test -z "$as_dir" && as_dir=.
51571 for ac_exec_ext in '' $ac_executable_extensions; do
51572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51573 ac_cv_prog_DEREZ="DeRez"
51574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51575 break 2
51576 fi
51577 done
51578 done
51579 IFS=$as_save_IFS
51580
51581 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
51582 fi
51583 fi
51584 DEREZ=$ac_cv_prog_DEREZ
51585 if test -n "$DEREZ"; then
51586 { $as_echo "$as_me:$LINENO: result: $DEREZ" >&5
51587 $as_echo "$DEREZ" >&6; }
51588 else
51589 { $as_echo "$as_me:$LINENO: result: no" >&5
51590 $as_echo "no" >&6; }
51591 fi
51592
51593
51594
51595 MACSETFILE="\$(SETFILE)"
51596
51597 if test "$wxUSE_OSX_CARBON" = 1; then
51598 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
51599 RESCOMP="$REZ"
51600 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
51601 else
51602 POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
51603 RESCOMP="cat /dev/null \| $REZ"
51604 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
51605 fi
51606
51607 else
51608 MACSETFILE="@true"
51609
51610 if test "$wxUSE_PM" = 1; then
51611 RESCOMP="emxbind"
51612 WXCONFIG_RESFLAGS="-ep"
51613
51614 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
51615 else
51616 POSTLINK_COMMAND="@true"
51617 fi
51618 fi
51619
51620 fi
51621
51622
51623 if test $GCC_PCH = 1
51624 then
51625 if test "$wx_cv_gcc_pch_bug" = yes; then
51626 { $as_echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
51627 $as_echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
51628 { $as_echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
51629 $as_echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
51630 { $as_echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
51631 $as_echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
51632 fi
51633
51634 # Our WX_PRECOMP flag does not make sense for any language except C++ because
51635 # the headers that benefit from precompilation are mostly C++ headers.
51636 CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
51637 # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
51638 #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
51639 fi
51640
51641
51642 if test "$wxUSE_MAC" = 1 ; then
51643 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
51644 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
51645 mv temp bk-deps
51646 chmod +x bk-deps
51647 fi
51648 fi
51649
51650 if test "$wxUSE_SHARED" = "yes"; then
51651 case "${host}" in
51652 *-pc-os2_emx | *-pc-os2-emx )
51653 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51654 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51655 cp -p ${srcdir}/src/os2/dllnames.sh .
51656 cp -p ${srcdir}/src/os2/dllar.sh .
51657 ;;
51658 esac
51659 fi
51660 if test "$wxUSE_OMF" = "yes"; then
51661 case "${host}" in
51662 *-pc-os2_emx | *-pc-os2-emx )
51663 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
51664 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
51665 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
51666 ;;
51667 esac
51668 fi
51669
51670 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
51671
51672
51673 case "${host}" in
51674 *-*-solaris2* )
51675 if test "$GCC" = yes; then
51676 CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
51677 LIBS=`echo $LIBS | sed 's/-mt//'`
51678 EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
51679 fi
51680 ;;
51681
51682 *-*-linux* )
51683 if test "x$SUNCXX" = xyes; then
51684 CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
51685 LIBS=`echo $LIBS | sed 's/-pthread//'`
51686 EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
51687 fi
51688 ;;
51689 esac
51690
51691 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
51692 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
51693 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
51694 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
51695
51696 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
51697
51698
51699
51700
51701
51702
51703
51704
51705
51706
51707
51708
51709
51710
51711
51712
51713
51714
51715
51716
51717
51718
51719
51720
51721
51722
51723
51724
51725
51726
51727
51728
51729
51730
51731
51732
51733
51734
51735
51736
51737
51738
51739
51740
51741
51742
51743
51744
51745
51746
51747
51748
51749
51750
51751
51752
51753
51754
51755
51756
51757 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
51758 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
51759 set x ${MAKE-make}
51760 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
51761 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
51762 $as_echo_n "(cached) " >&6
51763 else
51764 cat >conftest.make <<\_ACEOF
51765 SHELL = /bin/sh
51766 all:
51767 @echo '@@@%%%=$(MAKE)=@@@%%%'
51768 _ACEOF
51769 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
51770 case `${MAKE-make} -f conftest.make 2>/dev/null` in
51771 *@@@%%%=?*=@@@%%%*)
51772 eval ac_cv_prog_make_${ac_make}_set=yes;;
51773 *)
51774 eval ac_cv_prog_make_${ac_make}_set=no;;
51775 esac
51776 rm -f conftest.make
51777 fi
51778 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
51779 { $as_echo "$as_me:$LINENO: result: yes" >&5
51780 $as_echo "yes" >&6; }
51781 SET_MAKE=
51782 else
51783 { $as_echo "$as_me:$LINENO: result: no" >&5
51784 $as_echo "no" >&6; }
51785 SET_MAKE="MAKE=${MAKE-make}"
51786 fi
51787
51788
51789
51790 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
51791
51792
51793 if test "$USE_WIN32" = 1; then
51794 ac_config_commands="$ac_config_commands
51795 rcdefs.h
51796 "
51797
51798 fi
51799
51800 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
51801
51802
51803 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
51804
51805
51806 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
51807
51808
51809 if test "$wx_cv_version_script" = "yes"; then
51810 ac_config_files="$ac_config_files version-script"
51811
51812 fi
51813 ac_config_files="$ac_config_files Makefile"
51814
51815
51816 ac_config_commands="$ac_config_commands wx-config"
51817
51818
51819
51820 if test "$wxWITH_SUBDIRS" != "no"; then
51821 if test "$wxUSE_GUI" = "yes"; then
51822 SUBDIRS="samples demos utils"
51823 else
51824 SUBDIRS="samples utils"
51825 fi
51826
51827
51828
51829 # Check whether --with-cppunit-prefix was given.
51830 if test "${with_cppunit_prefix+set}" = set; then
51831 withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
51832 else
51833 cppunit_config_prefix=""
51834 fi
51835
51836
51837 # Check whether --with-cppunit-exec-prefix was given.
51838 if test "${with_cppunit_exec_prefix+set}" = set; then
51839 withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
51840 else
51841 cppunit_config_exec_prefix=""
51842 fi
51843
51844
51845 if test x$cppunit_config_exec_prefix != x ; then
51846 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
51847 if test x${CPPUNIT_CONFIG+set} != xset ; then
51848 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
51849 fi
51850 fi
51851 if test x$cppunit_config_prefix != x ; then
51852 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
51853 if test x${CPPUNIT_CONFIG+set} != xset ; then
51854 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
51855 fi
51856 fi
51857
51858 # Extract the first word of "cppunit-config", so it can be a program name with args.
51859 set dummy cppunit-config; ac_word=$2
51860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
51861 $as_echo_n "checking for $ac_word... " >&6; }
51862 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
51863 $as_echo_n "(cached) " >&6
51864 else
51865 case $CPPUNIT_CONFIG in
51866 [\\/]* | ?:[\\/]*)
51867 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
51868 ;;
51869 *)
51870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51871 for as_dir in $PATH
51872 do
51873 IFS=$as_save_IFS
51874 test -z "$as_dir" && as_dir=.
51875 for ac_exec_ext in '' $ac_executable_extensions; do
51876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51877 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
51878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51879 break 2
51880 fi
51881 done
51882 done
51883 IFS=$as_save_IFS
51884
51885 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
51886 ;;
51887 esac
51888 fi
51889 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
51890 if test -n "$CPPUNIT_CONFIG"; then
51891 { $as_echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
51892 $as_echo "$CPPUNIT_CONFIG" >&6; }
51893 else
51894 { $as_echo "$as_me:$LINENO: result: no" >&5
51895 $as_echo "no" >&6; }
51896 fi
51897
51898
51899 cppunit_version_min=1.8.0
51900
51901 { $as_echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
51902 $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
51903 no_cppunit=""
51904 if test "$CPPUNIT_CONFIG" = "no" ; then
51905 { $as_echo "$as_me:$LINENO: result: no" >&5
51906 $as_echo "no" >&6; }
51907 no_cppunit=yes
51908 else
51909 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
51910 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
51911 cppunit_version=`$CPPUNIT_CONFIG --version`
51912
51913 cppunit_major_version=`echo $cppunit_version | \
51914 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51915 cppunit_minor_version=`echo $cppunit_version | \
51916 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51917 cppunit_micro_version=`echo $cppunit_version | \
51918 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51919
51920 cppunit_major_min=`echo $cppunit_version_min | \
51921 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51922 cppunit_minor_min=`echo $cppunit_version_min | \
51923 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51924 cppunit_micro_min=`echo $cppunit_version_min | \
51925 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51926
51927 cppunit_version_proper=`expr \
51928 $cppunit_major_version \> $cppunit_major_min \| \
51929 $cppunit_major_version \= $cppunit_major_min \& \
51930 $cppunit_minor_version \> $cppunit_minor_min \| \
51931 $cppunit_major_version \= $cppunit_major_min \& \
51932 $cppunit_minor_version \= $cppunit_minor_min \& \
51933 $cppunit_micro_version \>= $cppunit_micro_min `
51934
51935 if test "$cppunit_version_proper" = "1" ; then
51936 { $as_echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
51937 $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
51938 else
51939 { $as_echo "$as_me:$LINENO: result: no" >&5
51940 $as_echo "no" >&6; }
51941 no_cppunit=yes
51942 fi
51943 fi
51944
51945 if test "x$no_cppunit" = x ; then
51946 SUBDIRS="$SUBDIRS tests"
51947 else
51948 CPPUNIT_CFLAGS=""
51949 CPPUNIT_LIBS=""
51950 :
51951 fi
51952
51953
51954
51955
51956
51957 for subdir in $SUBDIRS; do
51958 if test -d ${srcdir}/${subdir} ; then
51959 if test "$wxUSE_GUI" = "yes"; then
51960 if test ${subdir} = "samples"; then
51961 makefiles="samples/Makefile.in $makefiles"
51962 for sample in $SAMPLES_SUBDIRS; do
51963 if test -d $srcdir/samples/$sample; then
51964 makefiles="samples/$sample/Makefile.in $makefiles"
51965 fi
51966 done
51967 else
51968 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
51969 eval "disabled=\$$disabled_var"
51970 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
51971 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
51972 fi
51973 else
51974 if test ${subdir} = "samples"; then
51975 makefiles="samples/Makefile.in $makefiles"
51976 for sample in `echo $SAMPLES_SUBDIRS`; do
51977 if test -d $srcdir/samples/$sample; then
51978 makefiles="samples/$sample/Makefile.in $makefiles"
51979 fi
51980 done
51981 elif test ${subdir} = "utils"; then
51982 makefiles=""
51983 for util in ifacecheck ; do
51984 if test -d $srcdir/utils/$util ; then
51985 makefiles="utils/$util/src/Makefile.in \
51986 $makefiles"
51987 fi
51988 done
51989 else
51990 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
51991 fi
51992 fi
51993
51994 for mkin in $makefiles ; do
51995 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
51996 ac_config_files="$ac_config_files $mk"
51997
51998 done
51999 fi
52000 done
52001 fi
52002 cat >confcache <<\_ACEOF
52003 # This file is a shell script that caches the results of configure
52004 # tests run on this system so they can be shared between configure
52005 # scripts and configure runs, see configure's option --config-cache.
52006 # It is not useful on other systems. If it contains results you don't
52007 # want to keep, you may remove or edit it.
52008 #
52009 # config.status only pays attention to the cache file if you give it
52010 # the --recheck option to rerun configure.
52011 #
52012 # `ac_cv_env_foo' variables (set or unset) will be overridden when
52013 # loading this file, other *unset* `ac_cv_foo' will be assigned the
52014 # following values.
52015
52016 _ACEOF
52017
52018 # The following way of writing the cache mishandles newlines in values,
52019 # but we know of no workaround that is simple, portable, and efficient.
52020 # So, we kill variables containing newlines.
52021 # Ultrix sh set writes to stderr and can't be redirected directly,
52022 # and sets the high bit in the cache file unless we assign to the vars.
52023 (
52024 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
52025 eval ac_val=\$$ac_var
52026 case $ac_val in #(
52027 *${as_nl}*)
52028 case $ac_var in #(
52029 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
52030 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
52031 esac
52032 case $ac_var in #(
52033 _ | IFS | as_nl) ;; #(
52034 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
52035 *) $as_unset $ac_var ;;
52036 esac ;;
52037 esac
52038 done
52039
52040 (set) 2>&1 |
52041 case $as_nl`(ac_space=' '; set) 2>&1` in #(
52042 *${as_nl}ac_space=\ *)
52043 # `set' does not quote correctly, so add quotes (double-quote
52044 # substitution turns \\\\ into \\, and sed turns \\ into \).
52045 sed -n \
52046 "s/'/'\\\\''/g;
52047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
52048 ;; #(
52049 *)
52050 # `set' quotes correctly as required by POSIX, so do not add quotes.
52051 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
52052 ;;
52053 esac |
52054 sort
52055 ) |
52056 sed '
52057 /^ac_cv_env_/b end
52058 t clear
52059 :clear
52060 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52061 t end
52062 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
52063 :end' >>confcache
52064 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
52065 if test -w "$cache_file"; then
52066 test "x$cache_file" != "x/dev/null" &&
52067 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
52068 $as_echo "$as_me: updating cache $cache_file" >&6;}
52069 cat confcache >$cache_file
52070 else
52071 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
52072 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
52073 fi
52074 fi
52075 rm -f confcache
52076
52077 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52078 # Let make expand exec_prefix.
52079 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52080
52081 DEFS=-DHAVE_CONFIG_H
52082
52083 ac_libobjs=
52084 ac_ltlibobjs=
52085 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52086 # 1. Remove the extension, and $U if already installed.
52087 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
52088 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
52089 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
52090 # will be set to the directory where LIBOBJS objects are built.
52091 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
52092 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
52093 done
52094 LIBOBJS=$ac_libobjs
52095
52096 LTLIBOBJS=$ac_ltlibobjs
52097
52098
52099
52100 : ${CONFIG_STATUS=./config.status}
52101 ac_write_fail=0
52102 ac_clean_files_save=$ac_clean_files
52103 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52104 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52105 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
52106 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52107 #! $SHELL
52108 # Generated by $as_me.
52109 # Run this file to recreate the current configuration.
52110 # Compiler output produced by configure, useful for debugging
52111 # configure, is in config.log if it exists.
52112
52113 debug=false
52114 ac_cs_recheck=false
52115 ac_cs_silent=false
52116 SHELL=\${CONFIG_SHELL-$SHELL}
52117 _ACEOF
52118
52119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52120 ## --------------------- ##
52121 ## M4sh Initialization. ##
52122 ## --------------------- ##
52123
52124 # Be more Bourne compatible
52125 DUALCASE=1; export DUALCASE # for MKS sh
52126 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52127 emulate sh
52128 NULLCMD=:
52129 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
52130 # is contrary to our usage. Disable this feature.
52131 alias -g '${1+"$@"}'='"$@"'
52132 setopt NO_GLOB_SUBST
52133 else
52134 case `(set -o) 2>/dev/null` in
52135 *posix*) set -o posix ;;
52136 esac
52137
52138 fi
52139
52140
52141
52142
52143 # PATH needs CR
52144 # Avoid depending upon Character Ranges.
52145 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52146 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52147 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52148 as_cr_digits='0123456789'
52149 as_cr_alnum=$as_cr_Letters$as_cr_digits
52150
52151 as_nl='
52152 '
52153 export as_nl
52154 # Printing a long string crashes Solaris 7 /usr/bin/printf.
52155 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
52156 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
52157 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
52158 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52159 as_echo='printf %s\n'
52160 as_echo_n='printf %s'
52161 else
52162 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52163 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
52164 as_echo_n='/usr/ucb/echo -n'
52165 else
52166 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
52167 as_echo_n_body='eval
52168 arg=$1;
52169 case $arg in
52170 *"$as_nl"*)
52171 expr "X$arg" : "X\\(.*\\)$as_nl";
52172 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
52173 esac;
52174 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
52175 '
52176 export as_echo_n_body
52177 as_echo_n='sh -c $as_echo_n_body as_echo'
52178 fi
52179 export as_echo_body
52180 as_echo='sh -c $as_echo_body as_echo'
52181 fi
52182
52183 # The user is always right.
52184 if test "${PATH_SEPARATOR+set}" != set; then
52185 PATH_SEPARATOR=:
52186 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
52187 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
52188 PATH_SEPARATOR=';'
52189 }
52190 fi
52191
52192 # Support unset when possible.
52193 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52194 as_unset=unset
52195 else
52196 as_unset=false
52197 fi
52198
52199
52200 # IFS
52201 # We need space, tab and new line, in precisely that order. Quoting is
52202 # there to prevent editors from complaining about space-tab.
52203 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
52204 # splitting by setting IFS to empty value.)
52205 IFS=" "" $as_nl"
52206
52207 # Find who we are. Look in the path if we contain no directory separator.
52208 case $0 in
52209 *[\\/]* ) as_myself=$0 ;;
52210 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52211 for as_dir in $PATH
52212 do
52213 IFS=$as_save_IFS
52214 test -z "$as_dir" && as_dir=.
52215 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
52216 done
52217 IFS=$as_save_IFS
52218
52219 ;;
52220 esac
52221 # We did not find ourselves, most probably we were run as `sh COMMAND'
52222 # in which case we are not to be found in the path.
52223 if test "x$as_myself" = x; then
52224 as_myself=$0
52225 fi
52226 if test ! -f "$as_myself"; then
52227 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
52228 { (exit 1); exit 1; }
52229 fi
52230
52231 # Work around bugs in pre-3.0 UWIN ksh.
52232 for as_var in ENV MAIL MAILPATH
52233 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
52234 done
52235 PS1='$ '
52236 PS2='> '
52237 PS4='+ '
52238
52239 # NLS nuisances.
52240 LC_ALL=C
52241 export LC_ALL
52242 LANGUAGE=C
52243 export LANGUAGE
52244
52245 # Required to use basename.
52246 if expr a : '\(a\)' >/dev/null 2>&1 &&
52247 test "X`expr 00001 : '.*\(...\)'`" = X001; then
52248 as_expr=expr
52249 else
52250 as_expr=false
52251 fi
52252
52253 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
52254 as_basename=basename
52255 else
52256 as_basename=false
52257 fi
52258
52259
52260 # Name of the executable.
52261 as_me=`$as_basename -- "$0" ||
52262 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
52263 X"$0" : 'X\(//\)$' \| \
52264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
52265 $as_echo X/"$0" |
52266 sed '/^.*\/\([^/][^/]*\)\/*$/{
52267 s//\1/
52268 q
52269 }
52270 /^X\/\(\/\/\)$/{
52271 s//\1/
52272 q
52273 }
52274 /^X\/\(\/\).*/{
52275 s//\1/
52276 q
52277 }
52278 s/.*/./; q'`
52279
52280 # CDPATH.
52281 $as_unset CDPATH
52282
52283
52284
52285 as_lineno_1=$LINENO
52286 as_lineno_2=$LINENO
52287 test "x$as_lineno_1" != "x$as_lineno_2" &&
52288 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
52289
52290 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
52291 # uniformly replaced by the line number. The first 'sed' inserts a
52292 # line-number line after each line using $LINENO; the second 'sed'
52293 # does the real work. The second script uses 'N' to pair each
52294 # line-number line with the line containing $LINENO, and appends
52295 # trailing '-' during substitution so that $LINENO is not a special
52296 # case at line end.
52297 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
52298 # scripts with optimization help from Paolo Bonzini. Blame Lee
52299 # E. McMahon (1931-1989) for sed's syntax. :-)
52300 sed -n '
52301 p
52302 /[$]LINENO/=
52303 ' <$as_myself |
52304 sed '
52305 s/[$]LINENO.*/&-/
52306 t lineno
52307 b
52308 :lineno
52309 N
52310 :loop
52311 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
52312 t loop
52313 s/-\n.*//
52314 ' >$as_me.lineno &&
52315 chmod +x "$as_me.lineno" ||
52316 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
52317 { (exit 1); exit 1; }; }
52318
52319 # Don't try to exec as it changes $[0], causing all sort of problems
52320 # (the dirname of $[0] is not the place where we might find the
52321 # original and so on. Autoconf is especially sensitive to this).
52322 . "./$as_me.lineno"
52323 # Exit status is that of the last command.
52324 exit
52325 }
52326
52327
52328 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
52329 as_dirname=dirname
52330 else
52331 as_dirname=false
52332 fi
52333
52334 ECHO_C= ECHO_N= ECHO_T=
52335 case `echo -n x` in
52336 -n*)
52337 case `echo 'x\c'` in
52338 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
52339 *) ECHO_C='\c';;
52340 esac;;
52341 *)
52342 ECHO_N='-n';;
52343 esac
52344 if expr a : '\(a\)' >/dev/null 2>&1 &&
52345 test "X`expr 00001 : '.*\(...\)'`" = X001; then
52346 as_expr=expr
52347 else
52348 as_expr=false
52349 fi
52350
52351 rm -f conf$$ conf$$.exe conf$$.file
52352 if test -d conf$$.dir; then
52353 rm -f conf$$.dir/conf$$.file
52354 else
52355 rm -f conf$$.dir
52356 mkdir conf$$.dir 2>/dev/null
52357 fi
52358 if (echo >conf$$.file) 2>/dev/null; then
52359 if ln -s conf$$.file conf$$ 2>/dev/null; then
52360 as_ln_s='ln -s'
52361 # ... but there are two gotchas:
52362 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
52363 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
52364 # In both cases, we have to default to `cp -p'.
52365 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
52366 as_ln_s='cp -p'
52367 elif ln conf$$.file conf$$ 2>/dev/null; then
52368 as_ln_s=ln
52369 else
52370 as_ln_s='cp -p'
52371 fi
52372 else
52373 as_ln_s='cp -p'
52374 fi
52375 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
52376 rmdir conf$$.dir 2>/dev/null
52377
52378 if mkdir -p . 2>/dev/null; then
52379 as_mkdir_p=:
52380 else
52381 test -d ./-p && rmdir ./-p
52382 as_mkdir_p=false
52383 fi
52384
52385 if test -x / >/dev/null 2>&1; then
52386 as_test_x='test -x'
52387 else
52388 if ls -dL / >/dev/null 2>&1; then
52389 as_ls_L_option=L
52390 else
52391 as_ls_L_option=
52392 fi
52393 as_test_x='
52394 eval sh -c '\''
52395 if test -d "$1"; then
52396 test -d "$1/.";
52397 else
52398 case $1 in
52399 -*)set "./$1";;
52400 esac;
52401 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
52402 ???[sx]*):;;*)false;;esac;fi
52403 '\'' sh
52404 '
52405 fi
52406 as_executable_p=$as_test_x
52407
52408 # Sed expression to map a string onto a valid CPP name.
52409 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
52410
52411 # Sed expression to map a string onto a valid variable name.
52412 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
52413
52414
52415 exec 6>&1
52416
52417 # Save the log message, to keep $[0] and so on meaningful, and to
52418 # report actual input values of CONFIG_FILES etc. instead of their
52419 # values after options handling.
52420 ac_log="
52421 This file was extended by wxWidgets $as_me 2.9.0, which was
52422 generated by GNU Autoconf 2.63. Invocation command line was
52423
52424 CONFIG_FILES = $CONFIG_FILES
52425 CONFIG_HEADERS = $CONFIG_HEADERS
52426 CONFIG_LINKS = $CONFIG_LINKS
52427 CONFIG_COMMANDS = $CONFIG_COMMANDS
52428 $ $0 $@
52429
52430 on `(hostname || uname -n) 2>/dev/null | sed 1q`
52431 "
52432
52433 _ACEOF
52434
52435 case $ac_config_files in *"
52436 "*) set x $ac_config_files; shift; ac_config_files=$*;;
52437 esac
52438
52439 case $ac_config_headers in *"
52440 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
52441 esac
52442
52443
52444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52445 # Files that config.status was made for.
52446 config_files="$ac_config_files"
52447 config_headers="$ac_config_headers"
52448 config_commands="$ac_config_commands"
52449
52450 _ACEOF
52451
52452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52453 ac_cs_usage="\
52454 \`$as_me' instantiates files from templates according to the
52455 current configuration.
52456
52457 Usage: $0 [OPTION]... [FILE]...
52458
52459 -h, --help print this help, then exit
52460 -V, --version print version number and configuration settings, then exit
52461 -q, --quiet, --silent
52462 do not print progress messages
52463 -d, --debug don't remove temporary files
52464 --recheck update $as_me by reconfiguring in the same conditions
52465 --file=FILE[:TEMPLATE]
52466 instantiate the configuration file FILE
52467 --header=FILE[:TEMPLATE]
52468 instantiate the configuration header FILE
52469
52470 Configuration files:
52471 $config_files
52472
52473 Configuration headers:
52474 $config_headers
52475
52476 Configuration commands:
52477 $config_commands
52478
52479 Report bugs to <bug-autoconf@gnu.org>."
52480
52481 _ACEOF
52482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52483 ac_cs_version="\\
52484 wxWidgets config.status 2.9.0
52485 configured by $0, generated by GNU Autoconf 2.63,
52486 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
52487
52488 Copyright (C) 2008 Free Software Foundation, Inc.
52489 This config.status script is free software; the Free Software Foundation
52490 gives unlimited permission to copy, distribute and modify it."
52491
52492 ac_pwd='$ac_pwd'
52493 srcdir='$srcdir'
52494 INSTALL='$INSTALL'
52495 test -n "\$AWK" || AWK=awk
52496 _ACEOF
52497
52498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52499 # The default lists apply if the user does not specify any file.
52500 ac_need_defaults=:
52501 while test $# != 0
52502 do
52503 case $1 in
52504 --*=*)
52505 ac_option=`expr "X$1" : 'X\([^=]*\)='`
52506 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
52507 ac_shift=:
52508 ;;
52509 *)
52510 ac_option=$1
52511 ac_optarg=$2
52512 ac_shift=shift
52513 ;;
52514 esac
52515
52516 case $ac_option in
52517 # Handling of the options.
52518 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
52519 ac_cs_recheck=: ;;
52520 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
52521 $as_echo "$ac_cs_version"; exit ;;
52522 --debug | --debu | --deb | --de | --d | -d )
52523 debug=: ;;
52524 --file | --fil | --fi | --f )
52525 $ac_shift
52526 case $ac_optarg in
52527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
52528 esac
52529 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
52530 ac_need_defaults=false;;
52531 --header | --heade | --head | --hea )
52532 $ac_shift
52533 case $ac_optarg in
52534 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
52535 esac
52536 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
52537 ac_need_defaults=false;;
52538 --he | --h)
52539 # Conflict between --help and --header
52540 { $as_echo "$as_me: error: ambiguous option: $1
52541 Try \`$0 --help' for more information." >&2
52542 { (exit 1); exit 1; }; };;
52543 --help | --hel | -h )
52544 $as_echo "$ac_cs_usage"; exit ;;
52545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
52546 | -silent | --silent | --silen | --sile | --sil | --si | --s)
52547 ac_cs_silent=: ;;
52548
52549 # This is an error.
52550 -*) { $as_echo "$as_me: error: unrecognized option: $1
52551 Try \`$0 --help' for more information." >&2
52552 { (exit 1); exit 1; }; } ;;
52553
52554 *) ac_config_targets="$ac_config_targets $1"
52555 ac_need_defaults=false ;;
52556
52557 esac
52558 shift
52559 done
52560
52561 ac_configure_extra_args=
52562
52563 if $ac_cs_silent; then
52564 exec 6>/dev/null
52565 ac_configure_extra_args="$ac_configure_extra_args --silent"
52566 fi
52567
52568 _ACEOF
52569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52570 if \$ac_cs_recheck; then
52571 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
52572 shift
52573 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
52574 CONFIG_SHELL='$SHELL'
52575 export CONFIG_SHELL
52576 exec "\$@"
52577 fi
52578
52579 _ACEOF
52580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52581 exec 5>>config.log
52582 {
52583 echo
52584 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
52585 ## Running $as_me. ##
52586 _ASBOX
52587 $as_echo "$ac_log"
52588 } >&5
52589
52590 _ACEOF
52591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52592 #
52593 # INIT-COMMANDS
52594 #
52595
52596 CPP="$CPP"
52597 infile="$srcdir/include/wx/msw/genrcdefs.h"
52598 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
52599
52600
52601 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52602 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52603 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52604 LN_S="${LN_S}"
52605
52606
52607 _ACEOF
52608
52609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52610
52611 # Handling of arguments.
52612 for ac_config_target in $ac_config_targets
52613 do
52614 case $ac_config_target in
52615 "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
52616 "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
52617 "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
52618 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
52619 "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
52620 "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
52621 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
52622 "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
52623 "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
52624
52625 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
52626 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
52627 { (exit 1); exit 1; }; };;
52628 esac
52629 done
52630
52631
52632 # If the user did not use the arguments to specify the items to instantiate,
52633 # then the envvar interface is used. Set only those that are not.
52634 # We use the long form for the default assignment because of an extremely
52635 # bizarre bug on SunOS 4.1.3.
52636 if $ac_need_defaults; then
52637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
52638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
52639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
52640 fi
52641
52642 # Have a temporary directory for convenience. Make it in the build tree
52643 # simply because there is no reason against having it here, and in addition,
52644 # creating and moving files from /tmp can sometimes cause problems.
52645 # Hook for its removal unless debugging.
52646 # Note that there is a small window in which the directory will not be cleaned:
52647 # after its creation but before its name has been assigned to `$tmp'.
52648 $debug ||
52649 {
52650 tmp=
52651 trap 'exit_status=$?
52652 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
52653 ' 0
52654 trap '{ (exit 1); exit 1; }' 1 2 13 15
52655 }
52656 # Create a (secure) tmp directory for tmp files.
52657
52658 {
52659 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
52660 test -n "$tmp" && test -d "$tmp"
52661 } ||
52662 {
52663 tmp=./conf$$-$RANDOM
52664 (umask 077 && mkdir "$tmp")
52665 } ||
52666 {
52667 $as_echo "$as_me: cannot create a temporary directory in ." >&2
52668 { (exit 1); exit 1; }
52669 }
52670
52671 # Set up the scripts for CONFIG_FILES section.
52672 # No need to generate them if there are no CONFIG_FILES.
52673 # This happens for instance with `./config.status config.h'.
52674 if test -n "$CONFIG_FILES"; then
52675
52676
52677 ac_cr='
52678 '
52679 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
52680 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
52681 ac_cs_awk_cr='\\r'
52682 else
52683 ac_cs_awk_cr=$ac_cr
52684 fi
52685
52686 echo 'BEGIN {' >"$tmp/subs1.awk" &&
52687 _ACEOF
52688
52689
52690 {
52691 echo "cat >conf$$subs.awk <<_ACEOF" &&
52692 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
52693 echo "_ACEOF"
52694 } >conf$$subs.sh ||
52695 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52696 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52697 { (exit 1); exit 1; }; }
52698 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
52699 ac_delim='%!_!# '
52700 for ac_last_try in false false false false false :; do
52701 . ./conf$$subs.sh ||
52702 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52703 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52704 { (exit 1); exit 1; }; }
52705
52706 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
52707 if test $ac_delim_n = $ac_delim_num; then
52708 break
52709 elif $ac_last_try; then
52710 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52711 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52712 { (exit 1); exit 1; }; }
52713 else
52714 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52715 fi
52716 done
52717 rm -f conf$$subs.sh
52718
52719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52720 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
52721 _ACEOF
52722 sed -n '
52723 h
52724 s/^/S["/; s/!.*/"]=/
52725 p
52726 g
52727 s/^[^!]*!//
52728 :repl
52729 t repl
52730 s/'"$ac_delim"'$//
52731 t delim
52732 :nl
52733 h
52734 s/\(.\{148\}\).*/\1/
52735 t more1
52736 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
52737 p
52738 n
52739 b repl
52740 :more1
52741 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
52742 p
52743 g
52744 s/.\{148\}//
52745 t nl
52746 :delim
52747 h
52748 s/\(.\{148\}\).*/\1/
52749 t more2
52750 s/["\\]/\\&/g; s/^/"/; s/$/"/
52751 p
52752 b
52753 :more2
52754 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
52755 p
52756 g
52757 s/.\{148\}//
52758 t delim
52759 ' <conf$$subs.awk | sed '
52760 /^[^""]/{
52761 N
52762 s/\n//
52763 }
52764 ' >>$CONFIG_STATUS || ac_write_fail=1
52765 rm -f conf$$subs.awk
52766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52767 _ACAWK
52768 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
52769 for (key in S) S_is_set[key] = 1
52770 FS = "\a"
52771
52772 }
52773 {
52774 line = $ 0
52775 nfields = split(line, field, "@")
52776 substed = 0
52777 len = length(field[1])
52778 for (i = 2; i < nfields; i++) {
52779 key = field[i]
52780 keylen = length(key)
52781 if (S_is_set[key]) {
52782 value = S[key]
52783 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
52784 len += length(value) + length(field[++i])
52785 substed = 1
52786 } else
52787 len += 1 + keylen
52788 }
52789
52790 print line
52791 }
52792
52793 _ACAWK
52794 _ACEOF
52795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52796 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
52797 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
52798 else
52799 cat
52800 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
52801 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
52802 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
52803 { (exit 1); exit 1; }; }
52804 _ACEOF
52805
52806 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52807 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52808 # trailing colons and then remove the whole line if VPATH becomes empty
52809 # (actually we leave an empty line to preserve line numbers).
52810 if test "x$srcdir" = x.; then
52811 ac_vpsub='/^[ ]*VPATH[ ]*=/{
52812 s/:*\$(srcdir):*/:/
52813 s/:*\${srcdir}:*/:/
52814 s/:*@srcdir@:*/:/
52815 s/^\([^=]*=[ ]*\):*/\1/
52816 s/:*$//
52817 s/^[^=]*=[ ]*$//
52818 }'
52819 fi
52820
52821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52822 fi # test -n "$CONFIG_FILES"
52823
52824 # Set up the scripts for CONFIG_HEADERS section.
52825 # No need to generate them if there are no CONFIG_HEADERS.
52826 # This happens for instance with `./config.status Makefile'.
52827 if test -n "$CONFIG_HEADERS"; then
52828 cat >"$tmp/defines.awk" <<\_ACAWK ||
52829 BEGIN {
52830 _ACEOF
52831
52832 # Transform confdefs.h into an awk script `defines.awk', embedded as
52833 # here-document in config.status, that substitutes the proper values into
52834 # config.h.in to produce config.h.
52835
52836 # Create a delimiter string that does not exist in confdefs.h, to ease
52837 # handling of long lines.
52838 ac_delim='%!_!# '
52839 for ac_last_try in false false :; do
52840 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
52841 if test -z "$ac_t"; then
52842 break
52843 elif $ac_last_try; then
52844 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
52845 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
52846 { (exit 1); exit 1; }; }
52847 else
52848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52849 fi
52850 done
52851
52852 # For the awk script, D is an array of macro values keyed by name,
52853 # likewise P contains macro parameters if any. Preserve backslash
52854 # newline sequences.
52855
52856 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52857 sed -n '
52858 s/.\{148\}/&'"$ac_delim"'/g
52859 t rset
52860 :rset
52861 s/^[ ]*#[ ]*define[ ][ ]*/ /
52862 t def
52863 d
52864 :def
52865 s/\\$//
52866 t bsnl
52867 s/["\\]/\\&/g
52868 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
52869 D["\1"]=" \3"/p
52870 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
52871 d
52872 :bsnl
52873 s/["\\]/\\&/g
52874 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
52875 D["\1"]=" \3\\\\\\n"\\/p
52876 t cont
52877 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
52878 t cont
52879 d
52880 :cont
52881 n
52882 s/.\{148\}/&'"$ac_delim"'/g
52883 t clear
52884 :clear
52885 s/\\$//
52886 t bsnlc
52887 s/["\\]/\\&/g; s/^/"/; s/$/"/p
52888 d
52889 :bsnlc
52890 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
52891 b cont
52892 ' <confdefs.h | sed '
52893 s/'"$ac_delim"'/"\\\
52894 "/g' >>$CONFIG_STATUS || ac_write_fail=1
52895
52896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52897 for (key in D) D_is_set[key] = 1
52898 FS = "\a"
52899 }
52900 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
52901 line = \$ 0
52902 split(line, arg, " ")
52903 if (arg[1] == "#") {
52904 defundef = arg[2]
52905 mac1 = arg[3]
52906 } else {
52907 defundef = substr(arg[1], 2)
52908 mac1 = arg[2]
52909 }
52910 split(mac1, mac2, "(") #)
52911 macro = mac2[1]
52912 prefix = substr(line, 1, index(line, defundef) - 1)
52913 if (D_is_set[macro]) {
52914 # Preserve the white space surrounding the "#".
52915 print prefix "define", macro P[macro] D[macro]
52916 next
52917 } else {
52918 # Replace #undef with comments. This is necessary, for example,
52919 # in the case of _POSIX_SOURCE, which is predefined and required
52920 # on some systems where configure will not decide to define it.
52921 if (defundef == "undef") {
52922 print "/*", prefix defundef, macro, "*/"
52923 next
52924 }
52925 }
52926 }
52927 { print }
52928 _ACAWK
52929 _ACEOF
52930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52931 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
52932 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
52933 { (exit 1); exit 1; }; }
52934 fi # test -n "$CONFIG_HEADERS"
52935
52936
52937 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
52938 shift
52939 for ac_tag
52940 do
52941 case $ac_tag in
52942 :[FHLC]) ac_mode=$ac_tag; continue;;
52943 esac
52944 case $ac_mode$ac_tag in
52945 :[FHL]*:*);;
52946 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
52947 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
52948 { (exit 1); exit 1; }; };;
52949 :[FH]-) ac_tag=-:-;;
52950 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52951 esac
52952 ac_save_IFS=$IFS
52953 IFS=:
52954 set x $ac_tag
52955 IFS=$ac_save_IFS
52956 shift
52957 ac_file=$1
52958 shift
52959
52960 case $ac_mode in
52961 :L) ac_source=$1;;
52962 :[FH])
52963 ac_file_inputs=
52964 for ac_f
52965 do
52966 case $ac_f in
52967 -) ac_f="$tmp/stdin";;
52968 *) # Look for the file first in the build tree, then in the source tree
52969 # (if the path is not absolute). The absolute path cannot be DOS-style,
52970 # because $ac_f cannot contain `:'.
52971 test -f "$ac_f" ||
52972 case $ac_f in
52973 [\\/$]*) false;;
52974 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52975 esac ||
52976 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
52977 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
52978 { (exit 1); exit 1; }; };;
52979 esac
52980 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
52981 ac_file_inputs="$ac_file_inputs '$ac_f'"
52982 done
52983
52984 # Let's still pretend it is `configure' which instantiates (i.e., don't
52985 # use $as_me), people would be surprised to read:
52986 # /* config.h. Generated by config.status. */
52987 configure_input='Generated from '`
52988 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
52989 `' by configure.'
52990 if test x"$ac_file" != x-; then
52991 configure_input="$ac_file. $configure_input"
52992 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
52993 $as_echo "$as_me: creating $ac_file" >&6;}
52994 fi
52995 # Neutralize special characters interpreted by sed in replacement strings.
52996 case $configure_input in #(
52997 *\&* | *\|* | *\\* )
52998 ac_sed_conf_input=`$as_echo "$configure_input" |
52999 sed 's/[\\\\&|]/\\\\&/g'`;; #(
53000 *) ac_sed_conf_input=$configure_input;;
53001 esac
53002
53003 case $ac_tag in
53004 *:-:* | *:-) cat >"$tmp/stdin" \
53005 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
53006 $as_echo "$as_me: error: could not create $ac_file" >&2;}
53007 { (exit 1); exit 1; }; } ;;
53008 esac
53009 ;;
53010 esac
53011
53012 ac_dir=`$as_dirname -- "$ac_file" ||
53013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53014 X"$ac_file" : 'X\(//\)[^/]' \| \
53015 X"$ac_file" : 'X\(//\)$' \| \
53016 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
53017 $as_echo X"$ac_file" |
53018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53019 s//\1/
53020 q
53021 }
53022 /^X\(\/\/\)[^/].*/{
53023 s//\1/
53024 q
53025 }
53026 /^X\(\/\/\)$/{
53027 s//\1/
53028 q
53029 }
53030 /^X\(\/\).*/{
53031 s//\1/
53032 q
53033 }
53034 s/.*/./; q'`
53035 { as_dir="$ac_dir"
53036 case $as_dir in #(
53037 -*) as_dir=./$as_dir;;
53038 esac
53039 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
53040 as_dirs=
53041 while :; do
53042 case $as_dir in #(
53043 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
53044 *) as_qdir=$as_dir;;
53045 esac
53046 as_dirs="'$as_qdir' $as_dirs"
53047 as_dir=`$as_dirname -- "$as_dir" ||
53048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53049 X"$as_dir" : 'X\(//\)[^/]' \| \
53050 X"$as_dir" : 'X\(//\)$' \| \
53051 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
53052 $as_echo X"$as_dir" |
53053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53054 s//\1/
53055 q
53056 }
53057 /^X\(\/\/\)[^/].*/{
53058 s//\1/
53059 q
53060 }
53061 /^X\(\/\/\)$/{
53062 s//\1/
53063 q
53064 }
53065 /^X\(\/\).*/{
53066 s//\1/
53067 q
53068 }
53069 s/.*/./; q'`
53070 test -d "$as_dir" && break
53071 done
53072 test -z "$as_dirs" || eval "mkdir $as_dirs"
53073 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
53074 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
53075 { (exit 1); exit 1; }; }; }
53076 ac_builddir=.
53077
53078 case "$ac_dir" in
53079 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
53080 *)
53081 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
53082 # A ".." for each directory in $ac_dir_suffix.
53083 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
53084 case $ac_top_builddir_sub in
53085 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
53086 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
53087 esac ;;
53088 esac
53089 ac_abs_top_builddir=$ac_pwd
53090 ac_abs_builddir=$ac_pwd$ac_dir_suffix
53091 # for backward compatibility:
53092 ac_top_builddir=$ac_top_build_prefix
53093
53094 case $srcdir in
53095 .) # We are building in place.
53096 ac_srcdir=.
53097 ac_top_srcdir=$ac_top_builddir_sub
53098 ac_abs_top_srcdir=$ac_pwd ;;
53099 [\\/]* | ?:[\\/]* ) # Absolute name.
53100 ac_srcdir=$srcdir$ac_dir_suffix;
53101 ac_top_srcdir=$srcdir
53102 ac_abs_top_srcdir=$srcdir ;;
53103 *) # Relative name.
53104 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
53105 ac_top_srcdir=$ac_top_build_prefix$srcdir
53106 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
53107 esac
53108 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
53109
53110
53111 case $ac_mode in
53112 :F)
53113 #
53114 # CONFIG_FILE
53115 #
53116
53117 case $INSTALL in
53118 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
53119 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
53120 esac
53121 _ACEOF
53122
53123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53124 # If the template does not know about datarootdir, expand it.
53125 # FIXME: This hack should be removed a few years after 2.60.
53126 ac_datarootdir_hack=; ac_datarootdir_seen=
53127
53128 ac_sed_dataroot='
53129 /datarootdir/ {
53130 p
53131 q
53132 }
53133 /@datadir@/p
53134 /@docdir@/p
53135 /@infodir@/p
53136 /@localedir@/p
53137 /@mandir@/p
53138 '
53139 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
53140 *datarootdir*) ac_datarootdir_seen=yes;;
53141 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
53142 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
53143 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
53144 _ACEOF
53145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53146 ac_datarootdir_hack='
53147 s&@datadir@&$datadir&g
53148 s&@docdir@&$docdir&g
53149 s&@infodir@&$infodir&g
53150 s&@localedir@&$localedir&g
53151 s&@mandir@&$mandir&g
53152 s&\\\${datarootdir}&$datarootdir&g' ;;
53153 esac
53154 _ACEOF
53155
53156 # Neutralize VPATH when `$srcdir' = `.'.
53157 # Shell code in configure.ac might set extrasub.
53158 # FIXME: do we really want to maintain this feature?
53159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53160 ac_sed_extra="$ac_vpsub
53161 $extrasub
53162 _ACEOF
53163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53164 :t
53165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53166 s|@configure_input@|$ac_sed_conf_input|;t t
53167 s&@top_builddir@&$ac_top_builddir_sub&;t t
53168 s&@top_build_prefix@&$ac_top_build_prefix&;t t
53169 s&@srcdir@&$ac_srcdir&;t t
53170 s&@abs_srcdir@&$ac_abs_srcdir&;t t
53171 s&@top_srcdir@&$ac_top_srcdir&;t t
53172 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
53173 s&@builddir@&$ac_builddir&;t t
53174 s&@abs_builddir@&$ac_abs_builddir&;t t
53175 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
53176 s&@INSTALL@&$ac_INSTALL&;t t
53177 $ac_datarootdir_hack
53178 "
53179 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
53180 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
53181 $as_echo "$as_me: error: could not create $ac_file" >&2;}
53182 { (exit 1); exit 1; }; }
53183
53184 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
53185 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
53186 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
53187 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
53188 which seems to be undefined. Please make sure it is defined." >&5
53189 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
53190 which seems to be undefined. Please make sure it is defined." >&2;}
53191
53192 rm -f "$tmp/stdin"
53193 case $ac_file in
53194 -) cat "$tmp/out" && rm -f "$tmp/out";;
53195 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
53196 esac \
53197 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
53198 $as_echo "$as_me: error: could not create $ac_file" >&2;}
53199 { (exit 1); exit 1; }; }
53200 ;;
53201 :H)
53202 #
53203 # CONFIG_HEADER
53204 #
53205 if test x"$ac_file" != x-; then
53206 {
53207 $as_echo "/* $configure_input */" \
53208 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
53209 } >"$tmp/config.h" \
53210 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
53211 $as_echo "$as_me: error: could not create $ac_file" >&2;}
53212 { (exit 1); exit 1; }; }
53213 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
53214 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
53215 $as_echo "$as_me: $ac_file is unchanged" >&6;}
53216 else
53217 rm -f "$ac_file"
53218 mv "$tmp/config.h" "$ac_file" \
53219 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
53220 $as_echo "$as_me: error: could not create $ac_file" >&2;}
53221 { (exit 1); exit 1; }; }
53222 fi
53223 else
53224 $as_echo "/* $configure_input */" \
53225 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
53226 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
53227 $as_echo "$as_me: error: could not create -" >&2;}
53228 { (exit 1); exit 1; }; }
53229 fi
53230 ;;
53231
53232 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
53233 $as_echo "$as_me: executing $ac_file commands" >&6;}
53234 ;;
53235 esac
53236
53237
53238 case $ac_file$ac_mode in
53239 "rcdefs.h":C)
53240 mkdir -p $outdir &&
53241 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
53242 ;;
53243 "lib/wx/config/${TOOLCHAIN_FULLNAME}":F) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
53244 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
53245 "utils/ifacecheck/rungccxml.sh":F) chmod +x utils/ifacecheck/rungccxml.sh ;;
53246 "wx-config":C) rm -f wx-config
53247 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
53248 ;;
53249
53250 esac
53251 done # for ac_tag
53252
53253
53254 { (exit 0); exit 0; }
53255 _ACEOF
53256 chmod +x $CONFIG_STATUS
53257 ac_clean_files=$ac_clean_files_save
53258
53259 test $ac_write_fail = 0 ||
53260 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
53261 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
53262 { (exit 1); exit 1; }; }
53263
53264
53265 # configure is writing to config.log, and then calls config.status.
53266 # config.status does its own redirection, appending to config.log.
53267 # Unfortunately, on DOS this fails, as config.log is still kept open
53268 # by configure, so config.status won't be able to write to it; its
53269 # output is simply discarded. So we exec the FD to /dev/null,
53270 # effectively closing config.log, so it can be properly (re)opened and
53271 # appended to by config.status. When coming back to configure, we
53272 # need to make the FD available again.
53273 if test "$no_create" != yes; then
53274 ac_cs_success=:
53275 ac_config_status_args=
53276 test "$silent" = yes &&
53277 ac_config_status_args="$ac_config_status_args --quiet"
53278 exec 5>/dev/null
53279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
53280 exec 5>>config.log
53281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
53282 # would make configure fail if this is the last instruction.
53283 $ac_cs_success || { (exit 1); exit 1; }
53284 fi
53285
53286 #
53287 # CONFIG_SUBDIRS section.
53288 #
53289 if test "$no_recursion" != yes; then
53290
53291 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
53292 # so they do not pile up.
53293 ac_sub_configure_args=
53294 ac_prev=
53295 eval "set x $ac_configure_args"
53296 shift
53297 for ac_arg
53298 do
53299 if test -n "$ac_prev"; then
53300 ac_prev=
53301 continue
53302 fi
53303 case $ac_arg in
53304 -cache-file | --cache-file | --cache-fil | --cache-fi \
53305 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
53306 ac_prev=cache_file ;;
53307 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
53308 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
53309 | --c=*)
53310 ;;
53311 --config-cache | -C)
53312 ;;
53313 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
53314 ac_prev=srcdir ;;
53315 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
53316 ;;
53317 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
53318 ac_prev=prefix ;;
53319 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
53320 ;;
53321 --disable-option-checking)
53322 ;;
53323 *)
53324 case $ac_arg in
53325 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
53326 esac
53327 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
53328 esac
53329 done
53330
53331 # Always prepend --prefix to ensure using the same prefix
53332 # in subdir configurations.
53333 ac_arg="--prefix=$prefix"
53334 case $ac_arg in
53335 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
53336 esac
53337 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
53338
53339 # Pass --silent
53340 if test "$silent" = yes; then
53341 ac_sub_configure_args="--silent $ac_sub_configure_args"
53342 fi
53343
53344 # Always prepend --disable-option-checking to silence warnings, since
53345 # different subdirs can have different --enable and --with options.
53346 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
53347
53348 ac_popdir=`pwd`
53349 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
53350
53351 # Do not complain, so a configure script can configure whichever
53352 # parts of a large source tree are present.
53353 test -d "$srcdir/$ac_dir" || continue
53354
53355 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
53356 $as_echo "$as_me:$LINENO: $ac_msg" >&5
53357 $as_echo "$ac_msg" >&6
53358 { as_dir="$ac_dir"
53359 case $as_dir in #(
53360 -*) as_dir=./$as_dir;;
53361 esac
53362 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
53363 as_dirs=
53364 while :; do
53365 case $as_dir in #(
53366 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
53367 *) as_qdir=$as_dir;;
53368 esac
53369 as_dirs="'$as_qdir' $as_dirs"
53370 as_dir=`$as_dirname -- "$as_dir" ||
53371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53372 X"$as_dir" : 'X\(//\)[^/]' \| \
53373 X"$as_dir" : 'X\(//\)$' \| \
53374 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
53375 $as_echo X"$as_dir" |
53376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53377 s//\1/
53378 q
53379 }
53380 /^X\(\/\/\)[^/].*/{
53381 s//\1/
53382 q
53383 }
53384 /^X\(\/\/\)$/{
53385 s//\1/
53386 q
53387 }
53388 /^X\(\/\).*/{
53389 s//\1/
53390 q
53391 }
53392 s/.*/./; q'`
53393 test -d "$as_dir" && break
53394 done
53395 test -z "$as_dirs" || eval "mkdir $as_dirs"
53396 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
53397 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
53398 { (exit 1); exit 1; }; }; }
53399 ac_builddir=.
53400
53401 case "$ac_dir" in
53402 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
53403 *)
53404 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
53405 # A ".." for each directory in $ac_dir_suffix.
53406 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
53407 case $ac_top_builddir_sub in
53408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
53409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
53410 esac ;;
53411 esac
53412 ac_abs_top_builddir=$ac_pwd
53413 ac_abs_builddir=$ac_pwd$ac_dir_suffix
53414 # for backward compatibility:
53415 ac_top_builddir=$ac_top_build_prefix
53416
53417 case $srcdir in
53418 .) # We are building in place.
53419 ac_srcdir=.
53420 ac_top_srcdir=$ac_top_builddir_sub
53421 ac_abs_top_srcdir=$ac_pwd ;;
53422 [\\/]* | ?:[\\/]* ) # Absolute name.
53423 ac_srcdir=$srcdir$ac_dir_suffix;
53424 ac_top_srcdir=$srcdir
53425 ac_abs_top_srcdir=$srcdir ;;
53426 *) # Relative name.
53427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
53428 ac_top_srcdir=$ac_top_build_prefix$srcdir
53429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
53430 esac
53431 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
53432
53433
53434 cd "$ac_dir"
53435
53436 # Check for guested configure; otherwise get Cygnus style configure.
53437 if test -f "$ac_srcdir/configure.gnu"; then
53438 ac_sub_configure=$ac_srcdir/configure.gnu
53439 elif test -f "$ac_srcdir/configure"; then
53440 ac_sub_configure=$ac_srcdir/configure
53441 elif test -f "$ac_srcdir/configure.in"; then
53442 # This should be Cygnus configure.
53443 ac_sub_configure=$ac_aux_dir/configure
53444 else
53445 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
53446 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
53447 ac_sub_configure=
53448 fi
53449
53450 # The recursion is here.
53451 if test -n "$ac_sub_configure"; then
53452 # Make the cache file name correct relative to the subdirectory.
53453 case $cache_file in
53454 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
53455 *) # Relative name.
53456 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
53457 esac
53458
53459 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
53460 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
53461 # The eval makes quoting arguments work.
53462 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
53463 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
53464 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
53465 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
53466 { (exit 1); exit 1; }; }
53467 fi
53468
53469 cd "$ac_popdir"
53470 done
53471 fi
53472 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
53473 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
53474 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
53475 fi
53476
53477
53478 echo
53479 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
53480 echo ""
53481 echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
53482 echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
53483
53484 echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
53485 echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
53486 echo $ECHO_N " Should wxWidgets support Unicode? ${wxUSE_UNICODE:-no}$ECHO_C"
53487 if test "$wxUSE_UNICODE" = "yes"; then
53488 if test "$wxUSE_UNICODE_UTF8" = "yes"; then
53489 echo " (using UTF-8)"
53490 else
53491 echo " (using wchar_t)"
53492 fi
53493 else
53494 echo
53495 fi
53496
53497 echo " What level of wxWidgets compatibility should be enabled?"
53498 echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-no}"
53499 echo " wxWidgets 2.8 ${WXWIN_COMPATIBILITY_2_8:-yes}"
53500
53501 echo " Which libraries should wxWidgets use?"
53502 echo " STL ${wxUSE_STL}"
53503 echo " jpeg ${wxUSE_LIBJPEG-none}"
53504 echo " png ${wxUSE_LIBPNG-none}"
53505 echo " regex ${wxUSE_REGEX}"
53506 echo " tiff ${wxUSE_LIBTIFF-none}"
53507 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
53508 echo " xpm ${wxUSE_LIBXPM-none}"
53509 fi
53510 echo " zlib ${wxUSE_ZLIB}"
53511 echo " expat ${wxUSE_EXPAT}"
53512 echo " libmspack ${wxUSE_LIBMSPACK}"
53513 echo " sdl ${wxUSE_LIBSDL}"
53514
53515 echo ""
53516