put dnl on a new line so it doesn't join lines, remove redundant
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 49606 2007-11-03 16:14:28Z PC .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 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 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   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
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 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='wxWidgets'
577 PACKAGE_TARNAME='wxwidgets'
578 PACKAGE_VERSION='2.9.0'
579 PACKAGE_STRING='wxWidgets 2.9.0'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 target
665 target_cpu
666 target_vendor
667 target_os
668 wx_top_builddir
669 CC
670 CFLAGS
671 LDFLAGS
672 CPPFLAGS
673 ac_ct_CC
674 EXEEXT
675 OBJEXT
676 CPP
677 GREP
678 EGREP
679 CXX
680 CXXFLAGS
681 ac_ct_CXX
682 AR
683 subdirs
684 PKG_CONFIG
685 GTK_CFLAGS
686 GTK_LIBS
687 GTK_CONFIG
688 DIRECTFB_CFLAGS
689 DIRECTFB_LIBS
690 XMKMF
691 X_CFLAGS
692 X_PRE_LIBS
693 X_LIBS
694 X_EXTRA_LIBS
695 PANGOX_CFLAGS
696 PANGOX_LIBS
697 PANGOFT2_CFLAGS
698 PANGOFT2_LIBS
699 PANGOXFT_CFLAGS
700 PANGOXFT_LIBS
701 CFLAGS_VISIBILITY
702 CXXFLAGS_VISIBILITY
703 LIBICONV
704 SDL_CONFIG
705 SDL_CFLAGS
706 SDL_LIBS
707 GTKPRINT_CFLAGS
708 GTKPRINT_LIBS
709 LIBGNOMEPRINTUI_CFLAGS
710 LIBGNOMEPRINTUI_LIBS
711 GNOMEVFS_CFLAGS
712 GNOMEVFS_LIBS
713 HILDON_CFLAGS
714 HILDON_LIBS
715 CAIRO_CFLAGS
716 CAIRO_LIBS
717 GST_CFLAGS
718 GST_LIBS
719 ALL_WX_LIBS
720 BUILT_WX_LIBS
721 STD_BASE_LIBS
722 STD_GUI_LIBS
723 wxUSE_ZLIB
724 wxUSE_REGEX
725 wxUSE_EXPAT
726 wxUSE_LIBJPEG
727 wxUSE_LIBPNG
728 wxUSE_LIBTIFF
729 VENDOR
730 OFFICIAL_BUILD
731 WX_FLAVOUR
732 WX_LIB_FLAVOUR
733 WXUNIV
734 MONOLITHIC
735 USE_PLUGINS
736 CXXWARNINGS
737 EXTRALIBS
738 EXTRALIBS_XML
739 EXTRALIBS_HTML
740 EXTRALIBS_GUI
741 EXTRALIBS_OPENGL
742 EXTRALIBS_SDL
743 WITH_PLUGIN_SDL
744 EXTRALIBS_GTKPRINT
745 EXTRALIBS_GNOMEPRINT
746 EXTRALIBS_GNOMEVFS
747 EXTRALIBS_HILDON
748 UNICODE
749 BUILD
750 DEBUG_INFO
751 DEBUG_FLAG
752 TOOLKIT_LOWERCASE
753 TOOLKIT_VERSION
754 SAMPLES_RPATH_FLAG
755 SAMPLES_RPATH_POSTLINK
756 HOST_SUFFIX
757 CPPUNIT_CFLAGS
758 CPPUNIT_LIBS
759 RANLIB
760 INSTALL_PROGRAM
761 INSTALL_SCRIPT
762 INSTALL_DATA
763 LN_S
764 SET_MAKE
765 MAKE_SET
766 AROPTIONS
767 STRIP
768 NM
769 INSTALL_DIR
770 LDFLAGS_GUI
771 IF_GNU_MAKE
772 PLATFORM_UNIX
773 PLATFORM_WIN32
774 PLATFORM_MSDOS
775 PLATFORM_MAC
776 PLATFORM_MACOS
777 PLATFORM_MACOSX
778 PLATFORM_OS2
779 PLATFORM_BEOS
780 SO_SUFFIX
781 SO_SUFFIX_MODULE
782 DLLIMP_SUFFIX
783 LIBPREFIX
784 LIBEXT
785 DLLPREFIX
786 DLLPREFIX_MODULE
787 dlldir
788 AIX_CXX_LD
789 SHARED_LD_CC
790 SHARED_LD_CXX
791 SHARED_LD_MODULE_CC
792 SHARED_LD_MODULE_CXX
793 PIC_FLAG
794 WINDOWS_IMPLIB
795 USE_SOVERSION
796 USE_SOVERLINUX
797 USE_SOVERSOLARIS
798 USE_SOVERCYGWIN
799 USE_MACVERSION
800 USE_SOSYMLINKS
801 SONAME_FLAG
802 DEPS_TRACKING
803 BK_DEPS
804 WINDRES
805 REZ
806 SETFILE
807 GCC_PCH
808 ICC_PCH
809 BK_MAKE_PCH
810 COND_BUILD_DEBUG
811 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
812 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
813 COND_BUILD_DEBUG_UNICODE_0
814 COND_BUILD_DEBUG_UNICODE_1
815 COND_BUILD_RELEASE
816 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
817 COND_BUILD_RELEASE_UNICODE_0
818 COND_BUILD_RELEASE_UNICODE_1
819 COND_DEBUG_FLAG_1
820 COND_DEBUG_INFO_0
821 COND_DEBUG_INFO_1
822 COND_DEPS_TRACKING_0
823 COND_DEPS_TRACKING_1
824 COND_GCC_PCH_1
825 COND_ICC_PCH_1
826 COND_MONOLITHIC_0
827 COND_MONOLITHIC_0_SHARED_0
828 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
829 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
830 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
831 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
833 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
834 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
835 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
836 COND_MONOLITHIC_0_SHARED_1
837 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
838 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
839 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
840 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
842 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
843 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
844 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
845 COND_MONOLITHIC_0_USE_AUI_1
846 COND_MONOLITHIC_0_USE_GUI_1
847 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
848 COND_MONOLITHIC_0_USE_HTML_1
849 COND_MONOLITHIC_0_USE_MEDIA_1
850 COND_MONOLITHIC_0_USE_QA_1
851 COND_MONOLITHIC_0_USE_RICHTEXT_1
852 COND_MONOLITHIC_0_USE_STC_1
853 COND_MONOLITHIC_0_USE_XRC_1
854 COND_MONOLITHIC_1
855 COND_MONOLITHIC_1_SHARED_0
856 COND_MONOLITHIC_1_SHARED_1
857 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
858 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
859 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
860 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
861 COND_PLATFORM_MACOSX_1
862 COND_PLATFORM_MACOSX_1_TOOLKIT_
863 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
864 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
865 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
866 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
867 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
868 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
869 COND_PLATFORM_MACOSX_1_USE_GUI_1
870 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
871 COND_PLATFORM_MACOS_1
872 COND_PLATFORM_MSDOS_1
873 COND_PLATFORM_OS2_1
874 COND_PLATFORM_UNIX_0
875 COND_PLATFORM_UNIX_1
876 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
877 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
878 COND_PLATFORM_UNIX_1_USE_GUI_1
879 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
880 COND_PLATFORM_WIN32_0
881 COND_PLATFORM_WIN32_1
882 COND_SHARED_0
883 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
884 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
885 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
886 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
887 COND_SHARED_0_USE_STC_1
888 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
889 COND_SHARED_0_WXUSE_REGEX_BUILTIN
890 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
891 COND_SHARED_1
892 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
893 COND_TOOLKIT_
894 COND_TOOLKIT_COCOA
895 COND_TOOLKIT_COCOA_USE_GUI_1
896 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
897 COND_TOOLKIT_DFB
898 COND_TOOLKIT_DFB_USE_GUI_1
899 COND_TOOLKIT_GTK
900 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
901 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
902 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
903 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
904 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
905 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
906 COND_TOOLKIT_GTK_USE_GUI_1
907 COND_TOOLKIT_MAC
908 COND_TOOLKIT_MAC_USE_GUI_1
909 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
910 COND_TOOLKIT_MGL
911 COND_TOOLKIT_MGL_USE_GUI_1
912 COND_TOOLKIT_MOTIF
913 COND_TOOLKIT_MOTIF_USE_GUI_1
914 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
915 COND_TOOLKIT_MSW
916 COND_TOOLKIT_MSW_USE_GUI_1
917 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
918 COND_TOOLKIT_MSW_WXUNIV_0
919 COND_TOOLKIT_PM
920 COND_TOOLKIT_PM_USE_GUI_1
921 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
922 COND_TOOLKIT_WINCE
923 COND_TOOLKIT_WINCE_USE_GUI_1
924 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
925 COND_TOOLKIT_WINCE_WXUNIV_0
926 COND_TOOLKIT_X11
927 COND_TOOLKIT_X11_USE_GUI_1
928 COND_UNICODE_1
929 COND_USE_EXCEPTIONS_0
930 COND_USE_EXCEPTIONS_1
931 COND_USE_GUI_0
932 COND_USE_GUI_1
933 COND_USE_GUI_1_USE_OPENGL_1
934 COND_USE_GUI_1_WXUNIV_0
935 COND_USE_GUI_1_WXUNIV_1
936 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
937 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
938 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
939 COND_USE_PCH_1
940 COND_USE_PLUGINS_0
941 COND_USE_RTTI_0
942 COND_USE_RTTI_1
943 COND_USE_SOSYMLINKS_1
944 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
945 COND_USE_SOVERLINUX_1
946 COND_USE_SOVERSION_0
947 COND_USE_SOVERSOLARIS_1
948 COND_USE_STC_1
949 COND_USE_THREADS_0
950 COND_USE_THREADS_1
951 COND_USE_XRC_1
952 COND_WINDOWS_IMPLIB_1
953 COND_WITH_PLUGIN_SDL_1
954 COND_WXUNIV_0
955 COND_WXUNIV_1
956 COND_WXUSE_EXPAT_BUILTIN
957 COND_WXUSE_LIBJPEG_BUILTIN
958 COND_WXUSE_LIBPNG_BUILTIN
959 COND_WXUSE_LIBTIFF_BUILTIN
960 COND_WXUSE_REGEX_BUILTIN
961 COND_WXUSE_ZLIB_BUILTIN
962 DEREZ
963 SHARED
964 WX_LIBRARY_BASENAME_NOGUI
965 WX_LIBRARY_BASENAME_GUI
966 USE_GUI
967 AFMINSTALL
968 WIN32INSTALL
969 TOOLKIT
970 TOOLKIT_DIR
971 TOOLCHAIN_NAME
972 TOOLCHAIN_FULLNAME
973 cross_compiling
974 WIDGET_SET
975 WX_RELEASE
976 WX_VERSION
977 WX_SUBVERSION
978 WX_CHARTYPE
979 WX_DEBUGTYPE
980 WXCONFIG_CPPFLAGS
981 WXCONFIG_CFLAGS
982 WXCONFIG_CXXFLAGS
983 WXCONFIG_LIBS
984 WXCONFIG_RPATH
985 WXCONFIG_LDFLAGS_GUI
986 WXCONFIG_RESFLAGS
987 GUIDIST
988 DISTDIR
989 SAMPLES_SUBDIRS
990 LDFLAGS_GL
991 OPENGL_LIBS
992 DMALLOC_LIBS
993 WX_VERSION_TAG
994 RESCOMP
995 RESFLAGS
996 RESPROGRAMOBJ
997 WX_RESOURCES_MACOSX_ASCII
998 WX_RESOURCES_MACOSX_DATA
999 LIBWXMACRES
1000 POSTLINK_COMMAND
1001 MACSETFILE
1002 GCC
1003 DLLTOOL
1004 CPPUNIT_CONFIG
1005 LIBOBJS
1006 LTLIBOBJS'
1007 ac_subst_files=''
1008       ac_precious_vars='build_alias
1009 host_alias
1010 target_alias
1011 CC
1012 CFLAGS
1013 LDFLAGS
1014 LIBS
1015 CPPFLAGS
1016 CPP
1017 CXX
1018 CXXFLAGS
1019 CCC
1020 PKG_CONFIG
1021 DIRECTFB_CFLAGS
1022 DIRECTFB_LIBS
1023 XMKMF
1024 PANGOX_CFLAGS
1025 PANGOX_LIBS
1026 PANGOFT2_CFLAGS
1027 PANGOFT2_LIBS
1028 PANGOXFT_CFLAGS
1029 PANGOXFT_LIBS
1030 GTKPRINT_CFLAGS
1031 GTKPRINT_LIBS
1032 LIBGNOMEPRINTUI_CFLAGS
1033 LIBGNOMEPRINTUI_LIBS
1034 GNOMEVFS_CFLAGS
1035 GNOMEVFS_LIBS
1036 HILDON_CFLAGS
1037 HILDON_LIBS
1038 CAIRO_CFLAGS
1039 CAIRO_LIBS
1040 GST_CFLAGS
1041 GST_LIBS'
1042 ac_subdirs_all='src/tiff
1043 src/expat'
1044
1045 # Initialize some variables set by options.
1046 ac_init_help=
1047 ac_init_version=false
1048 # The variables have the same names as the options, with
1049 # dashes changed to underlines.
1050 cache_file=/dev/null
1051 exec_prefix=NONE
1052 no_create=
1053 no_recursion=
1054 prefix=NONE
1055 program_prefix=NONE
1056 program_suffix=NONE
1057 program_transform_name=s,x,x,
1058 silent=
1059 site=
1060 srcdir=
1061 verbose=
1062 x_includes=NONE
1063 x_libraries=NONE
1064
1065 # Installation directory options.
1066 # These are left unexpanded so users can "make install exec_prefix=/foo"
1067 # and all the variables that are supposed to be based on exec_prefix
1068 # by default will actually change.
1069 # Use braces instead of parens because sh, perl, etc. also accept them.
1070 # (The list follows the same order as the GNU Coding Standards.)
1071 bindir='${exec_prefix}/bin'
1072 sbindir='${exec_prefix}/sbin'
1073 libexecdir='${exec_prefix}/libexec'
1074 datarootdir='${prefix}/share'
1075 datadir='${datarootdir}'
1076 sysconfdir='${prefix}/etc'
1077 sharedstatedir='${prefix}/com'
1078 localstatedir='${prefix}/var'
1079 includedir='${prefix}/include'
1080 oldincludedir='/usr/include'
1081 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1082 infodir='${datarootdir}/info'
1083 htmldir='${docdir}'
1084 dvidir='${docdir}'
1085 pdfdir='${docdir}'
1086 psdir='${docdir}'
1087 libdir='${exec_prefix}/lib'
1088 localedir='${datarootdir}/locale'
1089 mandir='${datarootdir}/man'
1090
1091 ac_prev=
1092 ac_dashdash=
1093 for ac_option
1094 do
1095   # If the previous option needs an argument, assign it.
1096   if test -n "$ac_prev"; then
1097     eval $ac_prev=\$ac_option
1098     ac_prev=
1099     continue
1100   fi
1101
1102   case $ac_option in
1103   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1104   *)    ac_optarg=yes ;;
1105   esac
1106
1107   # Accept the important Cygnus configure options, so we can diagnose typos.
1108
1109   case $ac_dashdash$ac_option in
1110   --)
1111     ac_dashdash=yes ;;
1112
1113   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1114     ac_prev=bindir ;;
1115   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1116     bindir=$ac_optarg ;;
1117
1118   -build | --build | --buil | --bui | --bu)
1119     ac_prev=build_alias ;;
1120   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1121     build_alias=$ac_optarg ;;
1122
1123   -cache-file | --cache-file | --cache-fil | --cache-fi \
1124   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1125     ac_prev=cache_file ;;
1126   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1127   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1128     cache_file=$ac_optarg ;;
1129
1130   --config-cache | -C)
1131     cache_file=config.cache ;;
1132
1133   -datadir | --datadir | --datadi | --datad)
1134     ac_prev=datadir ;;
1135   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1136     datadir=$ac_optarg ;;
1137
1138   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1139   | --dataroo | --dataro | --datar)
1140     ac_prev=datarootdir ;;
1141   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1142   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1143     datarootdir=$ac_optarg ;;
1144
1145   -disable-* | --disable-*)
1146     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1149       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1152     eval enable_$ac_feature=no ;;
1153
1154   -docdir | --docdir | --docdi | --doc | --do)
1155     ac_prev=docdir ;;
1156   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1157     docdir=$ac_optarg ;;
1158
1159   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1160     ac_prev=dvidir ;;
1161   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1162     dvidir=$ac_optarg ;;
1163
1164   -enable-* | --enable-*)
1165     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1166     # Reject names that are not valid shell variable names.
1167     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1169    { (exit 1); exit 1; }; }
1170     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1171     eval enable_$ac_feature=\$ac_optarg ;;
1172
1173   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1174   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1175   | --exec | --exe | --ex)
1176     ac_prev=exec_prefix ;;
1177   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1178   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1179   | --exec=* | --exe=* | --ex=*)
1180     exec_prefix=$ac_optarg ;;
1181
1182   -gas | --gas | --ga | --g)
1183     # Obsolete; use --with-gas.
1184     with_gas=yes ;;
1185
1186   -help | --help | --hel | --he | -h)
1187     ac_init_help=long ;;
1188   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1189     ac_init_help=recursive ;;
1190   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1191     ac_init_help=short ;;
1192
1193   -host | --host | --hos | --ho)
1194     ac_prev=host_alias ;;
1195   -host=* | --host=* | --hos=* | --ho=*)
1196     host_alias=$ac_optarg ;;
1197
1198   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1199     ac_prev=htmldir ;;
1200   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1201   | --ht=*)
1202     htmldir=$ac_optarg ;;
1203
1204   -includedir | --includedir | --includedi | --included | --include \
1205   | --includ | --inclu | --incl | --inc)
1206     ac_prev=includedir ;;
1207   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1208   | --includ=* | --inclu=* | --incl=* | --inc=*)
1209     includedir=$ac_optarg ;;
1210
1211   -infodir | --infodir | --infodi | --infod | --info | --inf)
1212     ac_prev=infodir ;;
1213   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1214     infodir=$ac_optarg ;;
1215
1216   -libdir | --libdir | --libdi | --libd)
1217     ac_prev=libdir ;;
1218   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1219     libdir=$ac_optarg ;;
1220
1221   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1222   | --libexe | --libex | --libe)
1223     ac_prev=libexecdir ;;
1224   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1225   | --libexe=* | --libex=* | --libe=*)
1226     libexecdir=$ac_optarg ;;
1227
1228   -localedir | --localedir | --localedi | --localed | --locale)
1229     ac_prev=localedir ;;
1230   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1231     localedir=$ac_optarg ;;
1232
1233   -localstatedir | --localstatedir | --localstatedi | --localstated \
1234   | --localstate | --localstat | --localsta | --localst | --locals)
1235     ac_prev=localstatedir ;;
1236   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1237   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1238     localstatedir=$ac_optarg ;;
1239
1240   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1241     ac_prev=mandir ;;
1242   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1243     mandir=$ac_optarg ;;
1244
1245   -nfp | --nfp | --nf)
1246     # Obsolete; use --without-fp.
1247     with_fp=no ;;
1248
1249   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1250   | --no-cr | --no-c | -n)
1251     no_create=yes ;;
1252
1253   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1254   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1255     no_recursion=yes ;;
1256
1257   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1258   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1259   | --oldin | --oldi | --old | --ol | --o)
1260     ac_prev=oldincludedir ;;
1261   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1262   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1263   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1264     oldincludedir=$ac_optarg ;;
1265
1266   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1267     ac_prev=prefix ;;
1268   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1269     prefix=$ac_optarg ;;
1270
1271   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1272   | --program-pre | --program-pr | --program-p)
1273     ac_prev=program_prefix ;;
1274   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1275   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1276     program_prefix=$ac_optarg ;;
1277
1278   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1279   | --program-suf | --program-su | --program-s)
1280     ac_prev=program_suffix ;;
1281   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1282   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1283     program_suffix=$ac_optarg ;;
1284
1285   -program-transform-name | --program-transform-name \
1286   | --program-transform-nam | --program-transform-na \
1287   | --program-transform-n | --program-transform- \
1288   | --program-transform | --program-transfor \
1289   | --program-transfo | --program-transf \
1290   | --program-trans | --program-tran \
1291   | --progr-tra | --program-tr | --program-t)
1292     ac_prev=program_transform_name ;;
1293   -program-transform-name=* | --program-transform-name=* \
1294   | --program-transform-nam=* | --program-transform-na=* \
1295   | --program-transform-n=* | --program-transform-=* \
1296   | --program-transform=* | --program-transfor=* \
1297   | --program-transfo=* | --program-transf=* \
1298   | --program-trans=* | --program-tran=* \
1299   | --progr-tra=* | --program-tr=* | --program-t=*)
1300     program_transform_name=$ac_optarg ;;
1301
1302   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1303     ac_prev=pdfdir ;;
1304   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1305     pdfdir=$ac_optarg ;;
1306
1307   -psdir | --psdir | --psdi | --psd | --ps)
1308     ac_prev=psdir ;;
1309   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1310     psdir=$ac_optarg ;;
1311
1312   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1313   | -silent | --silent | --silen | --sile | --sil)
1314     silent=yes ;;
1315
1316   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1317     ac_prev=sbindir ;;
1318   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1319   | --sbi=* | --sb=*)
1320     sbindir=$ac_optarg ;;
1321
1322   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1323   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1324   | --sharedst | --shareds | --shared | --share | --shar \
1325   | --sha | --sh)
1326     ac_prev=sharedstatedir ;;
1327   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1328   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1329   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1330   | --sha=* | --sh=*)
1331     sharedstatedir=$ac_optarg ;;
1332
1333   -site | --site | --sit)
1334     ac_prev=site ;;
1335   -site=* | --site=* | --sit=*)
1336     site=$ac_optarg ;;
1337
1338   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1339     ac_prev=srcdir ;;
1340   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1341     srcdir=$ac_optarg ;;
1342
1343   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1344   | --syscon | --sysco | --sysc | --sys | --sy)
1345     ac_prev=sysconfdir ;;
1346   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1347   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1348     sysconfdir=$ac_optarg ;;
1349
1350   -target | --target | --targe | --targ | --tar | --ta | --t)
1351     ac_prev=target_alias ;;
1352   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1353     target_alias=$ac_optarg ;;
1354
1355   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1356     verbose=yes ;;
1357
1358   -version | --version | --versio | --versi | --vers | -V)
1359     ac_init_version=: ;;
1360
1361   -with-* | --with-*)
1362     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1363     # Reject names that are not valid shell variable names.
1364     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365       { echo "$as_me: error: invalid package name: $ac_package" >&2
1366    { (exit 1); exit 1; }; }
1367     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1368     eval with_$ac_package=\$ac_optarg ;;
1369
1370   -without-* | --without-*)
1371     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1372     # Reject names that are not valid shell variable names.
1373     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374       { echo "$as_me: error: invalid package name: $ac_package" >&2
1375    { (exit 1); exit 1; }; }
1376     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1377     eval with_$ac_package=no ;;
1378
1379   --x)
1380     # Obsolete; use --with-x.
1381     with_x=yes ;;
1382
1383   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1384   | --x-incl | --x-inc | --x-in | --x-i)
1385     ac_prev=x_includes ;;
1386   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1387   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1388     x_includes=$ac_optarg ;;
1389
1390   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1391   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1392     ac_prev=x_libraries ;;
1393   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1394   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1395     x_libraries=$ac_optarg ;;
1396
1397   -*) { echo "$as_me: error: unrecognized option: $ac_option
1398 Try \`$0 --help' for more information." >&2
1399    { (exit 1); exit 1; }; }
1400     ;;
1401
1402   *=*)
1403     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1404     # Reject names that are not valid shell variable names.
1405     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1406       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1407    { (exit 1); exit 1; }; }
1408     eval $ac_envvar=\$ac_optarg
1409     export $ac_envvar ;;
1410
1411   *)
1412     # FIXME: should be removed in autoconf 3.0.
1413     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1414     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1415       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1416     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1417     ;;
1418
1419   esac
1420 done
1421
1422 if test -n "$ac_prev"; then
1423   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1424   { echo "$as_me: error: missing argument to $ac_option" >&2
1425    { (exit 1); exit 1; }; }
1426 fi
1427
1428 # Be sure to have absolute directory names.
1429 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1430                 datadir sysconfdir sharedstatedir localstatedir includedir \
1431                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1432                 libdir localedir mandir
1433 do
1434   eval ac_val=\$$ac_var
1435   case $ac_val in
1436     [\\/$]* | ?:[\\/]* )  continue;;
1437     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1438   esac
1439   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1440    { (exit 1); exit 1; }; }
1441 done
1442
1443 # There might be people who depend on the old broken behavior: `$host'
1444 # used to hold the argument of --host etc.
1445 # FIXME: To remove some day.
1446 build=$build_alias
1447 host=$host_alias
1448 target=$target_alias
1449
1450 # FIXME: To remove some day.
1451 if test "x$host_alias" != x; then
1452   if test "x$build_alias" = x; then
1453     cross_compiling=maybe
1454     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1455     If a cross compiler is detected then cross compile mode will be used." >&2
1456   elif test "x$build_alias" != "x$host_alias"; then
1457     cross_compiling=yes
1458   fi
1459 fi
1460
1461 ac_tool_prefix=
1462 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1463
1464 test "$silent" = yes && exec 6>/dev/null
1465
1466
1467 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1468 ac_ls_di=`ls -di .` &&
1469 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1470   { echo "$as_me: error: Working directory cannot be determined" >&2
1471    { (exit 1); exit 1; }; }
1472 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1473   { echo "$as_me: error: pwd does not report name of working directory" >&2
1474    { (exit 1); exit 1; }; }
1475
1476
1477 # Find the source files, if location was not specified.
1478 if test -z "$srcdir"; then
1479   ac_srcdir_defaulted=yes
1480   # Try the directory containing this script, then the parent directory.
1481   ac_confdir=`$as_dirname -- "$0" ||
1482 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1483          X"$0" : 'X\(//\)[^/]' \| \
1484          X"$0" : 'X\(//\)$' \| \
1485          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1486 echo X"$0" |
1487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1488             s//\1/
1489             q
1490           }
1491           /^X\(\/\/\)[^/].*/{
1492             s//\1/
1493             q
1494           }
1495           /^X\(\/\/\)$/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\).*/{
1500             s//\1/
1501             q
1502           }
1503           s/.*/./; q'`
1504   srcdir=$ac_confdir
1505   if test ! -r "$srcdir/$ac_unique_file"; then
1506     srcdir=..
1507   fi
1508 else
1509   ac_srcdir_defaulted=no
1510 fi
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1512   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1513   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1514    { (exit 1); exit 1; }; }
1515 fi
1516 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1517 ac_abs_confdir=`(
1518         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1519    { (exit 1); exit 1; }; }
1520         pwd)`
1521 # When building in place, set srcdir=.
1522 if test "$ac_abs_confdir" = "$ac_pwd"; then
1523   srcdir=.
1524 fi
1525 # Remove unnecessary trailing slashes from srcdir.
1526 # Double slashes in file names in object file debugging info
1527 # mess up M-x gdb in Emacs.
1528 case $srcdir in
1529 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1530 esac
1531 for ac_var in $ac_precious_vars; do
1532   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1533   eval ac_env_${ac_var}_value=\$${ac_var}
1534   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1535   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1536 done
1537
1538 #
1539 # Report the --help message.
1540 #
1541 if test "$ac_init_help" = "long"; then
1542   # Omit some internal or obsolete options to make the list less imposing.
1543   # This message is too long to be a string in the A/UX 3.1 sh.
1544   cat <<_ACEOF
1545 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1546
1547 Usage: $0 [OPTION]... [VAR=VALUE]...
1548
1549 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1550 VAR=VALUE.  See below for descriptions of some of the useful variables.
1551
1552 Defaults for the options are specified in brackets.
1553
1554 Configuration:
1555   -h, --help              display this help and exit
1556       --help=short        display options specific to this package
1557       --help=recursive    display the short help of all the included packages
1558   -V, --version           display version information and exit
1559   -q, --quiet, --silent   do not print \`checking...' messages
1560       --cache-file=FILE   cache test results in FILE [disabled]
1561   -C, --config-cache      alias for \`--cache-file=config.cache'
1562   -n, --no-create         do not create output files
1563       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1564
1565 Installation directories:
1566   --prefix=PREFIX         install architecture-independent files in PREFIX
1567                           [$ac_default_prefix]
1568   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1569                           [PREFIX]
1570
1571 By default, \`make install' will install all the files in
1572 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1573 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1574 for instance \`--prefix=\$HOME'.
1575
1576 For better control, use the options below.
1577
1578 Fine tuning of the installation directories:
1579   --bindir=DIR           user executables [EPREFIX/bin]
1580   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1581   --libexecdir=DIR       program executables [EPREFIX/libexec]
1582   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1583   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1584   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1585   --libdir=DIR           object code libraries [EPREFIX/lib]
1586   --includedir=DIR       C header files [PREFIX/include]
1587   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1588   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1589   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1590   --infodir=DIR          info documentation [DATAROOTDIR/info]
1591   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1592   --mandir=DIR           man documentation [DATAROOTDIR/man]
1593   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1594   --htmldir=DIR          html documentation [DOCDIR]
1595   --dvidir=DIR           dvi documentation [DOCDIR]
1596   --pdfdir=DIR           pdf documentation [DOCDIR]
1597   --psdir=DIR            ps documentation [DOCDIR]
1598 _ACEOF
1599
1600   cat <<\_ACEOF
1601
1602 X features:
1603   --x-includes=DIR    X include files are in DIR
1604   --x-libraries=DIR   X library files are in DIR
1605
1606 System types:
1607   --build=BUILD     configure for building on BUILD [guessed]
1608   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1609   --target=TARGET   configure for building compilers for TARGET [HOST]
1610 _ACEOF
1611 fi
1612
1613 if test -n "$ac_init_help"; then
1614   case $ac_init_help in
1615      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1616    esac
1617   cat <<\_ACEOF
1618
1619 Optional Features:
1620   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1621   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1622   --disable-gui           don't build GUI parts of the library
1623   --enable-monolithic     build wxWidgets as single library
1624   --enable-plugins        build parts of wxWidgets as loadable components
1625   --enable-official_build official build of wxWidgets (win32 DLL only)
1626   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1627   --disable-all-features  disable all optional features to build minimal library
1628   --enable-universal      use wxWidgets GUI controls instead of native ones
1629   --enable-nanox          use NanoX
1630   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1631   --enable-gpe            use GNOME PDA Environment features if possible
1632   --disable-shared        create static library instead of shared
1633   --disable-optimise      create optimised code
1634   --enable-debug          same as debug_flag and debug_info
1635   --enable-stl            use STL for containers
1636   --enable-std_iostreams  use standard C++ stream classes
1637   --enable-std_string     use standard C++ string classes
1638   --disable-unicode       compile without Unicode support
1639   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1640   --enable-utf8           use UTF-8 representation for strings (Unix only)
1641   --enable-utf8only      only support UTF-8 locales in UTF-8 build (Unix only)
1642   --enable-extended_rtti  use extended RTTI (XTI)
1643   --enable-omf            use OMF object format
1644   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1645   --enable-debug_info     create code with debugging information
1646   --enable-debug_gdb      create code with extra GDB debugging information
1647   --enable-debug_cntxt    use wxDebugContext
1648   --enable-mem_tracing    create code with memory tracing
1649   --enable-profile        create code with profiling information
1650   --enable-no_rtti        create code without RTTI information
1651   --enable-no_exceptions  create code without C++ exceptions handling
1652   --enable-permissive     compile code disregarding strict ANSI
1653   --enable-no_deps        create code without dependency information
1654   --disable-vararg_macros don't use vararg macros, even if they are supported
1655   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1656   --enable-compat26       enable wxWidgets 2.6 compatibility
1657   --disable-compat28      disable wxWidgets 2.8 compatibility
1658   --disable-rpath         disable use of rpath for uninstalled builds
1659   --enable-objc_uniquifying enable Objective-C class name uniquifying
1660   --disable-visibility    disable use of ELF symbols visibility even if supported
1661   --enable-intl           use internationalization system
1662   --enable-config         use wxConfig (and derived) classes
1663   --enable-protocols      use wxProtocol and derived classes
1664   --enable-ftp            use wxFTP (requires wxProtocol
1665   --enable-http           use wxHTTP (requires wxProtocol
1666   --enable-fileproto      use wxFileProto class (requires wxProtocol
1667   --enable-sockets        use socket/network classes
1668   --enable-ole            use OLE classes (Win32 only)
1669   --enable-dataobj        use data object classes
1670   --enable-ipc            use interprocess communication (wxSocket etc.)
1671   --enable-baseevtloop    use event loop in console programs too
1672   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1673   --enable-selectloop     use wxSelectDispatcher class
1674   --enable-apple_ieee     use the Apple IEEE codec
1675   --enable-arcstream      use wxArchive streams
1676   --enable-base64         use base64 encoding/decoding functions
1677   --enable-backtrace      use wxStackWalker class for getting backtraces
1678   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1679   --enable-cmdline        use wxCmdLineParser class
1680   --enable-datetime       use wxDateTime class
1681   --enable-debugreport    use wxDebugReport class
1682   --enable-dialupman      use dialup network classes
1683   --enable-dynlib         use wxLibrary class for DLL loading
1684   --enable-dynamicloader  use (new) wxDynamicLibrary class
1685   --enable-exceptions     build exception-safe library
1686   --enable-ffile          use wxFFile class
1687   --enable-file           use wxFile class
1688   --enable-filesystem     use virtual file systems classes
1689   --enable-fontenum       use wxFontEnumerator class
1690   --enable-fontmap        use font encodings conversion classes
1691   --enable-fs_archive     use virtual archive filesystems
1692   --enable-fs_inet        use virtual HTTP/FTP filesystems
1693   --enable-fs_zip         now replaced by fs_archive
1694   --enable-geometry       use geometry class
1695   --enable-log            use logging system
1696   --enable-longlong       use wxLongLong class
1697   --enable-mimetype       use wxMimeTypesManager
1698   --enable-snglinst       use wxSingleInstanceChecker class
1699   --enable-stdpaths       use wxStandardPaths class
1700   --enable-stopwatch      use wxStopWatch class
1701   --enable-streams        use wxStream etc classes
1702   --enable-sysoptions     use wxSystemOptions
1703   --enable-tarstream      use wxTar streams
1704   --enable-textbuf        use wxTextBuffer class
1705   --enable-textfile       use wxTextFile class
1706   --enable-timer          use wxTimer class
1707   --enable-sound          use wxSound class
1708   --enable-mediactrl      use wxMediaCtrl class
1709   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1710   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1711   --enable-zipstream      use wxZip streams
1712   --enable-url            use wxURL class
1713   --enable-variant        use wxVariant class
1714   --enable-protocol       use wxProtocol class
1715   --enable-protocol-http  HTTP support in wxProtocol
1716   --enable-protocol-ftp   FTP support in wxProtocol
1717   --enable-protocol-file  FILE support in wxProtocol
1718   --enable-threads        use threads
1719   --enable-iniconf        use wxIniConfig (Win32 only)
1720   --enable-regkey         use wxRegKey class (Win32 only)
1721   --enable-docview        use document view architecture
1722   --enable-help           use help subsystem
1723   --enable-mshtmlhelp     use MS HTML Help (win32)
1724   --enable-html           use wxHTML sub-library
1725   --enable-htmlhelp       use wxHTML-based help
1726   --enable-xrc            use XRC resources sub-library
1727   --enable-aui            use AUI docking library
1728   --enable-stc            use wxStyledTextCtrl library
1729   --enable-constraints    use layout-constraints system
1730   --enable-printarch      use printing architecture
1731   --enable-mdi            use multiple document interface architecture
1732   --enable-mdidoc         use docview architecture with MDI
1733   --enable-loggui         use standard GUI logger
1734   --enable-logwin         use wxLogWindow
1735   --enable-logdialog      use wxLogDialog
1736   --enable-webkit         use wxWebKitCtrl (Mac)
1737   --enable-richtext       use wxRichTextCtrl
1738   --enable-graphics_ctx   use graphics context 2D drawing API
1739   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1740   --enable-svg            use wxSVGFileDC device context
1741   --enable-clipboard      use wxClipboard class
1742   --enable-dnd            use Drag'n'Drop classes
1743   --enable-metafile       use win32 metafiles
1744   --disable-controls      disable compilation of all standard controls
1745   --enable-accel          use accelerators
1746   --enable-animatectrl    use wxAnimationCtrl class
1747   --enable-button         use wxButton class
1748   --enable-bmpbutton      use wxBitmapButton class
1749   --enable-bmpcombobox    use wxBitmapComboBox class
1750   --enable-calendar       use wxCalendarCtrl class
1751   --enable-caret          use wxCaret class
1752   --enable-checkbox       use wxCheckBox class
1753   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1754   --enable-choice         use wxChoice class
1755   --enable-choicebook     use wxChoicebook class
1756   --enable-collpane       use wxCollapsiblePane class
1757   --enable-colourpicker   use wxColourPickerCtrl class
1758   --enable-combobox       use wxComboBox class
1759   --enable-comboctrl      use wxComboCtrl class
1760   --enable-datepick       use wxDatePickerCtrl class
1761   --enable-dirpicker      use wxDirPickerCtrl class
1762   --enable-display        use wxDisplay class
1763   --enable-detect_sm      use code to detect X11 session manager
1764   --enable-editablebox    use wxEditableListBox class
1765   --enable-filepicker     use wxFilePickerCtrl class
1766   --enable-filectrl       use wxFileCtrl class
1767   --enable-fontpicker     use wxFontPickerCtrl class
1768   --enable-gauge          use wxGauge class
1769   --enable-grid           use wxGrid class
1770   --enable-dataviewctrl   use wxDataViewCtrl class
1771   --enable-hyperlink      use wxHyperlinkCtrl class
1772   --enable-imaglist       use wxImageList class
1773   --enable-listbook       use wxListbook class
1774   --enable-listbox        use wxListBox class
1775   --enable-listctrl       use wxListCtrl class
1776   --enable-notebook       use wxNotebook class
1777   --enable-odcombobox     use wxOwnerDrawnComboBox class
1778   --enable-radiobox       use wxRadioBox class
1779   --enable-radiobtn       use wxRadioButton class
1780   --enable-sash           use wxSashWindow class
1781   --enable-scrollbar      use wxScrollBar class and scrollable windows
1782   --enable-searchctrl     use wxSearchCtrl class
1783   --enable-slider         use wxSlider class
1784   --enable-spinbtn        use wxSpinButton class
1785   --enable-spinctrl       use wxSpinCtrl class
1786   --enable-splitter       use wxSplitterWindow class
1787   --enable-statbmp        use wxStaticBitmap class
1788   --enable-statbox        use wxStaticBox class
1789   --enable-statline       use wxStaticLine class
1790   --enable-stattext       use wxStaticText class
1791   --enable-statusbar      use wxStatusBar class
1792   --enable-tabdialog      use wxTabControl class
1793   --enable-taskbaricon    use wxTaskBarIcon class
1794   --enable-textctrl       use wxTextCtrl class
1795   --enable-togglebtn      use wxToggleButton class
1796   --enable-toolbar        use wxToolBar class
1797   --enable-tbarnative     use native wxToolBar class
1798   --enable-treebook       use wxTreebook class
1799   --enable-toolbook       use wxToolbook class
1800   --enable-treectrl       use wxTreeCtrl class
1801   --enable-tipwindow      use wxTipWindow class
1802   --enable-popupwin       use wxPopUpWindow class
1803   --enable-commondlg      use all common dialogs
1804   --enable-aboutdlg       use wxAboutBox
1805   --enable-choicedlg      use wxChoiceDialog
1806   --enable-coldlg         use wxColourDialog
1807   --enable-filedlg        use wxFileDialog
1808   --enable-finddlg        use wxFindReplaceDialog
1809   --enable-fontdlg        use wxFontDialog
1810   --enable-dirdlg         use wxDirDialog
1811   --enable-msgdlg         use wxMessageDialog
1812   --enable-numberdlg      use wxNumberEntryDialog
1813   --enable-splash         use wxSplashScreen
1814   --enable-textdlg        use wxTextDialog
1815   --enable-tipdlg         use startup tips
1816   --enable-progressdlg    use wxProgressDialog
1817   --enable-wizarddlg      use wxWizard
1818   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1819   --enable-miniframe      use wxMiniFrame class
1820   --enable-tooltips       use wxToolTip class
1821   --enable-splines        use spline drawing code
1822   --enable-mousewheel     use mousewheel
1823   --enable-validators     use wxValidator and derived classes
1824   --enable-busyinfo       use wxBusyInfo
1825   --enable-joystick       use wxJoystick
1826   --enable-metafiles      use wxMetaFile (Win32 only)
1827   --enable-dragimage      use wxDragImage
1828   --enable-accessibility  enable accessibility support
1829   --enable-palette        use wxPalette class
1830   --enable-image          use wxImage class
1831   --enable-gif            use gif images (GIF file format)
1832   --enable-pcx            use pcx images (PCX file format)
1833   --enable-tga            use tga images (TGA file format)
1834   --enable-iff            use iff images (IFF file format)
1835   --enable-pnm            use pnm images (PNM file format)
1836   --enable-xpm            use xpm images (XPM file format)
1837   --enable-icocur         use Windows ICO and CUR formats
1838   --enable-dccache        cache temporary wxDC objects (Win32 only)
1839   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1840   --enable-ownerdrawn     use owner drawn controls (Win32 only)
1841   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1842   --enable-wxdib          use wxDIB class (Win32 only)
1843   --disable-largefile     omit support for large files
1844   --disable-gtktest       do not try to compile and run a test GTK+ program
1845   --disable-gtktest       Do not try to compile and run a test GTK program
1846   --disable-sdltest       Do not try to compile and run a test SDL program
1847   --enable-omf            use OMF object format (OS/2)
1848   --disable-dependency-tracking
1849                           don't use dependency tracking even if the compiler
1850                           can
1851   --disable-precomp-headers
1852                           don't use precompiled headers even if compiler can
1853
1854 Optional Packages:
1855   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1856   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1857   --without-subdirs       don't generate makefiles for samples/demos/...
1858   --with-flavour=NAME     specify a name to identify this build
1859   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1860   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1861   --with-motif            use Motif/Lesstif
1862   --with-mac              use Mac OS X
1863   --with-cocoa            use Cocoa
1864   --with-wine             use Wine
1865   --with-msw              use MS-Windows
1866   --with-pm               use OS/2 Presentation Manager
1867   --with-mgl              use SciTech MGL
1868   --with-directfb         use DirectFB
1869   --with-microwin         use MicroWindows
1870   --with-x11              use X11
1871   --with-libpng           use libpng (PNG image format)
1872   --with-libjpeg          use libjpeg (JPEG file format)
1873   --with-libtiff          use libtiff (TIFF file format)
1874   --with-libxpm           use libxpm (XPM file format)
1875   --with-libmspack        use libmspack (CHM help files loading)
1876   --without-gtkprint      don't use GTK printing support
1877   --without-gnomeprint    don't use GNOME printing libraries
1878   --with-gnomevfs         use GNOME VFS for associating MIME types
1879   --with-hildon           use Hildon framework for Nokia 770
1880   --with-opengl           use OpenGL (or Mesa)
1881   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1882   --with-sdl              use SDL for audio on Unix
1883   --with-regex            enable support for wxRegEx class
1884   --with-zlib             use zlib for LZW compression
1885   --with-expat            enable XML support using expat parser
1886   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1887   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1888   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1889   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1890   --with-x                use the X Window System
1891   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1892   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1893   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1894   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1895   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1896
1897 Some influential environment variables:
1898   CC          C compiler command
1899   CFLAGS      C compiler flags
1900   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1901               nonstandard directory <lib dir>
1902   LIBS        libraries to pass to the linker, e.g. -l<library>
1903   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1904               you have headers in a nonstandard directory <include dir>
1905   CPP         C preprocessor
1906   CXX         C++ compiler command
1907   CXXFLAGS    C++ compiler flags
1908   PKG_CONFIG  path to pkg-config utility
1909   DIRECTFB_CFLAGS
1910               C compiler flags for DIRECTFB, overriding pkg-config
1911   DIRECTFB_LIBS
1912               linker flags for DIRECTFB, overriding pkg-config
1913   XMKMF       Path to xmkmf, Makefile generator for X Window System
1914   PANGOX_CFLAGS
1915               C compiler flags for PANGOX, overriding pkg-config
1916   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1917   PANGOFT2_CFLAGS
1918               C compiler flags for PANGOFT2, overriding pkg-config
1919   PANGOFT2_LIBS
1920               linker flags for PANGOFT2, overriding pkg-config
1921   PANGOXFT_CFLAGS
1922               C compiler flags for PANGOXFT, overriding pkg-config
1923   PANGOXFT_LIBS
1924               linker flags for PANGOXFT, overriding pkg-config
1925   GTKPRINT_CFLAGS
1926               C compiler flags for GTKPRINT, overriding pkg-config
1927   GTKPRINT_LIBS
1928               linker flags for GTKPRINT, overriding pkg-config
1929   LIBGNOMEPRINTUI_CFLAGS
1930               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1931   LIBGNOMEPRINTUI_LIBS
1932               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1933   GNOMEVFS_CFLAGS
1934               C compiler flags for GNOMEVFS, overriding pkg-config
1935   GNOMEVFS_LIBS
1936               linker flags for GNOMEVFS, overriding pkg-config
1937   HILDON_CFLAGS
1938               C compiler flags for HILDON, overriding pkg-config
1939   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1940   CAIRO_CFLAGS
1941               C compiler flags for CAIRO, overriding pkg-config
1942   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1943   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1944   GST_LIBS    linker flags for GST, overriding pkg-config
1945
1946 Use these variables to override the choices made by `configure' or to help
1947 it to find libraries and programs with nonstandard names/locations.
1948
1949 Report bugs to <wx-dev@lists.wxwidgets.org>.
1950 _ACEOF
1951 ac_status=$?
1952 fi
1953
1954 if test "$ac_init_help" = "recursive"; then
1955   # If there are subdirs, report their specific --help.
1956   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1957     test -d "$ac_dir" || continue
1958     ac_builddir=.
1959
1960 case "$ac_dir" in
1961 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1962 *)
1963   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1964   # A ".." for each directory in $ac_dir_suffix.
1965   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1966   case $ac_top_builddir_sub in
1967   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1968   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1969   esac ;;
1970 esac
1971 ac_abs_top_builddir=$ac_pwd
1972 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1973 # for backward compatibility:
1974 ac_top_builddir=$ac_top_build_prefix
1975
1976 case $srcdir in
1977   .)  # We are building in place.
1978     ac_srcdir=.
1979     ac_top_srcdir=$ac_top_builddir_sub
1980     ac_abs_top_srcdir=$ac_pwd ;;
1981   [\\/]* | ?:[\\/]* )  # Absolute name.
1982     ac_srcdir=$srcdir$ac_dir_suffix;
1983     ac_top_srcdir=$srcdir
1984     ac_abs_top_srcdir=$srcdir ;;
1985   *) # Relative name.
1986     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1987     ac_top_srcdir=$ac_top_build_prefix$srcdir
1988     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1989 esac
1990 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1991
1992     cd "$ac_dir" || { ac_status=$?; continue; }
1993     # Check for guested configure.
1994     if test -f "$ac_srcdir/configure.gnu"; then
1995       echo &&
1996       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1997     elif test -f "$ac_srcdir/configure"; then
1998       echo &&
1999       $SHELL "$ac_srcdir/configure" --help=recursive
2000     else
2001       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2002     fi || ac_status=$?
2003     cd "$ac_pwd" || { ac_status=$?; break; }
2004   done
2005 fi
2006
2007 test -n "$ac_init_help" && exit $ac_status
2008 if $ac_init_version; then
2009   cat <<\_ACEOF
2010 wxWidgets configure 2.9.0
2011 generated by GNU Autoconf 2.61
2012
2013 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2014 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2015 This configure script is free software; the Free Software Foundation
2016 gives unlimited permission to copy, distribute and modify it.
2017 _ACEOF
2018   exit
2019 fi
2020 cat >config.log <<_ACEOF
2021 This file contains any messages produced by compilers while
2022 running configure, to aid debugging if configure makes a mistake.
2023
2024 It was created by wxWidgets $as_me 2.9.0, which was
2025 generated by GNU Autoconf 2.61.  Invocation command line was
2026
2027   $ $0 $@
2028
2029 _ACEOF
2030 exec 5>>config.log
2031 {
2032 cat <<_ASUNAME
2033 ## --------- ##
2034 ## Platform. ##
2035 ## --------- ##
2036
2037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2042
2043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2044 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2045
2046 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2047 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2049 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2050 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2051 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2052 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2053
2054 _ASUNAME
2055
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
2060   test -z "$as_dir" && as_dir=.
2061   echo "PATH: $as_dir"
2062 done
2063 IFS=$as_save_IFS
2064
2065 } >&5
2066
2067 cat >&5 <<_ACEOF
2068
2069
2070 ## ----------- ##
2071 ## Core tests. ##
2072 ## ----------- ##
2073
2074 _ACEOF
2075
2076
2077 # Keep a trace of the command line.
2078 # Strip out --no-create and --no-recursion so they do not pile up.
2079 # Strip out --silent because we don't want to record it for future runs.
2080 # Also quote any args containing shell meta-characters.
2081 # Make two passes to allow for proper duplicate-argument suppression.
2082 ac_configure_args=
2083 ac_configure_args0=
2084 ac_configure_args1=
2085 ac_must_keep_next=false
2086 for ac_pass in 1 2
2087 do
2088   for ac_arg
2089   do
2090     case $ac_arg in
2091     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2092     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2093     | -silent | --silent | --silen | --sile | --sil)
2094       continue ;;
2095     *\'*)
2096       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2097     esac
2098     case $ac_pass in
2099     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2100     2)
2101       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2102       if test $ac_must_keep_next = true; then
2103         ac_must_keep_next=false # Got value, back to normal.
2104       else
2105         case $ac_arg in
2106           *=* | --config-cache | -C | -disable-* | --disable-* \
2107           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2108           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2109           | -with-* | --with-* | -without-* | --without-* | --x)
2110             case "$ac_configure_args0 " in
2111               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2112             esac
2113             ;;
2114           -* ) ac_must_keep_next=true ;;
2115         esac
2116       fi
2117       ac_configure_args="$ac_configure_args '$ac_arg'"
2118       ;;
2119     esac
2120   done
2121 done
2122 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2123 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2124
2125 # When interrupted or exit'd, cleanup temporary files, and complete
2126 # config.log.  We remove comments because anyway the quotes in there
2127 # would cause problems or look ugly.
2128 # WARNING: Use '\'' to represent an apostrophe within the trap.
2129 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2130 trap 'exit_status=$?
2131   # Save into config.log some information that might help in debugging.
2132   {
2133     echo
2134
2135     cat <<\_ASBOX
2136 ## ---------------- ##
2137 ## Cache variables. ##
2138 ## ---------------- ##
2139 _ASBOX
2140     echo
2141     # The following way of writing the cache mishandles newlines in values,
2142 (
2143   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2144     eval ac_val=\$$ac_var
2145     case $ac_val in #(
2146     *${as_nl}*)
2147       case $ac_var in #(
2148       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2149 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2150       esac
2151       case $ac_var in #(
2152       _ | IFS | as_nl) ;; #(
2153       *) $as_unset $ac_var ;;
2154       esac ;;
2155     esac
2156   done
2157   (set) 2>&1 |
2158     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2159     *${as_nl}ac_space=\ *)
2160       sed -n \
2161         "s/'\''/'\''\\\\'\'''\''/g;
2162           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2163       ;; #(
2164     *)
2165       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2166       ;;
2167     esac |
2168     sort
2169 )
2170     echo
2171
2172     cat <<\_ASBOX
2173 ## ----------------- ##
2174 ## Output variables. ##
2175 ## ----------------- ##
2176 _ASBOX
2177     echo
2178     for ac_var in $ac_subst_vars
2179     do
2180       eval ac_val=\$$ac_var
2181       case $ac_val in
2182       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2183       esac
2184       echo "$ac_var='\''$ac_val'\''"
2185     done | sort
2186     echo
2187
2188     if test -n "$ac_subst_files"; then
2189       cat <<\_ASBOX
2190 ## ------------------- ##
2191 ## File substitutions. ##
2192 ## ------------------- ##
2193 _ASBOX
2194       echo
2195       for ac_var in $ac_subst_files
2196       do
2197         eval ac_val=\$$ac_var
2198         case $ac_val in
2199         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200         esac
2201         echo "$ac_var='\''$ac_val'\''"
2202       done | sort
2203       echo
2204     fi
2205
2206     if test -s confdefs.h; then
2207       cat <<\_ASBOX
2208 ## ----------- ##
2209 ## confdefs.h. ##
2210 ## ----------- ##
2211 _ASBOX
2212       echo
2213       cat confdefs.h
2214       echo
2215     fi
2216     test "$ac_signal" != 0 &&
2217       echo "$as_me: caught signal $ac_signal"
2218     echo "$as_me: exit $exit_status"
2219   } >&5
2220   rm -f core *.core core.conftest.* &&
2221     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2222     exit $exit_status
2223 ' 0
2224 for ac_signal in 1 2 13 15; do
2225   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2226 done
2227 ac_signal=0
2228
2229 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2230 rm -f -r conftest* confdefs.h
2231
2232 # Predefined preprocessor variables.
2233
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_NAME "$PACKAGE_NAME"
2236 _ACEOF
2237
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2241 _ACEOF
2242
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2246 _ACEOF
2247
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_STRING "$PACKAGE_STRING"
2251 _ACEOF
2252
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2256 _ACEOF
2257
2258
2259 # Let the site file select an alternate cache file if it wants to.
2260 # Prefer explicitly selected file to automatically selected ones.
2261 if test -n "$CONFIG_SITE"; then
2262   set x "$CONFIG_SITE"
2263 elif test "x$prefix" != xNONE; then
2264   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2265 else
2266   set x "$ac_default_prefix/share/config.site" \
2267         "$ac_default_prefix/etc/config.site"
2268 fi
2269 shift
2270 for ac_site_file
2271 do
2272   if test -r "$ac_site_file"; then
2273     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2274 echo "$as_me: loading site script $ac_site_file" >&6;}
2275     sed 's/^/| /' "$ac_site_file" >&5
2276     . "$ac_site_file"
2277   fi
2278 done
2279
2280 if test -r "$cache_file"; then
2281   # Some versions of bash will fail to source /dev/null (special
2282   # files actually), so we avoid doing that.
2283   if test -f "$cache_file"; then
2284     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2285 echo "$as_me: loading cache $cache_file" >&6;}
2286     case $cache_file in
2287       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2288       *)                      . "./$cache_file";;
2289     esac
2290   fi
2291 else
2292   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2293 echo "$as_me: creating cache $cache_file" >&6;}
2294   >$cache_file
2295 fi
2296
2297 # Check that the precious variables saved in the cache have kept the same
2298 # value.
2299 ac_cache_corrupted=false
2300 for ac_var in $ac_precious_vars; do
2301   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2302   eval ac_new_set=\$ac_env_${ac_var}_set
2303   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2304   eval ac_new_val=\$ac_env_${ac_var}_value
2305   case $ac_old_set,$ac_new_set in
2306     set,)
2307       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2308 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2309       ac_cache_corrupted=: ;;
2310     ,set)
2311       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2312 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2313       ac_cache_corrupted=: ;;
2314     ,);;
2315     *)
2316       if test "x$ac_old_val" != "x$ac_new_val"; then
2317         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2318 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2319         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2320 echo "$as_me:   former value:  $ac_old_val" >&2;}
2321         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2322 echo "$as_me:   current value: $ac_new_val" >&2;}
2323         ac_cache_corrupted=:
2324       fi;;
2325   esac
2326   # Pass precious variables to config.status.
2327   if test "$ac_new_set" = set; then
2328     case $ac_new_val in
2329     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2330     *) ac_arg=$ac_var=$ac_new_val ;;
2331     esac
2332     case " $ac_configure_args " in
2333       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2334       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2335     esac
2336   fi
2337 done
2338 if $ac_cache_corrupted; then
2339   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2340 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2341   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2342 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2343    { (exit 1); exit 1; }; }
2344 fi
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370 ac_ext=c
2371 ac_cpp='$CPP $CPPFLAGS'
2372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375
2376
2377
2378
2379
2380 ac_aux_dir=
2381 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2382   if test -f "$ac_dir/install-sh"; then
2383     ac_aux_dir=$ac_dir
2384     ac_install_sh="$ac_aux_dir/install-sh -c"
2385     break
2386   elif test -f "$ac_dir/install.sh"; then
2387     ac_aux_dir=$ac_dir
2388     ac_install_sh="$ac_aux_dir/install.sh -c"
2389     break
2390   elif test -f "$ac_dir/shtool"; then
2391     ac_aux_dir=$ac_dir
2392     ac_install_sh="$ac_aux_dir/shtool install -c"
2393     break
2394   fi
2395 done
2396 if test -z "$ac_aux_dir"; then
2397   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2398 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2399    { (exit 1); exit 1; }; }
2400 fi
2401
2402 # These three variables are undocumented and unsupported,
2403 # and are intended to be withdrawn in a future Autoconf release.
2404 # They can cause serious problems if a builder's source tree is in a directory
2405 # whose full name contains unusual characters.
2406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2408 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2409
2410
2411 # Make sure we can run config.sub.
2412 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2413   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2414 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2415    { (exit 1); exit 1; }; }
2416
2417 { echo "$as_me:$LINENO: checking build system type" >&5
2418 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2419 if test "${ac_cv_build+set}" = set; then
2420   echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422   ac_build_alias=$build_alias
2423 test "x$ac_build_alias" = x &&
2424   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2425 test "x$ac_build_alias" = x &&
2426   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2427 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2428    { (exit 1); exit 1; }; }
2429 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2430   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2431 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2432    { (exit 1); exit 1; }; }
2433
2434 fi
2435 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2436 echo "${ECHO_T}$ac_cv_build" >&6; }
2437 case $ac_cv_build in
2438 *-*-*) ;;
2439 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2440 echo "$as_me: error: invalid value of canonical build" >&2;}
2441    { (exit 1); exit 1; }; };;
2442 esac
2443 build=$ac_cv_build
2444 ac_save_IFS=$IFS; IFS='-'
2445 set x $ac_cv_build
2446 shift
2447 build_cpu=$1
2448 build_vendor=$2
2449 shift; shift
2450 # Remember, the first character of IFS is used to create $*,
2451 # except with old shells:
2452 build_os=$*
2453 IFS=$ac_save_IFS
2454 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2455
2456
2457 { echo "$as_me:$LINENO: checking host system type" >&5
2458 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2459 if test "${ac_cv_host+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   if test "x$host_alias" = x; then
2463   ac_cv_host=$ac_cv_build
2464 else
2465   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2466     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2467 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2468    { (exit 1); exit 1; }; }
2469 fi
2470
2471 fi
2472 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2473 echo "${ECHO_T}$ac_cv_host" >&6; }
2474 case $ac_cv_host in
2475 *-*-*) ;;
2476 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2477 echo "$as_me: error: invalid value of canonical host" >&2;}
2478    { (exit 1); exit 1; }; };;
2479 esac
2480 host=$ac_cv_host
2481 ac_save_IFS=$IFS; IFS='-'
2482 set x $ac_cv_host
2483 shift
2484 host_cpu=$1
2485 host_vendor=$2
2486 shift; shift
2487 # Remember, the first character of IFS is used to create $*,
2488 # except with old shells:
2489 host_os=$*
2490 IFS=$ac_save_IFS
2491 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2492
2493
2494 { echo "$as_me:$LINENO: checking target system type" >&5
2495 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2496 if test "${ac_cv_target+set}" = set; then
2497   echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499   if test "x$target_alias" = x; then
2500   ac_cv_target=$ac_cv_host
2501 else
2502   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2503     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2504 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2505    { (exit 1); exit 1; }; }
2506 fi
2507
2508 fi
2509 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2510 echo "${ECHO_T}$ac_cv_target" >&6; }
2511 case $ac_cv_target in
2512 *-*-*) ;;
2513 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2514 echo "$as_me: error: invalid value of canonical target" >&2;}
2515    { (exit 1); exit 1; }; };;
2516 esac
2517 target=$ac_cv_target
2518 ac_save_IFS=$IFS; IFS='-'
2519 set x $ac_cv_target
2520 shift
2521 target_cpu=$1
2522 target_vendor=$2
2523 shift; shift
2524 # Remember, the first character of IFS is used to create $*,
2525 # except with old shells:
2526 target_os=$*
2527 IFS=$ac_save_IFS
2528 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2529
2530
2531 # The aliases save the names the user supplied, while $host etc.
2532 # will get canonicalized.
2533 test -n "$target_alias" &&
2534   test "$program_prefix$program_suffix$program_transform_name" = \
2535     NONENONEs,x,x, &&
2536   program_prefix=${target_alias}-
2537
2538
2539
2540 wx_major_version_number=2
2541 wx_minor_version_number=9
2542 wx_release_number=0
2543 wx_subrelease_number=0
2544
2545 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2546 WX_VERSION=$WX_RELEASE.$wx_release_number
2547 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2548
2549 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2550
2551
2552 wx_top_builddir="`pwd`"
2553
2554
2555
2556
2557 USE_UNIX=1
2558 USE_OS2=0
2559 USE_WIN32=0
2560 USE_DOS=0
2561 USE_BEOS=0
2562 USE_MAC=0
2563
2564 USE_AIX=
2565 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2566 USE_GNU=                            USE_HPUX=
2567 USE_LINUX=
2568 USE_NETBSD=
2569 USE_OPENBSD=
2570 USE_OSF=                            USE_SGI=
2571 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2572 USE_ULTRIX=
2573 USE_UNIXWARE=
2574
2575 USE_ALPHA=
2576
2577 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2578
2579 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2580
2581 DEFAULT_wxUSE_COCOA=0
2582 DEFAULT_wxUSE_GTK=0
2583 DEFAULT_wxUSE_MAC=0
2584 DEFAULT_wxUSE_MGL=0
2585 DEFAULT_wxUSE_MICROWIN=0
2586 DEFAULT_wxUSE_MOTIF=0
2587 DEFAULT_wxUSE_MSW=0
2588 DEFAULT_wxUSE_PM=0
2589 DEFAULT_wxUSE_X11=0
2590 DEFAULT_wxUSE_DFB=0
2591
2592 DEFAULT_DEFAULT_wxUSE_COCOA=0
2593 DEFAULT_DEFAULT_wxUSE_GTK=0
2594 DEFAULT_DEFAULT_wxUSE_MAC=0
2595 DEFAULT_DEFAULT_wxUSE_MGL=0
2596 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2597 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2598 DEFAULT_DEFAULT_wxUSE_MSW=0
2599 DEFAULT_DEFAULT_wxUSE_PM=0
2600 DEFAULT_DEFAULT_wxUSE_X11=0
2601 DEFAULT_DEFAULT_wxUSE_DFB=0
2602
2603 PROGRAM_EXT=
2604 SO_SUFFIX=so
2605 SAMPLES_RPATH_FLAG=
2606 SAMPLES_RPATH_POSTLINK=
2607
2608 DEFAULT_STD_FLAG=yes
2609
2610 case "${host}" in
2611   *-hp-hpux* )
2612     USE_HPUX=1
2613     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2614     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2615     SO_SUFFIX=sl
2616     cat >>confdefs.h <<\_ACEOF
2617 #define __HPUX__ 1
2618 _ACEOF
2619
2620
2621             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2622   ;;
2623   *-*-linux* )
2624     USE_LINUX=1
2625     cat >>confdefs.h <<\_ACEOF
2626 #define __LINUX__ 1
2627 _ACEOF
2628
2629     TMP=`uname -m`
2630     if test "x$TMP" = "xalpha"; then
2631       USE_ALPHA=1
2632       cat >>confdefs.h <<\_ACEOF
2633 #define __ALPHA__ 1
2634 _ACEOF
2635
2636     fi
2637     DEFAULT_DEFAULT_wxUSE_GTK=1
2638   ;;
2639   *-*-gnu* | *-*-k*bsd*-gnu )
2640     USE_GNU=1
2641     TMP=`uname -m`
2642     if test "x$TMP" = "xalpha"; then
2643       USE_ALPHA=1
2644       cat >>confdefs.h <<\_ACEOF
2645 #define __ALPHA__ 1
2646 _ACEOF
2647
2648     fi
2649     DEFAULT_DEFAULT_wxUSE_GTK=1
2650   ;;
2651   *-*-irix5* | *-*-irix6* )
2652     USE_SGI=1
2653     USE_SVR4=1
2654     cat >>confdefs.h <<\_ACEOF
2655 #define __SGI__ 1
2656 _ACEOF
2657
2658     cat >>confdefs.h <<\_ACEOF
2659 #define __SVR4__ 1
2660 _ACEOF
2661
2662     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2663   ;;
2664   *-*-solaris2* )
2665     USE_SUN=1
2666     USE_SOLARIS=1
2667     USE_SVR4=1
2668     cat >>confdefs.h <<\_ACEOF
2669 #define __SUN__ 1
2670 _ACEOF
2671
2672     cat >>confdefs.h <<\_ACEOF
2673 #define __SOLARIS__ 1
2674 _ACEOF
2675
2676     cat >>confdefs.h <<\_ACEOF
2677 #define __SVR4__ 1
2678 _ACEOF
2679
2680     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2681     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2682   ;;
2683   *-*-sunos4* )
2684     USE_SUN=1
2685     USE_SUNOS=1
2686     USE_BSD=1
2687     cat >>confdefs.h <<\_ACEOF
2688 #define __SUN__ 1
2689 _ACEOF
2690
2691     cat >>confdefs.h <<\_ACEOF
2692 #define __SUNOS__ 1
2693 _ACEOF
2694
2695     cat >>confdefs.h <<\_ACEOF
2696 #define __BSD__ 1
2697 _ACEOF
2698
2699     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2700   ;;
2701   *-*-freebsd*)
2702     USE_BSD=1
2703     USE_FREEBSD=1
2704     cat >>confdefs.h <<\_ACEOF
2705 #define __FREEBSD__ 1
2706 _ACEOF
2707
2708     cat >>confdefs.h <<\_ACEOF
2709 #define __BSD__ 1
2710 _ACEOF
2711
2712     DEFAULT_DEFAULT_wxUSE_GTK=1
2713   ;;
2714   *-*-openbsd*|*-*-mirbsd*)
2715     USE_BSD=1
2716     USE_OPENBSD=1
2717     cat >>confdefs.h <<\_ACEOF
2718 #define __OPENBSD__ 1
2719 _ACEOF
2720
2721     cat >>confdefs.h <<\_ACEOF
2722 #define __BSD__ 1
2723 _ACEOF
2724
2725     DEFAULT_DEFAULT_wxUSE_GTK=1
2726   ;;
2727   *-*-netbsd*)
2728     USE_BSD=1
2729     USE_NETBSD=1
2730     cat >>confdefs.h <<\_ACEOF
2731 #define __NETBSD__ 1
2732 _ACEOF
2733
2734     cat >>confdefs.h <<\_ACEOF
2735 #define __BSD__ 1
2736 _ACEOF
2737
2738     DEFAULT_DEFAULT_wxUSE_GTK=1
2739     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2740
2741             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2742   ;;
2743   *-*-osf* )
2744     USE_ALPHA=1
2745     USE_OSF=1
2746     cat >>confdefs.h <<\_ACEOF
2747 #define __ALPHA__ 1
2748 _ACEOF
2749
2750     cat >>confdefs.h <<\_ACEOF
2751 #define __OSF__ 1
2752 _ACEOF
2753
2754     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2755     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2756   ;;
2757   *-*-dgux5* )
2758     USE_ALPHA=1
2759     USE_SVR4=1
2760     cat >>confdefs.h <<\_ACEOF
2761 #define __ALPHA__ 1
2762 _ACEOF
2763
2764     cat >>confdefs.h <<\_ACEOF
2765 #define __SVR4__ 1
2766 _ACEOF
2767
2768     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2769   ;;
2770   *-*-sysv5* )
2771     USE_SYSV=1
2772     USE_SVR4=1
2773     cat >>confdefs.h <<\_ACEOF
2774 #define __SYSV__ 1
2775 _ACEOF
2776
2777     cat >>confdefs.h <<\_ACEOF
2778 #define __SVR4__ 1
2779 _ACEOF
2780
2781     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2782   ;;
2783   *-*-aix* )
2784     USE_AIX=1
2785     USE_SYSV=1
2786     USE_SVR4=1
2787                         SO_SUFFIX=a
2788     cat >>confdefs.h <<\_ACEOF
2789 #define __AIX__ 1
2790 _ACEOF
2791
2792     cat >>confdefs.h <<\_ACEOF
2793 #define __SYSV__ 1
2794 _ACEOF
2795
2796     cat >>confdefs.h <<\_ACEOF
2797 #define __SVR4__ 1
2798 _ACEOF
2799
2800     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2801   ;;
2802
2803   *-*-*UnixWare*)
2804     USE_SYSV=1
2805     USE_SVR4=1
2806     USE_UNIXWARE=1
2807     cat >>confdefs.h <<\_ACEOF
2808 #define __UNIXWARE__ 1
2809 _ACEOF
2810
2811   ;;
2812
2813   *-*-cygwin* | *-*-mingw32* )
2814                 SO_SUFFIX=dll
2815     PROGRAM_EXT=".exe"
2816     DEFAULT_DEFAULT_wxUSE_MSW=1
2817   ;;
2818
2819   *-pc-msdosdjgpp )
2820     USE_UNIX=0
2821     USE_DOS=1
2822     cat >>confdefs.h <<\_ACEOF
2823 #define __DOS__ 1
2824 _ACEOF
2825
2826     PROGRAM_EXT=".exe"
2827     DEFAULT_DEFAULT_wxUSE_MGL=1
2828   ;;
2829
2830   *-pc-os2_emx | *-pc-os2-emx )
2831     cat >>confdefs.h <<\_ACEOF
2832 #define __EMX__ 1
2833 _ACEOF
2834
2835     USE_OS2=1
2836     cat >>confdefs.h <<\_ACEOF
2837 #define __OS2__ 1
2838 _ACEOF
2839
2840     PROGRAM_EXT=".exe"
2841     DEFAULT_DEFAULT_wxUSE_PM=1
2842         CXX=gcc
2843     LDFLAGS="$LDFLAGS -Zcrtdll"
2844                         ac_executable_extensions=".exe"
2845     export ac_executable_extensions
2846             ac_save_IFS="$IFS"
2847     IFS='\\'
2848     ac_TEMP_PATH=
2849     for ac_dir in $PATH; do
2850       IFS=$ac_save_IFS
2851       if test -z "$ac_TEMP_PATH"; then
2852         ac_TEMP_PATH="$ac_dir"
2853       else
2854         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2855       fi
2856     done
2857     export PATH="$ac_TEMP_PATH"
2858     unset ac_TEMP_PATH
2859     DEFAULT_STD_FLAG=no
2860   ;;
2861
2862   *-*-darwin* )
2863         USE_BSD=1
2864     USE_DARWIN=1
2865     SO_SUFFIX=dylib
2866     cat >>confdefs.h <<\_ACEOF
2867 #define __BSD__ 1
2868 _ACEOF
2869
2870     cat >>confdefs.h <<\_ACEOF
2871 #define __DARWIN__ 1
2872 _ACEOF
2873
2874     cat >>confdefs.h <<\_ACEOF
2875 #define TARGET_CARBON 1
2876 _ACEOF
2877
2878     DEFAULT_DEFAULT_wxUSE_MAC=1
2879     DEFAULT_STD_FLAG=no
2880   ;;
2881   powerpc-apple-macos* )
2882         USE_UNIX=0
2883             ac_cv_c_bigendian=yes
2884     SO_SUFFIX=shlib
2885             DEFAULT_DEFAULT_wxUSE_MAC=1
2886     DEFAULT_STD_FLAG=no
2887   ;;
2888
2889   *-*-beos* )
2890         USE_BEOS=1
2891     cat >>confdefs.h <<\_ACEOF
2892 #define __BEOS__ 1
2893 _ACEOF
2894
2895   ;;
2896
2897   *)
2898     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2899 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2900     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2901 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2902
2903     DEFAULT_DEFAULT_wxUSE_X11=1
2904     DEFAULT_wxUSE_SHARED=no
2905 esac
2906
2907
2908
2909
2910           wx_arg_cache_file="configarg.cache"
2911           echo "loading argument cache $wx_arg_cache_file"
2912           rm -f ${wx_arg_cache_file}.tmp
2913           touch ${wx_arg_cache_file}.tmp
2914           touch ${wx_arg_cache_file}
2915
2916
2917 DEFAULT_wxUSE_ALL_FEATURES=yes
2918
2919 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2920 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2921
2922 DEFAULT_wxUSE_DMALLOC=no
2923 DEFAULT_wxUSE_LIBGNOMEVFS=no
2924 DEFAULT_wxUSE_LIBHILDON=no
2925 DEFAULT_wxUSE_LIBMSPACK=no
2926 DEFAULT_wxUSE_LIBSDL=no
2927 DEFAULT_wxUSE_OPENGL=no
2928
2929 DEFAULT_wxUSE_ACCESSIBILITY=no
2930 DEFAULT_wxUSE_DATAVIEWCTRL=no
2931 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2932 DEFAULT_wxUSE_MEDIACTRL=no
2933 DEFAULT_wxUSE_TAB_DIALOG=no
2934
2935 DEFAULT_wxUSE_UNICODE_UTF8=auto
2936 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2937
2938 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2939
2940 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2941
2942 DEFAULT_wxUSE_GTK2=yes
2943
2944 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2945
2946
2947 for toolkit in $ALL_TOOLKITS; do
2948   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2949   if test "x$LINE" != "x" ; then
2950     has_toolkit_in_cache=1
2951     eval "DEFAULT_$LINE"
2952     eval "CACHE_$toolkit=1"
2953
2954     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2955     if test "x$LINE" != "x" ; then
2956         eval "DEFAULT_$LINE"
2957     fi
2958   fi
2959 done
2960
2961
2962
2963
2964
2965           enablestring=disable
2966           defaultval=
2967           if test -z "$defaultval"; then
2968               if test x"$enablestring" = xdisable; then
2969                   defaultval=yes
2970               else
2971                   defaultval=no
2972               fi
2973           fi
2974
2975           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2976 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2977           # Check whether --enable-gui was given.
2978 if test "${enable_gui+set}" = set; then
2979   enableval=$enable_gui;
2980                           if test "$enableval" = yes; then
2981                             wx_cv_use_gui='wxUSE_GUI=yes'
2982                           else
2983                             wx_cv_use_gui='wxUSE_GUI=no'
2984                           fi
2985                           cache=yes
2986
2987 else
2988
2989                           LINE=`grep "^wxUSE_GUI=" ${wx_arg_cache_file}`
2990                           if test "x$LINE" != x ; then
2991                               eval "DEFAULT_$LINE"
2992                               cache=yes
2993                           else
2994                               cache=no
2995                           fi
2996
2997                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2998
2999 fi
3000
3001
3002           eval "$wx_cv_use_gui"
3003           if test "x$cache" = xyes; then
3004             echo "wxUSE_GUI=$wxUSE_GUI" >> ${wx_arg_cache_file}.tmp
3005           fi
3006
3007           if test x"$enablestring" = xdisable; then
3008             if test $wxUSE_GUI = yes; then
3009               result=no
3010             else
3011               result=yes
3012             fi
3013           else
3014             result=$wxUSE_GUI
3015           fi
3016
3017           { echo "$as_me:$LINENO: result: $result" >&5
3018 echo "${ECHO_T}$result" >&6; }
3019
3020
3021           enablestring=
3022           defaultval=
3023           if test -z "$defaultval"; then
3024               if test x"$enablestring" = xdisable; then
3025                   defaultval=yes
3026               else
3027                   defaultval=no
3028               fi
3029           fi
3030
3031           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3032 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3033           # Check whether --enable-monolithic was given.
3034 if test "${enable_monolithic+set}" = set; then
3035   enableval=$enable_monolithic;
3036                           if test "$enableval" = yes; then
3037                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3038                           else
3039                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3040                           fi
3041                           cache=yes
3042
3043 else
3044
3045                           LINE=`grep "^wxUSE_MONOLITHIC=" ${wx_arg_cache_file}`
3046                           if test "x$LINE" != x ; then
3047                               eval "DEFAULT_$LINE"
3048                               cache=yes
3049                           else
3050                               cache=no
3051                           fi
3052
3053                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3054
3055 fi
3056
3057
3058           eval "$wx_cv_use_monolithic"
3059           if test "x$cache" = xyes; then
3060             echo "wxUSE_MONOLITHIC=$wxUSE_MONOLITHIC" >> ${wx_arg_cache_file}.tmp
3061           fi
3062
3063           if test x"$enablestring" = xdisable; then
3064             if test $wxUSE_MONOLITHIC = yes; then
3065               result=no
3066             else
3067               result=yes
3068             fi
3069           else
3070             result=$wxUSE_MONOLITHIC
3071           fi
3072
3073           { echo "$as_me:$LINENO: result: $result" >&5
3074 echo "${ECHO_T}$result" >&6; }
3075
3076
3077           enablestring=
3078           defaultval=
3079           if test -z "$defaultval"; then
3080               if test x"$enablestring" = xdisable; then
3081                   defaultval=yes
3082               else
3083                   defaultval=no
3084               fi
3085           fi
3086
3087           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3088 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3089           # Check whether --enable-plugins was given.
3090 if test "${enable_plugins+set}" = set; then
3091   enableval=$enable_plugins;
3092                           if test "$enableval" = yes; then
3093                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3094                           else
3095                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3096                           fi
3097                           cache=yes
3098
3099 else
3100
3101                           LINE=`grep "^wxUSE_PLUGINS=" ${wx_arg_cache_file}`
3102                           if test "x$LINE" != x ; then
3103                               eval "DEFAULT_$LINE"
3104                               cache=yes
3105                           else
3106                               cache=no
3107                           fi
3108
3109                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3110
3111 fi
3112
3113
3114           eval "$wx_cv_use_plugins"
3115           if test "x$cache" = xyes; then
3116             echo "wxUSE_PLUGINS=$wxUSE_PLUGINS" >> ${wx_arg_cache_file}.tmp
3117           fi
3118
3119           if test x"$enablestring" = xdisable; then
3120             if test $wxUSE_PLUGINS = yes; then
3121               result=no
3122             else
3123               result=yes
3124             fi
3125           else
3126             result=$wxUSE_PLUGINS
3127           fi
3128
3129           { echo "$as_me:$LINENO: result: $result" >&5
3130 echo "${ECHO_T}$result" >&6; }
3131
3132
3133           withstring=without
3134           defaultval=$wxUSE_ALL_FEATURES
3135           if test -z "$defaultval"; then
3136               if test x"$withstring" = xwithout; then
3137                   defaultval=yes
3138               else
3139                   defaultval=no
3140               fi
3141           fi
3142           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3143 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3144
3145 # Check whether --with-subdirs was given.
3146 if test "${with_subdirs+set}" = set; then
3147   withval=$with_subdirs;
3148                         if test "$withval" = yes; then
3149                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3150                         else
3151                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3152                         fi
3153                         cache=yes
3154
3155 else
3156
3157                         LINE=`grep "^wxWITH_SUBDIRS=" ${wx_arg_cache_file}`
3158                         if test "x$LINE" != x ; then
3159                             eval "DEFAULT_$LINE"
3160                             cache=yes
3161                         else
3162                             cache=no
3163                         fi
3164
3165                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3166
3167 fi
3168
3169
3170           eval "$wx_cv_use_subdirs"
3171           if test "x$cache" = xyes; then
3172             echo "wxWITH_SUBDIRS=$wxWITH_SUBDIRS" >> ${wx_arg_cache_file}.tmp
3173           fi
3174
3175           if test x"$withstring" = xwithout; then
3176             if test $wxWITH_SUBDIRS = yes; then
3177               result=no
3178             else
3179               result=yes
3180             fi
3181           else
3182             result=$wxWITH_SUBDIRS
3183           fi
3184
3185           { echo "$as_me:$LINENO: result: $result" >&5
3186 echo "${ECHO_T}$result" >&6; }
3187
3188
3189 # Check whether --with-flavour was given.
3190 if test "${with_flavour+set}" = set; then
3191   withval=$with_flavour; WX_FLAVOUR="$withval"
3192 fi
3193
3194
3195           enablestring=
3196           defaultval=
3197           if test -z "$defaultval"; then
3198               if test x"$enablestring" = xdisable; then
3199                   defaultval=yes
3200               else
3201                   defaultval=no
3202               fi
3203           fi
3204
3205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3206 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3207           # Check whether --enable-official_build was given.
3208 if test "${enable_official_build+set}" = set; then
3209   enableval=$enable_official_build;
3210                           if test "$enableval" = yes; then
3211                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3212                           else
3213                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3214                           fi
3215                           cache=yes
3216
3217 else
3218
3219                           LINE=`grep "^wxUSE_OFFICIAL_BUILD=" ${wx_arg_cache_file}`
3220                           if test "x$LINE" != x ; then
3221                               eval "DEFAULT_$LINE"
3222                               cache=yes
3223                           else
3224                               cache=no
3225                           fi
3226
3227                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3228
3229 fi
3230
3231
3232           eval "$wx_cv_use_official_build"
3233           if test "x$cache" = xyes; then
3234             echo "wxUSE_OFFICIAL_BUILD=$wxUSE_OFFICIAL_BUILD" >> ${wx_arg_cache_file}.tmp
3235           fi
3236
3237           if test x"$enablestring" = xdisable; then
3238             if test $wxUSE_OFFICIAL_BUILD = yes; then
3239               result=no
3240             else
3241               result=yes
3242             fi
3243           else
3244             result=$wxUSE_OFFICIAL_BUILD
3245           fi
3246
3247           { echo "$as_me:$LINENO: result: $result" >&5
3248 echo "${ECHO_T}$result" >&6; }
3249
3250 # Check whether --enable-vendor was given.
3251 if test "${enable_vendor+set}" = set; then
3252   enableval=$enable_vendor; VENDOR="$enableval"
3253 fi
3254
3255 if test "x$VENDOR" = "x"; then
3256     VENDOR="custom"
3257 fi
3258
3259
3260           enablestring=disable
3261           defaultval=
3262           if test -z "$defaultval"; then
3263               if test x"$enablestring" = xdisable; then
3264                   defaultval=yes
3265               else
3266                   defaultval=no
3267               fi
3268           fi
3269
3270           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3271 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3272           # Check whether --enable-all-features was given.
3273 if test "${enable_all_features+set}" = set; then
3274   enableval=$enable_all_features;
3275                           if test "$enableval" = yes; then
3276                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3277                           else
3278                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3279                           fi
3280                           cache=yes
3281
3282 else
3283
3284                           LINE=`grep "^wxUSE_ALL_FEATURES=" ${wx_arg_cache_file}`
3285                           if test "x$LINE" != x ; then
3286                               eval "DEFAULT_$LINE"
3287                               cache=yes
3288                           else
3289                               cache=no
3290                           fi
3291
3292                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3293
3294 fi
3295
3296
3297           eval "$wx_cv_use_all_features"
3298           if test "x$cache" = xyes; then
3299             echo "wxUSE_ALL_FEATURES=$wxUSE_ALL_FEATURES" >> ${wx_arg_cache_file}.tmp
3300           fi
3301
3302           if test x"$enablestring" = xdisable; then
3303             if test $wxUSE_ALL_FEATURES = yes; then
3304               result=no
3305             else
3306               result=yes
3307             fi
3308           else
3309             result=$wxUSE_ALL_FEATURES
3310           fi
3311
3312           { echo "$as_me:$LINENO: result: $result" >&5
3313 echo "${ECHO_T}$result" >&6; }
3314
3315
3316
3317 if test "$wxUSE_GUI" = "yes"; then
3318
3319
3320           enablestring=
3321           defaultval=
3322           if test -z "$defaultval"; then
3323               if test x"$enablestring" = xdisable; then
3324                   defaultval=yes
3325               else
3326                   defaultval=no
3327               fi
3328           fi
3329
3330           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3331 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3332           # Check whether --enable-universal was given.
3333 if test "${enable_universal+set}" = set; then
3334   enableval=$enable_universal;
3335                           if test "$enableval" = yes; then
3336                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3337                           else
3338                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3339                           fi
3340                           cache=yes
3341
3342 else
3343
3344                           LINE=`grep "^wxUSE_UNIVERSAL=" ${wx_arg_cache_file}`
3345                           if test "x$LINE" != x ; then
3346                               eval "DEFAULT_$LINE"
3347                               cache=yes
3348                           else
3349                               cache=no
3350                           fi
3351
3352                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3353
3354 fi
3355
3356
3357           eval "$wx_cv_use_universal"
3358           if test "x$cache" = xyes; then
3359             echo "wxUSE_UNIVERSAL=$wxUSE_UNIVERSAL" >> ${wx_arg_cache_file}.tmp
3360           fi
3361
3362           if test x"$enablestring" = xdisable; then
3363             if test $wxUSE_UNIVERSAL = yes; then
3364               result=no
3365             else
3366               result=yes
3367             fi
3368           else
3369             result=$wxUSE_UNIVERSAL
3370           fi
3371
3372           { echo "$as_me:$LINENO: result: $result" >&5
3373 echo "${ECHO_T}$result" >&6; }
3374
3375 if test "$wxUSE_UNIVERSAL" = "yes"; then
3376
3377 # Check whether --with-themes was given.
3378 if test "${with_themes+set}" = set; then
3379   withval=$with_themes; wxUNIV_THEMES="$withval"
3380 fi
3381
3382 fi
3383
3384
3385 # Check whether --with-gtk was given.
3386 if test "${with_gtk+set}" = set; then
3387   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3388 fi
3389
3390
3391 # Check whether --with-motif was given.
3392 if test "${with_motif+set}" = set; then
3393   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3394 fi
3395
3396
3397 # Check whether --with-mac was given.
3398 if test "${with_mac+set}" = set; then
3399   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3400 fi
3401
3402
3403 # Check whether --with-cocoa was given.
3404 if test "${with_cocoa+set}" = set; then
3405   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3406 fi
3407
3408
3409 # Check whether --with-wine was given.
3410 if test "${with_wine+set}" = set; then
3411   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3412 fi
3413
3414
3415 # Check whether --with-msw was given.
3416 if test "${with_msw+set}" = set; then
3417   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3418 fi
3419
3420
3421 # Check whether --with-pm was given.
3422 if test "${with_pm+set}" = set; then
3423   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3424 fi
3425
3426
3427 # Check whether --with-mgl was given.
3428 if test "${with_mgl+set}" = set; then
3429   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3430 fi
3431
3432
3433 # Check whether --with-directfb was given.
3434 if test "${with_directfb+set}" = set; then
3435   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3436 fi
3437
3438
3439 # Check whether --with-microwin was given.
3440 if test "${with_microwin+set}" = set; then
3441   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3442 fi
3443
3444
3445 # Check whether --with-x11 was given.
3446 if test "${with_x11+set}" = set; then
3447   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3448 fi
3449
3450
3451           enablestring=
3452           defaultval=
3453           if test -z "$defaultval"; then
3454               if test x"$enablestring" = xdisable; then
3455                   defaultval=yes
3456               else
3457                   defaultval=no
3458               fi
3459           fi
3460
3461           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3462 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3463           # Check whether --enable-nanox was given.
3464 if test "${enable_nanox+set}" = set; then
3465   enableval=$enable_nanox;
3466                           if test "$enableval" = yes; then
3467                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3468                           else
3469                             wx_cv_use_nanox='wxUSE_NANOX=no'
3470                           fi
3471                           cache=yes
3472
3473 else
3474
3475                           LINE=`grep "^wxUSE_NANOX=" ${wx_arg_cache_file}`
3476                           if test "x$LINE" != x ; then
3477                               eval "DEFAULT_$LINE"
3478                               cache=yes
3479                           else
3480                               cache=no
3481                           fi
3482
3483                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3484
3485 fi
3486
3487
3488           eval "$wx_cv_use_nanox"
3489           if test "x$cache" = xyes; then
3490             echo "wxUSE_NANOX=$wxUSE_NANOX" >> ${wx_arg_cache_file}.tmp
3491           fi
3492
3493           if test x"$enablestring" = xdisable; then
3494             if test $wxUSE_NANOX = yes; then
3495               result=no
3496             else
3497               result=yes
3498             fi
3499           else
3500             result=$wxUSE_NANOX
3501           fi
3502
3503           { echo "$as_me:$LINENO: result: $result" >&5
3504 echo "${ECHO_T}$result" >&6; }
3505
3506
3507 # Check whether --enable-gtk2 was given.
3508 if test "${enable_gtk2+set}" = set; then
3509   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3510 fi
3511
3512
3513           enablestring=
3514           defaultval=
3515           if test -z "$defaultval"; then
3516               if test x"$enablestring" = xdisable; then
3517                   defaultval=yes
3518               else
3519                   defaultval=no
3520               fi
3521           fi
3522
3523           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3524 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3525           # Check whether --enable-gpe was given.
3526 if test "${enable_gpe+set}" = set; then
3527   enableval=$enable_gpe;
3528                           if test "$enableval" = yes; then
3529                             wx_cv_use_gpe='wxUSE_GPE=yes'
3530                           else
3531                             wx_cv_use_gpe='wxUSE_GPE=no'
3532                           fi
3533                           cache=yes
3534
3535 else
3536
3537                           LINE=`grep "^wxUSE_GPE=" ${wx_arg_cache_file}`
3538                           if test "x$LINE" != x ; then
3539                               eval "DEFAULT_$LINE"
3540                               cache=yes
3541                           else
3542                               cache=no
3543                           fi
3544
3545                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3546
3547 fi
3548
3549
3550           eval "$wx_cv_use_gpe"
3551           if test "x$cache" = xyes; then
3552             echo "wxUSE_GPE=$wxUSE_GPE" >> ${wx_arg_cache_file}.tmp
3553           fi
3554
3555           if test x"$enablestring" = xdisable; then
3556             if test $wxUSE_GPE = yes; then
3557               result=no
3558             else
3559               result=yes
3560             fi
3561           else
3562             result=$wxUSE_GPE
3563           fi
3564
3565           { echo "$as_me:$LINENO: result: $result" >&5
3566 echo "${ECHO_T}$result" >&6; }
3567
3568
3569
3570
3571           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3572 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3573
3574 # Check whether --with-libpng was given.
3575 if test "${with_libpng+set}" = set; then
3576   withval=$with_libpng;
3577                         if test "$withval" = yes; then
3578                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3579                         elif test "$withval" = no; then
3580                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3581                         elif test "$withval" = sys; then
3582                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3583                         elif test "$withval" = builtin; then
3584                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3585                         else
3586                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3587 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3588    { (exit 1); exit 1; }; }
3589                         fi
3590                         cache=yes
3591
3592 else
3593
3594                         LINE=`grep "^wxUSE_LIBPNG=" ${wx_arg_cache_file}`
3595                         if test "x$LINE" != x ; then
3596                             eval "DEFAULT_$LINE"
3597                             cache=yes
3598                         else
3599                             cache=no
3600                         fi
3601
3602                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3603
3604 fi
3605
3606
3607           eval "$wx_cv_use_libpng"
3608           if test "x$cache" = xyes; then
3609             echo "wxUSE_LIBPNG=$wxUSE_LIBPNG" >> ${wx_arg_cache_file}.tmp
3610           fi
3611
3612           if test "$wxUSE_LIBPNG" = yes; then
3613             { echo "$as_me:$LINENO: result: yes" >&5
3614 echo "${ECHO_T}yes" >&6; }
3615           elif test "$wxUSE_LIBPNG" = no; then
3616             { echo "$as_me:$LINENO: result: no" >&5
3617 echo "${ECHO_T}no" >&6; }
3618           elif test "$wxUSE_LIBPNG" = sys; then
3619             { echo "$as_me:$LINENO: result: system version" >&5
3620 echo "${ECHO_T}system version" >&6; }
3621           elif test "$wxUSE_LIBPNG" = builtin; then
3622             { echo "$as_me:$LINENO: result: builtin version" >&5
3623 echo "${ECHO_T}builtin version" >&6; }
3624           else
3625             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3626 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3627    { (exit 1); exit 1; }; }
3628           fi
3629
3630
3631           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3632 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3633
3634 # Check whether --with-libjpeg was given.
3635 if test "${with_libjpeg+set}" = set; then
3636   withval=$with_libjpeg;
3637                         if test "$withval" = yes; then
3638                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3639                         elif test "$withval" = no; then
3640                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3641                         elif test "$withval" = sys; then
3642                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3643                         elif test "$withval" = builtin; then
3644                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3645                         else
3646                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3647 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3648    { (exit 1); exit 1; }; }
3649                         fi
3650                         cache=yes
3651
3652 else
3653
3654                         LINE=`grep "^wxUSE_LIBJPEG=" ${wx_arg_cache_file}`
3655                         if test "x$LINE" != x ; then
3656                             eval "DEFAULT_$LINE"
3657                             cache=yes
3658                         else
3659                             cache=no
3660                         fi
3661
3662                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3663
3664 fi
3665
3666
3667           eval "$wx_cv_use_libjpeg"
3668           if test "x$cache" = xyes; then
3669             echo "wxUSE_LIBJPEG=$wxUSE_LIBJPEG" >> ${wx_arg_cache_file}.tmp
3670           fi
3671
3672           if test "$wxUSE_LIBJPEG" = yes; then
3673             { echo "$as_me:$LINENO: result: yes" >&5
3674 echo "${ECHO_T}yes" >&6; }
3675           elif test "$wxUSE_LIBJPEG" = no; then
3676             { echo "$as_me:$LINENO: result: no" >&5
3677 echo "${ECHO_T}no" >&6; }
3678           elif test "$wxUSE_LIBJPEG" = sys; then
3679             { echo "$as_me:$LINENO: result: system version" >&5
3680 echo "${ECHO_T}system version" >&6; }
3681           elif test "$wxUSE_LIBJPEG" = builtin; then
3682             { echo "$as_me:$LINENO: result: builtin version" >&5
3683 echo "${ECHO_T}builtin version" >&6; }
3684           else
3685             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3686 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3687    { (exit 1); exit 1; }; }
3688           fi
3689
3690
3691           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3692 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3693
3694 # Check whether --with-libtiff was given.
3695 if test "${with_libtiff+set}" = set; then
3696   withval=$with_libtiff;
3697                         if test "$withval" = yes; then
3698                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3699                         elif test "$withval" = no; then
3700                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3701                         elif test "$withval" = sys; then
3702                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3703                         elif test "$withval" = builtin; then
3704                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3705                         else
3706                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3707 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3708    { (exit 1); exit 1; }; }
3709                         fi
3710                         cache=yes
3711
3712 else
3713
3714                         LINE=`grep "^wxUSE_LIBTIFF=" ${wx_arg_cache_file}`
3715                         if test "x$LINE" != x ; then
3716                             eval "DEFAULT_$LINE"
3717                             cache=yes
3718                         else
3719                             cache=no
3720                         fi
3721
3722                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3723
3724 fi
3725
3726
3727           eval "$wx_cv_use_libtiff"
3728           if test "x$cache" = xyes; then
3729             echo "wxUSE_LIBTIFF=$wxUSE_LIBTIFF" >> ${wx_arg_cache_file}.tmp
3730           fi
3731
3732           if test "$wxUSE_LIBTIFF" = yes; then
3733             { echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6; }
3735           elif test "$wxUSE_LIBTIFF" = no; then
3736             { echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6; }
3738           elif test "$wxUSE_LIBTIFF" = sys; then
3739             { echo "$as_me:$LINENO: result: system version" >&5
3740 echo "${ECHO_T}system version" >&6; }
3741           elif test "$wxUSE_LIBTIFF" = builtin; then
3742             { echo "$as_me:$LINENO: result: builtin version" >&5
3743 echo "${ECHO_T}builtin version" >&6; }
3744           else
3745             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3746 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3747    { (exit 1); exit 1; }; }
3748           fi
3749
3750
3751           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3752 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3753
3754 # Check whether --with-libxpm was given.
3755 if test "${with_libxpm+set}" = set; then
3756   withval=$with_libxpm;
3757                         if test "$withval" = yes; then
3758                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3759                         elif test "$withval" = no; then
3760                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3761                         elif test "$withval" = sys; then
3762                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3763                         elif test "$withval" = builtin; then
3764                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3765                         else
3766                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3767 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3768    { (exit 1); exit 1; }; }
3769                         fi
3770                         cache=yes
3771
3772 else
3773
3774                         LINE=`grep "^wxUSE_LIBXPM=" ${wx_arg_cache_file}`
3775                         if test "x$LINE" != x ; then
3776                             eval "DEFAULT_$LINE"
3777                             cache=yes
3778                         else
3779                             cache=no
3780                         fi
3781
3782                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3783
3784 fi
3785
3786
3787           eval "$wx_cv_use_libxpm"
3788           if test "x$cache" = xyes; then
3789             echo "wxUSE_LIBXPM=$wxUSE_LIBXPM" >> ${wx_arg_cache_file}.tmp
3790           fi
3791
3792           if test "$wxUSE_LIBXPM" = yes; then
3793             { echo "$as_me:$LINENO: result: yes" >&5
3794 echo "${ECHO_T}yes" >&6; }
3795           elif test "$wxUSE_LIBXPM" = no; then
3796             { echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6; }
3798           elif test "$wxUSE_LIBXPM" = sys; then
3799             { echo "$as_me:$LINENO: result: system version" >&5
3800 echo "${ECHO_T}system version" >&6; }
3801           elif test "$wxUSE_LIBXPM" = builtin; then
3802             { echo "$as_me:$LINENO: result: builtin version" >&5
3803 echo "${ECHO_T}builtin version" >&6; }
3804           else
3805             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3806 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3807    { (exit 1); exit 1; }; }
3808           fi
3809
3810
3811           withstring=
3812           defaultval=$wxUSE_ALL_FEATURES
3813           if test -z "$defaultval"; then
3814               if test x"$withstring" = xwithout; then
3815                   defaultval=yes
3816               else
3817                   defaultval=no
3818               fi
3819           fi
3820           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3821 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3822
3823 # Check whether --with-libmspack was given.
3824 if test "${with_libmspack+set}" = set; then
3825   withval=$with_libmspack;
3826                         if test "$withval" = yes; then
3827                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3828                         else
3829                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3830                         fi
3831                         cache=yes
3832
3833 else
3834
3835                         LINE=`grep "^wxUSE_LIBMSPACK=" ${wx_arg_cache_file}`
3836                         if test "x$LINE" != x ; then
3837                             eval "DEFAULT_$LINE"
3838                             cache=yes
3839                         else
3840                             cache=no
3841                         fi
3842
3843                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3844
3845 fi
3846
3847
3848           eval "$wx_cv_use_libmspack"
3849           if test "x$cache" = xyes; then
3850             echo "wxUSE_LIBMSPACK=$wxUSE_LIBMSPACK" >> ${wx_arg_cache_file}.tmp
3851           fi
3852
3853           if test x"$withstring" = xwithout; then
3854             if test $wxUSE_LIBMSPACK = yes; then
3855               result=no
3856             else
3857               result=yes
3858             fi
3859           else
3860             result=$wxUSE_LIBMSPACK
3861           fi
3862
3863           { echo "$as_me:$LINENO: result: $result" >&5
3864 echo "${ECHO_T}$result" >&6; }
3865
3866
3867           withstring=without
3868           defaultval=$wxUSE_ALL_FEATURES
3869           if test -z "$defaultval"; then
3870               if test x"$withstring" = xwithout; then
3871                   defaultval=yes
3872               else
3873                   defaultval=no
3874               fi
3875           fi
3876           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3877 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3878
3879 # Check whether --with-gtkprint was given.
3880 if test "${with_gtkprint+set}" = set; then
3881   withval=$with_gtkprint;
3882                         if test "$withval" = yes; then
3883                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3884                         else
3885                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3886                         fi
3887                         cache=yes
3888
3889 else
3890
3891                         LINE=`grep "^wxUSE_GTKPRINT=" ${wx_arg_cache_file}`
3892                         if test "x$LINE" != x ; then
3893                             eval "DEFAULT_$LINE"
3894                             cache=yes
3895                         else
3896                             cache=no
3897                         fi
3898
3899                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3900
3901 fi
3902
3903
3904           eval "$wx_cv_use_gtkprint"
3905           if test "x$cache" = xyes; then
3906             echo "wxUSE_GTKPRINT=$wxUSE_GTKPRINT" >> ${wx_arg_cache_file}.tmp
3907           fi
3908
3909           if test x"$withstring" = xwithout; then
3910             if test $wxUSE_GTKPRINT = yes; then
3911               result=no
3912             else
3913               result=yes
3914             fi
3915           else
3916             result=$wxUSE_GTKPRINT
3917           fi
3918
3919           { echo "$as_me:$LINENO: result: $result" >&5
3920 echo "${ECHO_T}$result" >&6; }
3921
3922
3923           withstring=without
3924           defaultval=$wxUSE_ALL_FEATURES
3925           if test -z "$defaultval"; then
3926               if test x"$withstring" = xwithout; then
3927                   defaultval=yes
3928               else
3929                   defaultval=no
3930               fi
3931           fi
3932           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3933 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3934
3935 # Check whether --with-gnomeprint was given.
3936 if test "${with_gnomeprint+set}" = set; then
3937   withval=$with_gnomeprint;
3938                         if test "$withval" = yes; then
3939                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3940                         else
3941                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3942                         fi
3943                         cache=yes
3944
3945 else
3946
3947                         LINE=`grep "^wxUSE_LIBGNOMEPRINT=" ${wx_arg_cache_file}`
3948                         if test "x$LINE" != x ; then
3949                             eval "DEFAULT_$LINE"
3950                             cache=yes
3951                         else
3952                             cache=no
3953                         fi
3954
3955                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3956
3957 fi
3958
3959
3960           eval "$wx_cv_use_gnomeprint"
3961           if test "x$cache" = xyes; then
3962             echo "wxUSE_LIBGNOMEPRINT=$wxUSE_LIBGNOMEPRINT" >> ${wx_arg_cache_file}.tmp
3963           fi
3964
3965           if test x"$withstring" = xwithout; then
3966             if test $wxUSE_LIBGNOMEPRINT = yes; then
3967               result=no
3968             else
3969               result=yes
3970             fi
3971           else
3972             result=$wxUSE_LIBGNOMEPRINT
3973           fi
3974
3975           { echo "$as_me:$LINENO: result: $result" >&5
3976 echo "${ECHO_T}$result" >&6; }
3977
3978
3979           withstring=
3980           defaultval=$wxUSE_ALL_FEATURES
3981           if test -z "$defaultval"; then
3982               if test x"$withstring" = xwithout; then
3983                   defaultval=yes
3984               else
3985                   defaultval=no
3986               fi
3987           fi
3988           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3989 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3990
3991 # Check whether --with-gnomevfs was given.
3992 if test "${with_gnomevfs+set}" = set; then
3993   withval=$with_gnomevfs;
3994                         if test "$withval" = yes; then
3995                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3996                         else
3997                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3998                         fi
3999                         cache=yes
4000
4001 else
4002
4003                         LINE=`grep "^wxUSE_LIBGNOMEVFS=" ${wx_arg_cache_file}`
4004                         if test "x$LINE" != x ; then
4005                             eval "DEFAULT_$LINE"
4006                             cache=yes
4007                         else
4008                             cache=no
4009                         fi
4010
4011                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4012
4013 fi
4014
4015
4016           eval "$wx_cv_use_gnomevfs"
4017           if test "x$cache" = xyes; then
4018             echo "wxUSE_LIBGNOMEVFS=$wxUSE_LIBGNOMEVFS" >> ${wx_arg_cache_file}.tmp
4019           fi
4020
4021           if test x"$withstring" = xwithout; then
4022             if test $wxUSE_LIBGNOMEVFS = yes; then
4023               result=no
4024             else
4025               result=yes
4026             fi
4027           else
4028             result=$wxUSE_LIBGNOMEVFS
4029           fi
4030
4031           { echo "$as_me:$LINENO: result: $result" >&5
4032 echo "${ECHO_T}$result" >&6; }
4033
4034
4035           withstring=
4036           defaultval=$wxUSE_ALL_FEATURES
4037           if test -z "$defaultval"; then
4038               if test x"$withstring" = xwithout; then
4039                   defaultval=yes
4040               else
4041                   defaultval=no
4042               fi
4043           fi
4044           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4045 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4046
4047 # Check whether --with-hildon was given.
4048 if test "${with_hildon+set}" = set; then
4049   withval=$with_hildon;
4050                         if test "$withval" = yes; then
4051                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4052                         else
4053                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4054                         fi
4055                         cache=yes
4056
4057 else
4058
4059                         LINE=`grep "^wxUSE_LIBHILDON=" ${wx_arg_cache_file}`
4060                         if test "x$LINE" != x ; then
4061                             eval "DEFAULT_$LINE"
4062                             cache=yes
4063                         else
4064                             cache=no
4065                         fi
4066
4067                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4068
4069 fi
4070
4071
4072           eval "$wx_cv_use_hildon"
4073           if test "x$cache" = xyes; then
4074             echo "wxUSE_LIBHILDON=$wxUSE_LIBHILDON" >> ${wx_arg_cache_file}.tmp
4075           fi
4076
4077           if test x"$withstring" = xwithout; then
4078             if test $wxUSE_LIBHILDON = yes; then
4079               result=no
4080             else
4081               result=yes
4082             fi
4083           else
4084             result=$wxUSE_LIBHILDON
4085           fi
4086
4087           { echo "$as_me:$LINENO: result: $result" >&5
4088 echo "${ECHO_T}$result" >&6; }
4089
4090
4091           withstring=
4092           defaultval=$wxUSE_ALL_FEATURES
4093           if test -z "$defaultval"; then
4094               if test x"$withstring" = xwithout; then
4095                   defaultval=yes
4096               else
4097                   defaultval=no
4098               fi
4099           fi
4100           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4101 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4102
4103 # Check whether --with-opengl was given.
4104 if test "${with_opengl+set}" = set; then
4105   withval=$with_opengl;
4106                         if test "$withval" = yes; then
4107                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4108                         else
4109                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4110                         fi
4111                         cache=yes
4112
4113 else
4114
4115                         LINE=`grep "^wxUSE_OPENGL=" ${wx_arg_cache_file}`
4116                         if test "x$LINE" != x ; then
4117                             eval "DEFAULT_$LINE"
4118                             cache=yes
4119                         else
4120                             cache=no
4121                         fi
4122
4123                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4124
4125 fi
4126
4127
4128           eval "$wx_cv_use_opengl"
4129           if test "x$cache" = xyes; then
4130             echo "wxUSE_OPENGL=$wxUSE_OPENGL" >> ${wx_arg_cache_file}.tmp
4131           fi
4132
4133           if test x"$withstring" = xwithout; then
4134             if test $wxUSE_OPENGL = yes; then
4135               result=no
4136             else
4137               result=yes
4138             fi
4139           else
4140             result=$wxUSE_OPENGL
4141           fi
4142
4143           { echo "$as_me:$LINENO: result: $result" >&5
4144 echo "${ECHO_T}$result" >&6; }
4145
4146
4147 fi
4148
4149
4150           withstring=
4151           defaultval=$wxUSE_ALL_FEATURES
4152           if test -z "$defaultval"; then
4153               if test x"$withstring" = xwithout; then
4154                   defaultval=yes
4155               else
4156                   defaultval=no
4157               fi
4158           fi
4159           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4160 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4161
4162 # Check whether --with-dmalloc was given.
4163 if test "${with_dmalloc+set}" = set; then
4164   withval=$with_dmalloc;
4165                         if test "$withval" = yes; then
4166                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4167                         else
4168                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4169                         fi
4170                         cache=yes
4171
4172 else
4173
4174                         LINE=`grep "^wxUSE_DMALLOC=" ${wx_arg_cache_file}`
4175                         if test "x$LINE" != x ; then
4176                             eval "DEFAULT_$LINE"
4177                             cache=yes
4178                         else
4179                             cache=no
4180                         fi
4181
4182                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4183
4184 fi
4185
4186
4187           eval "$wx_cv_use_dmalloc"
4188           if test "x$cache" = xyes; then
4189             echo "wxUSE_DMALLOC=$wxUSE_DMALLOC" >> ${wx_arg_cache_file}.tmp
4190           fi
4191
4192           if test x"$withstring" = xwithout; then
4193             if test $wxUSE_DMALLOC = yes; then
4194               result=no
4195             else
4196               result=yes
4197             fi
4198           else
4199             result=$wxUSE_DMALLOC
4200           fi
4201
4202           { echo "$as_me:$LINENO: result: $result" >&5
4203 echo "${ECHO_T}$result" >&6; }
4204
4205
4206           withstring=
4207           defaultval=$wxUSE_ALL_FEATURES
4208           if test -z "$defaultval"; then
4209               if test x"$withstring" = xwithout; then
4210                   defaultval=yes
4211               else
4212                   defaultval=no
4213               fi
4214           fi
4215           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4216 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4217
4218 # Check whether --with-sdl was given.
4219 if test "${with_sdl+set}" = set; then
4220   withval=$with_sdl;
4221                         if test "$withval" = yes; then
4222                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4223                         else
4224                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4225                         fi
4226                         cache=yes
4227
4228 else
4229
4230                         LINE=`grep "^wxUSE_LIBSDL=" ${wx_arg_cache_file}`
4231                         if test "x$LINE" != x ; then
4232                             eval "DEFAULT_$LINE"
4233                             cache=yes
4234                         else
4235                             cache=no
4236                         fi
4237
4238                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4239
4240 fi
4241
4242
4243           eval "$wx_cv_use_sdl"
4244           if test "x$cache" = xyes; then
4245             echo "wxUSE_LIBSDL=$wxUSE_LIBSDL" >> ${wx_arg_cache_file}.tmp
4246           fi
4247
4248           if test x"$withstring" = xwithout; then
4249             if test $wxUSE_LIBSDL = yes; then
4250               result=no
4251             else
4252               result=yes
4253             fi
4254           else
4255             result=$wxUSE_LIBSDL
4256           fi
4257
4258           { echo "$as_me:$LINENO: result: $result" >&5
4259 echo "${ECHO_T}$result" >&6; }
4260
4261
4262           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4263 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4264
4265 # Check whether --with-regex was given.
4266 if test "${with_regex+set}" = set; then
4267   withval=$with_regex;
4268                         if test "$withval" = yes; then
4269                           wx_cv_use_regex='wxUSE_REGEX=yes'
4270                         elif test "$withval" = no; then
4271                           wx_cv_use_regex='wxUSE_REGEX=no'
4272                         elif test "$withval" = sys; then
4273                           wx_cv_use_regex='wxUSE_REGEX=sys'
4274                         elif test "$withval" = builtin; then
4275                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4276                         else
4277                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4278 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4279    { (exit 1); exit 1; }; }
4280                         fi
4281                         cache=yes
4282
4283 else
4284
4285                         LINE=`grep "^wxUSE_REGEX=" ${wx_arg_cache_file}`
4286                         if test "x$LINE" != x ; then
4287                             eval "DEFAULT_$LINE"
4288                             cache=yes
4289                         else
4290                             cache=no
4291                         fi
4292
4293                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4294
4295 fi
4296
4297
4298           eval "$wx_cv_use_regex"
4299           if test "x$cache" = xyes; then
4300             echo "wxUSE_REGEX=$wxUSE_REGEX" >> ${wx_arg_cache_file}.tmp
4301           fi
4302
4303           if test "$wxUSE_REGEX" = yes; then
4304             { echo "$as_me:$LINENO: result: yes" >&5
4305 echo "${ECHO_T}yes" >&6; }
4306           elif test "$wxUSE_REGEX" = no; then
4307             { echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6; }
4309           elif test "$wxUSE_REGEX" = sys; then
4310             { echo "$as_me:$LINENO: result: system version" >&5
4311 echo "${ECHO_T}system version" >&6; }
4312           elif test "$wxUSE_REGEX" = builtin; then
4313             { echo "$as_me:$LINENO: result: builtin version" >&5
4314 echo "${ECHO_T}builtin version" >&6; }
4315           else
4316             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4317 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4318    { (exit 1); exit 1; }; }
4319           fi
4320
4321
4322           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4323 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4324
4325 # Check whether --with-zlib was given.
4326 if test "${with_zlib+set}" = set; then
4327   withval=$with_zlib;
4328                         if test "$withval" = yes; then
4329                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4330                         elif test "$withval" = no; then
4331                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4332                         elif test "$withval" = sys; then
4333                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4334                         elif test "$withval" = builtin; then
4335                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4336                         else
4337                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4338 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4339    { (exit 1); exit 1; }; }
4340                         fi
4341                         cache=yes
4342
4343 else
4344
4345                         LINE=`grep "^wxUSE_ZLIB=" ${wx_arg_cache_file}`
4346                         if test "x$LINE" != x ; then
4347                             eval "DEFAULT_$LINE"
4348                             cache=yes
4349                         else
4350                             cache=no
4351                         fi
4352
4353                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4354
4355 fi
4356
4357
4358           eval "$wx_cv_use_zlib"
4359           if test "x$cache" = xyes; then
4360             echo "wxUSE_ZLIB=$wxUSE_ZLIB" >> ${wx_arg_cache_file}.tmp
4361           fi
4362
4363           if test "$wxUSE_ZLIB" = yes; then
4364             { echo "$as_me:$LINENO: result: yes" >&5
4365 echo "${ECHO_T}yes" >&6; }
4366           elif test "$wxUSE_ZLIB" = no; then
4367             { echo "$as_me:$LINENO: result: no" >&5
4368 echo "${ECHO_T}no" >&6; }
4369           elif test "$wxUSE_ZLIB" = sys; then
4370             { echo "$as_me:$LINENO: result: system version" >&5
4371 echo "${ECHO_T}system version" >&6; }
4372           elif test "$wxUSE_ZLIB" = builtin; then
4373             { echo "$as_me:$LINENO: result: builtin version" >&5
4374 echo "${ECHO_T}builtin version" >&6; }
4375           else
4376             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4377 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4378    { (exit 1); exit 1; }; }
4379           fi
4380
4381
4382           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4383 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4384
4385 # Check whether --with-expat was given.
4386 if test "${with_expat+set}" = set; then
4387   withval=$with_expat;
4388                         if test "$withval" = yes; then
4389                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4390                         elif test "$withval" = no; then
4391                           wx_cv_use_expat='wxUSE_EXPAT=no'
4392                         elif test "$withval" = sys; then
4393                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4394                         elif test "$withval" = builtin; then
4395                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4396                         else
4397                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4398 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4399    { (exit 1); exit 1; }; }
4400                         fi
4401                         cache=yes
4402
4403 else
4404
4405                         LINE=`grep "^wxUSE_EXPAT=" ${wx_arg_cache_file}`
4406                         if test "x$LINE" != x ; then
4407                             eval "DEFAULT_$LINE"
4408                             cache=yes
4409                         else
4410                             cache=no
4411                         fi
4412
4413                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4414
4415 fi
4416
4417
4418           eval "$wx_cv_use_expat"
4419           if test "x$cache" = xyes; then
4420             echo "wxUSE_EXPAT=$wxUSE_EXPAT" >> ${wx_arg_cache_file}.tmp
4421           fi
4422
4423           if test "$wxUSE_EXPAT" = yes; then
4424             { echo "$as_me:$LINENO: result: yes" >&5
4425 echo "${ECHO_T}yes" >&6; }
4426           elif test "$wxUSE_EXPAT" = no; then
4427             { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4429           elif test "$wxUSE_EXPAT" = sys; then
4430             { echo "$as_me:$LINENO: result: system version" >&5
4431 echo "${ECHO_T}system version" >&6; }
4432           elif test "$wxUSE_EXPAT" = builtin; then
4433             { echo "$as_me:$LINENO: result: builtin version" >&5
4434 echo "${ECHO_T}builtin version" >&6; }
4435           else
4436             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4437 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4438    { (exit 1); exit 1; }; }
4439           fi
4440
4441
4442 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4443 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4444
4445 # Check whether --with-macosx-sdk was given.
4446 if test "${with_macosx_sdk+set}" = set; then
4447   withval=$with_macosx_sdk;
4448         wxUSE_MACOSX_SDK=$withval
4449         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4450         echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp
4451
4452 else
4453
4454         # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no)
4455         # will override --enable-universal_binary's automatic SDK usage.
4456         wxUSE_MACOSX_SDK=
4457         LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}`
4458         if test "x$LINE" != x ; then
4459             eval "$LINE"
4460             echo "$LINE" >> ${wx_arg_cache_file}.tmp
4461         fi
4462
4463 fi
4464
4465 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4466 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4467
4468 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4469 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4470
4471 # Check whether --with-macosx-version-min was given.
4472 if test "${with_macosx_version_min+set}" = set; then
4473   withval=$with_macosx_version_min;
4474         wxUSE_MACOSX_VERSION_MIN=$withval
4475         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4476         echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp
4477
4478 else
4479
4480         # default "yes" because when not using an SDK it means the same as no
4481         # but when using an SDK it means to use the SDK version
4482         wxUSE_MACOSX_VERSION_MIN=yes
4483         # See if there is a value in the cache
4484         LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}`
4485         if test "x$LINE" != x ; then
4486             eval "$LINE"
4487             echo "$LINE" >> ${wx_arg_cache_file}.tmp
4488         fi
4489
4490 fi
4491
4492 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4493 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4494
4495
4496
4497           enablestring=disable
4498           defaultval=
4499           if test -z "$defaultval"; then
4500               if test x"$enablestring" = xdisable; then
4501                   defaultval=yes
4502               else
4503                   defaultval=no
4504               fi
4505           fi
4506
4507           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4508 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4509           # Check whether --enable-shared was given.
4510 if test "${enable_shared+set}" = set; then
4511   enableval=$enable_shared;
4512                           if test "$enableval" = yes; then
4513                             wx_cv_use_shared='wxUSE_SHARED=yes'
4514                           else
4515                             wx_cv_use_shared='wxUSE_SHARED=no'
4516                           fi
4517                           cache=yes
4518
4519 else
4520
4521                           LINE=`grep "^wxUSE_SHARED=" ${wx_arg_cache_file}`
4522                           if test "x$LINE" != x ; then
4523                               eval "DEFAULT_$LINE"
4524                               cache=yes
4525                           else
4526                               cache=no
4527                           fi
4528
4529                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4530
4531 fi
4532
4533
4534           eval "$wx_cv_use_shared"
4535           if test "x$cache" = xyes; then
4536             echo "wxUSE_SHARED=$wxUSE_SHARED" >> ${wx_arg_cache_file}.tmp
4537           fi
4538
4539           if test x"$enablestring" = xdisable; then
4540             if test $wxUSE_SHARED = yes; then
4541               result=no
4542             else
4543               result=yes
4544             fi
4545           else
4546             result=$wxUSE_SHARED
4547           fi
4548
4549           { echo "$as_me:$LINENO: result: $result" >&5
4550 echo "${ECHO_T}$result" >&6; }
4551
4552
4553           enablestring=disable
4554           defaultval=
4555           if test -z "$defaultval"; then
4556               if test x"$enablestring" = xdisable; then
4557                   defaultval=yes
4558               else
4559                   defaultval=no
4560               fi
4561           fi
4562
4563           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4564 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4565           # Check whether --enable-optimise was given.
4566 if test "${enable_optimise+set}" = set; then
4567   enableval=$enable_optimise;
4568                           if test "$enableval" = yes; then
4569                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4570                           else
4571                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4572                           fi
4573                           cache=yes
4574
4575 else
4576
4577                           LINE=`grep "^wxUSE_OPTIMISE=" ${wx_arg_cache_file}`
4578                           if test "x$LINE" != x ; then
4579                               eval "DEFAULT_$LINE"
4580                               cache=yes
4581                           else
4582                               cache=no
4583                           fi
4584
4585                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4586
4587 fi
4588
4589
4590           eval "$wx_cv_use_optimise"
4591           if test "x$cache" = xyes; then
4592             echo "wxUSE_OPTIMISE=$wxUSE_OPTIMISE" >> ${wx_arg_cache_file}.tmp
4593           fi
4594
4595           if test x"$enablestring" = xdisable; then
4596             if test $wxUSE_OPTIMISE = yes; then
4597               result=no
4598             else
4599               result=yes
4600             fi
4601           else
4602             result=$wxUSE_OPTIMISE
4603           fi
4604
4605           { echo "$as_me:$LINENO: result: $result" >&5
4606 echo "${ECHO_T}$result" >&6; }
4607
4608
4609           enablestring=
4610           defaultval=
4611           if test -z "$defaultval"; then
4612               if test x"$enablestring" = xdisable; then
4613                   defaultval=yes
4614               else
4615                   defaultval=no
4616               fi
4617           fi
4618
4619           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4620 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4621           # Check whether --enable-debug was given.
4622 if test "${enable_debug+set}" = set; then
4623   enableval=$enable_debug;
4624                           if test "$enableval" = yes; then
4625                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4626                           else
4627                             wx_cv_use_debug='wxUSE_DEBUG=no'
4628                           fi
4629                           cache=yes
4630
4631 else
4632
4633                           LINE=`grep "^wxUSE_DEBUG=" ${wx_arg_cache_file}`
4634                           if test "x$LINE" != x ; then
4635                               eval "DEFAULT_$LINE"
4636                               cache=yes
4637                           else
4638                               cache=no
4639                           fi
4640
4641                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4642
4643 fi
4644
4645
4646           eval "$wx_cv_use_debug"
4647           if test "x$cache" = xyes; then
4648             echo "wxUSE_DEBUG=$wxUSE_DEBUG" >> ${wx_arg_cache_file}.tmp
4649           fi
4650
4651           if test x"$enablestring" = xdisable; then
4652             if test $wxUSE_DEBUG = yes; then
4653               result=no
4654             else
4655               result=yes
4656             fi
4657           else
4658             result=$wxUSE_DEBUG
4659           fi
4660
4661           { echo "$as_me:$LINENO: result: $result" >&5
4662 echo "${ECHO_T}$result" >&6; }
4663
4664
4665           enablestring=
4666           defaultval=
4667           if test -z "$defaultval"; then
4668               if test x"$enablestring" = xdisable; then
4669                   defaultval=yes
4670               else
4671                   defaultval=no
4672               fi
4673           fi
4674
4675           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4676 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4677           # Check whether --enable-stl was given.
4678 if test "${enable_stl+set}" = set; then
4679   enableval=$enable_stl;
4680                           if test "$enableval" = yes; then
4681                             wx_cv_use_stl='wxUSE_STL=yes'
4682                           else
4683                             wx_cv_use_stl='wxUSE_STL=no'
4684                           fi
4685                           cache=yes
4686
4687 else
4688
4689                           LINE=`grep "^wxUSE_STL=" ${wx_arg_cache_file}`
4690                           if test "x$LINE" != x ; then
4691                               eval "DEFAULT_$LINE"
4692                               cache=yes
4693                           else
4694                               cache=no
4695                           fi
4696
4697                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4698
4699 fi
4700
4701
4702           eval "$wx_cv_use_stl"
4703           if test "x$cache" = xyes; then
4704             echo "wxUSE_STL=$wxUSE_STL" >> ${wx_arg_cache_file}.tmp
4705           fi
4706
4707           if test x"$enablestring" = xdisable; then
4708             if test $wxUSE_STL = yes; then
4709               result=no
4710             else
4711               result=yes
4712             fi
4713           else
4714             result=$wxUSE_STL
4715           fi
4716
4717           { echo "$as_me:$LINENO: result: $result" >&5
4718 echo "${ECHO_T}$result" >&6; }
4719
4720
4721           enablestring=
4722           defaultval=
4723           if test -z "$defaultval"; then
4724               if test x"$enablestring" = xdisable; then
4725                   defaultval=yes
4726               else
4727                   defaultval=no
4728               fi
4729           fi
4730
4731           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4732 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4733           # Check whether --enable-std_iostreams was given.
4734 if test "${enable_std_iostreams+set}" = set; then
4735   enableval=$enable_std_iostreams;
4736                           if test "$enableval" = yes; then
4737                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4738                           else
4739                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4740                           fi
4741                           cache=yes
4742
4743 else
4744
4745                           LINE=`grep "^wxUSE_STD_IOSTREAM=" ${wx_arg_cache_file}`
4746                           if test "x$LINE" != x ; then
4747                               eval "DEFAULT_$LINE"
4748                               cache=yes
4749                           else
4750                               cache=no
4751                           fi
4752
4753                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4754
4755 fi
4756
4757
4758           eval "$wx_cv_use_std_iostreams"
4759           if test "x$cache" = xyes; then
4760             echo "wxUSE_STD_IOSTREAM=$wxUSE_STD_IOSTREAM" >> ${wx_arg_cache_file}.tmp
4761           fi
4762
4763           if test x"$enablestring" = xdisable; then
4764             if test $wxUSE_STD_IOSTREAM = yes; then
4765               result=no
4766             else
4767               result=yes
4768             fi
4769           else
4770             result=$wxUSE_STD_IOSTREAM
4771           fi
4772
4773           { echo "$as_me:$LINENO: result: $result" >&5
4774 echo "${ECHO_T}$result" >&6; }
4775
4776
4777           enablestring=
4778           defaultval=
4779           if test -z "$defaultval"; then
4780               if test x"$enablestring" = xdisable; then
4781                   defaultval=yes
4782               else
4783                   defaultval=no
4784               fi
4785           fi
4786
4787           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4788 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4789           # Check whether --enable-std_string was given.
4790 if test "${enable_std_string+set}" = set; then
4791   enableval=$enable_std_string;
4792                           if test "$enableval" = yes; then
4793                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4794                           else
4795                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4796                           fi
4797                           cache=yes
4798
4799 else
4800
4801                           LINE=`grep "^wxUSE_STD_STRING=" ${wx_arg_cache_file}`
4802                           if test "x$LINE" != x ; then
4803                               eval "DEFAULT_$LINE"
4804                               cache=yes
4805                           else
4806                               cache=no
4807                           fi
4808
4809                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4810
4811 fi
4812
4813
4814           eval "$wx_cv_use_std_string"
4815           if test "x$cache" = xyes; then
4816             echo "wxUSE_STD_STRING=$wxUSE_STD_STRING" >> ${wx_arg_cache_file}.tmp
4817           fi
4818
4819           if test x"$enablestring" = xdisable; then
4820             if test $wxUSE_STD_STRING = yes; then
4821               result=no
4822             else
4823               result=yes
4824             fi
4825           else
4826             result=$wxUSE_STD_STRING
4827           fi
4828
4829           { echo "$as_me:$LINENO: result: $result" >&5
4830 echo "${ECHO_T}$result" >&6; }
4831
4832
4833           enablestring=disable
4834           defaultval=
4835           if test -z "$defaultval"; then
4836               if test x"$enablestring" = xdisable; then
4837                   defaultval=yes
4838               else
4839                   defaultval=no
4840               fi
4841           fi
4842
4843           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4844 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4845           # Check whether --enable-unicode was given.
4846 if test "${enable_unicode+set}" = set; then
4847   enableval=$enable_unicode;
4848                           if test "$enableval" = yes; then
4849                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4850                           else
4851                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4852                           fi
4853                           cache=yes
4854
4855 else
4856
4857                           LINE=`grep "^wxUSE_UNICODE=" ${wx_arg_cache_file}`
4858                           if test "x$LINE" != x ; then
4859                               eval "DEFAULT_$LINE"
4860                               cache=yes
4861                           else
4862                               cache=no
4863                           fi
4864
4865                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4866
4867 fi
4868
4869
4870           eval "$wx_cv_use_unicode"
4871           if test "x$cache" = xyes; then
4872             echo "wxUSE_UNICODE=$wxUSE_UNICODE" >> ${wx_arg_cache_file}.tmp
4873           fi
4874
4875           if test x"$enablestring" = xdisable; then
4876             if test $wxUSE_UNICODE = yes; then
4877               result=no
4878             else
4879               result=yes
4880             fi
4881           else
4882             result=$wxUSE_UNICODE
4883           fi
4884
4885           { echo "$as_me:$LINENO: result: $result" >&5
4886 echo "${ECHO_T}$result" >&6; }
4887
4888
4889           enablestring=
4890           defaultval=
4891           if test -z "$defaultval"; then
4892               if test x"$enablestring" = xdisable; then
4893                   defaultval=yes
4894               else
4895                   defaultval=no
4896               fi
4897           fi
4898
4899           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4900 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4901           # Check whether --enable-mslu was given.
4902 if test "${enable_mslu+set}" = set; then
4903   enableval=$enable_mslu;
4904                           if test "$enableval" = yes; then
4905                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4906                           else
4907                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4908                           fi
4909                           cache=yes
4910
4911 else
4912
4913                           LINE=`grep "^wxUSE_UNICODE_MSLU=" ${wx_arg_cache_file}`
4914                           if test "x$LINE" != x ; then
4915                               eval "DEFAULT_$LINE"
4916                               cache=yes
4917                           else
4918                               cache=no
4919                           fi
4920
4921                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4922
4923 fi
4924
4925
4926           eval "$wx_cv_use_mslu"
4927           if test "x$cache" = xyes; then
4928             echo "wxUSE_UNICODE_MSLU=$wxUSE_UNICODE_MSLU" >> ${wx_arg_cache_file}.tmp
4929           fi
4930
4931           if test x"$enablestring" = xdisable; then
4932             if test $wxUSE_UNICODE_MSLU = yes; then
4933               result=no
4934             else
4935               result=yes
4936             fi
4937           else
4938             result=$wxUSE_UNICODE_MSLU
4939           fi
4940
4941           { echo "$as_me:$LINENO: result: $result" >&5
4942 echo "${ECHO_T}$result" >&6; }
4943
4944
4945           enablestring=
4946           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4947 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4948           # Check whether --enable-utf8 was given.
4949 if test "${enable_utf8+set}" = set; then
4950   enableval=$enable_utf8;
4951                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4952                           cache=yes
4953
4954 else
4955
4956                           LINE=`grep "^wxUSE_UNICODE_UTF8=" ${wx_arg_cache_file}`
4957                           if test "x$LINE" != x ; then
4958                             eval "DEFAULT_$LINE"
4959                             cache=yes
4960                           else
4961                             cache=no
4962                           fi
4963
4964                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4965
4966 fi
4967
4968
4969           eval "$wx_cv_use_utf8"
4970           if test "x$cache" = xyes; then
4971             echo "wxUSE_UNICODE_UTF8=$wxUSE_UNICODE_UTF8" >> ${wx_arg_cache_file}.tmp
4972           fi
4973
4974           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4975 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4976
4977
4978           enablestring=
4979           defaultval=
4980           if test -z "$defaultval"; then
4981               if test x"$enablestring" = xdisable; then
4982                   defaultval=yes
4983               else
4984                   defaultval=no
4985               fi
4986           fi
4987
4988           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4989 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4990           # Check whether --enable-utf8only was given.
4991 if test "${enable_utf8only+set}" = set; then
4992   enableval=$enable_utf8only;
4993                           if test "$enableval" = yes; then
4994                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4995                           else
4996                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4997                           fi
4998                           cache=yes
4999
5000 else
5001
5002                           LINE=`grep "^wxUSE_UNICODE_UTF8_LOCALE=" ${wx_arg_cache_file}`
5003                           if test "x$LINE" != x ; then
5004                               eval "DEFAULT_$LINE"
5005                               cache=yes
5006                           else
5007                               cache=no
5008                           fi
5009
5010                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5011
5012 fi
5013
5014
5015           eval "$wx_cv_use_utf8only"
5016           if test "x$cache" = xyes; then
5017             echo "wxUSE_UNICODE_UTF8_LOCALE=$wxUSE_UNICODE_UTF8_LOCALE" >> ${wx_arg_cache_file}.tmp
5018           fi
5019
5020           if test x"$enablestring" = xdisable; then
5021             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
5022               result=no
5023             else
5024               result=yes
5025             fi
5026           else
5027             result=$wxUSE_UNICODE_UTF8_LOCALE
5028           fi
5029
5030           { echo "$as_me:$LINENO: result: $result" >&5
5031 echo "${ECHO_T}$result" >&6; }
5032
5033
5034           enablestring=
5035           defaultval=
5036           if test -z "$defaultval"; then
5037               if test x"$enablestring" = xdisable; then
5038                   defaultval=yes
5039               else
5040                   defaultval=no
5041               fi
5042           fi
5043
5044           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5045 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5046           # Check whether --enable-extended_rtti was given.
5047 if test "${enable_extended_rtti+set}" = set; then
5048   enableval=$enable_extended_rtti;
5049                           if test "$enableval" = yes; then
5050                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5051                           else
5052                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5053                           fi
5054                           cache=yes
5055
5056 else
5057
5058                           LINE=`grep "^wxUSE_EXTENDED_RTTI=" ${wx_arg_cache_file}`
5059                           if test "x$LINE" != x ; then
5060                               eval "DEFAULT_$LINE"
5061                               cache=yes
5062                           else
5063                               cache=no
5064                           fi
5065
5066                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5067
5068 fi
5069
5070
5071           eval "$wx_cv_use_extended_rtti"
5072           if test "x$cache" = xyes; then
5073             echo "wxUSE_EXTENDED_RTTI=$wxUSE_EXTENDED_RTTI" >> ${wx_arg_cache_file}.tmp
5074           fi
5075
5076           if test x"$enablestring" = xdisable; then
5077             if test $wxUSE_EXTENDED_RTTI = yes; then
5078               result=no
5079             else
5080               result=yes
5081             fi
5082           else
5083             result=$wxUSE_EXTENDED_RTTI
5084           fi
5085
5086           { echo "$as_me:$LINENO: result: $result" >&5
5087 echo "${ECHO_T}$result" >&6; }
5088
5089 if test "$USE_OS2" = "1"; then
5090     DEFAULT_wxUSE_OMF=no
5091
5092           enablestring=
5093           defaultval=
5094           if test -z "$defaultval"; then
5095               if test x"$enablestring" = xdisable; then
5096                   defaultval=yes
5097               else
5098                   defaultval=no
5099               fi
5100           fi
5101
5102           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5103 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5104           # Check whether --enable-omf was given.
5105 if test "${enable_omf+set}" = set; then
5106   enableval=$enable_omf;
5107                           if test "$enableval" = yes; then
5108                             wx_cv_use_omf='wxUSE_OMF=yes'
5109                           else
5110                             wx_cv_use_omf='wxUSE_OMF=no'
5111                           fi
5112                           cache=yes
5113
5114 else
5115
5116                           LINE=`grep "^wxUSE_OMF=" ${wx_arg_cache_file}`
5117                           if test "x$LINE" != x ; then
5118                               eval "DEFAULT_$LINE"
5119                               cache=yes
5120                           else
5121                               cache=no
5122                           fi
5123
5124                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5125
5126 fi
5127
5128
5129           eval "$wx_cv_use_omf"
5130           if test "x$cache" = xyes; then
5131             echo "wxUSE_OMF=$wxUSE_OMF" >> ${wx_arg_cache_file}.tmp
5132           fi
5133
5134           if test x"$enablestring" = xdisable; then
5135             if test $wxUSE_OMF = yes; then
5136               result=no
5137             else
5138               result=yes
5139             fi
5140           else
5141             result=$wxUSE_OMF
5142           fi
5143
5144           { echo "$as_me:$LINENO: result: $result" >&5
5145 echo "${ECHO_T}$result" >&6; }
5146
5147 fi
5148
5149 if test "$wxUSE_DEBUG" = "yes"; then
5150   DEFAULT_wxUSE_DEBUG_FLAG=yes
5151   DEFAULT_wxUSE_DEBUG_INFO=yes
5152   BUILD=debug
5153 elif test "$wxUSE_DEBUG" = "no"; then
5154   DEFAULT_wxUSE_DEBUG_FLAG=no
5155   DEFAULT_wxUSE_DEBUG_INFO=no
5156   BUILD=release
5157 fi
5158
5159
5160           enablestring=
5161           defaultval=
5162           if test -z "$defaultval"; then
5163               if test x"$enablestring" = xdisable; then
5164                   defaultval=yes
5165               else
5166                   defaultval=no
5167               fi
5168           fi
5169
5170           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
5171 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
5172           # Check whether --enable-debug_flag was given.
5173 if test "${enable_debug_flag+set}" = set; then
5174   enableval=$enable_debug_flag;
5175                           if test "$enableval" = yes; then
5176                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
5177                           else
5178                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
5179                           fi
5180                           cache=yes
5181
5182 else
5183
5184                           LINE=`grep "^wxUSE_DEBUG_FLAG=" ${wx_arg_cache_file}`
5185                           if test "x$LINE" != x ; then
5186                               eval "DEFAULT_$LINE"
5187                               cache=yes
5188                           else
5189                               cache=no
5190                           fi
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           if test "x$cache" = xyes; then
5199             echo "wxUSE_DEBUG_FLAG=$wxUSE_DEBUG_FLAG" >> ${wx_arg_cache_file}.tmp
5200           fi
5201
5202           if test x"$enablestring" = xdisable; then
5203             if test $wxUSE_DEBUG_FLAG = yes; then
5204               result=no
5205             else
5206               result=yes
5207             fi
5208           else
5209             result=$wxUSE_DEBUG_FLAG
5210           fi
5211
5212           { echo "$as_me:$LINENO: result: $result" >&5
5213 echo "${ECHO_T}$result" >&6; }
5214
5215
5216           enablestring=
5217           defaultval=
5218           if test -z "$defaultval"; then
5219               if test x"$enablestring" = xdisable; then
5220                   defaultval=yes
5221               else
5222                   defaultval=no
5223               fi
5224           fi
5225
5226           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
5227 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
5228           # Check whether --enable-debug_info was given.
5229 if test "${enable_debug_info+set}" = set; then
5230   enableval=$enable_debug_info;
5231                           if test "$enableval" = yes; then
5232                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
5233                           else
5234                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
5235                           fi
5236                           cache=yes
5237
5238 else
5239
5240                           LINE=`grep "^wxUSE_DEBUG_INFO=" ${wx_arg_cache_file}`
5241                           if test "x$LINE" != x ; then
5242                               eval "DEFAULT_$LINE"
5243                               cache=yes
5244                           else
5245                               cache=no
5246                           fi
5247
5248                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
5249
5250 fi
5251
5252
5253           eval "$wx_cv_use_debug_info"
5254           if test "x$cache" = xyes; then
5255             echo "wxUSE_DEBUG_INFO=$wxUSE_DEBUG_INFO" >> ${wx_arg_cache_file}.tmp
5256           fi
5257
5258           if test x"$enablestring" = xdisable; then
5259             if test $wxUSE_DEBUG_INFO = yes; then
5260               result=no
5261             else
5262               result=yes
5263             fi
5264           else
5265             result=$wxUSE_DEBUG_INFO
5266           fi
5267
5268           { echo "$as_me:$LINENO: result: $result" >&5
5269 echo "${ECHO_T}$result" >&6; }
5270
5271
5272           enablestring=
5273           defaultval=
5274           if test -z "$defaultval"; then
5275               if test x"$enablestring" = xdisable; then
5276                   defaultval=yes
5277               else
5278                   defaultval=no
5279               fi
5280           fi
5281
5282           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
5283 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
5284           # Check whether --enable-debug_gdb was given.
5285 if test "${enable_debug_gdb+set}" = set; then
5286   enableval=$enable_debug_gdb;
5287                           if test "$enableval" = yes; then
5288                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
5289                           else
5290                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
5291                           fi
5292                           cache=yes
5293
5294 else
5295
5296                           LINE=`grep "^wxUSE_DEBUG_GDB=" ${wx_arg_cache_file}`
5297                           if test "x$LINE" != x ; then
5298                               eval "DEFAULT_$LINE"
5299                               cache=yes
5300                           else
5301                               cache=no
5302                           fi
5303
5304                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
5305
5306 fi
5307
5308
5309           eval "$wx_cv_use_debug_gdb"
5310           if test "x$cache" = xyes; then
5311             echo "wxUSE_DEBUG_GDB=$wxUSE_DEBUG_GDB" >> ${wx_arg_cache_file}.tmp
5312           fi
5313
5314           if test x"$enablestring" = xdisable; then
5315             if test $wxUSE_DEBUG_GDB = yes; then
5316               result=no
5317             else
5318               result=yes
5319             fi
5320           else
5321             result=$wxUSE_DEBUG_GDB
5322           fi
5323
5324           { echo "$as_me:$LINENO: result: $result" >&5
5325 echo "${ECHO_T}$result" >&6; }
5326
5327
5328           enablestring=
5329           defaultval=
5330           if test -z "$defaultval"; then
5331               if test x"$enablestring" = xdisable; then
5332                   defaultval=yes
5333               else
5334                   defaultval=no
5335               fi
5336           fi
5337
5338           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5339 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5340           # Check whether --enable-debug_cntxt was given.
5341 if test "${enable_debug_cntxt+set}" = set; then
5342   enableval=$enable_debug_cntxt;
5343                           if test "$enableval" = yes; then
5344                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5345                           else
5346                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5347                           fi
5348                           cache=yes
5349
5350 else
5351
5352                           LINE=`grep "^wxUSE_DEBUG_CONTEXT=" ${wx_arg_cache_file}`
5353                           if test "x$LINE" != x ; then
5354                               eval "DEFAULT_$LINE"
5355                               cache=yes
5356                           else
5357                               cache=no
5358                           fi
5359
5360                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5361
5362 fi
5363
5364
5365           eval "$wx_cv_use_debug_cntxt"
5366           if test "x$cache" = xyes; then
5367             echo "wxUSE_DEBUG_CONTEXT=$wxUSE_DEBUG_CONTEXT" >> ${wx_arg_cache_file}.tmp
5368           fi
5369
5370           if test x"$enablestring" = xdisable; then
5371             if test $wxUSE_DEBUG_CONTEXT = yes; then
5372               result=no
5373             else
5374               result=yes
5375             fi
5376           else
5377             result=$wxUSE_DEBUG_CONTEXT
5378           fi
5379
5380           { echo "$as_me:$LINENO: result: $result" >&5
5381 echo "${ECHO_T}$result" >&6; }
5382
5383
5384           enablestring=
5385           defaultval=
5386           if test -z "$defaultval"; then
5387               if test x"$enablestring" = xdisable; then
5388                   defaultval=yes
5389               else
5390                   defaultval=no
5391               fi
5392           fi
5393
5394           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5395 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5396           # Check whether --enable-mem_tracing was given.
5397 if test "${enable_mem_tracing+set}" = set; then
5398   enableval=$enable_mem_tracing;
5399                           if test "$enableval" = yes; then
5400                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5401                           else
5402                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5403                           fi
5404                           cache=yes
5405
5406 else
5407
5408                           LINE=`grep "^wxUSE_MEM_TRACING=" ${wx_arg_cache_file}`
5409                           if test "x$LINE" != x ; then
5410                               eval "DEFAULT_$LINE"
5411                               cache=yes
5412                           else
5413                               cache=no
5414                           fi
5415
5416                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5417
5418 fi
5419
5420
5421           eval "$wx_cv_use_mem_tracing"
5422           if test "x$cache" = xyes; then
5423             echo "wxUSE_MEM_TRACING=$wxUSE_MEM_TRACING" >> ${wx_arg_cache_file}.tmp
5424           fi
5425
5426           if test x"$enablestring" = xdisable; then
5427             if test $wxUSE_MEM_TRACING = yes; then
5428               result=no
5429             else
5430               result=yes
5431             fi
5432           else
5433             result=$wxUSE_MEM_TRACING
5434           fi
5435
5436           { echo "$as_me:$LINENO: result: $result" >&5
5437 echo "${ECHO_T}$result" >&6; }
5438
5439
5440           enablestring=
5441           defaultval=
5442           if test -z "$defaultval"; then
5443               if test x"$enablestring" = xdisable; then
5444                   defaultval=yes
5445               else
5446                   defaultval=no
5447               fi
5448           fi
5449
5450           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5451 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5452           # Check whether --enable-profile was given.
5453 if test "${enable_profile+set}" = set; then
5454   enableval=$enable_profile;
5455                           if test "$enableval" = yes; then
5456                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5457                           else
5458                             wx_cv_use_profile='wxUSE_PROFILE=no'
5459                           fi
5460                           cache=yes
5461
5462 else
5463
5464                           LINE=`grep "^wxUSE_PROFILE=" ${wx_arg_cache_file}`
5465                           if test "x$LINE" != x ; then
5466                               eval "DEFAULT_$LINE"
5467                               cache=yes
5468                           else
5469                               cache=no
5470                           fi
5471
5472                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5473
5474 fi
5475
5476
5477           eval "$wx_cv_use_profile"
5478           if test "x$cache" = xyes; then
5479             echo "wxUSE_PROFILE=$wxUSE_PROFILE" >> ${wx_arg_cache_file}.tmp
5480           fi
5481
5482           if test x"$enablestring" = xdisable; then
5483             if test $wxUSE_PROFILE = yes; then
5484               result=no
5485             else
5486               result=yes
5487             fi
5488           else
5489             result=$wxUSE_PROFILE
5490           fi
5491
5492           { echo "$as_me:$LINENO: result: $result" >&5
5493 echo "${ECHO_T}$result" >&6; }
5494
5495
5496           enablestring=
5497           defaultval=
5498           if test -z "$defaultval"; then
5499               if test x"$enablestring" = xdisable; then
5500                   defaultval=yes
5501               else
5502                   defaultval=no
5503               fi
5504           fi
5505
5506           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5507 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5508           # Check whether --enable-no_rtti was given.
5509 if test "${enable_no_rtti+set}" = set; then
5510   enableval=$enable_no_rtti;
5511                           if test "$enableval" = yes; then
5512                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5513                           else
5514                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5515                           fi
5516                           cache=yes
5517
5518 else
5519
5520                           LINE=`grep "^wxUSE_NO_RTTI=" ${wx_arg_cache_file}`
5521                           if test "x$LINE" != x ; then
5522                               eval "DEFAULT_$LINE"
5523                               cache=yes
5524                           else
5525                               cache=no
5526                           fi
5527
5528                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5529
5530 fi
5531
5532
5533           eval "$wx_cv_use_no_rtti"
5534           if test "x$cache" = xyes; then
5535             echo "wxUSE_NO_RTTI=$wxUSE_NO_RTTI" >> ${wx_arg_cache_file}.tmp
5536           fi
5537
5538           if test x"$enablestring" = xdisable; then
5539             if test $wxUSE_NO_RTTI = yes; then
5540               result=no
5541             else
5542               result=yes
5543             fi
5544           else
5545             result=$wxUSE_NO_RTTI
5546           fi
5547
5548           { echo "$as_me:$LINENO: result: $result" >&5
5549 echo "${ECHO_T}$result" >&6; }
5550
5551
5552           enablestring=
5553           defaultval=
5554           if test -z "$defaultval"; then
5555               if test x"$enablestring" = xdisable; then
5556                   defaultval=yes
5557               else
5558                   defaultval=no
5559               fi
5560           fi
5561
5562           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5563 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5564           # Check whether --enable-no_exceptions was given.
5565 if test "${enable_no_exceptions+set}" = set; then
5566   enableval=$enable_no_exceptions;
5567                           if test "$enableval" = yes; then
5568                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5569                           else
5570                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5571                           fi
5572                           cache=yes
5573
5574 else
5575
5576                           LINE=`grep "^wxUSE_NO_EXCEPTIONS=" ${wx_arg_cache_file}`
5577                           if test "x$LINE" != x ; then
5578                               eval "DEFAULT_$LINE"
5579                               cache=yes
5580                           else
5581                               cache=no
5582                           fi
5583
5584                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5585
5586 fi
5587
5588
5589           eval "$wx_cv_use_no_exceptions"
5590           if test "x$cache" = xyes; then
5591             echo "wxUSE_NO_EXCEPTIONS=$wxUSE_NO_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
5592           fi
5593
5594           if test x"$enablestring" = xdisable; then
5595             if test $wxUSE_NO_EXCEPTIONS = yes; then
5596               result=no
5597             else
5598               result=yes
5599             fi
5600           else
5601             result=$wxUSE_NO_EXCEPTIONS
5602           fi
5603
5604           { echo "$as_me:$LINENO: result: $result" >&5
5605 echo "${ECHO_T}$result" >&6; }
5606
5607
5608           enablestring=
5609           defaultval=
5610           if test -z "$defaultval"; then
5611               if test x"$enablestring" = xdisable; then
5612                   defaultval=yes
5613               else
5614                   defaultval=no
5615               fi
5616           fi
5617
5618           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5619 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5620           # Check whether --enable-permissive was given.
5621 if test "${enable_permissive+set}" = set; then
5622   enableval=$enable_permissive;
5623                           if test "$enableval" = yes; then
5624                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5625                           else
5626                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5627                           fi
5628                           cache=yes
5629
5630 else
5631
5632                           LINE=`grep "^wxUSE_PERMISSIVE=" ${wx_arg_cache_file}`
5633                           if test "x$LINE" != x ; then
5634                               eval "DEFAULT_$LINE"
5635                               cache=yes
5636                           else
5637                               cache=no
5638                           fi
5639
5640                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5641
5642 fi
5643
5644
5645           eval "$wx_cv_use_permissive"
5646           if test "x$cache" = xyes; then
5647             echo "wxUSE_PERMISSIVE=$wxUSE_PERMISSIVE" >> ${wx_arg_cache_file}.tmp
5648           fi
5649
5650           if test x"$enablestring" = xdisable; then
5651             if test $wxUSE_PERMISSIVE = yes; then
5652               result=no
5653             else
5654               result=yes
5655             fi
5656           else
5657             result=$wxUSE_PERMISSIVE
5658           fi
5659
5660           { echo "$as_me:$LINENO: result: $result" >&5
5661 echo "${ECHO_T}$result" >&6; }
5662
5663
5664           enablestring=
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           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5675 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5676           # Check whether --enable-no_deps was given.
5677 if test "${enable_no_deps+set}" = set; then
5678   enableval=$enable_no_deps;
5679                           if test "$enableval" = yes; then
5680                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5681                           else
5682                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5683                           fi
5684                           cache=yes
5685
5686 else
5687
5688                           LINE=`grep "^wxUSE_NO_DEPS=" ${wx_arg_cache_file}`
5689                           if test "x$LINE" != x ; then
5690                               eval "DEFAULT_$LINE"
5691                               cache=yes
5692                           else
5693                               cache=no
5694                           fi
5695
5696                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5697
5698 fi
5699
5700
5701           eval "$wx_cv_use_no_deps"
5702           if test "x$cache" = xyes; then
5703             echo "wxUSE_NO_DEPS=$wxUSE_NO_DEPS" >> ${wx_arg_cache_file}.tmp
5704           fi
5705
5706           if test x"$enablestring" = xdisable; then
5707             if test $wxUSE_NO_DEPS = yes; then
5708               result=no
5709             else
5710               result=yes
5711             fi
5712           else
5713             result=$wxUSE_NO_DEPS
5714           fi
5715
5716           { echo "$as_me:$LINENO: result: $result" >&5
5717 echo "${ECHO_T}$result" >&6; }
5718
5719
5720           enablestring=disable
5721           defaultval=
5722           if test -z "$defaultval"; then
5723               if test x"$enablestring" = xdisable; then
5724                   defaultval=yes
5725               else
5726                   defaultval=no
5727               fi
5728           fi
5729
5730           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5731 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5732           # Check whether --enable-vararg_macros was given.
5733 if test "${enable_vararg_macros+set}" = set; then
5734   enableval=$enable_vararg_macros;
5735                           if test "$enableval" = yes; then
5736                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5737                           else
5738                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5739                           fi
5740                           cache=yes
5741
5742 else
5743
5744                           LINE=`grep "^wxUSE_VARARG_MACROS=" ${wx_arg_cache_file}`
5745                           if test "x$LINE" != x ; then
5746                               eval "DEFAULT_$LINE"
5747                               cache=yes
5748                           else
5749                               cache=no
5750                           fi
5751
5752                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5753
5754 fi
5755
5756
5757           eval "$wx_cv_use_vararg_macros"
5758           if test "x$cache" = xyes; then
5759             echo "wxUSE_VARARG_MACROS=$wxUSE_VARARG_MACROS" >> ${wx_arg_cache_file}.tmp
5760           fi
5761
5762           if test x"$enablestring" = xdisable; then
5763             if test $wxUSE_VARARG_MACROS = yes; then
5764               result=no
5765             else
5766               result=yes
5767             fi
5768           else
5769             result=$wxUSE_VARARG_MACROS
5770           fi
5771
5772           { echo "$as_me:$LINENO: result: $result" >&5
5773 echo "${ECHO_T}$result" >&6; }
5774
5775
5776           enablestring=
5777           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5778 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5779           # Check whether --enable-universal_binary was given.
5780 if test "${enable_universal_binary+set}" = set; then
5781   enableval=$enable_universal_binary;
5782                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5783                           cache=yes
5784
5785 else
5786
5787                           LINE=`grep "^wxUSE_UNIVERSAL_BINARY=" ${wx_arg_cache_file}`
5788                           if test "x$LINE" != x ; then
5789                             eval "DEFAULT_$LINE"
5790                             cache=yes
5791                           else
5792                             cache=no
5793                           fi
5794
5795                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5796
5797 fi
5798
5799
5800           eval "$wx_cv_use_universal_binary"
5801           if test "x$cache" = xyes; then
5802             echo "wxUSE_UNIVERSAL_BINARY=$wxUSE_UNIVERSAL_BINARY" >> ${wx_arg_cache_file}.tmp
5803           fi
5804
5805           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5806 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5807
5808
5809
5810           enablestring=
5811           defaultval=
5812           if test -z "$defaultval"; then
5813               if test x"$enablestring" = xdisable; then
5814                   defaultval=yes
5815               else
5816                   defaultval=no
5817               fi
5818           fi
5819
5820           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5821 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5822           # Check whether --enable-compat26 was given.
5823 if test "${enable_compat26+set}" = set; then
5824   enableval=$enable_compat26;
5825                           if test "$enableval" = yes; then
5826                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5827                           else
5828                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5829                           fi
5830                           cache=yes
5831
5832 else
5833
5834                           LINE=`grep "^WXWIN_COMPATIBILITY_2_6=" ${wx_arg_cache_file}`
5835                           if test "x$LINE" != x ; then
5836                               eval "DEFAULT_$LINE"
5837                               cache=yes
5838                           else
5839                               cache=no
5840                           fi
5841
5842                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5843
5844 fi
5845
5846
5847           eval "$wx_cv_use_compat26"
5848           if test "x$cache" = xyes; then
5849             echo "WXWIN_COMPATIBILITY_2_6=$WXWIN_COMPATIBILITY_2_6" >> ${wx_arg_cache_file}.tmp
5850           fi
5851
5852           if test x"$enablestring" = xdisable; then
5853             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5854               result=no
5855             else
5856               result=yes
5857             fi
5858           else
5859             result=$WXWIN_COMPATIBILITY_2_6
5860           fi
5861
5862           { echo "$as_me:$LINENO: result: $result" >&5
5863 echo "${ECHO_T}$result" >&6; }
5864
5865
5866           enablestring=disable
5867           defaultval=
5868           if test -z "$defaultval"; then
5869               if test x"$enablestring" = xdisable; then
5870                   defaultval=yes
5871               else
5872                   defaultval=no
5873               fi
5874           fi
5875
5876           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5877 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5878           # Check whether --enable-compat28 was given.
5879 if test "${enable_compat28+set}" = set; then
5880   enableval=$enable_compat28;
5881                           if test "$enableval" = yes; then
5882                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5883                           else
5884                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5885                           fi
5886                           cache=yes
5887
5888 else
5889
5890                           LINE=`grep "^WXWIN_COMPATIBILITY_2_8=" ${wx_arg_cache_file}`
5891                           if test "x$LINE" != x ; then
5892                               eval "DEFAULT_$LINE"
5893                               cache=yes
5894                           else
5895                               cache=no
5896                           fi
5897
5898                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5899
5900 fi
5901
5902
5903           eval "$wx_cv_use_compat28"
5904           if test "x$cache" = xyes; then
5905             echo "WXWIN_COMPATIBILITY_2_8=$WXWIN_COMPATIBILITY_2_8" >> ${wx_arg_cache_file}.tmp
5906           fi
5907
5908           if test x"$enablestring" = xdisable; then
5909             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5910               result=no
5911             else
5912               result=yes
5913             fi
5914           else
5915             result=$WXWIN_COMPATIBILITY_2_8
5916           fi
5917
5918           { echo "$as_me:$LINENO: result: $result" >&5
5919 echo "${ECHO_T}$result" >&6; }
5920
5921
5922
5923           enablestring=disable
5924           defaultval=
5925           if test -z "$defaultval"; then
5926               if test x"$enablestring" = xdisable; then
5927                   defaultval=yes
5928               else
5929                   defaultval=no
5930               fi
5931           fi
5932
5933           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5934 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5935           # Check whether --enable-rpath was given.
5936 if test "${enable_rpath+set}" = set; then
5937   enableval=$enable_rpath;
5938                           if test "$enableval" = yes; then
5939                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5940                           else
5941                             wx_cv_use_rpath='wxUSE_RPATH=no'
5942                           fi
5943                           cache=yes
5944
5945 else
5946
5947                           LINE=`grep "^wxUSE_RPATH=" ${wx_arg_cache_file}`
5948                           if test "x$LINE" != x ; then
5949                               eval "DEFAULT_$LINE"
5950                               cache=yes
5951                           else
5952                               cache=no
5953                           fi
5954
5955                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5956
5957 fi
5958
5959
5960           eval "$wx_cv_use_rpath"
5961           if test "x$cache" = xyes; then
5962             echo "wxUSE_RPATH=$wxUSE_RPATH" >> ${wx_arg_cache_file}.tmp
5963           fi
5964
5965           if test x"$enablestring" = xdisable; then
5966             if test $wxUSE_RPATH = yes; then
5967               result=no
5968             else
5969               result=yes
5970             fi
5971           else
5972             result=$wxUSE_RPATH
5973           fi
5974
5975           { echo "$as_me:$LINENO: result: $result" >&5
5976 echo "${ECHO_T}$result" >&6; }
5977
5978
5979
5980           enablestring=
5981           defaultval=
5982           if test -z "$defaultval"; then
5983               if test x"$enablestring" = xdisable; then
5984                   defaultval=yes
5985               else
5986                   defaultval=no
5987               fi
5988           fi
5989
5990           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5991 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5992           # Check whether --enable-objc_uniquifying was given.
5993 if test "${enable_objc_uniquifying+set}" = set; then
5994   enableval=$enable_objc_uniquifying;
5995                           if test "$enableval" = yes; then
5996                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5997                           else
5998                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5999                           fi
6000                           cache=yes
6001
6002 else
6003
6004                           LINE=`grep "^wxUSE_OBJC_UNIQUIFYING=" ${wx_arg_cache_file}`
6005                           if test "x$LINE" != x ; then
6006                               eval "DEFAULT_$LINE"
6007                               cache=yes
6008                           else
6009                               cache=no
6010                           fi
6011
6012                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
6013
6014 fi
6015
6016
6017           eval "$wx_cv_use_objc_uniquifying"
6018           if test "x$cache" = xyes; then
6019             echo "wxUSE_OBJC_UNIQUIFYING=$wxUSE_OBJC_UNIQUIFYING" >> ${wx_arg_cache_file}.tmp
6020           fi
6021
6022           if test x"$enablestring" = xdisable; then
6023             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
6024               result=no
6025             else
6026               result=yes
6027             fi
6028           else
6029             result=$wxUSE_OBJC_UNIQUIFYING
6030           fi
6031
6032           { echo "$as_me:$LINENO: result: $result" >&5
6033 echo "${ECHO_T}$result" >&6; }
6034
6035
6036
6037           enablestring=disable
6038           defaultval=
6039           if test -z "$defaultval"; then
6040               if test x"$enablestring" = xdisable; then
6041                   defaultval=yes
6042               else
6043                   defaultval=no
6044               fi
6045           fi
6046
6047           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
6048 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
6049           # Check whether --enable-visibility was given.
6050 if test "${enable_visibility+set}" = set; then
6051   enableval=$enable_visibility;
6052                           if test "$enableval" = yes; then
6053                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
6054                           else
6055                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
6056                           fi
6057                           cache=yes
6058
6059 else
6060
6061                           LINE=`grep "^wxUSE_VISIBILITY=" ${wx_arg_cache_file}`
6062                           if test "x$LINE" != x ; then
6063                               eval "DEFAULT_$LINE"
6064                               cache=yes
6065                           else
6066                               cache=no
6067                           fi
6068
6069                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
6070
6071 fi
6072
6073
6074           eval "$wx_cv_use_visibility"
6075           if test "x$cache" = xyes; then
6076             echo "wxUSE_VISIBILITY=$wxUSE_VISIBILITY" >> ${wx_arg_cache_file}.tmp
6077           fi
6078
6079           if test x"$enablestring" = xdisable; then
6080             if test $wxUSE_VISIBILITY = yes; then
6081               result=no
6082             else
6083               result=yes
6084             fi
6085           else
6086             result=$wxUSE_VISIBILITY
6087           fi
6088
6089           { echo "$as_me:$LINENO: result: $result" >&5
6090 echo "${ECHO_T}$result" >&6; }
6091
6092
6093
6094
6095           enablestring=
6096           defaultval=$wxUSE_ALL_FEATURES
6097           if test -z "$defaultval"; then
6098               if test x"$enablestring" = xdisable; then
6099                   defaultval=yes
6100               else
6101                   defaultval=no
6102               fi
6103           fi
6104
6105           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
6106 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
6107           # Check whether --enable-intl was given.
6108 if test "${enable_intl+set}" = set; then
6109   enableval=$enable_intl;
6110                           if test "$enableval" = yes; then
6111                             wx_cv_use_intl='wxUSE_INTL=yes'
6112                           else
6113                             wx_cv_use_intl='wxUSE_INTL=no'
6114                           fi
6115                           cache=yes
6116
6117 else
6118
6119                           LINE=`grep "^wxUSE_INTL=" ${wx_arg_cache_file}`
6120                           if test "x$LINE" != x ; then
6121                               eval "DEFAULT_$LINE"
6122                               cache=yes
6123                           else
6124                               cache=no
6125                           fi
6126
6127                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
6128
6129 fi
6130
6131
6132           eval "$wx_cv_use_intl"
6133           if test "x$cache" = xyes; then
6134             echo "wxUSE_INTL=$wxUSE_INTL" >> ${wx_arg_cache_file}.tmp
6135           fi
6136
6137           if test x"$enablestring" = xdisable; then
6138             if test $wxUSE_INTL = yes; then
6139               result=no
6140             else
6141               result=yes
6142             fi
6143           else
6144             result=$wxUSE_INTL
6145           fi
6146
6147           { echo "$as_me:$LINENO: result: $result" >&5
6148 echo "${ECHO_T}$result" >&6; }
6149
6150
6151           enablestring=
6152           defaultval=$wxUSE_ALL_FEATURES
6153           if test -z "$defaultval"; then
6154               if test x"$enablestring" = xdisable; then
6155                   defaultval=yes
6156               else
6157                   defaultval=no
6158               fi
6159           fi
6160
6161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
6162 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
6163           # Check whether --enable-config was given.
6164 if test "${enable_config+set}" = set; then
6165   enableval=$enable_config;
6166                           if test "$enableval" = yes; then
6167                             wx_cv_use_config='wxUSE_CONFIG=yes'
6168                           else
6169                             wx_cv_use_config='wxUSE_CONFIG=no'
6170                           fi
6171                           cache=yes
6172
6173 else
6174
6175                           LINE=`grep "^wxUSE_CONFIG=" ${wx_arg_cache_file}`
6176                           if test "x$LINE" != x ; then
6177                               eval "DEFAULT_$LINE"
6178                               cache=yes
6179                           else
6180                               cache=no
6181                           fi
6182
6183                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
6184
6185 fi
6186
6187
6188           eval "$wx_cv_use_config"
6189           if test "x$cache" = xyes; then
6190             echo "wxUSE_CONFIG=$wxUSE_CONFIG" >> ${wx_arg_cache_file}.tmp
6191           fi
6192
6193           if test x"$enablestring" = xdisable; then
6194             if test $wxUSE_CONFIG = yes; then
6195               result=no
6196             else
6197               result=yes
6198             fi
6199           else
6200             result=$wxUSE_CONFIG
6201           fi
6202
6203           { echo "$as_me:$LINENO: result: $result" >&5
6204 echo "${ECHO_T}$result" >&6; }
6205
6206
6207
6208           enablestring=
6209           defaultval=$wxUSE_ALL_FEATURES
6210           if test -z "$defaultval"; then
6211               if test x"$enablestring" = xdisable; then
6212                   defaultval=yes
6213               else
6214                   defaultval=no
6215               fi
6216           fi
6217
6218           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6219 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
6220           # Check whether --enable-protocols was given.
6221 if test "${enable_protocols+set}" = set; then
6222   enableval=$enable_protocols;
6223                           if test "$enableval" = yes; then
6224                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
6225                           else
6226                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
6227                           fi
6228                           cache=yes
6229
6230 else
6231
6232                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
6233                           if test "x$LINE" != x ; then
6234                               eval "DEFAULT_$LINE"
6235                               cache=yes
6236                           else
6237                               cache=no
6238                           fi
6239
6240                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
6241
6242 fi
6243
6244
6245           eval "$wx_cv_use_protocols"
6246           if test "x$cache" = xyes; then
6247             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
6248           fi
6249
6250           if test x"$enablestring" = xdisable; then
6251             if test $wxUSE_PROTOCOL = yes; then
6252               result=no
6253             else
6254               result=yes
6255             fi
6256           else
6257             result=$wxUSE_PROTOCOL
6258           fi
6259
6260           { echo "$as_me:$LINENO: result: $result" >&5
6261 echo "${ECHO_T}$result" >&6; }
6262
6263
6264           enablestring=
6265           defaultval=$wxUSE_ALL_FEATURES
6266           if test -z "$defaultval"; then
6267               if test x"$enablestring" = xdisable; then
6268                   defaultval=yes
6269               else
6270                   defaultval=no
6271               fi
6272           fi
6273
6274           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6275 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6276           # Check whether --enable-ftp was given.
6277 if test "${enable_ftp+set}" = set; then
6278   enableval=$enable_ftp;
6279                           if test "$enableval" = yes; then
6280                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6281                           else
6282                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6283                           fi
6284                           cache=yes
6285
6286 else
6287
6288                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
6289                           if test "x$LINE" != x ; then
6290                               eval "DEFAULT_$LINE"
6291                               cache=yes
6292                           else
6293                               cache=no
6294                           fi
6295
6296                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6297
6298 fi
6299
6300
6301           eval "$wx_cv_use_ftp"
6302           if test "x$cache" = xyes; then
6303             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
6304           fi
6305
6306           if test x"$enablestring" = xdisable; then
6307             if test $wxUSE_PROTOCOL_FTP = yes; then
6308               result=no
6309             else
6310               result=yes
6311             fi
6312           else
6313             result=$wxUSE_PROTOCOL_FTP
6314           fi
6315
6316           { echo "$as_me:$LINENO: result: $result" >&5
6317 echo "${ECHO_T}$result" >&6; }
6318
6319
6320           enablestring=
6321           defaultval=$wxUSE_ALL_FEATURES
6322           if test -z "$defaultval"; then
6323               if test x"$enablestring" = xdisable; then
6324                   defaultval=yes
6325               else
6326                   defaultval=no
6327               fi
6328           fi
6329
6330           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6331 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6332           # Check whether --enable-http was given.
6333 if test "${enable_http+set}" = set; then
6334   enableval=$enable_http;
6335                           if test "$enableval" = yes; then
6336                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6337                           else
6338                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6339                           fi
6340                           cache=yes
6341
6342 else
6343
6344                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
6345                           if test "x$LINE" != x ; then
6346                               eval "DEFAULT_$LINE"
6347                               cache=yes
6348                           else
6349                               cache=no
6350                           fi
6351
6352                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6353
6354 fi
6355
6356
6357           eval "$wx_cv_use_http"
6358           if test "x$cache" = xyes; then
6359             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
6360           fi
6361
6362           if test x"$enablestring" = xdisable; then
6363             if test $wxUSE_PROTOCOL_HTTP = yes; then
6364               result=no
6365             else
6366               result=yes
6367             fi
6368           else
6369             result=$wxUSE_PROTOCOL_HTTP
6370           fi
6371
6372           { echo "$as_me:$LINENO: result: $result" >&5
6373 echo "${ECHO_T}$result" >&6; }
6374
6375
6376           enablestring=
6377           defaultval=$wxUSE_ALL_FEATURES
6378           if test -z "$defaultval"; then
6379               if test x"$enablestring" = xdisable; then
6380                   defaultval=yes
6381               else
6382                   defaultval=no
6383               fi
6384           fi
6385
6386           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6387 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6388           # Check whether --enable-fileproto was given.
6389 if test "${enable_fileproto+set}" = set; then
6390   enableval=$enable_fileproto;
6391                           if test "$enableval" = yes; then
6392                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6393                           else
6394                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6395                           fi
6396                           cache=yes
6397
6398 else
6399
6400                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
6401                           if test "x$LINE" != x ; then
6402                               eval "DEFAULT_$LINE"
6403                               cache=yes
6404                           else
6405                               cache=no
6406                           fi
6407
6408                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6409
6410 fi
6411
6412
6413           eval "$wx_cv_use_fileproto"
6414           if test "x$cache" = xyes; then
6415             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
6416           fi
6417
6418           if test x"$enablestring" = xdisable; then
6419             if test $wxUSE_PROTOCOL_FILE = yes; then
6420               result=no
6421             else
6422               result=yes
6423             fi
6424           else
6425             result=$wxUSE_PROTOCOL_FILE
6426           fi
6427
6428           { echo "$as_me:$LINENO: result: $result" >&5
6429 echo "${ECHO_T}$result" >&6; }
6430
6431
6432           enablestring=
6433           defaultval=$wxUSE_ALL_FEATURES
6434           if test -z "$defaultval"; then
6435               if test x"$enablestring" = xdisable; then
6436                   defaultval=yes
6437               else
6438                   defaultval=no
6439               fi
6440           fi
6441
6442           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6443 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6444           # Check whether --enable-sockets was given.
6445 if test "${enable_sockets+set}" = set; then
6446   enableval=$enable_sockets;
6447                           if test "$enableval" = yes; then
6448                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6449                           else
6450                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6451                           fi
6452                           cache=yes
6453
6454 else
6455
6456                           LINE=`grep "^wxUSE_SOCKETS=" ${wx_arg_cache_file}`
6457                           if test "x$LINE" != x ; then
6458                               eval "DEFAULT_$LINE"
6459                               cache=yes
6460                           else
6461                               cache=no
6462                           fi
6463
6464                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6465
6466 fi
6467
6468
6469           eval "$wx_cv_use_sockets"
6470           if test "x$cache" = xyes; then
6471             echo "wxUSE_SOCKETS=$wxUSE_SOCKETS" >> ${wx_arg_cache_file}.tmp
6472           fi
6473
6474           if test x"$enablestring" = xdisable; then
6475             if test $wxUSE_SOCKETS = yes; then
6476               result=no
6477             else
6478               result=yes
6479             fi
6480           else
6481             result=$wxUSE_SOCKETS
6482           fi
6483
6484           { echo "$as_me:$LINENO: result: $result" >&5
6485 echo "${ECHO_T}$result" >&6; }
6486
6487
6488           enablestring=
6489           defaultval=$wxUSE_ALL_FEATURES
6490           if test -z "$defaultval"; then
6491               if test x"$enablestring" = xdisable; then
6492                   defaultval=yes
6493               else
6494                   defaultval=no
6495               fi
6496           fi
6497
6498           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6499 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6500           # Check whether --enable-ole was given.
6501 if test "${enable_ole+set}" = set; then
6502   enableval=$enable_ole;
6503                           if test "$enableval" = yes; then
6504                             wx_cv_use_ole='wxUSE_OLE=yes'
6505                           else
6506                             wx_cv_use_ole='wxUSE_OLE=no'
6507                           fi
6508                           cache=yes
6509
6510 else
6511
6512                           LINE=`grep "^wxUSE_OLE=" ${wx_arg_cache_file}`
6513                           if test "x$LINE" != x ; then
6514                               eval "DEFAULT_$LINE"
6515                               cache=yes
6516                           else
6517                               cache=no
6518                           fi
6519
6520                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6521
6522 fi
6523
6524
6525           eval "$wx_cv_use_ole"
6526           if test "x$cache" = xyes; then
6527             echo "wxUSE_OLE=$wxUSE_OLE" >> ${wx_arg_cache_file}.tmp
6528           fi
6529
6530           if test x"$enablestring" = xdisable; then
6531             if test $wxUSE_OLE = yes; then
6532               result=no
6533             else
6534               result=yes
6535             fi
6536           else
6537             result=$wxUSE_OLE
6538           fi
6539
6540           { echo "$as_me:$LINENO: result: $result" >&5
6541 echo "${ECHO_T}$result" >&6; }
6542
6543
6544           enablestring=
6545           defaultval=$wxUSE_ALL_FEATURES
6546           if test -z "$defaultval"; then
6547               if test x"$enablestring" = xdisable; then
6548                   defaultval=yes
6549               else
6550                   defaultval=no
6551               fi
6552           fi
6553
6554           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6555 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6556           # Check whether --enable-dataobj was given.
6557 if test "${enable_dataobj+set}" = set; then
6558   enableval=$enable_dataobj;
6559                           if test "$enableval" = yes; then
6560                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6561                           else
6562                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6563                           fi
6564                           cache=yes
6565
6566 else
6567
6568                           LINE=`grep "^wxUSE_DATAOBJ=" ${wx_arg_cache_file}`
6569                           if test "x$LINE" != x ; then
6570                               eval "DEFAULT_$LINE"
6571                               cache=yes
6572                           else
6573                               cache=no
6574                           fi
6575
6576                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6577
6578 fi
6579
6580
6581           eval "$wx_cv_use_dataobj"
6582           if test "x$cache" = xyes; then
6583             echo "wxUSE_DATAOBJ=$wxUSE_DATAOBJ" >> ${wx_arg_cache_file}.tmp
6584           fi
6585
6586           if test x"$enablestring" = xdisable; then
6587             if test $wxUSE_DATAOBJ = yes; then
6588               result=no
6589             else
6590               result=yes
6591             fi
6592           else
6593             result=$wxUSE_DATAOBJ
6594           fi
6595
6596           { echo "$as_me:$LINENO: result: $result" >&5
6597 echo "${ECHO_T}$result" >&6; }
6598
6599
6600
6601           enablestring=
6602           defaultval=$wxUSE_ALL_FEATURES
6603           if test -z "$defaultval"; then
6604               if test x"$enablestring" = xdisable; then
6605                   defaultval=yes
6606               else
6607                   defaultval=no
6608               fi
6609           fi
6610
6611           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6612 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6613           # Check whether --enable-ipc was given.
6614 if test "${enable_ipc+set}" = set; then
6615   enableval=$enable_ipc;
6616                           if test "$enableval" = yes; then
6617                             wx_cv_use_ipc='wxUSE_IPC=yes'
6618                           else
6619                             wx_cv_use_ipc='wxUSE_IPC=no'
6620                           fi
6621                           cache=yes
6622
6623 else
6624
6625                           LINE=`grep "^wxUSE_IPC=" ${wx_arg_cache_file}`
6626                           if test "x$LINE" != x ; then
6627                               eval "DEFAULT_$LINE"
6628                               cache=yes
6629                           else
6630                               cache=no
6631                           fi
6632
6633                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6634
6635 fi
6636
6637
6638           eval "$wx_cv_use_ipc"
6639           if test "x$cache" = xyes; then
6640             echo "wxUSE_IPC=$wxUSE_IPC" >> ${wx_arg_cache_file}.tmp
6641           fi
6642
6643           if test x"$enablestring" = xdisable; then
6644             if test $wxUSE_IPC = yes; then
6645               result=no
6646             else
6647               result=yes
6648             fi
6649           else
6650             result=$wxUSE_IPC
6651           fi
6652
6653           { echo "$as_me:$LINENO: result: $result" >&5
6654 echo "${ECHO_T}$result" >&6; }
6655
6656
6657
6658           enablestring=
6659           defaultval=$wxUSE_ALL_FEATURES
6660           if test -z "$defaultval"; then
6661               if test x"$enablestring" = xdisable; then
6662                   defaultval=yes
6663               else
6664                   defaultval=no
6665               fi
6666           fi
6667
6668           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6669 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6670           # Check whether --enable-baseevtloop was given.
6671 if test "${enable_baseevtloop+set}" = set; then
6672   enableval=$enable_baseevtloop;
6673                           if test "$enableval" = yes; then
6674                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6675                           else
6676                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6677                           fi
6678                           cache=yes
6679
6680 else
6681
6682                           LINE=`grep "^wxUSE_CONSOLE_EVENTLOOP=" ${wx_arg_cache_file}`
6683                           if test "x$LINE" != x ; then
6684                               eval "DEFAULT_$LINE"
6685                               cache=yes
6686                           else
6687                               cache=no
6688                           fi
6689
6690                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6691
6692 fi
6693
6694
6695           eval "$wx_cv_use_baseevtloop"
6696           if test "x$cache" = xyes; then
6697             echo "wxUSE_CONSOLE_EVENTLOOP=$wxUSE_CONSOLE_EVENTLOOP" >> ${wx_arg_cache_file}.tmp
6698           fi
6699
6700           if test x"$enablestring" = xdisable; then
6701             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6702               result=no
6703             else
6704               result=yes
6705             fi
6706           else
6707             result=$wxUSE_CONSOLE_EVENTLOOP
6708           fi
6709
6710           { echo "$as_me:$LINENO: result: $result" >&5
6711 echo "${ECHO_T}$result" >&6; }
6712
6713
6714           enablestring=
6715           defaultval=$wxUSE_ALL_FEATURES
6716           if test -z "$defaultval"; then
6717               if test x"$enablestring" = xdisable; then
6718                   defaultval=yes
6719               else
6720                   defaultval=no
6721               fi
6722           fi
6723
6724           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6725 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6726           # Check whether --enable-epollloop was given.
6727 if test "${enable_epollloop+set}" = set; then
6728   enableval=$enable_epollloop;
6729                           if test "$enableval" = yes; then
6730                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6731                           else
6732                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6733                           fi
6734                           cache=yes
6735
6736 else
6737
6738                           LINE=`grep "^wxUSE_EPOLL_DISPATCHER=" ${wx_arg_cache_file}`
6739                           if test "x$LINE" != x ; then
6740                               eval "DEFAULT_$LINE"
6741                               cache=yes
6742                           else
6743                               cache=no
6744                           fi
6745
6746                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6747
6748 fi
6749
6750
6751           eval "$wx_cv_use_epollloop"
6752           if test "x$cache" = xyes; then
6753             echo "wxUSE_EPOLL_DISPATCHER=$wxUSE_EPOLL_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6754           fi
6755
6756           if test x"$enablestring" = xdisable; then
6757             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6758               result=no
6759             else
6760               result=yes
6761             fi
6762           else
6763             result=$wxUSE_EPOLL_DISPATCHER
6764           fi
6765
6766           { echo "$as_me:$LINENO: result: $result" >&5
6767 echo "${ECHO_T}$result" >&6; }
6768
6769
6770           enablestring=
6771           defaultval=$wxUSE_ALL_FEATURES
6772           if test -z "$defaultval"; then
6773               if test x"$enablestring" = xdisable; then
6774                   defaultval=yes
6775               else
6776                   defaultval=no
6777               fi
6778           fi
6779
6780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6781 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6782           # Check whether --enable-selectloop was given.
6783 if test "${enable_selectloop+set}" = set; then
6784   enableval=$enable_selectloop;
6785                           if test "$enableval" = yes; then
6786                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6787                           else
6788                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6789                           fi
6790                           cache=yes
6791
6792 else
6793
6794                           LINE=`grep "^wxUSE_SELECT_DISPATCHER=" ${wx_arg_cache_file}`
6795                           if test "x$LINE" != x ; then
6796                               eval "DEFAULT_$LINE"
6797                               cache=yes
6798                           else
6799                               cache=no
6800                           fi
6801
6802                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6803
6804 fi
6805
6806
6807           eval "$wx_cv_use_selectloop"
6808           if test "x$cache" = xyes; then
6809             echo "wxUSE_SELECT_DISPATCHER=$wxUSE_SELECT_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6810           fi
6811
6812           if test x"$enablestring" = xdisable; then
6813             if test $wxUSE_SELECT_DISPATCHER = yes; then
6814               result=no
6815             else
6816               result=yes
6817             fi
6818           else
6819             result=$wxUSE_SELECT_DISPATCHER
6820           fi
6821
6822           { echo "$as_me:$LINENO: result: $result" >&5
6823 echo "${ECHO_T}$result" >&6; }
6824
6825
6826
6827           enablestring=
6828           defaultval=$wxUSE_ALL_FEATURES
6829           if test -z "$defaultval"; then
6830               if test x"$enablestring" = xdisable; then
6831                   defaultval=yes
6832               else
6833                   defaultval=no
6834               fi
6835           fi
6836
6837           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6838 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6839           # Check whether --enable-apple_ieee was given.
6840 if test "${enable_apple_ieee+set}" = set; then
6841   enableval=$enable_apple_ieee;
6842                           if test "$enableval" = yes; then
6843                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6844                           else
6845                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6846                           fi
6847                           cache=yes
6848
6849 else
6850
6851                           LINE=`grep "^wxUSE_APPLE_IEEE=" ${wx_arg_cache_file}`
6852                           if test "x$LINE" != x ; then
6853                               eval "DEFAULT_$LINE"
6854                               cache=yes
6855                           else
6856                               cache=no
6857                           fi
6858
6859                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6860
6861 fi
6862
6863
6864           eval "$wx_cv_use_apple_ieee"
6865           if test "x$cache" = xyes; then
6866             echo "wxUSE_APPLE_IEEE=$wxUSE_APPLE_IEEE" >> ${wx_arg_cache_file}.tmp
6867           fi
6868
6869           if test x"$enablestring" = xdisable; then
6870             if test $wxUSE_APPLE_IEEE = yes; then
6871               result=no
6872             else
6873               result=yes
6874             fi
6875           else
6876             result=$wxUSE_APPLE_IEEE
6877           fi
6878
6879           { echo "$as_me:$LINENO: result: $result" >&5
6880 echo "${ECHO_T}$result" >&6; }
6881
6882
6883           enablestring=
6884           defaultval=$wxUSE_ALL_FEATURES
6885           if test -z "$defaultval"; then
6886               if test x"$enablestring" = xdisable; then
6887                   defaultval=yes
6888               else
6889                   defaultval=no
6890               fi
6891           fi
6892
6893           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6894 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6895           # Check whether --enable-arcstream was given.
6896 if test "${enable_arcstream+set}" = set; then
6897   enableval=$enable_arcstream;
6898                           if test "$enableval" = yes; then
6899                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6900                           else
6901                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6902                           fi
6903                           cache=yes
6904
6905 else
6906
6907                           LINE=`grep "^wxUSE_ARCHIVE_STREAMS=" ${wx_arg_cache_file}`
6908                           if test "x$LINE" != x ; then
6909                               eval "DEFAULT_$LINE"
6910                               cache=yes
6911                           else
6912                               cache=no
6913                           fi
6914
6915                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6916
6917 fi
6918
6919
6920           eval "$wx_cv_use_arcstream"
6921           if test "x$cache" = xyes; then
6922             echo "wxUSE_ARCHIVE_STREAMS=$wxUSE_ARCHIVE_STREAMS" >> ${wx_arg_cache_file}.tmp
6923           fi
6924
6925           if test x"$enablestring" = xdisable; then
6926             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6927               result=no
6928             else
6929               result=yes
6930             fi
6931           else
6932             result=$wxUSE_ARCHIVE_STREAMS
6933           fi
6934
6935           { echo "$as_me:$LINENO: result: $result" >&5
6936 echo "${ECHO_T}$result" >&6; }
6937
6938
6939           enablestring=
6940           defaultval=$wxUSE_ALL_FEATURES
6941           if test -z "$defaultval"; then
6942               if test x"$enablestring" = xdisable; then
6943                   defaultval=yes
6944               else
6945                   defaultval=no
6946               fi
6947           fi
6948
6949           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6950 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6951           # Check whether --enable-base64 was given.
6952 if test "${enable_base64+set}" = set; then
6953   enableval=$enable_base64;
6954                           if test "$enableval" = yes; then
6955                             wx_cv_use_base64='wxUSE_BASE64=yes'
6956                           else
6957                             wx_cv_use_base64='wxUSE_BASE64=no'
6958                           fi
6959                           cache=yes
6960
6961 else
6962
6963                           LINE=`grep "^wxUSE_BASE64=" ${wx_arg_cache_file}`
6964                           if test "x$LINE" != x ; then
6965                               eval "DEFAULT_$LINE"
6966                               cache=yes
6967                           else
6968                               cache=no
6969                           fi
6970
6971                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6972
6973 fi
6974
6975
6976           eval "$wx_cv_use_base64"
6977           if test "x$cache" = xyes; then
6978             echo "wxUSE_BASE64=$wxUSE_BASE64" >> ${wx_arg_cache_file}.tmp
6979           fi
6980
6981           if test x"$enablestring" = xdisable; then
6982             if test $wxUSE_BASE64 = yes; then
6983               result=no
6984             else
6985               result=yes
6986             fi
6987           else
6988             result=$wxUSE_BASE64
6989           fi
6990
6991           { echo "$as_me:$LINENO: result: $result" >&5
6992 echo "${ECHO_T}$result" >&6; }
6993
6994
6995           enablestring=
6996           defaultval=$wxUSE_ALL_FEATURES
6997           if test -z "$defaultval"; then
6998               if test x"$enablestring" = xdisable; then
6999                   defaultval=yes
7000               else
7001                   defaultval=no
7002               fi
7003           fi
7004
7005           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
7006 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
7007           # Check whether --enable-backtrace was given.
7008 if test "${enable_backtrace+set}" = set; then
7009   enableval=$enable_backtrace;
7010                           if test "$enableval" = yes; then
7011                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
7012                           else
7013                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
7014                           fi
7015                           cache=yes
7016
7017 else
7018
7019                           LINE=`grep "^wxUSE_STACKWALKER=" ${wx_arg_cache_file}`
7020                           if test "x$LINE" != x ; then
7021                               eval "DEFAULT_$LINE"
7022                               cache=yes
7023                           else
7024                               cache=no
7025                           fi
7026
7027                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
7028
7029 fi
7030
7031
7032           eval "$wx_cv_use_backtrace"
7033           if test "x$cache" = xyes; then
7034             echo "wxUSE_STACKWALKER=$wxUSE_STACKWALKER" >> ${wx_arg_cache_file}.tmp
7035           fi
7036
7037           if test x"$enablestring" = xdisable; then
7038             if test $wxUSE_STACKWALKER = yes; then
7039               result=no
7040             else
7041               result=yes
7042             fi
7043           else
7044             result=$wxUSE_STACKWALKER
7045           fi
7046
7047           { echo "$as_me:$LINENO: result: $result" >&5
7048 echo "${ECHO_T}$result" >&6; }
7049
7050
7051           enablestring=
7052           defaultval=$wxUSE_ALL_FEATURES
7053           if test -z "$defaultval"; then
7054               if test x"$enablestring" = xdisable; then
7055                   defaultval=yes
7056               else
7057                   defaultval=no
7058               fi
7059           fi
7060
7061           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
7062 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
7063           # Check whether --enable-catch_segvs was given.
7064 if test "${enable_catch_segvs+set}" = set; then
7065   enableval=$enable_catch_segvs;
7066                           if test "$enableval" = yes; then
7067                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
7068                           else
7069                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
7070                           fi
7071                           cache=yes
7072
7073 else
7074
7075                           LINE=`grep "^wxUSE_ON_FATAL_EXCEPTION=" ${wx_arg_cache_file}`
7076                           if test "x$LINE" != x ; then
7077                               eval "DEFAULT_$LINE"
7078                               cache=yes
7079                           else
7080                               cache=no
7081                           fi
7082
7083                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
7084
7085 fi
7086
7087
7088           eval "$wx_cv_use_catch_segvs"
7089           if test "x$cache" = xyes; then
7090             echo "wxUSE_ON_FATAL_EXCEPTION=$wxUSE_ON_FATAL_EXCEPTION" >> ${wx_arg_cache_file}.tmp
7091           fi
7092
7093           if test x"$enablestring" = xdisable; then
7094             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
7095               result=no
7096             else
7097               result=yes
7098             fi
7099           else
7100             result=$wxUSE_ON_FATAL_EXCEPTION
7101           fi
7102
7103           { echo "$as_me:$LINENO: result: $result" >&5
7104 echo "${ECHO_T}$result" >&6; }
7105
7106
7107           enablestring=
7108           defaultval=$wxUSE_ALL_FEATURES
7109           if test -z "$defaultval"; then
7110               if test x"$enablestring" = xdisable; then
7111                   defaultval=yes
7112               else
7113                   defaultval=no
7114               fi
7115           fi
7116
7117           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
7118 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
7119           # Check whether --enable-cmdline was given.
7120 if test "${enable_cmdline+set}" = set; then
7121   enableval=$enable_cmdline;
7122                           if test "$enableval" = yes; then
7123                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
7124                           else
7125                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
7126                           fi
7127                           cache=yes
7128
7129 else
7130
7131                           LINE=`grep "^wxUSE_CMDLINE_PARSER=" ${wx_arg_cache_file}`
7132                           if test "x$LINE" != x ; then
7133                               eval "DEFAULT_$LINE"
7134                               cache=yes
7135                           else
7136                               cache=no
7137                           fi
7138
7139                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
7140
7141 fi
7142
7143
7144           eval "$wx_cv_use_cmdline"
7145           if test "x$cache" = xyes; then
7146             echo "wxUSE_CMDLINE_PARSER=$wxUSE_CMDLINE_PARSER" >> ${wx_arg_cache_file}.tmp
7147           fi
7148
7149           if test x"$enablestring" = xdisable; then
7150             if test $wxUSE_CMDLINE_PARSER = yes; then
7151               result=no
7152             else
7153               result=yes
7154             fi
7155           else
7156             result=$wxUSE_CMDLINE_PARSER
7157           fi
7158
7159           { echo "$as_me:$LINENO: result: $result" >&5
7160 echo "${ECHO_T}$result" >&6; }
7161
7162
7163           enablestring=
7164           defaultval=$wxUSE_ALL_FEATURES
7165           if test -z "$defaultval"; then
7166               if test x"$enablestring" = xdisable; then
7167                   defaultval=yes
7168               else
7169                   defaultval=no
7170               fi
7171           fi
7172
7173           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
7174 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
7175           # Check whether --enable-datetime was given.
7176 if test "${enable_datetime+set}" = set; then
7177   enableval=$enable_datetime;
7178                           if test "$enableval" = yes; then
7179                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
7180                           else
7181                             wx_cv_use_datetime='wxUSE_DATETIME=no'
7182                           fi
7183                           cache=yes
7184
7185 else
7186
7187                           LINE=`grep "^wxUSE_DATETIME=" ${wx_arg_cache_file}`
7188                           if test "x$LINE" != x ; then
7189                               eval "DEFAULT_$LINE"
7190                               cache=yes
7191                           else
7192                               cache=no
7193                           fi
7194
7195                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
7196
7197 fi
7198
7199
7200           eval "$wx_cv_use_datetime"
7201           if test "x$cache" = xyes; then
7202             echo "wxUSE_DATETIME=$wxUSE_DATETIME" >> ${wx_arg_cache_file}.tmp
7203           fi
7204
7205           if test x"$enablestring" = xdisable; then
7206             if test $wxUSE_DATETIME = yes; then
7207               result=no
7208             else
7209               result=yes
7210             fi
7211           else
7212             result=$wxUSE_DATETIME
7213           fi
7214
7215           { echo "$as_me:$LINENO: result: $result" >&5
7216 echo "${ECHO_T}$result" >&6; }
7217
7218
7219           enablestring=
7220           defaultval=$wxUSE_ALL_FEATURES
7221           if test -z "$defaultval"; then
7222               if test x"$enablestring" = xdisable; then
7223                   defaultval=yes
7224               else
7225                   defaultval=no
7226               fi
7227           fi
7228
7229           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
7230 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
7231           # Check whether --enable-debugreport was given.
7232 if test "${enable_debugreport+set}" = set; then
7233   enableval=$enable_debugreport;
7234                           if test "$enableval" = yes; then
7235                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
7236                           else
7237                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
7238                           fi
7239                           cache=yes
7240
7241 else
7242
7243                           LINE=`grep "^wxUSE_DEBUGREPORT=" ${wx_arg_cache_file}`
7244                           if test "x$LINE" != x ; then
7245                               eval "DEFAULT_$LINE"
7246                               cache=yes
7247                           else
7248                               cache=no
7249                           fi
7250
7251                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
7252
7253 fi
7254
7255
7256           eval "$wx_cv_use_debugreport"
7257           if test "x$cache" = xyes; then
7258             echo "wxUSE_DEBUGREPORT=$wxUSE_DEBUGREPORT" >> ${wx_arg_cache_file}.tmp
7259           fi
7260
7261           if test x"$enablestring" = xdisable; then
7262             if test $wxUSE_DEBUGREPORT = yes; then
7263               result=no
7264             else
7265               result=yes
7266             fi
7267           else
7268             result=$wxUSE_DEBUGREPORT
7269           fi
7270
7271           { echo "$as_me:$LINENO: result: $result" >&5
7272 echo "${ECHO_T}$result" >&6; }
7273
7274
7275           enablestring=
7276           defaultval=$wxUSE_ALL_FEATURES
7277           if test -z "$defaultval"; then
7278               if test x"$enablestring" = xdisable; then
7279                   defaultval=yes
7280               else
7281                   defaultval=no
7282               fi
7283           fi
7284
7285           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
7286 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
7287           # Check whether --enable-dialupman was given.
7288 if test "${enable_dialupman+set}" = set; then
7289   enableval=$enable_dialupman;
7290                           if test "$enableval" = yes; then
7291                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
7292                           else
7293                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
7294                           fi
7295                           cache=yes
7296
7297 else
7298
7299                           LINE=`grep "^wxUSE_DIALUP_MANAGER=" ${wx_arg_cache_file}`
7300                           if test "x$LINE" != x ; then
7301                               eval "DEFAULT_$LINE"
7302                               cache=yes
7303                           else
7304                               cache=no
7305                           fi
7306
7307                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
7308
7309 fi
7310
7311
7312           eval "$wx_cv_use_dialupman"
7313           if test "x$cache" = xyes; then
7314             echo "wxUSE_DIALUP_MANAGER=$wxUSE_DIALUP_MANAGER" >> ${wx_arg_cache_file}.tmp
7315           fi
7316
7317           if test x"$enablestring" = xdisable; then
7318             if test $wxUSE_DIALUP_MANAGER = yes; then
7319               result=no
7320             else
7321               result=yes
7322             fi
7323           else
7324             result=$wxUSE_DIALUP_MANAGER
7325           fi
7326
7327           { echo "$as_me:$LINENO: result: $result" >&5
7328 echo "${ECHO_T}$result" >&6; }
7329
7330
7331           enablestring=
7332           defaultval=$wxUSE_ALL_FEATURES
7333           if test -z "$defaultval"; then
7334               if test x"$enablestring" = xdisable; then
7335                   defaultval=yes
7336               else
7337                   defaultval=no
7338               fi
7339           fi
7340
7341           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
7342 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
7343           # Check whether --enable-dynlib was given.
7344 if test "${enable_dynlib+set}" = set; then
7345   enableval=$enable_dynlib;
7346                           if test "$enableval" = yes; then
7347                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
7348                           else
7349                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
7350                           fi
7351                           cache=yes
7352
7353 else
7354
7355                           LINE=`grep "^wxUSE_DYNLIB_CLASS=" ${wx_arg_cache_file}`
7356                           if test "x$LINE" != x ; then
7357                               eval "DEFAULT_$LINE"
7358                               cache=yes
7359                           else
7360                               cache=no
7361                           fi
7362
7363                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
7364
7365 fi
7366
7367
7368           eval "$wx_cv_use_dynlib"
7369           if test "x$cache" = xyes; then
7370             echo "wxUSE_DYNLIB_CLASS=$wxUSE_DYNLIB_CLASS" >> ${wx_arg_cache_file}.tmp
7371           fi
7372
7373           if test x"$enablestring" = xdisable; then
7374             if test $wxUSE_DYNLIB_CLASS = yes; then
7375               result=no
7376             else
7377               result=yes
7378             fi
7379           else
7380             result=$wxUSE_DYNLIB_CLASS
7381           fi
7382
7383           { echo "$as_me:$LINENO: result: $result" >&5
7384 echo "${ECHO_T}$result" >&6; }
7385
7386
7387           enablestring=
7388           defaultval=$wxUSE_ALL_FEATURES
7389           if test -z "$defaultval"; then
7390               if test x"$enablestring" = xdisable; then
7391                   defaultval=yes
7392               else
7393                   defaultval=no
7394               fi
7395           fi
7396
7397           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7398 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7399           # Check whether --enable-dynamicloader was given.
7400 if test "${enable_dynamicloader+set}" = set; then
7401   enableval=$enable_dynamicloader;
7402                           if test "$enableval" = yes; then
7403                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7404                           else
7405                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7406                           fi
7407                           cache=yes
7408
7409 else
7410
7411                           LINE=`grep "^wxUSE_DYNAMIC_LOADER=" ${wx_arg_cache_file}`
7412                           if test "x$LINE" != x ; then
7413                               eval "DEFAULT_$LINE"
7414                               cache=yes
7415                           else
7416                               cache=no
7417                           fi
7418
7419                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7420
7421 fi
7422
7423
7424           eval "$wx_cv_use_dynamicloader"
7425           if test "x$cache" = xyes; then
7426             echo "wxUSE_DYNAMIC_LOADER=$wxUSE_DYNAMIC_LOADER" >> ${wx_arg_cache_file}.tmp
7427           fi
7428
7429           if test x"$enablestring" = xdisable; then
7430             if test $wxUSE_DYNAMIC_LOADER = yes; then
7431               result=no
7432             else
7433               result=yes
7434             fi
7435           else
7436             result=$wxUSE_DYNAMIC_LOADER
7437           fi
7438
7439           { echo "$as_me:$LINENO: result: $result" >&5
7440 echo "${ECHO_T}$result" >&6; }
7441
7442
7443           enablestring=
7444           defaultval=$wxUSE_ALL_FEATURES
7445           if test -z "$defaultval"; then
7446               if test x"$enablestring" = xdisable; then
7447                   defaultval=yes
7448               else
7449                   defaultval=no
7450               fi
7451           fi
7452
7453           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7454 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7455           # Check whether --enable-exceptions was given.
7456 if test "${enable_exceptions+set}" = set; then
7457   enableval=$enable_exceptions;
7458                           if test "$enableval" = yes; then
7459                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7460                           else
7461                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7462                           fi
7463                           cache=yes
7464
7465 else
7466
7467                           LINE=`grep "^wxUSE_EXCEPTIONS=" ${wx_arg_cache_file}`
7468                           if test "x$LINE" != x ; then
7469                               eval "DEFAULT_$LINE"
7470                               cache=yes
7471                           else
7472                               cache=no
7473                           fi
7474
7475                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7476
7477 fi
7478
7479
7480           eval "$wx_cv_use_exceptions"
7481           if test "x$cache" = xyes; then
7482             echo "wxUSE_EXCEPTIONS=$wxUSE_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
7483           fi
7484
7485           if test x"$enablestring" = xdisable; then
7486             if test $wxUSE_EXCEPTIONS = yes; then
7487               result=no
7488             else
7489               result=yes
7490             fi
7491           else
7492             result=$wxUSE_EXCEPTIONS
7493           fi
7494
7495           { echo "$as_me:$LINENO: result: $result" >&5
7496 echo "${ECHO_T}$result" >&6; }
7497
7498
7499           enablestring=
7500           defaultval=$wxUSE_ALL_FEATURES
7501           if test -z "$defaultval"; then
7502               if test x"$enablestring" = xdisable; then
7503                   defaultval=yes
7504               else
7505                   defaultval=no
7506               fi
7507           fi
7508
7509           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7510 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7511           # Check whether --enable-ffile was given.
7512 if test "${enable_ffile+set}" = set; then
7513   enableval=$enable_ffile;
7514                           if test "$enableval" = yes; then
7515                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7516                           else
7517                             wx_cv_use_ffile='wxUSE_FFILE=no'
7518                           fi
7519                           cache=yes
7520
7521 else
7522
7523                           LINE=`grep "^wxUSE_FFILE=" ${wx_arg_cache_file}`
7524                           if test "x$LINE" != x ; then
7525                               eval "DEFAULT_$LINE"
7526                               cache=yes
7527                           else
7528                               cache=no
7529                           fi
7530
7531                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7532
7533 fi
7534
7535
7536           eval "$wx_cv_use_ffile"
7537           if test "x$cache" = xyes; then
7538             echo "wxUSE_FFILE=$wxUSE_FFILE" >> ${wx_arg_cache_file}.tmp
7539           fi
7540
7541           if test x"$enablestring" = xdisable; then
7542             if test $wxUSE_FFILE = yes; then
7543               result=no
7544             else
7545               result=yes
7546             fi
7547           else
7548             result=$wxUSE_FFILE
7549           fi
7550
7551           { echo "$as_me:$LINENO: result: $result" >&5
7552 echo "${ECHO_T}$result" >&6; }
7553
7554
7555           enablestring=
7556           defaultval=$wxUSE_ALL_FEATURES
7557           if test -z "$defaultval"; then
7558               if test x"$enablestring" = xdisable; then
7559                   defaultval=yes
7560               else
7561                   defaultval=no
7562               fi
7563           fi
7564
7565           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7566 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7567           # Check whether --enable-file was given.
7568 if test "${enable_file+set}" = set; then
7569   enableval=$enable_file;
7570                           if test "$enableval" = yes; then
7571                             wx_cv_use_file='wxUSE_FILE=yes'
7572                           else
7573                             wx_cv_use_file='wxUSE_FILE=no'
7574                           fi
7575                           cache=yes
7576
7577 else
7578
7579                           LINE=`grep "^wxUSE_FILE=" ${wx_arg_cache_file}`
7580                           if test "x$LINE" != x ; then
7581                               eval "DEFAULT_$LINE"
7582                               cache=yes
7583                           else
7584                               cache=no
7585                           fi
7586
7587                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7588
7589 fi
7590
7591
7592           eval "$wx_cv_use_file"
7593           if test "x$cache" = xyes; then
7594             echo "wxUSE_FILE=$wxUSE_FILE" >> ${wx_arg_cache_file}.tmp
7595           fi
7596
7597           if test x"$enablestring" = xdisable; then
7598             if test $wxUSE_FILE = yes; then
7599               result=no
7600             else
7601               result=yes
7602             fi
7603           else
7604             result=$wxUSE_FILE
7605           fi
7606
7607           { echo "$as_me:$LINENO: result: $result" >&5
7608 echo "${ECHO_T}$result" >&6; }
7609
7610
7611           enablestring=
7612           defaultval=$wxUSE_ALL_FEATURES
7613           if test -z "$defaultval"; then
7614               if test x"$enablestring" = xdisable; then
7615                   defaultval=yes
7616               else
7617                   defaultval=no
7618               fi
7619           fi
7620
7621           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7622 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7623           # Check whether --enable-filesystem was given.
7624 if test "${enable_filesystem+set}" = set; then
7625   enableval=$enable_filesystem;
7626                           if test "$enableval" = yes; then
7627                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7628                           else
7629                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7630                           fi
7631                           cache=yes
7632
7633 else
7634
7635                           LINE=`grep "^wxUSE_FILESYSTEM=" ${wx_arg_cache_file}`
7636                           if test "x$LINE" != x ; then
7637                               eval "DEFAULT_$LINE"
7638                               cache=yes
7639                           else
7640                               cache=no
7641                           fi
7642
7643                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7644
7645 fi
7646
7647
7648           eval "$wx_cv_use_filesystem"
7649           if test "x$cache" = xyes; then
7650             echo "wxUSE_FILESYSTEM=$wxUSE_FILESYSTEM" >> ${wx_arg_cache_file}.tmp
7651           fi
7652
7653           if test x"$enablestring" = xdisable; then
7654             if test $wxUSE_FILESYSTEM = yes; then
7655               result=no
7656             else
7657               result=yes
7658             fi
7659           else
7660             result=$wxUSE_FILESYSTEM
7661           fi
7662
7663           { echo "$as_me:$LINENO: result: $result" >&5
7664 echo "${ECHO_T}$result" >&6; }
7665
7666
7667           enablestring=
7668           defaultval=$wxUSE_ALL_FEATURES
7669           if test -z "$defaultval"; then
7670               if test x"$enablestring" = xdisable; then
7671                   defaultval=yes
7672               else
7673                   defaultval=no
7674               fi
7675           fi
7676
7677           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7678 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7679           # Check whether --enable-fontenum was given.
7680 if test "${enable_fontenum+set}" = set; then
7681   enableval=$enable_fontenum;
7682                           if test "$enableval" = yes; then
7683                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7684                           else
7685                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7686                           fi
7687                           cache=yes
7688
7689 else
7690
7691                           LINE=`grep "^wxUSE_FONTENUM=" ${wx_arg_cache_file}`
7692                           if test "x$LINE" != x ; then
7693                               eval "DEFAULT_$LINE"
7694                               cache=yes
7695                           else
7696                               cache=no
7697                           fi
7698
7699                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7700
7701 fi
7702
7703
7704           eval "$wx_cv_use_fontenum"
7705           if test "x$cache" = xyes; then
7706             echo "wxUSE_FONTENUM=$wxUSE_FONTENUM" >> ${wx_arg_cache_file}.tmp
7707           fi
7708
7709           if test x"$enablestring" = xdisable; then
7710             if test $wxUSE_FONTENUM = yes; then
7711               result=no
7712             else
7713               result=yes
7714             fi
7715           else
7716             result=$wxUSE_FONTENUM
7717           fi
7718
7719           { echo "$as_me:$LINENO: result: $result" >&5
7720 echo "${ECHO_T}$result" >&6; }
7721
7722
7723           enablestring=
7724           defaultval=$wxUSE_ALL_FEATURES
7725           if test -z "$defaultval"; then
7726               if test x"$enablestring" = xdisable; then
7727                   defaultval=yes
7728               else
7729                   defaultval=no
7730               fi
7731           fi
7732
7733           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7734 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7735           # Check whether --enable-fontmap was given.
7736 if test "${enable_fontmap+set}" = set; then
7737   enableval=$enable_fontmap;
7738                           if test "$enableval" = yes; then
7739                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7740                           else
7741                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7742                           fi
7743                           cache=yes
7744
7745 else
7746
7747                           LINE=`grep "^wxUSE_FONTMAP=" ${wx_arg_cache_file}`
7748                           if test "x$LINE" != x ; then
7749                               eval "DEFAULT_$LINE"
7750                               cache=yes
7751                           else
7752                               cache=no
7753                           fi
7754
7755                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7756
7757 fi
7758
7759
7760           eval "$wx_cv_use_fontmap"
7761           if test "x$cache" = xyes; then
7762             echo "wxUSE_FONTMAP=$wxUSE_FONTMAP" >> ${wx_arg_cache_file}.tmp
7763           fi
7764
7765           if test x"$enablestring" = xdisable; then
7766             if test $wxUSE_FONTMAP = yes; then
7767               result=no
7768             else
7769               result=yes
7770             fi
7771           else
7772             result=$wxUSE_FONTMAP
7773           fi
7774
7775           { echo "$as_me:$LINENO: result: $result" >&5
7776 echo "${ECHO_T}$result" >&6; }
7777
7778
7779           enablestring=
7780           defaultval=$wxUSE_ALL_FEATURES
7781           if test -z "$defaultval"; then
7782               if test x"$enablestring" = xdisable; then
7783                   defaultval=yes
7784               else
7785                   defaultval=no
7786               fi
7787           fi
7788
7789           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7790 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7791           # Check whether --enable-fs_archive was given.
7792 if test "${enable_fs_archive+set}" = set; then
7793   enableval=$enable_fs_archive;
7794                           if test "$enableval" = yes; then
7795                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7796                           else
7797                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7798                           fi
7799                           cache=yes
7800
7801 else
7802
7803                           LINE=`grep "^wxUSE_FS_ARCHIVE=" ${wx_arg_cache_file}`
7804                           if test "x$LINE" != x ; then
7805                               eval "DEFAULT_$LINE"
7806                               cache=yes
7807                           else
7808                               cache=no
7809                           fi
7810
7811                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7812
7813 fi
7814
7815
7816           eval "$wx_cv_use_fs_archive"
7817           if test "x$cache" = xyes; then
7818             echo "wxUSE_FS_ARCHIVE=$wxUSE_FS_ARCHIVE" >> ${wx_arg_cache_file}.tmp
7819           fi
7820
7821           if test x"$enablestring" = xdisable; then
7822             if test $wxUSE_FS_ARCHIVE = yes; then
7823               result=no
7824             else
7825               result=yes
7826             fi
7827           else
7828             result=$wxUSE_FS_ARCHIVE
7829           fi
7830
7831           { echo "$as_me:$LINENO: result: $result" >&5
7832 echo "${ECHO_T}$result" >&6; }
7833
7834
7835           enablestring=
7836           defaultval=$wxUSE_ALL_FEATURES
7837           if test -z "$defaultval"; then
7838               if test x"$enablestring" = xdisable; then
7839                   defaultval=yes
7840               else
7841                   defaultval=no
7842               fi
7843           fi
7844
7845           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7846 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7847           # Check whether --enable-fs_inet was given.
7848 if test "${enable_fs_inet+set}" = set; then
7849   enableval=$enable_fs_inet;
7850                           if test "$enableval" = yes; then
7851                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7852                           else
7853                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7854                           fi
7855                           cache=yes
7856
7857 else
7858
7859                           LINE=`grep "^wxUSE_FS_INET=" ${wx_arg_cache_file}`
7860                           if test "x$LINE" != x ; then
7861                               eval "DEFAULT_$LINE"
7862                               cache=yes
7863                           else
7864                               cache=no
7865                           fi
7866
7867                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7868
7869 fi
7870
7871
7872           eval "$wx_cv_use_fs_inet"
7873           if test "x$cache" = xyes; then
7874             echo "wxUSE_FS_INET=$wxUSE_FS_INET" >> ${wx_arg_cache_file}.tmp
7875           fi
7876
7877           if test x"$enablestring" = xdisable; then
7878             if test $wxUSE_FS_INET = yes; then
7879               result=no
7880             else
7881               result=yes
7882             fi
7883           else
7884             result=$wxUSE_FS_INET
7885           fi
7886
7887           { echo "$as_me:$LINENO: result: $result" >&5
7888 echo "${ECHO_T}$result" >&6; }
7889
7890
7891           enablestring=
7892           defaultval=$wxUSE_ALL_FEATURES
7893           if test -z "$defaultval"; then
7894               if test x"$enablestring" = xdisable; then
7895                   defaultval=yes
7896               else
7897                   defaultval=no
7898               fi
7899           fi
7900
7901           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7902 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7903           # Check whether --enable-fs_zip was given.
7904 if test "${enable_fs_zip+set}" = set; then
7905   enableval=$enable_fs_zip;
7906                           if test "$enableval" = yes; then
7907                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7908                           else
7909                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7910                           fi
7911                           cache=yes
7912
7913 else
7914
7915                           LINE=`grep "^wxUSE_FS_ZIP=" ${wx_arg_cache_file}`
7916                           if test "x$LINE" != x ; then
7917                               eval "DEFAULT_$LINE"
7918                               cache=yes
7919                           else
7920                               cache=no
7921                           fi
7922
7923                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7924
7925 fi
7926
7927
7928           eval "$wx_cv_use_fs_zip"
7929           if test "x$cache" = xyes; then
7930             echo "wxUSE_FS_ZIP=$wxUSE_FS_ZIP" >> ${wx_arg_cache_file}.tmp
7931           fi
7932
7933           if test x"$enablestring" = xdisable; then
7934             if test $wxUSE_FS_ZIP = yes; then
7935               result=no
7936             else
7937               result=yes
7938             fi
7939           else
7940             result=$wxUSE_FS_ZIP
7941           fi
7942
7943           { echo "$as_me:$LINENO: result: $result" >&5
7944 echo "${ECHO_T}$result" >&6; }
7945
7946
7947           enablestring=
7948           defaultval=$wxUSE_ALL_FEATURES
7949           if test -z "$defaultval"; then
7950               if test x"$enablestring" = xdisable; then
7951                   defaultval=yes
7952               else
7953                   defaultval=no
7954               fi
7955           fi
7956
7957           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7958 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7959           # Check whether --enable-geometry was given.
7960 if test "${enable_geometry+set}" = set; then
7961   enableval=$enable_geometry;
7962                           if test "$enableval" = yes; then
7963                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7964                           else
7965                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7966                           fi
7967                           cache=yes
7968
7969 else
7970
7971                           LINE=`grep "^wxUSE_GEOMETRY=" ${wx_arg_cache_file}`
7972                           if test "x$LINE" != x ; then
7973                               eval "DEFAULT_$LINE"
7974                               cache=yes
7975                           else
7976                               cache=no
7977                           fi
7978
7979                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7980
7981 fi
7982
7983
7984           eval "$wx_cv_use_geometry"
7985           if test "x$cache" = xyes; then
7986             echo "wxUSE_GEOMETRY=$wxUSE_GEOMETRY" >> ${wx_arg_cache_file}.tmp
7987           fi
7988
7989           if test x"$enablestring" = xdisable; then
7990             if test $wxUSE_GEOMETRY = yes; then
7991               result=no
7992             else
7993               result=yes
7994             fi
7995           else
7996             result=$wxUSE_GEOMETRY
7997           fi
7998
7999           { echo "$as_me:$LINENO: result: $result" >&5
8000 echo "${ECHO_T}$result" >&6; }
8001
8002
8003           enablestring=
8004           defaultval=$wxUSE_ALL_FEATURES
8005           if test -z "$defaultval"; then
8006               if test x"$enablestring" = xdisable; then
8007                   defaultval=yes
8008               else
8009                   defaultval=no
8010               fi
8011           fi
8012
8013           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
8014 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
8015           # Check whether --enable-log was given.
8016 if test "${enable_log+set}" = set; then
8017   enableval=$enable_log;
8018                           if test "$enableval" = yes; then
8019                             wx_cv_use_log='wxUSE_LOG=yes'
8020                           else
8021                             wx_cv_use_log='wxUSE_LOG=no'
8022                           fi
8023                           cache=yes
8024
8025 else
8026
8027                           LINE=`grep "^wxUSE_LOG=" ${wx_arg_cache_file}`
8028                           if test "x$LINE" != x ; then
8029                               eval "DEFAULT_$LINE"
8030                               cache=yes
8031                           else
8032                               cache=no
8033                           fi
8034
8035                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
8036
8037 fi
8038
8039
8040           eval "$wx_cv_use_log"
8041           if test "x$cache" = xyes; then
8042             echo "wxUSE_LOG=$wxUSE_LOG" >> ${wx_arg_cache_file}.tmp
8043           fi
8044
8045           if test x"$enablestring" = xdisable; then
8046             if test $wxUSE_LOG = yes; then
8047               result=no
8048             else
8049               result=yes
8050             fi
8051           else
8052             result=$wxUSE_LOG
8053           fi
8054
8055           { echo "$as_me:$LINENO: result: $result" >&5
8056 echo "${ECHO_T}$result" >&6; }
8057
8058
8059           enablestring=
8060           defaultval=$wxUSE_ALL_FEATURES
8061           if test -z "$defaultval"; then
8062               if test x"$enablestring" = xdisable; then
8063                   defaultval=yes
8064               else
8065                   defaultval=no
8066               fi
8067           fi
8068
8069           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
8070 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
8071           # Check whether --enable-longlong was given.
8072 if test "${enable_longlong+set}" = set; then
8073   enableval=$enable_longlong;
8074                           if test "$enableval" = yes; then
8075                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
8076                           else
8077                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
8078                           fi
8079                           cache=yes
8080
8081 else
8082
8083                           LINE=`grep "^wxUSE_LONGLONG=" ${wx_arg_cache_file}`
8084                           if test "x$LINE" != x ; then
8085                               eval "DEFAULT_$LINE"
8086                               cache=yes
8087                           else
8088                               cache=no
8089                           fi
8090
8091                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
8092
8093 fi
8094
8095
8096           eval "$wx_cv_use_longlong"
8097           if test "x$cache" = xyes; then
8098             echo "wxUSE_LONGLONG=$wxUSE_LONGLONG" >> ${wx_arg_cache_file}.tmp
8099           fi
8100
8101           if test x"$enablestring" = xdisable; then
8102             if test $wxUSE_LONGLONG = yes; then
8103               result=no
8104             else
8105               result=yes
8106             fi
8107           else
8108             result=$wxUSE_LONGLONG
8109           fi
8110
8111           { echo "$as_me:$LINENO: result: $result" >&5
8112 echo "${ECHO_T}$result" >&6; }
8113
8114
8115           enablestring=
8116           defaultval=$wxUSE_ALL_FEATURES
8117           if test -z "$defaultval"; then
8118               if test x"$enablestring" = xdisable; then
8119                   defaultval=yes
8120               else
8121                   defaultval=no
8122               fi
8123           fi
8124
8125           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
8126 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
8127           # Check whether --enable-mimetype was given.
8128 if test "${enable_mimetype+set}" = set; then
8129   enableval=$enable_mimetype;
8130                           if test "$enableval" = yes; then
8131                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
8132                           else
8133                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
8134                           fi
8135                           cache=yes
8136
8137 else
8138
8139                           LINE=`grep "^wxUSE_MIMETYPE=" ${wx_arg_cache_file}`
8140                           if test "x$LINE" != x ; then
8141                               eval "DEFAULT_$LINE"
8142                               cache=yes
8143                           else
8144                               cache=no
8145                           fi
8146
8147                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
8148
8149 fi
8150
8151
8152           eval "$wx_cv_use_mimetype"
8153           if test "x$cache" = xyes; then
8154             echo "wxUSE_MIMETYPE=$wxUSE_MIMETYPE" >> ${wx_arg_cache_file}.tmp
8155           fi
8156
8157           if test x"$enablestring" = xdisable; then
8158             if test $wxUSE_MIMETYPE = yes; then
8159               result=no
8160             else
8161               result=yes
8162             fi
8163           else
8164             result=$wxUSE_MIMETYPE
8165           fi
8166
8167           { echo "$as_me:$LINENO: result: $result" >&5
8168 echo "${ECHO_T}$result" >&6; }
8169
8170
8171           enablestring=
8172           defaultval=$wxUSE_ALL_FEATURES
8173           if test -z "$defaultval"; then
8174               if test x"$enablestring" = xdisable; then
8175                   defaultval=yes
8176               else
8177                   defaultval=no
8178               fi
8179           fi
8180
8181           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
8182 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
8183           # Check whether --enable-snglinst was given.
8184 if test "${enable_snglinst+set}" = set; then
8185   enableval=$enable_snglinst;
8186                           if test "$enableval" = yes; then
8187                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
8188                           else
8189                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
8190                           fi
8191                           cache=yes
8192
8193 else
8194
8195                           LINE=`grep "^wxUSE_SNGLINST_CHECKER=" ${wx_arg_cache_file}`
8196                           if test "x$LINE" != x ; then
8197                               eval "DEFAULT_$LINE"
8198                               cache=yes
8199                           else
8200                               cache=no
8201                           fi
8202
8203                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
8204
8205 fi
8206
8207
8208           eval "$wx_cv_use_snglinst"
8209           if test "x$cache" = xyes; then
8210             echo "wxUSE_SNGLINST_CHECKER=$wxUSE_SNGLINST_CHECKER" >> ${wx_arg_cache_file}.tmp
8211           fi
8212
8213           if test x"$enablestring" = xdisable; then
8214             if test $wxUSE_SNGLINST_CHECKER = yes; then
8215               result=no
8216             else
8217               result=yes
8218             fi
8219           else
8220             result=$wxUSE_SNGLINST_CHECKER
8221           fi
8222
8223           { echo "$as_me:$LINENO: result: $result" >&5
8224 echo "${ECHO_T}$result" >&6; }
8225
8226
8227           enablestring=
8228           defaultval=$wxUSE_ALL_FEATURES
8229           if test -z "$defaultval"; then
8230               if test x"$enablestring" = xdisable; then
8231                   defaultval=yes
8232               else
8233                   defaultval=no
8234               fi
8235           fi
8236
8237           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
8238 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
8239           # Check whether --enable-stdpaths was given.
8240 if test "${enable_stdpaths+set}" = set; then
8241   enableval=$enable_stdpaths;
8242                           if test "$enableval" = yes; then
8243                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
8244                           else
8245                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
8246                           fi
8247                           cache=yes
8248
8249 else
8250
8251                           LINE=`grep "^wxUSE_STDPATHS=" ${wx_arg_cache_file}`
8252                           if test "x$LINE" != x ; then
8253                               eval "DEFAULT_$LINE"
8254                               cache=yes
8255                           else
8256                               cache=no
8257                           fi
8258
8259                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
8260
8261 fi
8262
8263
8264           eval "$wx_cv_use_stdpaths"
8265           if test "x$cache" = xyes; then
8266             echo "wxUSE_STDPATHS=$wxUSE_STDPATHS" >> ${wx_arg_cache_file}.tmp
8267           fi
8268
8269           if test x"$enablestring" = xdisable; then
8270             if test $wxUSE_STDPATHS = yes; then
8271               result=no
8272             else
8273               result=yes
8274             fi
8275           else
8276             result=$wxUSE_STDPATHS
8277           fi
8278
8279           { echo "$as_me:$LINENO: result: $result" >&5
8280 echo "${ECHO_T}$result" >&6; }
8281
8282
8283           enablestring=
8284           defaultval=$wxUSE_ALL_FEATURES
8285           if test -z "$defaultval"; then
8286               if test x"$enablestring" = xdisable; then
8287                   defaultval=yes
8288               else
8289                   defaultval=no
8290               fi
8291           fi
8292
8293           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
8294 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
8295           # Check whether --enable-stopwatch was given.
8296 if test "${enable_stopwatch+set}" = set; then
8297   enableval=$enable_stopwatch;
8298                           if test "$enableval" = yes; then
8299                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
8300                           else
8301                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
8302                           fi
8303                           cache=yes
8304
8305 else
8306
8307                           LINE=`grep "^wxUSE_STOPWATCH=" ${wx_arg_cache_file}`
8308                           if test "x$LINE" != x ; then
8309                               eval "DEFAULT_$LINE"
8310                               cache=yes
8311                           else
8312                               cache=no
8313                           fi
8314
8315                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
8316
8317 fi
8318
8319
8320           eval "$wx_cv_use_stopwatch"
8321           if test "x$cache" = xyes; then
8322             echo "wxUSE_STOPWATCH=$wxUSE_STOPWATCH" >> ${wx_arg_cache_file}.tmp
8323           fi
8324
8325           if test x"$enablestring" = xdisable; then
8326             if test $wxUSE_STOPWATCH = yes; then
8327               result=no
8328             else
8329               result=yes
8330             fi
8331           else
8332             result=$wxUSE_STOPWATCH
8333           fi
8334
8335           { echo "$as_me:$LINENO: result: $result" >&5
8336 echo "${ECHO_T}$result" >&6; }
8337
8338
8339           enablestring=
8340           defaultval=$wxUSE_ALL_FEATURES
8341           if test -z "$defaultval"; then
8342               if test x"$enablestring" = xdisable; then
8343                   defaultval=yes
8344               else
8345                   defaultval=no
8346               fi
8347           fi
8348
8349           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
8350 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
8351           # Check whether --enable-streams was given.
8352 if test "${enable_streams+set}" = set; then
8353   enableval=$enable_streams;
8354                           if test "$enableval" = yes; then
8355                             wx_cv_use_streams='wxUSE_STREAMS=yes'
8356                           else
8357                             wx_cv_use_streams='wxUSE_STREAMS=no'
8358                           fi
8359                           cache=yes
8360
8361 else
8362
8363                           LINE=`grep "^wxUSE_STREAMS=" ${wx_arg_cache_file}`
8364                           if test "x$LINE" != x ; then
8365                               eval "DEFAULT_$LINE"
8366                               cache=yes
8367                           else
8368                               cache=no
8369                           fi
8370
8371                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
8372
8373 fi
8374
8375
8376           eval "$wx_cv_use_streams"
8377           if test "x$cache" = xyes; then
8378             echo "wxUSE_STREAMS=$wxUSE_STREAMS" >> ${wx_arg_cache_file}.tmp
8379           fi
8380
8381           if test x"$enablestring" = xdisable; then
8382             if test $wxUSE_STREAMS = yes; then
8383               result=no
8384             else
8385               result=yes
8386             fi
8387           else
8388             result=$wxUSE_STREAMS
8389           fi
8390
8391           { echo "$as_me:$LINENO: result: $result" >&5
8392 echo "${ECHO_T}$result" >&6; }
8393
8394
8395           enablestring=
8396           defaultval=$wxUSE_ALL_FEATURES
8397           if test -z "$defaultval"; then
8398               if test x"$enablestring" = xdisable; then
8399                   defaultval=yes
8400               else
8401                   defaultval=no
8402               fi
8403           fi
8404
8405           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
8406 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
8407           # Check whether --enable-system_options was given.
8408 if test "${enable_system_options+set}" = set; then
8409   enableval=$enable_system_options;
8410                           if test "$enableval" = yes; then
8411                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
8412                           else
8413                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
8414                           fi
8415                           cache=yes
8416
8417 else
8418
8419                           LINE=`grep "^wxUSE_SYSTEM_OPTIONS=" ${wx_arg_cache_file}`
8420                           if test "x$LINE" != x ; then
8421                               eval "DEFAULT_$LINE"
8422                               cache=yes
8423                           else
8424                               cache=no
8425                           fi
8426
8427                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
8428
8429 fi
8430
8431
8432           eval "$wx_cv_use_system_options"
8433           if test "x$cache" = xyes; then
8434             echo "wxUSE_SYSTEM_OPTIONS=$wxUSE_SYSTEM_OPTIONS" >> ${wx_arg_cache_file}.tmp
8435           fi
8436
8437           if test x"$enablestring" = xdisable; then
8438             if test $wxUSE_SYSTEM_OPTIONS = yes; then
8439               result=no
8440             else
8441               result=yes
8442             fi
8443           else
8444             result=$wxUSE_SYSTEM_OPTIONS
8445           fi
8446
8447           { echo "$as_me:$LINENO: result: $result" >&5
8448 echo "${ECHO_T}$result" >&6; }
8449
8450
8451           enablestring=
8452           defaultval=$wxUSE_ALL_FEATURES
8453           if test -z "$defaultval"; then
8454               if test x"$enablestring" = xdisable; then
8455                   defaultval=yes
8456               else
8457                   defaultval=no
8458               fi
8459           fi
8460
8461           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8462 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8463           # Check whether --enable-tarstream was given.
8464 if test "${enable_tarstream+set}" = set; then
8465   enableval=$enable_tarstream;
8466                           if test "$enableval" = yes; then
8467                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8468                           else
8469                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8470                           fi
8471                           cache=yes
8472
8473 else
8474
8475                           LINE=`grep "^wxUSE_TARSTREAM=" ${wx_arg_cache_file}`
8476                           if test "x$LINE" != x ; then
8477                               eval "DEFAULT_$LINE"
8478                               cache=yes
8479                           else
8480                               cache=no
8481                           fi
8482
8483                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8484
8485 fi
8486
8487
8488           eval "$wx_cv_use_tarstream"
8489           if test "x$cache" = xyes; then
8490             echo "wxUSE_TARSTREAM=$wxUSE_TARSTREAM" >> ${wx_arg_cache_file}.tmp
8491           fi
8492
8493           if test x"$enablestring" = xdisable; then
8494             if test $wxUSE_TARSTREAM = yes; then
8495               result=no
8496             else
8497               result=yes
8498             fi
8499           else
8500             result=$wxUSE_TARSTREAM
8501           fi
8502
8503           { echo "$as_me:$LINENO: result: $result" >&5
8504 echo "${ECHO_T}$result" >&6; }
8505
8506
8507           enablestring=
8508           defaultval=$wxUSE_ALL_FEATURES
8509           if test -z "$defaultval"; then
8510               if test x"$enablestring" = xdisable; then
8511                   defaultval=yes
8512               else
8513                   defaultval=no
8514               fi
8515           fi
8516
8517           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8518 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8519           # Check whether --enable-textbuf was given.
8520 if test "${enable_textbuf+set}" = set; then
8521   enableval=$enable_textbuf;
8522                           if test "$enableval" = yes; then
8523                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8524                           else
8525                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8526                           fi
8527                           cache=yes
8528
8529 else
8530
8531                           LINE=`grep "^wxUSE_TEXTBUFFER=" ${wx_arg_cache_file}`
8532                           if test "x$LINE" != x ; then
8533                               eval "DEFAULT_$LINE"
8534                               cache=yes
8535                           else
8536                               cache=no
8537                           fi
8538
8539                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8540
8541 fi
8542
8543
8544           eval "$wx_cv_use_textbuf"
8545           if test "x$cache" = xyes; then
8546             echo "wxUSE_TEXTBUFFER=$wxUSE_TEXTBUFFER" >> ${wx_arg_cache_file}.tmp
8547           fi
8548
8549           if test x"$enablestring" = xdisable; then
8550             if test $wxUSE_TEXTBUFFER = yes; then
8551               result=no
8552             else
8553               result=yes
8554             fi
8555           else
8556             result=$wxUSE_TEXTBUFFER
8557           fi
8558
8559           { echo "$as_me:$LINENO: result: $result" >&5
8560 echo "${ECHO_T}$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           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8574 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8575           # Check whether --enable-textfile was given.
8576 if test "${enable_textfile+set}" = set; then
8577   enableval=$enable_textfile;
8578                           if test "$enableval" = yes; then
8579                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8580                           else
8581                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8582                           fi
8583                           cache=yes
8584
8585 else
8586
8587                           LINE=`grep "^wxUSE_TEXTFILE=" ${wx_arg_cache_file}`
8588                           if test "x$LINE" != x ; then
8589                               eval "DEFAULT_$LINE"
8590                               cache=yes
8591                           else
8592                               cache=no
8593                           fi
8594
8595                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8596
8597 fi
8598
8599
8600           eval "$wx_cv_use_textfile"
8601           if test "x$cache" = xyes; then
8602             echo "wxUSE_TEXTFILE=$wxUSE_TEXTFILE" >> ${wx_arg_cache_file}.tmp
8603           fi
8604
8605           if test x"$enablestring" = xdisable; then
8606             if test $wxUSE_TEXTFILE = yes; then
8607               result=no
8608             else
8609               result=yes
8610             fi
8611           else
8612             result=$wxUSE_TEXTFILE
8613           fi
8614
8615           { echo "$as_me:$LINENO: result: $result" >&5
8616 echo "${ECHO_T}$result" >&6; }
8617
8618
8619           enablestring=
8620           defaultval=$wxUSE_ALL_FEATURES
8621           if test -z "$defaultval"; then
8622               if test x"$enablestring" = xdisable; then
8623                   defaultval=yes
8624               else
8625                   defaultval=no
8626               fi
8627           fi
8628
8629           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8630 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8631           # Check whether --enable-timer was given.
8632 if test "${enable_timer+set}" = set; then
8633   enableval=$enable_timer;
8634                           if test "$enableval" = yes; then
8635                             wx_cv_use_timer='wxUSE_TIMER=yes'
8636                           else
8637                             wx_cv_use_timer='wxUSE_TIMER=no'
8638                           fi
8639                           cache=yes
8640
8641 else
8642
8643                           LINE=`grep "^wxUSE_TIMER=" ${wx_arg_cache_file}`
8644                           if test "x$LINE" != x ; then
8645                               eval "DEFAULT_$LINE"
8646                               cache=yes
8647                           else
8648                               cache=no
8649                           fi
8650
8651                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8652
8653 fi
8654
8655
8656           eval "$wx_cv_use_timer"
8657           if test "x$cache" = xyes; then
8658             echo "wxUSE_TIMER=$wxUSE_TIMER" >> ${wx_arg_cache_file}.tmp
8659           fi
8660
8661           if test x"$enablestring" = xdisable; then
8662             if test $wxUSE_TIMER = yes; then
8663               result=no
8664             else
8665               result=yes
8666             fi
8667           else
8668             result=$wxUSE_TIMER
8669           fi
8670
8671           { echo "$as_me:$LINENO: result: $result" >&5
8672 echo "${ECHO_T}$result" >&6; }
8673
8674
8675           enablestring=
8676           defaultval=$wxUSE_ALL_FEATURES
8677           if test -z "$defaultval"; then
8678               if test x"$enablestring" = xdisable; then
8679                   defaultval=yes
8680               else
8681                   defaultval=no
8682               fi
8683           fi
8684
8685           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
8686 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
8687           # Check whether --enable-sound was given.
8688 if test "${enable_sound+set}" = set; then
8689   enableval=$enable_sound;
8690                           if test "$enableval" = yes; then
8691                             wx_cv_use_sound='wxUSE_SOUND=yes'
8692                           else
8693                             wx_cv_use_sound='wxUSE_SOUND=no'
8694                           fi
8695                           cache=yes
8696
8697 else
8698
8699                           LINE=`grep "^wxUSE_SOUND=" ${wx_arg_cache_file}`
8700                           if test "x$LINE" != x ; then
8701                               eval "DEFAULT_$LINE"
8702                               cache=yes
8703                           else
8704                               cache=no
8705                           fi
8706
8707                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
8708
8709 fi
8710
8711
8712           eval "$wx_cv_use_sound"
8713           if test "x$cache" = xyes; then
8714             echo "wxUSE_SOUND=$wxUSE_SOUND" >> ${wx_arg_cache_file}.tmp
8715           fi
8716
8717           if test x"$enablestring" = xdisable; then
8718             if test $wxUSE_SOUND = yes; then
8719               result=no
8720             else
8721               result=yes
8722             fi
8723           else
8724             result=$wxUSE_SOUND
8725           fi
8726
8727           { echo "$as_me:$LINENO: result: $result" >&5
8728 echo "${ECHO_T}$result" >&6; }
8729
8730
8731           enablestring=
8732           defaultval=$wxUSE_ALL_FEATURES
8733           if test -z "$defaultval"; then
8734               if test x"$enablestring" = xdisable; then
8735                   defaultval=yes
8736               else
8737                   defaultval=no
8738               fi
8739           fi
8740
8741           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8742 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8743           # Check whether --enable-mediactrl was given.
8744 if test "${enable_mediactrl+set}" = set; then
8745   enableval=$enable_mediactrl;
8746                           if test "$enableval" = yes; then
8747                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8748                           else
8749                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8750                           fi
8751                           cache=yes
8752
8753 else
8754
8755                           LINE=`grep "^wxUSE_MEDIACTRL=" ${wx_arg_cache_file}`
8756                           if test "x$LINE" != x ; then
8757                               eval "DEFAULT_$LINE"
8758                               cache=yes
8759                           else
8760                               cache=no
8761                           fi
8762
8763                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8764
8765 fi
8766
8767
8768           eval "$wx_cv_use_mediactrl"
8769           if test "x$cache" = xyes; then
8770             echo "wxUSE_MEDIACTRL=$wxUSE_MEDIACTRL" >> ${wx_arg_cache_file}.tmp
8771           fi
8772
8773           if test x"$enablestring" = xdisable; then
8774             if test $wxUSE_MEDIACTRL = yes; then
8775               result=no
8776             else
8777               result=yes
8778             fi
8779           else
8780             result=$wxUSE_MEDIACTRL
8781           fi
8782
8783           { echo "$as_me:$LINENO: result: $result" >&5
8784 echo "${ECHO_T}$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           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8798 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8799           # Check whether --enable-gstreamer8 was given.
8800 if test "${enable_gstreamer8+set}" = set; then
8801   enableval=$enable_gstreamer8;
8802                           if test "$enableval" = yes; then
8803                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8804                           else
8805                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8806                           fi
8807                           cache=yes
8808
8809 else
8810
8811                           LINE=`grep "^wxUSE_GSTREAMER8=" ${wx_arg_cache_file}`
8812                           if test "x$LINE" != x ; then
8813                               eval "DEFAULT_$LINE"
8814                               cache=yes
8815                           else
8816                               cache=no
8817                           fi
8818
8819                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8820
8821 fi
8822
8823
8824           eval "$wx_cv_use_gstreamer8"
8825           if test "x$cache" = xyes; then
8826             echo "wxUSE_GSTREAMER8=$wxUSE_GSTREAMER8" >> ${wx_arg_cache_file}.tmp
8827           fi
8828
8829           if test x"$enablestring" = xdisable; then
8830             if test $wxUSE_GSTREAMER8 = yes; then
8831               result=no
8832             else
8833               result=yes
8834             fi
8835           else
8836             result=$wxUSE_GSTREAMER8
8837           fi
8838
8839           { echo "$as_me:$LINENO: result: $result" >&5
8840 echo "${ECHO_T}$result" >&6; }
8841
8842
8843           enablestring=
8844           defaultval=$wxUSE_ALL_FEATURES
8845           if test -z "$defaultval"; then
8846               if test x"$enablestring" = xdisable; then
8847                   defaultval=yes
8848               else
8849                   defaultval=no
8850               fi
8851           fi
8852
8853           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
8854 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
8855           # Check whether --enable-printfposparam was given.
8856 if test "${enable_printfposparam+set}" = set; then
8857   enableval=$enable_printfposparam;
8858                           if test "$enableval" = yes; then
8859                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
8860                           else
8861                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
8862                           fi
8863                           cache=yes
8864
8865 else
8866
8867                           LINE=`grep "^wxUSE_PRINTF_POS_PARAMS=" ${wx_arg_cache_file}`
8868                           if test "x$LINE" != x ; then
8869                               eval "DEFAULT_$LINE"
8870                               cache=yes
8871                           else
8872                               cache=no
8873                           fi
8874
8875                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
8876
8877 fi
8878
8879
8880           eval "$wx_cv_use_printfposparam"
8881           if test "x$cache" = xyes; then
8882             echo "wxUSE_PRINTF_POS_PARAMS=$wxUSE_PRINTF_POS_PARAMS" >> ${wx_arg_cache_file}.tmp
8883           fi
8884
8885           if test x"$enablestring" = xdisable; then
8886             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
8887               result=no
8888             else
8889               result=yes
8890             fi
8891           else
8892             result=$wxUSE_PRINTF_POS_PARAMS
8893           fi
8894
8895           { echo "$as_me:$LINENO: result: $result" >&5
8896 echo "${ECHO_T}$result" >&6; }
8897
8898
8899           enablestring=
8900           defaultval=$wxUSE_ALL_FEATURES
8901           if test -z "$defaultval"; then
8902               if test x"$enablestring" = xdisable; then
8903                   defaultval=yes
8904               else
8905                   defaultval=no
8906               fi
8907           fi
8908
8909           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8910 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8911           # Check whether --enable-zipstream was given.
8912 if test "${enable_zipstream+set}" = set; then
8913   enableval=$enable_zipstream;
8914                           if test "$enableval" = yes; then
8915                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8916                           else
8917                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8918                           fi
8919                           cache=yes
8920
8921 else
8922
8923                           LINE=`grep "^wxUSE_ZIPSTREAM=" ${wx_arg_cache_file}`
8924                           if test "x$LINE" != x ; then
8925                               eval "DEFAULT_$LINE"
8926                               cache=yes
8927                           else
8928                               cache=no
8929                           fi
8930
8931                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8932
8933 fi
8934
8935
8936           eval "$wx_cv_use_zipstream"
8937           if test "x$cache" = xyes; then
8938             echo "wxUSE_ZIPSTREAM=$wxUSE_ZIPSTREAM" >> ${wx_arg_cache_file}.tmp
8939           fi
8940
8941           if test x"$enablestring" = xdisable; then
8942             if test $wxUSE_ZIPSTREAM = yes; then
8943               result=no
8944             else
8945               result=yes
8946             fi
8947           else
8948             result=$wxUSE_ZIPSTREAM
8949           fi
8950
8951           { echo "$as_me:$LINENO: result: $result" >&5
8952 echo "${ECHO_T}$result" >&6; }
8953
8954
8955
8956           enablestring=
8957           defaultval=$wxUSE_ALL_FEATURES
8958           if test -z "$defaultval"; then
8959               if test x"$enablestring" = xdisable; then
8960                   defaultval=yes
8961               else
8962                   defaultval=no
8963               fi
8964           fi
8965
8966           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8967 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8968           # Check whether --enable-url was given.
8969 if test "${enable_url+set}" = set; then
8970   enableval=$enable_url;
8971                           if test "$enableval" = yes; then
8972                             wx_cv_use_url='wxUSE_URL=yes'
8973                           else
8974                             wx_cv_use_url='wxUSE_URL=no'
8975                           fi
8976                           cache=yes
8977
8978 else
8979
8980                           LINE=`grep "^wxUSE_URL=" ${wx_arg_cache_file}`
8981                           if test "x$LINE" != x ; then
8982                               eval "DEFAULT_$LINE"
8983                               cache=yes
8984                           else
8985                               cache=no
8986                           fi
8987
8988                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8989
8990 fi
8991
8992
8993           eval "$wx_cv_use_url"
8994           if test "x$cache" = xyes; then
8995             echo "wxUSE_URL=$wxUSE_URL" >> ${wx_arg_cache_file}.tmp
8996           fi
8997
8998           if test x"$enablestring" = xdisable; then
8999             if test $wxUSE_URL = yes; then
9000               result=no
9001             else
9002               result=yes
9003             fi
9004           else
9005             result=$wxUSE_URL
9006           fi
9007
9008           { echo "$as_me:$LINENO: result: $result" >&5
9009 echo "${ECHO_T}$result" >&6; }
9010
9011
9012           enablestring=
9013           defaultval=$wxUSE_ALL_FEATURES
9014           if test -z "$defaultval"; then
9015               if test x"$enablestring" = xdisable; then
9016                   defaultval=yes
9017               else
9018                   defaultval=no
9019               fi
9020           fi
9021
9022           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
9023 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
9024           # Check whether --enable-variant was given.
9025 if test "${enable_variant+set}" = set; then
9026   enableval=$enable_variant;
9027                           if test "$enableval" = yes; then
9028                             wx_cv_use_variant='wxUSE_VARIANT=yes'
9029                           else
9030                             wx_cv_use_variant='wxUSE_VARIANT=no'
9031                           fi
9032                           cache=yes
9033
9034 else
9035
9036                           LINE=`grep "^wxUSE_VARIANT=" ${wx_arg_cache_file}`
9037                           if test "x$LINE" != x ; then
9038                               eval "DEFAULT_$LINE"
9039                               cache=yes
9040                           else
9041                               cache=no
9042                           fi
9043
9044                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
9045
9046 fi
9047
9048
9049           eval "$wx_cv_use_variant"
9050           if test "x$cache" = xyes; then
9051             echo "wxUSE_VARIANT=$wxUSE_VARIANT" >> ${wx_arg_cache_file}.tmp
9052           fi
9053
9054           if test x"$enablestring" = xdisable; then
9055             if test $wxUSE_VARIANT = yes; then
9056               result=no
9057             else
9058               result=yes
9059             fi
9060           else
9061             result=$wxUSE_VARIANT
9062           fi
9063
9064           { echo "$as_me:$LINENO: result: $result" >&5
9065 echo "${ECHO_T}$result" >&6; }
9066
9067
9068           enablestring=
9069           defaultval=$wxUSE_ALL_FEATURES
9070           if test -z "$defaultval"; then
9071               if test x"$enablestring" = xdisable; then
9072                   defaultval=yes
9073               else
9074                   defaultval=no
9075               fi
9076           fi
9077
9078           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
9079 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
9080           # Check whether --enable-protocol was given.
9081 if test "${enable_protocol+set}" = set; then
9082   enableval=$enable_protocol;
9083                           if test "$enableval" = yes; then
9084                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
9085                           else
9086                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
9087                           fi
9088                           cache=yes
9089
9090 else
9091
9092                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
9093                           if test "x$LINE" != x ; then
9094                               eval "DEFAULT_$LINE"
9095                               cache=yes
9096                           else
9097                               cache=no
9098                           fi
9099
9100                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
9101
9102 fi
9103
9104
9105           eval "$wx_cv_use_protocol"
9106           if test "x$cache" = xyes; then
9107             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
9108           fi
9109
9110           if test x"$enablestring" = xdisable; then
9111             if test $wxUSE_PROTOCOL = yes; then
9112               result=no
9113             else
9114               result=yes
9115             fi
9116           else
9117             result=$wxUSE_PROTOCOL
9118           fi
9119
9120           { echo "$as_me:$LINENO: result: $result" >&5
9121 echo "${ECHO_T}$result" >&6; }
9122
9123
9124           enablestring=
9125           defaultval=$wxUSE_ALL_FEATURES
9126           if test -z "$defaultval"; then
9127               if test x"$enablestring" = xdisable; then
9128                   defaultval=yes
9129               else
9130                   defaultval=no
9131               fi
9132           fi
9133
9134           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
9135 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
9136           # Check whether --enable-protocol_http was given.
9137 if test "${enable_protocol_http+set}" = set; then
9138   enableval=$enable_protocol_http;
9139                           if test "$enableval" = yes; then
9140                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
9141                           else
9142                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
9143                           fi
9144                           cache=yes
9145
9146 else
9147
9148                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
9149                           if test "x$LINE" != x ; then
9150                               eval "DEFAULT_$LINE"
9151                               cache=yes
9152                           else
9153                               cache=no
9154                           fi
9155
9156                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
9157
9158 fi
9159
9160
9161           eval "$wx_cv_use_protocol_http"
9162           if test "x$cache" = xyes; then
9163             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
9164           fi
9165
9166           if test x"$enablestring" = xdisable; then
9167             if test $wxUSE_PROTOCOL_HTTP = yes; then
9168               result=no
9169             else
9170               result=yes
9171             fi
9172           else
9173             result=$wxUSE_PROTOCOL_HTTP
9174           fi
9175
9176           { echo "$as_me:$LINENO: result: $result" >&5
9177 echo "${ECHO_T}$result" >&6; }
9178
9179
9180           enablestring=
9181           defaultval=$wxUSE_ALL_FEATURES
9182           if test -z "$defaultval"; then
9183               if test x"$enablestring" = xdisable; then
9184                   defaultval=yes
9185               else
9186                   defaultval=no
9187               fi
9188           fi
9189
9190           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
9191 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
9192           # Check whether --enable-protocol_ftp was given.
9193 if test "${enable_protocol_ftp+set}" = set; then
9194   enableval=$enable_protocol_ftp;
9195                           if test "$enableval" = yes; then
9196                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
9197                           else
9198                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
9199                           fi
9200                           cache=yes
9201
9202 else
9203
9204                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
9205                           if test "x$LINE" != x ; then
9206                               eval "DEFAULT_$LINE"
9207                               cache=yes
9208                           else
9209                               cache=no
9210                           fi
9211
9212                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
9213
9214 fi
9215
9216
9217           eval "$wx_cv_use_protocol_ftp"
9218           if test "x$cache" = xyes; then
9219             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
9220           fi
9221
9222           if test x"$enablestring" = xdisable; then
9223             if test $wxUSE_PROTOCOL_FTP = yes; then
9224               result=no
9225             else
9226               result=yes
9227             fi
9228           else
9229             result=$wxUSE_PROTOCOL_FTP
9230           fi
9231
9232           { echo "$as_me:$LINENO: result: $result" >&5
9233 echo "${ECHO_T}$result" >&6; }
9234
9235
9236           enablestring=
9237           defaultval=$wxUSE_ALL_FEATURES
9238           if test -z "$defaultval"; then
9239               if test x"$enablestring" = xdisable; then
9240                   defaultval=yes
9241               else
9242                   defaultval=no
9243               fi
9244           fi
9245
9246           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
9247 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
9248           # Check whether --enable-protocol_file was given.
9249 if test "${enable_protocol_file+set}" = set; then
9250   enableval=$enable_protocol_file;
9251                           if test "$enableval" = yes; then
9252                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
9253                           else
9254                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
9255                           fi
9256                           cache=yes
9257
9258 else
9259
9260                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
9261                           if test "x$LINE" != x ; then
9262                               eval "DEFAULT_$LINE"
9263                               cache=yes
9264                           else
9265                               cache=no
9266                           fi
9267
9268                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
9269
9270 fi
9271
9272
9273           eval "$wx_cv_use_protocol_file"
9274           if test "x$cache" = xyes; then
9275             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
9276           fi
9277
9278           if test x"$enablestring" = xdisable; then
9279             if test $wxUSE_PROTOCOL_FILE = yes; then
9280               result=no
9281             else
9282               result=yes
9283             fi
9284           else
9285             result=$wxUSE_PROTOCOL_FILE
9286           fi
9287
9288           { echo "$as_me:$LINENO: result: $result" >&5
9289 echo "${ECHO_T}$result" >&6; }
9290
9291
9292
9293           enablestring=
9294           defaultval=$wxUSE_ALL_FEATURES
9295           if test -z "$defaultval"; then
9296               if test x"$enablestring" = xdisable; then
9297                   defaultval=yes
9298               else
9299                   defaultval=no
9300               fi
9301           fi
9302
9303           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
9304 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
9305           # Check whether --enable-threads was given.
9306 if test "${enable_threads+set}" = set; then
9307   enableval=$enable_threads;
9308                           if test "$enableval" = yes; then
9309                             wx_cv_use_threads='wxUSE_THREADS=yes'
9310                           else
9311                             wx_cv_use_threads='wxUSE_THREADS=no'
9312                           fi
9313                           cache=yes
9314
9315 else
9316
9317                           LINE=`grep "^wxUSE_THREADS=" ${wx_arg_cache_file}`
9318                           if test "x$LINE" != x ; then
9319                               eval "DEFAULT_$LINE"
9320                               cache=yes
9321                           else
9322                               cache=no
9323                           fi
9324
9325                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
9326
9327 fi
9328
9329
9330           eval "$wx_cv_use_threads"
9331           if test "x$cache" = xyes; then
9332             echo "wxUSE_THREADS=$wxUSE_THREADS" >> ${wx_arg_cache_file}.tmp
9333           fi
9334
9335           if test x"$enablestring" = xdisable; then
9336             if test $wxUSE_THREADS = yes; then
9337               result=no
9338             else
9339               result=yes
9340             fi
9341           else
9342             result=$wxUSE_THREADS
9343           fi
9344
9345           { echo "$as_me:$LINENO: result: $result" >&5
9346 echo "${ECHO_T}$result" >&6; }
9347
9348
9349
9350           enablestring=
9351           defaultval=
9352           if test -z "$defaultval"; then
9353               if test x"$enablestring" = xdisable; then
9354                   defaultval=yes
9355               else
9356                   defaultval=no
9357               fi
9358           fi
9359
9360           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
9361 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
9362           # Check whether --enable-iniconf was given.
9363 if test "${enable_iniconf+set}" = set; then
9364   enableval=$enable_iniconf;
9365                           if test "$enableval" = yes; then
9366                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
9367                           else
9368                             wx_cv_use_iniconf='wxUSE_INICONF=no'
9369                           fi
9370                           cache=yes
9371
9372 else
9373
9374                           LINE=`grep "^wxUSE_INICONF=" ${wx_arg_cache_file}`
9375                           if test "x$LINE" != x ; then
9376                               eval "DEFAULT_$LINE"
9377                               cache=yes
9378                           else
9379                               cache=no
9380                           fi
9381
9382                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
9383
9384 fi
9385
9386
9387           eval "$wx_cv_use_iniconf"
9388           if test "x$cache" = xyes; then
9389             echo "wxUSE_INICONF=$wxUSE_INICONF" >> ${wx_arg_cache_file}.tmp
9390           fi
9391
9392           if test x"$enablestring" = xdisable; then
9393             if test $wxUSE_INICONF = yes; then
9394               result=no
9395             else
9396               result=yes
9397             fi
9398           else
9399             result=$wxUSE_INICONF
9400           fi
9401
9402           { echo "$as_me:$LINENO: result: $result" >&5
9403 echo "${ECHO_T}$result" >&6; }
9404
9405
9406           enablestring=
9407           defaultval=$wxUSE_ALL_FEATURES
9408           if test -z "$defaultval"; then
9409               if test x"$enablestring" = xdisable; then
9410                   defaultval=yes
9411               else
9412                   defaultval=no
9413               fi
9414           fi
9415
9416           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
9417 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
9418           # Check whether --enable-regkey was given.
9419 if test "${enable_regkey+set}" = set; then
9420   enableval=$enable_regkey;
9421                           if test "$enableval" = yes; then
9422                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
9423                           else
9424                             wx_cv_use_regkey='wxUSE_REGKEY=no'
9425                           fi
9426                           cache=yes
9427
9428 else
9429
9430                           LINE=`grep "^wxUSE_REGKEY=" ${wx_arg_cache_file}`
9431                           if test "x$LINE" != x ; then
9432                               eval "DEFAULT_$LINE"
9433                               cache=yes
9434                           else
9435                               cache=no
9436                           fi
9437
9438                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
9439
9440 fi
9441
9442
9443           eval "$wx_cv_use_regkey"
9444           if test "x$cache" = xyes; then
9445             echo "wxUSE_REGKEY=$wxUSE_REGKEY" >> ${wx_arg_cache_file}.tmp
9446           fi
9447
9448           if test x"$enablestring" = xdisable; then
9449             if test $wxUSE_REGKEY = yes; then
9450               result=no
9451             else
9452               result=yes
9453             fi
9454           else
9455             result=$wxUSE_REGKEY
9456           fi
9457
9458           { echo "$as_me:$LINENO: result: $result" >&5
9459 echo "${ECHO_T}$result" >&6; }
9460
9461
9462 if test "$wxUSE_GUI" = "yes"; then
9463
9464
9465
9466           enablestring=
9467           defaultval=$wxUSE_ALL_FEATURES
9468           if test -z "$defaultval"; then
9469               if test x"$enablestring" = xdisable; then
9470                   defaultval=yes
9471               else
9472                   defaultval=no
9473               fi
9474           fi
9475
9476           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
9477 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
9478           # Check whether --enable-docview was given.
9479 if test "${enable_docview+set}" = set; then
9480   enableval=$enable_docview;
9481                           if test "$enableval" = yes; then
9482                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
9483                           else
9484                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
9485                           fi
9486                           cache=yes
9487
9488 else
9489
9490                           LINE=`grep "^wxUSE_DOC_VIEW_ARCHITECTURE=" ${wx_arg_cache_file}`
9491                           if test "x$LINE" != x ; then
9492                               eval "DEFAULT_$LINE"
9493                               cache=yes
9494                           else
9495                               cache=no
9496                           fi
9497
9498                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
9499
9500 fi
9501
9502
9503           eval "$wx_cv_use_docview"
9504           if test "x$cache" = xyes; then
9505             echo "wxUSE_DOC_VIEW_ARCHITECTURE=$wxUSE_DOC_VIEW_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9506           fi
9507
9508           if test x"$enablestring" = xdisable; then
9509             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
9510               result=no
9511             else
9512               result=yes
9513             fi
9514           else
9515             result=$wxUSE_DOC_VIEW_ARCHITECTURE
9516           fi
9517
9518           { echo "$as_me:$LINENO: result: $result" >&5
9519 echo "${ECHO_T}$result" >&6; }
9520
9521
9522           enablestring=
9523           defaultval=$wxUSE_ALL_FEATURES
9524           if test -z "$defaultval"; then
9525               if test x"$enablestring" = xdisable; then
9526                   defaultval=yes
9527               else
9528                   defaultval=no
9529               fi
9530           fi
9531
9532           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
9533 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
9534           # Check whether --enable-help was given.
9535 if test "${enable_help+set}" = set; then
9536   enableval=$enable_help;
9537                           if test "$enableval" = yes; then
9538                             wx_cv_use_help='wxUSE_HELP=yes'
9539                           else
9540                             wx_cv_use_help='wxUSE_HELP=no'
9541                           fi
9542                           cache=yes
9543
9544 else
9545
9546                           LINE=`grep "^wxUSE_HELP=" ${wx_arg_cache_file}`
9547                           if test "x$LINE" != x ; then
9548                               eval "DEFAULT_$LINE"
9549                               cache=yes
9550                           else
9551                               cache=no
9552                           fi
9553
9554                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
9555
9556 fi
9557
9558
9559           eval "$wx_cv_use_help"
9560           if test "x$cache" = xyes; then
9561             echo "wxUSE_HELP=$wxUSE_HELP" >> ${wx_arg_cache_file}.tmp
9562           fi
9563
9564           if test x"$enablestring" = xdisable; then
9565             if test $wxUSE_HELP = yes; then
9566               result=no
9567             else
9568               result=yes
9569             fi
9570           else
9571             result=$wxUSE_HELP
9572           fi
9573
9574           { echo "$as_me:$LINENO: result: $result" >&5
9575 echo "${ECHO_T}$result" >&6; }
9576
9577
9578           enablestring=
9579           defaultval=$wxUSE_ALL_FEATURES
9580           if test -z "$defaultval"; then
9581               if test x"$enablestring" = xdisable; then
9582                   defaultval=yes
9583               else
9584                   defaultval=no
9585               fi
9586           fi
9587
9588           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
9589 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
9590           # Check whether --enable-mshtmlhelp was given.
9591 if test "${enable_mshtmlhelp+set}" = set; then
9592   enableval=$enable_mshtmlhelp;
9593                           if test "$enableval" = yes; then
9594                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
9595                           else
9596                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
9597                           fi
9598                           cache=yes
9599
9600 else
9601
9602                           LINE=`grep "^wxUSE_MS_HTML_HELP=" ${wx_arg_cache_file}`
9603                           if test "x$LINE" != x ; then
9604                               eval "DEFAULT_$LINE"
9605                               cache=yes
9606                           else
9607                               cache=no
9608                           fi
9609
9610                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
9611
9612 fi
9613
9614
9615           eval "$wx_cv_use_mshtmlhelp"
9616           if test "x$cache" = xyes; then
9617             echo "wxUSE_MS_HTML_HELP=$wxUSE_MS_HTML_HELP" >> ${wx_arg_cache_file}.tmp
9618           fi
9619
9620           if test x"$enablestring" = xdisable; then
9621             if test $wxUSE_MS_HTML_HELP = yes; then
9622               result=no
9623             else
9624               result=yes
9625             fi
9626           else
9627             result=$wxUSE_MS_HTML_HELP
9628           fi
9629
9630           { echo "$as_me:$LINENO: result: $result" >&5
9631 echo "${ECHO_T}$result" >&6; }
9632
9633
9634           enablestring=
9635           defaultval=$wxUSE_ALL_FEATURES
9636           if test -z "$defaultval"; then
9637               if test x"$enablestring" = xdisable; then
9638                   defaultval=yes
9639               else
9640                   defaultval=no
9641               fi
9642           fi
9643
9644           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
9645 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
9646           # Check whether --enable-html was given.
9647 if test "${enable_html+set}" = set; then
9648   enableval=$enable_html;
9649                           if test "$enableval" = yes; then
9650                             wx_cv_use_html='wxUSE_HTML=yes'
9651                           else
9652                             wx_cv_use_html='wxUSE_HTML=no'
9653                           fi
9654                           cache=yes
9655
9656 else
9657
9658                           LINE=`grep "^wxUSE_HTML=" ${wx_arg_cache_file}`
9659                           if test "x$LINE" != x ; then
9660                               eval "DEFAULT_$LINE"
9661                               cache=yes
9662                           else
9663                               cache=no
9664                           fi
9665
9666                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
9667
9668 fi
9669
9670
9671           eval "$wx_cv_use_html"
9672           if test "x$cache" = xyes; then
9673             echo "wxUSE_HTML=$wxUSE_HTML" >> ${wx_arg_cache_file}.tmp
9674           fi
9675
9676           if test x"$enablestring" = xdisable; then
9677             if test $wxUSE_HTML = yes; then
9678               result=no
9679             else
9680               result=yes
9681             fi
9682           else
9683             result=$wxUSE_HTML
9684           fi
9685
9686           { echo "$as_me:$LINENO: result: $result" >&5
9687 echo "${ECHO_T}$result" >&6; }
9688
9689
9690           enablestring=
9691           defaultval=$wxUSE_ALL_FEATURES
9692           if test -z "$defaultval"; then
9693               if test x"$enablestring" = xdisable; then
9694                   defaultval=yes
9695               else
9696                   defaultval=no
9697               fi
9698           fi
9699
9700           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
9701 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
9702           # Check whether --enable-htmlhelp was given.
9703 if test "${enable_htmlhelp+set}" = set; then
9704   enableval=$enable_htmlhelp;
9705                           if test "$enableval" = yes; then
9706                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
9707                           else
9708                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
9709                           fi
9710                           cache=yes
9711
9712 else
9713
9714                           LINE=`grep "^wxUSE_WXHTML_HELP=" ${wx_arg_cache_file}`
9715                           if test "x$LINE" != x ; then
9716                               eval "DEFAULT_$LINE"
9717                               cache=yes
9718                           else
9719                               cache=no
9720                           fi
9721
9722                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
9723
9724 fi
9725
9726
9727           eval "$wx_cv_use_htmlhelp"
9728           if test "x$cache" = xyes; then
9729             echo "wxUSE_WXHTML_HELP=$wxUSE_WXHTML_HELP" >> ${wx_arg_cache_file}.tmp
9730           fi
9731
9732           if test x"$enablestring" = xdisable; then
9733             if test $wxUSE_WXHTML_HELP = yes; then
9734               result=no
9735             else
9736               result=yes
9737             fi
9738           else
9739             result=$wxUSE_WXHTML_HELP
9740           fi
9741
9742           { echo "$as_me:$LINENO: result: $result" >&5
9743 echo "${ECHO_T}$result" >&6; }
9744
9745
9746           enablestring=
9747           defaultval=$wxUSE_ALL_FEATURES
9748           if test -z "$defaultval"; then
9749               if test x"$enablestring" = xdisable; then
9750                   defaultval=yes
9751               else
9752                   defaultval=no
9753               fi
9754           fi
9755
9756           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
9757 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
9758           # Check whether --enable-xrc was given.
9759 if test "${enable_xrc+set}" = set; then
9760   enableval=$enable_xrc;
9761                           if test "$enableval" = yes; then
9762                             wx_cv_use_xrc='wxUSE_XRC=yes'
9763                           else
9764                             wx_cv_use_xrc='wxUSE_XRC=no'
9765                           fi
9766                           cache=yes
9767
9768 else
9769
9770                           LINE=`grep "^wxUSE_XRC=" ${wx_arg_cache_file}`
9771                           if test "x$LINE" != x ; then
9772                               eval "DEFAULT_$LINE"
9773                               cache=yes
9774                           else
9775                               cache=no
9776                           fi
9777
9778                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
9779
9780 fi
9781
9782
9783           eval "$wx_cv_use_xrc"
9784           if test "x$cache" = xyes; then
9785             echo "wxUSE_XRC=$wxUSE_XRC" >> ${wx_arg_cache_file}.tmp
9786           fi
9787
9788           if test x"$enablestring" = xdisable; then
9789             if test $wxUSE_XRC = yes; then
9790               result=no
9791             else
9792               result=yes
9793             fi
9794           else
9795             result=$wxUSE_XRC
9796           fi
9797
9798           { echo "$as_me:$LINENO: result: $result" >&5
9799 echo "${ECHO_T}$result" >&6; }
9800
9801
9802           enablestring=
9803           defaultval=$wxUSE_ALL_FEATURES
9804           if test -z "$defaultval"; then
9805               if test x"$enablestring" = xdisable; then
9806                   defaultval=yes
9807               else
9808                   defaultval=no
9809               fi
9810           fi
9811
9812           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
9813 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
9814           # Check whether --enable-aui was given.
9815 if test "${enable_aui+set}" = set; then
9816   enableval=$enable_aui;
9817                           if test "$enableval" = yes; then
9818                             wx_cv_use_aui='wxUSE_AUI=yes'
9819                           else
9820                             wx_cv_use_aui='wxUSE_AUI=no'
9821                           fi
9822                           cache=yes
9823
9824 else
9825
9826                           LINE=`grep "^wxUSE_AUI=" ${wx_arg_cache_file}`
9827                           if test "x$LINE" != x ; then
9828                               eval "DEFAULT_$LINE"
9829                               cache=yes
9830                           else
9831                               cache=no
9832                           fi
9833
9834                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
9835
9836 fi
9837
9838
9839           eval "$wx_cv_use_aui"
9840           if test "x$cache" = xyes; then
9841             echo "wxUSE_AUI=$wxUSE_AUI" >> ${wx_arg_cache_file}.tmp
9842           fi
9843
9844           if test x"$enablestring" = xdisable; then
9845             if test $wxUSE_AUI = yes; then
9846               result=no
9847             else
9848               result=yes
9849             fi
9850           else
9851             result=$wxUSE_AUI
9852           fi
9853
9854           { echo "$as_me:$LINENO: result: $result" >&5
9855 echo "${ECHO_T}$result" >&6; }
9856
9857
9858           enablestring=
9859           defaultval=$wxUSE_ALL_FEATURES
9860           if test -z "$defaultval"; then
9861               if test x"$enablestring" = xdisable; then
9862                   defaultval=yes
9863               else
9864                   defaultval=no
9865               fi
9866           fi
9867
9868           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9869 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9870           # Check whether --enable-stc was given.
9871 if test "${enable_stc+set}" = set; then
9872   enableval=$enable_stc;
9873                           if test "$enableval" = yes; then
9874                             wx_cv_use_stc='wxUSE_STC=yes'
9875                           else
9876                             wx_cv_use_stc='wxUSE_STC=no'
9877                           fi
9878                           cache=yes
9879
9880 else
9881
9882                           LINE=`grep "^wxUSE_STC=" ${wx_arg_cache_file}`
9883                           if test "x$LINE" != x ; then
9884                               eval "DEFAULT_$LINE"
9885                               cache=yes
9886                           else
9887                               cache=no
9888                           fi
9889
9890                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9891
9892 fi
9893
9894
9895           eval "$wx_cv_use_stc"
9896           if test "x$cache" = xyes; then
9897             echo "wxUSE_STC=$wxUSE_STC" >> ${wx_arg_cache_file}.tmp
9898           fi
9899
9900           if test x"$enablestring" = xdisable; then
9901             if test $wxUSE_STC = yes; then
9902               result=no
9903             else
9904               result=yes
9905             fi
9906           else
9907             result=$wxUSE_STC
9908           fi
9909
9910           { echo "$as_me:$LINENO: result: $result" >&5
9911 echo "${ECHO_T}$result" >&6; }
9912
9913
9914           enablestring=
9915           defaultval=$wxUSE_ALL_FEATURES
9916           if test -z "$defaultval"; then
9917               if test x"$enablestring" = xdisable; then
9918                   defaultval=yes
9919               else
9920                   defaultval=no
9921               fi
9922           fi
9923
9924           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9925 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9926           # Check whether --enable-constraints was given.
9927 if test "${enable_constraints+set}" = set; then
9928   enableval=$enable_constraints;
9929                           if test "$enableval" = yes; then
9930                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9931                           else
9932                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9933                           fi
9934                           cache=yes
9935
9936 else
9937
9938                           LINE=`grep "^wxUSE_CONSTRAINTS=" ${wx_arg_cache_file}`
9939                           if test "x$LINE" != x ; then
9940                               eval "DEFAULT_$LINE"
9941                               cache=yes
9942                           else
9943                               cache=no
9944                           fi
9945
9946                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9947
9948 fi
9949
9950
9951           eval "$wx_cv_use_constraints"
9952           if test "x$cache" = xyes; then
9953             echo "wxUSE_CONSTRAINTS=$wxUSE_CONSTRAINTS" >> ${wx_arg_cache_file}.tmp
9954           fi
9955
9956           if test x"$enablestring" = xdisable; then
9957             if test $wxUSE_CONSTRAINTS = yes; then
9958               result=no
9959             else
9960               result=yes
9961             fi
9962           else
9963             result=$wxUSE_CONSTRAINTS
9964           fi
9965
9966           { echo "$as_me:$LINENO: result: $result" >&5
9967 echo "${ECHO_T}$result" >&6; }
9968
9969
9970           enablestring=
9971           defaultval=$wxUSE_ALL_FEATURES
9972           if test -z "$defaultval"; then
9973               if test x"$enablestring" = xdisable; then
9974                   defaultval=yes
9975               else
9976                   defaultval=no
9977               fi
9978           fi
9979
9980           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9981 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9982           # Check whether --enable-printarch was given.
9983 if test "${enable_printarch+set}" = set; then
9984   enableval=$enable_printarch;
9985                           if test "$enableval" = yes; then
9986                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9987                           else
9988                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9989                           fi
9990                           cache=yes
9991
9992 else
9993
9994                           LINE=`grep "^wxUSE_PRINTING_ARCHITECTURE=" ${wx_arg_cache_file}`
9995                           if test "x$LINE" != x ; then
9996                               eval "DEFAULT_$LINE"
9997                               cache=yes
9998                           else
9999                               cache=no
10000                           fi
10001
10002                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
10003
10004 fi
10005
10006
10007           eval "$wx_cv_use_printarch"
10008           if test "x$cache" = xyes; then
10009             echo "wxUSE_PRINTING_ARCHITECTURE=$wxUSE_PRINTING_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
10010           fi
10011
10012           if test x"$enablestring" = xdisable; then
10013             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
10014               result=no
10015             else
10016               result=yes
10017             fi
10018           else
10019             result=$wxUSE_PRINTING_ARCHITECTURE
10020           fi
10021
10022           { echo "$as_me:$LINENO: result: $result" >&5
10023 echo "${ECHO_T}$result" >&6; }
10024
10025
10026           enablestring=
10027           defaultval=$wxUSE_ALL_FEATURES
10028           if test -z "$defaultval"; then
10029               if test x"$enablestring" = xdisable; then
10030                   defaultval=yes
10031               else
10032                   defaultval=no
10033               fi
10034           fi
10035
10036           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
10037 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
10038           # Check whether --enable-mdi was given.
10039 if test "${enable_mdi+set}" = set; then
10040   enableval=$enable_mdi;
10041                           if test "$enableval" = yes; then
10042                             wx_cv_use_mdi='wxUSE_MDI=yes'
10043                           else
10044                             wx_cv_use_mdi='wxUSE_MDI=no'
10045                           fi
10046                           cache=yes
10047
10048 else
10049
10050                           LINE=`grep "^wxUSE_MDI=" ${wx_arg_cache_file}`
10051                           if test "x$LINE" != x ; then
10052                               eval "DEFAULT_$LINE"
10053                               cache=yes
10054                           else
10055                               cache=no
10056                           fi
10057
10058                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
10059
10060 fi
10061
10062
10063           eval "$wx_cv_use_mdi"
10064           if test "x$cache" = xyes; then
10065             echo "wxUSE_MDI=$wxUSE_MDI" >> ${wx_arg_cache_file}.tmp
10066           fi
10067
10068           if test x"$enablestring" = xdisable; then
10069             if test $wxUSE_MDI = yes; then
10070               result=no
10071             else
10072               result=yes
10073             fi
10074           else
10075             result=$wxUSE_MDI
10076           fi
10077
10078           { echo "$as_me:$LINENO: result: $result" >&5
10079 echo "${ECHO_T}$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           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
10093 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
10094           # Check whether --enable-mdidoc was given.
10095 if test "${enable_mdidoc+set}" = set; then
10096   enableval=$enable_mdidoc;
10097                           if test "$enableval" = yes; then
10098                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
10099                           else
10100                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
10101                           fi
10102                           cache=yes
10103
10104 else
10105
10106                           LINE=`grep "^wxUSE_MDI_ARCHITECTURE=" ${wx_arg_cache_file}`
10107                           if test "x$LINE" != x ; then
10108                               eval "DEFAULT_$LINE"
10109                               cache=yes
10110                           else
10111                               cache=no
10112                           fi
10113
10114                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
10115
10116 fi
10117
10118
10119           eval "$wx_cv_use_mdidoc"
10120           if test "x$cache" = xyes; then
10121             echo "wxUSE_MDI_ARCHITECTURE=$wxUSE_MDI_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
10122           fi
10123
10124           if test x"$enablestring" = xdisable; then
10125             if test $wxUSE_MDI_ARCHITECTURE = yes; then
10126               result=no
10127             else
10128               result=yes
10129             fi
10130           else
10131             result=$wxUSE_MDI_ARCHITECTURE
10132           fi
10133
10134           { echo "$as_me:$LINENO: result: $result" >&5
10135 echo "${ECHO_T}$result" >&6; }
10136
10137
10138           enablestring=
10139           defaultval=$wxUSE_ALL_FEATURES
10140           if test -z "$defaultval"; then
10141               if test x"$enablestring" = xdisable; then
10142                   defaultval=yes
10143               else
10144                   defaultval=no
10145               fi
10146           fi
10147
10148           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
10149 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
10150           # Check whether --enable-loggui was given.
10151 if test "${enable_loggui+set}" = set; then
10152   enableval=$enable_loggui;
10153                           if test "$enableval" = yes; then
10154                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
10155                           else
10156                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
10157                           fi
10158                           cache=yes
10159
10160 else
10161
10162                           LINE=`grep "^wxUSE_LOGGUI=" ${wx_arg_cache_file}`
10163                           if test "x$LINE" != x ; then
10164                               eval "DEFAULT_$LINE"
10165                               cache=yes
10166                           else
10167                               cache=no
10168                           fi
10169
10170                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
10171
10172 fi
10173
10174
10175           eval "$wx_cv_use_loggui"
10176           if test "x$cache" = xyes; then
10177             echo "wxUSE_LOGGUI=$wxUSE_LOGGUI" >> ${wx_arg_cache_file}.tmp
10178           fi
10179
10180           if test x"$enablestring" = xdisable; then
10181             if test $wxUSE_LOGGUI = yes; then
10182               result=no
10183             else
10184               result=yes
10185             fi
10186           else
10187             result=$wxUSE_LOGGUI
10188           fi
10189
10190           { echo "$as_me:$LINENO: result: $result" >&5
10191 echo "${ECHO_T}$result" >&6; }
10192
10193
10194           enablestring=
10195           defaultval=$wxUSE_ALL_FEATURES
10196           if test -z "$defaultval"; then
10197               if test x"$enablestring" = xdisable; then
10198                   defaultval=yes
10199               else
10200                   defaultval=no
10201               fi
10202           fi
10203
10204           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
10205 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
10206           # Check whether --enable-logwin was given.
10207 if test "${enable_logwin+set}" = set; then
10208   enableval=$enable_logwin;
10209                           if test "$enableval" = yes; then
10210                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
10211                           else
10212                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
10213                           fi
10214                           cache=yes
10215
10216 else
10217
10218                           LINE=`grep "^wxUSE_LOGWINDOW=" ${wx_arg_cache_file}`
10219                           if test "x$LINE" != x ; then
10220                               eval "DEFAULT_$LINE"
10221                               cache=yes
10222                           else
10223                               cache=no
10224                           fi
10225
10226                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
10227
10228 fi
10229
10230
10231           eval "$wx_cv_use_logwin"
10232           if test "x$cache" = xyes; then
10233             echo "wxUSE_LOGWINDOW=$wxUSE_LOGWINDOW" >> ${wx_arg_cache_file}.tmp
10234           fi
10235
10236           if test x"$enablestring" = xdisable; then
10237             if test $wxUSE_LOGWINDOW = yes; then
10238               result=no
10239             else
10240               result=yes
10241             fi
10242           else
10243             result=$wxUSE_LOGWINDOW
10244           fi
10245
10246           { echo "$as_me:$LINENO: result: $result" >&5
10247 echo "${ECHO_T}$result" >&6; }
10248
10249
10250           enablestring=
10251           defaultval=$wxUSE_ALL_FEATURES
10252           if test -z "$defaultval"; then
10253               if test x"$enablestring" = xdisable; then
10254                   defaultval=yes
10255               else
10256                   defaultval=no
10257               fi
10258           fi
10259
10260           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
10261 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
10262           # Check whether --enable-logdialog was given.
10263 if test "${enable_logdialog+set}" = set; then
10264   enableval=$enable_logdialog;
10265                           if test "$enableval" = yes; then
10266                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
10267                           else
10268                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
10269                           fi
10270                           cache=yes
10271
10272 else
10273
10274                           LINE=`grep "^wxUSE_LOGDIALOG=" ${wx_arg_cache_file}`
10275                           if test "x$LINE" != x ; then
10276                               eval "DEFAULT_$LINE"
10277                               cache=yes
10278                           else
10279                               cache=no
10280                           fi
10281
10282                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
10283
10284 fi
10285
10286
10287           eval "$wx_cv_use_logdialog"
10288           if test "x$cache" = xyes; then
10289             echo "wxUSE_LOGDIALOG=$wxUSE_LOGDIALOG" >> ${wx_arg_cache_file}.tmp
10290           fi
10291
10292           if test x"$enablestring" = xdisable; then
10293             if test $wxUSE_LOGDIALOG = yes; then
10294               result=no
10295             else
10296               result=yes
10297             fi
10298           else
10299             result=$wxUSE_LOGDIALOG
10300           fi
10301
10302           { echo "$as_me:$LINENO: result: $result" >&5
10303 echo "${ECHO_T}$result" >&6; }
10304
10305
10306           enablestring=
10307           defaultval=$wxUSE_ALL_FEATURES
10308           if test -z "$defaultval"; then
10309               if test x"$enablestring" = xdisable; then
10310                   defaultval=yes
10311               else
10312                   defaultval=no
10313               fi
10314           fi
10315
10316           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
10317 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
10318           # Check whether --enable-webkit was given.
10319 if test "${enable_webkit+set}" = set; then
10320   enableval=$enable_webkit;
10321                           if test "$enableval" = yes; then
10322                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
10323                           else
10324                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
10325                           fi
10326                           cache=yes
10327
10328 else
10329
10330                           LINE=`grep "^wxUSE_WEBKIT=" ${wx_arg_cache_file}`
10331                           if test "x$LINE" != x ; then
10332                               eval "DEFAULT_$LINE"
10333                               cache=yes
10334                           else
10335                               cache=no
10336                           fi
10337
10338                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
10339
10340 fi
10341
10342
10343           eval "$wx_cv_use_webkit"
10344           if test "x$cache" = xyes; then
10345             echo "wxUSE_WEBKIT=$wxUSE_WEBKIT" >> ${wx_arg_cache_file}.tmp
10346           fi
10347
10348           if test x"$enablestring" = xdisable; then
10349             if test $wxUSE_WEBKIT = yes; then
10350               result=no
10351             else
10352               result=yes
10353             fi
10354           else
10355             result=$wxUSE_WEBKIT
10356           fi
10357
10358           { echo "$as_me:$LINENO: result: $result" >&5
10359 echo "${ECHO_T}$result" >&6; }
10360
10361
10362           enablestring=
10363           defaultval=$wxUSE_ALL_FEATURES
10364           if test -z "$defaultval"; then
10365               if test x"$enablestring" = xdisable; then
10366                   defaultval=yes
10367               else
10368                   defaultval=no
10369               fi
10370           fi
10371
10372           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
10373 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
10374           # Check whether --enable-richtext was given.
10375 if test "${enable_richtext+set}" = set; then
10376   enableval=$enable_richtext;
10377                           if test "$enableval" = yes; then
10378                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
10379                           else
10380                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
10381                           fi
10382                           cache=yes
10383
10384 else
10385
10386                           LINE=`grep "^wxUSE_RICHTEXT=" ${wx_arg_cache_file}`
10387                           if test "x$LINE" != x ; then
10388                               eval "DEFAULT_$LINE"
10389                               cache=yes
10390                           else
10391                               cache=no
10392                           fi
10393
10394                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
10395
10396 fi
10397
10398
10399           eval "$wx_cv_use_richtext"
10400           if test "x$cache" = xyes; then
10401             echo "wxUSE_RICHTEXT=$wxUSE_RICHTEXT" >> ${wx_arg_cache_file}.tmp
10402           fi
10403
10404           if test x"$enablestring" = xdisable; then
10405             if test $wxUSE_RICHTEXT = yes; then
10406               result=no
10407             else
10408               result=yes
10409             fi
10410           else
10411             result=$wxUSE_RICHTEXT
10412           fi
10413
10414           { echo "$as_me:$LINENO: result: $result" >&5
10415 echo "${ECHO_T}$result" >&6; }
10416
10417
10418           enablestring=
10419           defaultval=$wxUSE_ALL_FEATURES
10420           if test -z "$defaultval"; then
10421               if test x"$enablestring" = xdisable; then
10422                   defaultval=yes
10423               else
10424                   defaultval=no
10425               fi
10426           fi
10427
10428           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
10429 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
10430           # Check whether --enable-graphics_ctx was given.
10431 if test "${enable_graphics_ctx+set}" = set; then
10432   enableval=$enable_graphics_ctx;
10433                           if test "$enableval" = yes; then
10434                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
10435                           else
10436                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
10437                           fi
10438                           cache=yes
10439
10440 else
10441
10442                           LINE=`grep "^wxUSE_GRAPHICS_CONTEXT=" ${wx_arg_cache_file}`
10443                           if test "x$LINE" != x ; then
10444                               eval "DEFAULT_$LINE"
10445                               cache=yes
10446                           else
10447                               cache=no
10448                           fi
10449
10450                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
10451
10452 fi
10453
10454
10455           eval "$wx_cv_use_graphics_ctx"
10456           if test "x$cache" = xyes; then
10457             echo "wxUSE_GRAPHICS_CONTEXT=$wxUSE_GRAPHICS_CONTEXT" >> ${wx_arg_cache_file}.tmp
10458           fi
10459
10460           if test x"$enablestring" = xdisable; then
10461             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
10462               result=no
10463             else
10464               result=yes
10465             fi
10466           else
10467             result=$wxUSE_GRAPHICS_CONTEXT
10468           fi
10469
10470           { echo "$as_me:$LINENO: result: $result" >&5
10471 echo "${ECHO_T}$result" >&6; }
10472
10473
10474           enablestring=
10475           defaultval=$wxUSE_ALL_FEATURES
10476           if test -z "$defaultval"; then
10477               if test x"$enablestring" = xdisable; then
10478                   defaultval=yes
10479               else
10480                   defaultval=no
10481               fi
10482           fi
10483
10484           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
10485 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
10486           # Check whether --enable-postscript was given.
10487 if test "${enable_postscript+set}" = set; then
10488   enableval=$enable_postscript;
10489                           if test "$enableval" = yes; then
10490                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
10491                           else
10492                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
10493                           fi
10494                           cache=yes
10495
10496 else
10497
10498                           LINE=`grep "^wxUSE_POSTSCRIPT=" ${wx_arg_cache_file}`
10499                           if test "x$LINE" != x ; then
10500                               eval "DEFAULT_$LINE"
10501                               cache=yes
10502                           else
10503                               cache=no
10504                           fi
10505
10506                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
10507
10508 fi
10509
10510
10511           eval "$wx_cv_use_postscript"
10512           if test "x$cache" = xyes; then
10513             echo "wxUSE_POSTSCRIPT=$wxUSE_POSTSCRIPT" >> ${wx_arg_cache_file}.tmp
10514           fi
10515
10516           if test x"$enablestring" = xdisable; then
10517             if test $wxUSE_POSTSCRIPT = yes; then
10518               result=no
10519             else
10520               result=yes
10521             fi
10522           else
10523             result=$wxUSE_POSTSCRIPT
10524           fi
10525
10526           { echo "$as_me:$LINENO: result: $result" >&5
10527 echo "${ECHO_T}$result" >&6; }
10528
10529
10530           enablestring=
10531           defaultval=$wxUSE_ALL_FEATURES
10532           if test -z "$defaultval"; then
10533               if test x"$enablestring" = xdisable; then
10534                   defaultval=yes
10535               else
10536                   defaultval=no
10537               fi
10538           fi
10539
10540           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
10541 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
10542           # Check whether --enable-svg was given.
10543 if test "${enable_svg+set}" = set; then
10544   enableval=$enable_svg;
10545                           if test "$enableval" = yes; then
10546                             wx_cv_use_svg='wxUSE_SVG=yes'
10547                           else
10548                             wx_cv_use_svg='wxUSE_SVG=no'
10549                           fi
10550                           cache=yes
10551
10552 else
10553
10554                           LINE=`grep "^wxUSE_SVG=" ${wx_arg_cache_file}`
10555                           if test "x$LINE" != x ; then
10556                               eval "DEFAULT_$LINE"
10557                               cache=yes
10558                           else
10559                               cache=no
10560                           fi
10561
10562                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
10563
10564 fi
10565
10566
10567           eval "$wx_cv_use_svg"
10568           if test "x$cache" = xyes; then
10569             echo "wxUSE_SVG=$wxUSE_SVG" >> ${wx_arg_cache_file}.tmp
10570           fi
10571
10572           if test x"$enablestring" = xdisable; then
10573             if test $wxUSE_SVG = yes; then
10574               result=no
10575             else
10576               result=yes
10577             fi
10578           else
10579             result=$wxUSE_SVG
10580           fi
10581
10582           { echo "$as_me:$LINENO: result: $result" >&5
10583 echo "${ECHO_T}$result" >&6; }
10584
10585
10586
10587
10588           enablestring=
10589           defaultval=$wxUSE_ALL_FEATURES
10590           if test -z "$defaultval"; then
10591               if test x"$enablestring" = xdisable; then
10592                   defaultval=yes
10593               else
10594                   defaultval=no
10595               fi
10596           fi
10597
10598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
10599 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
10600           # Check whether --enable-clipboard was given.
10601 if test "${enable_clipboard+set}" = set; then
10602   enableval=$enable_clipboard;
10603                           if test "$enableval" = yes; then
10604                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
10605                           else
10606                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
10607                           fi
10608                           cache=yes
10609
10610 else
10611
10612                           LINE=`grep "^wxUSE_CLIPBOARD=" ${wx_arg_cache_file}`
10613                           if test "x$LINE" != x ; then
10614                               eval "DEFAULT_$LINE"
10615                               cache=yes
10616                           else
10617                               cache=no
10618                           fi
10619
10620                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
10621
10622 fi
10623
10624
10625           eval "$wx_cv_use_clipboard"
10626           if test "x$cache" = xyes; then
10627             echo "wxUSE_CLIPBOARD=$wxUSE_CLIPBOARD" >> ${wx_arg_cache_file}.tmp
10628           fi
10629
10630           if test x"$enablestring" = xdisable; then
10631             if test $wxUSE_CLIPBOARD = yes; then
10632               result=no
10633             else
10634               result=yes
10635             fi
10636           else
10637             result=$wxUSE_CLIPBOARD
10638           fi
10639
10640           { echo "$as_me:$LINENO: result: $result" >&5
10641 echo "${ECHO_T}$result" >&6; }
10642
10643
10644           enablestring=
10645           defaultval=$wxUSE_ALL_FEATURES
10646           if test -z "$defaultval"; then
10647               if test x"$enablestring" = xdisable; then
10648                   defaultval=yes
10649               else
10650                   defaultval=no
10651               fi
10652           fi
10653
10654           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
10655 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
10656           # Check whether --enable-dnd was given.
10657 if test "${enable_dnd+set}" = set; then
10658   enableval=$enable_dnd;
10659                           if test "$enableval" = yes; then
10660                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
10661                           else
10662                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
10663                           fi
10664                           cache=yes
10665
10666 else
10667
10668                           LINE=`grep "^wxUSE_DRAG_AND_DROP=" ${wx_arg_cache_file}`
10669                           if test "x$LINE" != x ; then
10670                               eval "DEFAULT_$LINE"
10671                               cache=yes
10672                           else
10673                               cache=no
10674                           fi
10675
10676                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
10677
10678 fi
10679
10680
10681           eval "$wx_cv_use_dnd"
10682           if test "x$cache" = xyes; then
10683             echo "wxUSE_DRAG_AND_DROP=$wxUSE_DRAG_AND_DROP" >> ${wx_arg_cache_file}.tmp
10684           fi
10685
10686           if test x"$enablestring" = xdisable; then
10687             if test $wxUSE_DRAG_AND_DROP = yes; then
10688               result=no
10689             else
10690               result=yes
10691             fi
10692           else
10693             result=$wxUSE_DRAG_AND_DROP
10694           fi
10695
10696           { echo "$as_me:$LINENO: result: $result" >&5
10697 echo "${ECHO_T}$result" >&6; }
10698
10699
10700           enablestring=
10701           defaultval=$wxUSE_ALL_FEATURES
10702           if test -z "$defaultval"; then
10703               if test x"$enablestring" = xdisable; then
10704                   defaultval=yes
10705               else
10706                   defaultval=no
10707               fi
10708           fi
10709
10710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10711 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
10712           # Check whether --enable-metafile was given.
10713 if test "${enable_metafile+set}" = set; then
10714   enableval=$enable_metafile;
10715                           if test "$enableval" = yes; then
10716                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
10717                           else
10718                             wx_cv_use_metafile='wxUSE_METAFILE=no'
10719                           fi
10720                           cache=yes
10721
10722 else
10723
10724                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
10725                           if test "x$LINE" != x ; then
10726                               eval "DEFAULT_$LINE"
10727                               cache=yes
10728                           else
10729                               cache=no
10730                           fi
10731
10732                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
10733
10734 fi
10735
10736
10737           eval "$wx_cv_use_metafile"
10738           if test "x$cache" = xyes; then
10739             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
10740           fi
10741
10742           if test x"$enablestring" = xdisable; then
10743             if test $wxUSE_METAFILE = yes; then
10744               result=no
10745             else
10746               result=yes
10747             fi
10748           else
10749             result=$wxUSE_METAFILE
10750           fi
10751
10752           { echo "$as_me:$LINENO: result: $result" >&5
10753 echo "${ECHO_T}$result" >&6; }
10754
10755
10756
10757 DEFAULT_wxUSE_CONTROLS=none
10758
10759           enablestring=disable
10760           defaultval=
10761           if test -z "$defaultval"; then
10762               if test x"$enablestring" = xdisable; then
10763                   defaultval=yes
10764               else
10765                   defaultval=no
10766               fi
10767           fi
10768
10769           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
10770 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
10771           # Check whether --enable-controls was given.
10772 if test "${enable_controls+set}" = set; then
10773   enableval=$enable_controls;
10774                           if test "$enableval" = yes; then
10775                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
10776                           else
10777                             wx_cv_use_controls='wxUSE_CONTROLS=no'
10778                           fi
10779                           cache=yes
10780
10781 else
10782
10783                           LINE=`grep "^wxUSE_CONTROLS=" ${wx_arg_cache_file}`
10784                           if test "x$LINE" != x ; then
10785                               eval "DEFAULT_$LINE"
10786                               cache=yes
10787                           else
10788                               cache=no
10789                           fi
10790
10791                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
10792
10793 fi
10794
10795
10796           eval "$wx_cv_use_controls"
10797           if test "x$cache" = xyes; then
10798             echo "wxUSE_CONTROLS=$wxUSE_CONTROLS" >> ${wx_arg_cache_file}.tmp
10799           fi
10800
10801           if test x"$enablestring" = xdisable; then
10802             if test $wxUSE_CONTROLS = yes; then
10803               result=no
10804             else
10805               result=yes
10806             fi
10807           else
10808             result=$wxUSE_CONTROLS
10809           fi
10810
10811           { echo "$as_me:$LINENO: result: $result" >&5
10812 echo "${ECHO_T}$result" >&6; }
10813
10814
10815 if test "$wxUSE_CONTROLS" = "yes"; then
10816   DEFAULT_wxUSE_ACCEL=yes
10817   DEFAULT_wxUSE_ANIMATIONCTRL=yes
10818   DEFAULT_wxUSE_BMPBUTTON=yes
10819   DEFAULT_wxUSE_BUTTON=yes
10820   DEFAULT_wxUSE_CALCTRL=yes
10821   DEFAULT_wxUSE_CARET=yes
10822   DEFAULT_wxUSE_COMBOBOX=yes
10823   DEFAULT_wxUSE_CHECKBOX=yes
10824   DEFAULT_wxUSE_CHECKLISTBOX=yes
10825   DEFAULT_wxUSE_CHOICE=yes
10826   DEFAULT_wxUSE_CHOICEBOOK=yes
10827   DEFAULT_wxUSE_COLLPANE=yes
10828   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
10829   DEFAULT_wxUSE_COMBOBOX=yes
10830   DEFAULT_wxUSE_DATEPICKCTRL=yes
10831   DEFAULT_wxUSE_DISPLAY=yes
10832   DEFAULT_wxUSE_DETECT_SM=yes
10833   DEFAULT_wxUSE_DIRPICKERCTRL=yes
10834   DEFAULT_wxUSE_FILECTRL=yes
10835   DEFAULT_wxUSE_FILEPICKERCTRL=yes
10836   DEFAULT_wxUSE_FONTPICKERCTRL=yes
10837   DEFAULT_wxUSE_GAUGE=yes
10838   DEFAULT_wxUSE_GRID=yes
10839   DEFAULT_wxUSE_HYPERLINKCTRL=yes
10840   DEFAULT_wxUSE_DATAVIEWCTRL=no
10841   DEFAULT_wxUSE_IMAGLIST=yes
10842   DEFAULT_wxUSE_LISTBOOK=yes
10843   DEFAULT_wxUSE_LISTBOX=yes
10844   DEFAULT_wxUSE_LISTCTRL=yes
10845   DEFAULT_wxUSE_NOTEBOOK=yes
10846   DEFAULT_wxUSE_RADIOBOX=yes
10847   DEFAULT_wxUSE_RADIOBTN=yes
10848   DEFAULT_wxUSE_SASH=yes
10849   DEFAULT_wxUSE_SCROLLBAR=yes
10850   DEFAULT_wxUSE_SEARCHCTRL=yes
10851   DEFAULT_wxUSE_SLIDER=yes
10852   DEFAULT_wxUSE_SPINBTN=yes
10853   DEFAULT_wxUSE_SPINCTRL=yes
10854   DEFAULT_wxUSE_SPLITTER=yes
10855   DEFAULT_wxUSE_STATBMP=yes
10856   DEFAULT_wxUSE_STATBOX=yes
10857   DEFAULT_wxUSE_STATLINE=yes
10858   DEFAULT_wxUSE_STATUSBAR=yes
10859   DEFAULT_wxUSE_TAB_DIALOG=yes
10860   DEFAULT_wxUSE_TOGGLEBTN=yes
10861   DEFAULT_wxUSE_TOOLBAR=yes
10862   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
10863   DEFAULT_wxUSE_TOOLTIPS=yes
10864   DEFAULT_wxUSE_TREEBOOK=yes
10865   DEFAULT_wxUSE_TOOLBOOK=yes
10866   DEFAULT_wxUSE_TREECTRL=yes
10867   DEFAULT_wxUSE_POPUPWIN=yes
10868   DEFAULT_wxUSE_TIPWINDOW=yes
10869 elif test "$wxUSE_CONTROLS" = "no"; then
10870   DEFAULT_wxUSE_ACCEL=no
10871   DEFAULT_wxUSE_ANIMATIONCTRL=no
10872   DEFAULT_wxUSE_BMPBUTTON=no
10873   DEFAULT_wxUSE_BUTTON=no
10874   DEFAULT_wxUSE_CALCTRL=no
10875   DEFAULT_wxUSE_CARET=no
10876   DEFAULT_wxUSE_COLLPANE=no
10877   DEFAULT_wxUSE_COMBOBOX=no
10878   DEFAULT_wxUSE_CHECKBOX=no
10879   DEFAULT_wxUSE_CHECKLISTBOX=no
10880   DEFAULT_wxUSE_CHOICE=no
10881   DEFAULT_wxUSE_CHOICEBOOK=no
10882   DEFAULT_wxUSE_COLOURPICKERCTRL=no
10883   DEFAULT_wxUSE_COMBOBOX=no
10884   DEFAULT_wxUSE_DATEPICKCTRL=no
10885   DEFAULT_wxUSE_DISPLAY=no
10886   DEFAULT_wxUSE_DETECT_SM=no
10887   DEFAULT_wxUSE_DIRPICKERCTRL=no
10888   DEFAULT_wxUSE_FILECTRL=no
10889   DEFAULT_wxUSE_FILEPICKERCTRL=no
10890   DEFAULT_wxUSE_FONTPICKERCTRL=no
10891   DEFAULT_wxUSE_GAUGE=no
10892   DEFAULT_wxUSE_GRID=no
10893   DEFAULT_wxUSE_HYPERLINKCTRL=no
10894   DEFAULT_wxUSE_DATAVIEWCTRL=no
10895   DEFAULT_wxUSE_IMAGLIST=no
10896   DEFAULT_wxUSE_LISTBOOK=no
10897   DEFAULT_wxUSE_LISTBOX=no
10898   DEFAULT_wxUSE_LISTCTRL=no
10899   DEFAULT_wxUSE_NOTEBOOK=no
10900   DEFAULT_wxUSE_RADIOBOX=no
10901   DEFAULT_wxUSE_RADIOBTN=no
10902   DEFAULT_wxUSE_SASH=no
10903   DEFAULT_wxUSE_SCROLLBAR=no
10904   DEFAULT_wxUSE_SEARCHCTRL=no
10905   DEFAULT_wxUSE_SLIDER=no
10906   DEFAULT_wxUSE_SPINBTN=no
10907   DEFAULT_wxUSE_SPINCTRL=no
10908   DEFAULT_wxUSE_SPLITTER=no
10909   DEFAULT_wxUSE_STATBMP=no
10910   DEFAULT_wxUSE_STATBOX=no
10911   DEFAULT_wxUSE_STATLINE=no
10912   DEFAULT_wxUSE_STATUSBAR=no
10913   DEFAULT_wxUSE_TAB_DIALOG=no
10914   DEFAULT_wxUSE_TOGGLEBTN=no
10915   DEFAULT_wxUSE_TOOLBAR=no
10916   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
10917   DEFAULT_wxUSE_TOOLTIPS=no
10918   DEFAULT_wxUSE_TREEBOOK=no
10919   DEFAULT_wxUSE_TOOLBOOK=no
10920   DEFAULT_wxUSE_TREECTRL=no
10921   DEFAULT_wxUSE_POPUPWIN=no
10922   DEFAULT_wxUSE_TIPWINDOW=no
10923 fi
10924
10925
10926           enablestring=
10927           defaultval=$wxUSE_ALL_FEATURES
10928           if test -z "$defaultval"; then
10929               if test x"$enablestring" = xdisable; then
10930                   defaultval=yes
10931               else
10932                   defaultval=no
10933               fi
10934           fi
10935
10936           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
10937 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
10938           # Check whether --enable-accel was given.
10939 if test "${enable_accel+set}" = set; then
10940   enableval=$enable_accel;
10941                           if test "$enableval" = yes; then
10942                             wx_cv_use_accel='wxUSE_ACCEL=yes'
10943                           else
10944                             wx_cv_use_accel='wxUSE_ACCEL=no'
10945                           fi
10946                           cache=yes
10947
10948 else
10949
10950                           LINE=`grep "^wxUSE_ACCEL=" ${wx_arg_cache_file}`
10951                           if test "x$LINE" != x ; then
10952                               eval "DEFAULT_$LINE"
10953                               cache=yes
10954                           else
10955                               cache=no
10956                           fi
10957
10958                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
10959
10960 fi
10961
10962
10963           eval "$wx_cv_use_accel"
10964           if test "x$cache" = xyes; then
10965             echo "wxUSE_ACCEL=$wxUSE_ACCEL" >> ${wx_arg_cache_file}.tmp
10966           fi
10967
10968           if test x"$enablestring" = xdisable; then
10969             if test $wxUSE_ACCEL = yes; then
10970               result=no
10971             else
10972               result=yes
10973             fi
10974           else
10975             result=$wxUSE_ACCEL
10976           fi
10977
10978           { echo "$as_me:$LINENO: result: $result" >&5
10979 echo "${ECHO_T}$result" >&6; }
10980
10981
10982           enablestring=
10983           defaultval=$wxUSE_ALL_FEATURES
10984           if test -z "$defaultval"; then
10985               if test x"$enablestring" = xdisable; then
10986                   defaultval=yes
10987               else
10988                   defaultval=no
10989               fi
10990           fi
10991
10992           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10993 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10994           # Check whether --enable-animatectrl was given.
10995 if test "${enable_animatectrl+set}" = set; then
10996   enableval=$enable_animatectrl;
10997                           if test "$enableval" = yes; then
10998                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10999                           else
11000                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
11001                           fi
11002                           cache=yes
11003
11004 else
11005
11006                           LINE=`grep "^wxUSE_ANIMATIONCTRL=" ${wx_arg_cache_file}`
11007                           if test "x$LINE" != x ; then
11008                               eval "DEFAULT_$LINE"
11009                               cache=yes
11010                           else
11011                               cache=no
11012                           fi
11013
11014                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
11015
11016 fi
11017
11018
11019           eval "$wx_cv_use_animatectrl"
11020           if test "x$cache" = xyes; then
11021             echo "wxUSE_ANIMATIONCTRL=$wxUSE_ANIMATIONCTRL" >> ${wx_arg_cache_file}.tmp
11022           fi
11023
11024           if test x"$enablestring" = xdisable; then
11025             if test $wxUSE_ANIMATIONCTRL = yes; then
11026               result=no
11027             else
11028               result=yes
11029             fi
11030           else
11031             result=$wxUSE_ANIMATIONCTRL
11032           fi
11033
11034           { echo "$as_me:$LINENO: result: $result" >&5
11035 echo "${ECHO_T}$result" >&6; }
11036
11037
11038           enablestring=
11039           defaultval=$wxUSE_ALL_FEATURES
11040           if test -z "$defaultval"; then
11041               if test x"$enablestring" = xdisable; then
11042                   defaultval=yes
11043               else
11044                   defaultval=no
11045               fi
11046           fi
11047
11048           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
11049 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
11050           # Check whether --enable-button was given.
11051 if test "${enable_button+set}" = set; then
11052   enableval=$enable_button;
11053                           if test "$enableval" = yes; then
11054                             wx_cv_use_button='wxUSE_BUTTON=yes'
11055                           else
11056                             wx_cv_use_button='wxUSE_BUTTON=no'
11057                           fi
11058                           cache=yes
11059
11060 else
11061
11062                           LINE=`grep "^wxUSE_BUTTON=" ${wx_arg_cache_file}`
11063                           if test "x$LINE" != x ; then
11064                               eval "DEFAULT_$LINE"
11065                               cache=yes
11066                           else
11067                               cache=no
11068                           fi
11069
11070                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
11071
11072 fi
11073
11074
11075           eval "$wx_cv_use_button"
11076           if test "x$cache" = xyes; then
11077             echo "wxUSE_BUTTON=$wxUSE_BUTTON" >> ${wx_arg_cache_file}.tmp
11078           fi
11079
11080           if test x"$enablestring" = xdisable; then
11081             if test $wxUSE_BUTTON = yes; then
11082               result=no
11083             else
11084               result=yes
11085             fi
11086           else
11087             result=$wxUSE_BUTTON
11088           fi
11089
11090           { echo "$as_me:$LINENO: result: $result" >&5
11091 echo "${ECHO_T}$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           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
11105 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
11106           # Check whether --enable-bmpbutton was given.
11107 if test "${enable_bmpbutton+set}" = set; then
11108   enableval=$enable_bmpbutton;
11109                           if test "$enableval" = yes; then
11110                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
11111                           else
11112                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
11113                           fi
11114                           cache=yes
11115
11116 else
11117
11118                           LINE=`grep "^wxUSE_BMPBUTTON=" ${wx_arg_cache_file}`
11119                           if test "x$LINE" != x ; then
11120                               eval "DEFAULT_$LINE"
11121                               cache=yes
11122                           else
11123                               cache=no
11124                           fi
11125
11126                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
11127
11128 fi
11129
11130
11131           eval "$wx_cv_use_bmpbutton"
11132           if test "x$cache" = xyes; then
11133             echo "wxUSE_BMPBUTTON=$wxUSE_BMPBUTTON" >> ${wx_arg_cache_file}.tmp
11134           fi
11135
11136           if test x"$enablestring" = xdisable; then
11137             if test $wxUSE_BMPBUTTON = yes; then
11138               result=no
11139             else
11140               result=yes
11141             fi
11142           else
11143             result=$wxUSE_BMPBUTTON
11144           fi
11145
11146           { echo "$as_me:$LINENO: result: $result" >&5
11147 echo "${ECHO_T}$result" >&6; }
11148
11149
11150           enablestring=
11151           defaultval=$wxUSE_ALL_FEATURES
11152           if test -z "$defaultval"; then
11153               if test x"$enablestring" = xdisable; then
11154                   defaultval=yes
11155               else
11156                   defaultval=no
11157               fi
11158           fi
11159
11160           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
11161 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
11162           # Check whether --enable-bmpcombobox was given.
11163 if test "${enable_bmpcombobox+set}" = set; then
11164   enableval=$enable_bmpcombobox;
11165                           if test "$enableval" = yes; then
11166                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
11167                           else
11168                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
11169                           fi
11170                           cache=yes
11171
11172 else
11173
11174                           LINE=`grep "^wxUSE_BITMAPCOMBOBOX=" ${wx_arg_cache_file}`
11175                           if test "x$LINE" != x ; then
11176                               eval "DEFAULT_$LINE"
11177                               cache=yes
11178                           else
11179                               cache=no
11180                           fi
11181
11182                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
11183
11184 fi
11185
11186
11187           eval "$wx_cv_use_bmpcombobox"
11188           if test "x$cache" = xyes; then
11189             echo "wxUSE_BITMAPCOMBOBOX=$wxUSE_BITMAPCOMBOBOX" >> ${wx_arg_cache_file}.tmp
11190           fi
11191
11192           if test x"$enablestring" = xdisable; then
11193             if test $wxUSE_BITMAPCOMBOBOX = yes; then
11194               result=no
11195             else
11196               result=yes
11197             fi
11198           else
11199             result=$wxUSE_BITMAPCOMBOBOX
11200           fi
11201
11202           { echo "$as_me:$LINENO: result: $result" >&5
11203 echo "${ECHO_T}$result" >&6; }
11204
11205
11206           enablestring=
11207           defaultval=$wxUSE_ALL_FEATURES
11208           if test -z "$defaultval"; then
11209               if test x"$enablestring" = xdisable; then
11210                   defaultval=yes
11211               else
11212                   defaultval=no
11213               fi
11214           fi
11215
11216           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
11217 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
11218           # Check whether --enable-calendar was given.
11219 if test "${enable_calendar+set}" = set; then
11220   enableval=$enable_calendar;
11221                           if test "$enableval" = yes; then
11222                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
11223                           else
11224                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
11225                           fi
11226                           cache=yes
11227
11228 else
11229
11230                           LINE=`grep "^wxUSE_CALCTRL=" ${wx_arg_cache_file}`
11231                           if test "x$LINE" != x ; then
11232                               eval "DEFAULT_$LINE"
11233                               cache=yes
11234                           else
11235                               cache=no
11236                           fi
11237
11238                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
11239
11240 fi
11241
11242
11243           eval "$wx_cv_use_calendar"
11244           if test "x$cache" = xyes; then
11245             echo "wxUSE_CALCTRL=$wxUSE_CALCTRL" >> ${wx_arg_cache_file}.tmp
11246           fi
11247
11248           if test x"$enablestring" = xdisable; then
11249             if test $wxUSE_CALCTRL = yes; then
11250               result=no
11251             else
11252               result=yes
11253             fi
11254           else
11255             result=$wxUSE_CALCTRL
11256           fi
11257
11258           { echo "$as_me:$LINENO: result: $result" >&5
11259 echo "${ECHO_T}$result" >&6; }
11260
11261
11262           enablestring=
11263           defaultval=$wxUSE_ALL_FEATURES
11264           if test -z "$defaultval"; then
11265               if test x"$enablestring" = xdisable; then
11266                   defaultval=yes
11267               else
11268                   defaultval=no
11269               fi
11270           fi
11271
11272           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
11273 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
11274           # Check whether --enable-caret was given.
11275 if test "${enable_caret+set}" = set; then
11276   enableval=$enable_caret;
11277                           if test "$enableval" = yes; then
11278                             wx_cv_use_caret='wxUSE_CARET=yes'
11279                           else
11280                             wx_cv_use_caret='wxUSE_CARET=no'
11281                           fi
11282                           cache=yes
11283
11284 else
11285
11286                           LINE=`grep "^wxUSE_CARET=" ${wx_arg_cache_file}`
11287                           if test "x$LINE" != x ; then
11288                               eval "DEFAULT_$LINE"
11289                               cache=yes
11290                           else
11291                               cache=no
11292                           fi
11293
11294                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
11295
11296 fi
11297
11298
11299           eval "$wx_cv_use_caret"
11300           if test "x$cache" = xyes; then
11301             echo "wxUSE_CARET=$wxUSE_CARET" >> ${wx_arg_cache_file}.tmp
11302           fi
11303
11304           if test x"$enablestring" = xdisable; then
11305             if test $wxUSE_CARET = yes; then
11306               result=no
11307             else
11308               result=yes
11309             fi
11310           else
11311             result=$wxUSE_CARET
11312           fi
11313
11314           { echo "$as_me:$LINENO: result: $result" >&5
11315 echo "${ECHO_T}$result" >&6; }
11316
11317
11318           enablestring=
11319           defaultval=$wxUSE_ALL_FEATURES
11320           if test -z "$defaultval"; then
11321               if test x"$enablestring" = xdisable; then
11322                   defaultval=yes
11323               else
11324                   defaultval=no
11325               fi
11326           fi
11327
11328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
11329 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
11330           # Check whether --enable-checkbox was given.
11331 if test "${enable_checkbox+set}" = set; then
11332   enableval=$enable_checkbox;
11333                           if test "$enableval" = yes; then
11334                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
11335                           else
11336                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
11337                           fi
11338                           cache=yes
11339
11340 else
11341
11342                           LINE=`grep "^wxUSE_CHECKBOX=" ${wx_arg_cache_file}`
11343                           if test "x$LINE" != x ; then
11344                               eval "DEFAULT_$LINE"
11345                               cache=yes
11346                           else
11347                               cache=no
11348                           fi
11349
11350                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
11351
11352 fi
11353
11354
11355           eval "$wx_cv_use_checkbox"
11356           if test "x$cache" = xyes; then
11357             echo "wxUSE_CHECKBOX=$wxUSE_CHECKBOX" >> ${wx_arg_cache_file}.tmp
11358           fi
11359
11360           if test x"$enablestring" = xdisable; then
11361             if test $wxUSE_CHECKBOX = yes; then
11362               result=no
11363             else
11364               result=yes
11365             fi
11366           else
11367             result=$wxUSE_CHECKBOX
11368           fi
11369
11370           { echo "$as_me:$LINENO: result: $result" >&5
11371 echo "${ECHO_T}$result" >&6; }
11372
11373
11374           enablestring=
11375           defaultval=$wxUSE_ALL_FEATURES
11376           if test -z "$defaultval"; then
11377               if test x"$enablestring" = xdisable; then
11378                   defaultval=yes
11379               else
11380                   defaultval=no
11381               fi
11382           fi
11383
11384           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
11385 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
11386           # Check whether --enable-checklst was given.
11387 if test "${enable_checklst+set}" = set; then
11388   enableval=$enable_checklst;
11389                           if test "$enableval" = yes; then
11390                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
11391                           else
11392                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
11393                           fi
11394                           cache=yes
11395
11396 else
11397
11398                           LINE=`grep "^wxUSE_CHECKLST=" ${wx_arg_cache_file}`
11399                           if test "x$LINE" != x ; then
11400                               eval "DEFAULT_$LINE"
11401                               cache=yes
11402                           else
11403                               cache=no
11404                           fi
11405
11406                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
11407
11408 fi
11409
11410
11411           eval "$wx_cv_use_checklst"
11412           if test "x$cache" = xyes; then
11413             echo "wxUSE_CHECKLST=$wxUSE_CHECKLST" >> ${wx_arg_cache_file}.tmp
11414           fi
11415
11416           if test x"$enablestring" = xdisable; then
11417             if test $wxUSE_CHECKLST = yes; then
11418               result=no
11419             else
11420               result=yes
11421             fi
11422           else
11423             result=$wxUSE_CHECKLST
11424           fi
11425
11426           { echo "$as_me:$LINENO: result: $result" >&5
11427 echo "${ECHO_T}$result" >&6; }
11428
11429
11430           enablestring=
11431           defaultval=$wxUSE_ALL_FEATURES
11432           if test -z "$defaultval"; then
11433               if test x"$enablestring" = xdisable; then
11434                   defaultval=yes
11435               else
11436                   defaultval=no
11437               fi
11438           fi
11439
11440           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
11441 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
11442           # Check whether --enable-choice was given.
11443 if test "${enable_choice+set}" = set; then
11444   enableval=$enable_choice;
11445                           if test "$enableval" = yes; then
11446                             wx_cv_use_choice='wxUSE_CHOICE=yes'
11447                           else
11448                             wx_cv_use_choice='wxUSE_CHOICE=no'
11449                           fi
11450                           cache=yes
11451
11452 else
11453
11454                           LINE=`grep "^wxUSE_CHOICE=" ${wx_arg_cache_file}`
11455                           if test "x$LINE" != x ; then
11456                               eval "DEFAULT_$LINE"
11457                               cache=yes
11458                           else
11459                               cache=no
11460                           fi
11461
11462                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
11463
11464 fi
11465
11466
11467           eval "$wx_cv_use_choice"
11468           if test "x$cache" = xyes; then
11469             echo "wxUSE_CHOICE=$wxUSE_CHOICE" >> ${wx_arg_cache_file}.tmp
11470           fi
11471
11472           if test x"$enablestring" = xdisable; then
11473             if test $wxUSE_CHOICE = yes; then
11474               result=no
11475             else
11476               result=yes
11477             fi
11478           else
11479             result=$wxUSE_CHOICE
11480           fi
11481
11482           { echo "$as_me:$LINENO: result: $result" >&5
11483 echo "${ECHO_T}$result" >&6; }
11484
11485
11486           enablestring=
11487           defaultval=$wxUSE_ALL_FEATURES
11488           if test -z "$defaultval"; then
11489               if test x"$enablestring" = xdisable; then
11490                   defaultval=yes
11491               else
11492                   defaultval=no
11493               fi
11494           fi
11495
11496           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
11497 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
11498           # Check whether --enable-choicebook was given.
11499 if test "${enable_choicebook+set}" = set; then
11500   enableval=$enable_choicebook;
11501                           if test "$enableval" = yes; then
11502                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
11503                           else
11504                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
11505                           fi
11506                           cache=yes
11507
11508 else
11509
11510                           LINE=`grep "^wxUSE_CHOICEBOOK=" ${wx_arg_cache_file}`
11511                           if test "x$LINE" != x ; then
11512                               eval "DEFAULT_$LINE"
11513                               cache=yes
11514                           else
11515                               cache=no
11516                           fi
11517
11518                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
11519
11520 fi
11521
11522
11523           eval "$wx_cv_use_choicebook"
11524           if test "x$cache" = xyes; then
11525             echo "wxUSE_CHOICEBOOK=$wxUSE_CHOICEBOOK" >> ${wx_arg_cache_file}.tmp
11526           fi
11527
11528           if test x"$enablestring" = xdisable; then
11529             if test $wxUSE_CHOICEBOOK = yes; then
11530               result=no
11531             else
11532               result=yes
11533             fi
11534           else
11535             result=$wxUSE_CHOICEBOOK
11536           fi
11537
11538           { echo "$as_me:$LINENO: result: $result" >&5
11539 echo "${ECHO_T}$result" >&6; }
11540
11541
11542           enablestring=
11543           defaultval=$wxUSE_ALL_FEATURES
11544           if test -z "$defaultval"; then
11545               if test x"$enablestring" = xdisable; then
11546                   defaultval=yes
11547               else
11548                   defaultval=no
11549               fi
11550           fi
11551
11552           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
11553 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
11554           # Check whether --enable-collpane was given.
11555 if test "${enable_collpane+set}" = set; then
11556   enableval=$enable_collpane;
11557                           if test "$enableval" = yes; then
11558                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
11559                           else
11560                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
11561                           fi
11562                           cache=yes
11563
11564 else
11565
11566                           LINE=`grep "^wxUSE_COLLPANE=" ${wx_arg_cache_file}`
11567                           if test "x$LINE" != x ; then
11568                               eval "DEFAULT_$LINE"
11569                               cache=yes
11570                           else
11571                               cache=no
11572                           fi
11573
11574                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
11575
11576 fi
11577
11578
11579           eval "$wx_cv_use_collpane"
11580           if test "x$cache" = xyes; then
11581             echo "wxUSE_COLLPANE=$wxUSE_COLLPANE" >> ${wx_arg_cache_file}.tmp
11582           fi
11583
11584           if test x"$enablestring" = xdisable; then
11585             if test $wxUSE_COLLPANE = yes; then
11586               result=no
11587             else
11588               result=yes
11589             fi
11590           else
11591             result=$wxUSE_COLLPANE
11592           fi
11593
11594           { echo "$as_me:$LINENO: result: $result" >&5
11595 echo "${ECHO_T}$result" >&6; }
11596
11597
11598           enablestring=
11599           defaultval=$wxUSE_ALL_FEATURES
11600           if test -z "$defaultval"; then
11601               if test x"$enablestring" = xdisable; then
11602                   defaultval=yes
11603               else
11604                   defaultval=no
11605               fi
11606           fi
11607
11608           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
11609 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
11610           # Check whether --enable-colourpicker was given.
11611 if test "${enable_colourpicker+set}" = set; then
11612   enableval=$enable_colourpicker;
11613                           if test "$enableval" = yes; then
11614                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
11615                           else
11616                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
11617                           fi
11618                           cache=yes
11619
11620 else
11621
11622                           LINE=`grep "^wxUSE_COLOURPICKERCTRL=" ${wx_arg_cache_file}`
11623                           if test "x$LINE" != x ; then
11624                               eval "DEFAULT_$LINE"
11625                               cache=yes
11626                           else
11627                               cache=no
11628                           fi
11629
11630                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
11631
11632 fi
11633
11634
11635           eval "$wx_cv_use_colourpicker"
11636           if test "x$cache" = xyes; then
11637             echo "wxUSE_COLOURPICKERCTRL=$wxUSE_COLOURPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11638           fi
11639
11640           if test x"$enablestring" = xdisable; then
11641             if test $wxUSE_COLOURPICKERCTRL = yes; then
11642               result=no
11643             else
11644               result=yes
11645             fi
11646           else
11647             result=$wxUSE_COLOURPICKERCTRL
11648           fi
11649
11650           { echo "$as_me:$LINENO: result: $result" >&5
11651 echo "${ECHO_T}$result" >&6; }
11652
11653
11654           enablestring=
11655           defaultval=$wxUSE_ALL_FEATURES
11656           if test -z "$defaultval"; then
11657               if test x"$enablestring" = xdisable; then
11658                   defaultval=yes
11659               else
11660                   defaultval=no
11661               fi
11662           fi
11663
11664           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
11665 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
11666           # Check whether --enable-combobox was given.
11667 if test "${enable_combobox+set}" = set; then
11668   enableval=$enable_combobox;
11669                           if test "$enableval" = yes; then
11670                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
11671                           else
11672                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
11673                           fi
11674                           cache=yes
11675
11676 else
11677
11678                           LINE=`grep "^wxUSE_COMBOBOX=" ${wx_arg_cache_file}`
11679                           if test "x$LINE" != x ; then
11680                               eval "DEFAULT_$LINE"
11681                               cache=yes
11682                           else
11683                               cache=no
11684                           fi
11685
11686                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
11687
11688 fi
11689
11690
11691           eval "$wx_cv_use_combobox"
11692           if test "x$cache" = xyes; then
11693             echo "wxUSE_COMBOBOX=$wxUSE_COMBOBOX" >> ${wx_arg_cache_file}.tmp
11694           fi
11695
11696           if test x"$enablestring" = xdisable; then
11697             if test $wxUSE_COMBOBOX = yes; then
11698               result=no
11699             else
11700               result=yes
11701             fi
11702           else
11703             result=$wxUSE_COMBOBOX
11704           fi
11705
11706           { echo "$as_me:$LINENO: result: $result" >&5
11707 echo "${ECHO_T}$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           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
11721 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
11722           # Check whether --enable-comboctrl was given.
11723 if test "${enable_comboctrl+set}" = set; then
11724   enableval=$enable_comboctrl;
11725                           if test "$enableval" = yes; then
11726                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
11727                           else
11728                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
11729                           fi
11730                           cache=yes
11731
11732 else
11733
11734                           LINE=`grep "^wxUSE_COMBOCTRL=" ${wx_arg_cache_file}`
11735                           if test "x$LINE" != x ; then
11736                               eval "DEFAULT_$LINE"
11737                               cache=yes
11738                           else
11739                               cache=no
11740                           fi
11741
11742                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
11743
11744 fi
11745
11746
11747           eval "$wx_cv_use_comboctrl"
11748           if test "x$cache" = xyes; then
11749             echo "wxUSE_COMBOCTRL=$wxUSE_COMBOCTRL" >> ${wx_arg_cache_file}.tmp
11750           fi
11751
11752           if test x"$enablestring" = xdisable; then
11753             if test $wxUSE_COMBOCTRL = yes; then
11754               result=no
11755             else
11756               result=yes
11757             fi
11758           else
11759             result=$wxUSE_COMBOCTRL
11760           fi
11761
11762           { echo "$as_me:$LINENO: result: $result" >&5
11763 echo "${ECHO_T}$result" >&6; }
11764
11765
11766           enablestring=
11767           defaultval=$wxUSE_ALL_FEATURES
11768           if test -z "$defaultval"; then
11769               if test x"$enablestring" = xdisable; then
11770                   defaultval=yes
11771               else
11772                   defaultval=no
11773               fi
11774           fi
11775
11776           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
11777 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
11778           # Check whether --enable-datepick was given.
11779 if test "${enable_datepick+set}" = set; then
11780   enableval=$enable_datepick;
11781                           if test "$enableval" = yes; then
11782                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
11783                           else
11784                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
11785                           fi
11786                           cache=yes
11787
11788 else
11789
11790                           LINE=`grep "^wxUSE_DATEPICKCTRL=" ${wx_arg_cache_file}`
11791                           if test "x$LINE" != x ; then
11792                               eval "DEFAULT_$LINE"
11793                               cache=yes
11794                           else
11795                               cache=no
11796                           fi
11797
11798                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
11799
11800 fi
11801
11802
11803           eval "$wx_cv_use_datepick"
11804           if test "x$cache" = xyes; then
11805             echo "wxUSE_DATEPICKCTRL=$wxUSE_DATEPICKCTRL" >> ${wx_arg_cache_file}.tmp
11806           fi
11807
11808           if test x"$enablestring" = xdisable; then
11809             if test $wxUSE_DATEPICKCTRL = yes; then
11810               result=no
11811             else
11812               result=yes
11813             fi
11814           else
11815             result=$wxUSE_DATEPICKCTRL
11816           fi
11817
11818           { echo "$as_me:$LINENO: result: $result" >&5
11819 echo "${ECHO_T}$result" >&6; }
11820
11821
11822           enablestring=
11823           defaultval=$wxUSE_ALL_FEATURES
11824           if test -z "$defaultval"; then
11825               if test x"$enablestring" = xdisable; then
11826                   defaultval=yes
11827               else
11828                   defaultval=no
11829               fi
11830           fi
11831
11832           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
11833 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
11834           # Check whether --enable-dirpicker was given.
11835 if test "${enable_dirpicker+set}" = set; then
11836   enableval=$enable_dirpicker;
11837                           if test "$enableval" = yes; then
11838                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
11839                           else
11840                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
11841                           fi
11842                           cache=yes
11843
11844 else
11845
11846                           LINE=`grep "^wxUSE_DIRPICKERCTRL=" ${wx_arg_cache_file}`
11847                           if test "x$LINE" != x ; then
11848                               eval "DEFAULT_$LINE"
11849                               cache=yes
11850                           else
11851                               cache=no
11852                           fi
11853
11854                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
11855
11856 fi
11857
11858
11859           eval "$wx_cv_use_dirpicker"
11860           if test "x$cache" = xyes; then
11861             echo "wxUSE_DIRPICKERCTRL=$wxUSE_DIRPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11862           fi
11863
11864           if test x"$enablestring" = xdisable; then
11865             if test $wxUSE_DIRPICKERCTRL = yes; then
11866               result=no
11867             else
11868               result=yes
11869             fi
11870           else
11871             result=$wxUSE_DIRPICKERCTRL
11872           fi
11873
11874           { echo "$as_me:$LINENO: result: $result" >&5
11875 echo "${ECHO_T}$result" >&6; }
11876
11877
11878           enablestring=
11879           defaultval=$wxUSE_ALL_FEATURES
11880           if test -z "$defaultval"; then
11881               if test x"$enablestring" = xdisable; then
11882                   defaultval=yes
11883               else
11884                   defaultval=no
11885               fi
11886           fi
11887
11888           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
11889 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
11890           # Check whether --enable-display was given.
11891 if test "${enable_display+set}" = set; then
11892   enableval=$enable_display;
11893                           if test "$enableval" = yes; then
11894                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11895                           else
11896                             wx_cv_use_display='wxUSE_DISPLAY=no'
11897                           fi
11898                           cache=yes
11899
11900 else
11901
11902                           LINE=`grep "^wxUSE_DISPLAY=" ${wx_arg_cache_file}`
11903                           if test "x$LINE" != x ; then
11904                               eval "DEFAULT_$LINE"
11905                               cache=yes
11906                           else
11907                               cache=no
11908                           fi
11909
11910                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11911
11912 fi
11913
11914
11915           eval "$wx_cv_use_display"
11916           if test "x$cache" = xyes; then
11917             echo "wxUSE_DISPLAY=$wxUSE_DISPLAY" >> ${wx_arg_cache_file}.tmp
11918           fi
11919
11920           if test x"$enablestring" = xdisable; then
11921             if test $wxUSE_DISPLAY = yes; then
11922               result=no
11923             else
11924               result=yes
11925             fi
11926           else
11927             result=$wxUSE_DISPLAY
11928           fi
11929
11930           { echo "$as_me:$LINENO: result: $result" >&5
11931 echo "${ECHO_T}$result" >&6; }
11932
11933
11934           enablestring=
11935           defaultval=$wxUSE_ALL_FEATURES
11936           if test -z "$defaultval"; then
11937               if test x"$enablestring" = xdisable; then
11938                   defaultval=yes
11939               else
11940                   defaultval=no
11941               fi
11942           fi
11943
11944           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
11945 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
11946           # Check whether --enable-detect_sm was given.
11947 if test "${enable_detect_sm+set}" = set; then
11948   enableval=$enable_detect_sm;
11949                           if test "$enableval" = yes; then
11950                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
11951                           else
11952                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
11953                           fi
11954                           cache=yes
11955
11956 else
11957
11958                           LINE=`grep "^wxUSE_DETECT_SM=" ${wx_arg_cache_file}`
11959                           if test "x$LINE" != x ; then
11960                               eval "DEFAULT_$LINE"
11961                               cache=yes
11962                           else
11963                               cache=no
11964                           fi
11965
11966                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
11967
11968 fi
11969
11970
11971           eval "$wx_cv_use_detect_sm"
11972           if test "x$cache" = xyes; then
11973             echo "wxUSE_DETECT_SM=$wxUSE_DETECT_SM" >> ${wx_arg_cache_file}.tmp
11974           fi
11975
11976           if test x"$enablestring" = xdisable; then
11977             if test $wxUSE_DETECT_SM = yes; then
11978               result=no
11979             else
11980               result=yes
11981             fi
11982           else
11983             result=$wxUSE_DETECT_SM
11984           fi
11985
11986           { echo "$as_me:$LINENO: result: $result" >&5
11987 echo "${ECHO_T}$result" >&6; }
11988
11989
11990           enablestring=
11991           defaultval=$wxUSE_ALL_FEATURES
11992           if test -z "$defaultval"; then
11993               if test x"$enablestring" = xdisable; then
11994                   defaultval=yes
11995               else
11996                   defaultval=no
11997               fi
11998           fi
11999
12000           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
12001 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
12002           # Check whether --enable-editablebox was given.
12003 if test "${enable_editablebox+set}" = set; then
12004   enableval=$enable_editablebox;
12005                           if test "$enableval" = yes; then
12006                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
12007                           else
12008                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
12009                           fi
12010                           cache=yes
12011
12012 else
12013
12014                           LINE=`grep "^wxUSE_EDITABLELISTBOX=" ${wx_arg_cache_file}`
12015                           if test "x$LINE" != x ; then
12016                               eval "DEFAULT_$LINE"
12017                               cache=yes
12018                           else
12019                               cache=no
12020                           fi
12021
12022                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
12023
12024 fi
12025
12026
12027           eval "$wx_cv_use_editablebox"
12028           if test "x$cache" = xyes; then
12029             echo "wxUSE_EDITABLELISTBOX=$wxUSE_EDITABLELISTBOX" >> ${wx_arg_cache_file}.tmp
12030           fi
12031
12032           if test x"$enablestring" = xdisable; then
12033             if test $wxUSE_EDITABLELISTBOX = yes; then
12034               result=no
12035             else
12036               result=yes
12037             fi
12038           else
12039             result=$wxUSE_EDITABLELISTBOX
12040           fi
12041
12042           { echo "$as_me:$LINENO: result: $result" >&5
12043 echo "${ECHO_T}$result" >&6; }
12044
12045
12046           enablestring=
12047           defaultval=$wxUSE_ALL_FEATURES
12048           if test -z "$defaultval"; then
12049               if test x"$enablestring" = xdisable; then
12050                   defaultval=yes
12051               else
12052                   defaultval=no
12053               fi
12054           fi
12055
12056           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
12057 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
12058           # Check whether --enable-filepicker was given.
12059 if test "${enable_filepicker+set}" = set; then
12060   enableval=$enable_filepicker;
12061                           if test "$enableval" = yes; then
12062                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
12063                           else
12064                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
12065                           fi
12066                           cache=yes
12067
12068 else
12069
12070                           LINE=`grep "^wxUSE_FILEPICKERCTRL=" ${wx_arg_cache_file}`
12071                           if test "x$LINE" != x ; then
12072                               eval "DEFAULT_$LINE"
12073                               cache=yes
12074                           else
12075                               cache=no
12076                           fi
12077
12078                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
12079
12080 fi
12081
12082
12083           eval "$wx_cv_use_filepicker"
12084           if test "x$cache" = xyes; then
12085             echo "wxUSE_FILEPICKERCTRL=$wxUSE_FILEPICKERCTRL" >> ${wx_arg_cache_file}.tmp
12086           fi
12087
12088           if test x"$enablestring" = xdisable; then
12089             if test $wxUSE_FILEPICKERCTRL = yes; then
12090               result=no
12091             else
12092               result=yes
12093             fi
12094           else
12095             result=$wxUSE_FILEPICKERCTRL
12096           fi
12097
12098           { echo "$as_me:$LINENO: result: $result" >&5
12099 echo "${ECHO_T}$result" >&6; }
12100
12101
12102           enablestring=
12103           defaultval=$wxUSE_ALL_FEATURES
12104           if test -z "$defaultval"; then
12105               if test x"$enablestring" = xdisable; then
12106                   defaultval=yes
12107               else
12108                   defaultval=no
12109               fi
12110           fi
12111
12112           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
12113 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
12114           # Check whether --enable-filectrl was given.
12115 if test "${enable_filectrl+set}" = set; then
12116   enableval=$enable_filectrl;
12117                           if test "$enableval" = yes; then
12118                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
12119                           else
12120                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
12121                           fi
12122                           cache=yes
12123
12124 else
12125
12126                           LINE=`grep "^wxUSE_FILECTRL=" ${wx_arg_cache_file}`
12127                           if test "x$LINE" != x ; then
12128                               eval "DEFAULT_$LINE"
12129                               cache=yes
12130                           else
12131                               cache=no
12132                           fi
12133
12134                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
12135
12136 fi
12137
12138
12139           eval "$wx_cv_use_filectrl"
12140           if test "x$cache" = xyes; then
12141             echo "wxUSE_FILECTRL=$wxUSE_FILECTRL" >> ${wx_arg_cache_file}.tmp
12142           fi
12143
12144           if test x"$enablestring" = xdisable; then
12145             if test $wxUSE_FILECTRL = yes; then
12146               result=no
12147             else
12148               result=yes
12149             fi
12150           else
12151             result=$wxUSE_FILECTRL
12152           fi
12153
12154           { echo "$as_me:$LINENO: result: $result" >&5
12155 echo "${ECHO_T}$result" >&6; }
12156
12157
12158           enablestring=
12159           defaultval=$wxUSE_ALL_FEATURES
12160           if test -z "$defaultval"; then
12161               if test x"$enablestring" = xdisable; then
12162                   defaultval=yes
12163               else
12164                   defaultval=no
12165               fi
12166           fi
12167
12168           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
12169 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
12170           # Check whether --enable-fontpicker was given.
12171 if test "${enable_fontpicker+set}" = set; then
12172   enableval=$enable_fontpicker;
12173                           if test "$enableval" = yes; then
12174                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
12175                           else
12176                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
12177                           fi
12178                           cache=yes
12179
12180 else
12181
12182                           LINE=`grep "^wxUSE_FONTPICKERCTRL=" ${wx_arg_cache_file}`
12183                           if test "x$LINE" != x ; then
12184                               eval "DEFAULT_$LINE"
12185                               cache=yes
12186                           else
12187                               cache=no
12188                           fi
12189
12190                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
12191
12192 fi
12193
12194
12195           eval "$wx_cv_use_fontpicker"
12196           if test "x$cache" = xyes; then
12197             echo "wxUSE_FONTPICKERCTRL=$wxUSE_FONTPICKERCTRL" >> ${wx_arg_cache_file}.tmp
12198           fi
12199
12200           if test x"$enablestring" = xdisable; then
12201             if test $wxUSE_FONTPICKERCTRL = yes; then
12202               result=no
12203             else
12204               result=yes
12205             fi
12206           else
12207             result=$wxUSE_FONTPICKERCTRL
12208           fi
12209
12210           { echo "$as_me:$LINENO: result: $result" >&5
12211 echo "${ECHO_T}$result" >&6; }
12212
12213
12214           enablestring=
12215           defaultval=$wxUSE_ALL_FEATURES
12216           if test -z "$defaultval"; then
12217               if test x"$enablestring" = xdisable; then
12218                   defaultval=yes
12219               else
12220                   defaultval=no
12221               fi
12222           fi
12223
12224           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
12225 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
12226           # Check whether --enable-gauge was given.
12227 if test "${enable_gauge+set}" = set; then
12228   enableval=$enable_gauge;
12229                           if test "$enableval" = yes; then
12230                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
12231                           else
12232                             wx_cv_use_gauge='wxUSE_GAUGE=no'
12233                           fi
12234                           cache=yes
12235
12236 else
12237
12238                           LINE=`grep "^wxUSE_GAUGE=" ${wx_arg_cache_file}`
12239                           if test "x$LINE" != x ; then
12240                               eval "DEFAULT_$LINE"
12241                               cache=yes
12242                           else
12243                               cache=no
12244                           fi
12245
12246                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
12247
12248 fi
12249
12250
12251           eval "$wx_cv_use_gauge"
12252           if test "x$cache" = xyes; then
12253             echo "wxUSE_GAUGE=$wxUSE_GAUGE" >> ${wx_arg_cache_file}.tmp
12254           fi
12255
12256           if test x"$enablestring" = xdisable; then
12257             if test $wxUSE_GAUGE = yes; then
12258               result=no
12259             else
12260               result=yes
12261             fi
12262           else
12263             result=$wxUSE_GAUGE
12264           fi
12265
12266           { echo "$as_me:$LINENO: result: $result" >&5
12267 echo "${ECHO_T}$result" >&6; }
12268
12269
12270           enablestring=
12271           defaultval=$wxUSE_ALL_FEATURES
12272           if test -z "$defaultval"; then
12273               if test x"$enablestring" = xdisable; then
12274                   defaultval=yes
12275               else
12276                   defaultval=no
12277               fi
12278           fi
12279
12280           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
12281 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
12282           # Check whether --enable-grid was given.
12283 if test "${enable_grid+set}" = set; then
12284   enableval=$enable_grid;
12285                           if test "$enableval" = yes; then
12286                             wx_cv_use_grid='wxUSE_GRID=yes'
12287                           else
12288                             wx_cv_use_grid='wxUSE_GRID=no'
12289                           fi
12290                           cache=yes
12291
12292 else
12293
12294                           LINE=`grep "^wxUSE_GRID=" ${wx_arg_cache_file}`
12295                           if test "x$LINE" != x ; then
12296                               eval "DEFAULT_$LINE"
12297                               cache=yes
12298                           else
12299                               cache=no
12300                           fi
12301
12302                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
12303
12304 fi
12305
12306
12307           eval "$wx_cv_use_grid"
12308           if test "x$cache" = xyes; then
12309             echo "wxUSE_GRID=$wxUSE_GRID" >> ${wx_arg_cache_file}.tmp
12310           fi
12311
12312           if test x"$enablestring" = xdisable; then
12313             if test $wxUSE_GRID = yes; then
12314               result=no
12315             else
12316               result=yes
12317             fi
12318           else
12319             result=$wxUSE_GRID
12320           fi
12321
12322           { echo "$as_me:$LINENO: result: $result" >&5
12323 echo "${ECHO_T}$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           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
12337 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
12338           # Check whether --enable-dataviewctrl was given.
12339 if test "${enable_dataviewctrl+set}" = set; then
12340   enableval=$enable_dataviewctrl;
12341                           if test "$enableval" = yes; then
12342                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
12343                           else
12344                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
12345                           fi
12346                           cache=yes
12347
12348 else
12349
12350                           LINE=`grep "^wxUSE_DATAVIEWCTRL=" ${wx_arg_cache_file}`
12351                           if test "x$LINE" != x ; then
12352                               eval "DEFAULT_$LINE"
12353                               cache=yes
12354                           else
12355                               cache=no
12356                           fi
12357
12358                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
12359
12360 fi
12361
12362
12363           eval "$wx_cv_use_dataviewctrl"
12364           if test "x$cache" = xyes; then
12365             echo "wxUSE_DATAVIEWCTRL=$wxUSE_DATAVIEWCTRL" >> ${wx_arg_cache_file}.tmp
12366           fi
12367
12368           if test x"$enablestring" = xdisable; then
12369             if test $wxUSE_DATAVIEWCTRL = yes; then
12370               result=no
12371             else
12372               result=yes
12373             fi
12374           else
12375             result=$wxUSE_DATAVIEWCTRL
12376           fi
12377
12378           { echo "$as_me:$LINENO: result: $result" >&5
12379 echo "${ECHO_T}$result" >&6; }
12380
12381
12382           enablestring=
12383           defaultval=$wxUSE_ALL_FEATURES
12384           if test -z "$defaultval"; then
12385               if test x"$enablestring" = xdisable; then
12386                   defaultval=yes
12387               else
12388                   defaultval=no
12389               fi
12390           fi
12391
12392           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
12393 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
12394           # Check whether --enable-hyperlink was given.
12395 if test "${enable_hyperlink+set}" = set; then
12396   enableval=$enable_hyperlink;
12397                           if test "$enableval" = yes; then
12398                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
12399                           else
12400                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
12401                           fi
12402                           cache=yes
12403
12404 else
12405
12406                           LINE=`grep "^wxUSE_HYPERLINKCTRL=" ${wx_arg_cache_file}`
12407                           if test "x$LINE" != x ; then
12408                               eval "DEFAULT_$LINE"
12409                               cache=yes
12410                           else
12411                               cache=no
12412                           fi
12413
12414                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
12415
12416 fi
12417
12418
12419           eval "$wx_cv_use_hyperlink"
12420           if test "x$cache" = xyes; then
12421             echo "wxUSE_HYPERLINKCTRL=$wxUSE_HYPERLINKCTRL" >> ${wx_arg_cache_file}.tmp
12422           fi
12423
12424           if test x"$enablestring" = xdisable; then
12425             if test $wxUSE_HYPERLINKCTRL = yes; then
12426               result=no
12427             else
12428               result=yes
12429             fi
12430           else
12431             result=$wxUSE_HYPERLINKCTRL
12432           fi
12433
12434           { echo "$as_me:$LINENO: result: $result" >&5
12435 echo "${ECHO_T}$result" >&6; }
12436
12437
12438           enablestring=
12439           defaultval=$wxUSE_ALL_FEATURES
12440           if test -z "$defaultval"; then
12441               if test x"$enablestring" = xdisable; then
12442                   defaultval=yes
12443               else
12444                   defaultval=no
12445               fi
12446           fi
12447
12448           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
12449 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
12450           # Check whether --enable-imaglist was given.
12451 if test "${enable_imaglist+set}" = set; then
12452   enableval=$enable_imaglist;
12453                           if test "$enableval" = yes; then
12454                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
12455                           else
12456                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
12457                           fi
12458                           cache=yes
12459
12460 else
12461
12462                           LINE=`grep "^wxUSE_IMAGLIST=" ${wx_arg_cache_file}`
12463                           if test "x$LINE" != x ; then
12464                               eval "DEFAULT_$LINE"
12465                               cache=yes
12466                           else
12467                               cache=no
12468                           fi
12469
12470                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
12471
12472 fi
12473
12474
12475           eval "$wx_cv_use_imaglist"
12476           if test "x$cache" = xyes; then
12477             echo "wxUSE_IMAGLIST=$wxUSE_IMAGLIST" >> ${wx_arg_cache_file}.tmp
12478           fi
12479
12480           if test x"$enablestring" = xdisable; then
12481             if test $wxUSE_IMAGLIST = yes; then
12482               result=no
12483             else
12484               result=yes
12485             fi
12486           else
12487             result=$wxUSE_IMAGLIST
12488           fi
12489
12490           { echo "$as_me:$LINENO: result: $result" >&5
12491 echo "${ECHO_T}$result" >&6; }
12492
12493
12494           enablestring=
12495           defaultval=$wxUSE_ALL_FEATURES
12496           if test -z "$defaultval"; then
12497               if test x"$enablestring" = xdisable; then
12498                   defaultval=yes
12499               else
12500                   defaultval=no
12501               fi
12502           fi
12503
12504           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
12505 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
12506           # Check whether --enable-listbook was given.
12507 if test "${enable_listbook+set}" = set; then
12508   enableval=$enable_listbook;
12509                           if test "$enableval" = yes; then
12510                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
12511                           else
12512                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
12513                           fi
12514                           cache=yes
12515
12516 else
12517
12518                           LINE=`grep "^wxUSE_LISTBOOK=" ${wx_arg_cache_file}`
12519                           if test "x$LINE" != x ; then
12520                               eval "DEFAULT_$LINE"
12521                               cache=yes
12522                           else
12523                               cache=no
12524                           fi
12525
12526                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
12527
12528 fi
12529
12530
12531           eval "$wx_cv_use_listbook"
12532           if test "x$cache" = xyes; then
12533             echo "wxUSE_LISTBOOK=$wxUSE_LISTBOOK" >> ${wx_arg_cache_file}.tmp
12534           fi
12535
12536           if test x"$enablestring" = xdisable; then
12537             if test $wxUSE_LISTBOOK = yes; then
12538               result=no
12539             else
12540               result=yes
12541             fi
12542           else
12543             result=$wxUSE_LISTBOOK
12544           fi
12545
12546           { echo "$as_me:$LINENO: result: $result" >&5
12547 echo "${ECHO_T}$result" >&6; }
12548
12549
12550           enablestring=
12551           defaultval=$wxUSE_ALL_FEATURES
12552           if test -z "$defaultval"; then
12553               if test x"$enablestring" = xdisable; then
12554                   defaultval=yes
12555               else
12556                   defaultval=no
12557               fi
12558           fi
12559
12560           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
12561 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
12562           # Check whether --enable-listbox was given.
12563 if test "${enable_listbox+set}" = set; then
12564   enableval=$enable_listbox;
12565                           if test "$enableval" = yes; then
12566                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
12567                           else
12568                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
12569                           fi
12570                           cache=yes
12571
12572 else
12573
12574                           LINE=`grep "^wxUSE_LISTBOX=" ${wx_arg_cache_file}`
12575                           if test "x$LINE" != x ; then
12576                               eval "DEFAULT_$LINE"
12577                               cache=yes
12578                           else
12579                               cache=no
12580                           fi
12581
12582                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
12583
12584 fi
12585
12586
12587           eval "$wx_cv_use_listbox"
12588           if test "x$cache" = xyes; then
12589             echo "wxUSE_LISTBOX=$wxUSE_LISTBOX" >> ${wx_arg_cache_file}.tmp
12590           fi
12591
12592           if test x"$enablestring" = xdisable; then
12593             if test $wxUSE_LISTBOX = yes; then
12594               result=no
12595             else
12596               result=yes
12597             fi
12598           else
12599             result=$wxUSE_LISTBOX
12600           fi
12601
12602           { echo "$as_me:$LINENO: result: $result" >&5
12603 echo "${ECHO_T}$result" >&6; }
12604
12605
12606           enablestring=
12607           defaultval=$wxUSE_ALL_FEATURES
12608           if test -z "$defaultval"; then
12609               if test x"$enablestring" = xdisable; then
12610                   defaultval=yes
12611               else
12612                   defaultval=no
12613               fi
12614           fi
12615
12616           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
12617 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
12618           # Check whether --enable-listctrl was given.
12619 if test "${enable_listctrl+set}" = set; then
12620   enableval=$enable_listctrl;
12621                           if test "$enableval" = yes; then
12622                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
12623                           else
12624                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
12625                           fi
12626                           cache=yes
12627
12628 else
12629
12630                           LINE=`grep "^wxUSE_LISTCTRL=" ${wx_arg_cache_file}`
12631                           if test "x$LINE" != x ; then
12632                               eval "DEFAULT_$LINE"
12633                               cache=yes
12634                           else
12635                               cache=no
12636                           fi
12637
12638                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
12639
12640 fi
12641
12642
12643           eval "$wx_cv_use_listctrl"
12644           if test "x$cache" = xyes; then
12645             echo "wxUSE_LISTCTRL=$wxUSE_LISTCTRL" >> ${wx_arg_cache_file}.tmp
12646           fi
12647
12648           if test x"$enablestring" = xdisable; then
12649             if test $wxUSE_LISTCTRL = yes; then
12650               result=no
12651             else
12652               result=yes
12653             fi
12654           else
12655             result=$wxUSE_LISTCTRL
12656           fi
12657
12658           { echo "$as_me:$LINENO: result: $result" >&5
12659 echo "${ECHO_T}$result" >&6; }
12660
12661
12662           enablestring=
12663           defaultval=$wxUSE_ALL_FEATURES
12664           if test -z "$defaultval"; then
12665               if test x"$enablestring" = xdisable; then
12666                   defaultval=yes
12667               else
12668                   defaultval=no
12669               fi
12670           fi
12671
12672           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
12673 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
12674           # Check whether --enable-notebook was given.
12675 if test "${enable_notebook+set}" = set; then
12676   enableval=$enable_notebook;
12677                           if test "$enableval" = yes; then
12678                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
12679                           else
12680                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
12681                           fi
12682                           cache=yes
12683
12684 else
12685
12686                           LINE=`grep "^wxUSE_NOTEBOOK=" ${wx_arg_cache_file}`
12687                           if test "x$LINE" != x ; then
12688                               eval "DEFAULT_$LINE"
12689                               cache=yes
12690                           else
12691                               cache=no
12692                           fi
12693
12694                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
12695
12696 fi
12697
12698
12699           eval "$wx_cv_use_notebook"
12700           if test "x$cache" = xyes; then
12701             echo "wxUSE_NOTEBOOK=$wxUSE_NOTEBOOK" >> ${wx_arg_cache_file}.tmp
12702           fi
12703
12704           if test x"$enablestring" = xdisable; then
12705             if test $wxUSE_NOTEBOOK = yes; then
12706               result=no
12707             else
12708               result=yes
12709             fi
12710           else
12711             result=$wxUSE_NOTEBOOK
12712           fi
12713
12714           { echo "$as_me:$LINENO: result: $result" >&5
12715 echo "${ECHO_T}$result" >&6; }
12716
12717
12718           enablestring=
12719           defaultval=$wxUSE_ALL_FEATURES
12720           if test -z "$defaultval"; then
12721               if test x"$enablestring" = xdisable; then
12722                   defaultval=yes
12723               else
12724                   defaultval=no
12725               fi
12726           fi
12727
12728           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
12729 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
12730           # Check whether --enable-odcombobox was given.
12731 if test "${enable_odcombobox+set}" = set; then
12732   enableval=$enable_odcombobox;
12733                           if test "$enableval" = yes; then
12734                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
12735                           else
12736                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
12737                           fi
12738                           cache=yes
12739
12740 else
12741
12742                           LINE=`grep "^wxUSE_ODCOMBOBOX=" ${wx_arg_cache_file}`
12743                           if test "x$LINE" != x ; then
12744                               eval "DEFAULT_$LINE"
12745                               cache=yes
12746                           else
12747                               cache=no
12748                           fi
12749
12750                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
12751
12752 fi
12753
12754
12755           eval "$wx_cv_use_odcombobox"
12756           if test "x$cache" = xyes; then
12757             echo "wxUSE_ODCOMBOBOX=$wxUSE_ODCOMBOBOX" >> ${wx_arg_cache_file}.tmp
12758           fi
12759
12760           if test x"$enablestring" = xdisable; then
12761             if test $wxUSE_ODCOMBOBOX = yes; then
12762               result=no
12763             else
12764               result=yes
12765             fi
12766           else
12767             result=$wxUSE_ODCOMBOBOX
12768           fi
12769
12770           { echo "$as_me:$LINENO: result: $result" >&5
12771 echo "${ECHO_T}$result" >&6; }
12772
12773
12774           enablestring=
12775           defaultval=$wxUSE_ALL_FEATURES
12776           if test -z "$defaultval"; then
12777               if test x"$enablestring" = xdisable; then
12778                   defaultval=yes
12779               else
12780                   defaultval=no
12781               fi
12782           fi
12783
12784           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
12785 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
12786           # Check whether --enable-radiobox was given.
12787 if test "${enable_radiobox+set}" = set; then
12788   enableval=$enable_radiobox;
12789                           if test "$enableval" = yes; then
12790                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
12791                           else
12792                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
12793                           fi
12794                           cache=yes
12795
12796 else
12797
12798                           LINE=`grep "^wxUSE_RADIOBOX=" ${wx_arg_cache_file}`
12799                           if test "x$LINE" != x ; then
12800                               eval "DEFAULT_$LINE"
12801                               cache=yes
12802                           else
12803                               cache=no
12804                           fi
12805
12806                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
12807
12808 fi
12809
12810
12811           eval "$wx_cv_use_radiobox"
12812           if test "x$cache" = xyes; then
12813             echo "wxUSE_RADIOBOX=$wxUSE_RADIOBOX" >> ${wx_arg_cache_file}.tmp
12814           fi
12815
12816           if test x"$enablestring" = xdisable; then
12817             if test $wxUSE_RADIOBOX = yes; then
12818               result=no
12819             else
12820               result=yes
12821             fi
12822           else
12823             result=$wxUSE_RADIOBOX
12824           fi
12825
12826           { echo "$as_me:$LINENO: result: $result" >&5
12827 echo "${ECHO_T}$result" >&6; }
12828
12829
12830           enablestring=
12831           defaultval=$wxUSE_ALL_FEATURES
12832           if test -z "$defaultval"; then
12833               if test x"$enablestring" = xdisable; then
12834                   defaultval=yes
12835               else
12836                   defaultval=no
12837               fi
12838           fi
12839
12840           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
12841 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
12842           # Check whether --enable-radiobtn was given.
12843 if test "${enable_radiobtn+set}" = set; then
12844   enableval=$enable_radiobtn;
12845                           if test "$enableval" = yes; then
12846                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
12847                           else
12848                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
12849                           fi
12850                           cache=yes
12851
12852 else
12853
12854                           LINE=`grep "^wxUSE_RADIOBTN=" ${wx_arg_cache_file}`
12855                           if test "x$LINE" != x ; then
12856                               eval "DEFAULT_$LINE"
12857                               cache=yes
12858                           else
12859                               cache=no
12860                           fi
12861
12862                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
12863
12864 fi
12865
12866
12867           eval "$wx_cv_use_radiobtn"
12868           if test "x$cache" = xyes; then
12869             echo "wxUSE_RADIOBTN=$wxUSE_RADIOBTN" >> ${wx_arg_cache_file}.tmp
12870           fi
12871
12872           if test x"$enablestring" = xdisable; then
12873             if test $wxUSE_RADIOBTN = yes; then
12874               result=no
12875             else
12876               result=yes
12877             fi
12878           else
12879             result=$wxUSE_RADIOBTN
12880           fi
12881
12882           { echo "$as_me:$LINENO: result: $result" >&5
12883 echo "${ECHO_T}$result" >&6; }
12884
12885
12886           enablestring=
12887           defaultval=$wxUSE_ALL_FEATURES
12888           if test -z "$defaultval"; then
12889               if test x"$enablestring" = xdisable; then
12890                   defaultval=yes
12891               else
12892                   defaultval=no
12893               fi
12894           fi
12895
12896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12897 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12898           # Check whether --enable-sash was given.
12899 if test "${enable_sash+set}" = set; then
12900   enableval=$enable_sash;
12901                           if test "$enableval" = yes; then
12902                             wx_cv_use_sash='wxUSE_SASH=yes'
12903                           else
12904                             wx_cv_use_sash='wxUSE_SASH=no'
12905                           fi
12906                           cache=yes
12907
12908 else
12909
12910                           LINE=`grep "^wxUSE_SASH=" ${wx_arg_cache_file}`
12911                           if test "x$LINE" != x ; then
12912                               eval "DEFAULT_$LINE"
12913                               cache=yes
12914                           else
12915                               cache=no
12916                           fi
12917
12918                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
12919
12920 fi
12921
12922
12923           eval "$wx_cv_use_sash"
12924           if test "x$cache" = xyes; then
12925             echo "wxUSE_SASH=$wxUSE_SASH" >> ${wx_arg_cache_file}.tmp
12926           fi
12927
12928           if test x"$enablestring" = xdisable; then
12929             if test $wxUSE_SASH = yes; then
12930               result=no
12931             else
12932               result=yes
12933             fi
12934           else
12935             result=$wxUSE_SASH
12936           fi
12937
12938           { echo "$as_me:$LINENO: result: $result" >&5
12939 echo "${ECHO_T}$result" >&6; }
12940
12941
12942           enablestring=
12943           defaultval=$wxUSE_ALL_FEATURES
12944           if test -z "$defaultval"; then
12945               if test x"$enablestring" = xdisable; then
12946                   defaultval=yes
12947               else
12948                   defaultval=no
12949               fi
12950           fi
12951
12952           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12953 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12954           # Check whether --enable-scrollbar was given.
12955 if test "${enable_scrollbar+set}" = set; then
12956   enableval=$enable_scrollbar;
12957                           if test "$enableval" = yes; then
12958                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12959                           else
12960                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12961                           fi
12962                           cache=yes
12963
12964 else
12965
12966                           LINE=`grep "^wxUSE_SCROLLBAR=" ${wx_arg_cache_file}`
12967                           if test "x$LINE" != x ; then
12968                               eval "DEFAULT_$LINE"
12969                               cache=yes
12970                           else
12971                               cache=no
12972                           fi
12973
12974                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12975
12976 fi
12977
12978
12979           eval "$wx_cv_use_scrollbar"
12980           if test "x$cache" = xyes; then
12981             echo "wxUSE_SCROLLBAR=$wxUSE_SCROLLBAR" >> ${wx_arg_cache_file}.tmp
12982           fi
12983
12984           if test x"$enablestring" = xdisable; then
12985             if test $wxUSE_SCROLLBAR = yes; then
12986               result=no
12987             else
12988               result=yes
12989             fi
12990           else
12991             result=$wxUSE_SCROLLBAR
12992           fi
12993
12994           { echo "$as_me:$LINENO: result: $result" >&5
12995 echo "${ECHO_T}$result" >&6; }
12996
12997
12998           enablestring=
12999           defaultval=$wxUSE_ALL_FEATURES
13000           if test -z "$defaultval"; then
13001               if test x"$enablestring" = xdisable; then
13002                   defaultval=yes
13003               else
13004                   defaultval=no
13005               fi
13006           fi
13007
13008           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
13009 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
13010           # Check whether --enable-searchctrl was given.
13011 if test "${enable_searchctrl+set}" = set; then
13012   enableval=$enable_searchctrl;
13013                           if test "$enableval" = yes; then
13014                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
13015                           else
13016                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
13017                           fi
13018                           cache=yes
13019
13020 else
13021
13022                           LINE=`grep "^wxUSE_SEARCHCTRL=" ${wx_arg_cache_file}`
13023                           if test "x$LINE" != x ; then
13024                               eval "DEFAULT_$LINE"
13025                               cache=yes
13026                           else
13027                               cache=no
13028                           fi
13029
13030                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
13031
13032 fi
13033
13034
13035           eval "$wx_cv_use_searchctrl"
13036           if test "x$cache" = xyes; then
13037             echo "wxUSE_SEARCHCTRL=$wxUSE_SEARCHCTRL" >> ${wx_arg_cache_file}.tmp
13038           fi
13039
13040           if test x"$enablestring" = xdisable; then
13041             if test $wxUSE_SEARCHCTRL = yes; then
13042               result=no
13043             else
13044               result=yes
13045             fi
13046           else
13047             result=$wxUSE_SEARCHCTRL
13048           fi
13049
13050           { echo "$as_me:$LINENO: result: $result" >&5
13051 echo "${ECHO_T}$result" >&6; }
13052
13053
13054           enablestring=
13055           defaultval=$wxUSE_ALL_FEATURES
13056           if test -z "$defaultval"; then
13057               if test x"$enablestring" = xdisable; then
13058                   defaultval=yes
13059               else
13060                   defaultval=no
13061               fi
13062           fi
13063
13064           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
13065 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
13066           # Check whether --enable-slider was given.
13067 if test "${enable_slider+set}" = set; then
13068   enableval=$enable_slider;
13069                           if test "$enableval" = yes; then
13070                             wx_cv_use_slider='wxUSE_SLIDER=yes'
13071                           else
13072                             wx_cv_use_slider='wxUSE_SLIDER=no'
13073                           fi
13074                           cache=yes
13075
13076 else
13077
13078                           LINE=`grep "^wxUSE_SLIDER=" ${wx_arg_cache_file}`
13079                           if test "x$LINE" != x ; then
13080                               eval "DEFAULT_$LINE"
13081                               cache=yes
13082                           else
13083                               cache=no
13084                           fi
13085
13086                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
13087
13088 fi
13089
13090
13091           eval "$wx_cv_use_slider"
13092           if test "x$cache" = xyes; then
13093             echo "wxUSE_SLIDER=$wxUSE_SLIDER" >> ${wx_arg_cache_file}.tmp
13094           fi
13095
13096           if test x"$enablestring" = xdisable; then
13097             if test $wxUSE_SLIDER = yes; then
13098               result=no
13099             else
13100               result=yes
13101             fi
13102           else
13103             result=$wxUSE_SLIDER
13104           fi
13105
13106           { echo "$as_me:$LINENO: result: $result" >&5
13107 echo "${ECHO_T}$result" >&6; }
13108
13109
13110           enablestring=
13111           defaultval=$wxUSE_ALL_FEATURES
13112           if test -z "$defaultval"; then
13113               if test x"$enablestring" = xdisable; then
13114                   defaultval=yes
13115               else
13116                   defaultval=no
13117               fi
13118           fi
13119
13120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
13121 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
13122           # Check whether --enable-spinbtn was given.
13123 if test "${enable_spinbtn+set}" = set; then
13124   enableval=$enable_spinbtn;
13125                           if test "$enableval" = yes; then
13126                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
13127                           else
13128                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
13129                           fi
13130                           cache=yes
13131
13132 else
13133
13134                           LINE=`grep "^wxUSE_SPINBTN=" ${wx_arg_cache_file}`
13135                           if test "x$LINE" != x ; then
13136                               eval "DEFAULT_$LINE"
13137                               cache=yes
13138                           else
13139                               cache=no
13140                           fi
13141
13142                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
13143
13144 fi
13145
13146
13147           eval "$wx_cv_use_spinbtn"
13148           if test "x$cache" = xyes; then
13149             echo "wxUSE_SPINBTN=$wxUSE_SPINBTN" >> ${wx_arg_cache_file}.tmp
13150           fi
13151
13152           if test x"$enablestring" = xdisable; then
13153             if test $wxUSE_SPINBTN = yes; then
13154               result=no
13155             else
13156               result=yes
13157             fi
13158           else
13159             result=$wxUSE_SPINBTN
13160           fi
13161
13162           { echo "$as_me:$LINENO: result: $result" >&5
13163 echo "${ECHO_T}$result" >&6; }
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           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
13177 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
13178           # Check whether --enable-spinctrl was given.
13179 if test "${enable_spinctrl+set}" = set; then
13180   enableval=$enable_spinctrl;
13181                           if test "$enableval" = yes; then
13182                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
13183                           else
13184                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
13185                           fi
13186                           cache=yes
13187
13188 else
13189
13190                           LINE=`grep "^wxUSE_SPINCTRL=" ${wx_arg_cache_file}`
13191                           if test "x$LINE" != x ; then
13192                               eval "DEFAULT_$LINE"
13193                               cache=yes
13194                           else
13195                               cache=no
13196                           fi
13197
13198                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
13199
13200 fi
13201
13202
13203           eval "$wx_cv_use_spinctrl"
13204           if test "x$cache" = xyes; then
13205             echo "wxUSE_SPINCTRL=$wxUSE_SPINCTRL" >> ${wx_arg_cache_file}.tmp
13206           fi
13207
13208           if test x"$enablestring" = xdisable; then
13209             if test $wxUSE_SPINCTRL = yes; then
13210               result=no
13211             else
13212               result=yes
13213             fi
13214           else
13215             result=$wxUSE_SPINCTRL
13216           fi
13217
13218           { echo "$as_me:$LINENO: result: $result" >&5
13219 echo "${ECHO_T}$result" >&6; }
13220
13221
13222           enablestring=
13223           defaultval=$wxUSE_ALL_FEATURES
13224           if test -z "$defaultval"; then
13225               if test x"$enablestring" = xdisable; then
13226                   defaultval=yes
13227               else
13228                   defaultval=no
13229               fi
13230           fi
13231
13232           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
13233 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
13234           # Check whether --enable-splitter was given.
13235 if test "${enable_splitter+set}" = set; then
13236   enableval=$enable_splitter;
13237                           if test "$enableval" = yes; then
13238                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
13239                           else
13240                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
13241                           fi
13242                           cache=yes
13243
13244 else
13245
13246                           LINE=`grep "^wxUSE_SPLITTER=" ${wx_arg_cache_file}`
13247                           if test "x$LINE" != x ; then
13248                               eval "DEFAULT_$LINE"
13249                               cache=yes
13250                           else
13251                               cache=no
13252                           fi
13253
13254                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
13255
13256 fi
13257
13258
13259           eval "$wx_cv_use_splitter"
13260           if test "x$cache" = xyes; then
13261             echo "wxUSE_SPLITTER=$wxUSE_SPLITTER" >> ${wx_arg_cache_file}.tmp
13262           fi
13263
13264           if test x"$enablestring" = xdisable; then
13265             if test $wxUSE_SPLITTER = yes; then
13266               result=no
13267             else
13268               result=yes
13269             fi
13270           else
13271             result=$wxUSE_SPLITTER
13272           fi
13273
13274           { echo "$as_me:$LINENO: result: $result" >&5
13275 echo "${ECHO_T}$result" >&6; }
13276
13277
13278           enablestring=
13279           defaultval=$wxUSE_ALL_FEATURES
13280           if test -z "$defaultval"; then
13281               if test x"$enablestring" = xdisable; then
13282                   defaultval=yes
13283               else
13284                   defaultval=no
13285               fi
13286           fi
13287
13288           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
13289 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
13290           # Check whether --enable-statbmp was given.
13291 if test "${enable_statbmp+set}" = set; then
13292   enableval=$enable_statbmp;
13293                           if test "$enableval" = yes; then
13294                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
13295                           else
13296                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
13297                           fi
13298                           cache=yes
13299
13300 else
13301
13302                           LINE=`grep "^wxUSE_STATBMP=" ${wx_arg_cache_file}`
13303                           if test "x$LINE" != x ; then
13304                               eval "DEFAULT_$LINE"
13305                               cache=yes
13306                           else
13307                               cache=no
13308                           fi
13309
13310                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
13311
13312 fi
13313
13314
13315           eval "$wx_cv_use_statbmp"
13316           if test "x$cache" = xyes; then
13317             echo "wxUSE_STATBMP=$wxUSE_STATBMP" >> ${wx_arg_cache_file}.tmp
13318           fi
13319
13320           if test x"$enablestring" = xdisable; then
13321             if test $wxUSE_STATBMP = yes; then
13322               result=no
13323             else
13324               result=yes
13325             fi
13326           else
13327             result=$wxUSE_STATBMP
13328           fi
13329
13330           { echo "$as_me:$LINENO: result: $result" >&5
13331 echo "${ECHO_T}$result" >&6; }
13332
13333
13334           enablestring=
13335           defaultval=$wxUSE_ALL_FEATURES
13336           if test -z "$defaultval"; then
13337               if test x"$enablestring" = xdisable; then
13338                   defaultval=yes
13339               else
13340                   defaultval=no
13341               fi
13342           fi
13343
13344           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
13345 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
13346           # Check whether --enable-statbox was given.
13347 if test "${enable_statbox+set}" = set; then
13348   enableval=$enable_statbox;
13349                           if test "$enableval" = yes; then
13350                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
13351                           else
13352                             wx_cv_use_statbox='wxUSE_STATBOX=no'
13353                           fi
13354                           cache=yes
13355
13356 else
13357
13358                           LINE=`grep "^wxUSE_STATBOX=" ${wx_arg_cache_file}`
13359                           if test "x$LINE" != x ; then
13360                               eval "DEFAULT_$LINE"
13361                               cache=yes
13362                           else
13363                               cache=no
13364                           fi
13365
13366                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
13367
13368 fi
13369
13370
13371           eval "$wx_cv_use_statbox"
13372           if test "x$cache" = xyes; then
13373             echo "wxUSE_STATBOX=$wxUSE_STATBOX" >> ${wx_arg_cache_file}.tmp
13374           fi
13375
13376           if test x"$enablestring" = xdisable; then
13377             if test $wxUSE_STATBOX = yes; then
13378               result=no
13379             else
13380               result=yes
13381             fi
13382           else
13383             result=$wxUSE_STATBOX
13384           fi
13385
13386           { echo "$as_me:$LINENO: result: $result" >&5
13387 echo "${ECHO_T}$result" >&6; }
13388
13389
13390           enablestring=
13391           defaultval=$wxUSE_ALL_FEATURES
13392           if test -z "$defaultval"; then
13393               if test x"$enablestring" = xdisable; then
13394                   defaultval=yes
13395               else
13396                   defaultval=no
13397               fi
13398           fi
13399
13400           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
13401 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
13402           # Check whether --enable-statline was given.
13403 if test "${enable_statline+set}" = set; then
13404   enableval=$enable_statline;
13405                           if test "$enableval" = yes; then
13406                             wx_cv_use_statline='wxUSE_STATLINE=yes'
13407                           else
13408                             wx_cv_use_statline='wxUSE_STATLINE=no'
13409                           fi
13410                           cache=yes
13411
13412 else
13413
13414                           LINE=`grep "^wxUSE_STATLINE=" ${wx_arg_cache_file}`
13415                           if test "x$LINE" != x ; then
13416                               eval "DEFAULT_$LINE"
13417                               cache=yes
13418                           else
13419                               cache=no
13420                           fi
13421
13422                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
13423
13424 fi
13425
13426
13427           eval "$wx_cv_use_statline"
13428           if test "x$cache" = xyes; then
13429             echo "wxUSE_STATLINE=$wxUSE_STATLINE" >> ${wx_arg_cache_file}.tmp
13430           fi
13431
13432           if test x"$enablestring" = xdisable; then
13433             if test $wxUSE_STATLINE = yes; then
13434               result=no
13435             else
13436               result=yes
13437             fi
13438           else
13439             result=$wxUSE_STATLINE
13440           fi
13441
13442           { echo "$as_me:$LINENO: result: $result" >&5
13443 echo "${ECHO_T}$result" >&6; }
13444
13445
13446           enablestring=
13447           defaultval=$wxUSE_ALL_FEATURES
13448           if test -z "$defaultval"; then
13449               if test x"$enablestring" = xdisable; then
13450                   defaultval=yes
13451               else
13452                   defaultval=no
13453               fi
13454           fi
13455
13456           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
13457 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
13458           # Check whether --enable-stattext was given.
13459 if test "${enable_stattext+set}" = set; then
13460   enableval=$enable_stattext;
13461                           if test "$enableval" = yes; then
13462                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
13463                           else
13464                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
13465                           fi
13466                           cache=yes
13467
13468 else
13469
13470                           LINE=`grep "^wxUSE_STATTEXT=" ${wx_arg_cache_file}`
13471                           if test "x$LINE" != x ; then
13472                               eval "DEFAULT_$LINE"
13473                               cache=yes
13474                           else
13475                               cache=no
13476                           fi
13477
13478                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
13479
13480 fi
13481
13482
13483           eval "$wx_cv_use_stattext"
13484           if test "x$cache" = xyes; then
13485             echo "wxUSE_STATTEXT=$wxUSE_STATTEXT" >> ${wx_arg_cache_file}.tmp
13486           fi
13487
13488           if test x"$enablestring" = xdisable; then
13489             if test $wxUSE_STATTEXT = yes; then
13490               result=no
13491             else
13492               result=yes
13493             fi
13494           else
13495             result=$wxUSE_STATTEXT
13496           fi
13497
13498           { echo "$as_me:$LINENO: result: $result" >&5
13499 echo "${ECHO_T}$result" >&6; }
13500
13501
13502           enablestring=
13503           defaultval=$wxUSE_ALL_FEATURES
13504           if test -z "$defaultval"; then
13505               if test x"$enablestring" = xdisable; then
13506                   defaultval=yes
13507               else
13508                   defaultval=no
13509               fi
13510           fi
13511
13512           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
13513 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
13514           # Check whether --enable-statusbar was given.
13515 if test "${enable_statusbar+set}" = set; then
13516   enableval=$enable_statusbar;
13517                           if test "$enableval" = yes; then
13518                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
13519                           else
13520                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
13521                           fi
13522                           cache=yes
13523
13524 else
13525
13526                           LINE=`grep "^wxUSE_STATUSBAR=" ${wx_arg_cache_file}`
13527                           if test "x$LINE" != x ; then
13528                               eval "DEFAULT_$LINE"
13529                               cache=yes
13530                           else
13531                               cache=no
13532                           fi
13533
13534                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
13535
13536 fi
13537
13538
13539           eval "$wx_cv_use_statusbar"
13540           if test "x$cache" = xyes; then
13541             echo "wxUSE_STATUSBAR=$wxUSE_STATUSBAR" >> ${wx_arg_cache_file}.tmp
13542           fi
13543
13544           if test x"$enablestring" = xdisable; then
13545             if test $wxUSE_STATUSBAR = yes; then
13546               result=no
13547             else
13548               result=yes
13549             fi
13550           else
13551             result=$wxUSE_STATUSBAR
13552           fi
13553
13554           { echo "$as_me:$LINENO: result: $result" >&5
13555 echo "${ECHO_T}$result" >&6; }
13556
13557
13558           enablestring=
13559           defaultval=$wxUSE_ALL_FEATURES
13560           if test -z "$defaultval"; then
13561               if test x"$enablestring" = xdisable; then
13562                   defaultval=yes
13563               else
13564                   defaultval=no
13565               fi
13566           fi
13567
13568           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
13569 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
13570           # Check whether --enable-tabdialog was given.
13571 if test "${enable_tabdialog+set}" = set; then
13572   enableval=$enable_tabdialog;
13573                           if test "$enableval" = yes; then
13574                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
13575                           else
13576                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
13577                           fi
13578                           cache=yes
13579
13580 else
13581
13582                           LINE=`grep "^wxUSE_TAB_DIALOG=" ${wx_arg_cache_file}`
13583                           if test "x$LINE" != x ; then
13584                               eval "DEFAULT_$LINE"
13585                               cache=yes
13586                           else
13587                               cache=no
13588                           fi
13589
13590                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
13591
13592 fi
13593
13594
13595           eval "$wx_cv_use_tabdialog"
13596           if test "x$cache" = xyes; then
13597             echo "wxUSE_TAB_DIALOG=$wxUSE_TAB_DIALOG" >> ${wx_arg_cache_file}.tmp
13598           fi
13599
13600           if test x"$enablestring" = xdisable; then
13601             if test $wxUSE_TAB_DIALOG = yes; then
13602               result=no
13603             else
13604               result=yes
13605             fi
13606           else
13607             result=$wxUSE_TAB_DIALOG
13608           fi
13609
13610           { echo "$as_me:$LINENO: result: $result" >&5
13611 echo "${ECHO_T}$result" >&6; }
13612
13613
13614           enablestring=
13615           defaultval=$wxUSE_ALL_FEATURES
13616           if test -z "$defaultval"; then
13617               if test x"$enablestring" = xdisable; then
13618                   defaultval=yes
13619               else
13620                   defaultval=no
13621               fi
13622           fi
13623
13624           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
13625 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
13626           # Check whether --enable-taskbaricon was given.
13627 if test "${enable_taskbaricon+set}" = set; then
13628   enableval=$enable_taskbaricon;
13629                           if test "$enableval" = yes; then
13630                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
13631                           else
13632                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
13633                           fi
13634                           cache=yes
13635
13636 else
13637
13638                           LINE=`grep "^wxUSE_TASKBARICON=" ${wx_arg_cache_file}`
13639                           if test "x$LINE" != x ; then
13640                               eval "DEFAULT_$LINE"
13641                               cache=yes
13642                           else
13643                               cache=no
13644                           fi
13645
13646                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
13647
13648 fi
13649
13650
13651           eval "$wx_cv_use_taskbaricon"
13652           if test "x$cache" = xyes; then
13653             echo "wxUSE_TASKBARICON=$wxUSE_TASKBARICON" >> ${wx_arg_cache_file}.tmp
13654           fi
13655
13656           if test x"$enablestring" = xdisable; then
13657             if test $wxUSE_TASKBARICON = yes; then
13658               result=no
13659             else
13660               result=yes
13661             fi
13662           else
13663             result=$wxUSE_TASKBARICON
13664           fi
13665
13666           { echo "$as_me:$LINENO: result: $result" >&5
13667 echo "${ECHO_T}$result" >&6; }
13668
13669
13670           enablestring=
13671           defaultval=$wxUSE_ALL_FEATURES
13672           if test -z "$defaultval"; then
13673               if test x"$enablestring" = xdisable; then
13674                   defaultval=yes
13675               else
13676                   defaultval=no
13677               fi
13678           fi
13679
13680           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
13681 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
13682           # Check whether --enable-textctrl was given.
13683 if test "${enable_textctrl+set}" = set; then
13684   enableval=$enable_textctrl;
13685                           if test "$enableval" = yes; then
13686                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
13687                           else
13688                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
13689                           fi
13690                           cache=yes
13691
13692 else
13693
13694                           LINE=`grep "^wxUSE_TEXTCTRL=" ${wx_arg_cache_file}`
13695                           if test "x$LINE" != x ; then
13696                               eval "DEFAULT_$LINE"
13697                               cache=yes
13698                           else
13699                               cache=no
13700                           fi
13701
13702                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
13703
13704 fi
13705
13706
13707           eval "$wx_cv_use_textctrl"
13708           if test "x$cache" = xyes; then
13709             echo "wxUSE_TEXTCTRL=$wxUSE_TEXTCTRL" >> ${wx_arg_cache_file}.tmp
13710           fi
13711
13712           if test x"$enablestring" = xdisable; then
13713             if test $wxUSE_TEXTCTRL = yes; then
13714               result=no
13715             else
13716               result=yes
13717             fi
13718           else
13719             result=$wxUSE_TEXTCTRL
13720           fi
13721
13722           { echo "$as_me:$LINENO: result: $result" >&5
13723 echo "${ECHO_T}$result" >&6; }
13724
13725
13726           enablestring=
13727           defaultval=$wxUSE_ALL_FEATURES
13728           if test -z "$defaultval"; then
13729               if test x"$enablestring" = xdisable; then
13730                   defaultval=yes
13731               else
13732                   defaultval=no
13733               fi
13734           fi
13735
13736           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
13737 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
13738           # Check whether --enable-togglebtn was given.
13739 if test "${enable_togglebtn+set}" = set; then
13740   enableval=$enable_togglebtn;
13741                           if test "$enableval" = yes; then
13742                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
13743                           else
13744                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
13745                           fi
13746                           cache=yes
13747
13748 else
13749
13750                           LINE=`grep "^wxUSE_TOGGLEBTN=" ${wx_arg_cache_file}`
13751                           if test "x$LINE" != x ; then
13752                               eval "DEFAULT_$LINE"
13753                               cache=yes
13754                           else
13755                               cache=no
13756                           fi
13757
13758                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
13759
13760 fi
13761
13762
13763           eval "$wx_cv_use_togglebtn"
13764           if test "x$cache" = xyes; then
13765             echo "wxUSE_TOGGLEBTN=$wxUSE_TOGGLEBTN" >> ${wx_arg_cache_file}.tmp
13766           fi
13767
13768           if test x"$enablestring" = xdisable; then
13769             if test $wxUSE_TOGGLEBTN = yes; then
13770               result=no
13771             else
13772               result=yes
13773             fi
13774           else
13775             result=$wxUSE_TOGGLEBTN
13776           fi
13777
13778           { echo "$as_me:$LINENO: result: $result" >&5
13779 echo "${ECHO_T}$result" >&6; }
13780
13781
13782           enablestring=
13783           defaultval=$wxUSE_ALL_FEATURES
13784           if test -z "$defaultval"; then
13785               if test x"$enablestring" = xdisable; then
13786                   defaultval=yes
13787               else
13788                   defaultval=no
13789               fi
13790           fi
13791
13792           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
13793 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
13794           # Check whether --enable-toolbar was given.
13795 if test "${enable_toolbar+set}" = set; then
13796   enableval=$enable_toolbar;
13797                           if test "$enableval" = yes; then
13798                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
13799                           else
13800                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
13801                           fi
13802                           cache=yes
13803
13804 else
13805
13806                           LINE=`grep "^wxUSE_TOOLBAR=" ${wx_arg_cache_file}`
13807                           if test "x$LINE" != x ; then
13808                               eval "DEFAULT_$LINE"
13809                               cache=yes
13810                           else
13811                               cache=no
13812                           fi
13813
13814                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
13815
13816 fi
13817
13818
13819           eval "$wx_cv_use_toolbar"
13820           if test "x$cache" = xyes; then
13821             echo "wxUSE_TOOLBAR=$wxUSE_TOOLBAR" >> ${wx_arg_cache_file}.tmp
13822           fi
13823
13824           if test x"$enablestring" = xdisable; then
13825             if test $wxUSE_TOOLBAR = yes; then
13826               result=no
13827             else
13828               result=yes
13829             fi
13830           else
13831             result=$wxUSE_TOOLBAR
13832           fi
13833
13834           { echo "$as_me:$LINENO: result: $result" >&5
13835 echo "${ECHO_T}$result" >&6; }
13836
13837
13838           enablestring=
13839           defaultval=$wxUSE_ALL_FEATURES
13840           if test -z "$defaultval"; then
13841               if test x"$enablestring" = xdisable; then
13842                   defaultval=yes
13843               else
13844                   defaultval=no
13845               fi
13846           fi
13847
13848           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
13849 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
13850           # Check whether --enable-tbarnative was given.
13851 if test "${enable_tbarnative+set}" = set; then
13852   enableval=$enable_tbarnative;
13853                           if test "$enableval" = yes; then
13854                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
13855                           else
13856                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
13857                           fi
13858                           cache=yes
13859
13860 else
13861
13862                           LINE=`grep "^wxUSE_TOOLBAR_NATIVE=" ${wx_arg_cache_file}`
13863                           if test "x$LINE" != x ; then
13864                               eval "DEFAULT_$LINE"
13865                               cache=yes
13866                           else
13867                               cache=no
13868                           fi
13869
13870                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
13871
13872 fi
13873
13874
13875           eval "$wx_cv_use_tbarnative"
13876           if test "x$cache" = xyes; then
13877             echo "wxUSE_TOOLBAR_NATIVE=$wxUSE_TOOLBAR_NATIVE" >> ${wx_arg_cache_file}.tmp
13878           fi
13879
13880           if test x"$enablestring" = xdisable; then
13881             if test $wxUSE_TOOLBAR_NATIVE = yes; then
13882               result=no
13883             else
13884               result=yes
13885             fi
13886           else
13887             result=$wxUSE_TOOLBAR_NATIVE
13888           fi
13889
13890           { echo "$as_me:$LINENO: result: $result" >&5
13891 echo "${ECHO_T}$result" >&6; }
13892
13893
13894           enablestring=
13895           defaultval=$wxUSE_ALL_FEATURES
13896           if test -z "$defaultval"; then
13897               if test x"$enablestring" = xdisable; then
13898                   defaultval=yes
13899               else
13900                   defaultval=no
13901               fi
13902           fi
13903
13904           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
13905 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
13906           # Check whether --enable-treebook was given.
13907 if test "${enable_treebook+set}" = set; then
13908   enableval=$enable_treebook;
13909                           if test "$enableval" = yes; then
13910                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
13911                           else
13912                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
13913                           fi
13914                           cache=yes
13915
13916 else
13917
13918                           LINE=`grep "^wxUSE_TREEBOOK=" ${wx_arg_cache_file}`
13919                           if test "x$LINE" != x ; then
13920                               eval "DEFAULT_$LINE"
13921                               cache=yes
13922                           else
13923                               cache=no
13924                           fi
13925
13926                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
13927
13928 fi
13929
13930
13931           eval "$wx_cv_use_treebook"
13932           if test "x$cache" = xyes; then
13933             echo "wxUSE_TREEBOOK=$wxUSE_TREEBOOK" >> ${wx_arg_cache_file}.tmp
13934           fi
13935
13936           if test x"$enablestring" = xdisable; then
13937             if test $wxUSE_TREEBOOK = yes; then
13938               result=no
13939             else
13940               result=yes
13941             fi
13942           else
13943             result=$wxUSE_TREEBOOK
13944           fi
13945
13946           { echo "$as_me:$LINENO: result: $result" >&5
13947 echo "${ECHO_T}$result" >&6; }
13948
13949
13950           enablestring=
13951           defaultval=$wxUSE_ALL_FEATURES
13952           if test -z "$defaultval"; then
13953               if test x"$enablestring" = xdisable; then
13954                   defaultval=yes
13955               else
13956                   defaultval=no
13957               fi
13958           fi
13959
13960           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
13961 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
13962           # Check whether --enable-toolbook was given.
13963 if test "${enable_toolbook+set}" = set; then
13964   enableval=$enable_toolbook;
13965                           if test "$enableval" = yes; then
13966                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
13967                           else
13968                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
13969                           fi
13970                           cache=yes
13971
13972 else
13973
13974                           LINE=`grep "^wxUSE_TOOLBOOK=" ${wx_arg_cache_file}`
13975                           if test "x$LINE" != x ; then
13976                               eval "DEFAULT_$LINE"
13977                               cache=yes
13978                           else
13979                               cache=no
13980                           fi
13981
13982                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
13983
13984 fi
13985
13986
13987           eval "$wx_cv_use_toolbook"
13988           if test "x$cache" = xyes; then
13989             echo "wxUSE_TOOLBOOK=$wxUSE_TOOLBOOK" >> ${wx_arg_cache_file}.tmp
13990           fi
13991
13992           if test x"$enablestring" = xdisable; then
13993             if test $wxUSE_TOOLBOOK = yes; then
13994               result=no
13995             else
13996               result=yes
13997             fi
13998           else
13999             result=$wxUSE_TOOLBOOK
14000           fi
14001
14002           { echo "$as_me:$LINENO: result: $result" >&5
14003 echo "${ECHO_T}$result" >&6; }
14004
14005
14006           enablestring=
14007           defaultval=$wxUSE_ALL_FEATURES
14008           if test -z "$defaultval"; then
14009               if test x"$enablestring" = xdisable; then
14010                   defaultval=yes
14011               else
14012                   defaultval=no
14013               fi
14014           fi
14015
14016           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
14017 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
14018           # Check whether --enable-treectrl was given.
14019 if test "${enable_treectrl+set}" = set; then
14020   enableval=$enable_treectrl;
14021                           if test "$enableval" = yes; then
14022                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
14023                           else
14024                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
14025                           fi
14026                           cache=yes
14027
14028 else
14029
14030                           LINE=`grep "^wxUSE_TREECTRL=" ${wx_arg_cache_file}`
14031                           if test "x$LINE" != x ; then
14032                               eval "DEFAULT_$LINE"
14033                               cache=yes
14034                           else
14035                               cache=no
14036                           fi
14037
14038                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
14039
14040 fi
14041
14042
14043           eval "$wx_cv_use_treectrl"
14044           if test "x$cache" = xyes; then
14045             echo "wxUSE_TREECTRL=$wxUSE_TREECTRL" >> ${wx_arg_cache_file}.tmp
14046           fi
14047
14048           if test x"$enablestring" = xdisable; then
14049             if test $wxUSE_TREECTRL = yes; then
14050               result=no
14051             else
14052               result=yes
14053             fi
14054           else
14055             result=$wxUSE_TREECTRL
14056           fi
14057
14058           { echo "$as_me:$LINENO: result: $result" >&5
14059 echo "${ECHO_T}$result" >&6; }
14060
14061
14062           enablestring=
14063           defaultval=$wxUSE_ALL_FEATURES
14064           if test -z "$defaultval"; then
14065               if test x"$enablestring" = xdisable; then
14066                   defaultval=yes
14067               else
14068                   defaultval=no
14069               fi
14070           fi
14071
14072           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
14073 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
14074           # Check whether --enable-tipwindow was given.
14075 if test "${enable_tipwindow+set}" = set; then
14076   enableval=$enable_tipwindow;
14077                           if test "$enableval" = yes; then
14078                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
14079                           else
14080                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
14081                           fi
14082                           cache=yes
14083
14084 else
14085
14086                           LINE=`grep "^wxUSE_TIPWINDOW=" ${wx_arg_cache_file}`
14087                           if test "x$LINE" != x ; then
14088                               eval "DEFAULT_$LINE"
14089                               cache=yes
14090                           else
14091                               cache=no
14092                           fi
14093
14094                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
14095
14096 fi
14097
14098
14099           eval "$wx_cv_use_tipwindow"
14100           if test "x$cache" = xyes; then
14101             echo "wxUSE_TIPWINDOW=$wxUSE_TIPWINDOW" >> ${wx_arg_cache_file}.tmp
14102           fi
14103
14104           if test x"$enablestring" = xdisable; then
14105             if test $wxUSE_TIPWINDOW = yes; then
14106               result=no
14107             else
14108               result=yes
14109             fi
14110           else
14111             result=$wxUSE_TIPWINDOW
14112           fi
14113
14114           { echo "$as_me:$LINENO: result: $result" >&5
14115 echo "${ECHO_T}$result" >&6; }
14116
14117
14118           enablestring=
14119           defaultval=$wxUSE_ALL_FEATURES
14120           if test -z "$defaultval"; then
14121               if test x"$enablestring" = xdisable; then
14122                   defaultval=yes
14123               else
14124                   defaultval=no
14125               fi
14126           fi
14127
14128           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
14129 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
14130           # Check whether --enable-popupwin was given.
14131 if test "${enable_popupwin+set}" = set; then
14132   enableval=$enable_popupwin;
14133                           if test "$enableval" = yes; then
14134                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
14135                           else
14136                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
14137                           fi
14138                           cache=yes
14139
14140 else
14141
14142                           LINE=`grep "^wxUSE_POPUPWIN=" ${wx_arg_cache_file}`
14143                           if test "x$LINE" != x ; then
14144                               eval "DEFAULT_$LINE"
14145                               cache=yes
14146                           else
14147                               cache=no
14148                           fi
14149
14150                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
14151
14152 fi
14153
14154
14155           eval "$wx_cv_use_popupwin"
14156           if test "x$cache" = xyes; then
14157             echo "wxUSE_POPUPWIN=$wxUSE_POPUPWIN" >> ${wx_arg_cache_file}.tmp
14158           fi
14159
14160           if test x"$enablestring" = xdisable; then
14161             if test $wxUSE_POPUPWIN = yes; then
14162               result=no
14163             else
14164               result=yes
14165             fi
14166           else
14167             result=$wxUSE_POPUPWIN
14168           fi
14169
14170           { echo "$as_me:$LINENO: result: $result" >&5
14171 echo "${ECHO_T}$result" >&6; }
14172
14173
14174
14175
14176           enablestring=
14177           defaultval=$wxUSE_ALL_FEATURES
14178           if test -z "$defaultval"; then
14179               if test x"$enablestring" = xdisable; then
14180                   defaultval=yes
14181               else
14182                   defaultval=no
14183               fi
14184           fi
14185
14186           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
14187 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
14188           # Check whether --enable-commondlg was given.
14189 if test "${enable_commondlg+set}" = set; then
14190   enableval=$enable_commondlg;
14191                           if test "$enableval" = yes; then
14192                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
14193                           else
14194                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
14195                           fi
14196                           cache=yes
14197
14198 else
14199
14200                           LINE=`grep "^wxUSE_COMMONDLGS=" ${wx_arg_cache_file}`
14201                           if test "x$LINE" != x ; then
14202                               eval "DEFAULT_$LINE"
14203                               cache=yes
14204                           else
14205                               cache=no
14206                           fi
14207
14208                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
14209
14210 fi
14211
14212
14213           eval "$wx_cv_use_commondlg"
14214           if test "x$cache" = xyes; then
14215             echo "wxUSE_COMMONDLGS=$wxUSE_COMMONDLGS" >> ${wx_arg_cache_file}.tmp
14216           fi
14217
14218           if test x"$enablestring" = xdisable; then
14219             if test $wxUSE_COMMONDLGS = yes; then
14220               result=no
14221             else
14222               result=yes
14223             fi
14224           else
14225             result=$wxUSE_COMMONDLGS
14226           fi
14227
14228           { echo "$as_me:$LINENO: result: $result" >&5
14229 echo "${ECHO_T}$result" >&6; }
14230
14231
14232           enablestring=
14233           defaultval=$wxUSE_ALL_FEATURES
14234           if test -z "$defaultval"; then
14235               if test x"$enablestring" = xdisable; then
14236                   defaultval=yes
14237               else
14238                   defaultval=no
14239               fi
14240           fi
14241
14242           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
14243 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
14244           # Check whether --enable-aboutdlg was given.
14245 if test "${enable_aboutdlg+set}" = set; then
14246   enableval=$enable_aboutdlg;
14247                           if test "$enableval" = yes; then
14248                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
14249                           else
14250                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
14251                           fi
14252                           cache=yes
14253
14254 else
14255
14256                           LINE=`grep "^wxUSE_ABOUTDLG=" ${wx_arg_cache_file}`
14257                           if test "x$LINE" != x ; then
14258                               eval "DEFAULT_$LINE"
14259                               cache=yes
14260                           else
14261                               cache=no
14262                           fi
14263
14264                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
14265
14266 fi
14267
14268
14269           eval "$wx_cv_use_aboutdlg"
14270           if test "x$cache" = xyes; then
14271             echo "wxUSE_ABOUTDLG=$wxUSE_ABOUTDLG" >> ${wx_arg_cache_file}.tmp
14272           fi
14273
14274           if test x"$enablestring" = xdisable; then
14275             if test $wxUSE_ABOUTDLG = yes; then
14276               result=no
14277             else
14278               result=yes
14279             fi
14280           else
14281             result=$wxUSE_ABOUTDLG
14282           fi
14283
14284           { echo "$as_me:$LINENO: result: $result" >&5
14285 echo "${ECHO_T}$result" >&6; }
14286
14287
14288           enablestring=
14289           defaultval=$wxUSE_ALL_FEATURES
14290           if test -z "$defaultval"; then
14291               if test x"$enablestring" = xdisable; then
14292                   defaultval=yes
14293               else
14294                   defaultval=no
14295               fi
14296           fi
14297
14298           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
14299 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
14300           # Check whether --enable-choicedlg was given.
14301 if test "${enable_choicedlg+set}" = set; then
14302   enableval=$enable_choicedlg;
14303                           if test "$enableval" = yes; then
14304                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
14305                           else
14306                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
14307                           fi
14308                           cache=yes
14309
14310 else
14311
14312                           LINE=`grep "^wxUSE_CHOICEDLG=" ${wx_arg_cache_file}`
14313                           if test "x$LINE" != x ; then
14314                               eval "DEFAULT_$LINE"
14315                               cache=yes
14316                           else
14317                               cache=no
14318                           fi
14319
14320                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
14321
14322 fi
14323
14324
14325           eval "$wx_cv_use_choicedlg"
14326           if test "x$cache" = xyes; then
14327             echo "wxUSE_CHOICEDLG=$wxUSE_CHOICEDLG" >> ${wx_arg_cache_file}.tmp
14328           fi
14329
14330           if test x"$enablestring" = xdisable; then
14331             if test $wxUSE_CHOICEDLG = yes; then
14332               result=no
14333             else
14334               result=yes
14335             fi
14336           else
14337             result=$wxUSE_CHOICEDLG
14338           fi
14339
14340           { echo "$as_me:$LINENO: result: $result" >&5
14341 echo "${ECHO_T}$result" >&6; }
14342
14343
14344           enablestring=
14345           defaultval=$wxUSE_ALL_FEATURES
14346           if test -z "$defaultval"; then
14347               if test x"$enablestring" = xdisable; then
14348                   defaultval=yes
14349               else
14350                   defaultval=no
14351               fi
14352           fi
14353
14354           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
14355 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
14356           # Check whether --enable-coldlg was given.
14357 if test "${enable_coldlg+set}" = set; then
14358   enableval=$enable_coldlg;
14359                           if test "$enableval" = yes; then
14360                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
14361                           else
14362                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
14363                           fi
14364                           cache=yes
14365
14366 else
14367
14368                           LINE=`grep "^wxUSE_COLOURDLG=" ${wx_arg_cache_file}`
14369                           if test "x$LINE" != x ; then
14370                               eval "DEFAULT_$LINE"
14371                               cache=yes
14372                           else
14373                               cache=no
14374                           fi
14375
14376                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
14377
14378 fi
14379
14380
14381           eval "$wx_cv_use_coldlg"
14382           if test "x$cache" = xyes; then
14383             echo "wxUSE_COLOURDLG=$wxUSE_COLOURDLG" >> ${wx_arg_cache_file}.tmp
14384           fi
14385
14386           if test x"$enablestring" = xdisable; then
14387             if test $wxUSE_COLOURDLG = yes; then
14388               result=no
14389             else
14390               result=yes
14391             fi
14392           else
14393             result=$wxUSE_COLOURDLG
14394           fi
14395
14396           { echo "$as_me:$LINENO: result: $result" >&5
14397 echo "${ECHO_T}$result" >&6; }
14398
14399
14400           enablestring=
14401           defaultval=$wxUSE_ALL_FEATURES
14402           if test -z "$defaultval"; then
14403               if test x"$enablestring" = xdisable; then
14404                   defaultval=yes
14405               else
14406                   defaultval=no
14407               fi
14408           fi
14409
14410           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
14411 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
14412           # Check whether --enable-filedlg was given.
14413 if test "${enable_filedlg+set}" = set; then
14414   enableval=$enable_filedlg;
14415                           if test "$enableval" = yes; then
14416                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
14417                           else
14418                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
14419                           fi
14420                           cache=yes
14421
14422 else
14423
14424                           LINE=`grep "^wxUSE_FILEDLG=" ${wx_arg_cache_file}`
14425                           if test "x$LINE" != x ; then
14426                               eval "DEFAULT_$LINE"
14427                               cache=yes
14428                           else
14429                               cache=no
14430                           fi
14431
14432                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
14433
14434 fi
14435
14436
14437           eval "$wx_cv_use_filedlg"
14438           if test "x$cache" = xyes; then
14439             echo "wxUSE_FILEDLG=$wxUSE_FILEDLG" >> ${wx_arg_cache_file}.tmp
14440           fi
14441
14442           if test x"$enablestring" = xdisable; then
14443             if test $wxUSE_FILEDLG = yes; then
14444               result=no
14445             else
14446               result=yes
14447             fi
14448           else
14449             result=$wxUSE_FILEDLG
14450           fi
14451
14452           { echo "$as_me:$LINENO: result: $result" >&5
14453 echo "${ECHO_T}$result" >&6; }
14454
14455
14456           enablestring=
14457           defaultval=$wxUSE_ALL_FEATURES
14458           if test -z "$defaultval"; then
14459               if test x"$enablestring" = xdisable; then
14460                   defaultval=yes
14461               else
14462                   defaultval=no
14463               fi
14464           fi
14465
14466           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
14467 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
14468           # Check whether --enable-finddlg was given.
14469 if test "${enable_finddlg+set}" = set; then
14470   enableval=$enable_finddlg;
14471                           if test "$enableval" = yes; then
14472                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
14473                           else
14474                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
14475                           fi
14476                           cache=yes
14477
14478 else
14479
14480                           LINE=`grep "^wxUSE_FINDREPLDLG=" ${wx_arg_cache_file}`
14481                           if test "x$LINE" != x ; then
14482                               eval "DEFAULT_$LINE"
14483                               cache=yes
14484                           else
14485                               cache=no
14486                           fi
14487
14488                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
14489
14490 fi
14491
14492
14493           eval "$wx_cv_use_finddlg"
14494           if test "x$cache" = xyes; then
14495             echo "wxUSE_FINDREPLDLG=$wxUSE_FINDREPLDLG" >> ${wx_arg_cache_file}.tmp
14496           fi
14497
14498           if test x"$enablestring" = xdisable; then
14499             if test $wxUSE_FINDREPLDLG = yes; then
14500               result=no
14501             else
14502               result=yes
14503             fi
14504           else
14505             result=$wxUSE_FINDREPLDLG
14506           fi
14507
14508           { echo "$as_me:$LINENO: result: $result" >&5
14509 echo "${ECHO_T}$result" >&6; }
14510
14511
14512           enablestring=
14513           defaultval=$wxUSE_ALL_FEATURES
14514           if test -z "$defaultval"; then
14515               if test x"$enablestring" = xdisable; then
14516                   defaultval=yes
14517               else
14518                   defaultval=no
14519               fi
14520           fi
14521
14522           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
14523 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
14524           # Check whether --enable-fontdlg was given.
14525 if test "${enable_fontdlg+set}" = set; then
14526   enableval=$enable_fontdlg;
14527                           if test "$enableval" = yes; then
14528                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
14529                           else
14530                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
14531                           fi
14532                           cache=yes
14533
14534 else
14535
14536                           LINE=`grep "^wxUSE_FONTDLG=" ${wx_arg_cache_file}`
14537                           if test "x$LINE" != x ; then
14538                               eval "DEFAULT_$LINE"
14539                               cache=yes
14540                           else
14541                               cache=no
14542                           fi
14543
14544                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
14545
14546 fi
14547
14548
14549           eval "$wx_cv_use_fontdlg"
14550           if test "x$cache" = xyes; then
14551             echo "wxUSE_FONTDLG=$wxUSE_FONTDLG" >> ${wx_arg_cache_file}.tmp
14552           fi
14553
14554           if test x"$enablestring" = xdisable; then
14555             if test $wxUSE_FONTDLG = yes; then
14556               result=no
14557             else
14558               result=yes
14559             fi
14560           else
14561             result=$wxUSE_FONTDLG
14562           fi
14563
14564           { echo "$as_me:$LINENO: result: $result" >&5
14565 echo "${ECHO_T}$result" >&6; }
14566
14567
14568           enablestring=
14569           defaultval=$wxUSE_ALL_FEATURES
14570           if test -z "$defaultval"; then
14571               if test x"$enablestring" = xdisable; then
14572                   defaultval=yes
14573               else
14574                   defaultval=no
14575               fi
14576           fi
14577
14578           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
14579 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
14580           # Check whether --enable-dirdlg was given.
14581 if test "${enable_dirdlg+set}" = set; then
14582   enableval=$enable_dirdlg;
14583                           if test "$enableval" = yes; then
14584                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
14585                           else
14586                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
14587                           fi
14588                           cache=yes
14589
14590 else
14591
14592                           LINE=`grep "^wxUSE_DIRDLG=" ${wx_arg_cache_file}`
14593                           if test "x$LINE" != x ; then
14594                               eval "DEFAULT_$LINE"
14595                               cache=yes
14596                           else
14597                               cache=no
14598                           fi
14599
14600                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
14601
14602 fi
14603
14604
14605           eval "$wx_cv_use_dirdlg"
14606           if test "x$cache" = xyes; then
14607             echo "wxUSE_DIRDLG=$wxUSE_DIRDLG" >> ${wx_arg_cache_file}.tmp
14608           fi
14609
14610           if test x"$enablestring" = xdisable; then
14611             if test $wxUSE_DIRDLG = yes; then
14612               result=no
14613             else
14614               result=yes
14615             fi
14616           else
14617             result=$wxUSE_DIRDLG
14618           fi
14619
14620           { echo "$as_me:$LINENO: result: $result" >&5
14621 echo "${ECHO_T}$result" >&6; }
14622
14623
14624           enablestring=
14625           defaultval=$wxUSE_ALL_FEATURES
14626           if test -z "$defaultval"; then
14627               if test x"$enablestring" = xdisable; then
14628                   defaultval=yes
14629               else
14630                   defaultval=no
14631               fi
14632           fi
14633
14634           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
14635 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
14636           # Check whether --enable-msgdlg was given.
14637 if test "${enable_msgdlg+set}" = set; then
14638   enableval=$enable_msgdlg;
14639                           if test "$enableval" = yes; then
14640                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
14641                           else
14642                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
14643                           fi
14644                           cache=yes
14645
14646 else
14647
14648                           LINE=`grep "^wxUSE_MSGDLG=" ${wx_arg_cache_file}`
14649                           if test "x$LINE" != x ; then
14650                               eval "DEFAULT_$LINE"
14651                               cache=yes
14652                           else
14653                               cache=no
14654                           fi
14655
14656                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
14657
14658 fi
14659
14660
14661           eval "$wx_cv_use_msgdlg"
14662           if test "x$cache" = xyes; then
14663             echo "wxUSE_MSGDLG=$wxUSE_MSGDLG" >> ${wx_arg_cache_file}.tmp
14664           fi
14665
14666           if test x"$enablestring" = xdisable; then
14667             if test $wxUSE_MSGDLG = yes; then
14668               result=no
14669             else
14670               result=yes
14671             fi
14672           else
14673             result=$wxUSE_MSGDLG
14674           fi
14675
14676           { echo "$as_me:$LINENO: result: $result" >&5
14677 echo "${ECHO_T}$result" >&6; }
14678
14679
14680           enablestring=
14681           defaultval=$wxUSE_ALL_FEATURES
14682           if test -z "$defaultval"; then
14683               if test x"$enablestring" = xdisable; then
14684                   defaultval=yes
14685               else
14686                   defaultval=no
14687               fi
14688           fi
14689
14690           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
14691 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
14692           # Check whether --enable-numberdlg was given.
14693 if test "${enable_numberdlg+set}" = set; then
14694   enableval=$enable_numberdlg;
14695                           if test "$enableval" = yes; then
14696                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
14697                           else
14698                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
14699                           fi
14700                           cache=yes
14701
14702 else
14703
14704                           LINE=`grep "^wxUSE_NUMBERDLG=" ${wx_arg_cache_file}`
14705                           if test "x$LINE" != x ; then
14706                               eval "DEFAULT_$LINE"
14707                               cache=yes
14708                           else
14709                               cache=no
14710                           fi
14711
14712                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
14713
14714 fi
14715
14716
14717           eval "$wx_cv_use_numberdlg"
14718           if test "x$cache" = xyes; then
14719             echo "wxUSE_NUMBERDLG=$wxUSE_NUMBERDLG" >> ${wx_arg_cache_file}.tmp
14720           fi
14721
14722           if test x"$enablestring" = xdisable; then
14723             if test $wxUSE_NUMBERDLG = yes; then
14724               result=no
14725             else
14726               result=yes
14727             fi
14728           else
14729             result=$wxUSE_NUMBERDLG
14730           fi
14731
14732           { echo "$as_me:$LINENO: result: $result" >&5
14733 echo "${ECHO_T}$result" >&6; }
14734
14735
14736           enablestring=
14737           defaultval=$wxUSE_ALL_FEATURES
14738           if test -z "$defaultval"; then
14739               if test x"$enablestring" = xdisable; then
14740                   defaultval=yes
14741               else
14742                   defaultval=no
14743               fi
14744           fi
14745
14746           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
14747 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
14748           # Check whether --enable-splash was given.
14749 if test "${enable_splash+set}" = set; then
14750   enableval=$enable_splash;
14751                           if test "$enableval" = yes; then
14752                             wx_cv_use_splash='wxUSE_SPLASH=yes'
14753                           else
14754                             wx_cv_use_splash='wxUSE_SPLASH=no'
14755                           fi
14756                           cache=yes
14757
14758 else
14759
14760                           LINE=`grep "^wxUSE_SPLASH=" ${wx_arg_cache_file}`
14761                           if test "x$LINE" != x ; then
14762                               eval "DEFAULT_$LINE"
14763                               cache=yes
14764                           else
14765                               cache=no
14766                           fi
14767
14768                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
14769
14770 fi
14771
14772
14773           eval "$wx_cv_use_splash"
14774           if test "x$cache" = xyes; then
14775             echo "wxUSE_SPLASH=$wxUSE_SPLASH" >> ${wx_arg_cache_file}.tmp
14776           fi
14777
14778           if test x"$enablestring" = xdisable; then
14779             if test $wxUSE_SPLASH = yes; then
14780               result=no
14781             else
14782               result=yes
14783             fi
14784           else
14785             result=$wxUSE_SPLASH
14786           fi
14787
14788           { echo "$as_me:$LINENO: result: $result" >&5
14789 echo "${ECHO_T}$result" >&6; }
14790
14791
14792           enablestring=
14793           defaultval=$wxUSE_ALL_FEATURES
14794           if test -z "$defaultval"; then
14795               if test x"$enablestring" = xdisable; then
14796                   defaultval=yes
14797               else
14798                   defaultval=no
14799               fi
14800           fi
14801
14802           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
14803 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
14804           # Check whether --enable-textdlg was given.
14805 if test "${enable_textdlg+set}" = set; then
14806   enableval=$enable_textdlg;
14807                           if test "$enableval" = yes; then
14808                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
14809                           else
14810                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
14811                           fi
14812                           cache=yes
14813
14814 else
14815
14816                           LINE=`grep "^wxUSE_TEXTDLG=" ${wx_arg_cache_file}`
14817                           if test "x$LINE" != x ; then
14818                               eval "DEFAULT_$LINE"
14819                               cache=yes
14820                           else
14821                               cache=no
14822                           fi
14823
14824                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
14825
14826 fi
14827
14828
14829           eval "$wx_cv_use_textdlg"
14830           if test "x$cache" = xyes; then
14831             echo "wxUSE_TEXTDLG=$wxUSE_TEXTDLG" >> ${wx_arg_cache_file}.tmp
14832           fi
14833
14834           if test x"$enablestring" = xdisable; then
14835             if test $wxUSE_TEXTDLG = yes; then
14836               result=no
14837             else
14838               result=yes
14839             fi
14840           else
14841             result=$wxUSE_TEXTDLG
14842           fi
14843
14844           { echo "$as_me:$LINENO: result: $result" >&5
14845 echo "${ECHO_T}$result" >&6; }
14846
14847
14848           enablestring=
14849           defaultval=$wxUSE_ALL_FEATURES
14850           if test -z "$defaultval"; then
14851               if test x"$enablestring" = xdisable; then
14852                   defaultval=yes
14853               else
14854                   defaultval=no
14855               fi
14856           fi
14857
14858           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
14859 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
14860           # Check whether --enable-tipdlg was given.
14861 if test "${enable_tipdlg+set}" = set; then
14862   enableval=$enable_tipdlg;
14863                           if test "$enableval" = yes; then
14864                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
14865                           else
14866                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
14867                           fi
14868                           cache=yes
14869
14870 else
14871
14872                           LINE=`grep "^wxUSE_STARTUP_TIPS=" ${wx_arg_cache_file}`
14873                           if test "x$LINE" != x ; then
14874                               eval "DEFAULT_$LINE"
14875                               cache=yes
14876                           else
14877                               cache=no
14878                           fi
14879
14880                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
14881
14882 fi
14883
14884
14885           eval "$wx_cv_use_tipdlg"
14886           if test "x$cache" = xyes; then
14887             echo "wxUSE_STARTUP_TIPS=$wxUSE_STARTUP_TIPS" >> ${wx_arg_cache_file}.tmp
14888           fi
14889
14890           if test x"$enablestring" = xdisable; then
14891             if test $wxUSE_STARTUP_TIPS = yes; then
14892               result=no
14893             else
14894               result=yes
14895             fi
14896           else
14897             result=$wxUSE_STARTUP_TIPS
14898           fi
14899
14900           { echo "$as_me:$LINENO: result: $result" >&5
14901 echo "${ECHO_T}$result" >&6; }
14902
14903
14904           enablestring=
14905           defaultval=$wxUSE_ALL_FEATURES
14906           if test -z "$defaultval"; then
14907               if test x"$enablestring" = xdisable; then
14908                   defaultval=yes
14909               else
14910                   defaultval=no
14911               fi
14912           fi
14913
14914           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
14915 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
14916           # Check whether --enable-progressdlg was given.
14917 if test "${enable_progressdlg+set}" = set; then
14918   enableval=$enable_progressdlg;
14919                           if test "$enableval" = yes; then
14920                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
14921                           else
14922                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
14923                           fi
14924                           cache=yes
14925
14926 else
14927
14928                           LINE=`grep "^wxUSE_PROGRESSDLG=" ${wx_arg_cache_file}`
14929                           if test "x$LINE" != x ; then
14930                               eval "DEFAULT_$LINE"
14931                               cache=yes
14932                           else
14933                               cache=no
14934                           fi
14935
14936                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
14937
14938 fi
14939
14940
14941           eval "$wx_cv_use_progressdlg"
14942           if test "x$cache" = xyes; then
14943             echo "wxUSE_PROGRESSDLG=$wxUSE_PROGRESSDLG" >> ${wx_arg_cache_file}.tmp
14944           fi
14945
14946           if test x"$enablestring" = xdisable; then
14947             if test $wxUSE_PROGRESSDLG = yes; then
14948               result=no
14949             else
14950               result=yes
14951             fi
14952           else
14953             result=$wxUSE_PROGRESSDLG
14954           fi
14955
14956           { echo "$as_me:$LINENO: result: $result" >&5
14957 echo "${ECHO_T}$result" >&6; }
14958
14959
14960           enablestring=
14961           defaultval=$wxUSE_ALL_FEATURES
14962           if test -z "$defaultval"; then
14963               if test x"$enablestring" = xdisable; then
14964                   defaultval=yes
14965               else
14966                   defaultval=no
14967               fi
14968           fi
14969
14970           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
14971 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
14972           # Check whether --enable-wizarddlg was given.
14973 if test "${enable_wizarddlg+set}" = set; then
14974   enableval=$enable_wizarddlg;
14975                           if test "$enableval" = yes; then
14976                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
14977                           else
14978                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
14979                           fi
14980                           cache=yes
14981
14982 else
14983
14984                           LINE=`grep "^wxUSE_WIZARDDLG=" ${wx_arg_cache_file}`
14985                           if test "x$LINE" != x ; then
14986                               eval "DEFAULT_$LINE"
14987                               cache=yes
14988                           else
14989                               cache=no
14990                           fi
14991
14992                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
14993
14994 fi
14995
14996
14997           eval "$wx_cv_use_wizarddlg"
14998           if test "x$cache" = xyes; then
14999             echo "wxUSE_WIZARDDLG=$wxUSE_WIZARDDLG" >> ${wx_arg_cache_file}.tmp
15000           fi
15001
15002           if test x"$enablestring" = xdisable; then
15003             if test $wxUSE_WIZARDDLG = yes; then
15004               result=no
15005             else
15006               result=yes
15007             fi
15008           else
15009             result=$wxUSE_WIZARDDLG
15010           fi
15011
15012           { echo "$as_me:$LINENO: result: $result" >&5
15013 echo "${ECHO_T}$result" >&6; }
15014
15015
15016
15017
15018           enablestring=
15019           defaultval=$wxUSE_ALL_FEATURES
15020           if test -z "$defaultval"; then
15021               if test x"$enablestring" = xdisable; then
15022                   defaultval=yes
15023               else
15024                   defaultval=no
15025               fi
15026           fi
15027
15028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
15029 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
15030           # Check whether --enable-menus was given.
15031 if test "${enable_menus+set}" = set; then
15032   enableval=$enable_menus;
15033                           if test "$enableval" = yes; then
15034                             wx_cv_use_menus='wxUSE_MENUS=yes'
15035                           else
15036                             wx_cv_use_menus='wxUSE_MENUS=no'
15037                           fi
15038                           cache=yes
15039
15040 else
15041
15042                           LINE=`grep "^wxUSE_MENUS=" ${wx_arg_cache_file}`
15043                           if test "x$LINE" != x ; then
15044                               eval "DEFAULT_$LINE"
15045                               cache=yes
15046                           else
15047                               cache=no
15048                           fi
15049
15050                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
15051
15052 fi
15053
15054
15055           eval "$wx_cv_use_menus"
15056           if test "x$cache" = xyes; then
15057             echo "wxUSE_MENUS=$wxUSE_MENUS" >> ${wx_arg_cache_file}.tmp
15058           fi
15059
15060           if test x"$enablestring" = xdisable; then
15061             if test $wxUSE_MENUS = yes; then
15062               result=no
15063             else
15064               result=yes
15065             fi
15066           else
15067             result=$wxUSE_MENUS
15068           fi
15069
15070           { echo "$as_me:$LINENO: result: $result" >&5
15071 echo "${ECHO_T}$result" >&6; }
15072
15073
15074           enablestring=
15075           defaultval=$wxUSE_ALL_FEATURES
15076           if test -z "$defaultval"; then
15077               if test x"$enablestring" = xdisable; then
15078                   defaultval=yes
15079               else
15080                   defaultval=no
15081               fi
15082           fi
15083
15084           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
15085 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
15086           # Check whether --enable-miniframe was given.
15087 if test "${enable_miniframe+set}" = set; then
15088   enableval=$enable_miniframe;
15089                           if test "$enableval" = yes; then
15090                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
15091                           else
15092                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
15093                           fi
15094                           cache=yes
15095
15096 else
15097
15098                           LINE=`grep "^wxUSE_MINIFRAME=" ${wx_arg_cache_file}`
15099                           if test "x$LINE" != x ; then
15100                               eval "DEFAULT_$LINE"
15101                               cache=yes
15102                           else
15103                               cache=no
15104                           fi
15105
15106                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
15107
15108 fi
15109
15110
15111           eval "$wx_cv_use_miniframe"
15112           if test "x$cache" = xyes; then
15113             echo "wxUSE_MINIFRAME=$wxUSE_MINIFRAME" >> ${wx_arg_cache_file}.tmp
15114           fi
15115
15116           if test x"$enablestring" = xdisable; then
15117             if test $wxUSE_MINIFRAME = yes; then
15118               result=no
15119             else
15120               result=yes
15121             fi
15122           else
15123             result=$wxUSE_MINIFRAME
15124           fi
15125
15126           { echo "$as_me:$LINENO: result: $result" >&5
15127 echo "${ECHO_T}$result" >&6; }
15128
15129
15130           enablestring=
15131           defaultval=$wxUSE_ALL_FEATURES
15132           if test -z "$defaultval"; then
15133               if test x"$enablestring" = xdisable; then
15134                   defaultval=yes
15135               else
15136                   defaultval=no
15137               fi
15138           fi
15139
15140           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
15141 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
15142           # Check whether --enable-tooltips was given.
15143 if test "${enable_tooltips+set}" = set; then
15144   enableval=$enable_tooltips;
15145                           if test "$enableval" = yes; then
15146                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
15147                           else
15148                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
15149                           fi
15150                           cache=yes
15151
15152 else
15153
15154                           LINE=`grep "^wxUSE_TOOLTIPS=" ${wx_arg_cache_file}`
15155                           if test "x$LINE" != x ; then
15156                               eval "DEFAULT_$LINE"
15157                               cache=yes
15158                           else
15159                               cache=no
15160                           fi
15161
15162                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
15163
15164 fi
15165
15166
15167           eval "$wx_cv_use_tooltips"
15168           if test "x$cache" = xyes; then
15169             echo "wxUSE_TOOLTIPS=$wxUSE_TOOLTIPS" >> ${wx_arg_cache_file}.tmp
15170           fi
15171
15172           if test x"$enablestring" = xdisable; then
15173             if test $wxUSE_TOOLTIPS = yes; then
15174               result=no
15175             else
15176               result=yes
15177             fi
15178           else
15179             result=$wxUSE_TOOLTIPS
15180           fi
15181
15182           { echo "$as_me:$LINENO: result: $result" >&5
15183 echo "${ECHO_T}$result" >&6; }
15184
15185
15186           enablestring=
15187           defaultval=$wxUSE_ALL_FEATURES
15188           if test -z "$defaultval"; then
15189               if test x"$enablestring" = xdisable; then
15190                   defaultval=yes
15191               else
15192                   defaultval=no
15193               fi
15194           fi
15195
15196           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
15197 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
15198           # Check whether --enable-splines was given.
15199 if test "${enable_splines+set}" = set; then
15200   enableval=$enable_splines;
15201                           if test "$enableval" = yes; then
15202                             wx_cv_use_splines='wxUSE_SPLINES=yes'
15203                           else
15204                             wx_cv_use_splines='wxUSE_SPLINES=no'
15205                           fi
15206                           cache=yes
15207
15208 else
15209
15210                           LINE=`grep "^wxUSE_SPLINES=" ${wx_arg_cache_file}`
15211                           if test "x$LINE" != x ; then
15212                               eval "DEFAULT_$LINE"
15213                               cache=yes
15214                           else
15215                               cache=no
15216                           fi
15217
15218                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
15219
15220 fi
15221
15222
15223           eval "$wx_cv_use_splines"
15224           if test "x$cache" = xyes; then
15225             echo "wxUSE_SPLINES=$wxUSE_SPLINES" >> ${wx_arg_cache_file}.tmp
15226           fi
15227
15228           if test x"$enablestring" = xdisable; then
15229             if test $wxUSE_SPLINES = yes; then
15230               result=no
15231             else
15232               result=yes
15233             fi
15234           else
15235             result=$wxUSE_SPLINES
15236           fi
15237
15238           { echo "$as_me:$LINENO: result: $result" >&5
15239 echo "${ECHO_T}$result" >&6; }
15240
15241
15242           enablestring=
15243           defaultval=$wxUSE_ALL_FEATURES
15244           if test -z "$defaultval"; then
15245               if test x"$enablestring" = xdisable; then
15246                   defaultval=yes
15247               else
15248                   defaultval=no
15249               fi
15250           fi
15251
15252           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
15253 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
15254           # Check whether --enable-mousewheel was given.
15255 if test "${enable_mousewheel+set}" = set; then
15256   enableval=$enable_mousewheel;
15257                           if test "$enableval" = yes; then
15258                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
15259                           else
15260                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
15261                           fi
15262                           cache=yes
15263
15264 else
15265
15266                           LINE=`grep "^wxUSE_MOUSEWHEEL=" ${wx_arg_cache_file}`
15267                           if test "x$LINE" != x ; then
15268                               eval "DEFAULT_$LINE"
15269                               cache=yes
15270                           else
15271                               cache=no
15272                           fi
15273
15274                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
15275
15276 fi
15277
15278
15279           eval "$wx_cv_use_mousewheel"
15280           if test "x$cache" = xyes; then
15281             echo "wxUSE_MOUSEWHEEL=$wxUSE_MOUSEWHEEL" >> ${wx_arg_cache_file}.tmp
15282           fi
15283
15284           if test x"$enablestring" = xdisable; then
15285             if test $wxUSE_MOUSEWHEEL = yes; then
15286               result=no
15287             else
15288               result=yes
15289             fi
15290           else
15291             result=$wxUSE_MOUSEWHEEL
15292           fi
15293
15294           { echo "$as_me:$LINENO: result: $result" >&5
15295 echo "${ECHO_T}$result" >&6; }
15296
15297
15298           enablestring=
15299           defaultval=$wxUSE_ALL_FEATURES
15300           if test -z "$defaultval"; then
15301               if test x"$enablestring" = xdisable; then
15302                   defaultval=yes
15303               else
15304                   defaultval=no
15305               fi
15306           fi
15307
15308           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
15309 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
15310           # Check whether --enable-validators was given.
15311 if test "${enable_validators+set}" = set; then
15312   enableval=$enable_validators;
15313                           if test "$enableval" = yes; then
15314                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
15315                           else
15316                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
15317                           fi
15318                           cache=yes
15319
15320 else
15321
15322                           LINE=`grep "^wxUSE_VALIDATORS=" ${wx_arg_cache_file}`
15323                           if test "x$LINE" != x ; then
15324                               eval "DEFAULT_$LINE"
15325                               cache=yes
15326                           else
15327                               cache=no
15328                           fi
15329
15330                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
15331
15332 fi
15333
15334
15335           eval "$wx_cv_use_validators"
15336           if test "x$cache" = xyes; then
15337             echo "wxUSE_VALIDATORS=$wxUSE_VALIDATORS" >> ${wx_arg_cache_file}.tmp
15338           fi
15339
15340           if test x"$enablestring" = xdisable; then
15341             if test $wxUSE_VALIDATORS = yes; then
15342               result=no
15343             else
15344               result=yes
15345             fi
15346           else
15347             result=$wxUSE_VALIDATORS
15348           fi
15349
15350           { echo "$as_me:$LINENO: result: $result" >&5
15351 echo "${ECHO_T}$result" >&6; }
15352
15353
15354           enablestring=
15355           defaultval=$wxUSE_ALL_FEATURES
15356           if test -z "$defaultval"; then
15357               if test x"$enablestring" = xdisable; then
15358                   defaultval=yes
15359               else
15360                   defaultval=no
15361               fi
15362           fi
15363
15364           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
15365 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
15366           # Check whether --enable-busyinfo was given.
15367 if test "${enable_busyinfo+set}" = set; then
15368   enableval=$enable_busyinfo;
15369                           if test "$enableval" = yes; then
15370                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
15371                           else
15372                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
15373                           fi
15374                           cache=yes
15375
15376 else
15377
15378                           LINE=`grep "^wxUSE_BUSYINFO=" ${wx_arg_cache_file}`
15379                           if test "x$LINE" != x ; then
15380                               eval "DEFAULT_$LINE"
15381                               cache=yes
15382                           else
15383                               cache=no
15384                           fi
15385
15386                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
15387
15388 fi
15389
15390
15391           eval "$wx_cv_use_busyinfo"
15392           if test "x$cache" = xyes; then
15393             echo "wxUSE_BUSYINFO=$wxUSE_BUSYINFO" >> ${wx_arg_cache_file}.tmp
15394           fi
15395
15396           if test x"$enablestring" = xdisable; then
15397             if test $wxUSE_BUSYINFO = yes; then
15398               result=no
15399             else
15400               result=yes
15401             fi
15402           else
15403             result=$wxUSE_BUSYINFO
15404           fi
15405
15406           { echo "$as_me:$LINENO: result: $result" >&5
15407 echo "${ECHO_T}$result" >&6; }
15408
15409
15410           enablestring=
15411           defaultval=$wxUSE_ALL_FEATURES
15412           if test -z "$defaultval"; then
15413               if test x"$enablestring" = xdisable; then
15414                   defaultval=yes
15415               else
15416                   defaultval=no
15417               fi
15418           fi
15419
15420           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
15421 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
15422           # Check whether --enable-joystick was given.
15423 if test "${enable_joystick+set}" = set; then
15424   enableval=$enable_joystick;
15425                           if test "$enableval" = yes; then
15426                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
15427                           else
15428                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
15429                           fi
15430                           cache=yes
15431
15432 else
15433
15434                           LINE=`grep "^wxUSE_JOYSTICK=" ${wx_arg_cache_file}`
15435                           if test "x$LINE" != x ; then
15436                               eval "DEFAULT_$LINE"
15437                               cache=yes
15438                           else
15439                               cache=no
15440                           fi
15441
15442                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
15443
15444 fi
15445
15446
15447           eval "$wx_cv_use_joystick"
15448           if test "x$cache" = xyes; then
15449             echo "wxUSE_JOYSTICK=$wxUSE_JOYSTICK" >> ${wx_arg_cache_file}.tmp
15450           fi
15451
15452           if test x"$enablestring" = xdisable; then
15453             if test $wxUSE_JOYSTICK = yes; then
15454               result=no
15455             else
15456               result=yes
15457             fi
15458           else
15459             result=$wxUSE_JOYSTICK
15460           fi
15461
15462           { echo "$as_me:$LINENO: result: $result" >&5
15463 echo "${ECHO_T}$result" >&6; }
15464
15465
15466           enablestring=
15467           defaultval=$wxUSE_ALL_FEATURES
15468           if test -z "$defaultval"; then
15469               if test x"$enablestring" = xdisable; then
15470                   defaultval=yes
15471               else
15472                   defaultval=no
15473               fi
15474           fi
15475
15476           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
15477 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
15478           # Check whether --enable-metafile was given.
15479 if test "${enable_metafile+set}" = set; then
15480   enableval=$enable_metafile;
15481                           if test "$enableval" = yes; then
15482                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
15483                           else
15484                             wx_cv_use_metafile='wxUSE_METAFILE=no'
15485                           fi
15486                           cache=yes
15487
15488 else
15489
15490                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
15491                           if test "x$LINE" != x ; then
15492                               eval "DEFAULT_$LINE"
15493                               cache=yes
15494                           else
15495                               cache=no
15496                           fi
15497
15498                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
15499
15500 fi
15501
15502
15503           eval "$wx_cv_use_metafile"
15504           if test "x$cache" = xyes; then
15505             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
15506           fi
15507
15508           if test x"$enablestring" = xdisable; then
15509             if test $wxUSE_METAFILE = yes; then
15510               result=no
15511             else
15512               result=yes
15513             fi
15514           else
15515             result=$wxUSE_METAFILE
15516           fi
15517
15518           { echo "$as_me:$LINENO: result: $result" >&5
15519 echo "${ECHO_T}$result" >&6; }
15520
15521
15522           enablestring=
15523           defaultval=$wxUSE_ALL_FEATURES
15524           if test -z "$defaultval"; then
15525               if test x"$enablestring" = xdisable; then
15526                   defaultval=yes
15527               else
15528                   defaultval=no
15529               fi
15530           fi
15531
15532           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
15533 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
15534           # Check whether --enable-dragimage was given.
15535 if test "${enable_dragimage+set}" = set; then
15536   enableval=$enable_dragimage;
15537                           if test "$enableval" = yes; then
15538                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
15539                           else
15540                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
15541                           fi
15542                           cache=yes
15543
15544 else
15545
15546                           LINE=`grep "^wxUSE_DRAGIMAGE=" ${wx_arg_cache_file}`
15547                           if test "x$LINE" != x ; then
15548                               eval "DEFAULT_$LINE"
15549                               cache=yes
15550                           else
15551                               cache=no
15552                           fi
15553
15554                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
15555
15556 fi
15557
15558
15559           eval "$wx_cv_use_dragimage"
15560           if test "x$cache" = xyes; then
15561             echo "wxUSE_DRAGIMAGE=$wxUSE_DRAGIMAGE" >> ${wx_arg_cache_file}.tmp
15562           fi
15563
15564           if test x"$enablestring" = xdisable; then
15565             if test $wxUSE_DRAGIMAGE = yes; then
15566               result=no
15567             else
15568               result=yes
15569             fi
15570           else
15571             result=$wxUSE_DRAGIMAGE
15572           fi
15573
15574           { echo "$as_me:$LINENO: result: $result" >&5
15575 echo "${ECHO_T}$result" >&6; }
15576
15577
15578           enablestring=
15579           defaultval=$wxUSE_ALL_FEATURES
15580           if test -z "$defaultval"; then
15581               if test x"$enablestring" = xdisable; then
15582                   defaultval=yes
15583               else
15584                   defaultval=no
15585               fi
15586           fi
15587
15588           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
15589 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
15590           # Check whether --enable-accessibility was given.
15591 if test "${enable_accessibility+set}" = set; then
15592   enableval=$enable_accessibility;
15593                           if test "$enableval" = yes; then
15594                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
15595                           else
15596                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
15597                           fi
15598                           cache=yes
15599
15600 else
15601
15602                           LINE=`grep "^wxUSE_ACCESSIBILITY=" ${wx_arg_cache_file}`
15603                           if test "x$LINE" != x ; then
15604                               eval "DEFAULT_$LINE"
15605                               cache=yes
15606                           else
15607                               cache=no
15608                           fi
15609
15610                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
15611
15612 fi
15613
15614
15615           eval "$wx_cv_use_accessibility"
15616           if test "x$cache" = xyes; then
15617             echo "wxUSE_ACCESSIBILITY=$wxUSE_ACCESSIBILITY" >> ${wx_arg_cache_file}.tmp
15618           fi
15619
15620           if test x"$enablestring" = xdisable; then
15621             if test $wxUSE_ACCESSIBILITY = yes; then
15622               result=no
15623             else
15624               result=yes
15625             fi
15626           else
15627             result=$wxUSE_ACCESSIBILITY
15628           fi
15629
15630           { echo "$as_me:$LINENO: result: $result" >&5
15631 echo "${ECHO_T}$result" >&6; }
15632
15633
15634
15635
15636           enablestring=
15637           defaultval=$wxUSE_ALL_FEATURES
15638           if test -z "$defaultval"; then
15639               if test x"$enablestring" = xdisable; then
15640                   defaultval=yes
15641               else
15642                   defaultval=no
15643               fi
15644           fi
15645
15646           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
15647 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
15648           # Check whether --enable-palette was given.
15649 if test "${enable_palette+set}" = set; then
15650   enableval=$enable_palette;
15651                           if test "$enableval" = yes; then
15652                             wx_cv_use_palette='wxUSE_PALETTE=yes'
15653                           else
15654                             wx_cv_use_palette='wxUSE_PALETTE=no'
15655                           fi
15656                           cache=yes
15657
15658 else
15659
15660                           LINE=`grep "^wxUSE_PALETTE=" ${wx_arg_cache_file}`
15661                           if test "x$LINE" != x ; then
15662                               eval "DEFAULT_$LINE"
15663                               cache=yes
15664                           else
15665                               cache=no
15666                           fi
15667
15668                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
15669
15670 fi
15671
15672
15673           eval "$wx_cv_use_palette"
15674           if test "x$cache" = xyes; then
15675             echo "wxUSE_PALETTE=$wxUSE_PALETTE" >> ${wx_arg_cache_file}.tmp
15676           fi
15677
15678           if test x"$enablestring" = xdisable; then
15679             if test $wxUSE_PALETTE = yes; then
15680               result=no
15681             else
15682               result=yes
15683             fi
15684           else
15685             result=$wxUSE_PALETTE
15686           fi
15687
15688           { echo "$as_me:$LINENO: result: $result" >&5
15689 echo "${ECHO_T}$result" >&6; }
15690
15691
15692           enablestring=
15693           defaultval=$wxUSE_ALL_FEATURES
15694           if test -z "$defaultval"; then
15695               if test x"$enablestring" = xdisable; then
15696                   defaultval=yes
15697               else
15698                   defaultval=no
15699               fi
15700           fi
15701
15702           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
15703 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
15704           # Check whether --enable-image was given.
15705 if test "${enable_image+set}" = set; then
15706   enableval=$enable_image;
15707                           if test "$enableval" = yes; then
15708                             wx_cv_use_image='wxUSE_IMAGE=yes'
15709                           else
15710                             wx_cv_use_image='wxUSE_IMAGE=no'
15711                           fi
15712                           cache=yes
15713
15714 else
15715
15716                           LINE=`grep "^wxUSE_IMAGE=" ${wx_arg_cache_file}`
15717                           if test "x$LINE" != x ; then
15718                               eval "DEFAULT_$LINE"
15719                               cache=yes
15720                           else
15721                               cache=no
15722                           fi
15723
15724                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
15725
15726 fi
15727
15728
15729           eval "$wx_cv_use_image"
15730           if test "x$cache" = xyes; then
15731             echo "wxUSE_IMAGE=$wxUSE_IMAGE" >> ${wx_arg_cache_file}.tmp
15732           fi
15733
15734           if test x"$enablestring" = xdisable; then
15735             if test $wxUSE_IMAGE = yes; then
15736               result=no
15737             else
15738               result=yes
15739             fi
15740           else
15741             result=$wxUSE_IMAGE
15742           fi
15743
15744           { echo "$as_me:$LINENO: result: $result" >&5
15745 echo "${ECHO_T}$result" >&6; }
15746
15747
15748           enablestring=
15749           defaultval=$wxUSE_ALL_FEATURES
15750           if test -z "$defaultval"; then
15751               if test x"$enablestring" = xdisable; then
15752                   defaultval=yes
15753               else
15754                   defaultval=no
15755               fi
15756           fi
15757
15758           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
15759 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
15760           # Check whether --enable-gif was given.
15761 if test "${enable_gif+set}" = set; then
15762   enableval=$enable_gif;
15763                           if test "$enableval" = yes; then
15764                             wx_cv_use_gif='wxUSE_GIF=yes'
15765                           else
15766                             wx_cv_use_gif='wxUSE_GIF=no'
15767                           fi
15768                           cache=yes
15769
15770 else
15771
15772                           LINE=`grep "^wxUSE_GIF=" ${wx_arg_cache_file}`
15773                           if test "x$LINE" != x ; then
15774                               eval "DEFAULT_$LINE"
15775                               cache=yes
15776                           else
15777                               cache=no
15778                           fi
15779
15780                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
15781
15782 fi
15783
15784
15785           eval "$wx_cv_use_gif"
15786           if test "x$cache" = xyes; then
15787             echo "wxUSE_GIF=$wxUSE_GIF" >> ${wx_arg_cache_file}.tmp
15788           fi
15789
15790           if test x"$enablestring" = xdisable; then
15791             if test $wxUSE_GIF = yes; then
15792               result=no
15793             else
15794               result=yes
15795             fi
15796           else
15797             result=$wxUSE_GIF
15798           fi
15799
15800           { echo "$as_me:$LINENO: result: $result" >&5
15801 echo "${ECHO_T}$result" >&6; }
15802
15803
15804           enablestring=
15805           defaultval=$wxUSE_ALL_FEATURES
15806           if test -z "$defaultval"; then
15807               if test x"$enablestring" = xdisable; then
15808                   defaultval=yes
15809               else
15810                   defaultval=no
15811               fi
15812           fi
15813
15814           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
15815 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
15816           # Check whether --enable-pcx was given.
15817 if test "${enable_pcx+set}" = set; then
15818   enableval=$enable_pcx;
15819                           if test "$enableval" = yes; then
15820                             wx_cv_use_pcx='wxUSE_PCX=yes'
15821                           else
15822                             wx_cv_use_pcx='wxUSE_PCX=no'
15823                           fi
15824                           cache=yes
15825
15826 else
15827
15828                           LINE=`grep "^wxUSE_PCX=" ${wx_arg_cache_file}`
15829                           if test "x$LINE" != x ; then
15830                               eval "DEFAULT_$LINE"
15831                               cache=yes
15832                           else
15833                               cache=no
15834                           fi
15835
15836                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
15837
15838 fi
15839
15840
15841           eval "$wx_cv_use_pcx"
15842           if test "x$cache" = xyes; then
15843             echo "wxUSE_PCX=$wxUSE_PCX" >> ${wx_arg_cache_file}.tmp
15844           fi
15845
15846           if test x"$enablestring" = xdisable; then
15847             if test $wxUSE_PCX = yes; then
15848               result=no
15849             else
15850               result=yes
15851             fi
15852           else
15853             result=$wxUSE_PCX
15854           fi
15855
15856           { echo "$as_me:$LINENO: result: $result" >&5
15857 echo "${ECHO_T}$result" >&6; }
15858
15859
15860           enablestring=
15861           defaultval=$wxUSE_ALL_FEATURES
15862           if test -z "$defaultval"; then
15863               if test x"$enablestring" = xdisable; then
15864                   defaultval=yes
15865               else
15866                   defaultval=no
15867               fi
15868           fi
15869
15870           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
15871 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
15872           # Check whether --enable-tga was given.
15873 if test "${enable_tga+set}" = set; then
15874   enableval=$enable_tga;
15875                           if test "$enableval" = yes; then
15876                             wx_cv_use_tga='wxUSE_TGA=yes'
15877                           else
15878                             wx_cv_use_tga='wxUSE_TGA=no'
15879                           fi
15880                           cache=yes
15881
15882 else
15883
15884                           LINE=`grep "^wxUSE_TGA=" ${wx_arg_cache_file}`
15885                           if test "x$LINE" != x ; then
15886                               eval "DEFAULT_$LINE"
15887                               cache=yes
15888                           else
15889                               cache=no
15890                           fi
15891
15892                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
15893
15894 fi
15895
15896
15897           eval "$wx_cv_use_tga"
15898           if test "x$cache" = xyes; then
15899             echo "wxUSE_TGA=$wxUSE_TGA" >> ${wx_arg_cache_file}.tmp
15900           fi
15901
15902           if test x"$enablestring" = xdisable; then
15903             if test $wxUSE_TGA = yes; then
15904               result=no
15905             else
15906               result=yes
15907             fi
15908           else
15909             result=$wxUSE_TGA
15910           fi
15911
15912           { echo "$as_me:$LINENO: result: $result" >&5
15913 echo "${ECHO_T}$result" >&6; }
15914
15915
15916           enablestring=
15917           defaultval=$wxUSE_ALL_FEATURES
15918           if test -z "$defaultval"; then
15919               if test x"$enablestring" = xdisable; then
15920                   defaultval=yes
15921               else
15922                   defaultval=no
15923               fi
15924           fi
15925
15926           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
15927 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
15928           # Check whether --enable-iff was given.
15929 if test "${enable_iff+set}" = set; then
15930   enableval=$enable_iff;
15931                           if test "$enableval" = yes; then
15932                             wx_cv_use_iff='wxUSE_IFF=yes'
15933                           else
15934                             wx_cv_use_iff='wxUSE_IFF=no'
15935                           fi
15936                           cache=yes
15937
15938 else
15939
15940                           LINE=`grep "^wxUSE_IFF=" ${wx_arg_cache_file}`
15941                           if test "x$LINE" != x ; then
15942                               eval "DEFAULT_$LINE"
15943                               cache=yes
15944                           else
15945                               cache=no
15946                           fi
15947
15948                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
15949
15950 fi
15951
15952
15953           eval "$wx_cv_use_iff"
15954           if test "x$cache" = xyes; then
15955             echo "wxUSE_IFF=$wxUSE_IFF" >> ${wx_arg_cache_file}.tmp
15956           fi
15957
15958           if test x"$enablestring" = xdisable; then
15959             if test $wxUSE_IFF = yes; then
15960               result=no
15961             else
15962               result=yes
15963             fi
15964           else
15965             result=$wxUSE_IFF
15966           fi
15967
15968           { echo "$as_me:$LINENO: result: $result" >&5
15969 echo "${ECHO_T}$result" >&6; }
15970
15971
15972           enablestring=
15973           defaultval=$wxUSE_ALL_FEATURES
15974           if test -z "$defaultval"; then
15975               if test x"$enablestring" = xdisable; then
15976                   defaultval=yes
15977               else
15978                   defaultval=no
15979               fi
15980           fi
15981
15982           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
15983 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
15984           # Check whether --enable-pnm was given.
15985 if test "${enable_pnm+set}" = set; then
15986   enableval=$enable_pnm;
15987                           if test "$enableval" = yes; then
15988                             wx_cv_use_pnm='wxUSE_PNM=yes'
15989                           else
15990                             wx_cv_use_pnm='wxUSE_PNM=no'
15991                           fi
15992                           cache=yes
15993
15994 else
15995
15996                           LINE=`grep "^wxUSE_PNM=" ${wx_arg_cache_file}`
15997                           if test "x$LINE" != x ; then
15998                               eval "DEFAULT_$LINE"
15999                               cache=yes
16000                           else
16001                               cache=no
16002                           fi
16003
16004                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
16005
16006 fi
16007
16008
16009           eval "$wx_cv_use_pnm"
16010           if test "x$cache" = xyes; then
16011             echo "wxUSE_PNM=$wxUSE_PNM" >> ${wx_arg_cache_file}.tmp
16012           fi
16013
16014           if test x"$enablestring" = xdisable; then
16015             if test $wxUSE_PNM = yes; then
16016               result=no
16017             else
16018               result=yes
16019             fi
16020           else
16021             result=$wxUSE_PNM
16022           fi
16023
16024           { echo "$as_me:$LINENO: result: $result" >&5
16025 echo "${ECHO_T}$result" >&6; }
16026
16027
16028           enablestring=
16029           defaultval=$wxUSE_ALL_FEATURES
16030           if test -z "$defaultval"; then
16031               if test x"$enablestring" = xdisable; then
16032                   defaultval=yes
16033               else
16034                   defaultval=no
16035               fi
16036           fi
16037
16038           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
16039 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
16040           # Check whether --enable-xpm was given.
16041 if test "${enable_xpm+set}" = set; then
16042   enableval=$enable_xpm;
16043                           if test "$enableval" = yes; then
16044                             wx_cv_use_xpm='wxUSE_XPM=yes'
16045                           else
16046                             wx_cv_use_xpm='wxUSE_XPM=no'
16047                           fi
16048                           cache=yes
16049
16050 else
16051
16052                           LINE=`grep "^wxUSE_XPM=" ${wx_arg_cache_file}`
16053                           if test "x$LINE" != x ; then
16054                               eval "DEFAULT_$LINE"
16055                               cache=yes
16056                           else
16057                               cache=no
16058                           fi
16059
16060                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
16061
16062 fi
16063
16064
16065           eval "$wx_cv_use_xpm"
16066           if test "x$cache" = xyes; then
16067             echo "wxUSE_XPM=$wxUSE_XPM" >> ${wx_arg_cache_file}.tmp
16068           fi
16069
16070           if test x"$enablestring" = xdisable; then
16071             if test $wxUSE_XPM = yes; then
16072               result=no
16073             else
16074               result=yes
16075             fi
16076           else
16077             result=$wxUSE_XPM
16078           fi
16079
16080           { echo "$as_me:$LINENO: result: $result" >&5
16081 echo "${ECHO_T}$result" >&6; }
16082
16083
16084           enablestring=
16085           defaultval=$wxUSE_ALL_FEATURES
16086           if test -z "$defaultval"; then
16087               if test x"$enablestring" = xdisable; then
16088                   defaultval=yes
16089               else
16090                   defaultval=no
16091               fi
16092           fi
16093
16094           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
16095 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
16096           # Check whether --enable-ico_cur was given.
16097 if test "${enable_ico_cur+set}" = set; then
16098   enableval=$enable_ico_cur;
16099                           if test "$enableval" = yes; then
16100                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
16101                           else
16102                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
16103                           fi
16104                           cache=yes
16105
16106 else
16107
16108                           LINE=`grep "^wxUSE_ICO_CUR=" ${wx_arg_cache_file}`
16109                           if test "x$LINE" != x ; then
16110                               eval "DEFAULT_$LINE"
16111                               cache=yes
16112                           else
16113                               cache=no
16114                           fi
16115
16116                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
16117
16118 fi
16119
16120
16121           eval "$wx_cv_use_ico_cur"
16122           if test "x$cache" = xyes; then
16123             echo "wxUSE_ICO_CUR=$wxUSE_ICO_CUR" >> ${wx_arg_cache_file}.tmp
16124           fi
16125
16126           if test x"$enablestring" = xdisable; then
16127             if test $wxUSE_ICO_CUR = yes; then
16128               result=no
16129             else
16130               result=yes
16131             fi
16132           else
16133             result=$wxUSE_ICO_CUR
16134           fi
16135
16136           { echo "$as_me:$LINENO: result: $result" >&5
16137 echo "${ECHO_T}$result" >&6; }
16138
16139
16140
16141
16142           enablestring=
16143           defaultval=$wxUSE_ALL_FEATURES
16144           if test -z "$defaultval"; then
16145               if test x"$enablestring" = xdisable; then
16146                   defaultval=yes
16147               else
16148                   defaultval=no
16149               fi
16150           fi
16151
16152           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
16153 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
16154           # Check whether --enable-dccache was given.
16155 if test "${enable_dccache+set}" = set; then
16156   enableval=$enable_dccache;
16157                           if test "$enableval" = yes; then
16158                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
16159                           else
16160                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
16161                           fi
16162                           cache=yes
16163
16164 else
16165
16166                           LINE=`grep "^wxUSE_DC_CACHEING=" ${wx_arg_cache_file}`
16167                           if test "x$LINE" != x ; then
16168                               eval "DEFAULT_$LINE"
16169                               cache=yes
16170                           else
16171                               cache=no
16172                           fi
16173
16174                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
16175
16176 fi
16177
16178
16179           eval "$wx_cv_use_dccache"
16180           if test "x$cache" = xyes; then
16181             echo "wxUSE_DC_CACHEING=$wxUSE_DC_CACHEING" >> ${wx_arg_cache_file}.tmp
16182           fi
16183
16184           if test x"$enablestring" = xdisable; then
16185             if test $wxUSE_DC_CACHEING = yes; then
16186               result=no
16187             else
16188               result=yes
16189             fi
16190           else
16191             result=$wxUSE_DC_CACHEING
16192           fi
16193
16194           { echo "$as_me:$LINENO: result: $result" >&5
16195 echo "${ECHO_T}$result" >&6; }
16196
16197
16198           enablestring=
16199           defaultval=$wxUSE_ALL_FEATURES
16200           if test -z "$defaultval"; then
16201               if test x"$enablestring" = xdisable; then
16202                   defaultval=yes
16203               else
16204                   defaultval=no
16205               fi
16206           fi
16207
16208           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
16209 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
16210           # Check whether --enable-ps-in-msw was given.
16211 if test "${enable_ps_in_msw+set}" = set; then
16212   enableval=$enable_ps_in_msw;
16213                           if test "$enableval" = yes; then
16214                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
16215                           else
16216                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
16217                           fi
16218                           cache=yes
16219
16220 else
16221
16222                           LINE=`grep "^wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=" ${wx_arg_cache_file}`
16223                           if test "x$LINE" != x ; then
16224                               eval "DEFAULT_$LINE"
16225                               cache=yes
16226                           else
16227                               cache=no
16228                           fi
16229
16230                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
16231
16232 fi
16233
16234
16235           eval "$wx_cv_use_ps_in_msw"
16236           if test "x$cache" = xyes; then
16237             echo "wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" >> ${wx_arg_cache_file}.tmp
16238           fi
16239
16240           if test x"$enablestring" = xdisable; then
16241             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
16242               result=no
16243             else
16244               result=yes
16245             fi
16246           else
16247             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
16248           fi
16249
16250           { echo "$as_me:$LINENO: result: $result" >&5
16251 echo "${ECHO_T}$result" >&6; }
16252
16253
16254           enablestring=
16255           defaultval=$wxUSE_ALL_FEATURES
16256           if test -z "$defaultval"; then
16257               if test x"$enablestring" = xdisable; then
16258                   defaultval=yes
16259               else
16260                   defaultval=no
16261               fi
16262           fi
16263
16264           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
16265 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
16266           # Check whether --enable-ownerdrawn was given.
16267 if test "${enable_ownerdrawn+set}" = set; then
16268   enableval=$enable_ownerdrawn;
16269                           if test "$enableval" = yes; then
16270                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
16271                           else
16272                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
16273                           fi
16274                           cache=yes
16275
16276 else
16277
16278                           LINE=`grep "^wxUSE_OWNER_DRAWN=" ${wx_arg_cache_file}`
16279                           if test "x$LINE" != x ; then
16280                               eval "DEFAULT_$LINE"
16281                               cache=yes
16282                           else
16283                               cache=no
16284                           fi
16285
16286                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
16287
16288 fi
16289
16290
16291           eval "$wx_cv_use_ownerdrawn"
16292           if test "x$cache" = xyes; then
16293             echo "wxUSE_OWNER_DRAWN=$wxUSE_OWNER_DRAWN" >> ${wx_arg_cache_file}.tmp
16294           fi
16295
16296           if test x"$enablestring" = xdisable; then
16297             if test $wxUSE_OWNER_DRAWN = yes; then
16298               result=no
16299             else
16300               result=yes
16301             fi
16302           else
16303             result=$wxUSE_OWNER_DRAWN
16304           fi
16305
16306           { echo "$as_me:$LINENO: result: $result" >&5
16307 echo "${ECHO_T}$result" >&6; }
16308
16309
16310           enablestring=
16311           defaultval=$wxUSE_ALL_FEATURES
16312           if test -z "$defaultval"; then
16313               if test x"$enablestring" = xdisable; then
16314                   defaultval=yes
16315               else
16316                   defaultval=no
16317               fi
16318           fi
16319
16320           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
16321 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
16322           # Check whether --enable-uxtheme was given.
16323 if test "${enable_uxtheme+set}" = set; then
16324   enableval=$enable_uxtheme;
16325                           if test "$enableval" = yes; then
16326                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
16327                           else
16328                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
16329                           fi
16330                           cache=yes
16331
16332 else
16333
16334                           LINE=`grep "^wxUSE_UXTHEME=" ${wx_arg_cache_file}`
16335                           if test "x$LINE" != x ; then
16336                               eval "DEFAULT_$LINE"
16337                               cache=yes
16338                           else
16339                               cache=no
16340                           fi
16341
16342                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
16343
16344 fi
16345
16346
16347           eval "$wx_cv_use_uxtheme"
16348           if test "x$cache" = xyes; then
16349             echo "wxUSE_UXTHEME=$wxUSE_UXTHEME" >> ${wx_arg_cache_file}.tmp
16350           fi
16351
16352           if test x"$enablestring" = xdisable; then
16353             if test $wxUSE_UXTHEME = yes; then
16354               result=no
16355             else
16356               result=yes
16357             fi
16358           else
16359             result=$wxUSE_UXTHEME
16360           fi
16361
16362           { echo "$as_me:$LINENO: result: $result" >&5
16363 echo "${ECHO_T}$result" >&6; }
16364
16365
16366           enablestring=
16367           defaultval=$wxUSE_ALL_FEATURES
16368           if test -z "$defaultval"; then
16369               if test x"$enablestring" = xdisable; then
16370                   defaultval=yes
16371               else
16372                   defaultval=no
16373               fi
16374           fi
16375
16376           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
16377 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
16378           # Check whether --enable-wxdib was given.
16379 if test "${enable_wxdib+set}" = set; then
16380   enableval=$enable_wxdib;
16381                           if test "$enableval" = yes; then
16382                             wx_cv_use_wxdib='wxUSE_DIB=yes'
16383                           else
16384                             wx_cv_use_wxdib='wxUSE_DIB=no'
16385                           fi
16386                           cache=yes
16387
16388 else
16389
16390                           LINE=`grep "^wxUSE_DIB=" ${wx_arg_cache_file}`
16391                           if test "x$LINE" != x ; then
16392                               eval "DEFAULT_$LINE"
16393                               cache=yes
16394                           else
16395                               cache=no
16396                           fi
16397
16398                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
16399
16400 fi
16401
16402
16403           eval "$wx_cv_use_wxdib"
16404           if test "x$cache" = xyes; then
16405             echo "wxUSE_DIB=$wxUSE_DIB" >> ${wx_arg_cache_file}.tmp
16406           fi
16407
16408           if test x"$enablestring" = xdisable; then
16409             if test $wxUSE_DIB = yes; then
16410               result=no
16411             else
16412               result=yes
16413             fi
16414           else
16415             result=$wxUSE_DIB
16416           fi
16417
16418           { echo "$as_me:$LINENO: result: $result" >&5
16419 echo "${ECHO_T}$result" >&6; }
16420
16421
16422 fi
16423
16424
16425           echo "saving argument cache $wx_arg_cache_file"
16426           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
16427
16428
16429
16430 { echo "$as_me:$LINENO: checking for toolkit" >&5
16431 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
16432
16433 # In Wine, we need to default to MSW, not GTK or MOTIF
16434 if test "$wxUSE_WINE" = "yes"; then
16435     DEFAULT_DEFAULT_wxUSE_GTK=0
16436     DEFAULT_DEFAULT_wxUSE_MOTIF=0
16437     DEFAULT_DEFAULT_wxUSE_MSW=1
16438     wxUSE_SHARED=no
16439     CC=${CC:-winegcc}
16440     CXX=${CXX:-wineg++}
16441 fi
16442
16443
16444 if test "$wxUSE_GUI" = "yes"; then
16445
16446     if test "$USE_BEOS" = 1; then
16447         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
16448 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
16449    { (exit 1); exit 1; }; }
16450     fi
16451
16452     if test "$TOOLKIT_GIVEN" = 1; then
16453             for toolkit in $ALL_TOOLKITS; do
16454         var=wxUSE_$toolkit
16455         eval "value=\$${var}"
16456         if test "x$value" = "xno"; then
16457           eval "$var=0"
16458         elif test "x$value" != "x"; then
16459           eval "$var=1"
16460         fi
16461
16462         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
16463           eval "wx${toolkit}_VERSION=$value"
16464         fi
16465       done
16466     else
16467             for toolkit in $ALL_TOOLKITS; do
16468         if test "$has_toolkit_in_cache" != 1; then
16469           var=DEFAULT_DEFAULT_wxUSE_$toolkit
16470         else
16471           var=DEFAULT_wxUSE_$toolkit
16472
16473           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
16474           if test "x$version" != "x"; then
16475             eval "wx${toolkit}_VERSION=$version"
16476           fi
16477         fi
16478         eval "wxUSE_$toolkit=\$${var}"
16479       done
16480     fi
16481
16482             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
16483                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
16484                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
16485
16486         case "${host}" in
16487       *-pc-os2_emx | *-pc-os2-emx )
16488         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
16489     esac
16490
16491     case "$NUM_TOOLKITS" in
16492       1)
16493       ;;
16494       0)
16495         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
16496 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
16497    { (exit 1); exit 1; }; }
16498       ;;
16499       *)
16500         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
16501 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
16502    { (exit 1); exit 1; }; }
16503     esac
16504
16505     # to be removed when --disable-gtk2 isn't needed
16506     if test "x$wxUSE_GTK2" = "xyes"; then
16507         wxGTK_VERSION=2
16508     elif test "x$wxUSE_GTK2" = "xno"; then
16509         wxGTK_VERSION=1
16510     fi
16511
16512         for toolkit in $ALL_TOOLKITS; do
16513       var=wxUSE_$toolkit
16514       eval "value=\$${var}"
16515       if test "x$value" != x; then
16516         cache_var=CACHE_$toolkit
16517         eval "cache=\$${cache_var}"
16518         if test "$cache" = 1; then
16519           echo "$var=$value" >> ${wx_arg_cache_file}
16520           eval "version=\$wx${toolkit}_VERSION"
16521           if test "x$version" != "x"; then
16522             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
16523           fi
16524         fi
16525         if test "$value" = 1; then
16526           toolkit_echo=`echo $toolkit | tr A-Z a-z`
16527           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
16528 echo "${ECHO_T}$toolkit_echo" >&6; }
16529         fi
16530       fi
16531     done
16532 else
16533     if test "x$host_alias" != "x"; then
16534         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
16535 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
16536     else
16537         { echo "$as_me:$LINENO: result: base only" >&5
16538 echo "${ECHO_T}base only" >&6; }
16539     fi
16540 fi
16541
16542
16543 cat >confcache <<\_ACEOF
16544 # This file is a shell script that caches the results of configure
16545 # tests run on this system so they can be shared between configure
16546 # scripts and configure runs, see configure's option --config-cache.
16547 # It is not useful on other systems.  If it contains results you don't
16548 # want to keep, you may remove or edit it.
16549 #
16550 # config.status only pays attention to the cache file if you give it
16551 # the --recheck option to rerun configure.
16552 #
16553 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16554 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16555 # following values.
16556
16557 _ACEOF
16558
16559 # The following way of writing the cache mishandles newlines in values,
16560 # but we know of no workaround that is simple, portable, and efficient.
16561 # So, we kill variables containing newlines.
16562 # Ultrix sh set writes to stderr and can't be redirected directly,
16563 # and sets the high bit in the cache file unless we assign to the vars.
16564 (
16565   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16566     eval ac_val=\$$ac_var
16567     case $ac_val in #(
16568     *${as_nl}*)
16569       case $ac_var in #(
16570       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16571 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16572       esac
16573       case $ac_var in #(
16574       _ | IFS | as_nl) ;; #(
16575       *) $as_unset $ac_var ;;
16576       esac ;;
16577     esac
16578   done
16579
16580   (set) 2>&1 |
16581     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16582     *${as_nl}ac_space=\ *)
16583       # `set' does not quote correctly, so add quotes (double-quote
16584       # substitution turns \\\\ into \\, and sed turns \\ into \).
16585       sed -n \
16586         "s/'/'\\\\''/g;
16587           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16588       ;; #(
16589     *)
16590       # `set' quotes correctly as required by POSIX, so do not add quotes.
16591       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16592       ;;
16593     esac |
16594     sort
16595 ) |
16596   sed '
16597      /^ac_cv_env_/b end
16598      t clear
16599      :clear
16600      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16601      t end
16602      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16603      :end' >>confcache
16604 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16605   if test -w "$cache_file"; then
16606     test "x$cache_file" != "x/dev/null" &&
16607       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16608 echo "$as_me: updating cache $cache_file" >&6;}
16609     cat confcache >$cache_file
16610   else
16611     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16612 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16613   fi
16614 fi
16615 rm -f confcache
16616
16617 CFLAGS=${CFLAGS:=}
16618
16619
16620
16621     ac_ext=c
16622 ac_cpp='$CPP $CPPFLAGS'
16623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16626 if test -n "$ac_tool_prefix"; then
16627   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16628 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16631 if test "${ac_cv_prog_CC+set}" = set; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634   if test -n "$CC"; then
16635   ac_cv_prog_CC="$CC" # Let the user override the test.
16636 else
16637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16638 for as_dir in $PATH
16639 do
16640   IFS=$as_save_IFS
16641   test -z "$as_dir" && as_dir=.
16642   for ac_exec_ext in '' $ac_executable_extensions; do
16643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16644     ac_cv_prog_CC="${ac_tool_prefix}gcc"
16645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16646     break 2
16647   fi
16648 done
16649 done
16650 IFS=$as_save_IFS
16651
16652 fi
16653 fi
16654 CC=$ac_cv_prog_CC
16655 if test -n "$CC"; then
16656   { echo "$as_me:$LINENO: result: $CC" >&5
16657 echo "${ECHO_T}$CC" >&6; }
16658 else
16659   { echo "$as_me:$LINENO: result: no" >&5
16660 echo "${ECHO_T}no" >&6; }
16661 fi
16662
16663
16664 fi
16665 if test -z "$ac_cv_prog_CC"; then
16666   ac_ct_CC=$CC
16667   # Extract the first word of "gcc", so it can be a program name with args.
16668 set dummy gcc; ac_word=$2
16669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16672   echo $ECHO_N "(cached) $ECHO_C" >&6
16673 else
16674   if test -n "$ac_ct_CC"; then
16675   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16676 else
16677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16678 for as_dir in $PATH
16679 do
16680   IFS=$as_save_IFS
16681   test -z "$as_dir" && as_dir=.
16682   for ac_exec_ext in '' $ac_executable_extensions; do
16683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16684     ac_cv_prog_ac_ct_CC="gcc"
16685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16686     break 2
16687   fi
16688 done
16689 done
16690 IFS=$as_save_IFS
16691
16692 fi
16693 fi
16694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16695 if test -n "$ac_ct_CC"; then
16696   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16697 echo "${ECHO_T}$ac_ct_CC" >&6; }
16698 else
16699   { echo "$as_me:$LINENO: result: no" >&5
16700 echo "${ECHO_T}no" >&6; }
16701 fi
16702
16703   if test "x$ac_ct_CC" = x; then
16704     CC=""
16705   else
16706     case $cross_compiling:$ac_tool_warned in
16707 yes:)
16708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16709 whose name does not start with the host triplet.  If you think this
16710 configuration is useful to you, please write to autoconf@gnu.org." >&5
16711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16712 whose name does not start with the host triplet.  If you think this
16713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16714 ac_tool_warned=yes ;;
16715 esac
16716     CC=$ac_ct_CC
16717   fi
16718 else
16719   CC="$ac_cv_prog_CC"
16720 fi
16721
16722 if test -z "$CC"; then
16723           if test -n "$ac_tool_prefix"; then
16724     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16725 set dummy ${ac_tool_prefix}cc; ac_word=$2
16726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16728 if test "${ac_cv_prog_CC+set}" = set; then
16729   echo $ECHO_N "(cached) $ECHO_C" >&6
16730 else
16731   if test -n "$CC"; then
16732   ac_cv_prog_CC="$CC" # Let the user override the test.
16733 else
16734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16735 for as_dir in $PATH
16736 do
16737   IFS=$as_save_IFS
16738   test -z "$as_dir" && as_dir=.
16739   for ac_exec_ext in '' $ac_executable_extensions; do
16740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16741     ac_cv_prog_CC="${ac_tool_prefix}cc"
16742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16743     break 2
16744   fi
16745 done
16746 done
16747 IFS=$as_save_IFS
16748
16749 fi
16750 fi
16751 CC=$ac_cv_prog_CC
16752 if test -n "$CC"; then
16753   { echo "$as_me:$LINENO: result: $CC" >&5
16754 echo "${ECHO_T}$CC" >&6; }
16755 else
16756   { echo "$as_me:$LINENO: result: no" >&5
16757 echo "${ECHO_T}no" >&6; }
16758 fi
16759
16760
16761   fi
16762 fi
16763 if test -z "$CC"; then
16764   # Extract the first word of "cc", so it can be a program name with args.
16765 set dummy cc; ac_word=$2
16766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16768 if test "${ac_cv_prog_CC+set}" = set; then
16769   echo $ECHO_N "(cached) $ECHO_C" >&6
16770 else
16771   if test -n "$CC"; then
16772   ac_cv_prog_CC="$CC" # Let the user override the test.
16773 else
16774   ac_prog_rejected=no
16775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16776 for as_dir in $PATH
16777 do
16778   IFS=$as_save_IFS
16779   test -z "$as_dir" && as_dir=.
16780   for ac_exec_ext in '' $ac_executable_extensions; do
16781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16782     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16783        ac_prog_rejected=yes
16784        continue
16785      fi
16786     ac_cv_prog_CC="cc"
16787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16788     break 2
16789   fi
16790 done
16791 done
16792 IFS=$as_save_IFS
16793
16794 if test $ac_prog_rejected = yes; then
16795   # We found a bogon in the path, so make sure we never use it.
16796   set dummy $ac_cv_prog_CC
16797   shift
16798   if test $# != 0; then
16799     # We chose a different compiler from the bogus one.
16800     # However, it has the same basename, so the bogon will be chosen
16801     # first if we set CC to just the basename; use the full file name.
16802     shift
16803     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16804   fi
16805 fi
16806 fi
16807 fi
16808 CC=$ac_cv_prog_CC
16809 if test -n "$CC"; then
16810   { echo "$as_me:$LINENO: result: $CC" >&5
16811 echo "${ECHO_T}$CC" >&6; }
16812 else
16813   { echo "$as_me:$LINENO: result: no" >&5
16814 echo "${ECHO_T}no" >&6; }
16815 fi
16816
16817
16818 fi
16819 if test -z "$CC"; then
16820   if test -n "$ac_tool_prefix"; then
16821   for ac_prog in cl.exe
16822   do
16823     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16827 if test "${ac_cv_prog_CC+set}" = set; then
16828   echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830   if test -n "$CC"; then
16831   ac_cv_prog_CC="$CC" # Let the user override the test.
16832 else
16833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16834 for as_dir in $PATH
16835 do
16836   IFS=$as_save_IFS
16837   test -z "$as_dir" && as_dir=.
16838   for ac_exec_ext in '' $ac_executable_extensions; do
16839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16840     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16842     break 2
16843   fi
16844 done
16845 done
16846 IFS=$as_save_IFS
16847
16848 fi
16849 fi
16850 CC=$ac_cv_prog_CC
16851 if test -n "$CC"; then
16852   { echo "$as_me:$LINENO: result: $CC" >&5
16853 echo "${ECHO_T}$CC" >&6; }
16854 else
16855   { echo "$as_me:$LINENO: result: no" >&5
16856 echo "${ECHO_T}no" >&6; }
16857 fi
16858
16859
16860     test -n "$CC" && break
16861   done
16862 fi
16863 if test -z "$CC"; then
16864   ac_ct_CC=$CC
16865   for ac_prog in cl.exe
16866 do
16867   # Extract the first word of "$ac_prog", so it can be a program name with args.
16868 set dummy $ac_prog; ac_word=$2
16869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16872   echo $ECHO_N "(cached) $ECHO_C" >&6
16873 else
16874   if test -n "$ac_ct_CC"; then
16875   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16876 else
16877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16878 for as_dir in $PATH
16879 do
16880   IFS=$as_save_IFS
16881   test -z "$as_dir" && as_dir=.
16882   for ac_exec_ext in '' $ac_executable_extensions; do
16883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16884     ac_cv_prog_ac_ct_CC="$ac_prog"
16885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16886     break 2
16887   fi
16888 done
16889 done
16890 IFS=$as_save_IFS
16891
16892 fi
16893 fi
16894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16895 if test -n "$ac_ct_CC"; then
16896   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16897 echo "${ECHO_T}$ac_ct_CC" >&6; }
16898 else
16899   { echo "$as_me:$LINENO: result: no" >&5
16900 echo "${ECHO_T}no" >&6; }
16901 fi
16902
16903
16904   test -n "$ac_ct_CC" && break
16905 done
16906
16907   if test "x$ac_ct_CC" = x; then
16908     CC=""
16909   else
16910     case $cross_compiling:$ac_tool_warned in
16911 yes:)
16912 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16913 whose name does not start with the host triplet.  If you think this
16914 configuration is useful to you, please write to autoconf@gnu.org." >&5
16915 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16916 whose name does not start with the host triplet.  If you think this
16917 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16918 ac_tool_warned=yes ;;
16919 esac
16920     CC=$ac_ct_CC
16921   fi
16922 fi
16923
16924 fi
16925
16926
16927 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
16928 See \`config.log' for more details." >&5
16929 echo "$as_me: error: no acceptable C compiler found in \$PATH
16930 See \`config.log' for more details." >&2;}
16931    { (exit 1); exit 1; }; }
16932
16933 # Provide some information about the compiler.
16934 echo "$as_me:$LINENO: checking for C compiler version" >&5
16935 ac_compiler=`set X $ac_compile; echo $2`
16936 { (ac_try="$ac_compiler --version >&5"
16937 case "(($ac_try" in
16938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939   *) ac_try_echo=$ac_try;;
16940 esac
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942   (eval "$ac_compiler --version >&5") 2>&5
16943   ac_status=$?
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); }
16946 { (ac_try="$ac_compiler -v >&5"
16947 case "(($ac_try" in
16948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949   *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952   (eval "$ac_compiler -v >&5") 2>&5
16953   ac_status=$?
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); }
16956 { (ac_try="$ac_compiler -V >&5"
16957 case "(($ac_try" in
16958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16959   *) ac_try_echo=$ac_try;;
16960 esac
16961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16962   (eval "$ac_compiler -V >&5") 2>&5
16963   ac_status=$?
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); }
16966
16967 cat >conftest.$ac_ext <<_ACEOF
16968 /* confdefs.h.  */
16969 _ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h.  */
16973
16974 int
16975 main ()
16976 {
16977
16978   ;
16979   return 0;
16980 }
16981 _ACEOF
16982 ac_clean_files_save=$ac_clean_files
16983 ac_clean_files="$ac_clean_files a.out a.exe b.out"
16984 # Try to create an executable without -o first, disregard a.out.
16985 # It will help us diagnose broken compilers, and finding out an intuition
16986 # of exeext.
16987 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
16988 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
16989 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
16990 #
16991 # List of possible output files, starting from the most likely.
16992 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
16993 # only as a last resort.  b.out is created by i960 compilers.
16994 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
16995 #
16996 # The IRIX 6 linker writes into existing files which may not be
16997 # executable, retaining their permissions.  Remove them first so a
16998 # subsequent execution test works.
16999 ac_rmfiles=
17000 for ac_file in $ac_files
17001 do
17002   case $ac_file in
17003     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
17004     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
17005   esac
17006 done
17007 rm -f $ac_rmfiles
17008
17009 if { (ac_try="$ac_link_default"
17010 case "(($ac_try" in
17011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012   *) ac_try_echo=$ac_try;;
17013 esac
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015   (eval "$ac_link_default") 2>&5
17016   ac_status=$?
17017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); }; then
17019   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
17020 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
17021 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
17022 # so that the user can short-circuit this test for compilers unknown to
17023 # Autoconf.
17024 for ac_file in $ac_files ''
17025 do
17026   test -f "$ac_file" || continue
17027   case $ac_file in
17028     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
17029         ;;
17030     [ab].out )
17031         # We found the default executable, but exeext='' is most
17032         # certainly right.
17033         break;;
17034     *.* )
17035         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
17036         then :; else
17037            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
17038         fi
17039         # We set ac_cv_exeext here because the later test for it is not
17040         # safe: cross compilers may not add the suffix if given an `-o'
17041         # argument, so we may need to know it at that point already.
17042         # Even if this section looks crufty: it has the advantage of
17043         # actually working.
17044         break;;
17045     * )
17046         break;;
17047   esac
17048 done
17049 test "$ac_cv_exeext" = no && ac_cv_exeext=
17050
17051 else
17052   ac_file=''
17053 fi
17054
17055 { echo "$as_me:$LINENO: result: $ac_file" >&5
17056 echo "${ECHO_T}$ac_file" >&6; }
17057 if test -z "$ac_file"; then
17058   echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17060
17061 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
17062 See \`config.log' for more details." >&5
17063 echo "$as_me: error: C compiler cannot create executables
17064 See \`config.log' for more details." >&2;}
17065    { (exit 77); exit 77; }; }
17066 fi
17067
17068 ac_exeext=$ac_cv_exeext
17069
17070 # Check that the compiler produces executables we can run.  If not, either
17071 # the compiler is broken, or we cross compile.
17072 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
17073 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
17074 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
17075 # If not cross compiling, check that we can run a simple program.
17076 if test "$cross_compiling" != yes; then
17077   if { ac_try='./$ac_file'
17078   { (case "(($ac_try" in
17079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080   *) ac_try_echo=$ac_try;;
17081 esac
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083   (eval "$ac_try") 2>&5
17084   ac_status=$?
17085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086   (exit $ac_status); }; }; then
17087     cross_compiling=no
17088   else
17089     if test "$cross_compiling" = maybe; then
17090         cross_compiling=yes
17091     else
17092         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
17093 If you meant to cross compile, use \`--host'.
17094 See \`config.log' for more details." >&5
17095 echo "$as_me: error: cannot run C compiled programs.
17096 If you meant to cross compile, use \`--host'.
17097 See \`config.log' for more details." >&2;}
17098    { (exit 1); exit 1; }; }
17099     fi
17100   fi
17101 fi
17102 { echo "$as_me:$LINENO: result: yes" >&5
17103 echo "${ECHO_T}yes" >&6; }
17104
17105 rm -f a.out a.exe conftest$ac_cv_exeext b.out
17106 ac_clean_files=$ac_clean_files_save
17107 # Check that the compiler produces executables we can run.  If not, either
17108 # the compiler is broken, or we cross compile.
17109 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
17110 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
17111 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
17112 echo "${ECHO_T}$cross_compiling" >&6; }
17113
17114 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
17115 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
17116 if { (ac_try="$ac_link"
17117 case "(($ac_try" in
17118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119   *) ac_try_echo=$ac_try;;
17120 esac
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122   (eval "$ac_link") 2>&5
17123   ac_status=$?
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); }; then
17126   # If both `conftest.exe' and `conftest' are `present' (well, observable)
17127 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
17128 # work properly (i.e., refer to `conftest.exe'), while it won't with
17129 # `rm'.
17130 for ac_file in conftest.exe conftest conftest.*; do
17131   test -f "$ac_file" || continue
17132   case $ac_file in
17133     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
17134     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
17135           break;;
17136     * ) break;;
17137   esac
17138 done
17139 else
17140   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
17141 See \`config.log' for more details." >&5
17142 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
17143 See \`config.log' for more details." >&2;}
17144    { (exit 1); exit 1; }; }
17145 fi
17146
17147 rm -f conftest$ac_cv_exeext
17148 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
17149 echo "${ECHO_T}$ac_cv_exeext" >&6; }
17150
17151 rm -f conftest.$ac_ext
17152 EXEEXT=$ac_cv_exeext
17153 ac_exeext=$EXEEXT
17154 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
17155 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
17156 if test "${ac_cv_objext+set}" = set; then
17157   echo $ECHO_N "(cached) $ECHO_C" >&6
17158 else
17159   cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h.  */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h.  */
17165
17166 int
17167 main ()
17168 {
17169
17170   ;
17171   return 0;
17172 }
17173 _ACEOF
17174 rm -f conftest.o conftest.obj
17175 if { (ac_try="$ac_compile"
17176 case "(($ac_try" in
17177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178   *) ac_try_echo=$ac_try;;
17179 esac
17180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181   (eval "$ac_compile") 2>&5
17182   ac_status=$?
17183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184   (exit $ac_status); }; then
17185   for ac_file in conftest.o conftest.obj conftest.*; do
17186   test -f "$ac_file" || continue;
17187   case $ac_file in
17188     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
17189     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
17190        break;;
17191   esac
17192 done
17193 else
17194   echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17196
17197 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
17198 See \`config.log' for more details." >&5
17199 echo "$as_me: error: cannot compute suffix of object files: cannot compile
17200 See \`config.log' for more details." >&2;}
17201    { (exit 1); exit 1; }; }
17202 fi
17203
17204 rm -f conftest.$ac_cv_objext conftest.$ac_ext
17205 fi
17206 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
17207 echo "${ECHO_T}$ac_cv_objext" >&6; }
17208 OBJEXT=$ac_cv_objext
17209 ac_objext=$OBJEXT
17210 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
17211 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
17212 if test "${ac_cv_c_compiler_gnu+set}" = set; then
17213   echo $ECHO_N "(cached) $ECHO_C" >&6
17214 else
17215   cat >conftest.$ac_ext <<_ACEOF
17216 /* confdefs.h.  */
17217 _ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h.  */
17221
17222 int
17223 main ()
17224 {
17225 #ifndef __GNUC__
17226        choke me
17227 #endif
17228
17229   ;
17230   return 0;
17231 }
17232 _ACEOF
17233 rm -f conftest.$ac_objext
17234 if { (ac_try="$ac_compile"
17235 case "(($ac_try" in
17236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237   *) ac_try_echo=$ac_try;;
17238 esac
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240   (eval "$ac_compile") 2>conftest.er1
17241   ac_status=$?
17242   grep -v '^ *+' conftest.er1 >conftest.err
17243   rm -f conftest.er1
17244   cat conftest.err >&5
17245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246   (exit $ac_status); } && {
17247          test -z "$ac_c_werror_flag" ||
17248          test ! -s conftest.err
17249        } && test -s conftest.$ac_objext; then
17250   ac_compiler_gnu=yes
17251 else
17252   echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17254
17255         ac_compiler_gnu=no
17256 fi
17257
17258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
17260
17261 fi
17262 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
17263 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
17264 GCC=`test $ac_compiler_gnu = yes && echo yes`
17265 ac_test_CFLAGS=${CFLAGS+set}
17266 ac_save_CFLAGS=$CFLAGS
17267 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17268 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17269 if test "${ac_cv_prog_cc_g+set}" = set; then
17270   echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272   ac_save_c_werror_flag=$ac_c_werror_flag
17273    ac_c_werror_flag=yes
17274    ac_cv_prog_cc_g=no
17275    CFLAGS="-g"
17276    cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282
17283 int
17284 main ()
17285 {
17286
17287   ;
17288   return 0;
17289 }
17290 _ACEOF
17291 rm -f conftest.$ac_objext
17292 if { (ac_try="$ac_compile"
17293 case "(($ac_try" in
17294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295   *) ac_try_echo=$ac_try;;
17296 esac
17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298   (eval "$ac_compile") 2>conftest.er1
17299   ac_status=$?
17300   grep -v '^ *+' conftest.er1 >conftest.err
17301   rm -f conftest.er1
17302   cat conftest.err >&5
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); } && {
17305          test -z "$ac_c_werror_flag" ||
17306          test ! -s conftest.err
17307        } && test -s conftest.$ac_objext; then
17308   ac_cv_prog_cc_g=yes
17309 else
17310   echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17312
17313         CFLAGS=""
17314       cat >conftest.$ac_ext <<_ACEOF
17315 /* confdefs.h.  */
17316 _ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h.  */
17320
17321 int
17322 main ()
17323 {
17324
17325   ;
17326   return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext
17330 if { (ac_try="$ac_compile"
17331 case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336   (eval "$ac_compile") 2>conftest.er1
17337   ac_status=$?
17338   grep -v '^ *+' conftest.er1 >conftest.err
17339   rm -f conftest.er1
17340   cat conftest.err >&5
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); } && {
17343          test -z "$ac_c_werror_flag" ||
17344          test ! -s conftest.err
17345        } && test -s conftest.$ac_objext; then
17346   :
17347 else
17348   echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17350
17351         ac_c_werror_flag=$ac_save_c_werror_flag
17352          CFLAGS="-g"
17353          cat >conftest.$ac_ext <<_ACEOF
17354 /* confdefs.h.  */
17355 _ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h.  */
17359
17360 int
17361 main ()
17362 {
17363
17364   ;
17365   return 0;
17366 }
17367 _ACEOF
17368 rm -f conftest.$ac_objext
17369 if { (ac_try="$ac_compile"
17370 case "(($ac_try" in
17371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372   *) ac_try_echo=$ac_try;;
17373 esac
17374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375   (eval "$ac_compile") 2>conftest.er1
17376   ac_status=$?
17377   grep -v '^ *+' conftest.er1 >conftest.err
17378   rm -f conftest.er1
17379   cat conftest.err >&5
17380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381   (exit $ac_status); } && {
17382          test -z "$ac_c_werror_flag" ||
17383          test ! -s conftest.err
17384        } && test -s conftest.$ac_objext; then
17385   ac_cv_prog_cc_g=yes
17386 else
17387   echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17389
17390
17391 fi
17392
17393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17394 fi
17395
17396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17397 fi
17398
17399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17400    ac_c_werror_flag=$ac_save_c_werror_flag
17401 fi
17402 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17403 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17404 if test "$ac_test_CFLAGS" = set; then
17405   CFLAGS=$ac_save_CFLAGS
17406 elif test $ac_cv_prog_cc_g = yes; then
17407   if test "$GCC" = yes; then
17408     CFLAGS="-g -O2"
17409   else
17410     CFLAGS="-g"
17411   fi
17412 else
17413   if test "$GCC" = yes; then
17414     CFLAGS="-O2"
17415   else
17416     CFLAGS=
17417   fi
17418 fi
17419 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
17420 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
17421 if test "${ac_cv_prog_cc_c89+set}" = set; then
17422   echo $ECHO_N "(cached) $ECHO_C" >&6
17423 else
17424   ac_cv_prog_cc_c89=no
17425 ac_save_CC=$CC
17426 cat >conftest.$ac_ext <<_ACEOF
17427 /* confdefs.h.  */
17428 _ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h.  */
17432 #include <stdarg.h>
17433 #include <stdio.h>
17434 #include <sys/types.h>
17435 #include <sys/stat.h>
17436 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
17437 struct buf { int x; };
17438 FILE * (*rcsopen) (struct buf *, struct stat *, int);
17439 static char *e (p, i)
17440      char **p;
17441      int i;
17442 {
17443   return p[i];
17444 }
17445 static char *f (char * (*g) (char **, int), char **p, ...)
17446 {
17447   char *s;
17448   va_list v;
17449   va_start (v,p);
17450   s = g (p, va_arg (v,int));
17451   va_end (v);
17452   return s;
17453 }
17454
17455 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
17456    function prototypes and stuff, but not '\xHH' hex character constants.
17457    These don't provoke an error unfortunately, instead are silently treated
17458    as 'x'.  The following induces an error, until -std is added to get
17459    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
17460    array size at least.  It's necessary to write '\x00'==0 to get something
17461    that's true only with -std.  */
17462 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
17463
17464 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
17465    inside strings and character constants.  */
17466 #define FOO(x) 'x'
17467 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
17468
17469 int test (int i, double x);
17470 struct s1 {int (*f) (int a);};
17471 struct s2 {int (*f) (double a);};
17472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
17473 int argc;
17474 char **argv;
17475 int
17476 main ()
17477 {
17478 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
17479   ;
17480   return 0;
17481 }
17482 _ACEOF
17483 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
17484         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17485 do
17486   CC="$ac_save_CC $ac_arg"
17487   rm -f conftest.$ac_objext
17488 if { (ac_try="$ac_compile"
17489 case "(($ac_try" in
17490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491   *) ac_try_echo=$ac_try;;
17492 esac
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494   (eval "$ac_compile") 2>conftest.er1
17495   ac_status=$?
17496   grep -v '^ *+' conftest.er1 >conftest.err
17497   rm -f conftest.er1
17498   cat conftest.err >&5
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); } && {
17501          test -z "$ac_c_werror_flag" ||
17502          test ! -s conftest.err
17503        } && test -s conftest.$ac_objext; then
17504   ac_cv_prog_cc_c89=$ac_arg
17505 else
17506   echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17508
17509
17510 fi
17511
17512 rm -f core conftest.err conftest.$ac_objext
17513   test "x$ac_cv_prog_cc_c89" != "xno" && break
17514 done
17515 rm -f conftest.$ac_ext
17516 CC=$ac_save_CC
17517
17518 fi
17519 # AC_CACHE_VAL
17520 case "x$ac_cv_prog_cc_c89" in
17521   x)
17522     { echo "$as_me:$LINENO: result: none needed" >&5
17523 echo "${ECHO_T}none needed" >&6; } ;;
17524   xno)
17525     { echo "$as_me:$LINENO: result: unsupported" >&5
17526 echo "${ECHO_T}unsupported" >&6; } ;;
17527   *)
17528     CC="$CC $ac_cv_prog_cc_c89"
17529     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
17530 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
17531 esac
17532
17533
17534 ac_ext=c
17535 ac_cpp='$CPP $CPPFLAGS'
17536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17539
17540
17541
17542
17543     ac_ext=c
17544 ac_cpp='$CPP $CPPFLAGS'
17545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17548
17549     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
17550 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
17551 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
17552   echo $ECHO_N "(cached) $ECHO_C" >&6
17553 else
17554   cat >conftest.$ac_ext <<_ACEOF
17555 /* confdefs.h.  */
17556 _ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h.  */
17560
17561 int
17562 main ()
17563 {
17564
17565              #ifndef __INTEL_COMPILER
17566                 choke me
17567              #endif
17568
17569   ;
17570   return 0;
17571 }
17572 _ACEOF
17573 rm -f conftest.$ac_objext
17574 if { (ac_try="$ac_compile"
17575 case "(($ac_try" in
17576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577   *) ac_try_echo=$ac_try;;
17578 esac
17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580   (eval "$ac_compile") 2>conftest.er1
17581   ac_status=$?
17582   grep -v '^ *+' conftest.er1 >conftest.err
17583   rm -f conftest.er1
17584   cat conftest.err >&5
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); } && {
17587          test -z "$ac_c_werror_flag" ||
17588          test ! -s conftest.err
17589        } && test -s conftest.$ac_objext; then
17590   bakefile_cv_c_compiler___INTEL_COMPILER=yes
17591 else
17592   echo "$as_me: failed program was:" >&5
17593 sed 's/^/| /' conftest.$ac_ext >&5
17594
17595         bakefile_cv_c_compiler___INTEL_COMPILER=no
17596
17597 fi
17598
17599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17600
17601
17602 fi
17603 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
17604 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
17605     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
17606         :; INTELCC=yes
17607     else
17608         :;
17609     fi
17610     ac_ext=c
17611 ac_cpp='$CPP $CPPFLAGS'
17612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17615
17616
17617
17618
17619         if test "x$GCC" != "xyes"; then
17620         if test "xCC" = "xC"; then
17621             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17622 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17623 if test "${bakefile_cv_c_exto+set}" = set; then
17624   echo $ECHO_N "(cached) $ECHO_C" >&6
17625 else
17626   cat >conftest.$ac_ext <<_ACEOF
17627 /* confdefs.h.  */
17628 _ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h.  */
17632
17633 int
17634 main ()
17635 {
17636
17637   ;
17638   return 0;
17639 }
17640 _ACEOF
17641 rm -f conftest.$ac_objext conftest.$ac_ext.o
17642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17643   (eval $ac_compile) 2>&5
17644   ac_status=$?
17645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); }; then
17647   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17648     case $ac_file in
17649         conftest.$ac_ext.o)
17650             bakefile_cv_c_exto="-ext o"
17651             ;;
17652         *)
17653             ;;
17654     esac
17655 done
17656 else
17657   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17658 See \`config.log' for more details." >&5
17659 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17660 See \`config.log' for more details." >&2;}
17661    { (exit 1); exit 1; }; }
17662
17663 fi
17664
17665 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17666
17667 fi
17668 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17669 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17670 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17671     if test "c" = "c"; then
17672         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17673     fi
17674     if test "c" = "cxx"; then
17675         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17676     fi
17677 fi
17678
17679             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17680                 unset ac_cv_prog_cc_g
17681                 ac_test_CFLAGS=${CFLAGS+set}
17682 ac_save_CFLAGS=$CFLAGS
17683 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17684 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17685 if test "${ac_cv_prog_cc_g+set}" = set; then
17686   echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688   ac_save_c_werror_flag=$ac_c_werror_flag
17689    ac_c_werror_flag=yes
17690    ac_cv_prog_cc_g=no
17691    CFLAGS="-g"
17692    cat >conftest.$ac_ext <<_ACEOF
17693 /* confdefs.h.  */
17694 _ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h.  */
17698
17699 int
17700 main ()
17701 {
17702
17703   ;
17704   return 0;
17705 }
17706 _ACEOF
17707 rm -f conftest.$ac_objext
17708 if { (ac_try="$ac_compile"
17709 case "(($ac_try" in
17710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711   *) ac_try_echo=$ac_try;;
17712 esac
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714   (eval "$ac_compile") 2>conftest.er1
17715   ac_status=$?
17716   grep -v '^ *+' conftest.er1 >conftest.err
17717   rm -f conftest.er1
17718   cat conftest.err >&5
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } && {
17721          test -z "$ac_c_werror_flag" ||
17722          test ! -s conftest.err
17723        } && test -s conftest.$ac_objext; then
17724   ac_cv_prog_cc_g=yes
17725 else
17726   echo "$as_me: failed program was:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17728
17729         CFLAGS=""
17730       cat >conftest.$ac_ext <<_ACEOF
17731 /* confdefs.h.  */
17732 _ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h.  */
17736
17737 int
17738 main ()
17739 {
17740
17741   ;
17742   return 0;
17743 }
17744 _ACEOF
17745 rm -f conftest.$ac_objext
17746 if { (ac_try="$ac_compile"
17747 case "(($ac_try" in
17748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749   *) ac_try_echo=$ac_try;;
17750 esac
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752   (eval "$ac_compile") 2>conftest.er1
17753   ac_status=$?
17754   grep -v '^ *+' conftest.er1 >conftest.err
17755   rm -f conftest.er1
17756   cat conftest.err >&5
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); } && {
17759          test -z "$ac_c_werror_flag" ||
17760          test ! -s conftest.err
17761        } && test -s conftest.$ac_objext; then
17762   :
17763 else
17764   echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17766
17767         ac_c_werror_flag=$ac_save_c_werror_flag
17768          CFLAGS="-g"
17769          cat >conftest.$ac_ext <<_ACEOF
17770 /* confdefs.h.  */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h.  */
17775
17776 int
17777 main ()
17778 {
17779
17780   ;
17781   return 0;
17782 }
17783 _ACEOF
17784 rm -f conftest.$ac_objext
17785 if { (ac_try="$ac_compile"
17786 case "(($ac_try" in
17787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788   *) ac_try_echo=$ac_try;;
17789 esac
17790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791   (eval "$ac_compile") 2>conftest.er1
17792   ac_status=$?
17793   grep -v '^ *+' conftest.er1 >conftest.err
17794   rm -f conftest.er1
17795   cat conftest.err >&5
17796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); } && {
17798          test -z "$ac_c_werror_flag" ||
17799          test ! -s conftest.err
17800        } && test -s conftest.$ac_objext; then
17801   ac_cv_prog_cc_g=yes
17802 else
17803   echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17805
17806
17807 fi
17808
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17810 fi
17811
17812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17813 fi
17814
17815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17816    ac_c_werror_flag=$ac_save_c_werror_flag
17817 fi
17818 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17819 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17820 if test "$ac_test_CFLAGS" = set; then
17821   CFLAGS=$ac_save_CFLAGS
17822 elif test $ac_cv_prog_cc_g = yes; then
17823   if test "$GCC" = yes; then
17824     CFLAGS="-g -O2"
17825   else
17826     CFLAGS="-g"
17827   fi
17828 else
17829   if test "$GCC" = yes; then
17830     CFLAGS="-O2"
17831   else
17832     CFLAGS=
17833   fi
17834 fi
17835             fi
17836         fi
17837
17838                         case `uname -s` in
17839             AIX*)
17840
17841
17842     ac_ext=c
17843 ac_cpp='$CPP $CPPFLAGS'
17844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17847
17848     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17849 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17850 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17851   echo $ECHO_N "(cached) $ECHO_C" >&6
17852 else
17853   cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h.  */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h.  */
17859
17860 int
17861 main ()
17862 {
17863
17864              #ifndef __xlC__
17865                 choke me
17866              #endif
17867
17868   ;
17869   return 0;
17870 }
17871 _ACEOF
17872 rm -f conftest.$ac_objext
17873 if { (ac_try="$ac_compile"
17874 case "(($ac_try" in
17875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876   *) ac_try_echo=$ac_try;;
17877 esac
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879   (eval "$ac_compile") 2>conftest.er1
17880   ac_status=$?
17881   grep -v '^ *+' conftest.er1 >conftest.err
17882   rm -f conftest.er1
17883   cat conftest.err >&5
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); } && {
17886          test -z "$ac_c_werror_flag" ||
17887          test ! -s conftest.err
17888        } && test -s conftest.$ac_objext; then
17889   bakefile_cv_c_compiler___xlC__=yes
17890 else
17891   echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17893
17894         bakefile_cv_c_compiler___xlC__=no
17895
17896 fi
17897
17898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17899
17900
17901 fi
17902 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17903 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17904     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17905         :; XLCC=yes
17906     else
17907         :;
17908     fi
17909     ac_ext=c
17910 ac_cpp='$CPP $CPPFLAGS'
17911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17914
17915
17916
17917                 ;;
17918
17919             Darwin)
17920
17921
17922     ac_ext=c
17923 ac_cpp='$CPP $CPPFLAGS'
17924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17927
17928     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
17929 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
17930 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
17931   echo $ECHO_N "(cached) $ECHO_C" >&6
17932 else
17933   cat >conftest.$ac_ext <<_ACEOF
17934 /* confdefs.h.  */
17935 _ACEOF
17936 cat confdefs.h >>conftest.$ac_ext
17937 cat >>conftest.$ac_ext <<_ACEOF
17938 /* end confdefs.h.  */
17939
17940 int
17941 main ()
17942 {
17943
17944              #ifndef __MWERKS__
17945                 choke me
17946              #endif
17947
17948   ;
17949   return 0;
17950 }
17951 _ACEOF
17952 rm -f conftest.$ac_objext
17953 if { (ac_try="$ac_compile"
17954 case "(($ac_try" in
17955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956   *) ac_try_echo=$ac_try;;
17957 esac
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959   (eval "$ac_compile") 2>conftest.er1
17960   ac_status=$?
17961   grep -v '^ *+' conftest.er1 >conftest.err
17962   rm -f conftest.er1
17963   cat conftest.err >&5
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); } && {
17966          test -z "$ac_c_werror_flag" ||
17967          test ! -s conftest.err
17968        } && test -s conftest.$ac_objext; then
17969   bakefile_cv_c_compiler___MWERKS__=yes
17970 else
17971   echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17973
17974         bakefile_cv_c_compiler___MWERKS__=no
17975
17976 fi
17977
17978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17979
17980
17981 fi
17982 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
17983 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
17984     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
17985         :; MWCC=yes
17986     else
17987         :;
17988     fi
17989     ac_ext=c
17990 ac_cpp='$CPP $CPPFLAGS'
17991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17994
17995
17996
17997
17998
17999     ac_ext=c
18000 ac_cpp='$CPP $CPPFLAGS'
18001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18004
18005     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
18006 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
18007 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
18008   echo $ECHO_N "(cached) $ECHO_C" >&6
18009 else
18010   cat >conftest.$ac_ext <<_ACEOF
18011 /* confdefs.h.  */
18012 _ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h.  */
18016
18017 int
18018 main ()
18019 {
18020
18021              #ifndef __xlC__
18022                 choke me
18023              #endif
18024
18025   ;
18026   return 0;
18027 }
18028 _ACEOF
18029 rm -f conftest.$ac_objext
18030 if { (ac_try="$ac_compile"
18031 case "(($ac_try" in
18032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033   *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036   (eval "$ac_compile") 2>conftest.er1
18037   ac_status=$?
18038   grep -v '^ *+' conftest.er1 >conftest.err
18039   rm -f conftest.er1
18040   cat conftest.err >&5
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); } && {
18043          test -z "$ac_c_werror_flag" ||
18044          test ! -s conftest.err
18045        } && test -s conftest.$ac_objext; then
18046   bakefile_cv_c_compiler___xlC__=yes
18047 else
18048   echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051         bakefile_cv_c_compiler___xlC__=no
18052
18053 fi
18054
18055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056
18057
18058 fi
18059 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
18060 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
18061     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
18062         :; XLCC=yes
18063     else
18064         :;
18065     fi
18066     ac_ext=c
18067 ac_cpp='$CPP $CPPFLAGS'
18068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18071
18072
18073
18074                 ;;
18075
18076             IRIX*)
18077
18078
18079     ac_ext=c
18080 ac_cpp='$CPP $CPPFLAGS'
18081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18084
18085     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
18086 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
18087 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
18088   echo $ECHO_N "(cached) $ECHO_C" >&6
18089 else
18090   cat >conftest.$ac_ext <<_ACEOF
18091 /* confdefs.h.  */
18092 _ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h.  */
18096
18097 int
18098 main ()
18099 {
18100
18101              #ifndef _SGI_COMPILER_VERSION
18102                 choke me
18103              #endif
18104
18105   ;
18106   return 0;
18107 }
18108 _ACEOF
18109 rm -f conftest.$ac_objext
18110 if { (ac_try="$ac_compile"
18111 case "(($ac_try" in
18112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113   *) ac_try_echo=$ac_try;;
18114 esac
18115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116   (eval "$ac_compile") 2>conftest.er1
18117   ac_status=$?
18118   grep -v '^ *+' conftest.er1 >conftest.err
18119   rm -f conftest.er1
18120   cat conftest.err >&5
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); } && {
18123          test -z "$ac_c_werror_flag" ||
18124          test ! -s conftest.err
18125        } && test -s conftest.$ac_objext; then
18126   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
18127 else
18128   echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18130
18131         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
18132
18133 fi
18134
18135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18136
18137
18138 fi
18139 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
18140 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
18141     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18142         :; SGICC=yes
18143     else
18144         :;
18145     fi
18146     ac_ext=c
18147 ac_cpp='$CPP $CPPFLAGS'
18148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18151
18152
18153
18154                 ;;
18155
18156             Linux*)
18157
18158
18159     ac_ext=c
18160 ac_cpp='$CPP $CPPFLAGS'
18161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18164
18165     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
18166 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
18167 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
18168   echo $ECHO_N "(cached) $ECHO_C" >&6
18169 else
18170   cat >conftest.$ac_ext <<_ACEOF
18171 /* confdefs.h.  */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h.  */
18176
18177 int
18178 main ()
18179 {
18180
18181              #ifndef __SUNPRO_C
18182                 choke me
18183              #endif
18184
18185   ;
18186   return 0;
18187 }
18188 _ACEOF
18189 rm -f conftest.$ac_objext
18190 if { (ac_try="$ac_compile"
18191 case "(($ac_try" in
18192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193   *) ac_try_echo=$ac_try;;
18194 esac
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196   (eval "$ac_compile") 2>conftest.er1
18197   ac_status=$?
18198   grep -v '^ *+' conftest.er1 >conftest.err
18199   rm -f conftest.er1
18200   cat conftest.err >&5
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); } && {
18203          test -z "$ac_c_werror_flag" ||
18204          test ! -s conftest.err
18205        } && test -s conftest.$ac_objext; then
18206   bakefile_cv_c_compiler___SUNPRO_C=yes
18207 else
18208   echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18210
18211         bakefile_cv_c_compiler___SUNPRO_C=no
18212
18213 fi
18214
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18216
18217
18218 fi
18219 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
18220 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
18221     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
18222         :; SUNCC=yes
18223     else
18224         :;
18225     fi
18226     ac_ext=c
18227 ac_cpp='$CPP $CPPFLAGS'
18228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18231
18232
18233
18234                 ;;
18235
18236             HP-UX*)
18237
18238
18239     ac_ext=c
18240 ac_cpp='$CPP $CPPFLAGS'
18241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18244
18245     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
18246 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
18247 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
18248   echo $ECHO_N "(cached) $ECHO_C" >&6
18249 else
18250   cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h.  */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h.  */
18256
18257 int
18258 main ()
18259 {
18260
18261              #ifndef __HP_cc
18262                 choke me
18263              #endif
18264
18265   ;
18266   return 0;
18267 }
18268 _ACEOF
18269 rm -f conftest.$ac_objext
18270 if { (ac_try="$ac_compile"
18271 case "(($ac_try" in
18272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273   *) ac_try_echo=$ac_try;;
18274 esac
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276   (eval "$ac_compile") 2>conftest.er1
18277   ac_status=$?
18278   grep -v '^ *+' conftest.er1 >conftest.err
18279   rm -f conftest.er1
18280   cat conftest.err >&5
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); } && {
18283          test -z "$ac_c_werror_flag" ||
18284          test ! -s conftest.err
18285        } && test -s conftest.$ac_objext; then
18286   bakefile_cv_c_compiler___HP_cc=yes
18287 else
18288   echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18290
18291         bakefile_cv_c_compiler___HP_cc=no
18292
18293 fi
18294
18295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18296
18297
18298 fi
18299 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
18300 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
18301     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
18302         :; HPCC=yes
18303     else
18304         :;
18305     fi
18306     ac_ext=c
18307 ac_cpp='$CPP $CPPFLAGS'
18308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18311
18312
18313
18314                 ;;
18315
18316             OSF1)
18317
18318
18319     ac_ext=c
18320 ac_cpp='$CPP $CPPFLAGS'
18321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18324
18325     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
18326 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
18327 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
18328   echo $ECHO_N "(cached) $ECHO_C" >&6
18329 else
18330   cat >conftest.$ac_ext <<_ACEOF
18331 /* confdefs.h.  */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h.  */
18336
18337 int
18338 main ()
18339 {
18340
18341              #ifndef __DECC
18342                 choke me
18343              #endif
18344
18345   ;
18346   return 0;
18347 }
18348 _ACEOF
18349 rm -f conftest.$ac_objext
18350 if { (ac_try="$ac_compile"
18351 case "(($ac_try" in
18352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353   *) ac_try_echo=$ac_try;;
18354 esac
18355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18356   (eval "$ac_compile") 2>conftest.er1
18357   ac_status=$?
18358   grep -v '^ *+' conftest.er1 >conftest.err
18359   rm -f conftest.er1
18360   cat conftest.err >&5
18361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362   (exit $ac_status); } && {
18363          test -z "$ac_c_werror_flag" ||
18364          test ! -s conftest.err
18365        } && test -s conftest.$ac_objext; then
18366   bakefile_cv_c_compiler___DECC=yes
18367 else
18368   echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18370
18371         bakefile_cv_c_compiler___DECC=no
18372
18373 fi
18374
18375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18376
18377
18378 fi
18379 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
18380 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
18381     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
18382         :; COMPAQCC=yes
18383     else
18384         :;
18385     fi
18386     ac_ext=c
18387 ac_cpp='$CPP $CPPFLAGS'
18388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18391
18392
18393
18394                 ;;
18395
18396             SunOS)
18397
18398
18399     ac_ext=c
18400 ac_cpp='$CPP $CPPFLAGS'
18401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18404
18405     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
18406 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
18407 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
18408   echo $ECHO_N "(cached) $ECHO_C" >&6
18409 else
18410   cat >conftest.$ac_ext <<_ACEOF
18411 /* confdefs.h.  */
18412 _ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h.  */
18416
18417 int
18418 main ()
18419 {
18420
18421              #ifndef __SUNPRO_C
18422                 choke me
18423              #endif
18424
18425   ;
18426   return 0;
18427 }
18428 _ACEOF
18429 rm -f conftest.$ac_objext
18430 if { (ac_try="$ac_compile"
18431 case "(($ac_try" in
18432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433   *) ac_try_echo=$ac_try;;
18434 esac
18435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436   (eval "$ac_compile") 2>conftest.er1
18437   ac_status=$?
18438   grep -v '^ *+' conftest.er1 >conftest.err
18439   rm -f conftest.er1
18440   cat conftest.err >&5
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); } && {
18443          test -z "$ac_c_werror_flag" ||
18444          test ! -s conftest.err
18445        } && test -s conftest.$ac_objext; then
18446   bakefile_cv_c_compiler___SUNPRO_C=yes
18447 else
18448   echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.$ac_ext >&5
18450
18451         bakefile_cv_c_compiler___SUNPRO_C=no
18452
18453 fi
18454
18455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18456
18457
18458 fi
18459 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
18460 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
18461     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
18462         :; SUNCC=yes
18463     else
18464         :;
18465     fi
18466     ac_ext=c
18467 ac_cpp='$CPP $CPPFLAGS'
18468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18471
18472
18473
18474                 ;;
18475         esac
18476     fi
18477
18478
18479
18480 ac_ext=c
18481 ac_cpp='$CPP $CPPFLAGS'
18482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18485 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
18486 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
18487 # On Suns, sometimes $CPP names a directory.
18488 if test -n "$CPP" && test -d "$CPP"; then
18489   CPP=
18490 fi
18491 if test -z "$CPP"; then
18492   if test "${ac_cv_prog_CPP+set}" = set; then
18493   echo $ECHO_N "(cached) $ECHO_C" >&6
18494 else
18495       # Double quotes because CPP needs to be expanded
18496     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
18497     do
18498       ac_preproc_ok=false
18499 for ac_c_preproc_warn_flag in '' yes
18500 do
18501   # Use a header file that comes with gcc, so configuring glibc
18502   # with a fresh cross-compiler works.
18503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18504   # <limits.h> exists even on freestanding compilers.
18505   # On the NeXT, cc -E runs the code through the compiler's parser,
18506   # not just through cpp. "Syntax error" is here to catch this case.
18507   cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h.  */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h.  */
18513 #ifdef __STDC__
18514 # include <limits.h>
18515 #else
18516 # include <assert.h>
18517 #endif
18518                      Syntax error
18519 _ACEOF
18520 if { (ac_try="$ac_cpp conftest.$ac_ext"
18521 case "(($ac_try" in
18522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523   *) ac_try_echo=$ac_try;;
18524 esac
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18527   ac_status=$?
18528   grep -v '^ *+' conftest.er1 >conftest.err
18529   rm -f conftest.er1
18530   cat conftest.err >&5
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); } >/dev/null && {
18533          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18534          test ! -s conftest.err
18535        }; then
18536   :
18537 else
18538   echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18540
18541   # Broken: fails on valid input.
18542 continue
18543 fi
18544
18545 rm -f conftest.err conftest.$ac_ext
18546
18547   # OK, works on sane cases.  Now check whether nonexistent headers
18548   # can be detected and how.
18549   cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h.  */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h.  */
18555 #include <ac_nonexistent.h>
18556 _ACEOF
18557 if { (ac_try="$ac_cpp conftest.$ac_ext"
18558 case "(($ac_try" in
18559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560   *) ac_try_echo=$ac_try;;
18561 esac
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18564   ac_status=$?
18565   grep -v '^ *+' conftest.er1 >conftest.err
18566   rm -f conftest.er1
18567   cat conftest.err >&5
18568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569   (exit $ac_status); } >/dev/null && {
18570          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18571          test ! -s conftest.err
18572        }; then
18573   # Broken: success on invalid input.
18574 continue
18575 else
18576   echo "$as_me: failed program was:" >&5
18577 sed 's/^/| /' conftest.$ac_ext >&5
18578
18579   # Passes both tests.
18580 ac_preproc_ok=:
18581 break
18582 fi
18583
18584 rm -f conftest.err conftest.$ac_ext
18585
18586 done
18587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18588 rm -f conftest.err conftest.$ac_ext
18589 if $ac_preproc_ok; then
18590   break
18591 fi
18592
18593     done
18594     ac_cv_prog_CPP=$CPP
18595
18596 fi
18597   CPP=$ac_cv_prog_CPP
18598 else
18599   ac_cv_prog_CPP=$CPP
18600 fi
18601 { echo "$as_me:$LINENO: result: $CPP" >&5
18602 echo "${ECHO_T}$CPP" >&6; }
18603 ac_preproc_ok=false
18604 for ac_c_preproc_warn_flag in '' yes
18605 do
18606   # Use a header file that comes with gcc, so configuring glibc
18607   # with a fresh cross-compiler works.
18608   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18609   # <limits.h> exists even on freestanding compilers.
18610   # On the NeXT, cc -E runs the code through the compiler's parser,
18611   # not just through cpp. "Syntax error" is here to catch this case.
18612   cat >conftest.$ac_ext <<_ACEOF
18613 /* confdefs.h.  */
18614 _ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h.  */
18618 #ifdef __STDC__
18619 # include <limits.h>
18620 #else
18621 # include <assert.h>
18622 #endif
18623                      Syntax error
18624 _ACEOF
18625 if { (ac_try="$ac_cpp conftest.$ac_ext"
18626 case "(($ac_try" in
18627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628   *) ac_try_echo=$ac_try;;
18629 esac
18630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18632   ac_status=$?
18633   grep -v '^ *+' conftest.er1 >conftest.err
18634   rm -f conftest.er1
18635   cat conftest.err >&5
18636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637   (exit $ac_status); } >/dev/null && {
18638          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18639          test ! -s conftest.err
18640        }; then
18641   :
18642 else
18643   echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18645
18646   # Broken: fails on valid input.
18647 continue
18648 fi
18649
18650 rm -f conftest.err conftest.$ac_ext
18651
18652   # OK, works on sane cases.  Now check whether nonexistent headers
18653   # can be detected and how.
18654   cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h.  */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h.  */
18660 #include <ac_nonexistent.h>
18661 _ACEOF
18662 if { (ac_try="$ac_cpp conftest.$ac_ext"
18663 case "(($ac_try" in
18664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18665   *) ac_try_echo=$ac_try;;
18666 esac
18667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18669   ac_status=$?
18670   grep -v '^ *+' conftest.er1 >conftest.err
18671   rm -f conftest.er1
18672   cat conftest.err >&5
18673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674   (exit $ac_status); } >/dev/null && {
18675          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18676          test ! -s conftest.err
18677        }; then
18678   # Broken: success on invalid input.
18679 continue
18680 else
18681   echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.$ac_ext >&5
18683
18684   # Passes both tests.
18685 ac_preproc_ok=:
18686 break
18687 fi
18688
18689 rm -f conftest.err conftest.$ac_ext
18690
18691 done
18692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18693 rm -f conftest.err conftest.$ac_ext
18694 if $ac_preproc_ok; then
18695   :
18696 else
18697   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
18698 See \`config.log' for more details." >&5
18699 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
18700 See \`config.log' for more details." >&2;}
18701    { (exit 1); exit 1; }; }
18702 fi
18703
18704 ac_ext=c
18705 ac_cpp='$CPP $CPPFLAGS'
18706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18709
18710
18711 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
18712 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
18713 if test "${ac_cv_path_GREP+set}" = set; then
18714   echo $ECHO_N "(cached) $ECHO_C" >&6
18715 else
18716   # Extract the first word of "grep ggrep" to use in msg output
18717 if test -z "$GREP"; then
18718 set dummy grep ggrep; ac_prog_name=$2
18719 if test "${ac_cv_path_GREP+set}" = set; then
18720   echo $ECHO_N "(cached) $ECHO_C" >&6
18721 else
18722   ac_path_GREP_found=false
18723 # Loop through the user's path and test for each of PROGNAME-LIST
18724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18726 do
18727   IFS=$as_save_IFS
18728   test -z "$as_dir" && as_dir=.
18729   for ac_prog in grep ggrep; do
18730   for ac_exec_ext in '' $ac_executable_extensions; do
18731     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
18732     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
18733     # Check for GNU ac_path_GREP and select it if it is found.
18734   # Check for GNU $ac_path_GREP
18735 case `"$ac_path_GREP" --version 2>&1` in
18736 *GNU*)
18737   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
18738 *)
18739   ac_count=0
18740   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18741   while :
18742   do
18743     cat "conftest.in" "conftest.in" >"conftest.tmp"
18744     mv "conftest.tmp" "conftest.in"
18745     cp "conftest.in" "conftest.nl"
18746     echo 'GREP' >> "conftest.nl"
18747     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18748     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18749     ac_count=`expr $ac_count + 1`
18750     if test $ac_count -gt ${ac_path_GREP_max-0}; then
18751       # Best one so far, save it but keep looking for a better one
18752       ac_cv_path_GREP="$ac_path_GREP"
18753       ac_path_GREP_max=$ac_count
18754     fi
18755     # 10*(2^10) chars as input seems more than enough
18756     test $ac_count -gt 10 && break
18757   done
18758   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18759 esac
18760
18761
18762     $ac_path_GREP_found && break 3
18763   done
18764 done
18765
18766 done
18767 IFS=$as_save_IFS
18768
18769
18770 fi
18771
18772 GREP="$ac_cv_path_GREP"
18773 if test -z "$GREP"; then
18774   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18775 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18776    { (exit 1); exit 1; }; }
18777 fi
18778
18779 else
18780   ac_cv_path_GREP=$GREP
18781 fi
18782
18783
18784 fi
18785 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
18786 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
18787  GREP="$ac_cv_path_GREP"
18788
18789
18790 { echo "$as_me:$LINENO: checking for egrep" >&5
18791 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
18792 if test "${ac_cv_path_EGREP+set}" = set; then
18793   echo $ECHO_N "(cached) $ECHO_C" >&6
18794 else
18795   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
18796    then ac_cv_path_EGREP="$GREP -E"
18797    else
18798      # Extract the first word of "egrep" to use in msg output
18799 if test -z "$EGREP"; then
18800 set dummy egrep; ac_prog_name=$2
18801 if test "${ac_cv_path_EGREP+set}" = set; then
18802   echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18804   ac_path_EGREP_found=false
18805 # Loop through the user's path and test for each of PROGNAME-LIST
18806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18807 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18808 do
18809   IFS=$as_save_IFS
18810   test -z "$as_dir" && as_dir=.
18811   for ac_prog in egrep; do
18812   for ac_exec_ext in '' $ac_executable_extensions; do
18813     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
18814     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
18815     # Check for GNU ac_path_EGREP and select it if it is found.
18816   # Check for GNU $ac_path_EGREP
18817 case `"$ac_path_EGREP" --version 2>&1` in
18818 *GNU*)
18819   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
18820 *)
18821   ac_count=0
18822   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18823   while :
18824   do
18825     cat "conftest.in" "conftest.in" >"conftest.tmp"
18826     mv "conftest.tmp" "conftest.in"
18827     cp "conftest.in" "conftest.nl"
18828     echo 'EGREP' >> "conftest.nl"
18829     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18830     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18831     ac_count=`expr $ac_count + 1`
18832     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
18833       # Best one so far, save it but keep looking for a better one
18834       ac_cv_path_EGREP="$ac_path_EGREP"
18835       ac_path_EGREP_max=$ac_count
18836     fi
18837     # 10*(2^10) chars as input seems more than enough
18838     test $ac_count -gt 10 && break
18839   done
18840   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18841 esac
18842
18843
18844     $ac_path_EGREP_found && break 3
18845   done
18846 done
18847
18848 done
18849 IFS=$as_save_IFS
18850
18851
18852 fi
18853
18854 EGREP="$ac_cv_path_EGREP"
18855 if test -z "$EGREP"; then
18856   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18857 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18858    { (exit 1); exit 1; }; }
18859 fi
18860
18861 else
18862   ac_cv_path_EGREP=$EGREP
18863 fi
18864
18865
18866    fi
18867 fi
18868 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
18869 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
18870  EGREP="$ac_cv_path_EGREP"
18871
18872
18873 if test $ac_cv_c_compiler_gnu = yes; then
18874     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
18875 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
18876 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
18877   echo $ECHO_N "(cached) $ECHO_C" >&6
18878 else
18879     ac_pattern="Autoconf.*'x'"
18880   cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h.  */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h.  */
18886 #include <sgtty.h>
18887 Autoconf TIOCGETP
18888 _ACEOF
18889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18890   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18891   ac_cv_prog_gcc_traditional=yes
18892 else
18893   ac_cv_prog_gcc_traditional=no
18894 fi
18895 rm -f conftest*
18896
18897
18898   if test $ac_cv_prog_gcc_traditional = no; then
18899     cat >conftest.$ac_ext <<_ACEOF
18900 /* confdefs.h.  */
18901 _ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h.  */
18905 #include <termio.h>
18906 Autoconf TCGETA
18907 _ACEOF
18908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18909   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18910   ac_cv_prog_gcc_traditional=yes
18911 fi
18912 rm -f conftest*
18913
18914   fi
18915 fi
18916 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
18917 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
18918   if test $ac_cv_prog_gcc_traditional = yes; then
18919     CC="$CC -traditional"
18920   fi
18921 fi
18922
18923
18924 CXXFLAGS=${CXXFLAGS:=}
18925
18926
18927
18928     ac_ext=cpp
18929 ac_cpp='$CXXCPP $CPPFLAGS'
18930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18933 if test -z "$CXX"; then
18934   if test -n "$CCC"; then
18935     CXX=$CCC
18936   else
18937     if test -n "$ac_tool_prefix"; then
18938   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18939   do
18940     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18944 if test "${ac_cv_prog_CXX+set}" = set; then
18945   echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947   if test -n "$CXX"; then
18948   ac_cv_prog_CXX="$CXX" # Let the user override the test.
18949 else
18950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18951 for as_dir in $PATH
18952 do
18953   IFS=$as_save_IFS
18954   test -z "$as_dir" && as_dir=.
18955   for ac_exec_ext in '' $ac_executable_extensions; do
18956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18957     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18959     break 2
18960   fi
18961 done
18962 done
18963 IFS=$as_save_IFS
18964
18965 fi
18966 fi
18967 CXX=$ac_cv_prog_CXX
18968 if test -n "$CXX"; then
18969   { echo "$as_me:$LINENO: result: $CXX" >&5
18970 echo "${ECHO_T}$CXX" >&6; }
18971 else
18972   { echo "$as_me:$LINENO: result: no" >&5
18973 echo "${ECHO_T}no" >&6; }
18974 fi
18975
18976
18977     test -n "$CXX" && break
18978   done
18979 fi
18980 if test -z "$CXX"; then
18981   ac_ct_CXX=$CXX
18982   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18983 do
18984   # Extract the first word of "$ac_prog", so it can be a program name with args.
18985 set dummy $ac_prog; ac_word=$2
18986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18988 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
18989   echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991   if test -n "$ac_ct_CXX"; then
18992   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18993 else
18994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18995 for as_dir in $PATH
18996 do
18997   IFS=$as_save_IFS
18998   test -z "$as_dir" && as_dir=.
18999   for ac_exec_ext in '' $ac_executable_extensions; do
19000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19001     ac_cv_prog_ac_ct_CXX="$ac_prog"
19002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19003     break 2
19004   fi
19005 done
19006 done
19007 IFS=$as_save_IFS
19008
19009 fi
19010 fi
19011 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19012 if test -n "$ac_ct_CXX"; then
19013   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19014 echo "${ECHO_T}$ac_ct_CXX" >&6; }
19015 else
19016   { echo "$as_me:$LINENO: result: no" >&5
19017 echo "${ECHO_T}no" >&6; }
19018 fi
19019
19020
19021   test -n "$ac_ct_CXX" && break
19022 done
19023
19024   if test "x$ac_ct_CXX" = x; then
19025     CXX="g++"
19026   else
19027     case $cross_compiling:$ac_tool_warned in
19028 yes:)
19029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19030 whose name does not start with the host triplet.  If you think this
19031 configuration is useful to you, please write to autoconf@gnu.org." >&5
19032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19033 whose name does not start with the host triplet.  If you think this
19034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19035 ac_tool_warned=yes ;;
19036 esac
19037     CXX=$ac_ct_CXX
19038   fi
19039 fi
19040
19041   fi
19042 fi
19043 # Provide some information about the compiler.
19044 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
19045 ac_compiler=`set X $ac_compile; echo $2`
19046 { (ac_try="$ac_compiler --version >&5"
19047 case "(($ac_try" in
19048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049   *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052   (eval "$ac_compiler --version >&5") 2>&5
19053   ac_status=$?
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); }
19056 { (ac_try="$ac_compiler -v >&5"
19057 case "(($ac_try" in
19058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059   *) ac_try_echo=$ac_try;;
19060 esac
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062   (eval "$ac_compiler -v >&5") 2>&5
19063   ac_status=$?
19064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065   (exit $ac_status); }
19066 { (ac_try="$ac_compiler -V >&5"
19067 case "(($ac_try" in
19068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069   *) ac_try_echo=$ac_try;;
19070 esac
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072   (eval "$ac_compiler -V >&5") 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }
19076
19077 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19078 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
19079 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19080   echo $ECHO_N "(cached) $ECHO_C" >&6
19081 else
19082   cat >conftest.$ac_ext <<_ACEOF
19083 /* confdefs.h.  */
19084 _ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h.  */
19088
19089 int
19090 main ()
19091 {
19092 #ifndef __GNUC__
19093        choke me
19094 #endif
19095
19096   ;
19097   return 0;
19098 }
19099 _ACEOF
19100 rm -f conftest.$ac_objext
19101 if { (ac_try="$ac_compile"
19102 case "(($ac_try" in
19103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104   *) ac_try_echo=$ac_try;;
19105 esac
19106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107   (eval "$ac_compile") 2>conftest.er1
19108   ac_status=$?
19109   grep -v '^ *+' conftest.er1 >conftest.err
19110   rm -f conftest.er1
19111   cat conftest.err >&5
19112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113   (exit $ac_status); } && {
19114          test -z "$ac_cxx_werror_flag" ||
19115          test ! -s conftest.err
19116        } && test -s conftest.$ac_objext; then
19117   ac_compiler_gnu=yes
19118 else
19119   echo "$as_me: failed program was:" >&5
19120 sed 's/^/| /' conftest.$ac_ext >&5
19121
19122         ac_compiler_gnu=no
19123 fi
19124
19125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19127
19128 fi
19129 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19130 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
19131 GXX=`test $ac_compiler_gnu = yes && echo yes`
19132 ac_test_CXXFLAGS=${CXXFLAGS+set}
19133 ac_save_CXXFLAGS=$CXXFLAGS
19134 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19135 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
19136 if test "${ac_cv_prog_cxx_g+set}" = set; then
19137   echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
19140    ac_cxx_werror_flag=yes
19141    ac_cv_prog_cxx_g=no
19142    CXXFLAGS="-g"
19143    cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h.  */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h.  */
19149
19150 int
19151 main ()
19152 {
19153
19154   ;
19155   return 0;
19156 }
19157 _ACEOF
19158 rm -f conftest.$ac_objext
19159 if { (ac_try="$ac_compile"
19160 case "(($ac_try" in
19161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162   *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165   (eval "$ac_compile") 2>conftest.er1
19166   ac_status=$?
19167   grep -v '^ *+' conftest.er1 >conftest.err
19168   rm -f conftest.er1
19169   cat conftest.err >&5
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); } && {
19172          test -z "$ac_cxx_werror_flag" ||
19173          test ! -s conftest.err
19174        } && test -s conftest.$ac_objext; then
19175   ac_cv_prog_cxx_g=yes
19176 else
19177   echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19179
19180         CXXFLAGS=""
19181       cat >conftest.$ac_ext <<_ACEOF
19182 /* confdefs.h.  */
19183 _ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h.  */
19187
19188 int
19189 main ()
19190 {
19191
19192   ;
19193   return 0;
19194 }
19195 _ACEOF
19196 rm -f conftest.$ac_objext
19197 if { (ac_try="$ac_compile"
19198 case "(($ac_try" in
19199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200   *) ac_try_echo=$ac_try;;
19201 esac
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203   (eval "$ac_compile") 2>conftest.er1
19204   ac_status=$?
19205   grep -v '^ *+' conftest.er1 >conftest.err
19206   rm -f conftest.er1
19207   cat conftest.err >&5
19208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209   (exit $ac_status); } && {
19210          test -z "$ac_cxx_werror_flag" ||
19211          test ! -s conftest.err
19212        } && test -s conftest.$ac_objext; then
19213   :
19214 else
19215   echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19217
19218         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19219          CXXFLAGS="-g"
19220          cat >conftest.$ac_ext <<_ACEOF
19221 /* confdefs.h.  */
19222 _ACEOF
19223 cat confdefs.h >>conftest.$ac_ext
19224 cat >>conftest.$ac_ext <<_ACEOF
19225 /* end confdefs.h.  */
19226
19227 int
19228 main ()
19229 {
19230
19231   ;
19232   return 0;
19233 }
19234 _ACEOF
19235 rm -f conftest.$ac_objext
19236 if { (ac_try="$ac_compile"
19237 case "(($ac_try" in
19238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239   *) ac_try_echo=$ac_try;;
19240 esac
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242   (eval "$ac_compile") 2>conftest.er1
19243   ac_status=$?
19244   grep -v '^ *+' conftest.er1 >conftest.err
19245   rm -f conftest.er1
19246   cat conftest.err >&5
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); } && {
19249          test -z "$ac_cxx_werror_flag" ||
19250          test ! -s conftest.err
19251        } && test -s conftest.$ac_objext; then
19252   ac_cv_prog_cxx_g=yes
19253 else
19254   echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19256
19257
19258 fi
19259
19260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19261 fi
19262
19263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19264 fi
19265
19266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19267    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19268 fi
19269 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
19270 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
19271 if test "$ac_test_CXXFLAGS" = set; then
19272   CXXFLAGS=$ac_save_CXXFLAGS
19273 elif test $ac_cv_prog_cxx_g = yes; then
19274   if test "$GXX" = yes; then
19275     CXXFLAGS="-g -O2"
19276   else
19277     CXXFLAGS="-g"
19278   fi
19279 else
19280   if test "$GXX" = yes; then
19281     CXXFLAGS="-O2"
19282   else
19283     CXXFLAGS=
19284   fi
19285 fi
19286 ac_ext=c
19287 ac_cpp='$CPP $CPPFLAGS'
19288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19291
19292
19293
19294
19295     ac_ext=cpp
19296 ac_cpp='$CXXCPP $CPPFLAGS'
19297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19300
19301     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
19302 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
19303 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
19304   echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306   cat >conftest.$ac_ext <<_ACEOF
19307 /* confdefs.h.  */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h.  */
19312
19313 int
19314 main ()
19315 {
19316
19317              #ifndef __INTEL_COMPILER
19318                 choke me
19319              #endif
19320
19321   ;
19322   return 0;
19323 }
19324 _ACEOF
19325 rm -f conftest.$ac_objext
19326 if { (ac_try="$ac_compile"
19327 case "(($ac_try" in
19328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329   *) ac_try_echo=$ac_try;;
19330 esac
19331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332   (eval "$ac_compile") 2>conftest.er1
19333   ac_status=$?
19334   grep -v '^ *+' conftest.er1 >conftest.err
19335   rm -f conftest.er1
19336   cat conftest.err >&5
19337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338   (exit $ac_status); } && {
19339          test -z "$ac_cxx_werror_flag" ||
19340          test ! -s conftest.err
19341        } && test -s conftest.$ac_objext; then
19342   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
19343 else
19344   echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19346
19347         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
19348
19349 fi
19350
19351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19352
19353
19354 fi
19355 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
19356 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
19357     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
19358         :; INTELCXX=yes
19359     else
19360         :;
19361     fi
19362     ac_ext=c
19363 ac_cpp='$CPP $CPPFLAGS'
19364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19367
19368
19369
19370
19371         if test "x$GCXX" != "xyes"; then
19372         if test "xCXX" = "xC"; then
19373             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
19374 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
19375 if test "${bakefile_cv_c_exto+set}" = set; then
19376   echo $ECHO_N "(cached) $ECHO_C" >&6
19377 else
19378   cat >conftest.$ac_ext <<_ACEOF
19379 /* confdefs.h.  */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h.  */
19384
19385 int
19386 main ()
19387 {
19388
19389   ;
19390   return 0;
19391 }
19392 _ACEOF
19393 rm -f conftest.$ac_objext conftest.$ac_ext.o
19394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19395   (eval $ac_compile) 2>&5
19396   ac_status=$?
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); }; then
19399   for ac_file in `(ls conftest.* 2>/dev/null)`; do
19400     case $ac_file in
19401         conftest.$ac_ext.o)
19402             bakefile_cv_c_exto="-ext o"
19403             ;;
19404         *)
19405             ;;
19406     esac
19407 done
19408 else
19409   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
19410 See \`config.log' for more details." >&5
19411 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
19412 See \`config.log' for more details." >&2;}
19413    { (exit 1); exit 1; }; }
19414
19415 fi
19416
19417 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
19418
19419 fi
19420 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
19421 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
19422 if test "x$bakefile_cv_c_exto" '!=' "x"; then
19423     if test "c" = "c"; then
19424         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
19425     fi
19426     if test "c" = "cxx"; then
19427         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
19428     fi
19429 fi
19430
19431             if test "x$bakefile_cv_c_exto" '!=' "x"; then
19432                 unset ac_cv_prog_cc_g
19433                 ac_test_CFLAGS=${CFLAGS+set}
19434 ac_save_CFLAGS=$CFLAGS
19435 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19436 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19437 if test "${ac_cv_prog_cc_g+set}" = set; then
19438   echo $ECHO_N "(cached) $ECHO_C" >&6
19439 else
19440   ac_save_c_werror_flag=$ac_c_werror_flag
19441    ac_c_werror_flag=yes
19442    ac_cv_prog_cc_g=no
19443    CFLAGS="-g"
19444    cat >conftest.$ac_ext <<_ACEOF
19445 /* confdefs.h.  */
19446 _ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h.  */
19450
19451 int
19452 main ()
19453 {
19454
19455   ;
19456   return 0;
19457 }
19458 _ACEOF
19459 rm -f conftest.$ac_objext
19460 if { (ac_try="$ac_compile"
19461 case "(($ac_try" in
19462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463   *) ac_try_echo=$ac_try;;
19464 esac
19465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466   (eval "$ac_compile") 2>conftest.er1
19467   ac_status=$?
19468   grep -v '^ *+' conftest.er1 >conftest.err
19469   rm -f conftest.er1
19470   cat conftest.err >&5
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); } && {
19473          test -z "$ac_c_werror_flag" ||
19474          test ! -s conftest.err
19475        } && test -s conftest.$ac_objext; then
19476   ac_cv_prog_cc_g=yes
19477 else
19478   echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19480
19481         CFLAGS=""
19482       cat >conftest.$ac_ext <<_ACEOF
19483 /* confdefs.h.  */
19484 _ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h.  */
19488
19489 int
19490 main ()
19491 {
19492
19493   ;
19494   return 0;
19495 }
19496 _ACEOF
19497 rm -f conftest.$ac_objext
19498 if { (ac_try="$ac_compile"
19499 case "(($ac_try" in
19500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501   *) ac_try_echo=$ac_try;;
19502 esac
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504   (eval "$ac_compile") 2>conftest.er1
19505   ac_status=$?
19506   grep -v '^ *+' conftest.er1 >conftest.err
19507   rm -f conftest.er1
19508   cat conftest.err >&5
19509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510   (exit $ac_status); } && {
19511          test -z "$ac_c_werror_flag" ||
19512          test ! -s conftest.err
19513        } && test -s conftest.$ac_objext; then
19514   :
19515 else
19516   echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19518
19519         ac_c_werror_flag=$ac_save_c_werror_flag
19520          CFLAGS="-g"
19521          cat >conftest.$ac_ext <<_ACEOF
19522 /* confdefs.h.  */
19523 _ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h.  */
19527
19528 int
19529 main ()
19530 {
19531
19532   ;
19533   return 0;
19534 }
19535 _ACEOF
19536 rm -f conftest.$ac_objext
19537 if { (ac_try="$ac_compile"
19538 case "(($ac_try" in
19539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540   *) ac_try_echo=$ac_try;;
19541 esac
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543   (eval "$ac_compile") 2>conftest.er1
19544   ac_status=$?
19545   grep -v '^ *+' conftest.er1 >conftest.err
19546   rm -f conftest.er1
19547   cat conftest.err >&5
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); } && {
19550          test -z "$ac_c_werror_flag" ||
19551          test ! -s conftest.err
19552        } && test -s conftest.$ac_objext; then
19553   ac_cv_prog_cc_g=yes
19554 else
19555   echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19557
19558
19559 fi
19560
19561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19562 fi
19563
19564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19565 fi
19566
19567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19568    ac_c_werror_flag=$ac_save_c_werror_flag
19569 fi
19570 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19571 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19572 if test "$ac_test_CFLAGS" = set; then
19573   CFLAGS=$ac_save_CFLAGS
19574 elif test $ac_cv_prog_cc_g = yes; then
19575   if test "$GCC" = yes; then
19576     CFLAGS="-g -O2"
19577   else
19578     CFLAGS="-g"
19579   fi
19580 else
19581   if test "$GCC" = yes; then
19582     CFLAGS="-O2"
19583   else
19584     CFLAGS=
19585   fi
19586 fi
19587             fi
19588         fi
19589
19590                         case `uname -s` in
19591             AIX*)
19592
19593
19594     ac_ext=cpp
19595 ac_cpp='$CXXCPP $CPPFLAGS'
19596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19599
19600     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19601 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19602 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19603   echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605   cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h.  */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h.  */
19611
19612 int
19613 main ()
19614 {
19615
19616              #ifndef __xlC__
19617                 choke me
19618              #endif
19619
19620   ;
19621   return 0;
19622 }
19623 _ACEOF
19624 rm -f conftest.$ac_objext
19625 if { (ac_try="$ac_compile"
19626 case "(($ac_try" in
19627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628   *) ac_try_echo=$ac_try;;
19629 esac
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631   (eval "$ac_compile") 2>conftest.er1
19632   ac_status=$?
19633   grep -v '^ *+' conftest.er1 >conftest.err
19634   rm -f conftest.er1
19635   cat conftest.err >&5
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); } && {
19638          test -z "$ac_cxx_werror_flag" ||
19639          test ! -s conftest.err
19640        } && test -s conftest.$ac_objext; then
19641   bakefile_cv_cxx_compiler___xlC__=yes
19642 else
19643   echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19645
19646         bakefile_cv_cxx_compiler___xlC__=no
19647
19648 fi
19649
19650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19651
19652
19653 fi
19654 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19655 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19656     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19657         :; XLCXX=yes
19658     else
19659         :;
19660     fi
19661     ac_ext=c
19662 ac_cpp='$CPP $CPPFLAGS'
19663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19666
19667
19668
19669                 ;;
19670
19671             Darwin)
19672
19673
19674     ac_ext=cpp
19675 ac_cpp='$CXXCPP $CPPFLAGS'
19676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19679
19680     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
19681 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
19682 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
19683   echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685   cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h.  */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h.  */
19691
19692 int
19693 main ()
19694 {
19695
19696              #ifndef __MWERKS__
19697                 choke me
19698              #endif
19699
19700   ;
19701   return 0;
19702 }
19703 _ACEOF
19704 rm -f conftest.$ac_objext
19705 if { (ac_try="$ac_compile"
19706 case "(($ac_try" in
19707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708   *) ac_try_echo=$ac_try;;
19709 esac
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711   (eval "$ac_compile") 2>conftest.er1
19712   ac_status=$?
19713   grep -v '^ *+' conftest.er1 >conftest.err
19714   rm -f conftest.er1
19715   cat conftest.err >&5
19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717   (exit $ac_status); } && {
19718          test -z "$ac_cxx_werror_flag" ||
19719          test ! -s conftest.err
19720        } && test -s conftest.$ac_objext; then
19721   bakefile_cv_cxx_compiler___MWERKS__=yes
19722 else
19723   echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19725
19726         bakefile_cv_cxx_compiler___MWERKS__=no
19727
19728 fi
19729
19730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19731
19732
19733 fi
19734 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
19735 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
19736     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
19737         :; MWCXX=yes
19738     else
19739         :;
19740     fi
19741     ac_ext=c
19742 ac_cpp='$CPP $CPPFLAGS'
19743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19746
19747
19748
19749
19750
19751     ac_ext=cpp
19752 ac_cpp='$CXXCPP $CPPFLAGS'
19753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19756
19757     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19758 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19759 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19760   echo $ECHO_N "(cached) $ECHO_C" >&6
19761 else
19762   cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h.  */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h.  */
19768
19769 int
19770 main ()
19771 {
19772
19773              #ifndef __xlC__
19774                 choke me
19775              #endif
19776
19777   ;
19778   return 0;
19779 }
19780 _ACEOF
19781 rm -f conftest.$ac_objext
19782 if { (ac_try="$ac_compile"
19783 case "(($ac_try" in
19784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785   *) ac_try_echo=$ac_try;;
19786 esac
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788   (eval "$ac_compile") 2>conftest.er1
19789   ac_status=$?
19790   grep -v '^ *+' conftest.er1 >conftest.err
19791   rm -f conftest.er1
19792   cat conftest.err >&5
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); } && {
19795          test -z "$ac_cxx_werror_flag" ||
19796          test ! -s conftest.err
19797        } && test -s conftest.$ac_objext; then
19798   bakefile_cv_cxx_compiler___xlC__=yes
19799 else
19800   echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19802
19803         bakefile_cv_cxx_compiler___xlC__=no
19804
19805 fi
19806
19807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19808
19809
19810 fi
19811 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19812 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19813     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19814         :; XLCXX=yes
19815     else
19816         :;
19817     fi
19818     ac_ext=c
19819 ac_cpp='$CPP $CPPFLAGS'
19820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19823
19824
19825
19826                 ;;
19827
19828             IRIX*)
19829
19830
19831     ac_ext=cpp
19832 ac_cpp='$CXXCPP $CPPFLAGS'
19833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19836
19837     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
19838 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
19839 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
19840   echo $ECHO_N "(cached) $ECHO_C" >&6
19841 else
19842   cat >conftest.$ac_ext <<_ACEOF
19843 /* confdefs.h.  */
19844 _ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h.  */
19848
19849 int
19850 main ()
19851 {
19852
19853              #ifndef _SGI_COMPILER_VERSION
19854                 choke me
19855              #endif
19856
19857   ;
19858   return 0;
19859 }
19860 _ACEOF
19861 rm -f conftest.$ac_objext
19862 if { (ac_try="$ac_compile"
19863 case "(($ac_try" in
19864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865   *) ac_try_echo=$ac_try;;
19866 esac
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868   (eval "$ac_compile") 2>conftest.er1
19869   ac_status=$?
19870   grep -v '^ *+' conftest.er1 >conftest.err
19871   rm -f conftest.er1
19872   cat conftest.err >&5
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); } && {
19875          test -z "$ac_cxx_werror_flag" ||
19876          test ! -s conftest.err
19877        } && test -s conftest.$ac_objext; then
19878   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
19879 else
19880   echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19882
19883         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
19884
19885 fi
19886
19887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19888
19889
19890 fi
19891 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
19892 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
19893     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
19894         :; SGICXX=yes
19895     else
19896         :;
19897     fi
19898     ac_ext=c
19899 ac_cpp='$CPP $CPPFLAGS'
19900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19903
19904
19905
19906                 ;;
19907
19908             Linux*)
19909
19910
19911     ac_ext=cpp
19912 ac_cpp='$CXXCPP $CPPFLAGS'
19913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19916
19917     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19918 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19919 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19920   echo $ECHO_N "(cached) $ECHO_C" >&6
19921 else
19922   cat >conftest.$ac_ext <<_ACEOF
19923 /* confdefs.h.  */
19924 _ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h.  */
19928
19929 int
19930 main ()
19931 {
19932
19933              #ifndef __SUNPRO_CC
19934                 choke me
19935              #endif
19936
19937   ;
19938   return 0;
19939 }
19940 _ACEOF
19941 rm -f conftest.$ac_objext
19942 if { (ac_try="$ac_compile"
19943 case "(($ac_try" in
19944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945   *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948   (eval "$ac_compile") 2>conftest.er1
19949   ac_status=$?
19950   grep -v '^ *+' conftest.er1 >conftest.err
19951   rm -f conftest.er1
19952   cat conftest.err >&5
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); } && {
19955          test -z "$ac_cxx_werror_flag" ||
19956          test ! -s conftest.err
19957        } && test -s conftest.$ac_objext; then
19958   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19959 else
19960   echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19962
19963         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19964
19965 fi
19966
19967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19968
19969
19970 fi
19971 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19972 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19973     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19974         :; SUNCXX=yes
19975     else
19976         :;
19977     fi
19978     ac_ext=c
19979 ac_cpp='$CPP $CPPFLAGS'
19980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19983
19984
19985
19986                 ;;
19987
19988             HP-UX*)
19989
19990
19991     ac_ext=cpp
19992 ac_cpp='$CXXCPP $CPPFLAGS'
19993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19996
19997     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
19998 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
19999 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
20000   echo $ECHO_N "(cached) $ECHO_C" >&6
20001 else
20002   cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h.  */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h.  */
20008
20009 int
20010 main ()
20011 {
20012
20013              #ifndef __HP_aCC
20014                 choke me
20015              #endif
20016
20017   ;
20018   return 0;
20019 }
20020 _ACEOF
20021 rm -f conftest.$ac_objext
20022 if { (ac_try="$ac_compile"
20023 case "(($ac_try" in
20024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025   *) ac_try_echo=$ac_try;;
20026 esac
20027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20028   (eval "$ac_compile") 2>conftest.er1
20029   ac_status=$?
20030   grep -v '^ *+' conftest.er1 >conftest.err
20031   rm -f conftest.er1
20032   cat conftest.err >&5
20033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034   (exit $ac_status); } && {
20035          test -z "$ac_cxx_werror_flag" ||
20036          test ! -s conftest.err
20037        } && test -s conftest.$ac_objext; then
20038   bakefile_cv_cxx_compiler___HP_aCC=yes
20039 else
20040   echo "$as_me: failed program was:" >&5
20041 sed 's/^/| /' conftest.$ac_ext >&5
20042
20043         bakefile_cv_cxx_compiler___HP_aCC=no
20044
20045 fi
20046
20047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20048
20049
20050 fi
20051 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
20052 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
20053     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
20054         :; HPCXX=yes
20055     else
20056         :;
20057     fi
20058     ac_ext=c
20059 ac_cpp='$CPP $CPPFLAGS'
20060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20063
20064
20065
20066                 ;;
20067
20068             OSF1)
20069
20070
20071     ac_ext=cpp
20072 ac_cpp='$CXXCPP $CPPFLAGS'
20073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20076
20077     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
20078 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
20079 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
20080   echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082   cat >conftest.$ac_ext <<_ACEOF
20083 /* confdefs.h.  */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h.  */
20088
20089 int
20090 main ()
20091 {
20092
20093              #ifndef __DECCXX
20094                 choke me
20095              #endif
20096
20097   ;
20098   return 0;
20099 }
20100 _ACEOF
20101 rm -f conftest.$ac_objext
20102 if { (ac_try="$ac_compile"
20103 case "(($ac_try" in
20104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105   *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108   (eval "$ac_compile") 2>conftest.er1
20109   ac_status=$?
20110   grep -v '^ *+' conftest.er1 >conftest.err
20111   rm -f conftest.er1
20112   cat conftest.err >&5
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); } && {
20115          test -z "$ac_cxx_werror_flag" ||
20116          test ! -s conftest.err
20117        } && test -s conftest.$ac_objext; then
20118   bakefile_cv_cxx_compiler___DECCXX=yes
20119 else
20120   echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20122
20123         bakefile_cv_cxx_compiler___DECCXX=no
20124
20125 fi
20126
20127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20128
20129
20130 fi
20131 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
20132 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
20133     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
20134         :; COMPAQCXX=yes
20135     else
20136         :;
20137     fi
20138     ac_ext=c
20139 ac_cpp='$CPP $CPPFLAGS'
20140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20143
20144
20145
20146                 ;;
20147
20148             SunOS)
20149
20150
20151     ac_ext=cpp
20152 ac_cpp='$CXXCPP $CPPFLAGS'
20153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20156
20157     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
20158 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
20159 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
20160   echo $ECHO_N "(cached) $ECHO_C" >&6
20161 else
20162   cat >conftest.$ac_ext <<_ACEOF
20163 /* confdefs.h.  */
20164 _ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h.  */
20168
20169 int
20170 main ()
20171 {
20172
20173              #ifndef __SUNPRO_CC
20174                 choke me
20175              #endif
20176
20177   ;
20178   return 0;
20179 }
20180 _ACEOF
20181 rm -f conftest.$ac_objext
20182 if { (ac_try="$ac_compile"
20183 case "(($ac_try" in
20184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185   *) ac_try_echo=$ac_try;;
20186 esac
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188   (eval "$ac_compile") 2>conftest.er1
20189   ac_status=$?
20190   grep -v '^ *+' conftest.er1 >conftest.err
20191   rm -f conftest.er1
20192   cat conftest.err >&5
20193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194   (exit $ac_status); } && {
20195          test -z "$ac_cxx_werror_flag" ||
20196          test ! -s conftest.err
20197        } && test -s conftest.$ac_objext; then
20198   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
20199 else
20200   echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20202
20203         bakefile_cv_cxx_compiler___SUNPRO_CC=no
20204
20205 fi
20206
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20208
20209
20210 fi
20211 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
20212 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
20213     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
20214         :; SUNCXX=yes
20215     else
20216         :;
20217     fi
20218     ac_ext=c
20219 ac_cpp='$CPP $CPPFLAGS'
20220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20223
20224
20225
20226                 ;;
20227         esac
20228     fi
20229
20230
20231
20232 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
20233     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
20234 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
20235    { (exit 1); exit 1; }; }
20236 fi
20237
20238 if test "x$SUNCXX" != xyes; then
20239     if test -n "$ac_tool_prefix"; then
20240   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20241 set dummy ${ac_tool_prefix}ar; ac_word=$2
20242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20244 if test "${ac_cv_prog_AR+set}" = set; then
20245   echo $ECHO_N "(cached) $ECHO_C" >&6
20246 else
20247   if test -n "$AR"; then
20248   ac_cv_prog_AR="$AR" # Let the user override the test.
20249 else
20250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20251 for as_dir in $PATH
20252 do
20253   IFS=$as_save_IFS
20254   test -z "$as_dir" && as_dir=.
20255   for ac_exec_ext in '' $ac_executable_extensions; do
20256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20257     ac_cv_prog_AR="${ac_tool_prefix}ar"
20258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20259     break 2
20260   fi
20261 done
20262 done
20263 IFS=$as_save_IFS
20264
20265 fi
20266 fi
20267 AR=$ac_cv_prog_AR
20268 if test -n "$AR"; then
20269   { echo "$as_me:$LINENO: result: $AR" >&5
20270 echo "${ECHO_T}$AR" >&6; }
20271 else
20272   { echo "$as_me:$LINENO: result: no" >&5
20273 echo "${ECHO_T}no" >&6; }
20274 fi
20275
20276
20277 fi
20278 if test -z "$ac_cv_prog_AR"; then
20279   ac_ct_AR=$AR
20280   # Extract the first word of "ar", so it can be a program name with args.
20281 set dummy ar; ac_word=$2
20282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20284 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20285   echo $ECHO_N "(cached) $ECHO_C" >&6
20286 else
20287   if test -n "$ac_ct_AR"; then
20288   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20289 else
20290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20291 for as_dir in $PATH
20292 do
20293   IFS=$as_save_IFS
20294   test -z "$as_dir" && as_dir=.
20295   for ac_exec_ext in '' $ac_executable_extensions; do
20296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20297     ac_cv_prog_ac_ct_AR="ar"
20298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20299     break 2
20300   fi
20301 done
20302 done
20303 IFS=$as_save_IFS
20304
20305 fi
20306 fi
20307 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20308 if test -n "$ac_ct_AR"; then
20309   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20310 echo "${ECHO_T}$ac_ct_AR" >&6; }
20311 else
20312   { echo "$as_me:$LINENO: result: no" >&5
20313 echo "${ECHO_T}no" >&6; }
20314 fi
20315
20316   if test "x$ac_ct_AR" = x; then
20317     AR=""
20318   else
20319     case $cross_compiling:$ac_tool_warned in
20320 yes:)
20321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20322 whose name does not start with the host triplet.  If you think this
20323 configuration is useful to you, please write to autoconf@gnu.org." >&5
20324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20325 whose name does not start with the host triplet.  If you think this
20326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20327 ac_tool_warned=yes ;;
20328 esac
20329     AR=$ac_ct_AR
20330   fi
20331 else
20332   AR="$ac_cv_prog_AR"
20333 fi
20334
20335     if test "x$AR" = "x" ; then
20336         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
20337 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
20338    { (exit 1); exit 1; }; }
20339     fi
20340 fi
20341
20342 retest_macosx_linking=no
20343
20344 #if test "$wxUSE_MAC" = 1; then
20345     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
20346                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
20347             # Implicitly turn on the new --with-macosx-sdk using the default
20348             # SDK which provides the behavior this option has always had.
20349             if test "x$wxUSE_MACOSX_SDK" = "x"; then
20350                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
20351 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
20352                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
20353 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
20354                 wxUSE_MACOSX_SDK=yes
20355             fi
20356         else
20357             # Complain to user if he specified an argument to --enable-universal_binary
20358             # and also 1) specified --with-macosx-sdk using the default (yes) or
20359             # 2) specified --with-macosx-sdk using a path or 3) specified
20360             # --without-macosx-sdk (no).
20361             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
20362                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
20363 See \`config.log' for more details." >&5
20364 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
20365 See \`config.log' for more details." >&2;}
20366    { (exit 1); exit 1; }; }
20367             else
20368                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
20369                 # special-case the empty string because the below test simply
20370                 # converts "no" to the empty string anyway.
20371                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
20372                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
20373 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
20374             fi
20375         fi
20376                 OSX_UNIV_OPTS="-arch ppc -arch i386"
20377         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
20378         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
20379         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
20380                                                                                                                 retest_macosx_linking=yes
20381
20382                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
20383 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
20384         bk_use_pch=no
20385     fi
20386 #fi
20387
20388 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
20389     wxUSE_MACOSX_SDK=
20390 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
20391     # TODO: Search for most recent SDK and use it.
20392     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
20393 fi
20394
20395
20396 if test "x$wxUSE_MACOSX_SDK" != "x"; then
20397     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
20398 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
20399     if ! test -d "$wxUSE_MACOSX_SDK"; then
20400         { { echo "$as_me:$LINENO: error: not found
20401 See \`config.log' for more details." >&5
20402 echo "$as_me: error: not found
20403 See \`config.log' for more details." >&2;}
20404    { (exit 1); exit 1; }; }
20405     else
20406         { echo "$as_me:$LINENO: result: exists" >&5
20407 echo "${ECHO_T}exists" >&6; }
20408     fi
20409     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
20410     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
20411     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
20412     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
20413     retest_macosx_linking=yes
20414             fi
20415
20416 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
20417     wxUSE_MACOSX_VERSION_MIN=
20418 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
20419     if test "x$wxUSE_MACOSX_SDK" != "x"; then
20420         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
20421 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
20422
20423         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/'`
20424
20425         # If that failed, try again with the new key
20426         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
20427
20428             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/'`
20429
20430         fi
20431
20432         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
20433             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
20434             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
20435 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
20436         else
20437             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
20438 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
20439             wxUSE_MACOSX_VERSION_MIN=
20440         fi
20441     else
20442         wxUSE_MACOSX_VERSION_MIN=
20443     fi
20444 fi
20445
20446 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
20447     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
20448     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
20449     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
20450     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
20451     retest_macosx_linking=yes
20452 fi
20453
20454 if test "x$retest_macosx_linking" = "xyes"; then
20455     ac_ext=c
20456 ac_cpp='$CPP $CPPFLAGS'
20457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20460
20461     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
20462 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
20463     cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h.  */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h.  */
20469
20470 int
20471 main ()
20472 {
20473
20474   ;
20475   return 0;
20476 }
20477 _ACEOF
20478 rm -f conftest.$ac_objext conftest$ac_exeext
20479 if { (ac_try="$ac_link"
20480 case "(($ac_try" in
20481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482   *) ac_try_echo=$ac_try;;
20483 esac
20484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485   (eval "$ac_link") 2>conftest.er1
20486   ac_status=$?
20487   grep -v '^ *+' conftest.er1 >conftest.err
20488   rm -f conftest.er1
20489   cat conftest.err >&5
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); } && {
20492          test -z "$ac_c_werror_flag" ||
20493          test ! -s conftest.err
20494        } && test -s conftest$ac_exeext &&
20495        $as_test_x conftest$ac_exeext; then
20496   { echo "$as_me:$LINENO: result: yes" >&5
20497 echo "${ECHO_T}yes" >&6; }
20498 else
20499   echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20501
20502         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
20503 See \`config.log' for more details." >&5
20504 echo "$as_me: error: no.  Try a different SDK
20505 See \`config.log' for more details." >&2;}
20506    { (exit 1); exit 1; }; }; exit 1
20507 fi
20508
20509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20510       conftest$ac_exeext conftest.$ac_ext
20511     ac_ext=c
20512 ac_cpp='$CPP $CPPFLAGS'
20513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20516
20517
20518     ac_ext=cpp
20519 ac_cpp='$CXXCPP $CPPFLAGS'
20520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20523
20524     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
20525 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
20526     cat >conftest.$ac_ext <<_ACEOF
20527 /* confdefs.h.  */
20528 _ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h.  */
20532
20533 int
20534 main ()
20535 {
20536
20537   ;
20538   return 0;
20539 }
20540 _ACEOF
20541 rm -f conftest.$ac_objext conftest$ac_exeext
20542 if { (ac_try="$ac_link"
20543 case "(($ac_try" in
20544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20545   *) ac_try_echo=$ac_try;;
20546 esac
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548   (eval "$ac_link") 2>conftest.er1
20549   ac_status=$?
20550   grep -v '^ *+' conftest.er1 >conftest.err
20551   rm -f conftest.er1
20552   cat conftest.err >&5
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); } && {
20555          test -z "$ac_cxx_werror_flag" ||
20556          test ! -s conftest.err
20557        } && test -s conftest$ac_exeext &&
20558        $as_test_x conftest$ac_exeext; then
20559   { echo "$as_me:$LINENO: result: yes" >&5
20560 echo "${ECHO_T}yes" >&6; }
20561 else
20562   echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20564
20565         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
20566 See \`config.log' for more details." >&5
20567 echo "$as_me: error: no.  Try a different SDK
20568 See \`config.log' for more details." >&2;}
20569    { (exit 1); exit 1; }; }; exit 1
20570 fi
20571
20572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20573       conftest$ac_exeext conftest.$ac_ext
20574     ac_ext=c
20575 ac_cpp='$CPP $CPPFLAGS'
20576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20579
20580 fi
20581
20582
20583 case "${host}" in
20584
20585                 *-*-darwin* )
20586         INSTALL_PROGRAM="cp -fp"
20587         INSTALL_DATA="cp -fp"
20588         ;;
20589     *)
20590         ;;
20591 esac
20592
20593
20594 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
20595     CXXFLAGS="-qunique $CXXFLAGS"
20596 fi
20597
20598 case "${host}" in
20599   powerpc-*-darwin* )
20600     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
20601 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
20602     cat >conftest.$ac_ext <<_ACEOF
20603 /* confdefs.h.  */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h.  */
20608
20609 int
20610 main ()
20611 {
20612 #ifndef __POWERPC__
20613         choke me for lack of PowerPC
20614 #endif
20615
20616   ;
20617   return 0;
20618 }
20619 _ACEOF
20620 rm -f conftest.$ac_objext
20621 if { (ac_try="$ac_compile"
20622 case "(($ac_try" in
20623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624   *) ac_try_echo=$ac_try;;
20625 esac
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627   (eval "$ac_compile") 2>conftest.er1
20628   ac_status=$?
20629   grep -v '^ *+' conftest.er1 >conftest.err
20630   rm -f conftest.er1
20631   cat conftest.err >&5
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); } && {
20634          test -z "$ac_c_werror_flag" ||
20635          test ! -s conftest.err
20636        } && test -s conftest.$ac_objext; then
20637   { echo "$as_me:$LINENO: result: yes" >&5
20638 echo "${ECHO_T}yes" >&6; }
20639 else
20640   echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20642
20643         { echo "$as_me:$LINENO: result: no" >&5
20644 echo "${ECHO_T}no" >&6; }
20645         cat >>confdefs.h <<\_ACEOF
20646 #define __POWERPC__ 1
20647 _ACEOF
20648
20649
20650 fi
20651
20652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20653   ;;
20654 esac
20655
20656 case "${host}" in
20657   *-*-darwin* )
20658     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
20659 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
20660     cat >conftest.$ac_ext <<_ACEOF
20661 /* confdefs.h.  */
20662 _ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h.  */
20666 #include <CoreFoundation/CFBase.h>
20667
20668 int
20669 main ()
20670 {
20671
20672   ;
20673   return 0;
20674 }
20675 _ACEOF
20676 rm -f conftest.$ac_objext
20677 if { (ac_try="$ac_compile"
20678 case "(($ac_try" in
20679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680   *) ac_try_echo=$ac_try;;
20681 esac
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683   (eval "$ac_compile") 2>conftest.er1
20684   ac_status=$?
20685   grep -v '^ *+' conftest.er1 >conftest.err
20686   rm -f conftest.er1
20687   cat conftest.err >&5
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); } && {
20690          test -z "$ac_c_werror_flag" ||
20691          test ! -s conftest.err
20692        } && test -s conftest.$ac_objext; then
20693   { echo "$as_me:$LINENO: result: yes" >&5
20694 echo "${ECHO_T}yes" >&6; }
20695 else
20696   echo "$as_me: failed program was:" >&5
20697 sed 's/^/| /' conftest.$ac_ext >&5
20698
20699         { echo "$as_me:$LINENO: result: no" >&5
20700 echo "${ECHO_T}no" >&6; }
20701         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
20702 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
20703         cat >conftest.$ac_ext <<_ACEOF
20704 /* confdefs.h.  */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h.  */
20709 #define __CF_USE_FRAMEWORK_INCLUDES__
20710 #include <CoreFoundation/CFBase.h>
20711
20712 int
20713 main ()
20714 {
20715
20716   ;
20717   return 0;
20718 }
20719 _ACEOF
20720 rm -f conftest.$ac_objext
20721 if { (ac_try="$ac_compile"
20722 case "(($ac_try" in
20723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724   *) ac_try_echo=$ac_try;;
20725 esac
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727   (eval "$ac_compile") 2>conftest.er1
20728   ac_status=$?
20729   grep -v '^ *+' conftest.er1 >conftest.err
20730   rm -f conftest.er1
20731   cat conftest.err >&5
20732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733   (exit $ac_status); } && {
20734          test -z "$ac_c_werror_flag" ||
20735          test ! -s conftest.err
20736        } && test -s conftest.$ac_objext; then
20737   { echo "$as_me:$LINENO: result: yes" >&5
20738 echo "${ECHO_T}yes" >&6; }
20739                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
20740 else
20741   echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20743
20744         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
20745 See \`config.log' for more details." >&5
20746 echo "$as_me: error: no.  CoreFoundation not available.
20747 See \`config.log' for more details." >&2;}
20748    { (exit 1); exit 1; }; }
20749
20750 fi
20751
20752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20753
20754
20755 fi
20756
20757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20758   ;;
20759 esac
20760
20761 wants_win32=0
20762 doesnt_want_win32=0
20763 case "${host}" in
20764   *-*-cygwin*)
20765       if test "$wxUSE_MSW" = 1 ; then
20766         wants_win32=1
20767       else
20768                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
20769 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
20770 if test "${wx_cv_nocygwin+set}" = set; then
20771   echo $ECHO_N "(cached) $ECHO_C" >&6
20772 else
20773
20774                 cat >conftest.$ac_ext <<_ACEOF
20775 /* confdefs.h.  */
20776 _ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h.  */
20780
20781 int
20782 main ()
20783 {
20784
20785                         #ifdef __MINGW32__
20786                             choke me
20787                         #endif
20788
20789   ;
20790   return 0;
20791 }
20792 _ACEOF
20793 rm -f conftest.$ac_objext
20794 if { (ac_try="$ac_compile"
20795 case "(($ac_try" in
20796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797   *) ac_try_echo=$ac_try;;
20798 esac
20799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800   (eval "$ac_compile") 2>conftest.er1
20801   ac_status=$?
20802   grep -v '^ *+' conftest.er1 >conftest.err
20803   rm -f conftest.er1
20804   cat conftest.err >&5
20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); } && {
20807          test -z "$ac_c_werror_flag" ||
20808          test ! -s conftest.err
20809        } && test -s conftest.$ac_objext; then
20810   wx_cv_nocygwin=no
20811 else
20812   echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20814
20815         wx_cv_nocygwin=yes
20816
20817 fi
20818
20819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20820
20821
20822 fi
20823 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
20824 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
20825
20826         if test "$wx_cv_nocygwin" = "yes"; then
20827             wants_win32=1
20828         else
20829             doesnt_want_win32=1
20830         fi
20831       fi
20832       if test "$wants_win32" = 1 ; then
20833         BAKEFILE_FORCE_PLATFORM=win32
20834       fi
20835   ;;
20836   *-*-mingw*)
20837       wants_win32=1
20838   ;;
20839 esac
20840
20841 if test "$wxUSE_WINE" = "yes"; then
20842     wants_win32=1
20843     LDFLAGS_GUI="-mwindows"
20844 fi
20845
20846 if test "$wants_win32" = 1 ; then
20847     USE_UNIX=0
20848     USE_WIN32=1
20849     cat >>confdefs.h <<\_ACEOF
20850 #define __WIN32__ 1
20851 _ACEOF
20852
20853     cat >>confdefs.h <<\_ACEOF
20854 #define __WIN95__ 1
20855 _ACEOF
20856
20857     cat >>confdefs.h <<\_ACEOF
20858 #define __WINDOWS__ 1
20859 _ACEOF
20860
20861     cat >>confdefs.h <<\_ACEOF
20862 #define __GNUWIN32__ 1
20863 _ACEOF
20864
20865     cat >>confdefs.h <<\_ACEOF
20866 #define STRICT 1
20867 _ACEOF
20868
20869 fi
20870 if test "$doesnt_want_win32" = 1 ; then
20871     USE_UNIX=1
20872     USE_WIN32=0
20873 fi
20874
20875 if test "$USE_UNIX" = 1 ; then
20876     wxUSE_UNIX=yes
20877     cat >>confdefs.h <<\_ACEOF
20878 #define __UNIX__ 1
20879 _ACEOF
20880
20881 fi
20882
20883 case "${host}" in
20884   *-pc-os2_emx | *-pc-os2-emx )
20885                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
20886                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
20887 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
20888 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
20889   echo $ECHO_N "(cached) $ECHO_C" >&6
20890 else
20891   ac_check_lib_save_LIBS=$LIBS
20892 LIBS="-lcExt  $LIBS"
20893 cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h.  */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h.  */
20899
20900 /* Override any GCC internal prototype to avoid an error.
20901    Use char because int might match the return type of a GCC
20902    builtin and then its argument prototype would still apply.  */
20903 #ifdef __cplusplus
20904 extern "C"
20905 #endif
20906 char drand48 ();
20907 int
20908 main ()
20909 {
20910 return drand48 ();
20911   ;
20912   return 0;
20913 }
20914 _ACEOF
20915 rm -f conftest.$ac_objext conftest$ac_exeext
20916 if { (ac_try="$ac_link"
20917 case "(($ac_try" in
20918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919   *) ac_try_echo=$ac_try;;
20920 esac
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922   (eval "$ac_link") 2>conftest.er1
20923   ac_status=$?
20924   grep -v '^ *+' conftest.er1 >conftest.err
20925   rm -f conftest.er1
20926   cat conftest.err >&5
20927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928   (exit $ac_status); } && {
20929          test -z "$ac_c_werror_flag" ||
20930          test ! -s conftest.err
20931        } && test -s conftest$ac_exeext &&
20932        $as_test_x conftest$ac_exeext; then
20933   ac_cv_lib_cExt_drand48=yes
20934 else
20935   echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20937
20938         ac_cv_lib_cExt_drand48=no
20939 fi
20940
20941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20942       conftest$ac_exeext conftest.$ac_ext
20943 LIBS=$ac_check_lib_save_LIBS
20944 fi
20945 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
20946 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
20947 if test $ac_cv_lib_cExt_drand48 = yes; then
20948   LIBS="$LIBS -lcExt"
20949 fi
20950
20951       else
20952                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
20953       fi
20954                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
20955 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
20956 if test "${wx_cv_gccversion+set}" = set; then
20957   echo $ECHO_N "(cached) $ECHO_C" >&6
20958 else
20959
20960           if test "$cross_compiling" = yes; then
20961                 wx_cv_gccversion="EMX2"
20962
20963 else
20964   cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h.  */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h.  */
20970
20971                   #include <stdio.h>
20972
20973                   int main()
20974                   {
20975                       FILE *f=fopen("conftestval", "w");
20976                       if (!f) exit(1);
20977                       fprintf(f,
20978                   #if (__GNUC__ < 3)
20979                               "EMX2"
20980                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
20981                               "EMX3"
20982                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
20983                               "Innotek5"
20984                   #else
20985                               "Innotek6"
20986                   #endif
20987                       );
20988                       exit(0);
20989                   }
20990
20991 _ACEOF
20992 rm -f conftest$ac_exeext
20993 if { (ac_try="$ac_link"
20994 case "(($ac_try" in
20995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996   *) ac_try_echo=$ac_try;;
20997 esac
20998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20999   (eval "$ac_link") 2>&5
21000   ac_status=$?
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21003   { (case "(($ac_try" in
21004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005   *) ac_try_echo=$ac_try;;
21006 esac
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008   (eval "$ac_try") 2>&5
21009   ac_status=$?
21010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011   (exit $ac_status); }; }; then
21012   wx_cv_gccversion=`cat conftestval`
21013 else
21014   echo "$as_me: program exited with status $ac_status" >&5
21015 echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21017
21018 ( exit $ac_status )
21019 wx_cv_gccversion="EMX2"
21020 fi
21021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21022 fi
21023
21024
21025
21026 fi
21027 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
21028 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
21029       if test "$wx_cv_gccversion" = "EMX2"; then
21030           LIBS="$LIBS -lstdcpp"
21031           LDFLAGS="$LDFLAGS -Zsysv-signals"
21032       else
21033           if test "$wx_cv_gccversion" = "EMX3"; then
21034               LIBS="$LIBS -lstdcxx -lgcc"
21035               LDFLAGS="$LDFLAGS -Zsysv-signals"
21036           else
21037               LIBS="$LIBS -lstdc++"
21038           fi
21039       fi
21040       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
21041         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
21042 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
21043         wxUSE_OMF=yes
21044         enable_omf=yes
21045       fi
21046         ;;
21047   *)
21048
21049       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
21050 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
21051 if test "${ac_cv_string_strcasecmp+set}" = set; then
21052   echo $ECHO_N "(cached) $ECHO_C" >&6
21053 else
21054
21055           cat >conftest.$ac_ext <<_ACEOF
21056 /* confdefs.h.  */
21057 _ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h.  */
21061
21062               #include <string.h>
21063
21064 int
21065 main ()
21066 {
21067
21068                   strcasecmp("foo", "bar");
21069
21070   ;
21071   return 0;
21072 }
21073 _ACEOF
21074 rm -f conftest.$ac_objext conftest$ac_exeext
21075 if { (ac_try="$ac_link"
21076 case "(($ac_try" in
21077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078   *) ac_try_echo=$ac_try;;
21079 esac
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081   (eval "$ac_link") 2>conftest.er1
21082   ac_status=$?
21083   grep -v '^ *+' conftest.er1 >conftest.err
21084   rm -f conftest.er1
21085   cat conftest.err >&5
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); } && {
21088          test -z "$ac_c_werror_flag" ||
21089          test ! -s conftest.err
21090        } && test -s conftest$ac_exeext &&
21091        $as_test_x conftest$ac_exeext; then
21092   ac_cv_string_strcasecmp=yes
21093 else
21094   echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21096
21097         ac_cv_string_strcasecmp=no
21098
21099 fi
21100
21101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21102       conftest$ac_exeext conftest.$ac_ext
21103
21104 fi
21105 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
21106 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
21107
21108       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
21109           cat >>confdefs.h <<\_ACEOF
21110 #define HAVE_STRCASECMP_IN_STRING_H 1
21111 _ACEOF
21112
21113       else
21114           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
21115 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
21116 if test "${ac_cv_strings_strcasecmp+set}" = set; then
21117   echo $ECHO_N "(cached) $ECHO_C" >&6
21118 else
21119
21120               cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h.  */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h.  */
21126
21127                   #include <strings.h>
21128
21129 int
21130 main ()
21131 {
21132
21133                       strcasecmp("foo", "bar");
21134
21135   ;
21136   return 0;
21137 }
21138 _ACEOF
21139 rm -f conftest.$ac_objext conftest$ac_exeext
21140 if { (ac_try="$ac_link"
21141 case "(($ac_try" in
21142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143   *) ac_try_echo=$ac_try;;
21144 esac
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146   (eval "$ac_link") 2>conftest.er1
21147   ac_status=$?
21148   grep -v '^ *+' conftest.er1 >conftest.err
21149   rm -f conftest.er1
21150   cat conftest.err >&5
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); } && {
21153          test -z "$ac_c_werror_flag" ||
21154          test ! -s conftest.err
21155        } && test -s conftest$ac_exeext &&
21156        $as_test_x conftest$ac_exeext; then
21157   ac_cv_strings_strcasecmp=yes
21158 else
21159   echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21161
21162         ac_cv_strings_strcasecmp=no
21163
21164 fi
21165
21166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21167       conftest$ac_exeext conftest.$ac_ext
21168
21169 fi
21170 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
21171 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
21172
21173           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
21174               cat >>confdefs.h <<\_ACEOF
21175 #define HAVE_STRCASECMP_IN_STRINGS_H 1
21176 _ACEOF
21177
21178           else
21179               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
21180 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
21181    { (exit 1); exit 1; }; }
21182           fi
21183       fi
21184
21185         ;;
21186 esac
21187
21188
21189 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21190 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21191 if test "${ac_cv_header_stdc+set}" = set; then
21192   echo $ECHO_N "(cached) $ECHO_C" >&6
21193 else
21194   cat >conftest.$ac_ext <<_ACEOF
21195 /* confdefs.h.  */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h.  */
21200 #include <stdlib.h>
21201 #include <stdarg.h>
21202 #include <string.h>
21203 #include <float.h>
21204
21205 int
21206 main ()
21207 {
21208
21209   ;
21210   return 0;
21211 }
21212 _ACEOF
21213 rm -f conftest.$ac_objext
21214 if { (ac_try="$ac_compile"
21215 case "(($ac_try" in
21216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217   *) ac_try_echo=$ac_try;;
21218 esac
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220   (eval "$ac_compile") 2>conftest.er1
21221   ac_status=$?
21222   grep -v '^ *+' conftest.er1 >conftest.err
21223   rm -f conftest.er1
21224   cat conftest.err >&5
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); } && {
21227          test -z "$ac_c_werror_flag" ||
21228          test ! -s conftest.err
21229        } && test -s conftest.$ac_objext; then
21230   ac_cv_header_stdc=yes
21231 else
21232   echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21234
21235         ac_cv_header_stdc=no
21236 fi
21237
21238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21239
21240 if test $ac_cv_header_stdc = yes; then
21241   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21242   cat >conftest.$ac_ext <<_ACEOF
21243 /* confdefs.h.  */
21244 _ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h.  */
21248 #include <string.h>
21249
21250 _ACEOF
21251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21252   $EGREP "memchr" >/dev/null 2>&1; then
21253   :
21254 else
21255   ac_cv_header_stdc=no
21256 fi
21257 rm -f conftest*
21258
21259 fi
21260
21261 if test $ac_cv_header_stdc = yes; then
21262   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21263   cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h.  */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h.  */
21269 #include <stdlib.h>
21270
21271 _ACEOF
21272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21273   $EGREP "free" >/dev/null 2>&1; then
21274   :
21275 else
21276   ac_cv_header_stdc=no
21277 fi
21278 rm -f conftest*
21279
21280 fi
21281
21282 if test $ac_cv_header_stdc = yes; then
21283   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21284   if test "$cross_compiling" = yes; then
21285   :
21286 else
21287   cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h.  */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h.  */
21293 #include <ctype.h>
21294 #include <stdlib.h>
21295 #if ((' ' & 0x0FF) == 0x020)
21296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21298 #else
21299 # define ISLOWER(c) \
21300                    (('a' <= (c) && (c) <= 'i') \
21301                      || ('j' <= (c) && (c) <= 'r') \
21302                      || ('s' <= (c) && (c) <= 'z'))
21303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21304 #endif
21305
21306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21307 int
21308 main ()
21309 {
21310   int i;
21311   for (i = 0; i < 256; i++)
21312     if (XOR (islower (i), ISLOWER (i))
21313         || toupper (i) != TOUPPER (i))
21314       return 2;
21315   return 0;
21316 }
21317 _ACEOF
21318 rm -f conftest$ac_exeext
21319 if { (ac_try="$ac_link"
21320 case "(($ac_try" in
21321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21322   *) ac_try_echo=$ac_try;;
21323 esac
21324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21325   (eval "$ac_link") 2>&5
21326   ac_status=$?
21327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21329   { (case "(($ac_try" in
21330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331   *) ac_try_echo=$ac_try;;
21332 esac
21333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334   (eval "$ac_try") 2>&5
21335   ac_status=$?
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); }; }; then
21338   :
21339 else
21340   echo "$as_me: program exited with status $ac_status" >&5
21341 echo "$as_me: failed program was:" >&5
21342 sed 's/^/| /' conftest.$ac_ext >&5
21343
21344 ( exit $ac_status )
21345 ac_cv_header_stdc=no
21346 fi
21347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21348 fi
21349
21350
21351 fi
21352 fi
21353 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21354 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21355 if test $ac_cv_header_stdc = yes; then
21356
21357 cat >>confdefs.h <<\_ACEOF
21358 #define STDC_HEADERS 1
21359 _ACEOF
21360
21361 fi
21362
21363 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
21374                   inttypes.h stdint.h unistd.h
21375 do
21376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21380   echo $ECHO_N "(cached) $ECHO_C" >&6
21381 else
21382   cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388 $ac_includes_default
21389
21390 #include <$ac_header>
21391 _ACEOF
21392 rm -f conftest.$ac_objext
21393 if { (ac_try="$ac_compile"
21394 case "(($ac_try" in
21395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396   *) ac_try_echo=$ac_try;;
21397 esac
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399   (eval "$ac_compile") 2>conftest.er1
21400   ac_status=$?
21401   grep -v '^ *+' conftest.er1 >conftest.err
21402   rm -f conftest.er1
21403   cat conftest.err >&5
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); } && {
21406          test -z "$ac_c_werror_flag" ||
21407          test ! -s conftest.err
21408        } && test -s conftest.$ac_objext; then
21409   eval "$as_ac_Header=yes"
21410 else
21411   echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21413
21414         eval "$as_ac_Header=no"
21415 fi
21416
21417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21418 fi
21419 ac_res=`eval echo '${'$as_ac_Header'}'`
21420                { echo "$as_me:$LINENO: result: $ac_res" >&5
21421 echo "${ECHO_T}$ac_res" >&6; }
21422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21423   cat >>confdefs.h <<_ACEOF
21424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21425 _ACEOF
21426
21427 fi
21428
21429 done
21430
21431
21432
21433
21434 for ac_header in langinfo.h wchar.h
21435 do
21436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21440   echo $ECHO_N "(cached) $ECHO_C" >&6
21441 else
21442   cat >conftest.$ac_ext <<_ACEOF
21443 /* confdefs.h.  */
21444 _ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h.  */
21448 $ac_includes_default
21449
21450 #include <$ac_header>
21451 _ACEOF
21452 rm -f conftest.$ac_objext
21453 if { (ac_try="$ac_compile"
21454 case "(($ac_try" in
21455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456   *) ac_try_echo=$ac_try;;
21457 esac
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459   (eval "$ac_compile") 2>conftest.er1
21460   ac_status=$?
21461   grep -v '^ *+' conftest.er1 >conftest.err
21462   rm -f conftest.er1
21463   cat conftest.err >&5
21464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465   (exit $ac_status); } && {
21466          test -z "$ac_c_werror_flag" ||
21467          test ! -s conftest.err
21468        } && test -s conftest.$ac_objext; then
21469   eval "$as_ac_Header=yes"
21470 else
21471   echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21473
21474         eval "$as_ac_Header=no"
21475 fi
21476
21477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21478 fi
21479 ac_res=`eval echo '${'$as_ac_Header'}'`
21480                { echo "$as_me:$LINENO: result: $ac_res" >&5
21481 echo "${ECHO_T}$ac_res" >&6; }
21482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21483   cat >>confdefs.h <<_ACEOF
21484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21485 _ACEOF
21486
21487 fi
21488
21489 done
21490
21491
21492 if test "$ac_cv_header_wchar_h" != "yes"; then
21493
21494 for ac_header in wcstr.h
21495 do
21496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21500   echo $ECHO_N "(cached) $ECHO_C" >&6
21501 else
21502   cat >conftest.$ac_ext <<_ACEOF
21503 /* confdefs.h.  */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h.  */
21508 $ac_includes_default
21509
21510 #include <$ac_header>
21511 _ACEOF
21512 rm -f conftest.$ac_objext
21513 if { (ac_try="$ac_compile"
21514 case "(($ac_try" in
21515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516   *) ac_try_echo=$ac_try;;
21517 esac
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519   (eval "$ac_compile") 2>conftest.er1
21520   ac_status=$?
21521   grep -v '^ *+' conftest.er1 >conftest.err
21522   rm -f conftest.er1
21523   cat conftest.err >&5
21524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525   (exit $ac_status); } && {
21526          test -z "$ac_c_werror_flag" ||
21527          test ! -s conftest.err
21528        } && test -s conftest.$ac_objext; then
21529   eval "$as_ac_Header=yes"
21530 else
21531   echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21533
21534         eval "$as_ac_Header=no"
21535 fi
21536
21537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21538 fi
21539 ac_res=`eval echo '${'$as_ac_Header'}'`
21540                { echo "$as_me:$LINENO: result: $ac_res" >&5
21541 echo "${ECHO_T}$ac_res" >&6; }
21542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21543   cat >>confdefs.h <<_ACEOF
21544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21545 _ACEOF
21546
21547 fi
21548
21549 done
21550
21551 fi
21552
21553 case "${host}" in
21554   *-pc-os2_emx | *-pc-os2-emx )
21555                   if test $ac_cv_header_langinfo_h = "yes" \
21556                 -a \(   "$wx_cv_gccversion" = "EMX2" \
21557                      -o "$wx_cv_gccversion" = "EMX3" \
21558                      -o "$wx_cv_gccversion" = "Innotek5" \); then
21559           LIBS="$LIBS -lintl"
21560       fi
21561   ;;
21562 esac
21563
21564 if test "$USE_UNIX" = 1 ; then
21565
21566 for ac_header in sys/select.h
21567 do
21568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21572   echo $ECHO_N "(cached) $ECHO_C" >&6
21573 else
21574   cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h.  */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h.  */
21580 $ac_includes_default
21581
21582 #include <$ac_header>
21583 _ACEOF
21584 rm -f conftest.$ac_objext
21585 if { (ac_try="$ac_compile"
21586 case "(($ac_try" in
21587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588   *) ac_try_echo=$ac_try;;
21589 esac
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591   (eval "$ac_compile") 2>conftest.er1
21592   ac_status=$?
21593   grep -v '^ *+' conftest.er1 >conftest.err
21594   rm -f conftest.er1
21595   cat conftest.err >&5
21596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597   (exit $ac_status); } && {
21598          test -z "$ac_c_werror_flag" ||
21599          test ! -s conftest.err
21600        } && test -s conftest.$ac_objext; then
21601   eval "$as_ac_Header=yes"
21602 else
21603   echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21605
21606         eval "$as_ac_Header=no"
21607 fi
21608
21609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21610 fi
21611 ac_res=`eval echo '${'$as_ac_Header'}'`
21612                { echo "$as_me:$LINENO: result: $ac_res" >&5
21613 echo "${ECHO_T}$ac_res" >&6; }
21614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21615   cat >>confdefs.h <<_ACEOF
21616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21617 _ACEOF
21618
21619 fi
21620
21621 done
21622
21623 fi
21624
21625
21626 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21627 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21628 if test "${ac_cv_c_const+set}" = set; then
21629   echo $ECHO_N "(cached) $ECHO_C" >&6
21630 else
21631   cat >conftest.$ac_ext <<_ACEOF
21632 /* confdefs.h.  */
21633 _ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h.  */
21637
21638 int
21639 main ()
21640 {
21641 /* FIXME: Include the comments suggested by Paul. */
21642 #ifndef __cplusplus
21643   /* Ultrix mips cc rejects this.  */
21644   typedef int charset[2];
21645   const charset cs;
21646   /* SunOS 4.1.1 cc rejects this.  */
21647   char const *const *pcpcc;
21648   char **ppc;
21649   /* NEC SVR4.0.2 mips cc rejects this.  */
21650   struct point {int x, y;};
21651   static struct point const zero = {0,0};
21652   /* AIX XL C 1.02.0.0 rejects this.
21653      It does not let you subtract one const X* pointer from another in
21654      an arm of an if-expression whose if-part is not a constant
21655      expression */
21656   const char *g = "string";
21657   pcpcc = &g + (g ? g-g : 0);
21658   /* HPUX 7.0 cc rejects these. */
21659   ++pcpcc;
21660   ppc = (char**) pcpcc;
21661   pcpcc = (char const *const *) ppc;
21662   { /* SCO 3.2v4 cc rejects this.  */
21663     char *t;
21664     char const *s = 0 ? (char *) 0 : (char const *) 0;
21665
21666     *t++ = 0;
21667     if (s) return 0;
21668   }
21669   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21670     int x[] = {25, 17};
21671     const int *foo = &x[0];
21672     ++foo;
21673   }
21674   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21675     typedef const int *iptr;
21676     iptr p = 0;
21677     ++p;
21678   }
21679   { /* AIX XL C 1.02.0.0 rejects this saying
21680        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21681     struct s { int j; const int *ap[3]; };
21682     struct s *b; b->j = 5;
21683   }
21684   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21685     const int foo = 10;
21686     if (!foo) return 0;
21687   }
21688   return !cs[0] && !zero.x;
21689 #endif
21690
21691   ;
21692   return 0;
21693 }
21694 _ACEOF
21695 rm -f conftest.$ac_objext
21696 if { (ac_try="$ac_compile"
21697 case "(($ac_try" in
21698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699   *) ac_try_echo=$ac_try;;
21700 esac
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702   (eval "$ac_compile") 2>conftest.er1
21703   ac_status=$?
21704   grep -v '^ *+' conftest.er1 >conftest.err
21705   rm -f conftest.er1
21706   cat conftest.err >&5
21707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708   (exit $ac_status); } && {
21709          test -z "$ac_c_werror_flag" ||
21710          test ! -s conftest.err
21711        } && test -s conftest.$ac_objext; then
21712   ac_cv_c_const=yes
21713 else
21714   echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21716
21717         ac_cv_c_const=no
21718 fi
21719
21720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21721 fi
21722 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21723 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21724 if test $ac_cv_c_const = no; then
21725
21726 cat >>confdefs.h <<\_ACEOF
21727 #define const
21728 _ACEOF
21729
21730 fi
21731
21732 { echo "$as_me:$LINENO: checking for inline" >&5
21733 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21734 if test "${ac_cv_c_inline+set}" = set; then
21735   echo $ECHO_N "(cached) $ECHO_C" >&6
21736 else
21737   ac_cv_c_inline=no
21738 for ac_kw in inline __inline__ __inline; do
21739   cat >conftest.$ac_ext <<_ACEOF
21740 /* confdefs.h.  */
21741 _ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h.  */
21745 #ifndef __cplusplus
21746 typedef int foo_t;
21747 static $ac_kw foo_t static_foo () {return 0; }
21748 $ac_kw foo_t foo () {return 0; }
21749 #endif
21750
21751 _ACEOF
21752 rm -f conftest.$ac_objext
21753 if { (ac_try="$ac_compile"
21754 case "(($ac_try" in
21755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756   *) ac_try_echo=$ac_try;;
21757 esac
21758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21759   (eval "$ac_compile") 2>conftest.er1
21760   ac_status=$?
21761   grep -v '^ *+' conftest.er1 >conftest.err
21762   rm -f conftest.er1
21763   cat conftest.err >&5
21764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765   (exit $ac_status); } && {
21766          test -z "$ac_c_werror_flag" ||
21767          test ! -s conftest.err
21768        } && test -s conftest.$ac_objext; then
21769   ac_cv_c_inline=$ac_kw
21770 else
21771   echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21773
21774
21775 fi
21776
21777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21778   test "$ac_cv_c_inline" != no && break
21779 done
21780
21781 fi
21782 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21783 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21784
21785
21786 case $ac_cv_c_inline in
21787   inline | yes) ;;
21788   *)
21789     case $ac_cv_c_inline in
21790       no) ac_val=;;
21791       *) ac_val=$ac_cv_c_inline;;
21792     esac
21793     cat >>confdefs.h <<_ACEOF
21794 #ifndef __cplusplus
21795 #define inline $ac_val
21796 #endif
21797 _ACEOF
21798     ;;
21799 esac
21800
21801
21802 { echo "$as_me:$LINENO: checking for short" >&5
21803 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21804 if test "${ac_cv_type_short+set}" = set; then
21805   echo $ECHO_N "(cached) $ECHO_C" >&6
21806 else
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 typedef short ac__type_new_;
21815 int
21816 main ()
21817 {
21818 if ((ac__type_new_ *) 0)
21819   return 0;
21820 if (sizeof (ac__type_new_))
21821   return 0;
21822   ;
21823   return 0;
21824 }
21825 _ACEOF
21826 rm -f conftest.$ac_objext
21827 if { (ac_try="$ac_compile"
21828 case "(($ac_try" in
21829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830   *) ac_try_echo=$ac_try;;
21831 esac
21832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833   (eval "$ac_compile") 2>conftest.er1
21834   ac_status=$?
21835   grep -v '^ *+' conftest.er1 >conftest.err
21836   rm -f conftest.er1
21837   cat conftest.err >&5
21838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839   (exit $ac_status); } && {
21840          test -z "$ac_c_werror_flag" ||
21841          test ! -s conftest.err
21842        } && test -s conftest.$ac_objext; then
21843   ac_cv_type_short=yes
21844 else
21845   echo "$as_me: failed program was:" >&5
21846 sed 's/^/| /' conftest.$ac_ext >&5
21847
21848         ac_cv_type_short=no
21849 fi
21850
21851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21852 fi
21853 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21854 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21855
21856 # The cast to long int works around a bug in the HP C Compiler
21857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21859 # This bug is HP SR number 8606223364.
21860 { echo "$as_me:$LINENO: checking size of short" >&5
21861 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21862 if test "${ac_cv_sizeof_short+set}" = set; then
21863   echo $ECHO_N "(cached) $ECHO_C" >&6
21864 else
21865   if test "$cross_compiling" = yes; then
21866   # Depending upon the size, compute the lo and hi bounds.
21867 cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h.  */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h.  */
21873 $ac_includes_default
21874    typedef short ac__type_sizeof_;
21875 int
21876 main ()
21877 {
21878 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21879 test_array [0] = 0
21880
21881   ;
21882   return 0;
21883 }
21884 _ACEOF
21885 rm -f conftest.$ac_objext
21886 if { (ac_try="$ac_compile"
21887 case "(($ac_try" in
21888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21889   *) ac_try_echo=$ac_try;;
21890 esac
21891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21892   (eval "$ac_compile") 2>conftest.er1
21893   ac_status=$?
21894   grep -v '^ *+' conftest.er1 >conftest.err
21895   rm -f conftest.er1
21896   cat conftest.err >&5
21897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898   (exit $ac_status); } && {
21899          test -z "$ac_c_werror_flag" ||
21900          test ! -s conftest.err
21901        } && test -s conftest.$ac_objext; then
21902   ac_lo=0 ac_mid=0
21903   while :; do
21904     cat >conftest.$ac_ext <<_ACEOF
21905 /* confdefs.h.  */
21906 _ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h.  */
21910 $ac_includes_default
21911    typedef short ac__type_sizeof_;
21912 int
21913 main ()
21914 {
21915 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21916 test_array [0] = 0
21917
21918   ;
21919   return 0;
21920 }
21921 _ACEOF
21922 rm -f conftest.$ac_objext
21923 if { (ac_try="$ac_compile"
21924 case "(($ac_try" in
21925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926   *) ac_try_echo=$ac_try;;
21927 esac
21928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21929   (eval "$ac_compile") 2>conftest.er1
21930   ac_status=$?
21931   grep -v '^ *+' conftest.er1 >conftest.err
21932   rm -f conftest.er1
21933   cat conftest.err >&5
21934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935   (exit $ac_status); } && {
21936          test -z "$ac_c_werror_flag" ||
21937          test ! -s conftest.err
21938        } && test -s conftest.$ac_objext; then
21939   ac_hi=$ac_mid; break
21940 else
21941   echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21943
21944         ac_lo=`expr $ac_mid + 1`
21945                         if test $ac_lo -le $ac_mid; then
21946                           ac_lo= ac_hi=
21947                           break
21948                         fi
21949                         ac_mid=`expr 2 '*' $ac_mid + 1`
21950 fi
21951
21952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21953   done
21954 else
21955   echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21957
21958         cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h.  */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h.  */
21964 $ac_includes_default
21965    typedef short ac__type_sizeof_;
21966 int
21967 main ()
21968 {
21969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21970 test_array [0] = 0
21971
21972   ;
21973   return 0;
21974 }
21975 _ACEOF
21976 rm -f conftest.$ac_objext
21977 if { (ac_try="$ac_compile"
21978 case "(($ac_try" in
21979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980   *) ac_try_echo=$ac_try;;
21981 esac
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983   (eval "$ac_compile") 2>conftest.er1
21984   ac_status=$?
21985   grep -v '^ *+' conftest.er1 >conftest.err
21986   rm -f conftest.er1
21987   cat conftest.err >&5
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); } && {
21990          test -z "$ac_c_werror_flag" ||
21991          test ! -s conftest.err
21992        } && test -s conftest.$ac_objext; then
21993   ac_hi=-1 ac_mid=-1
21994   while :; do
21995     cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h.  */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h.  */
22001 $ac_includes_default
22002    typedef short ac__type_sizeof_;
22003 int
22004 main ()
22005 {
22006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22007 test_array [0] = 0
22008
22009   ;
22010   return 0;
22011 }
22012 _ACEOF
22013 rm -f conftest.$ac_objext
22014 if { (ac_try="$ac_compile"
22015 case "(($ac_try" in
22016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017   *) ac_try_echo=$ac_try;;
22018 esac
22019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020   (eval "$ac_compile") 2>conftest.er1
22021   ac_status=$?
22022   grep -v '^ *+' conftest.er1 >conftest.err
22023   rm -f conftest.er1
22024   cat conftest.err >&5
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); } && {
22027          test -z "$ac_c_werror_flag" ||
22028          test ! -s conftest.err
22029        } && test -s conftest.$ac_objext; then
22030   ac_lo=$ac_mid; break
22031 else
22032   echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22034
22035         ac_hi=`expr '(' $ac_mid ')' - 1`
22036                         if test $ac_mid -le $ac_hi; then
22037                           ac_lo= ac_hi=
22038                           break
22039                         fi
22040                         ac_mid=`expr 2 '*' $ac_mid`
22041 fi
22042
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22044   done
22045 else
22046   echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22048
22049         ac_lo= ac_hi=
22050 fi
22051
22052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22053 fi
22054
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056 # Binary search between lo and hi bounds.
22057 while test "x$ac_lo" != "x$ac_hi"; do
22058   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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    typedef short ac__type_sizeof_;
22067 int
22068 main ()
22069 {
22070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22071 test_array [0] = 0
22072
22073   ;
22074   return 0;
22075 }
22076 _ACEOF
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081   *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084   (eval "$ac_compile") 2>conftest.er1
22085   ac_status=$?
22086   grep -v '^ *+' conftest.er1 >conftest.err
22087   rm -f conftest.er1
22088   cat conftest.err >&5
22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); } && {
22091          test -z "$ac_c_werror_flag" ||
22092          test ! -s conftest.err
22093        } && test -s conftest.$ac_objext; then
22094   ac_hi=$ac_mid
22095 else
22096   echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22098
22099         ac_lo=`expr '(' $ac_mid ')' + 1`
22100 fi
22101
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 done
22104 case $ac_lo in
22105 ?*) ac_cv_sizeof_short=$ac_lo;;
22106 '') if test "$ac_cv_type_short" = yes; then
22107      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22108 See \`config.log' for more details." >&5
22109 echo "$as_me: error: cannot compute sizeof (short)
22110 See \`config.log' for more details." >&2;}
22111    { (exit 77); exit 77; }; }
22112    else
22113      ac_cv_sizeof_short=0
22114    fi ;;
22115 esac
22116 else
22117   cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h.  */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h.  */
22123 $ac_includes_default
22124    typedef short ac__type_sizeof_;
22125 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22126 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22127 #include <stdio.h>
22128 #include <stdlib.h>
22129 int
22130 main ()
22131 {
22132
22133   FILE *f = fopen ("conftest.val", "w");
22134   if (! f)
22135     return 1;
22136   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22137     {
22138       long int i = longval ();
22139       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22140         return 1;
22141       fprintf (f, "%ld\n", i);
22142     }
22143   else
22144     {
22145       unsigned long int i = ulongval ();
22146       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22147         return 1;
22148       fprintf (f, "%lu\n", i);
22149     }
22150   return ferror (f) || fclose (f) != 0;
22151
22152   ;
22153   return 0;
22154 }
22155 _ACEOF
22156 rm -f conftest$ac_exeext
22157 if { (ac_try="$ac_link"
22158 case "(($ac_try" in
22159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160   *) ac_try_echo=$ac_try;;
22161 esac
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163   (eval "$ac_link") 2>&5
22164   ac_status=$?
22165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22167   { (case "(($ac_try" in
22168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169   *) ac_try_echo=$ac_try;;
22170 esac
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172   (eval "$ac_try") 2>&5
22173   ac_status=$?
22174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175   (exit $ac_status); }; }; then
22176   ac_cv_sizeof_short=`cat conftest.val`
22177 else
22178   echo "$as_me: program exited with status $ac_status" >&5
22179 echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22181
22182 ( exit $ac_status )
22183 if test "$ac_cv_type_short" = yes; then
22184      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22185 See \`config.log' for more details." >&5
22186 echo "$as_me: error: cannot compute sizeof (short)
22187 See \`config.log' for more details." >&2;}
22188    { (exit 77); exit 77; }; }
22189    else
22190      ac_cv_sizeof_short=0
22191    fi
22192 fi
22193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22194 fi
22195 rm -f conftest.val
22196 fi
22197 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22198 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
22199
22200
22201
22202 cat >>confdefs.h <<_ACEOF
22203 #define SIZEOF_SHORT $ac_cv_sizeof_short
22204 _ACEOF
22205
22206
22207 { echo "$as_me:$LINENO: checking for void *" >&5
22208 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
22209 if test "${ac_cv_type_void_p+set}" = set; then
22210   echo $ECHO_N "(cached) $ECHO_C" >&6
22211 else
22212   cat >conftest.$ac_ext <<_ACEOF
22213 /* confdefs.h.  */
22214 _ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h.  */
22218 $ac_includes_default
22219 typedef void * ac__type_new_;
22220 int
22221 main ()
22222 {
22223 if ((ac__type_new_ *) 0)
22224   return 0;
22225 if (sizeof (ac__type_new_))
22226   return 0;
22227   ;
22228   return 0;
22229 }
22230 _ACEOF
22231 rm -f conftest.$ac_objext
22232 if { (ac_try="$ac_compile"
22233 case "(($ac_try" in
22234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22235   *) ac_try_echo=$ac_try;;
22236 esac
22237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22238   (eval "$ac_compile") 2>conftest.er1
22239   ac_status=$?
22240   grep -v '^ *+' conftest.er1 >conftest.err
22241   rm -f conftest.er1
22242   cat conftest.err >&5
22243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); } && {
22245          test -z "$ac_c_werror_flag" ||
22246          test ! -s conftest.err
22247        } && test -s conftest.$ac_objext; then
22248   ac_cv_type_void_p=yes
22249 else
22250   echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22252
22253         ac_cv_type_void_p=no
22254 fi
22255
22256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22257 fi
22258 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22259 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22260
22261 # The cast to long int works around a bug in the HP C Compiler
22262 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22263 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22264 # This bug is HP SR number 8606223364.
22265 { echo "$as_me:$LINENO: checking size of void *" >&5
22266 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22267 if test "${ac_cv_sizeof_void_p+set}" = set; then
22268   echo $ECHO_N "(cached) $ECHO_C" >&6
22269 else
22270   if test "$cross_compiling" = yes; then
22271   # Depending upon the size, compute the lo and hi bounds.
22272 cat >conftest.$ac_ext <<_ACEOF
22273 /* confdefs.h.  */
22274 _ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h.  */
22278 $ac_includes_default
22279    typedef void * ac__type_sizeof_;
22280 int
22281 main ()
22282 {
22283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22284 test_array [0] = 0
22285
22286   ;
22287   return 0;
22288 }
22289 _ACEOF
22290 rm -f conftest.$ac_objext
22291 if { (ac_try="$ac_compile"
22292 case "(($ac_try" in
22293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294   *) ac_try_echo=$ac_try;;
22295 esac
22296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22297   (eval "$ac_compile") 2>conftest.er1
22298   ac_status=$?
22299   grep -v '^ *+' conftest.er1 >conftest.err
22300   rm -f conftest.er1
22301   cat conftest.err >&5
22302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); } && {
22304          test -z "$ac_c_werror_flag" ||
22305          test ! -s conftest.err
22306        } && test -s conftest.$ac_objext; then
22307   ac_lo=0 ac_mid=0
22308   while :; do
22309     cat >conftest.$ac_ext <<_ACEOF
22310 /* confdefs.h.  */
22311 _ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h.  */
22315 $ac_includes_default
22316    typedef void * ac__type_sizeof_;
22317 int
22318 main ()
22319 {
22320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22321 test_array [0] = 0
22322
22323   ;
22324   return 0;
22325 }
22326 _ACEOF
22327 rm -f conftest.$ac_objext
22328 if { (ac_try="$ac_compile"
22329 case "(($ac_try" in
22330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22331   *) ac_try_echo=$ac_try;;
22332 esac
22333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22334   (eval "$ac_compile") 2>conftest.er1
22335   ac_status=$?
22336   grep -v '^ *+' conftest.er1 >conftest.err
22337   rm -f conftest.er1
22338   cat conftest.err >&5
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); } && {
22341          test -z "$ac_c_werror_flag" ||
22342          test ! -s conftest.err
22343        } && test -s conftest.$ac_objext; then
22344   ac_hi=$ac_mid; break
22345 else
22346   echo "$as_me: failed program was:" >&5
22347 sed 's/^/| /' conftest.$ac_ext >&5
22348
22349         ac_lo=`expr $ac_mid + 1`
22350                         if test $ac_lo -le $ac_mid; then
22351                           ac_lo= ac_hi=
22352                           break
22353                         fi
22354                         ac_mid=`expr 2 '*' $ac_mid + 1`
22355 fi
22356
22357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22358   done
22359 else
22360   echo "$as_me: failed program was:" >&5
22361 sed 's/^/| /' conftest.$ac_ext >&5
22362
22363         cat >conftest.$ac_ext <<_ACEOF
22364 /* confdefs.h.  */
22365 _ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h.  */
22369 $ac_includes_default
22370    typedef void * ac__type_sizeof_;
22371 int
22372 main ()
22373 {
22374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22375 test_array [0] = 0
22376
22377   ;
22378   return 0;
22379 }
22380 _ACEOF
22381 rm -f conftest.$ac_objext
22382 if { (ac_try="$ac_compile"
22383 case "(($ac_try" in
22384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385   *) ac_try_echo=$ac_try;;
22386 esac
22387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388   (eval "$ac_compile") 2>conftest.er1
22389   ac_status=$?
22390   grep -v '^ *+' conftest.er1 >conftest.err
22391   rm -f conftest.er1
22392   cat conftest.err >&5
22393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394   (exit $ac_status); } && {
22395          test -z "$ac_c_werror_flag" ||
22396          test ! -s conftest.err
22397        } && test -s conftest.$ac_objext; then
22398   ac_hi=-1 ac_mid=-1
22399   while :; do
22400     cat >conftest.$ac_ext <<_ACEOF
22401 /* confdefs.h.  */
22402 _ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h.  */
22406 $ac_includes_default
22407    typedef void * ac__type_sizeof_;
22408 int
22409 main ()
22410 {
22411 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22412 test_array [0] = 0
22413
22414   ;
22415   return 0;
22416 }
22417 _ACEOF
22418 rm -f conftest.$ac_objext
22419 if { (ac_try="$ac_compile"
22420 case "(($ac_try" in
22421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22422   *) ac_try_echo=$ac_try;;
22423 esac
22424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22425   (eval "$ac_compile") 2>conftest.er1
22426   ac_status=$?
22427   grep -v '^ *+' conftest.er1 >conftest.err
22428   rm -f conftest.er1
22429   cat conftest.err >&5
22430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431   (exit $ac_status); } && {
22432          test -z "$ac_c_werror_flag" ||
22433          test ! -s conftest.err
22434        } && test -s conftest.$ac_objext; then
22435   ac_lo=$ac_mid; break
22436 else
22437   echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22439
22440         ac_hi=`expr '(' $ac_mid ')' - 1`
22441                         if test $ac_mid -le $ac_hi; then
22442                           ac_lo= ac_hi=
22443                           break
22444                         fi
22445                         ac_mid=`expr 2 '*' $ac_mid`
22446 fi
22447
22448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22449   done
22450 else
22451   echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22453
22454         ac_lo= ac_hi=
22455 fi
22456
22457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22458 fi
22459
22460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22461 # Binary search between lo and hi bounds.
22462 while test "x$ac_lo" != "x$ac_hi"; do
22463   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22464   cat >conftest.$ac_ext <<_ACEOF
22465 /* confdefs.h.  */
22466 _ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h.  */
22470 $ac_includes_default
22471    typedef void * ac__type_sizeof_;
22472 int
22473 main ()
22474 {
22475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22476 test_array [0] = 0
22477
22478   ;
22479   return 0;
22480 }
22481 _ACEOF
22482 rm -f conftest.$ac_objext
22483 if { (ac_try="$ac_compile"
22484 case "(($ac_try" in
22485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22486   *) ac_try_echo=$ac_try;;
22487 esac
22488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22489   (eval "$ac_compile") 2>conftest.er1
22490   ac_status=$?
22491   grep -v '^ *+' conftest.er1 >conftest.err
22492   rm -f conftest.er1
22493   cat conftest.err >&5
22494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495   (exit $ac_status); } && {
22496          test -z "$ac_c_werror_flag" ||
22497          test ! -s conftest.err
22498        } && test -s conftest.$ac_objext; then
22499   ac_hi=$ac_mid
22500 else
22501   echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22503
22504         ac_lo=`expr '(' $ac_mid ')' + 1`
22505 fi
22506
22507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 done
22509 case $ac_lo in
22510 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22511 '') if test "$ac_cv_type_void_p" = yes; then
22512      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22513 See \`config.log' for more details." >&5
22514 echo "$as_me: error: cannot compute sizeof (void *)
22515 See \`config.log' for more details." >&2;}
22516    { (exit 77); exit 77; }; }
22517    else
22518      ac_cv_sizeof_void_p=0
22519    fi ;;
22520 esac
22521 else
22522   cat >conftest.$ac_ext <<_ACEOF
22523 /* confdefs.h.  */
22524 _ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h.  */
22528 $ac_includes_default
22529    typedef void * ac__type_sizeof_;
22530 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22531 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22532 #include <stdio.h>
22533 #include <stdlib.h>
22534 int
22535 main ()
22536 {
22537
22538   FILE *f = fopen ("conftest.val", "w");
22539   if (! f)
22540     return 1;
22541   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22542     {
22543       long int i = longval ();
22544       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22545         return 1;
22546       fprintf (f, "%ld\n", i);
22547     }
22548   else
22549     {
22550       unsigned long int i = ulongval ();
22551       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22552         return 1;
22553       fprintf (f, "%lu\n", i);
22554     }
22555   return ferror (f) || fclose (f) != 0;
22556
22557   ;
22558   return 0;
22559 }
22560 _ACEOF
22561 rm -f conftest$ac_exeext
22562 if { (ac_try="$ac_link"
22563 case "(($ac_try" in
22564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565   *) ac_try_echo=$ac_try;;
22566 esac
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568   (eval "$ac_link") 2>&5
22569   ac_status=$?
22570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22572   { (case "(($ac_try" in
22573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22574   *) ac_try_echo=$ac_try;;
22575 esac
22576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22577   (eval "$ac_try") 2>&5
22578   ac_status=$?
22579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580   (exit $ac_status); }; }; then
22581   ac_cv_sizeof_void_p=`cat conftest.val`
22582 else
22583   echo "$as_me: program exited with status $ac_status" >&5
22584 echo "$as_me: failed program was:" >&5
22585 sed 's/^/| /' conftest.$ac_ext >&5
22586
22587 ( exit $ac_status )
22588 if test "$ac_cv_type_void_p" = yes; then
22589      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22590 See \`config.log' for more details." >&5
22591 echo "$as_me: error: cannot compute sizeof (void *)
22592 See \`config.log' for more details." >&2;}
22593    { (exit 77); exit 77; }; }
22594    else
22595      ac_cv_sizeof_void_p=0
22596    fi
22597 fi
22598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22599 fi
22600 rm -f conftest.val
22601 fi
22602 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22603 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22604
22605
22606
22607 cat >>confdefs.h <<_ACEOF
22608 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22609 _ACEOF
22610
22611
22612 { echo "$as_me:$LINENO: checking for int" >&5
22613 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22614 if test "${ac_cv_type_int+set}" = set; then
22615   echo $ECHO_N "(cached) $ECHO_C" >&6
22616 else
22617   cat >conftest.$ac_ext <<_ACEOF
22618 /* confdefs.h.  */
22619 _ACEOF
22620 cat confdefs.h >>conftest.$ac_ext
22621 cat >>conftest.$ac_ext <<_ACEOF
22622 /* end confdefs.h.  */
22623 $ac_includes_default
22624 typedef int ac__type_new_;
22625 int
22626 main ()
22627 {
22628 if ((ac__type_new_ *) 0)
22629   return 0;
22630 if (sizeof (ac__type_new_))
22631   return 0;
22632   ;
22633   return 0;
22634 }
22635 _ACEOF
22636 rm -f conftest.$ac_objext
22637 if { (ac_try="$ac_compile"
22638 case "(($ac_try" in
22639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22640   *) ac_try_echo=$ac_try;;
22641 esac
22642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22643   (eval "$ac_compile") 2>conftest.er1
22644   ac_status=$?
22645   grep -v '^ *+' conftest.er1 >conftest.err
22646   rm -f conftest.er1
22647   cat conftest.err >&5
22648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649   (exit $ac_status); } && {
22650          test -z "$ac_c_werror_flag" ||
22651          test ! -s conftest.err
22652        } && test -s conftest.$ac_objext; then
22653   ac_cv_type_int=yes
22654 else
22655   echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22657
22658         ac_cv_type_int=no
22659 fi
22660
22661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22662 fi
22663 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22664 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22665
22666 # The cast to long int works around a bug in the HP C Compiler
22667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22669 # This bug is HP SR number 8606223364.
22670 { echo "$as_me:$LINENO: checking size of int" >&5
22671 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22672 if test "${ac_cv_sizeof_int+set}" = set; then
22673   echo $ECHO_N "(cached) $ECHO_C" >&6
22674 else
22675   if test "$cross_compiling" = yes; then
22676   # Depending upon the size, compute the lo and hi bounds.
22677 cat >conftest.$ac_ext <<_ACEOF
22678 /* confdefs.h.  */
22679 _ACEOF
22680 cat confdefs.h >>conftest.$ac_ext
22681 cat >>conftest.$ac_ext <<_ACEOF
22682 /* end confdefs.h.  */
22683 $ac_includes_default
22684    typedef int ac__type_sizeof_;
22685 int
22686 main ()
22687 {
22688 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22689 test_array [0] = 0
22690
22691   ;
22692   return 0;
22693 }
22694 _ACEOF
22695 rm -f conftest.$ac_objext
22696 if { (ac_try="$ac_compile"
22697 case "(($ac_try" in
22698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699   *) ac_try_echo=$ac_try;;
22700 esac
22701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22702   (eval "$ac_compile") 2>conftest.er1
22703   ac_status=$?
22704   grep -v '^ *+' conftest.er1 >conftest.err
22705   rm -f conftest.er1
22706   cat conftest.err >&5
22707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708   (exit $ac_status); } && {
22709          test -z "$ac_c_werror_flag" ||
22710          test ! -s conftest.err
22711        } && test -s conftest.$ac_objext; then
22712   ac_lo=0 ac_mid=0
22713   while :; do
22714     cat >conftest.$ac_ext <<_ACEOF
22715 /* confdefs.h.  */
22716 _ACEOF
22717 cat confdefs.h >>conftest.$ac_ext
22718 cat >>conftest.$ac_ext <<_ACEOF
22719 /* end confdefs.h.  */
22720 $ac_includes_default
22721    typedef int ac__type_sizeof_;
22722 int
22723 main ()
22724 {
22725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22726 test_array [0] = 0
22727
22728   ;
22729   return 0;
22730 }
22731 _ACEOF
22732 rm -f conftest.$ac_objext
22733 if { (ac_try="$ac_compile"
22734 case "(($ac_try" in
22735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22736   *) ac_try_echo=$ac_try;;
22737 esac
22738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22739   (eval "$ac_compile") 2>conftest.er1
22740   ac_status=$?
22741   grep -v '^ *+' conftest.er1 >conftest.err
22742   rm -f conftest.er1
22743   cat conftest.err >&5
22744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); } && {
22746          test -z "$ac_c_werror_flag" ||
22747          test ! -s conftest.err
22748        } && test -s conftest.$ac_objext; then
22749   ac_hi=$ac_mid; break
22750 else
22751   echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22753
22754         ac_lo=`expr $ac_mid + 1`
22755                         if test $ac_lo -le $ac_mid; then
22756                           ac_lo= ac_hi=
22757                           break
22758                         fi
22759                         ac_mid=`expr 2 '*' $ac_mid + 1`
22760 fi
22761
22762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22763   done
22764 else
22765   echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22767
22768         cat >conftest.$ac_ext <<_ACEOF
22769 /* confdefs.h.  */
22770 _ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h.  */
22774 $ac_includes_default
22775    typedef int ac__type_sizeof_;
22776 int
22777 main ()
22778 {
22779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22780 test_array [0] = 0
22781
22782   ;
22783   return 0;
22784 }
22785 _ACEOF
22786 rm -f conftest.$ac_objext
22787 if { (ac_try="$ac_compile"
22788 case "(($ac_try" in
22789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790   *) ac_try_echo=$ac_try;;
22791 esac
22792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22793   (eval "$ac_compile") 2>conftest.er1
22794   ac_status=$?
22795   grep -v '^ *+' conftest.er1 >conftest.err
22796   rm -f conftest.er1
22797   cat conftest.err >&5
22798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799   (exit $ac_status); } && {
22800          test -z "$ac_c_werror_flag" ||
22801          test ! -s conftest.err
22802        } && test -s conftest.$ac_objext; then
22803   ac_hi=-1 ac_mid=-1
22804   while :; do
22805     cat >conftest.$ac_ext <<_ACEOF
22806 /* confdefs.h.  */
22807 _ACEOF
22808 cat confdefs.h >>conftest.$ac_ext
22809 cat >>conftest.$ac_ext <<_ACEOF
22810 /* end confdefs.h.  */
22811 $ac_includes_default
22812    typedef int ac__type_sizeof_;
22813 int
22814 main ()
22815 {
22816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22817 test_array [0] = 0
22818
22819   ;
22820   return 0;
22821 }
22822 _ACEOF
22823 rm -f conftest.$ac_objext
22824 if { (ac_try="$ac_compile"
22825 case "(($ac_try" in
22826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22827   *) ac_try_echo=$ac_try;;
22828 esac
22829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22830   (eval "$ac_compile") 2>conftest.er1
22831   ac_status=$?
22832   grep -v '^ *+' conftest.er1 >conftest.err
22833   rm -f conftest.er1
22834   cat conftest.err >&5
22835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836   (exit $ac_status); } && {
22837          test -z "$ac_c_werror_flag" ||
22838          test ! -s conftest.err
22839        } && test -s conftest.$ac_objext; then
22840   ac_lo=$ac_mid; break
22841 else
22842   echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22844
22845         ac_hi=`expr '(' $ac_mid ')' - 1`
22846                         if test $ac_mid -le $ac_hi; then
22847                           ac_lo= ac_hi=
22848                           break
22849                         fi
22850                         ac_mid=`expr 2 '*' $ac_mid`
22851 fi
22852
22853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22854   done
22855 else
22856   echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22858
22859         ac_lo= ac_hi=
22860 fi
22861
22862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22863 fi
22864
22865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22866 # Binary search between lo and hi bounds.
22867 while test "x$ac_lo" != "x$ac_hi"; do
22868   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22869   cat >conftest.$ac_ext <<_ACEOF
22870 /* confdefs.h.  */
22871 _ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h.  */
22875 $ac_includes_default
22876    typedef int ac__type_sizeof_;
22877 int
22878 main ()
22879 {
22880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22881 test_array [0] = 0
22882
22883   ;
22884   return 0;
22885 }
22886 _ACEOF
22887 rm -f conftest.$ac_objext
22888 if { (ac_try="$ac_compile"
22889 case "(($ac_try" in
22890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22891   *) ac_try_echo=$ac_try;;
22892 esac
22893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22894   (eval "$ac_compile") 2>conftest.er1
22895   ac_status=$?
22896   grep -v '^ *+' conftest.er1 >conftest.err
22897   rm -f conftest.er1
22898   cat conftest.err >&5
22899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900   (exit $ac_status); } && {
22901          test -z "$ac_c_werror_flag" ||
22902          test ! -s conftest.err
22903        } && test -s conftest.$ac_objext; then
22904   ac_hi=$ac_mid
22905 else
22906   echo "$as_me: failed program was:" >&5
22907 sed 's/^/| /' conftest.$ac_ext >&5
22908
22909         ac_lo=`expr '(' $ac_mid ')' + 1`
22910 fi
22911
22912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22913 done
22914 case $ac_lo in
22915 ?*) ac_cv_sizeof_int=$ac_lo;;
22916 '') if test "$ac_cv_type_int" = yes; then
22917      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22918 See \`config.log' for more details." >&5
22919 echo "$as_me: error: cannot compute sizeof (int)
22920 See \`config.log' for more details." >&2;}
22921    { (exit 77); exit 77; }; }
22922    else
22923      ac_cv_sizeof_int=0
22924    fi ;;
22925 esac
22926 else
22927   cat >conftest.$ac_ext <<_ACEOF
22928 /* confdefs.h.  */
22929 _ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h.  */
22933 $ac_includes_default
22934    typedef int ac__type_sizeof_;
22935 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22936 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22937 #include <stdio.h>
22938 #include <stdlib.h>
22939 int
22940 main ()
22941 {
22942
22943   FILE *f = fopen ("conftest.val", "w");
22944   if (! f)
22945     return 1;
22946   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22947     {
22948       long int i = longval ();
22949       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22950         return 1;
22951       fprintf (f, "%ld\n", i);
22952     }
22953   else
22954     {
22955       unsigned long int i = ulongval ();
22956       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22957         return 1;
22958       fprintf (f, "%lu\n", i);
22959     }
22960   return ferror (f) || fclose (f) != 0;
22961
22962   ;
22963   return 0;
22964 }
22965 _ACEOF
22966 rm -f conftest$ac_exeext
22967 if { (ac_try="$ac_link"
22968 case "(($ac_try" in
22969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970   *) ac_try_echo=$ac_try;;
22971 esac
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973   (eval "$ac_link") 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22977   { (case "(($ac_try" in
22978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979   *) ac_try_echo=$ac_try;;
22980 esac
22981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22982   (eval "$ac_try") 2>&5
22983   ac_status=$?
22984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985   (exit $ac_status); }; }; then
22986   ac_cv_sizeof_int=`cat conftest.val`
22987 else
22988   echo "$as_me: program exited with status $ac_status" >&5
22989 echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22991
22992 ( exit $ac_status )
22993 if test "$ac_cv_type_int" = yes; then
22994      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22995 See \`config.log' for more details." >&5
22996 echo "$as_me: error: cannot compute sizeof (int)
22997 See \`config.log' for more details." >&2;}
22998    { (exit 77); exit 77; }; }
22999    else
23000      ac_cv_sizeof_int=0
23001    fi
23002 fi
23003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23004 fi
23005 rm -f conftest.val
23006 fi
23007 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23008 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23009
23010
23011
23012 cat >>confdefs.h <<_ACEOF
23013 #define SIZEOF_INT $ac_cv_sizeof_int
23014 _ACEOF
23015
23016
23017 { echo "$as_me:$LINENO: checking for long" >&5
23018 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23019 if test "${ac_cv_type_long+set}" = set; then
23020   echo $ECHO_N "(cached) $ECHO_C" >&6
23021 else
23022   cat >conftest.$ac_ext <<_ACEOF
23023 /* confdefs.h.  */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h.  */
23028 $ac_includes_default
23029 typedef long ac__type_new_;
23030 int
23031 main ()
23032 {
23033 if ((ac__type_new_ *) 0)
23034   return 0;
23035 if (sizeof (ac__type_new_))
23036   return 0;
23037   ;
23038   return 0;
23039 }
23040 _ACEOF
23041 rm -f conftest.$ac_objext
23042 if { (ac_try="$ac_compile"
23043 case "(($ac_try" in
23044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23045   *) ac_try_echo=$ac_try;;
23046 esac
23047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23048   (eval "$ac_compile") 2>conftest.er1
23049   ac_status=$?
23050   grep -v '^ *+' conftest.er1 >conftest.err
23051   rm -f conftest.er1
23052   cat conftest.err >&5
23053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054   (exit $ac_status); } && {
23055          test -z "$ac_c_werror_flag" ||
23056          test ! -s conftest.err
23057        } && test -s conftest.$ac_objext; then
23058   ac_cv_type_long=yes
23059 else
23060   echo "$as_me: failed program was:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23062
23063         ac_cv_type_long=no
23064 fi
23065
23066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23067 fi
23068 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23069 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23070
23071 # The cast to long int works around a bug in the HP C Compiler
23072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23074 # This bug is HP SR number 8606223364.
23075 { echo "$as_me:$LINENO: checking size of long" >&5
23076 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
23077 if test "${ac_cv_sizeof_long+set}" = set; then
23078   echo $ECHO_N "(cached) $ECHO_C" >&6
23079 else
23080   if test "$cross_compiling" = yes; then
23081   # Depending upon the size, compute the lo and hi bounds.
23082 cat >conftest.$ac_ext <<_ACEOF
23083 /* confdefs.h.  */
23084 _ACEOF
23085 cat confdefs.h >>conftest.$ac_ext
23086 cat >>conftest.$ac_ext <<_ACEOF
23087 /* end confdefs.h.  */
23088 $ac_includes_default
23089    typedef long ac__type_sizeof_;
23090 int
23091 main ()
23092 {
23093 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23094 test_array [0] = 0
23095
23096   ;
23097   return 0;
23098 }
23099 _ACEOF
23100 rm -f conftest.$ac_objext
23101 if { (ac_try="$ac_compile"
23102 case "(($ac_try" in
23103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104   *) ac_try_echo=$ac_try;;
23105 esac
23106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23107   (eval "$ac_compile") 2>conftest.er1
23108   ac_status=$?
23109   grep -v '^ *+' conftest.er1 >conftest.err
23110   rm -f conftest.er1
23111   cat conftest.err >&5
23112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113   (exit $ac_status); } && {
23114          test -z "$ac_c_werror_flag" ||
23115          test ! -s conftest.err
23116        } && test -s conftest.$ac_objext; then
23117   ac_lo=0 ac_mid=0
23118   while :; do
23119     cat >conftest.$ac_ext <<_ACEOF
23120 /* confdefs.h.  */
23121 _ACEOF
23122 cat confdefs.h >>conftest.$ac_ext
23123 cat >>conftest.$ac_ext <<_ACEOF
23124 /* end confdefs.h.  */
23125 $ac_includes_default
23126    typedef long ac__type_sizeof_;
23127 int
23128 main ()
23129 {
23130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23131 test_array [0] = 0
23132
23133   ;
23134   return 0;
23135 }
23136 _ACEOF
23137 rm -f conftest.$ac_objext
23138 if { (ac_try="$ac_compile"
23139 case "(($ac_try" in
23140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141   *) ac_try_echo=$ac_try;;
23142 esac
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144   (eval "$ac_compile") 2>conftest.er1
23145   ac_status=$?
23146   grep -v '^ *+' conftest.er1 >conftest.err
23147   rm -f conftest.er1
23148   cat conftest.err >&5
23149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150   (exit $ac_status); } && {
23151          test -z "$ac_c_werror_flag" ||
23152          test ! -s conftest.err
23153        } && test -s conftest.$ac_objext; then
23154   ac_hi=$ac_mid; break
23155 else
23156   echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23158
23159         ac_lo=`expr $ac_mid + 1`
23160                         if test $ac_lo -le $ac_mid; then
23161                           ac_lo= ac_hi=
23162                           break
23163                         fi
23164                         ac_mid=`expr 2 '*' $ac_mid + 1`
23165 fi
23166
23167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23168   done
23169 else
23170   echo "$as_me: failed program was:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23172
23173         cat >conftest.$ac_ext <<_ACEOF
23174 /* confdefs.h.  */
23175 _ACEOF
23176 cat confdefs.h >>conftest.$ac_ext
23177 cat >>conftest.$ac_ext <<_ACEOF
23178 /* end confdefs.h.  */
23179 $ac_includes_default
23180    typedef long ac__type_sizeof_;
23181 int
23182 main ()
23183 {
23184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23185 test_array [0] = 0
23186
23187   ;
23188   return 0;
23189 }
23190 _ACEOF
23191 rm -f conftest.$ac_objext
23192 if { (ac_try="$ac_compile"
23193 case "(($ac_try" in
23194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23195   *) ac_try_echo=$ac_try;;
23196 esac
23197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23198   (eval "$ac_compile") 2>conftest.er1
23199   ac_status=$?
23200   grep -v '^ *+' conftest.er1 >conftest.err
23201   rm -f conftest.er1
23202   cat conftest.err >&5
23203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204   (exit $ac_status); } && {
23205          test -z "$ac_c_werror_flag" ||
23206          test ! -s conftest.err
23207        } && test -s conftest.$ac_objext; then
23208   ac_hi=-1 ac_mid=-1
23209   while :; do
23210     cat >conftest.$ac_ext <<_ACEOF
23211 /* confdefs.h.  */
23212 _ACEOF
23213 cat confdefs.h >>conftest.$ac_ext
23214 cat >>conftest.$ac_ext <<_ACEOF
23215 /* end confdefs.h.  */
23216 $ac_includes_default
23217    typedef long ac__type_sizeof_;
23218 int
23219 main ()
23220 {
23221 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23222 test_array [0] = 0
23223
23224   ;
23225   return 0;
23226 }
23227 _ACEOF
23228 rm -f conftest.$ac_objext
23229 if { (ac_try="$ac_compile"
23230 case "(($ac_try" in
23231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23232   *) ac_try_echo=$ac_try;;
23233 esac
23234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23235   (eval "$ac_compile") 2>conftest.er1
23236   ac_status=$?
23237   grep -v '^ *+' conftest.er1 >conftest.err
23238   rm -f conftest.er1
23239   cat conftest.err >&5
23240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241   (exit $ac_status); } && {
23242          test -z "$ac_c_werror_flag" ||
23243          test ! -s conftest.err
23244        } && test -s conftest.$ac_objext; then
23245   ac_lo=$ac_mid; break
23246 else
23247   echo "$as_me: failed program was:" >&5
23248 sed 's/^/| /' conftest.$ac_ext >&5
23249
23250         ac_hi=`expr '(' $ac_mid ')' - 1`
23251                         if test $ac_mid -le $ac_hi; then
23252                           ac_lo= ac_hi=
23253                           break
23254                         fi
23255                         ac_mid=`expr 2 '*' $ac_mid`
23256 fi
23257
23258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23259   done
23260 else
23261   echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.$ac_ext >&5
23263
23264         ac_lo= ac_hi=
23265 fi
23266
23267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23268 fi
23269
23270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23271 # Binary search between lo and hi bounds.
23272 while test "x$ac_lo" != "x$ac_hi"; do
23273   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23274   cat >conftest.$ac_ext <<_ACEOF
23275 /* confdefs.h.  */
23276 _ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h.  */
23280 $ac_includes_default
23281    typedef long ac__type_sizeof_;
23282 int
23283 main ()
23284 {
23285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23286 test_array [0] = 0
23287
23288   ;
23289   return 0;
23290 }
23291 _ACEOF
23292 rm -f conftest.$ac_objext
23293 if { (ac_try="$ac_compile"
23294 case "(($ac_try" in
23295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23296   *) ac_try_echo=$ac_try;;
23297 esac
23298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23299   (eval "$ac_compile") 2>conftest.er1
23300   ac_status=$?
23301   grep -v '^ *+' conftest.er1 >conftest.err
23302   rm -f conftest.er1
23303   cat conftest.err >&5
23304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305   (exit $ac_status); } && {
23306          test -z "$ac_c_werror_flag" ||
23307          test ! -s conftest.err
23308        } && test -s conftest.$ac_objext; then
23309   ac_hi=$ac_mid
23310 else
23311   echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23313
23314         ac_lo=`expr '(' $ac_mid ')' + 1`
23315 fi
23316
23317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23318 done
23319 case $ac_lo in
23320 ?*) ac_cv_sizeof_long=$ac_lo;;
23321 '') if test "$ac_cv_type_long" = yes; then
23322      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23323 See \`config.log' for more details." >&5
23324 echo "$as_me: error: cannot compute sizeof (long)
23325 See \`config.log' for more details." >&2;}
23326    { (exit 77); exit 77; }; }
23327    else
23328      ac_cv_sizeof_long=0
23329    fi ;;
23330 esac
23331 else
23332   cat >conftest.$ac_ext <<_ACEOF
23333 /* confdefs.h.  */
23334 _ACEOF
23335 cat confdefs.h >>conftest.$ac_ext
23336 cat >>conftest.$ac_ext <<_ACEOF
23337 /* end confdefs.h.  */
23338 $ac_includes_default
23339    typedef long ac__type_sizeof_;
23340 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23341 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23342 #include <stdio.h>
23343 #include <stdlib.h>
23344 int
23345 main ()
23346 {
23347
23348   FILE *f = fopen ("conftest.val", "w");
23349   if (! f)
23350     return 1;
23351   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23352     {
23353       long int i = longval ();
23354       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23355         return 1;
23356       fprintf (f, "%ld\n", i);
23357     }
23358   else
23359     {
23360       unsigned long int i = ulongval ();
23361       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23362         return 1;
23363       fprintf (f, "%lu\n", i);
23364     }
23365   return ferror (f) || fclose (f) != 0;
23366
23367   ;
23368   return 0;
23369 }
23370 _ACEOF
23371 rm -f conftest$ac_exeext
23372 if { (ac_try="$ac_link"
23373 case "(($ac_try" in
23374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375   *) ac_try_echo=$ac_try;;
23376 esac
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378   (eval "$ac_link") 2>&5
23379   ac_status=$?
23380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23382   { (case "(($ac_try" in
23383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23384   *) ac_try_echo=$ac_try;;
23385 esac
23386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23387   (eval "$ac_try") 2>&5
23388   ac_status=$?
23389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390   (exit $ac_status); }; }; then
23391   ac_cv_sizeof_long=`cat conftest.val`
23392 else
23393   echo "$as_me: program exited with status $ac_status" >&5
23394 echo "$as_me: failed program was:" >&5
23395 sed 's/^/| /' conftest.$ac_ext >&5
23396
23397 ( exit $ac_status )
23398 if test "$ac_cv_type_long" = yes; then
23399      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23400 See \`config.log' for more details." >&5
23401 echo "$as_me: error: cannot compute sizeof (long)
23402 See \`config.log' for more details." >&2;}
23403    { (exit 77); exit 77; }; }
23404    else
23405      ac_cv_sizeof_long=0
23406    fi
23407 fi
23408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23409 fi
23410 rm -f conftest.val
23411 fi
23412 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23413 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
23414
23415
23416
23417 cat >>confdefs.h <<_ACEOF
23418 #define SIZEOF_LONG $ac_cv_sizeof_long
23419 _ACEOF
23420
23421
23422 { echo "$as_me:$LINENO: checking for size_t" >&5
23423 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23424 if test "${ac_cv_type_size_t+set}" = set; then
23425   echo $ECHO_N "(cached) $ECHO_C" >&6
23426 else
23427   cat >conftest.$ac_ext <<_ACEOF
23428 /* confdefs.h.  */
23429 _ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h.  */
23433 $ac_includes_default
23434 typedef size_t ac__type_new_;
23435 int
23436 main ()
23437 {
23438 if ((ac__type_new_ *) 0)
23439   return 0;
23440 if (sizeof (ac__type_new_))
23441   return 0;
23442   ;
23443   return 0;
23444 }
23445 _ACEOF
23446 rm -f conftest.$ac_objext
23447 if { (ac_try="$ac_compile"
23448 case "(($ac_try" in
23449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450   *) ac_try_echo=$ac_try;;
23451 esac
23452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23453   (eval "$ac_compile") 2>conftest.er1
23454   ac_status=$?
23455   grep -v '^ *+' conftest.er1 >conftest.err
23456   rm -f conftest.er1
23457   cat conftest.err >&5
23458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459   (exit $ac_status); } && {
23460          test -z "$ac_c_werror_flag" ||
23461          test ! -s conftest.err
23462        } && test -s conftest.$ac_objext; then
23463   ac_cv_type_size_t=yes
23464 else
23465   echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23467
23468         ac_cv_type_size_t=no
23469 fi
23470
23471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23472 fi
23473 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23474 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23475
23476 # The cast to long int works around a bug in the HP C Compiler
23477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23479 # This bug is HP SR number 8606223364.
23480 { echo "$as_me:$LINENO: checking size of size_t" >&5
23481 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
23482 if test "${ac_cv_sizeof_size_t+set}" = set; then
23483   echo $ECHO_N "(cached) $ECHO_C" >&6
23484 else
23485   if test "$cross_compiling" = yes; then
23486   # Depending upon the size, compute the lo and hi bounds.
23487 cat >conftest.$ac_ext <<_ACEOF
23488 /* confdefs.h.  */
23489 _ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h.  */
23493 $ac_includes_default
23494    typedef size_t ac__type_sizeof_;
23495 int
23496 main ()
23497 {
23498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23499 test_array [0] = 0
23500
23501   ;
23502   return 0;
23503 }
23504 _ACEOF
23505 rm -f conftest.$ac_objext
23506 if { (ac_try="$ac_compile"
23507 case "(($ac_try" in
23508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23509   *) ac_try_echo=$ac_try;;
23510 esac
23511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23512   (eval "$ac_compile") 2>conftest.er1
23513   ac_status=$?
23514   grep -v '^ *+' conftest.er1 >conftest.err
23515   rm -f conftest.er1
23516   cat conftest.err >&5
23517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518   (exit $ac_status); } && {
23519          test -z "$ac_c_werror_flag" ||
23520          test ! -s conftest.err
23521        } && test -s conftest.$ac_objext; then
23522   ac_lo=0 ac_mid=0
23523   while :; do
23524     cat >conftest.$ac_ext <<_ACEOF
23525 /* confdefs.h.  */
23526 _ACEOF
23527 cat confdefs.h >>conftest.$ac_ext
23528 cat >>conftest.$ac_ext <<_ACEOF
23529 /* end confdefs.h.  */
23530 $ac_includes_default
23531    typedef size_t ac__type_sizeof_;
23532 int
23533 main ()
23534 {
23535 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23536 test_array [0] = 0
23537
23538   ;
23539   return 0;
23540 }
23541 _ACEOF
23542 rm -f conftest.$ac_objext
23543 if { (ac_try="$ac_compile"
23544 case "(($ac_try" in
23545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546   *) ac_try_echo=$ac_try;;
23547 esac
23548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23549   (eval "$ac_compile") 2>conftest.er1
23550   ac_status=$?
23551   grep -v '^ *+' conftest.er1 >conftest.err
23552   rm -f conftest.er1
23553   cat conftest.err >&5
23554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555   (exit $ac_status); } && {
23556          test -z "$ac_c_werror_flag" ||
23557          test ! -s conftest.err
23558        } && test -s conftest.$ac_objext; then
23559   ac_hi=$ac_mid; break
23560 else
23561   echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23563
23564         ac_lo=`expr $ac_mid + 1`
23565                         if test $ac_lo -le $ac_mid; then
23566                           ac_lo= ac_hi=
23567                           break
23568                         fi
23569                         ac_mid=`expr 2 '*' $ac_mid + 1`
23570 fi
23571
23572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23573   done
23574 else
23575   echo "$as_me: failed program was:" >&5
23576 sed 's/^/| /' conftest.$ac_ext >&5
23577
23578         cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h.  */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h.  */
23584 $ac_includes_default
23585    typedef size_t ac__type_sizeof_;
23586 int
23587 main ()
23588 {
23589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23590 test_array [0] = 0
23591
23592   ;
23593   return 0;
23594 }
23595 _ACEOF
23596 rm -f conftest.$ac_objext
23597 if { (ac_try="$ac_compile"
23598 case "(($ac_try" in
23599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600   *) ac_try_echo=$ac_try;;
23601 esac
23602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23603   (eval "$ac_compile") 2>conftest.er1
23604   ac_status=$?
23605   grep -v '^ *+' conftest.er1 >conftest.err
23606   rm -f conftest.er1
23607   cat conftest.err >&5
23608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609   (exit $ac_status); } && {
23610          test -z "$ac_c_werror_flag" ||
23611          test ! -s conftest.err
23612        } && test -s conftest.$ac_objext; then
23613   ac_hi=-1 ac_mid=-1
23614   while :; do
23615     cat >conftest.$ac_ext <<_ACEOF
23616 /* confdefs.h.  */
23617 _ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h.  */
23621 $ac_includes_default
23622    typedef size_t ac__type_sizeof_;
23623 int
23624 main ()
23625 {
23626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23627 test_array [0] = 0
23628
23629   ;
23630   return 0;
23631 }
23632 _ACEOF
23633 rm -f conftest.$ac_objext
23634 if { (ac_try="$ac_compile"
23635 case "(($ac_try" in
23636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23637   *) ac_try_echo=$ac_try;;
23638 esac
23639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23640   (eval "$ac_compile") 2>conftest.er1
23641   ac_status=$?
23642   grep -v '^ *+' conftest.er1 >conftest.err
23643   rm -f conftest.er1
23644   cat conftest.err >&5
23645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646   (exit $ac_status); } && {
23647          test -z "$ac_c_werror_flag" ||
23648          test ! -s conftest.err
23649        } && test -s conftest.$ac_objext; then
23650   ac_lo=$ac_mid; break
23651 else
23652   echo "$as_me: failed program was:" >&5
23653 sed 's/^/| /' conftest.$ac_ext >&5
23654
23655         ac_hi=`expr '(' $ac_mid ')' - 1`
23656                         if test $ac_mid -le $ac_hi; then
23657                           ac_lo= ac_hi=
23658                           break
23659                         fi
23660                         ac_mid=`expr 2 '*' $ac_mid`
23661 fi
23662
23663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23664   done
23665 else
23666   echo "$as_me: failed program was:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23668
23669         ac_lo= ac_hi=
23670 fi
23671
23672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23673 fi
23674
23675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23676 # Binary search between lo and hi bounds.
23677 while test "x$ac_lo" != "x$ac_hi"; do
23678   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23679   cat >conftest.$ac_ext <<_ACEOF
23680 /* confdefs.h.  */
23681 _ACEOF
23682 cat confdefs.h >>conftest.$ac_ext
23683 cat >>conftest.$ac_ext <<_ACEOF
23684 /* end confdefs.h.  */
23685 $ac_includes_default
23686    typedef size_t ac__type_sizeof_;
23687 int
23688 main ()
23689 {
23690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23691 test_array [0] = 0
23692
23693   ;
23694   return 0;
23695 }
23696 _ACEOF
23697 rm -f conftest.$ac_objext
23698 if { (ac_try="$ac_compile"
23699 case "(($ac_try" in
23700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701   *) ac_try_echo=$ac_try;;
23702 esac
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704   (eval "$ac_compile") 2>conftest.er1
23705   ac_status=$?
23706   grep -v '^ *+' conftest.er1 >conftest.err
23707   rm -f conftest.er1
23708   cat conftest.err >&5
23709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710   (exit $ac_status); } && {
23711          test -z "$ac_c_werror_flag" ||
23712          test ! -s conftest.err
23713        } && test -s conftest.$ac_objext; then
23714   ac_hi=$ac_mid
23715 else
23716   echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23718
23719         ac_lo=`expr '(' $ac_mid ')' + 1`
23720 fi
23721
23722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23723 done
23724 case $ac_lo in
23725 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23726 '') if test "$ac_cv_type_size_t" = yes; then
23727      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23728 See \`config.log' for more details." >&5
23729 echo "$as_me: error: cannot compute sizeof (size_t)
23730 See \`config.log' for more details." >&2;}
23731    { (exit 77); exit 77; }; }
23732    else
23733      ac_cv_sizeof_size_t=0
23734    fi ;;
23735 esac
23736 else
23737   cat >conftest.$ac_ext <<_ACEOF
23738 /* confdefs.h.  */
23739 _ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h.  */
23743 $ac_includes_default
23744    typedef size_t ac__type_sizeof_;
23745 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23746 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23747 #include <stdio.h>
23748 #include <stdlib.h>
23749 int
23750 main ()
23751 {
23752
23753   FILE *f = fopen ("conftest.val", "w");
23754   if (! f)
23755     return 1;
23756   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23757     {
23758       long int i = longval ();
23759       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23760         return 1;
23761       fprintf (f, "%ld\n", i);
23762     }
23763   else
23764     {
23765       unsigned long int i = ulongval ();
23766       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23767         return 1;
23768       fprintf (f, "%lu\n", i);
23769     }
23770   return ferror (f) || fclose (f) != 0;
23771
23772   ;
23773   return 0;
23774 }
23775 _ACEOF
23776 rm -f conftest$ac_exeext
23777 if { (ac_try="$ac_link"
23778 case "(($ac_try" in
23779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23780   *) ac_try_echo=$ac_try;;
23781 esac
23782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23783   (eval "$ac_link") 2>&5
23784   ac_status=$?
23785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23787   { (case "(($ac_try" in
23788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23789   *) ac_try_echo=$ac_try;;
23790 esac
23791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23792   (eval "$ac_try") 2>&5
23793   ac_status=$?
23794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795   (exit $ac_status); }; }; then
23796   ac_cv_sizeof_size_t=`cat conftest.val`
23797 else
23798   echo "$as_me: program exited with status $ac_status" >&5
23799 echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.$ac_ext >&5
23801
23802 ( exit $ac_status )
23803 if test "$ac_cv_type_size_t" = yes; then
23804      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23805 See \`config.log' for more details." >&5
23806 echo "$as_me: error: cannot compute sizeof (size_t)
23807 See \`config.log' for more details." >&2;}
23808    { (exit 77); exit 77; }; }
23809    else
23810      ac_cv_sizeof_size_t=0
23811    fi
23812 fi
23813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23814 fi
23815 rm -f conftest.val
23816 fi
23817 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23818 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
23819
23820
23821
23822 cat >>confdefs.h <<_ACEOF
23823 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23824 _ACEOF
23825
23826
23827
23828 case "${host}" in
23829     arm-*-linux* )
23830         { echo "$as_me:$LINENO: checking for long long" >&5
23831 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23832 if test "${ac_cv_type_long_long+set}" = set; then
23833   echo $ECHO_N "(cached) $ECHO_C" >&6
23834 else
23835   cat >conftest.$ac_ext <<_ACEOF
23836 /* confdefs.h.  */
23837 _ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h.  */
23841 $ac_includes_default
23842 typedef long long ac__type_new_;
23843 int
23844 main ()
23845 {
23846 if ((ac__type_new_ *) 0)
23847   return 0;
23848 if (sizeof (ac__type_new_))
23849   return 0;
23850   ;
23851   return 0;
23852 }
23853 _ACEOF
23854 rm -f conftest.$ac_objext
23855 if { (ac_try="$ac_compile"
23856 case "(($ac_try" in
23857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23858   *) ac_try_echo=$ac_try;;
23859 esac
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861   (eval "$ac_compile") 2>conftest.er1
23862   ac_status=$?
23863   grep -v '^ *+' conftest.er1 >conftest.err
23864   rm -f conftest.er1
23865   cat conftest.err >&5
23866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867   (exit $ac_status); } && {
23868          test -z "$ac_c_werror_flag" ||
23869          test ! -s conftest.err
23870        } && test -s conftest.$ac_objext; then
23871   ac_cv_type_long_long=yes
23872 else
23873   echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23875
23876         ac_cv_type_long_long=no
23877 fi
23878
23879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880 fi
23881 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23882 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23883
23884 # The cast to long int works around a bug in the HP C Compiler
23885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23887 # This bug is HP SR number 8606223364.
23888 { echo "$as_me:$LINENO: checking size of long long" >&5
23889 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23890 if test "${ac_cv_sizeof_long_long+set}" = set; then
23891   echo $ECHO_N "(cached) $ECHO_C" >&6
23892 else
23893   if test "$cross_compiling" = yes; then
23894   # Depending upon the size, compute the lo and hi bounds.
23895 cat >conftest.$ac_ext <<_ACEOF
23896 /* confdefs.h.  */
23897 _ACEOF
23898 cat confdefs.h >>conftest.$ac_ext
23899 cat >>conftest.$ac_ext <<_ACEOF
23900 /* end confdefs.h.  */
23901 $ac_includes_default
23902    typedef long long ac__type_sizeof_;
23903 int
23904 main ()
23905 {
23906 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23907 test_array [0] = 0
23908
23909   ;
23910   return 0;
23911 }
23912 _ACEOF
23913 rm -f conftest.$ac_objext
23914 if { (ac_try="$ac_compile"
23915 case "(($ac_try" in
23916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23917   *) ac_try_echo=$ac_try;;
23918 esac
23919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23920   (eval "$ac_compile") 2>conftest.er1
23921   ac_status=$?
23922   grep -v '^ *+' conftest.er1 >conftest.err
23923   rm -f conftest.er1
23924   cat conftest.err >&5
23925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926   (exit $ac_status); } && {
23927          test -z "$ac_c_werror_flag" ||
23928          test ! -s conftest.err
23929        } && test -s conftest.$ac_objext; then
23930   ac_lo=0 ac_mid=0
23931   while :; do
23932     cat >conftest.$ac_ext <<_ACEOF
23933 /* confdefs.h.  */
23934 _ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h.  */
23938 $ac_includes_default
23939    typedef long long ac__type_sizeof_;
23940 int
23941 main ()
23942 {
23943 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23944 test_array [0] = 0
23945
23946   ;
23947   return 0;
23948 }
23949 _ACEOF
23950 rm -f conftest.$ac_objext
23951 if { (ac_try="$ac_compile"
23952 case "(($ac_try" in
23953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954   *) ac_try_echo=$ac_try;;
23955 esac
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957   (eval "$ac_compile") 2>conftest.er1
23958   ac_status=$?
23959   grep -v '^ *+' conftest.er1 >conftest.err
23960   rm -f conftest.er1
23961   cat conftest.err >&5
23962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); } && {
23964          test -z "$ac_c_werror_flag" ||
23965          test ! -s conftest.err
23966        } && test -s conftest.$ac_objext; then
23967   ac_hi=$ac_mid; break
23968 else
23969   echo "$as_me: failed program was:" >&5
23970 sed 's/^/| /' conftest.$ac_ext >&5
23971
23972         ac_lo=`expr $ac_mid + 1`
23973                         if test $ac_lo -le $ac_mid; then
23974                           ac_lo= ac_hi=
23975                           break
23976                         fi
23977                         ac_mid=`expr 2 '*' $ac_mid + 1`
23978 fi
23979
23980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23981   done
23982 else
23983   echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23985
23986         cat >conftest.$ac_ext <<_ACEOF
23987 /* confdefs.h.  */
23988 _ACEOF
23989 cat confdefs.h >>conftest.$ac_ext
23990 cat >>conftest.$ac_ext <<_ACEOF
23991 /* end confdefs.h.  */
23992 $ac_includes_default
23993    typedef long long ac__type_sizeof_;
23994 int
23995 main ()
23996 {
23997 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23998 test_array [0] = 0
23999
24000   ;
24001   return 0;
24002 }
24003 _ACEOF
24004 rm -f conftest.$ac_objext
24005 if { (ac_try="$ac_compile"
24006 case "(($ac_try" in
24007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24008   *) ac_try_echo=$ac_try;;
24009 esac
24010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24011   (eval "$ac_compile") 2>conftest.er1
24012   ac_status=$?
24013   grep -v '^ *+' conftest.er1 >conftest.err
24014   rm -f conftest.er1
24015   cat conftest.err >&5
24016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017   (exit $ac_status); } && {
24018          test -z "$ac_c_werror_flag" ||
24019          test ! -s conftest.err
24020        } && test -s conftest.$ac_objext; then
24021   ac_hi=-1 ac_mid=-1
24022   while :; do
24023     cat >conftest.$ac_ext <<_ACEOF
24024 /* confdefs.h.  */
24025 _ACEOF
24026 cat confdefs.h >>conftest.$ac_ext
24027 cat >>conftest.$ac_ext <<_ACEOF
24028 /* end confdefs.h.  */
24029 $ac_includes_default
24030    typedef long long ac__type_sizeof_;
24031 int
24032 main ()
24033 {
24034 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24035 test_array [0] = 0
24036
24037   ;
24038   return 0;
24039 }
24040 _ACEOF
24041 rm -f conftest.$ac_objext
24042 if { (ac_try="$ac_compile"
24043 case "(($ac_try" in
24044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24045   *) ac_try_echo=$ac_try;;
24046 esac
24047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24048   (eval "$ac_compile") 2>conftest.er1
24049   ac_status=$?
24050   grep -v '^ *+' conftest.er1 >conftest.err
24051   rm -f conftest.er1
24052   cat conftest.err >&5
24053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); } && {
24055          test -z "$ac_c_werror_flag" ||
24056          test ! -s conftest.err
24057        } && test -s conftest.$ac_objext; then
24058   ac_lo=$ac_mid; break
24059 else
24060   echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24062
24063         ac_hi=`expr '(' $ac_mid ')' - 1`
24064                         if test $ac_mid -le $ac_hi; then
24065                           ac_lo= ac_hi=
24066                           break
24067                         fi
24068                         ac_mid=`expr 2 '*' $ac_mid`
24069 fi
24070
24071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24072   done
24073 else
24074   echo "$as_me: failed program was:" >&5
24075 sed 's/^/| /' conftest.$ac_ext >&5
24076
24077         ac_lo= ac_hi=
24078 fi
24079
24080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24081 fi
24082
24083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24084 # Binary search between lo and hi bounds.
24085 while test "x$ac_lo" != "x$ac_hi"; do
24086   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24087   cat >conftest.$ac_ext <<_ACEOF
24088 /* confdefs.h.  */
24089 _ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h.  */
24093 $ac_includes_default
24094    typedef long long ac__type_sizeof_;
24095 int
24096 main ()
24097 {
24098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24099 test_array [0] = 0
24100
24101   ;
24102   return 0;
24103 }
24104 _ACEOF
24105 rm -f conftest.$ac_objext
24106 if { (ac_try="$ac_compile"
24107 case "(($ac_try" in
24108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109   *) ac_try_echo=$ac_try;;
24110 esac
24111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24112   (eval "$ac_compile") 2>conftest.er1
24113   ac_status=$?
24114   grep -v '^ *+' conftest.er1 >conftest.err
24115   rm -f conftest.er1
24116   cat conftest.err >&5
24117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118   (exit $ac_status); } && {
24119          test -z "$ac_c_werror_flag" ||
24120          test ! -s conftest.err
24121        } && test -s conftest.$ac_objext; then
24122   ac_hi=$ac_mid
24123 else
24124   echo "$as_me: failed program was:" >&5
24125 sed 's/^/| /' conftest.$ac_ext >&5
24126
24127         ac_lo=`expr '(' $ac_mid ')' + 1`
24128 fi
24129
24130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24131 done
24132 case $ac_lo in
24133 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24134 '') if test "$ac_cv_type_long_long" = yes; then
24135      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24136 See \`config.log' for more details." >&5
24137 echo "$as_me: error: cannot compute sizeof (long long)
24138 See \`config.log' for more details." >&2;}
24139    { (exit 77); exit 77; }; }
24140    else
24141      ac_cv_sizeof_long_long=0
24142    fi ;;
24143 esac
24144 else
24145   cat >conftest.$ac_ext <<_ACEOF
24146 /* confdefs.h.  */
24147 _ACEOF
24148 cat confdefs.h >>conftest.$ac_ext
24149 cat >>conftest.$ac_ext <<_ACEOF
24150 /* end confdefs.h.  */
24151 $ac_includes_default
24152    typedef long long ac__type_sizeof_;
24153 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24154 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24155 #include <stdio.h>
24156 #include <stdlib.h>
24157 int
24158 main ()
24159 {
24160
24161   FILE *f = fopen ("conftest.val", "w");
24162   if (! f)
24163     return 1;
24164   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24165     {
24166       long int i = longval ();
24167       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24168         return 1;
24169       fprintf (f, "%ld\n", i);
24170     }
24171   else
24172     {
24173       unsigned long int i = ulongval ();
24174       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24175         return 1;
24176       fprintf (f, "%lu\n", i);
24177     }
24178   return ferror (f) || fclose (f) != 0;
24179
24180   ;
24181   return 0;
24182 }
24183 _ACEOF
24184 rm -f conftest$ac_exeext
24185 if { (ac_try="$ac_link"
24186 case "(($ac_try" in
24187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24188   *) ac_try_echo=$ac_try;;
24189 esac
24190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24191   (eval "$ac_link") 2>&5
24192   ac_status=$?
24193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24195   { (case "(($ac_try" in
24196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24197   *) ac_try_echo=$ac_try;;
24198 esac
24199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24200   (eval "$ac_try") 2>&5
24201   ac_status=$?
24202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203   (exit $ac_status); }; }; then
24204   ac_cv_sizeof_long_long=`cat conftest.val`
24205 else
24206   echo "$as_me: program exited with status $ac_status" >&5
24207 echo "$as_me: failed program was:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24209
24210 ( exit $ac_status )
24211 if test "$ac_cv_type_long_long" = yes; then
24212      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24213 See \`config.log' for more details." >&5
24214 echo "$as_me: error: cannot compute sizeof (long long)
24215 See \`config.log' for more details." >&2;}
24216    { (exit 77); exit 77; }; }
24217    else
24218      ac_cv_sizeof_long_long=0
24219    fi
24220 fi
24221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24222 fi
24223 rm -f conftest.val
24224 fi
24225 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24226 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24227
24228
24229
24230 cat >>confdefs.h <<_ACEOF
24231 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24232 _ACEOF
24233
24234
24235     ;;
24236     *-hp-hpux* )
24237         { echo "$as_me:$LINENO: checking for long long" >&5
24238 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24239 if test "${ac_cv_type_long_long+set}" = set; then
24240   echo $ECHO_N "(cached) $ECHO_C" >&6
24241 else
24242   cat >conftest.$ac_ext <<_ACEOF
24243 /* confdefs.h.  */
24244 _ACEOF
24245 cat confdefs.h >>conftest.$ac_ext
24246 cat >>conftest.$ac_ext <<_ACEOF
24247 /* end confdefs.h.  */
24248 $ac_includes_default
24249 typedef long long ac__type_new_;
24250 int
24251 main ()
24252 {
24253 if ((ac__type_new_ *) 0)
24254   return 0;
24255 if (sizeof (ac__type_new_))
24256   return 0;
24257   ;
24258   return 0;
24259 }
24260 _ACEOF
24261 rm -f conftest.$ac_objext
24262 if { (ac_try="$ac_compile"
24263 case "(($ac_try" in
24264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24265   *) ac_try_echo=$ac_try;;
24266 esac
24267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24268   (eval "$ac_compile") 2>conftest.er1
24269   ac_status=$?
24270   grep -v '^ *+' conftest.er1 >conftest.err
24271   rm -f conftest.er1
24272   cat conftest.err >&5
24273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274   (exit $ac_status); } && {
24275          test -z "$ac_c_werror_flag" ||
24276          test ! -s conftest.err
24277        } && test -s conftest.$ac_objext; then
24278   ac_cv_type_long_long=yes
24279 else
24280   echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24282
24283         ac_cv_type_long_long=no
24284 fi
24285
24286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24287 fi
24288 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24289 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24290
24291 # The cast to long int works around a bug in the HP C Compiler
24292 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24293 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24294 # This bug is HP SR number 8606223364.
24295 { echo "$as_me:$LINENO: checking size of long long" >&5
24296 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24297 if test "${ac_cv_sizeof_long_long+set}" = set; then
24298   echo $ECHO_N "(cached) $ECHO_C" >&6
24299 else
24300   if test "$cross_compiling" = yes; then
24301   # Depending upon the size, compute the lo and hi bounds.
24302 cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h.  */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h.  */
24308 $ac_includes_default
24309    typedef long long ac__type_sizeof_;
24310 int
24311 main ()
24312 {
24313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24314 test_array [0] = 0
24315
24316   ;
24317   return 0;
24318 }
24319 _ACEOF
24320 rm -f conftest.$ac_objext
24321 if { (ac_try="$ac_compile"
24322 case "(($ac_try" in
24323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324   *) ac_try_echo=$ac_try;;
24325 esac
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327   (eval "$ac_compile") 2>conftest.er1
24328   ac_status=$?
24329   grep -v '^ *+' conftest.er1 >conftest.err
24330   rm -f conftest.er1
24331   cat conftest.err >&5
24332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333   (exit $ac_status); } && {
24334          test -z "$ac_c_werror_flag" ||
24335          test ! -s conftest.err
24336        } && test -s conftest.$ac_objext; then
24337   ac_lo=0 ac_mid=0
24338   while :; do
24339     cat >conftest.$ac_ext <<_ACEOF
24340 /* confdefs.h.  */
24341 _ACEOF
24342 cat confdefs.h >>conftest.$ac_ext
24343 cat >>conftest.$ac_ext <<_ACEOF
24344 /* end confdefs.h.  */
24345 $ac_includes_default
24346    typedef long long ac__type_sizeof_;
24347 int
24348 main ()
24349 {
24350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24351 test_array [0] = 0
24352
24353   ;
24354   return 0;
24355 }
24356 _ACEOF
24357 rm -f conftest.$ac_objext
24358 if { (ac_try="$ac_compile"
24359 case "(($ac_try" in
24360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361   *) ac_try_echo=$ac_try;;
24362 esac
24363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24364   (eval "$ac_compile") 2>conftest.er1
24365   ac_status=$?
24366   grep -v '^ *+' conftest.er1 >conftest.err
24367   rm -f conftest.er1
24368   cat conftest.err >&5
24369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370   (exit $ac_status); } && {
24371          test -z "$ac_c_werror_flag" ||
24372          test ! -s conftest.err
24373        } && test -s conftest.$ac_objext; then
24374   ac_hi=$ac_mid; break
24375 else
24376   echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24378
24379         ac_lo=`expr $ac_mid + 1`
24380                         if test $ac_lo -le $ac_mid; then
24381                           ac_lo= ac_hi=
24382                           break
24383                         fi
24384                         ac_mid=`expr 2 '*' $ac_mid + 1`
24385 fi
24386
24387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24388   done
24389 else
24390   echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24392
24393         cat >conftest.$ac_ext <<_ACEOF
24394 /* confdefs.h.  */
24395 _ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h.  */
24399 $ac_includes_default
24400    typedef long long ac__type_sizeof_;
24401 int
24402 main ()
24403 {
24404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24405 test_array [0] = 0
24406
24407   ;
24408   return 0;
24409 }
24410 _ACEOF
24411 rm -f conftest.$ac_objext
24412 if { (ac_try="$ac_compile"
24413 case "(($ac_try" in
24414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24415   *) ac_try_echo=$ac_try;;
24416 esac
24417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24418   (eval "$ac_compile") 2>conftest.er1
24419   ac_status=$?
24420   grep -v '^ *+' conftest.er1 >conftest.err
24421   rm -f conftest.er1
24422   cat conftest.err >&5
24423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424   (exit $ac_status); } && {
24425          test -z "$ac_c_werror_flag" ||
24426          test ! -s conftest.err
24427        } && test -s conftest.$ac_objext; then
24428   ac_hi=-1 ac_mid=-1
24429   while :; do
24430     cat >conftest.$ac_ext <<_ACEOF
24431 /* confdefs.h.  */
24432 _ACEOF
24433 cat confdefs.h >>conftest.$ac_ext
24434 cat >>conftest.$ac_ext <<_ACEOF
24435 /* end confdefs.h.  */
24436 $ac_includes_default
24437    typedef long long ac__type_sizeof_;
24438 int
24439 main ()
24440 {
24441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24442 test_array [0] = 0
24443
24444   ;
24445   return 0;
24446 }
24447 _ACEOF
24448 rm -f conftest.$ac_objext
24449 if { (ac_try="$ac_compile"
24450 case "(($ac_try" in
24451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24452   *) ac_try_echo=$ac_try;;
24453 esac
24454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24455   (eval "$ac_compile") 2>conftest.er1
24456   ac_status=$?
24457   grep -v '^ *+' conftest.er1 >conftest.err
24458   rm -f conftest.er1
24459   cat conftest.err >&5
24460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461   (exit $ac_status); } && {
24462          test -z "$ac_c_werror_flag" ||
24463          test ! -s conftest.err
24464        } && test -s conftest.$ac_objext; then
24465   ac_lo=$ac_mid; break
24466 else
24467   echo "$as_me: failed program was:" >&5
24468 sed 's/^/| /' conftest.$ac_ext >&5
24469
24470         ac_hi=`expr '(' $ac_mid ')' - 1`
24471                         if test $ac_mid -le $ac_hi; then
24472                           ac_lo= ac_hi=
24473                           break
24474                         fi
24475                         ac_mid=`expr 2 '*' $ac_mid`
24476 fi
24477
24478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24479   done
24480 else
24481   echo "$as_me: failed program was:" >&5
24482 sed 's/^/| /' conftest.$ac_ext >&5
24483
24484         ac_lo= ac_hi=
24485 fi
24486
24487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24488 fi
24489
24490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24491 # Binary search between lo and hi bounds.
24492 while test "x$ac_lo" != "x$ac_hi"; do
24493   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24494   cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h.  */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h.  */
24500 $ac_includes_default
24501    typedef long long ac__type_sizeof_;
24502 int
24503 main ()
24504 {
24505 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24506 test_array [0] = 0
24507
24508   ;
24509   return 0;
24510 }
24511 _ACEOF
24512 rm -f conftest.$ac_objext
24513 if { (ac_try="$ac_compile"
24514 case "(($ac_try" in
24515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516   *) ac_try_echo=$ac_try;;
24517 esac
24518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24519   (eval "$ac_compile") 2>conftest.er1
24520   ac_status=$?
24521   grep -v '^ *+' conftest.er1 >conftest.err
24522   rm -f conftest.er1
24523   cat conftest.err >&5
24524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525   (exit $ac_status); } && {
24526          test -z "$ac_c_werror_flag" ||
24527          test ! -s conftest.err
24528        } && test -s conftest.$ac_objext; then
24529   ac_hi=$ac_mid
24530 else
24531   echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24533
24534         ac_lo=`expr '(' $ac_mid ')' + 1`
24535 fi
24536
24537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24538 done
24539 case $ac_lo in
24540 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24541 '') if test "$ac_cv_type_long_long" = yes; then
24542      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24543 See \`config.log' for more details." >&5
24544 echo "$as_me: error: cannot compute sizeof (long long)
24545 See \`config.log' for more details." >&2;}
24546    { (exit 77); exit 77; }; }
24547    else
24548      ac_cv_sizeof_long_long=0
24549    fi ;;
24550 esac
24551 else
24552   cat >conftest.$ac_ext <<_ACEOF
24553 /* confdefs.h.  */
24554 _ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h.  */
24558 $ac_includes_default
24559    typedef long long ac__type_sizeof_;
24560 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24561 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24562 #include <stdio.h>
24563 #include <stdlib.h>
24564 int
24565 main ()
24566 {
24567
24568   FILE *f = fopen ("conftest.val", "w");
24569   if (! f)
24570     return 1;
24571   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24572     {
24573       long int i = longval ();
24574       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24575         return 1;
24576       fprintf (f, "%ld\n", i);
24577     }
24578   else
24579     {
24580       unsigned long int i = ulongval ();
24581       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24582         return 1;
24583       fprintf (f, "%lu\n", i);
24584     }
24585   return ferror (f) || fclose (f) != 0;
24586
24587   ;
24588   return 0;
24589 }
24590 _ACEOF
24591 rm -f conftest$ac_exeext
24592 if { (ac_try="$ac_link"
24593 case "(($ac_try" in
24594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24595   *) ac_try_echo=$ac_try;;
24596 esac
24597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24598   (eval "$ac_link") 2>&5
24599   ac_status=$?
24600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24602   { (case "(($ac_try" in
24603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24604   *) ac_try_echo=$ac_try;;
24605 esac
24606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24607   (eval "$ac_try") 2>&5
24608   ac_status=$?
24609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610   (exit $ac_status); }; }; then
24611   ac_cv_sizeof_long_long=`cat conftest.val`
24612 else
24613   echo "$as_me: program exited with status $ac_status" >&5
24614 echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24616
24617 ( exit $ac_status )
24618 if test "$ac_cv_type_long_long" = yes; then
24619      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24620 See \`config.log' for more details." >&5
24621 echo "$as_me: error: cannot compute sizeof (long long)
24622 See \`config.log' for more details." >&2;}
24623    { (exit 77); exit 77; }; }
24624    else
24625      ac_cv_sizeof_long_long=0
24626    fi
24627 fi
24628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24629 fi
24630 rm -f conftest.val
24631 fi
24632 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24633 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24634
24635
24636
24637 cat >>confdefs.h <<_ACEOF
24638 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24639 _ACEOF
24640
24641
24642         if test "$ac_cv_sizeof_long_long" != "0"; then
24643                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
24644         fi
24645     ;;
24646     * )
24647         { echo "$as_me:$LINENO: checking for long long" >&5
24648 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24649 if test "${ac_cv_type_long_long+set}" = set; then
24650   echo $ECHO_N "(cached) $ECHO_C" >&6
24651 else
24652   cat >conftest.$ac_ext <<_ACEOF
24653 /* confdefs.h.  */
24654 _ACEOF
24655 cat confdefs.h >>conftest.$ac_ext
24656 cat >>conftest.$ac_ext <<_ACEOF
24657 /* end confdefs.h.  */
24658 $ac_includes_default
24659 typedef long long ac__type_new_;
24660 int
24661 main ()
24662 {
24663 if ((ac__type_new_ *) 0)
24664   return 0;
24665 if (sizeof (ac__type_new_))
24666   return 0;
24667   ;
24668   return 0;
24669 }
24670 _ACEOF
24671 rm -f conftest.$ac_objext
24672 if { (ac_try="$ac_compile"
24673 case "(($ac_try" in
24674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675   *) ac_try_echo=$ac_try;;
24676 esac
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678   (eval "$ac_compile") 2>conftest.er1
24679   ac_status=$?
24680   grep -v '^ *+' conftest.er1 >conftest.err
24681   rm -f conftest.er1
24682   cat conftest.err >&5
24683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684   (exit $ac_status); } && {
24685          test -z "$ac_c_werror_flag" ||
24686          test ! -s conftest.err
24687        } && test -s conftest.$ac_objext; then
24688   ac_cv_type_long_long=yes
24689 else
24690   echo "$as_me: failed program was:" >&5
24691 sed 's/^/| /' conftest.$ac_ext >&5
24692
24693         ac_cv_type_long_long=no
24694 fi
24695
24696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24697 fi
24698 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24699 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24700
24701 # The cast to long int works around a bug in the HP C Compiler
24702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24704 # This bug is HP SR number 8606223364.
24705 { echo "$as_me:$LINENO: checking size of long long" >&5
24706 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24707 if test "${ac_cv_sizeof_long_long+set}" = set; then
24708   echo $ECHO_N "(cached) $ECHO_C" >&6
24709 else
24710   if test "$cross_compiling" = yes; then
24711   # Depending upon the size, compute the lo and hi bounds.
24712 cat >conftest.$ac_ext <<_ACEOF
24713 /* confdefs.h.  */
24714 _ACEOF
24715 cat confdefs.h >>conftest.$ac_ext
24716 cat >>conftest.$ac_ext <<_ACEOF
24717 /* end confdefs.h.  */
24718 $ac_includes_default
24719    typedef long long ac__type_sizeof_;
24720 int
24721 main ()
24722 {
24723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24724 test_array [0] = 0
24725
24726   ;
24727   return 0;
24728 }
24729 _ACEOF
24730 rm -f conftest.$ac_objext
24731 if { (ac_try="$ac_compile"
24732 case "(($ac_try" in
24733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24734   *) ac_try_echo=$ac_try;;
24735 esac
24736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24737   (eval "$ac_compile") 2>conftest.er1
24738   ac_status=$?
24739   grep -v '^ *+' conftest.er1 >conftest.err
24740   rm -f conftest.er1
24741   cat conftest.err >&5
24742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743   (exit $ac_status); } && {
24744          test -z "$ac_c_werror_flag" ||
24745          test ! -s conftest.err
24746        } && test -s conftest.$ac_objext; then
24747   ac_lo=0 ac_mid=0
24748   while :; do
24749     cat >conftest.$ac_ext <<_ACEOF
24750 /* confdefs.h.  */
24751 _ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h.  */
24755 $ac_includes_default
24756    typedef long long ac__type_sizeof_;
24757 int
24758 main ()
24759 {
24760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24761 test_array [0] = 0
24762
24763   ;
24764   return 0;
24765 }
24766 _ACEOF
24767 rm -f conftest.$ac_objext
24768 if { (ac_try="$ac_compile"
24769 case "(($ac_try" in
24770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24771   *) ac_try_echo=$ac_try;;
24772 esac
24773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24774   (eval "$ac_compile") 2>conftest.er1
24775   ac_status=$?
24776   grep -v '^ *+' conftest.er1 >conftest.err
24777   rm -f conftest.er1
24778   cat conftest.err >&5
24779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780   (exit $ac_status); } && {
24781          test -z "$ac_c_werror_flag" ||
24782          test ! -s conftest.err
24783        } && test -s conftest.$ac_objext; then
24784   ac_hi=$ac_mid; break
24785 else
24786   echo "$as_me: failed program was:" >&5
24787 sed 's/^/| /' conftest.$ac_ext >&5
24788
24789         ac_lo=`expr $ac_mid + 1`
24790                         if test $ac_lo -le $ac_mid; then
24791                           ac_lo= ac_hi=
24792                           break
24793                         fi
24794                         ac_mid=`expr 2 '*' $ac_mid + 1`
24795 fi
24796
24797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24798   done
24799 else
24800   echo "$as_me: failed program was:" >&5
24801 sed 's/^/| /' conftest.$ac_ext >&5
24802
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 $ac_includes_default
24810    typedef long long ac__type_sizeof_;
24811 int
24812 main ()
24813 {
24814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24815 test_array [0] = 0
24816
24817   ;
24818   return 0;
24819 }
24820 _ACEOF
24821 rm -f conftest.$ac_objext
24822 if { (ac_try="$ac_compile"
24823 case "(($ac_try" in
24824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24825   *) ac_try_echo=$ac_try;;
24826 esac
24827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24828   (eval "$ac_compile") 2>conftest.er1
24829   ac_status=$?
24830   grep -v '^ *+' conftest.er1 >conftest.err
24831   rm -f conftest.er1
24832   cat conftest.err >&5
24833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834   (exit $ac_status); } && {
24835          test -z "$ac_c_werror_flag" ||
24836          test ! -s conftest.err
24837        } && test -s conftest.$ac_objext; then
24838   ac_hi=-1 ac_mid=-1
24839   while :; do
24840     cat >conftest.$ac_ext <<_ACEOF
24841 /* confdefs.h.  */
24842 _ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h.  */
24846 $ac_includes_default
24847    typedef long long ac__type_sizeof_;
24848 int
24849 main ()
24850 {
24851 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24852 test_array [0] = 0
24853
24854   ;
24855   return 0;
24856 }
24857 _ACEOF
24858 rm -f conftest.$ac_objext
24859 if { (ac_try="$ac_compile"
24860 case "(($ac_try" in
24861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24862   *) ac_try_echo=$ac_try;;
24863 esac
24864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24865   (eval "$ac_compile") 2>conftest.er1
24866   ac_status=$?
24867   grep -v '^ *+' conftest.er1 >conftest.err
24868   rm -f conftest.er1
24869   cat conftest.err >&5
24870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871   (exit $ac_status); } && {
24872          test -z "$ac_c_werror_flag" ||
24873          test ! -s conftest.err
24874        } && test -s conftest.$ac_objext; then
24875   ac_lo=$ac_mid; break
24876 else
24877   echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24879
24880         ac_hi=`expr '(' $ac_mid ')' - 1`
24881                         if test $ac_mid -le $ac_hi; then
24882                           ac_lo= ac_hi=
24883                           break
24884                         fi
24885                         ac_mid=`expr 2 '*' $ac_mid`
24886 fi
24887
24888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24889   done
24890 else
24891   echo "$as_me: failed program was:" >&5
24892 sed 's/^/| /' conftest.$ac_ext >&5
24893
24894         ac_lo= ac_hi=
24895 fi
24896
24897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24898 fi
24899
24900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24901 # Binary search between lo and hi bounds.
24902 while test "x$ac_lo" != "x$ac_hi"; do
24903   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24904   cat >conftest.$ac_ext <<_ACEOF
24905 /* confdefs.h.  */
24906 _ACEOF
24907 cat confdefs.h >>conftest.$ac_ext
24908 cat >>conftest.$ac_ext <<_ACEOF
24909 /* end confdefs.h.  */
24910 $ac_includes_default
24911    typedef long long ac__type_sizeof_;
24912 int
24913 main ()
24914 {
24915 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24916 test_array [0] = 0
24917
24918   ;
24919   return 0;
24920 }
24921 _ACEOF
24922 rm -f conftest.$ac_objext
24923 if { (ac_try="$ac_compile"
24924 case "(($ac_try" in
24925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24926   *) ac_try_echo=$ac_try;;
24927 esac
24928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24929   (eval "$ac_compile") 2>conftest.er1
24930   ac_status=$?
24931   grep -v '^ *+' conftest.er1 >conftest.err
24932   rm -f conftest.er1
24933   cat conftest.err >&5
24934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935   (exit $ac_status); } && {
24936          test -z "$ac_c_werror_flag" ||
24937          test ! -s conftest.err
24938        } && test -s conftest.$ac_objext; then
24939   ac_hi=$ac_mid
24940 else
24941   echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24943
24944         ac_lo=`expr '(' $ac_mid ')' + 1`
24945 fi
24946
24947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24948 done
24949 case $ac_lo in
24950 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24951 '') if test "$ac_cv_type_long_long" = yes; then
24952      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24953 See \`config.log' for more details." >&5
24954 echo "$as_me: error: cannot compute sizeof (long long)
24955 See \`config.log' for more details." >&2;}
24956    { (exit 77); exit 77; }; }
24957    else
24958      ac_cv_sizeof_long_long=0
24959    fi ;;
24960 esac
24961 else
24962   cat >conftest.$ac_ext <<_ACEOF
24963 /* confdefs.h.  */
24964 _ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h.  */
24968 $ac_includes_default
24969    typedef long long ac__type_sizeof_;
24970 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24971 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24972 #include <stdio.h>
24973 #include <stdlib.h>
24974 int
24975 main ()
24976 {
24977
24978   FILE *f = fopen ("conftest.val", "w");
24979   if (! f)
24980     return 1;
24981   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24982     {
24983       long int i = longval ();
24984       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24985         return 1;
24986       fprintf (f, "%ld\n", i);
24987     }
24988   else
24989     {
24990       unsigned long int i = ulongval ();
24991       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24992         return 1;
24993       fprintf (f, "%lu\n", i);
24994     }
24995   return ferror (f) || fclose (f) != 0;
24996
24997   ;
24998   return 0;
24999 }
25000 _ACEOF
25001 rm -f conftest$ac_exeext
25002 if { (ac_try="$ac_link"
25003 case "(($ac_try" in
25004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25005   *) ac_try_echo=$ac_try;;
25006 esac
25007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25008   (eval "$ac_link") 2>&5
25009   ac_status=$?
25010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25012   { (case "(($ac_try" in
25013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014   *) ac_try_echo=$ac_try;;
25015 esac
25016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017   (eval "$ac_try") 2>&5
25018   ac_status=$?
25019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020   (exit $ac_status); }; }; then
25021   ac_cv_sizeof_long_long=`cat conftest.val`
25022 else
25023   echo "$as_me: program exited with status $ac_status" >&5
25024 echo "$as_me: failed program was:" >&5
25025 sed 's/^/| /' conftest.$ac_ext >&5
25026
25027 ( exit $ac_status )
25028 if test "$ac_cv_type_long_long" = yes; then
25029      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25030 See \`config.log' for more details." >&5
25031 echo "$as_me: error: cannot compute sizeof (long long)
25032 See \`config.log' for more details." >&2;}
25033    { (exit 77); exit 77; }; }
25034    else
25035      ac_cv_sizeof_long_long=0
25036    fi
25037 fi
25038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25039 fi
25040 rm -f conftest.val
25041 fi
25042 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
25043 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
25044
25045
25046
25047 cat >>confdefs.h <<_ACEOF
25048 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
25049 _ACEOF
25050
25051
25052 esac
25053
25054 { echo "$as_me:$LINENO: checking for wchar_t" >&5
25055 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
25056 if test "${ac_cv_type_wchar_t+set}" = set; then
25057   echo $ECHO_N "(cached) $ECHO_C" >&6
25058 else
25059   cat >conftest.$ac_ext <<_ACEOF
25060 /* confdefs.h.  */
25061 _ACEOF
25062 cat confdefs.h >>conftest.$ac_ext
25063 cat >>conftest.$ac_ext <<_ACEOF
25064 /* end confdefs.h.  */
25065
25066         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25067         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25068         #  error "fake wchar_t"
25069         #endif
25070         #ifdef HAVE_WCHAR_H
25071         #  ifdef __CYGWIN__
25072         #    include <stddef.h>
25073         #  endif
25074         #  include <wchar.h>
25075         #endif
25076         #ifdef HAVE_STDLIB_H
25077         #  include <stdlib.h>
25078         #endif
25079         #include <stdio.h>
25080
25081
25082
25083 typedef wchar_t ac__type_new_;
25084 int
25085 main ()
25086 {
25087 if ((ac__type_new_ *) 0)
25088   return 0;
25089 if (sizeof (ac__type_new_))
25090   return 0;
25091   ;
25092   return 0;
25093 }
25094 _ACEOF
25095 rm -f conftest.$ac_objext
25096 if { (ac_try="$ac_compile"
25097 case "(($ac_try" in
25098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25099   *) ac_try_echo=$ac_try;;
25100 esac
25101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25102   (eval "$ac_compile") 2>conftest.er1
25103   ac_status=$?
25104   grep -v '^ *+' conftest.er1 >conftest.err
25105   rm -f conftest.er1
25106   cat conftest.err >&5
25107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); } && {
25109          test -z "$ac_c_werror_flag" ||
25110          test ! -s conftest.err
25111        } && test -s conftest.$ac_objext; then
25112   ac_cv_type_wchar_t=yes
25113 else
25114   echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25116
25117         ac_cv_type_wchar_t=no
25118 fi
25119
25120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25121 fi
25122 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
25123 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
25124
25125 # The cast to long int works around a bug in the HP C Compiler
25126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25128 # This bug is HP SR number 8606223364.
25129 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
25130 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
25131 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
25132   echo $ECHO_N "(cached) $ECHO_C" >&6
25133 else
25134   if test "$cross_compiling" = yes; then
25135   # Depending upon the size, compute the lo and hi bounds.
25136 cat >conftest.$ac_ext <<_ACEOF
25137 /* confdefs.h.  */
25138 _ACEOF
25139 cat confdefs.h >>conftest.$ac_ext
25140 cat >>conftest.$ac_ext <<_ACEOF
25141 /* end confdefs.h.  */
25142
25143         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25144         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25145         #  error "fake wchar_t"
25146         #endif
25147         #ifdef HAVE_WCHAR_H
25148         #  ifdef __CYGWIN__
25149         #    include <stddef.h>
25150         #  endif
25151         #  include <wchar.h>
25152         #endif
25153         #ifdef HAVE_STDLIB_H
25154         #  include <stdlib.h>
25155         #endif
25156         #include <stdio.h>
25157
25158
25159
25160    typedef wchar_t ac__type_sizeof_;
25161 int
25162 main ()
25163 {
25164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25165 test_array [0] = 0
25166
25167   ;
25168   return 0;
25169 }
25170 _ACEOF
25171 rm -f conftest.$ac_objext
25172 if { (ac_try="$ac_compile"
25173 case "(($ac_try" in
25174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175   *) ac_try_echo=$ac_try;;
25176 esac
25177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25178   (eval "$ac_compile") 2>conftest.er1
25179   ac_status=$?
25180   grep -v '^ *+' conftest.er1 >conftest.err
25181   rm -f conftest.er1
25182   cat conftest.err >&5
25183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184   (exit $ac_status); } && {
25185          test -z "$ac_c_werror_flag" ||
25186          test ! -s conftest.err
25187        } && test -s conftest.$ac_objext; then
25188   ac_lo=0 ac_mid=0
25189   while :; do
25190     cat >conftest.$ac_ext <<_ACEOF
25191 /* confdefs.h.  */
25192 _ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h.  */
25196
25197         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25198         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25199         #  error "fake wchar_t"
25200         #endif
25201         #ifdef HAVE_WCHAR_H
25202         #  ifdef __CYGWIN__
25203         #    include <stddef.h>
25204         #  endif
25205         #  include <wchar.h>
25206         #endif
25207         #ifdef HAVE_STDLIB_H
25208         #  include <stdlib.h>
25209         #endif
25210         #include <stdio.h>
25211
25212
25213
25214    typedef wchar_t ac__type_sizeof_;
25215 int
25216 main ()
25217 {
25218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25219 test_array [0] = 0
25220
25221   ;
25222   return 0;
25223 }
25224 _ACEOF
25225 rm -f conftest.$ac_objext
25226 if { (ac_try="$ac_compile"
25227 case "(($ac_try" in
25228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25229   *) ac_try_echo=$ac_try;;
25230 esac
25231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25232   (eval "$ac_compile") 2>conftest.er1
25233   ac_status=$?
25234   grep -v '^ *+' conftest.er1 >conftest.err
25235   rm -f conftest.er1
25236   cat conftest.err >&5
25237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238   (exit $ac_status); } && {
25239          test -z "$ac_c_werror_flag" ||
25240          test ! -s conftest.err
25241        } && test -s conftest.$ac_objext; then
25242   ac_hi=$ac_mid; break
25243 else
25244   echo "$as_me: failed program was:" >&5
25245 sed 's/^/| /' conftest.$ac_ext >&5
25246
25247         ac_lo=`expr $ac_mid + 1`
25248                         if test $ac_lo -le $ac_mid; then
25249                           ac_lo= ac_hi=
25250                           break
25251                         fi
25252                         ac_mid=`expr 2 '*' $ac_mid + 1`
25253 fi
25254
25255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25256   done
25257 else
25258   echo "$as_me: failed program was:" >&5
25259 sed 's/^/| /' conftest.$ac_ext >&5
25260
25261         cat >conftest.$ac_ext <<_ACEOF
25262 /* confdefs.h.  */
25263 _ACEOF
25264 cat confdefs.h >>conftest.$ac_ext
25265 cat >>conftest.$ac_ext <<_ACEOF
25266 /* end confdefs.h.  */
25267
25268         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25269         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25270         #  error "fake wchar_t"
25271         #endif
25272         #ifdef HAVE_WCHAR_H
25273         #  ifdef __CYGWIN__
25274         #    include <stddef.h>
25275         #  endif
25276         #  include <wchar.h>
25277         #endif
25278         #ifdef HAVE_STDLIB_H
25279         #  include <stdlib.h>
25280         #endif
25281         #include <stdio.h>
25282
25283
25284
25285    typedef wchar_t ac__type_sizeof_;
25286 int
25287 main ()
25288 {
25289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25290 test_array [0] = 0
25291
25292   ;
25293   return 0;
25294 }
25295 _ACEOF
25296 rm -f conftest.$ac_objext
25297 if { (ac_try="$ac_compile"
25298 case "(($ac_try" in
25299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25300   *) ac_try_echo=$ac_try;;
25301 esac
25302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25303   (eval "$ac_compile") 2>conftest.er1
25304   ac_status=$?
25305   grep -v '^ *+' conftest.er1 >conftest.err
25306   rm -f conftest.er1
25307   cat conftest.err >&5
25308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309   (exit $ac_status); } && {
25310          test -z "$ac_c_werror_flag" ||
25311          test ! -s conftest.err
25312        } && test -s conftest.$ac_objext; then
25313   ac_hi=-1 ac_mid=-1
25314   while :; do
25315     cat >conftest.$ac_ext <<_ACEOF
25316 /* confdefs.h.  */
25317 _ACEOF
25318 cat confdefs.h >>conftest.$ac_ext
25319 cat >>conftest.$ac_ext <<_ACEOF
25320 /* end confdefs.h.  */
25321
25322         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25323         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25324         #  error "fake wchar_t"
25325         #endif
25326         #ifdef HAVE_WCHAR_H
25327         #  ifdef __CYGWIN__
25328         #    include <stddef.h>
25329         #  endif
25330         #  include <wchar.h>
25331         #endif
25332         #ifdef HAVE_STDLIB_H
25333         #  include <stdlib.h>
25334         #endif
25335         #include <stdio.h>
25336
25337
25338
25339    typedef wchar_t ac__type_sizeof_;
25340 int
25341 main ()
25342 {
25343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25344 test_array [0] = 0
25345
25346   ;
25347   return 0;
25348 }
25349 _ACEOF
25350 rm -f conftest.$ac_objext
25351 if { (ac_try="$ac_compile"
25352 case "(($ac_try" in
25353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25354   *) ac_try_echo=$ac_try;;
25355 esac
25356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25357   (eval "$ac_compile") 2>conftest.er1
25358   ac_status=$?
25359   grep -v '^ *+' conftest.er1 >conftest.err
25360   rm -f conftest.er1
25361   cat conftest.err >&5
25362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363   (exit $ac_status); } && {
25364          test -z "$ac_c_werror_flag" ||
25365          test ! -s conftest.err
25366        } && test -s conftest.$ac_objext; then
25367   ac_lo=$ac_mid; break
25368 else
25369   echo "$as_me: failed program was:" >&5
25370 sed 's/^/| /' conftest.$ac_ext >&5
25371
25372         ac_hi=`expr '(' $ac_mid ')' - 1`
25373                         if test $ac_mid -le $ac_hi; then
25374                           ac_lo= ac_hi=
25375                           break
25376                         fi
25377                         ac_mid=`expr 2 '*' $ac_mid`
25378 fi
25379
25380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25381   done
25382 else
25383   echo "$as_me: failed program was:" >&5
25384 sed 's/^/| /' conftest.$ac_ext >&5
25385
25386         ac_lo= ac_hi=
25387 fi
25388
25389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25390 fi
25391
25392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25393 # Binary search between lo and hi bounds.
25394 while test "x$ac_lo" != "x$ac_hi"; do
25395   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25396   cat >conftest.$ac_ext <<_ACEOF
25397 /* confdefs.h.  */
25398 _ACEOF
25399 cat confdefs.h >>conftest.$ac_ext
25400 cat >>conftest.$ac_ext <<_ACEOF
25401 /* end confdefs.h.  */
25402
25403         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25404         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25405         #  error "fake wchar_t"
25406         #endif
25407         #ifdef HAVE_WCHAR_H
25408         #  ifdef __CYGWIN__
25409         #    include <stddef.h>
25410         #  endif
25411         #  include <wchar.h>
25412         #endif
25413         #ifdef HAVE_STDLIB_H
25414         #  include <stdlib.h>
25415         #endif
25416         #include <stdio.h>
25417
25418
25419
25420    typedef wchar_t ac__type_sizeof_;
25421 int
25422 main ()
25423 {
25424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25425 test_array [0] = 0
25426
25427   ;
25428   return 0;
25429 }
25430 _ACEOF
25431 rm -f conftest.$ac_objext
25432 if { (ac_try="$ac_compile"
25433 case "(($ac_try" in
25434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435   *) ac_try_echo=$ac_try;;
25436 esac
25437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25438   (eval "$ac_compile") 2>conftest.er1
25439   ac_status=$?
25440   grep -v '^ *+' conftest.er1 >conftest.err
25441   rm -f conftest.er1
25442   cat conftest.err >&5
25443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444   (exit $ac_status); } && {
25445          test -z "$ac_c_werror_flag" ||
25446          test ! -s conftest.err
25447        } && test -s conftest.$ac_objext; then
25448   ac_hi=$ac_mid
25449 else
25450   echo "$as_me: failed program was:" >&5
25451 sed 's/^/| /' conftest.$ac_ext >&5
25452
25453         ac_lo=`expr '(' $ac_mid ')' + 1`
25454 fi
25455
25456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25457 done
25458 case $ac_lo in
25459 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25460 '') if test "$ac_cv_type_wchar_t" = yes; then
25461      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25462 See \`config.log' for more details." >&5
25463 echo "$as_me: error: cannot compute sizeof (wchar_t)
25464 See \`config.log' for more details." >&2;}
25465    { (exit 77); exit 77; }; }
25466    else
25467      ac_cv_sizeof_wchar_t=0
25468    fi ;;
25469 esac
25470 else
25471   cat >conftest.$ac_ext <<_ACEOF
25472 /* confdefs.h.  */
25473 _ACEOF
25474 cat confdefs.h >>conftest.$ac_ext
25475 cat >>conftest.$ac_ext <<_ACEOF
25476 /* end confdefs.h.  */
25477
25478         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25479         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25480         #  error "fake wchar_t"
25481         #endif
25482         #ifdef HAVE_WCHAR_H
25483         #  ifdef __CYGWIN__
25484         #    include <stddef.h>
25485         #  endif
25486         #  include <wchar.h>
25487         #endif
25488         #ifdef HAVE_STDLIB_H
25489         #  include <stdlib.h>
25490         #endif
25491         #include <stdio.h>
25492
25493
25494
25495    typedef wchar_t ac__type_sizeof_;
25496 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25497 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25498 #include <stdio.h>
25499 #include <stdlib.h>
25500 int
25501 main ()
25502 {
25503
25504   FILE *f = fopen ("conftest.val", "w");
25505   if (! f)
25506     return 1;
25507   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25508     {
25509       long int i = longval ();
25510       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25511         return 1;
25512       fprintf (f, "%ld\n", i);
25513     }
25514   else
25515     {
25516       unsigned long int i = ulongval ();
25517       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25518         return 1;
25519       fprintf (f, "%lu\n", i);
25520     }
25521   return ferror (f) || fclose (f) != 0;
25522
25523   ;
25524   return 0;
25525 }
25526 _ACEOF
25527 rm -f conftest$ac_exeext
25528 if { (ac_try="$ac_link"
25529 case "(($ac_try" in
25530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25531   *) ac_try_echo=$ac_try;;
25532 esac
25533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25534   (eval "$ac_link") 2>&5
25535   ac_status=$?
25536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25538   { (case "(($ac_try" in
25539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25540   *) ac_try_echo=$ac_try;;
25541 esac
25542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25543   (eval "$ac_try") 2>&5
25544   ac_status=$?
25545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546   (exit $ac_status); }; }; then
25547   ac_cv_sizeof_wchar_t=`cat conftest.val`
25548 else
25549   echo "$as_me: program exited with status $ac_status" >&5
25550 echo "$as_me: failed program was:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25552
25553 ( exit $ac_status )
25554 if test "$ac_cv_type_wchar_t" = yes; then
25555      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25556 See \`config.log' for more details." >&5
25557 echo "$as_me: error: cannot compute sizeof (wchar_t)
25558 See \`config.log' for more details." >&2;}
25559    { (exit 77); exit 77; }; }
25560    else
25561      ac_cv_sizeof_wchar_t=0
25562    fi
25563 fi
25564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25565 fi
25566 rm -f conftest.val
25567 fi
25568 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25569 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25570
25571
25572
25573 cat >>confdefs.h <<_ACEOF
25574 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25575 _ACEOF
25576
25577
25578 if test "$ac_cv_sizeof_wchar_t" != "0"; then
25579     wxUSE_WCHAR_T=yes
25580 else
25581     wxUSE_WCHAR_T=no
25582 fi
25583
25584 { echo "$as_me:$LINENO: checking for va_copy" >&5
25585 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
25586 if test "${wx_cv_func_va_copy+set}" = set; then
25587   echo $ECHO_N "(cached) $ECHO_C" >&6
25588 else
25589
25590         ac_ext=cpp
25591 ac_cpp='$CXXCPP $CPPFLAGS'
25592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25595
25596         cat >conftest.$ac_ext <<_ACEOF
25597
25598             #include <stdarg.h>
25599             void foo(char *f, ...)
25600             {
25601                 va_list ap1, ap2;
25602                 va_start(ap1, f);
25603                 va_copy(ap2, ap1);
25604                 va_end(ap2);
25605                 va_end(ap1);
25606             }
25607             int main()
25608             {
25609                 foo("hi", 17);
25610                 return 0;
25611             }
25612 _ACEOF
25613 rm -f conftest.$ac_objext conftest$ac_exeext
25614 if { (ac_try="$ac_link"
25615 case "(($ac_try" in
25616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25617   *) ac_try_echo=$ac_try;;
25618 esac
25619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25620   (eval "$ac_link") 2>conftest.er1
25621   ac_status=$?
25622   grep -v '^ *+' conftest.er1 >conftest.err
25623   rm -f conftest.er1
25624   cat conftest.err >&5
25625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626   (exit $ac_status); } && {
25627          test -z "$ac_cxx_werror_flag" ||
25628          test ! -s conftest.err
25629        } && test -s conftest$ac_exeext &&
25630        $as_test_x conftest$ac_exeext; then
25631   wx_cv_func_va_copy=yes
25632 else
25633   echo "$as_me: failed program was:" >&5
25634 sed 's/^/| /' conftest.$ac_ext >&5
25635
25636         wx_cv_func_va_copy=no
25637
25638 fi
25639
25640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25641       conftest$ac_exeext conftest.$ac_ext
25642         ac_ext=c
25643 ac_cpp='$CPP $CPPFLAGS'
25644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25647
25648
25649
25650 fi
25651 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
25652 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
25653
25654 if test $wx_cv_func_va_copy = "yes"; then
25655     cat >>confdefs.h <<\_ACEOF
25656 #define HAVE_VA_COPY 1
25657 _ACEOF
25658
25659 else
25660         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
25661 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
25662 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
25663   echo $ECHO_N "(cached) $ECHO_C" >&6
25664 else
25665
25666             if test "$cross_compiling" = yes; then
25667                   wx_cv_type_va_list_lvalue=yes
25668
25669 else
25670   cat >conftest.$ac_ext <<_ACEOF
25671
25672                 #include <stdarg.h>
25673                 int foo(char *f, ...)
25674                 {
25675                     va_list ap1, ap2;
25676                     va_start(ap1, f);
25677                     ap2 = ap1;
25678                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
25679                         return 1;
25680                     va_end(ap2);
25681                     va_end(ap1);
25682                     return 0;
25683                 }
25684                 int main()
25685                 {
25686                     return foo("hi", 17);
25687                 }
25688 _ACEOF
25689 rm -f conftest$ac_exeext
25690 if { (ac_try="$ac_link"
25691 case "(($ac_try" in
25692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25693   *) ac_try_echo=$ac_try;;
25694 esac
25695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25696   (eval "$ac_link") 2>&5
25697   ac_status=$?
25698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25700   { (case "(($ac_try" in
25701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25702   *) ac_try_echo=$ac_try;;
25703 esac
25704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25705   (eval "$ac_try") 2>&5
25706   ac_status=$?
25707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708   (exit $ac_status); }; }; then
25709   wx_cv_type_va_list_lvalue=yes
25710 else
25711   echo "$as_me: program exited with status $ac_status" >&5
25712 echo "$as_me: failed program was:" >&5
25713 sed 's/^/| /' conftest.$ac_ext >&5
25714
25715 ( exit $ac_status )
25716 wx_cv_type_va_list_lvalue=no
25717 fi
25718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25719 fi
25720
25721
25722
25723
25724 fi
25725 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
25726 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
25727
25728     if test $wx_cv_type_va_list_lvalue != "yes"; then
25729                         cat >>confdefs.h <<\_ACEOF
25730 #define VA_LIST_IS_ARRAY 1
25731 _ACEOF
25732
25733     fi
25734 fi
25735
25736 if test "$wxUSE_VARARG_MACROS" = "yes"; then
25737
25738 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
25739 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
25740 if test "${wx_cv_have_variadic_macros+set}" = set; then
25741   echo $ECHO_N "(cached) $ECHO_C" >&6
25742 else
25743
25744                         ac_ext=cpp
25745 ac_cpp='$CXXCPP $CPPFLAGS'
25746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25749
25750         cat >conftest.$ac_ext <<_ACEOF
25751 /* confdefs.h.  */
25752 _ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h.  */
25756
25757                     #include <stdio.h>
25758                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
25759
25760 int
25761 main ()
25762 {
25763
25764                     test("%s %d %p", "test", 1, 0);
25765
25766
25767   ;
25768   return 0;
25769 }
25770 _ACEOF
25771 rm -f conftest.$ac_objext
25772 if { (ac_try="$ac_compile"
25773 case "(($ac_try" in
25774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25775   *) ac_try_echo=$ac_try;;
25776 esac
25777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25778   (eval "$ac_compile") 2>conftest.er1
25779   ac_status=$?
25780   grep -v '^ *+' conftest.er1 >conftest.err
25781   rm -f conftest.er1
25782   cat conftest.err >&5
25783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784   (exit $ac_status); } && {
25785          test -z "$ac_cxx_werror_flag" ||
25786          test ! -s conftest.err
25787        } && test -s conftest.$ac_objext; then
25788   wx_cv_have_variadic_macros=yes
25789 else
25790   echo "$as_me: failed program was:" >&5
25791 sed 's/^/| /' conftest.$ac_ext >&5
25792
25793         wx_cv_have_variadic_macros=no
25794
25795 fi
25796
25797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25798         ac_ext=c
25799 ac_cpp='$CPP $CPPFLAGS'
25800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25803
25804
25805
25806 fi
25807 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
25808 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
25809
25810 if test $wx_cv_have_variadic_macros = "yes"; then
25811     cat >>confdefs.h <<\_ACEOF
25812 #define HAVE_VARIADIC_MACROS 1
25813 _ACEOF
25814
25815 fi
25816
25817 fi
25818 # Check whether --enable-largefile was given.
25819 if test "${enable_largefile+set}" = set; then
25820   enableval=$enable_largefile;
25821 fi
25822
25823 if test "$enable_largefile" != no; then
25824             wx_largefile=no
25825
25826     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25827 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25828 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25829   echo $ECHO_N "(cached) $ECHO_C" >&6
25830 else
25831
25832           cat >conftest.$ac_ext <<_ACEOF
25833 /* confdefs.h.  */
25834 _ACEOF
25835 cat confdefs.h >>conftest.$ac_ext
25836 cat >>conftest.$ac_ext <<_ACEOF
25837 /* end confdefs.h.  */
25838 #define _FILE_OFFSET_BITS 64
25839                           #include <sys/types.h>
25840 int
25841 main ()
25842 {
25843 typedef struct {
25844     unsigned int field: sizeof(off_t) == 8;
25845 } wxlf;
25846
25847   ;
25848   return 0;
25849 }
25850 _ACEOF
25851 rm -f conftest.$ac_objext
25852 if { (ac_try="$ac_compile"
25853 case "(($ac_try" in
25854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25855   *) ac_try_echo=$ac_try;;
25856 esac
25857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25858   (eval "$ac_compile") 2>conftest.er1
25859   ac_status=$?
25860   grep -v '^ *+' conftest.er1 >conftest.err
25861   rm -f conftest.er1
25862   cat conftest.err >&5
25863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864   (exit $ac_status); } && {
25865          test -z "$ac_c_werror_flag" ||
25866          test ! -s conftest.err
25867        } && test -s conftest.$ac_objext; then
25868   ac_cv_sys_file_offset_bits=64
25869 else
25870   echo "$as_me: failed program was:" >&5
25871 sed 's/^/| /' conftest.$ac_ext >&5
25872
25873         ac_cv_sys_file_offset_bits=no
25874 fi
25875
25876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25877
25878
25879 fi
25880 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25881 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25882
25883     if test "$ac_cv_sys_file_offset_bits" != no; then
25884         wx_largefile=yes
25885         cat >>confdefs.h <<_ACEOF
25886 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25887 _ACEOF
25888
25889     fi
25890
25891     if test "x$wx_largefile" != "xyes"; then
25892
25893     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25894 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25895 if test "${ac_cv_sys_large_files+set}" = set; then
25896   echo $ECHO_N "(cached) $ECHO_C" >&6
25897 else
25898
25899           cat >conftest.$ac_ext <<_ACEOF
25900 /* confdefs.h.  */
25901 _ACEOF
25902 cat confdefs.h >>conftest.$ac_ext
25903 cat >>conftest.$ac_ext <<_ACEOF
25904 /* end confdefs.h.  */
25905 #define _LARGE_FILES 1
25906                           #include <sys/types.h>
25907 int
25908 main ()
25909 {
25910 typedef struct {
25911     unsigned int field: sizeof(off_t) == 8;
25912 } wxlf;
25913
25914   ;
25915   return 0;
25916 }
25917 _ACEOF
25918 rm -f conftest.$ac_objext
25919 if { (ac_try="$ac_compile"
25920 case "(($ac_try" in
25921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25922   *) ac_try_echo=$ac_try;;
25923 esac
25924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25925   (eval "$ac_compile") 2>conftest.er1
25926   ac_status=$?
25927   grep -v '^ *+' conftest.er1 >conftest.err
25928   rm -f conftest.er1
25929   cat conftest.err >&5
25930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931   (exit $ac_status); } && {
25932          test -z "$ac_c_werror_flag" ||
25933          test ! -s conftest.err
25934        } && test -s conftest.$ac_objext; then
25935   ac_cv_sys_large_files=1
25936 else
25937   echo "$as_me: failed program was:" >&5
25938 sed 's/^/| /' conftest.$ac_ext >&5
25939
25940         ac_cv_sys_large_files=no
25941 fi
25942
25943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25944
25945
25946 fi
25947 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25948 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25949
25950     if test "$ac_cv_sys_large_files" != no; then
25951         wx_largefile=yes
25952         cat >>confdefs.h <<_ACEOF
25953 #define _LARGE_FILES $ac_cv_sys_large_files
25954 _ACEOF
25955
25956     fi
25957
25958     fi
25959
25960     { echo "$as_me:$LINENO: checking if large file support is available" >&5
25961 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
25962     if test "x$wx_largefile" = "xyes"; then
25963         cat >>confdefs.h <<\_ACEOF
25964 #define HAVE_LARGEFILE_SUPPORT 1
25965 _ACEOF
25966
25967     fi
25968     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
25969 echo "${ECHO_T}$wx_largefile" >&6; }
25970 fi
25971
25972
25973 if test "x$wx_largefile" = "xyes"; then
25974     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
25975         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
25976
25977                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
25978             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
25979 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
25980 if test "${wx_cv_STDC_EXT_required+set}" = set; then
25981   echo $ECHO_N "(cached) $ECHO_C" >&6
25982 else
25983
25984                     ac_ext=cpp
25985 ac_cpp='$CXXCPP $CPPFLAGS'
25986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25989
25990                     cat >conftest.$ac_ext <<_ACEOF
25991 /* confdefs.h.  */
25992 _ACEOF
25993 cat confdefs.h >>conftest.$ac_ext
25994 cat >>conftest.$ac_ext <<_ACEOF
25995 /* end confdefs.h.  */
25996
25997 int
25998 main ()
25999 {
26000
26001                             #ifndef __STDC_EXT__
26002                                 choke me
26003                             #endif
26004
26005   ;
26006   return 0;
26007 }
26008 _ACEOF
26009 rm -f conftest.$ac_objext
26010 if { (ac_try="$ac_compile"
26011 case "(($ac_try" in
26012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26013   *) ac_try_echo=$ac_try;;
26014 esac
26015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26016   (eval "$ac_compile") 2>conftest.er1
26017   ac_status=$?
26018   grep -v '^ *+' conftest.er1 >conftest.err
26019   rm -f conftest.er1
26020   cat conftest.err >&5
26021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022   (exit $ac_status); } && {
26023          test -z "$ac_cxx_werror_flag" ||
26024          test ! -s conftest.err
26025        } && test -s conftest.$ac_objext; then
26026   wx_cv_STDC_EXT_required=no
26027 else
26028   echo "$as_me: failed program was:" >&5
26029 sed 's/^/| /' conftest.$ac_ext >&5
26030
26031         wx_cv_STDC_EXT_required=yes
26032
26033 fi
26034
26035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26036                     ac_ext=c
26037 ac_cpp='$CPP $CPPFLAGS'
26038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26041
26042
26043
26044 fi
26045 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
26046 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
26047             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
26048                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
26049             fi
26050         fi
26051     else
26052         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
26053     fi
26054         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
26055 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
26056 if test "${ac_cv_sys_largefile_source+set}" = set; then
26057   echo $ECHO_N "(cached) $ECHO_C" >&6
26058 else
26059   while :; do
26060   cat >conftest.$ac_ext <<_ACEOF
26061 /* confdefs.h.  */
26062 _ACEOF
26063 cat confdefs.h >>conftest.$ac_ext
26064 cat >>conftest.$ac_ext <<_ACEOF
26065 /* end confdefs.h.  */
26066 #include <sys/types.h> /* for off_t */
26067      #include <stdio.h>
26068 int
26069 main ()
26070 {
26071 int (*fp) (FILE *, off_t, int) = fseeko;
26072      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
26073   ;
26074   return 0;
26075 }
26076 _ACEOF
26077 rm -f conftest.$ac_objext conftest$ac_exeext
26078 if { (ac_try="$ac_link"
26079 case "(($ac_try" in
26080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26081   *) ac_try_echo=$ac_try;;
26082 esac
26083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26084   (eval "$ac_link") 2>conftest.er1
26085   ac_status=$?
26086   grep -v '^ *+' conftest.er1 >conftest.err
26087   rm -f conftest.er1
26088   cat conftest.err >&5
26089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090   (exit $ac_status); } && {
26091          test -z "$ac_c_werror_flag" ||
26092          test ! -s conftest.err
26093        } && test -s conftest$ac_exeext &&
26094        $as_test_x conftest$ac_exeext; then
26095   ac_cv_sys_largefile_source=no; break
26096 else
26097   echo "$as_me: failed program was:" >&5
26098 sed 's/^/| /' conftest.$ac_ext >&5
26099
26100
26101 fi
26102
26103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26104       conftest$ac_exeext conftest.$ac_ext
26105   cat >conftest.$ac_ext <<_ACEOF
26106 /* confdefs.h.  */
26107 _ACEOF
26108 cat confdefs.h >>conftest.$ac_ext
26109 cat >>conftest.$ac_ext <<_ACEOF
26110 /* end confdefs.h.  */
26111 #define _LARGEFILE_SOURCE 1
26112 #include <sys/types.h> /* for off_t */
26113      #include <stdio.h>
26114 int
26115 main ()
26116 {
26117 int (*fp) (FILE *, off_t, int) = fseeko;
26118      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
26119   ;
26120   return 0;
26121 }
26122 _ACEOF
26123 rm -f conftest.$ac_objext conftest$ac_exeext
26124 if { (ac_try="$ac_link"
26125 case "(($ac_try" in
26126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26127   *) ac_try_echo=$ac_try;;
26128 esac
26129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26130   (eval "$ac_link") 2>conftest.er1
26131   ac_status=$?
26132   grep -v '^ *+' conftest.er1 >conftest.err
26133   rm -f conftest.er1
26134   cat conftest.err >&5
26135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136   (exit $ac_status); } && {
26137          test -z "$ac_c_werror_flag" ||
26138          test ! -s conftest.err
26139        } && test -s conftest$ac_exeext &&
26140        $as_test_x conftest$ac_exeext; then
26141   ac_cv_sys_largefile_source=1; break
26142 else
26143   echo "$as_me: failed program was:" >&5
26144 sed 's/^/| /' conftest.$ac_ext >&5
26145
26146
26147 fi
26148
26149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26150       conftest$ac_exeext conftest.$ac_ext
26151   ac_cv_sys_largefile_source=unknown
26152   break
26153 done
26154 fi
26155 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
26156 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
26157 case $ac_cv_sys_largefile_source in #(
26158   no | unknown) ;;
26159   *)
26160 cat >>confdefs.h <<_ACEOF
26161 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
26162 _ACEOF
26163 ;;
26164 esac
26165 rm -f conftest*
26166
26167 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
26168 # in glibc 2.1.3, but that breaks too many other things.
26169 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
26170 if test $ac_cv_sys_largefile_source != unknown; then
26171
26172 cat >>confdefs.h <<\_ACEOF
26173 #define HAVE_FSEEKO 1
26174 _ACEOF
26175
26176 fi
26177
26178     if test "$ac_cv_sys_largefile_source" != no; then
26179         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
26180     fi
26181 fi
26182
26183 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26184 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
26185 if test "${ac_cv_c_bigendian+set}" = set; then
26186   echo $ECHO_N "(cached) $ECHO_C" >&6
26187 else
26188   ac_cv_c_bigendian=unknown
26189 # See if sys/param.h defines the BYTE_ORDER macro.
26190 cat >conftest.$ac_ext <<_ACEOF
26191 /* confdefs.h.  */
26192 _ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h.  */
26196 #include <sys/types.h>
26197 #include <sys/param.h>
26198 int
26199 main ()
26200 {
26201
26202 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26203  bogus endian macros
26204 #endif
26205   ;
26206   return 0;
26207 }
26208 _ACEOF
26209 rm -f conftest.$ac_objext
26210 if { (ac_try="$ac_compile"
26211 case "(($ac_try" in
26212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26213   *) ac_try_echo=$ac_try;;
26214 esac
26215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26216   (eval "$ac_compile") 2>conftest.er1
26217   ac_status=$?
26218   grep -v '^ *+' conftest.er1 >conftest.err
26219   rm -f conftest.er1
26220   cat conftest.err >&5
26221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222   (exit $ac_status); } && {
26223          test -z "$ac_c_werror_flag" ||
26224          test ! -s conftest.err
26225        } && test -s conftest.$ac_objext; then
26226   # It does; now see whether it defined to BIG_ENDIAN or not.
26227 cat >conftest.$ac_ext <<_ACEOF
26228 /* confdefs.h.  */
26229 _ACEOF
26230 cat confdefs.h >>conftest.$ac_ext
26231 cat >>conftest.$ac_ext <<_ACEOF
26232 /* end confdefs.h.  */
26233 #include <sys/types.h>
26234 #include <sys/param.h>
26235 int
26236 main ()
26237 {
26238
26239 #if BYTE_ORDER != BIG_ENDIAN
26240  not big endian
26241 #endif
26242   ;
26243   return 0;
26244 }
26245 _ACEOF
26246 rm -f conftest.$ac_objext
26247 if { (ac_try="$ac_compile"
26248 case "(($ac_try" in
26249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250   *) ac_try_echo=$ac_try;;
26251 esac
26252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26253   (eval "$ac_compile") 2>conftest.er1
26254   ac_status=$?
26255   grep -v '^ *+' conftest.er1 >conftest.err
26256   rm -f conftest.er1
26257   cat conftest.err >&5
26258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259   (exit $ac_status); } && {
26260          test -z "$ac_c_werror_flag" ||
26261          test ! -s conftest.err
26262        } && test -s conftest.$ac_objext; then
26263   ac_cv_c_bigendian=yes
26264 else
26265   echo "$as_me: failed program was:" >&5
26266 sed 's/^/| /' conftest.$ac_ext >&5
26267
26268         ac_cv_c_bigendian=no
26269 fi
26270
26271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26272 else
26273   echo "$as_me: failed program was:" >&5
26274 sed 's/^/| /' conftest.$ac_ext >&5
26275
26276
26277 fi
26278
26279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26280 if test $ac_cv_c_bigendian = unknown; then
26281 if test "$cross_compiling" = yes; then
26282   ac_cv_c_bigendian=unknown
26283 else
26284   cat >conftest.$ac_ext <<_ACEOF
26285 /* confdefs.h.  */
26286 _ACEOF
26287 cat confdefs.h >>conftest.$ac_ext
26288 cat >>conftest.$ac_ext <<_ACEOF
26289 /* end confdefs.h.  */
26290 main () {
26291   /* Are we little or big endian?  From Harbison&Steele.  */
26292   union
26293   {
26294     long l;
26295     char c[sizeof (long)];
26296   } u;
26297   u.l = 1;
26298   exit (u.c[sizeof (long) - 1] == 1);
26299 }
26300 _ACEOF
26301 rm -f conftest$ac_exeext
26302 if { (ac_try="$ac_link"
26303 case "(($ac_try" in
26304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26305   *) ac_try_echo=$ac_try;;
26306 esac
26307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26308   (eval "$ac_link") 2>&5
26309   ac_status=$?
26310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26312   { (case "(($ac_try" in
26313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26314   *) ac_try_echo=$ac_try;;
26315 esac
26316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26317   (eval "$ac_try") 2>&5
26318   ac_status=$?
26319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320   (exit $ac_status); }; }; then
26321   ac_cv_c_bigendian=no
26322 else
26323   echo "$as_me: program exited with status $ac_status" >&5
26324 echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26326
26327 ( exit $ac_status )
26328 ac_cv_c_bigendian=yes
26329 fi
26330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26331 fi
26332
26333
26334 fi
26335 fi
26336 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26337 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
26338 if test $ac_cv_c_bigendian = unknown; then
26339   { 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
26340 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;}
26341 fi
26342 if test $ac_cv_c_bigendian = yes; then
26343   cat >>confdefs.h <<\_ACEOF
26344 #define WORDS_BIGENDIAN 1
26345 _ACEOF
26346
26347 fi
26348
26349
26350
26351
26352     ac_ext=cpp
26353 ac_cpp='$CXXCPP $CPPFLAGS'
26354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26357
26358
26359
26360 for ac_header in iostream
26361 do
26362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26366   echo $ECHO_N "(cached) $ECHO_C" >&6
26367 else
26368   cat >conftest.$ac_ext <<_ACEOF
26369 /* confdefs.h.  */
26370 _ACEOF
26371 cat confdefs.h >>conftest.$ac_ext
26372 cat >>conftest.$ac_ext <<_ACEOF
26373 /* end confdefs.h.  */
26374
26375
26376 #include <$ac_header>
26377 _ACEOF
26378 rm -f conftest.$ac_objext
26379 if { (ac_try="$ac_compile"
26380 case "(($ac_try" in
26381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26382   *) ac_try_echo=$ac_try;;
26383 esac
26384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26385   (eval "$ac_compile") 2>conftest.er1
26386   ac_status=$?
26387   grep -v '^ *+' conftest.er1 >conftest.err
26388   rm -f conftest.er1
26389   cat conftest.err >&5
26390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391   (exit $ac_status); } && {
26392          test -z "$ac_cxx_werror_flag" ||
26393          test ! -s conftest.err
26394        } && test -s conftest.$ac_objext; then
26395   eval "$as_ac_Header=yes"
26396 else
26397   echo "$as_me: failed program was:" >&5
26398 sed 's/^/| /' conftest.$ac_ext >&5
26399
26400         eval "$as_ac_Header=no"
26401 fi
26402
26403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26404 fi
26405 ac_res=`eval echo '${'$as_ac_Header'}'`
26406                { echo "$as_me:$LINENO: result: $ac_res" >&5
26407 echo "${ECHO_T}$ac_res" >&6; }
26408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26409   cat >>confdefs.h <<_ACEOF
26410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26411 _ACEOF
26412
26413 fi
26414
26415 done
26416
26417
26418     if test "$ac_cv_header_iostream" = "yes" ; then
26419       :
26420     else
26421       cat >>confdefs.h <<\_ACEOF
26422 #define wxUSE_IOSTREAMH 1
26423 _ACEOF
26424
26425     fi
26426
26427     ac_ext=c
26428 ac_cpp='$CPP $CPPFLAGS'
26429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26432
26433
26434
26435
26436   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
26437 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
26438 if test "${wx_cv_cpp_bool+set}" = set; then
26439   echo $ECHO_N "(cached) $ECHO_C" >&6
26440 else
26441
26442
26443     ac_ext=cpp
26444 ac_cpp='$CXXCPP $CPPFLAGS'
26445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26448
26449
26450     cat >conftest.$ac_ext <<_ACEOF
26451 /* confdefs.h.  */
26452 _ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h.  */
26456
26457
26458 int
26459 main ()
26460 {
26461
26462         bool b = true;
26463
26464         return 0;
26465
26466   ;
26467   return 0;
26468 }
26469 _ACEOF
26470 rm -f conftest.$ac_objext
26471 if { (ac_try="$ac_compile"
26472 case "(($ac_try" in
26473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474   *) ac_try_echo=$ac_try;;
26475 esac
26476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26477   (eval "$ac_compile") 2>conftest.er1
26478   ac_status=$?
26479   grep -v '^ *+' conftest.er1 >conftest.err
26480   rm -f conftest.er1
26481   cat conftest.err >&5
26482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483   (exit $ac_status); } && {
26484          test -z "$ac_cxx_werror_flag" ||
26485          test ! -s conftest.err
26486        } && test -s conftest.$ac_objext; then
26487
26488         wx_cv_cpp_bool=yes
26489
26490 else
26491   echo "$as_me: failed program was:" >&5
26492 sed 's/^/| /' conftest.$ac_ext >&5
26493
26494
26495         wx_cv_cpp_bool=no
26496
26497
26498 fi
26499
26500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26501
26502     ac_ext=c
26503 ac_cpp='$CPP $CPPFLAGS'
26504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26507
26508
26509 fi
26510 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
26511 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
26512
26513   if test "$wx_cv_cpp_bool" = "yes"; then
26514     cat >>confdefs.h <<\_ACEOF
26515 #define HAVE_BOOL 1
26516 _ACEOF
26517
26518   fi
26519
26520
26521
26522   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
26523 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
26524 if test "${wx_cv_explicit+set}" = set; then
26525   echo $ECHO_N "(cached) $ECHO_C" >&6
26526 else
26527
26528
26529     ac_ext=cpp
26530 ac_cpp='$CXXCPP $CPPFLAGS'
26531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26534
26535
26536             cat >conftest.$ac_ext <<_ACEOF
26537 /* confdefs.h.  */
26538 _ACEOF
26539 cat confdefs.h >>conftest.$ac_ext
26540 cat >>conftest.$ac_ext <<_ACEOF
26541 /* end confdefs.h.  */
26542
26543         class Foo { public: explicit Foo(int) {} };
26544
26545 int
26546 main ()
26547 {
26548
26549         return 0;
26550
26551   ;
26552   return 0;
26553 }
26554 _ACEOF
26555 rm -f conftest.$ac_objext
26556 if { (ac_try="$ac_compile"
26557 case "(($ac_try" in
26558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26559   *) ac_try_echo=$ac_try;;
26560 esac
26561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26562   (eval "$ac_compile") 2>conftest.er1
26563   ac_status=$?
26564   grep -v '^ *+' conftest.er1 >conftest.err
26565   rm -f conftest.er1
26566   cat conftest.err >&5
26567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568   (exit $ac_status); } && {
26569          test -z "$ac_cxx_werror_flag" ||
26570          test ! -s conftest.err
26571        } && test -s conftest.$ac_objext; then
26572
26573         cat >conftest.$ac_ext <<_ACEOF
26574 /* confdefs.h.  */
26575 _ACEOF
26576 cat confdefs.h >>conftest.$ac_ext
26577 cat >>conftest.$ac_ext <<_ACEOF
26578 /* end confdefs.h.  */
26579
26580                 class Foo { public: explicit Foo(int) {} };
26581                 static void TakeFoo(const Foo& foo) { }
26582
26583 int
26584 main ()
26585 {
26586
26587                 TakeFoo(17);
26588                 return 0;
26589
26590   ;
26591   return 0;
26592 }
26593 _ACEOF
26594 rm -f conftest.$ac_objext
26595 if { (ac_try="$ac_compile"
26596 case "(($ac_try" in
26597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26598   *) ac_try_echo=$ac_try;;
26599 esac
26600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26601   (eval "$ac_compile") 2>conftest.er1
26602   ac_status=$?
26603   grep -v '^ *+' conftest.er1 >conftest.err
26604   rm -f conftest.er1
26605   cat conftest.err >&5
26606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607   (exit $ac_status); } && {
26608          test -z "$ac_cxx_werror_flag" ||
26609          test ! -s conftest.err
26610        } && test -s conftest.$ac_objext; then
26611   wx_cv_explicit=no
26612 else
26613   echo "$as_me: failed program was:" >&5
26614 sed 's/^/| /' conftest.$ac_ext >&5
26615
26616         wx_cv_explicit=yes
26617
26618 fi
26619
26620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26621
26622 else
26623   echo "$as_me: failed program was:" >&5
26624 sed 's/^/| /' conftest.$ac_ext >&5
26625
26626         wx_cv_explicit=no
26627
26628 fi
26629
26630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26631
26632     ac_ext=c
26633 ac_cpp='$CPP $CPPFLAGS'
26634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26637
26638
26639 fi
26640 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
26641 echo "${ECHO_T}$wx_cv_explicit" >&6; }
26642
26643   if test "$wx_cv_explicit" = "yes"; then
26644     cat >>confdefs.h <<\_ACEOF
26645 #define HAVE_EXPLICIT 1
26646 _ACEOF
26647
26648   fi
26649
26650
26651 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
26652 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
26653 if test "${ac_cv_cxx_const_cast+set}" = set; then
26654   echo $ECHO_N "(cached) $ECHO_C" >&6
26655 else
26656
26657  ac_ext=cpp
26658 ac_cpp='$CXXCPP $CPPFLAGS'
26659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26662
26663  cat >conftest.$ac_ext <<_ACEOF
26664 /* confdefs.h.  */
26665 _ACEOF
26666 cat confdefs.h >>conftest.$ac_ext
26667 cat >>conftest.$ac_ext <<_ACEOF
26668 /* end confdefs.h.  */
26669
26670 int
26671 main ()
26672 {
26673 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
26674   ;
26675   return 0;
26676 }
26677 _ACEOF
26678 rm -f conftest.$ac_objext
26679 if { (ac_try="$ac_compile"
26680 case "(($ac_try" in
26681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26682   *) ac_try_echo=$ac_try;;
26683 esac
26684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26685   (eval "$ac_compile") 2>conftest.er1
26686   ac_status=$?
26687   grep -v '^ *+' conftest.er1 >conftest.err
26688   rm -f conftest.er1
26689   cat conftest.err >&5
26690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691   (exit $ac_status); } && {
26692          test -z "$ac_cxx_werror_flag" ||
26693          test ! -s conftest.err
26694        } && test -s conftest.$ac_objext; then
26695   ac_cv_cxx_const_cast=yes
26696 else
26697   echo "$as_me: failed program was:" >&5
26698 sed 's/^/| /' conftest.$ac_ext >&5
26699
26700         ac_cv_cxx_const_cast=no
26701 fi
26702
26703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26704  ac_ext=c
26705 ac_cpp='$CPP $CPPFLAGS'
26706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26709
26710
26711 fi
26712 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
26713 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
26714 if test "$ac_cv_cxx_const_cast" = yes; then
26715
26716 cat >>confdefs.h <<\_ACEOF
26717 #define HAVE_CONST_CAST
26718 _ACEOF
26719
26720 fi
26721
26722 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
26723 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
26724 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
26725   echo $ECHO_N "(cached) $ECHO_C" >&6
26726 else
26727
26728  ac_ext=cpp
26729 ac_cpp='$CXXCPP $CPPFLAGS'
26730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26733
26734  cat >conftest.$ac_ext <<_ACEOF
26735 /* confdefs.h.  */
26736 _ACEOF
26737 cat confdefs.h >>conftest.$ac_ext
26738 cat >>conftest.$ac_ext <<_ACEOF
26739 /* end confdefs.h.  */
26740 #include <typeinfo>
26741 class Base { public : Base () {} virtual void f () = 0;};
26742 class Derived : public Base { public : Derived () {} virtual void f () {} };
26743 class Unrelated { public : Unrelated () {} };
26744 int g (Unrelated&) { return 0; }
26745 int
26746 main ()
26747 {
26748
26749 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
26750   ;
26751   return 0;
26752 }
26753 _ACEOF
26754 rm -f conftest.$ac_objext
26755 if { (ac_try="$ac_compile"
26756 case "(($ac_try" in
26757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26758   *) ac_try_echo=$ac_try;;
26759 esac
26760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26761   (eval "$ac_compile") 2>conftest.er1
26762   ac_status=$?
26763   grep -v '^ *+' conftest.er1 >conftest.err
26764   rm -f conftest.er1
26765   cat conftest.err >&5
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); } && {
26768          test -z "$ac_cxx_werror_flag" ||
26769          test ! -s conftest.err
26770        } && test -s conftest.$ac_objext; then
26771   ac_cv_cxx_reinterpret_cast=yes
26772 else
26773   echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26775
26776         ac_cv_cxx_reinterpret_cast=no
26777 fi
26778
26779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26780  ac_ext=c
26781 ac_cpp='$CPP $CPPFLAGS'
26782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26785
26786
26787 fi
26788 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
26789 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
26790 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
26791
26792 cat >>confdefs.h <<\_ACEOF
26793 #define HAVE_REINTERPRET_CAST
26794 _ACEOF
26795
26796 fi
26797
26798 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
26799 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
26800 if test "${ac_cv_cxx_static_cast+set}" = set; then
26801   echo $ECHO_N "(cached) $ECHO_C" >&6
26802 else
26803
26804  ac_ext=cpp
26805 ac_cpp='$CXXCPP $CPPFLAGS'
26806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26809
26810  cat >conftest.$ac_ext <<_ACEOF
26811 /* confdefs.h.  */
26812 _ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h.  */
26816 #include <typeinfo>
26817 class Base { public : Base () {} virtual void f () = 0; };
26818 class Derived : public Base { public : Derived () {} virtual void f () {} };
26819 int g (Derived&) { return 0; }
26820 int
26821 main ()
26822 {
26823
26824 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
26825   ;
26826   return 0;
26827 }
26828 _ACEOF
26829 rm -f conftest.$ac_objext
26830 if { (ac_try="$ac_compile"
26831 case "(($ac_try" in
26832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26833   *) ac_try_echo=$ac_try;;
26834 esac
26835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26836   (eval "$ac_compile") 2>conftest.er1
26837   ac_status=$?
26838   grep -v '^ *+' conftest.er1 >conftest.err
26839   rm -f conftest.er1
26840   cat conftest.err >&5
26841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842   (exit $ac_status); } && {
26843          test -z "$ac_cxx_werror_flag" ||
26844          test ! -s conftest.err
26845        } && test -s conftest.$ac_objext; then
26846   ac_cv_cxx_static_cast=yes
26847 else
26848   echo "$as_me: failed program was:" >&5
26849 sed 's/^/| /' conftest.$ac_ext >&5
26850
26851         ac_cv_cxx_static_cast=no
26852 fi
26853
26854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26855  ac_ext=c
26856 ac_cpp='$CPP $CPPFLAGS'
26857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26860
26861
26862 fi
26863 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
26864 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
26865 if test "$ac_cv_cxx_static_cast" = yes; then
26866
26867 cat >>confdefs.h <<\_ACEOF
26868 #define HAVE_STATIC_CAST
26869 _ACEOF
26870
26871 fi
26872
26873
26874 if test "x$SUNCXX" = xyes; then
26875     CXXFLAGS="-features=tmplife $CXXFLAGS"
26876 fi
26877
26878 if test "x$SUNCC" = xyes; then
26879     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
26880 fi
26881
26882 if test "x$SGICC" = "xyes"; then
26883     CFLAGS="-woff 3970 $CFLAGS"
26884 fi
26885 if test "x$SGICXX" = "xyes"; then
26886     CXXFLAGS="-woff 3970 $CXXFLAGS"
26887 fi
26888
26889 if test "x$HPCC" = "xyes"; then
26890                     CFLAGS="+W 2011,2450 $CFLAGS"
26891 fi
26892 if test "x$HPCXX" = "xyes"; then
26893             CXXFLAGS="+W 2340 $CXXFLAGS"
26894 fi
26895
26896 if test "x$COMPAQCXX" = "xyes"; then
26897                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
26898 fi
26899
26900 ac_ext=cpp
26901 ac_cpp='$CXXCPP $CPPFLAGS'
26902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26905
26906
26907 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
26908     if test "$wxUSE_UNICODE" = "yes"; then
26909         std_string="std::wstring"
26910         char_type="wchar_t"
26911     else
26912         std_string="std::string"
26913         char_type="char"
26914     fi
26915
26916         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
26917 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
26918 if test "${wx_cv_class_stdstring+set}" = set; then
26919   echo $ECHO_N "(cached) $ECHO_C" >&6
26920 else
26921
26922             cat >conftest.$ac_ext <<_ACEOF
26923 /* confdefs.h.  */
26924 _ACEOF
26925 cat confdefs.h >>conftest.$ac_ext
26926 cat >>conftest.$ac_ext <<_ACEOF
26927 /* end confdefs.h.  */
26928 #include <string>
26929 int
26930 main ()
26931 {
26932 $std_string foo;
26933   ;
26934   return 0;
26935 }
26936 _ACEOF
26937 rm -f conftest.$ac_objext
26938 if { (ac_try="$ac_compile"
26939 case "(($ac_try" in
26940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26941   *) ac_try_echo=$ac_try;;
26942 esac
26943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26944   (eval "$ac_compile") 2>conftest.er1
26945   ac_status=$?
26946   grep -v '^ *+' conftest.er1 >conftest.err
26947   rm -f conftest.er1
26948   cat conftest.err >&5
26949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950   (exit $ac_status); } && {
26951          test -z "$ac_cxx_werror_flag" ||
26952          test ! -s conftest.err
26953        } && test -s conftest.$ac_objext; then
26954   wx_cv_class_stdstring=yes
26955 else
26956   echo "$as_me: failed program was:" >&5
26957 sed 's/^/| /' conftest.$ac_ext >&5
26958
26959         wx_cv_class_stdstring=no
26960
26961 fi
26962
26963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26964
26965
26966 fi
26967 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
26968 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
26969
26970     if test "$wx_cv_class_stdstring" = yes; then
26971         if test "$wxUSE_UNICODE" = "yes"; then
26972             cat >>confdefs.h <<\_ACEOF
26973 #define HAVE_STD_WSTRING 1
26974 _ACEOF
26975
26976         fi
26977                     else
26978         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
26979 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
26980 if test "${wx_cv_class_stdbasicstring+set}" = set; then
26981   echo $ECHO_N "(cached) $ECHO_C" >&6
26982 else
26983
26984                 cat >conftest.$ac_ext <<_ACEOF
26985 /* confdefs.h.  */
26986 _ACEOF
26987 cat confdefs.h >>conftest.$ac_ext
26988 cat >>conftest.$ac_ext <<_ACEOF
26989 /* end confdefs.h.  */
26990
26991                     #ifdef HAVE_WCHAR_H
26992                     #  ifdef __CYGWIN__
26993                     #    include <stddef.h>
26994                     #  endif
26995                     #  include <wchar.h>
26996                     #endif
26997                     #ifdef HAVE_STDLIB_H
26998                     #  include <stdlib.h>
26999                     #endif
27000                     #include <stdio.h>
27001                     #include <string>
27002
27003 int
27004 main ()
27005 {
27006 std::basic_string<$char_type> foo;
27007                      const $char_type* dummy = foo.c_str();
27008   ;
27009   return 0;
27010 }
27011 _ACEOF
27012 rm -f conftest.$ac_objext
27013 if { (ac_try="$ac_compile"
27014 case "(($ac_try" in
27015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27016   *) ac_try_echo=$ac_try;;
27017 esac
27018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27019   (eval "$ac_compile") 2>conftest.er1
27020   ac_status=$?
27021   grep -v '^ *+' conftest.er1 >conftest.err
27022   rm -f conftest.er1
27023   cat conftest.err >&5
27024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025   (exit $ac_status); } && {
27026          test -z "$ac_cxx_werror_flag" ||
27027          test ! -s conftest.err
27028        } && test -s conftest.$ac_objext; then
27029   wx_cv_class_stdbasicstring=yes
27030 else
27031   echo "$as_me: failed program was:" >&5
27032 sed 's/^/| /' conftest.$ac_ext >&5
27033
27034         wx_cv_class_stdbasicstring=no
27035
27036 fi
27037
27038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27039
27040
27041 fi
27042 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
27043 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
27044
27045         if test "$wx_cv_class_stdbasicstring" != yes; then
27046             if test "$wxUSE_STL" = "yes"; then
27047                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
27048 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
27049    { (exit 1); exit 1; }; }
27050             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
27051                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
27052 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
27053    { (exit 1); exit 1; }; }
27054             else
27055                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
27056 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
27057                 wxUSE_STD_STRING=no
27058             fi
27059         fi
27060     fi
27061 fi
27062
27063 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
27064     { echo "$as_me:$LINENO: checking for std::istream" >&5
27065 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
27066 if test "${ac_cv_type_std__istream+set}" = set; then
27067   echo $ECHO_N "(cached) $ECHO_C" >&6
27068 else
27069   cat >conftest.$ac_ext <<_ACEOF
27070 /* confdefs.h.  */
27071 _ACEOF
27072 cat confdefs.h >>conftest.$ac_ext
27073 cat >>conftest.$ac_ext <<_ACEOF
27074 /* end confdefs.h.  */
27075 #include <iostream>
27076
27077 typedef std::istream ac__type_new_;
27078 int
27079 main ()
27080 {
27081 if ((ac__type_new_ *) 0)
27082   return 0;
27083 if (sizeof (ac__type_new_))
27084   return 0;
27085   ;
27086   return 0;
27087 }
27088 _ACEOF
27089 rm -f conftest.$ac_objext
27090 if { (ac_try="$ac_compile"
27091 case "(($ac_try" in
27092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27093   *) ac_try_echo=$ac_try;;
27094 esac
27095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27096   (eval "$ac_compile") 2>conftest.er1
27097   ac_status=$?
27098   grep -v '^ *+' conftest.er1 >conftest.err
27099   rm -f conftest.er1
27100   cat conftest.err >&5
27101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102   (exit $ac_status); } && {
27103          test -z "$ac_cxx_werror_flag" ||
27104          test ! -s conftest.err
27105        } && test -s conftest.$ac_objext; then
27106   ac_cv_type_std__istream=yes
27107 else
27108   echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27110
27111         ac_cv_type_std__istream=no
27112 fi
27113
27114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27115 fi
27116 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
27117 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
27118 if test $ac_cv_type_std__istream = yes; then
27119
27120 cat >>confdefs.h <<_ACEOF
27121 #define HAVE_STD__ISTREAM 1
27122 _ACEOF
27123
27124
27125 else
27126   wxUSE_STD_IOSTREAM=no
27127 fi
27128 { echo "$as_me:$LINENO: checking for std::ostream" >&5
27129 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
27130 if test "${ac_cv_type_std__ostream+set}" = set; then
27131   echo $ECHO_N "(cached) $ECHO_C" >&6
27132 else
27133   cat >conftest.$ac_ext <<_ACEOF
27134 /* confdefs.h.  */
27135 _ACEOF
27136 cat confdefs.h >>conftest.$ac_ext
27137 cat >>conftest.$ac_ext <<_ACEOF
27138 /* end confdefs.h.  */
27139 #include <iostream>
27140
27141 typedef std::ostream ac__type_new_;
27142 int
27143 main ()
27144 {
27145 if ((ac__type_new_ *) 0)
27146   return 0;
27147 if (sizeof (ac__type_new_))
27148   return 0;
27149   ;
27150   return 0;
27151 }
27152 _ACEOF
27153 rm -f conftest.$ac_objext
27154 if { (ac_try="$ac_compile"
27155 case "(($ac_try" in
27156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27157   *) ac_try_echo=$ac_try;;
27158 esac
27159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27160   (eval "$ac_compile") 2>conftest.er1
27161   ac_status=$?
27162   grep -v '^ *+' conftest.er1 >conftest.err
27163   rm -f conftest.er1
27164   cat conftest.err >&5
27165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166   (exit $ac_status); } && {
27167          test -z "$ac_cxx_werror_flag" ||
27168          test ! -s conftest.err
27169        } && test -s conftest.$ac_objext; then
27170   ac_cv_type_std__ostream=yes
27171 else
27172   echo "$as_me: failed program was:" >&5
27173 sed 's/^/| /' conftest.$ac_ext >&5
27174
27175         ac_cv_type_std__ostream=no
27176 fi
27177
27178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27179 fi
27180 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
27181 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
27182 if test $ac_cv_type_std__ostream = yes; then
27183
27184 cat >>confdefs.h <<_ACEOF
27185 #define HAVE_STD__OSTREAM 1
27186 _ACEOF
27187
27188
27189 else
27190   wxUSE_STD_IOSTREAM=no
27191 fi
27192
27193
27194     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
27195         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
27196             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
27197 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
27198    { (exit 1); exit 1; }; }
27199         else
27200             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
27201 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
27202         fi
27203     fi
27204 fi
27205
27206 if test "$wxUSE_STL" = "yes"; then
27207         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
27208 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
27209 if test "${wx_cv_lib_stl+set}" = set; then
27210   echo $ECHO_N "(cached) $ECHO_C" >&6
27211 else
27212   cat >conftest.$ac_ext <<_ACEOF
27213 /* confdefs.h.  */
27214 _ACEOF
27215 cat confdefs.h >>conftest.$ac_ext
27216 cat >>conftest.$ac_ext <<_ACEOF
27217 /* end confdefs.h.  */
27218 #include <string>
27219             #include <functional>
27220             #include <algorithm>
27221             #include <vector>
27222             #include <list>
27223 int
27224 main ()
27225 {
27226 std::vector<int> moo;
27227              std::list<int> foo;
27228              std::vector<int>::iterator it =
27229                  std::find_if(moo.begin(), moo.end(),
27230                               std::bind2nd(std::less<int>(), 3));
27231   ;
27232   return 0;
27233 }
27234 _ACEOF
27235 rm -f conftest.$ac_objext
27236 if { (ac_try="$ac_compile"
27237 case "(($ac_try" in
27238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27239   *) ac_try_echo=$ac_try;;
27240 esac
27241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27242   (eval "$ac_compile") 2>conftest.er1
27243   ac_status=$?
27244   grep -v '^ *+' conftest.er1 >conftest.err
27245   rm -f conftest.er1
27246   cat conftest.err >&5
27247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248   (exit $ac_status); } && {
27249          test -z "$ac_cxx_werror_flag" ||
27250          test ! -s conftest.err
27251        } && test -s conftest.$ac_objext; then
27252   wx_cv_lib_stl=yes
27253 else
27254   echo "$as_me: failed program was:" >&5
27255 sed 's/^/| /' conftest.$ac_ext >&5
27256
27257         wx_cv_lib_stl=no
27258
27259 fi
27260
27261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27262
27263 fi
27264 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
27265 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
27266
27267     if test "$wx_cv_lib_stl" != yes; then
27268          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
27269 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
27270    { (exit 1); exit 1; }; }
27271     fi
27272
27273         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
27274 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
27275 if test "${wx_cv_func_stdstring_compare+set}" = set; then
27276   echo $ECHO_N "(cached) $ECHO_C" >&6
27277 else
27278   cat >conftest.$ac_ext <<_ACEOF
27279 /* confdefs.h.  */
27280 _ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h.  */
27284 #include <string>
27285 int
27286 main ()
27287 {
27288 std::string foo, bar;
27289             foo.compare(bar);
27290             foo.compare(1, 1, bar);
27291             foo.compare(1, 1, bar, 1, 1);
27292             foo.compare("");
27293             foo.compare(1, 1, "");
27294             foo.compare(1, 1, "", 2);
27295   ;
27296   return 0;
27297 }
27298 _ACEOF
27299 rm -f conftest.$ac_objext
27300 if { (ac_try="$ac_compile"
27301 case "(($ac_try" in
27302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303   *) ac_try_echo=$ac_try;;
27304 esac
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306   (eval "$ac_compile") 2>conftest.er1
27307   ac_status=$?
27308   grep -v '^ *+' conftest.er1 >conftest.err
27309   rm -f conftest.er1
27310   cat conftest.err >&5
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); } && {
27313          test -z "$ac_cxx_werror_flag" ||
27314          test ! -s conftest.err
27315        } && test -s conftest.$ac_objext; then
27316   wx_cv_func_stdstring_compare=yes
27317 else
27318   echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27320
27321         wx_cv_func_stdstring_compare=no
27322
27323 fi
27324
27325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27326
27327 fi
27328 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
27329 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
27330
27331     if test "$wx_cv_func_stdstring_compare" = yes; then
27332         cat >>confdefs.h <<\_ACEOF
27333 #define HAVE_STD_STRING_COMPARE 1
27334 _ACEOF
27335
27336     fi
27337
27338         { echo "$as_me:$LINENO: checking for hash_map" >&5
27339 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
27340 if test "${ac_cv_header_hash_map+set}" = set; then
27341   echo $ECHO_N "(cached) $ECHO_C" >&6
27342 else
27343   cat >conftest.$ac_ext <<_ACEOF
27344 /* confdefs.h.  */
27345 _ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h.  */
27349
27350
27351
27352 #include <hash_map>
27353 _ACEOF
27354 rm -f conftest.$ac_objext
27355 if { (ac_try="$ac_compile"
27356 case "(($ac_try" in
27357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358   *) ac_try_echo=$ac_try;;
27359 esac
27360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361   (eval "$ac_compile") 2>conftest.er1
27362   ac_status=$?
27363   grep -v '^ *+' conftest.er1 >conftest.err
27364   rm -f conftest.er1
27365   cat conftest.err >&5
27366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367   (exit $ac_status); } && {
27368          test -z "$ac_cxx_werror_flag" ||
27369          test ! -s conftest.err
27370        } && test -s conftest.$ac_objext; then
27371   ac_cv_header_hash_map=yes
27372 else
27373   echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27375
27376         ac_cv_header_hash_map=no
27377 fi
27378
27379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27380 fi
27381 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
27382 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
27383 if test $ac_cv_header_hash_map = yes; then
27384   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
27385 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
27386 if test "${wx_cv_class_stdhashmapset+set}" = set; then
27387   echo $ECHO_N "(cached) $ECHO_C" >&6
27388 else
27389   cat >conftest.$ac_ext <<_ACEOF
27390 /* confdefs.h.  */
27391 _ACEOF
27392 cat confdefs.h >>conftest.$ac_ext
27393 cat >>conftest.$ac_ext <<_ACEOF
27394 /* end confdefs.h.  */
27395 #include <hash_map>
27396                 #include <hash_set>
27397 int
27398 main ()
27399 {
27400 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
27401                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
27402   ;
27403   return 0;
27404 }
27405 _ACEOF
27406 rm -f conftest.$ac_objext
27407 if { (ac_try="$ac_compile"
27408 case "(($ac_try" in
27409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27410   *) ac_try_echo=$ac_try;;
27411 esac
27412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27413   (eval "$ac_compile") 2>conftest.er1
27414   ac_status=$?
27415   grep -v '^ *+' conftest.er1 >conftest.err
27416   rm -f conftest.er1
27417   cat conftest.err >&5
27418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419   (exit $ac_status); } && {
27420          test -z "$ac_cxx_werror_flag" ||
27421          test ! -s conftest.err
27422        } && test -s conftest.$ac_objext; then
27423   wx_cv_class_stdhashmapset=yes
27424 else
27425   echo "$as_me: failed program was:" >&5
27426 sed 's/^/| /' conftest.$ac_ext >&5
27427
27428         wx_cv_class_stdhashmapset=no
27429 fi
27430
27431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27432
27433
27434 fi
27435 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
27436 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
27437 fi
27438
27439
27440
27441     if test "$wx_cv_class_stdhashmapset" = yes; then
27442         cat >>confdefs.h <<\_ACEOF
27443 #define HAVE_HASH_MAP 1
27444 _ACEOF
27445
27446         cat >>confdefs.h <<\_ACEOF
27447 #define HAVE_STD_HASH_MAP 1
27448 _ACEOF
27449
27450     fi
27451
27452     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
27453 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
27454 if test "${ac_cv_header_ext_hash_map+set}" = set; then
27455   echo $ECHO_N "(cached) $ECHO_C" >&6
27456 else
27457   cat >conftest.$ac_ext <<_ACEOF
27458 /* confdefs.h.  */
27459 _ACEOF
27460 cat confdefs.h >>conftest.$ac_ext
27461 cat >>conftest.$ac_ext <<_ACEOF
27462 /* end confdefs.h.  */
27463
27464
27465
27466 #include <ext/hash_map>
27467 _ACEOF
27468 rm -f conftest.$ac_objext
27469 if { (ac_try="$ac_compile"
27470 case "(($ac_try" in
27471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27472   *) ac_try_echo=$ac_try;;
27473 esac
27474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27475   (eval "$ac_compile") 2>conftest.er1
27476   ac_status=$?
27477   grep -v '^ *+' conftest.er1 >conftest.err
27478   rm -f conftest.er1
27479   cat conftest.err >&5
27480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481   (exit $ac_status); } && {
27482          test -z "$ac_cxx_werror_flag" ||
27483          test ! -s conftest.err
27484        } && test -s conftest.$ac_objext; then
27485   ac_cv_header_ext_hash_map=yes
27486 else
27487   echo "$as_me: failed program was:" >&5
27488 sed 's/^/| /' conftest.$ac_ext >&5
27489
27490         ac_cv_header_ext_hash_map=no
27491 fi
27492
27493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27494 fi
27495 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
27496 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
27497 if test $ac_cv_header_ext_hash_map = yes; then
27498   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
27499 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
27500 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
27501   echo $ECHO_N "(cached) $ECHO_C" >&6
27502 else
27503   cat >conftest.$ac_ext <<_ACEOF
27504 /* confdefs.h.  */
27505 _ACEOF
27506 cat confdefs.h >>conftest.$ac_ext
27507 cat >>conftest.$ac_ext <<_ACEOF
27508 /* end confdefs.h.  */
27509 #include <ext/hash_map>
27510                 #include <ext/hash_set>
27511 int
27512 main ()
27513 {
27514 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
27515                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
27516   ;
27517   return 0;
27518 }
27519 _ACEOF
27520 rm -f conftest.$ac_objext
27521 if { (ac_try="$ac_compile"
27522 case "(($ac_try" in
27523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27524   *) ac_try_echo=$ac_try;;
27525 esac
27526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27527   (eval "$ac_compile") 2>conftest.er1
27528   ac_status=$?
27529   grep -v '^ *+' conftest.er1 >conftest.err
27530   rm -f conftest.er1
27531   cat conftest.err >&5
27532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533   (exit $ac_status); } && {
27534          test -z "$ac_cxx_werror_flag" ||
27535          test ! -s conftest.err
27536        } && test -s conftest.$ac_objext; then
27537   wx_cv_class_gnuhashmapset=yes
27538 else
27539   echo "$as_me: failed program was:" >&5
27540 sed 's/^/| /' conftest.$ac_ext >&5
27541
27542         wx_cv_class_gnuhashmapset=no
27543 fi
27544
27545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27546
27547
27548 fi
27549 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
27550 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
27551 fi
27552
27553
27554
27555     if test "$wx_cv_class_gnuhashmapset" = yes; then
27556          cat >>confdefs.h <<\_ACEOF
27557 #define HAVE_EXT_HASH_MAP 1
27558 _ACEOF
27559
27560          cat >>confdefs.h <<\_ACEOF
27561 #define HAVE_GNU_CXX_HASH_MAP 1
27562 _ACEOF
27563
27564     fi
27565 fi
27566
27567
27568
27569   if test -n "$GCC"; then
27570     { echo "$as_me:$LINENO: checking for __sync_fetch_* builtins" >&5
27571 echo $ECHO_N "checking for __sync_fetch_* builtins... $ECHO_C" >&6; }
27572     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
27573   echo $ECHO_N "(cached) $ECHO_C" >&6
27574 else
27575
27576       cat >conftest.$ac_ext <<_ACEOF
27577 /* confdefs.h.  */
27578 _ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h.  */
27582
27583 int
27584 main ()
27585 {
27586
27587           int value=0;
27588           __sync_fetch_and_add(&value, 1);
27589           __sync_sub_and_fetch(&value, 1);
27590
27591   ;
27592   return 0;
27593 }
27594 _ACEOF
27595 rm -f conftest.$ac_objext
27596 if { (ac_try="$ac_compile"
27597 case "(($ac_try" in
27598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599   *) ac_try_echo=$ac_try;;
27600 esac
27601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602   (eval "$ac_compile") 2>conftest.er1
27603   ac_status=$?
27604   grep -v '^ *+' conftest.er1 >conftest.err
27605   rm -f conftest.er1
27606   cat conftest.err >&5
27607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608   (exit $ac_status); } && {
27609          test -z "$ac_cxx_werror_flag" ||
27610          test ! -s conftest.err
27611        } && test -s conftest.$ac_objext; then
27612   wx_cv_cc_gcc_atomic_builtins=yes
27613 else
27614   echo "$as_me: failed program was:" >&5
27615 sed 's/^/| /' conftest.$ac_ext >&5
27616
27617         wx_cv_cc_gcc_atomic_builtins=no
27618 fi
27619
27620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27621
27622 fi
27623
27624     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
27625 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
27626     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
27627       cat >>confdefs.h <<\_ACEOF
27628 #define HAVE_GCC_ATOMIC_BUILTINS 1
27629 _ACEOF
27630
27631     fi
27632   fi
27633
27634
27635 ac_ext=c
27636 ac_cpp='$CPP $CPPFLAGS'
27637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27640
27641
27642
27643 SEARCH_INCLUDE="\
27644     /usr/local/include        \
27645                               \
27646     /usr/Motif-2.1/include    \
27647     /usr/Motif-1.2/include    \
27648     /usr/include/Motif1.2     \
27649                               \
27650     /usr/dt/include           \
27651     /usr/openwin/include      \
27652                               \
27653     /usr/include/Xm           \
27654                               \
27655     /usr/X11R6/include        \
27656     /usr/X11R6.4/include      \
27657     /usr/X11R5/include        \
27658     /usr/X11R4/include        \
27659                               \
27660     /usr/include/X11R6        \
27661     /usr/include/X11R5        \
27662     /usr/include/X11R4        \
27663                               \
27664     /usr/local/X11R6/include  \
27665     /usr/local/X11R5/include  \
27666     /usr/local/X11R4/include  \
27667                               \
27668     /usr/local/include/X11R6  \
27669     /usr/local/include/X11R5  \
27670     /usr/local/include/X11R4  \
27671                               \
27672     /usr/X11/include          \
27673     /usr/include/X11          \
27674     /usr/local/X11/include    \
27675     /usr/local/include/X11    \
27676                               \
27677     /usr/XFree86/include/X11  \
27678     /usr/pkg/include          \
27679                               \
27680     /usr/openwin/share/include"
27681
27682 { echo "$as_me:$LINENO: checking for libraries directory" >&5
27683 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
27684
27685 case "${host}" in
27686     *-*-irix6* )
27687         if test "${wx_cv_std_libpath+set}" = set; then
27688   echo $ECHO_N "(cached) $ECHO_C" >&6
27689 else
27690
27691                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27692                     for e in a so sl dylib dll.a; do
27693                         libc="$d/libc.$e"
27694                         if test -f $libc; then
27695                             save_LIBS="$LIBS"
27696                             LIBS="$libc"
27697                             cat >conftest.$ac_ext <<_ACEOF
27698 int main() { return 0; }
27699 _ACEOF
27700 rm -f conftest.$ac_objext conftest$ac_exeext
27701 if { (ac_try="$ac_link"
27702 case "(($ac_try" in
27703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27704   *) ac_try_echo=$ac_try;;
27705 esac
27706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27707   (eval "$ac_link") 2>conftest.er1
27708   ac_status=$?
27709   grep -v '^ *+' conftest.er1 >conftest.err
27710   rm -f conftest.er1
27711   cat conftest.err >&5
27712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713   (exit $ac_status); } && {
27714          test -z "$ac_c_werror_flag" ||
27715          test ! -s conftest.err
27716        } && test -s conftest$ac_exeext &&
27717        $as_test_x conftest$ac_exeext; then
27718   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27719 else
27720   echo "$as_me: failed program was:" >&5
27721 sed 's/^/| /' conftest.$ac_ext >&5
27722
27723
27724 fi
27725
27726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27727       conftest$ac_exeext conftest.$ac_ext
27728                             LIBS="$save_LIBS"
27729                             if test "x$wx_cv_std_libpath" != "x"; then
27730                                 break 2
27731                             fi
27732                         fi
27733                     done
27734                 done
27735                 if test "x$wx_cv_std_libpath" = "x"; then
27736                     wx_cv_std_libpath="lib"
27737                 fi
27738
27739
27740 fi
27741
27742         ;;
27743
27744     *-*-solaris2* )
27745                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27746             wx_cv_std_libpath="lib/64"
27747         else
27748             wx_cv_std_libpath="lib"
27749         fi
27750         ;;
27751
27752     *-*-linux* )
27753                 if test "$ac_cv_sizeof_void_p" = 8 -a \
27754                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27755             wx_cv_std_libpath="lib64"
27756         else
27757             wx_cv_std_libpath="lib"
27758         fi
27759         ;;
27760
27761     *)
27762         wx_cv_std_libpath="lib";
27763         ;;
27764 esac
27765
27766 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
27767 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
27768
27769 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
27770
27771 if test "$build" != "$host" -a "$GCC" = yes; then
27772                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27773         cross_root=`dirname $cross_root`
27774         cross_root=`dirname $cross_root`
27775
27776                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27777         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27778         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27779
27780                 if test -z "$PKG_CONFIG_PATH"; then
27781             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27782             export PKG_CONFIG_PATH
27783         fi
27784
27785                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27786
27787 ac_find_includes=
27788 for ac_dir in $SEARCH_INCLUDE /usr/include;
27789   do
27790     if test -f "$ac_dir/X11/Intrinsic.h"; then
27791       ac_find_includes=$ac_dir
27792       break
27793     fi
27794   done
27795
27796             x_includes=$ac_find_includes
27797         fi
27798         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27799
27800   ac_find_libraries=
27801   for ac_dir in $SEARCH_LIB;
27802   do
27803     for ac_extension in a so sl dylib dll.a; do
27804       if test -f "$ac_dir/libXt.$ac_extension"; then
27805         ac_find_libraries=$ac_dir
27806         break 2
27807       fi
27808     done
27809   done
27810
27811             x_libraries=$ac_find_libraries
27812         fi
27813     fi
27814 fi
27815
27816
27817 cat >confcache <<\_ACEOF
27818 # This file is a shell script that caches the results of configure
27819 # tests run on this system so they can be shared between configure
27820 # scripts and configure runs, see configure's option --config-cache.
27821 # It is not useful on other systems.  If it contains results you don't
27822 # want to keep, you may remove or edit it.
27823 #
27824 # config.status only pays attention to the cache file if you give it
27825 # the --recheck option to rerun configure.
27826 #
27827 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27828 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27829 # following values.
27830
27831 _ACEOF
27832
27833 # The following way of writing the cache mishandles newlines in values,
27834 # but we know of no workaround that is simple, portable, and efficient.
27835 # So, we kill variables containing newlines.
27836 # Ultrix sh set writes to stderr and can't be redirected directly,
27837 # and sets the high bit in the cache file unless we assign to the vars.
27838 (
27839   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27840     eval ac_val=\$$ac_var
27841     case $ac_val in #(
27842     *${as_nl}*)
27843       case $ac_var in #(
27844       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27845 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27846       esac
27847       case $ac_var in #(
27848       _ | IFS | as_nl) ;; #(
27849       *) $as_unset $ac_var ;;
27850       esac ;;
27851     esac
27852   done
27853
27854   (set) 2>&1 |
27855     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27856     *${as_nl}ac_space=\ *)
27857       # `set' does not quote correctly, so add quotes (double-quote
27858       # substitution turns \\\\ into \\, and sed turns \\ into \).
27859       sed -n \
27860         "s/'/'\\\\''/g;
27861           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27862       ;; #(
27863     *)
27864       # `set' quotes correctly as required by POSIX, so do not add quotes.
27865       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27866       ;;
27867     esac |
27868     sort
27869 ) |
27870   sed '
27871      /^ac_cv_env_/b end
27872      t clear
27873      :clear
27874      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27875      t end
27876      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27877      :end' >>confcache
27878 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27879   if test -w "$cache_file"; then
27880     test "x$cache_file" != "x/dev/null" &&
27881       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27882 echo "$as_me: updating cache $cache_file" >&6;}
27883     cat confcache >$cache_file
27884   else
27885     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27886 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27887   fi
27888 fi
27889 rm -f confcache
27890
27891 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27892     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27893 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27894 if test "${wx_cv_lib_glibc21+set}" = set; then
27895   echo $ECHO_N "(cached) $ECHO_C" >&6
27896 else
27897
27898         cat >conftest.$ac_ext <<_ACEOF
27899 /* confdefs.h.  */
27900 _ACEOF
27901 cat confdefs.h >>conftest.$ac_ext
27902 cat >>conftest.$ac_ext <<_ACEOF
27903 /* end confdefs.h.  */
27904 #include <features.h>
27905 int
27906 main ()
27907 {
27908
27909                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27910                 not glibc 2.1
27911                 #endif
27912
27913   ;
27914   return 0;
27915 }
27916 _ACEOF
27917 rm -f conftest.$ac_objext
27918 if { (ac_try="$ac_compile"
27919 case "(($ac_try" in
27920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921   *) ac_try_echo=$ac_try;;
27922 esac
27923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27924   (eval "$ac_compile") 2>conftest.er1
27925   ac_status=$?
27926   grep -v '^ *+' conftest.er1 >conftest.err
27927   rm -f conftest.er1
27928   cat conftest.err >&5
27929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930   (exit $ac_status); } && {
27931          test -z "$ac_c_werror_flag" ||
27932          test ! -s conftest.err
27933        } && test -s conftest.$ac_objext; then
27934
27935                 wx_cv_lib_glibc21=yes
27936
27937 else
27938   echo "$as_me: failed program was:" >&5
27939 sed 's/^/| /' conftest.$ac_ext >&5
27940
27941
27942                 wx_cv_lib_glibc21=no
27943
27944
27945 fi
27946
27947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27948
27949 fi
27950 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27951 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27952     if test "$wx_cv_lib_glibc21" = "yes"; then
27953         cat >>confdefs.h <<\_ACEOF
27954 #define wxHAVE_GLIBC2 1
27955 _ACEOF
27956
27957     fi
27958 fi
27959
27960 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27961     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27962         cat >>confdefs.h <<\_ACEOF
27963 #define _GNU_SOURCE 1
27964 _ACEOF
27965
27966     fi
27967 fi
27968
27969 have_cos=0
27970 have_floor=0
27971
27972 for ac_func in cos
27973 do
27974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27978   echo $ECHO_N "(cached) $ECHO_C" >&6
27979 else
27980   cat >conftest.$ac_ext <<_ACEOF
27981 /* confdefs.h.  */
27982 _ACEOF
27983 cat confdefs.h >>conftest.$ac_ext
27984 cat >>conftest.$ac_ext <<_ACEOF
27985 /* end confdefs.h.  */
27986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27988 #define $ac_func innocuous_$ac_func
27989
27990 /* System header to define __stub macros and hopefully few prototypes,
27991     which can conflict with char $ac_func (); below.
27992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27993     <limits.h> exists even on freestanding compilers.  */
27994
27995 #ifdef __STDC__
27996 # include <limits.h>
27997 #else
27998 # include <assert.h>
27999 #endif
28000
28001 #undef $ac_func
28002
28003 /* Override any GCC internal prototype to avoid an error.
28004    Use char because int might match the return type of a GCC
28005    builtin and then its argument prototype would still apply.  */
28006 #ifdef __cplusplus
28007 extern "C"
28008 #endif
28009 char $ac_func ();
28010 /* The GNU C library defines this for functions which it implements
28011     to always fail with ENOSYS.  Some functions are actually named
28012     something starting with __ and the normal name is an alias.  */
28013 #if defined __stub_$ac_func || defined __stub___$ac_func
28014 choke me
28015 #endif
28016
28017 int
28018 main ()
28019 {
28020 return $ac_func ();
28021   ;
28022   return 0;
28023 }
28024 _ACEOF
28025 rm -f conftest.$ac_objext conftest$ac_exeext
28026 if { (ac_try="$ac_link"
28027 case "(($ac_try" in
28028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28029   *) ac_try_echo=$ac_try;;
28030 esac
28031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28032   (eval "$ac_link") 2>conftest.er1
28033   ac_status=$?
28034   grep -v '^ *+' conftest.er1 >conftest.err
28035   rm -f conftest.er1
28036   cat conftest.err >&5
28037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038   (exit $ac_status); } && {
28039          test -z "$ac_c_werror_flag" ||
28040          test ! -s conftest.err
28041        } && test -s conftest$ac_exeext &&
28042        $as_test_x conftest$ac_exeext; then
28043   eval "$as_ac_var=yes"
28044 else
28045   echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28047
28048         eval "$as_ac_var=no"
28049 fi
28050
28051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28052       conftest$ac_exeext conftest.$ac_ext
28053 fi
28054 ac_res=`eval echo '${'$as_ac_var'}'`
28055                { echo "$as_me:$LINENO: result: $ac_res" >&5
28056 echo "${ECHO_T}$ac_res" >&6; }
28057 if test `eval echo '${'$as_ac_var'}'` = yes; then
28058   cat >>confdefs.h <<_ACEOF
28059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28060 _ACEOF
28061  have_cos=1
28062 fi
28063 done
28064
28065
28066 for ac_func in floor
28067 do
28068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28072   echo $ECHO_N "(cached) $ECHO_C" >&6
28073 else
28074   cat >conftest.$ac_ext <<_ACEOF
28075 /* confdefs.h.  */
28076 _ACEOF
28077 cat confdefs.h >>conftest.$ac_ext
28078 cat >>conftest.$ac_ext <<_ACEOF
28079 /* end confdefs.h.  */
28080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28082 #define $ac_func innocuous_$ac_func
28083
28084 /* System header to define __stub macros and hopefully few prototypes,
28085     which can conflict with char $ac_func (); below.
28086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28087     <limits.h> exists even on freestanding compilers.  */
28088
28089 #ifdef __STDC__
28090 # include <limits.h>
28091 #else
28092 # include <assert.h>
28093 #endif
28094
28095 #undef $ac_func
28096
28097 /* Override any GCC internal prototype to avoid an error.
28098    Use char because int might match the return type of a GCC
28099    builtin and then its argument prototype would still apply.  */
28100 #ifdef __cplusplus
28101 extern "C"
28102 #endif
28103 char $ac_func ();
28104 /* The GNU C library defines this for functions which it implements
28105     to always fail with ENOSYS.  Some functions are actually named
28106     something starting with __ and the normal name is an alias.  */
28107 #if defined __stub_$ac_func || defined __stub___$ac_func
28108 choke me
28109 #endif
28110
28111 int
28112 main ()
28113 {
28114 return $ac_func ();
28115   ;
28116   return 0;
28117 }
28118 _ACEOF
28119 rm -f conftest.$ac_objext conftest$ac_exeext
28120 if { (ac_try="$ac_link"
28121 case "(($ac_try" in
28122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123   *) ac_try_echo=$ac_try;;
28124 esac
28125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126   (eval "$ac_link") 2>conftest.er1
28127   ac_status=$?
28128   grep -v '^ *+' conftest.er1 >conftest.err
28129   rm -f conftest.er1
28130   cat conftest.err >&5
28131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132   (exit $ac_status); } && {
28133          test -z "$ac_c_werror_flag" ||
28134          test ! -s conftest.err
28135        } && test -s conftest$ac_exeext &&
28136        $as_test_x conftest$ac_exeext; then
28137   eval "$as_ac_var=yes"
28138 else
28139   echo "$as_me: failed program was:" >&5
28140 sed 's/^/| /' conftest.$ac_ext >&5
28141
28142         eval "$as_ac_var=no"
28143 fi
28144
28145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28146       conftest$ac_exeext conftest.$ac_ext
28147 fi
28148 ac_res=`eval echo '${'$as_ac_var'}'`
28149                { echo "$as_me:$LINENO: result: $ac_res" >&5
28150 echo "${ECHO_T}$ac_res" >&6; }
28151 if test `eval echo '${'$as_ac_var'}'` = yes; then
28152   cat >>confdefs.h <<_ACEOF
28153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28154 _ACEOF
28155  have_floor=1
28156 fi
28157 done
28158
28159 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
28160 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
28161 if test "$have_cos" = 1 -a "$have_floor" = 1; then
28162     { echo "$as_me:$LINENO: result: yes" >&5
28163 echo "${ECHO_T}yes" >&6; }
28164 else
28165     { echo "$as_me:$LINENO: result: no" >&5
28166 echo "${ECHO_T}no" >&6; }
28167     LIBS="$LIBS -lm"
28168     # use different functions to avoid configure caching
28169     have_sin=0
28170     have_ceil=0
28171
28172 for ac_func in sin
28173 do
28174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28178   echo $ECHO_N "(cached) $ECHO_C" >&6
28179 else
28180   cat >conftest.$ac_ext <<_ACEOF
28181 /* confdefs.h.  */
28182 _ACEOF
28183 cat confdefs.h >>conftest.$ac_ext
28184 cat >>conftest.$ac_ext <<_ACEOF
28185 /* end confdefs.h.  */
28186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28188 #define $ac_func innocuous_$ac_func
28189
28190 /* System header to define __stub macros and hopefully few prototypes,
28191     which can conflict with char $ac_func (); below.
28192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28193     <limits.h> exists even on freestanding compilers.  */
28194
28195 #ifdef __STDC__
28196 # include <limits.h>
28197 #else
28198 # include <assert.h>
28199 #endif
28200
28201 #undef $ac_func
28202
28203 /* Override any GCC internal prototype to avoid an error.
28204    Use char because int might match the return type of a GCC
28205    builtin and then its argument prototype would still apply.  */
28206 #ifdef __cplusplus
28207 extern "C"
28208 #endif
28209 char $ac_func ();
28210 /* The GNU C library defines this for functions which it implements
28211     to always fail with ENOSYS.  Some functions are actually named
28212     something starting with __ and the normal name is an alias.  */
28213 #if defined __stub_$ac_func || defined __stub___$ac_func
28214 choke me
28215 #endif
28216
28217 int
28218 main ()
28219 {
28220 return $ac_func ();
28221   ;
28222   return 0;
28223 }
28224 _ACEOF
28225 rm -f conftest.$ac_objext conftest$ac_exeext
28226 if { (ac_try="$ac_link"
28227 case "(($ac_try" in
28228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229   *) ac_try_echo=$ac_try;;
28230 esac
28231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232   (eval "$ac_link") 2>conftest.er1
28233   ac_status=$?
28234   grep -v '^ *+' conftest.er1 >conftest.err
28235   rm -f conftest.er1
28236   cat conftest.err >&5
28237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238   (exit $ac_status); } && {
28239          test -z "$ac_c_werror_flag" ||
28240          test ! -s conftest.err
28241        } && test -s conftest$ac_exeext &&
28242        $as_test_x conftest$ac_exeext; then
28243   eval "$as_ac_var=yes"
28244 else
28245   echo "$as_me: failed program was:" >&5
28246 sed 's/^/| /' conftest.$ac_ext >&5
28247
28248         eval "$as_ac_var=no"
28249 fi
28250
28251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28252       conftest$ac_exeext conftest.$ac_ext
28253 fi
28254 ac_res=`eval echo '${'$as_ac_var'}'`
28255                { echo "$as_me:$LINENO: result: $ac_res" >&5
28256 echo "${ECHO_T}$ac_res" >&6; }
28257 if test `eval echo '${'$as_ac_var'}'` = yes; then
28258   cat >>confdefs.h <<_ACEOF
28259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28260 _ACEOF
28261  have_sin=1
28262 fi
28263 done
28264
28265
28266 for ac_func in ceil
28267 do
28268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28269 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28272   echo $ECHO_N "(cached) $ECHO_C" >&6
28273 else
28274   cat >conftest.$ac_ext <<_ACEOF
28275 /* confdefs.h.  */
28276 _ACEOF
28277 cat confdefs.h >>conftest.$ac_ext
28278 cat >>conftest.$ac_ext <<_ACEOF
28279 /* end confdefs.h.  */
28280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28282 #define $ac_func innocuous_$ac_func
28283
28284 /* System header to define __stub macros and hopefully few prototypes,
28285     which can conflict with char $ac_func (); below.
28286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28287     <limits.h> exists even on freestanding compilers.  */
28288
28289 #ifdef __STDC__
28290 # include <limits.h>
28291 #else
28292 # include <assert.h>
28293 #endif
28294
28295 #undef $ac_func
28296
28297 /* Override any GCC internal prototype to avoid an error.
28298    Use char because int might match the return type of a GCC
28299    builtin and then its argument prototype would still apply.  */
28300 #ifdef __cplusplus
28301 extern "C"
28302 #endif
28303 char $ac_func ();
28304 /* The GNU C library defines this for functions which it implements
28305     to always fail with ENOSYS.  Some functions are actually named
28306     something starting with __ and the normal name is an alias.  */
28307 #if defined __stub_$ac_func || defined __stub___$ac_func
28308 choke me
28309 #endif
28310
28311 int
28312 main ()
28313 {
28314 return $ac_func ();
28315   ;
28316   return 0;
28317 }
28318 _ACEOF
28319 rm -f conftest.$ac_objext conftest$ac_exeext
28320 if { (ac_try="$ac_link"
28321 case "(($ac_try" in
28322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28323   *) ac_try_echo=$ac_try;;
28324 esac
28325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28326   (eval "$ac_link") 2>conftest.er1
28327   ac_status=$?
28328   grep -v '^ *+' conftest.er1 >conftest.err
28329   rm -f conftest.er1
28330   cat conftest.err >&5
28331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332   (exit $ac_status); } && {
28333          test -z "$ac_c_werror_flag" ||
28334          test ! -s conftest.err
28335        } && test -s conftest$ac_exeext &&
28336        $as_test_x conftest$ac_exeext; then
28337   eval "$as_ac_var=yes"
28338 else
28339   echo "$as_me: failed program was:" >&5
28340 sed 's/^/| /' conftest.$ac_ext >&5
28341
28342         eval "$as_ac_var=no"
28343 fi
28344
28345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28346       conftest$ac_exeext conftest.$ac_ext
28347 fi
28348 ac_res=`eval echo '${'$as_ac_var'}'`
28349                { echo "$as_me:$LINENO: result: $ac_res" >&5
28350 echo "${ECHO_T}$ac_res" >&6; }
28351 if test `eval echo '${'$as_ac_var'}'` = yes; then
28352   cat >>confdefs.h <<_ACEOF
28353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28354 _ACEOF
28355  have_ceil=1
28356 fi
28357 done
28358
28359     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
28360 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
28361     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28362         { echo "$as_me:$LINENO: result: yes" >&5
28363 echo "${ECHO_T}yes" >&6; }
28364     else
28365         { echo "$as_me:$LINENO: result: no" >&5
28366 echo "${ECHO_T}no" >&6; }
28367         # not sure we should warn the user, crash, etc.
28368     fi
28369 fi
28370
28371 ac_ext=cpp
28372 ac_cpp='$CXXCPP $CPPFLAGS'
28373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28376
28377 if test "wxUSE_UNICODE" = "yes"; then
28378
28379   for wx_func in wcstoull
28380   do
28381     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28382 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28383 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28384   echo $ECHO_N "(cached) $ECHO_C" >&6
28385 else
28386
28387         cat >conftest.$ac_ext <<_ACEOF
28388
28389             /* confdefs.h.  */
28390 _ACEOF
28391 cat confdefs.h >>conftest.$ac_ext
28392 cat >>conftest.$ac_ext <<_ACEOF
28393 /* end confdefs.h.  */
28394
28395
28396                 $ac_includes_default
28397
28398 int
28399 main ()
28400 {
28401
28402                 #ifndef $wx_func
28403                   &$wx_func;
28404                 #endif
28405
28406
28407   ;
28408   return 0;
28409 }
28410
28411 _ACEOF
28412 rm -f conftest.$ac_objext conftest$ac_exeext
28413 if { (ac_try="$ac_link"
28414 case "(($ac_try" in
28415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416   *) ac_try_echo=$ac_try;;
28417 esac
28418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419   (eval "$ac_link") 2>conftest.er1
28420   ac_status=$?
28421   grep -v '^ *+' conftest.er1 >conftest.err
28422   rm -f conftest.er1
28423   cat conftest.err >&5
28424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425   (exit $ac_status); } && {
28426          test -z "$ac_cxx_werror_flag" ||
28427          test ! -s conftest.err
28428        } && test -s conftest$ac_exeext &&
28429        $as_test_x conftest$ac_exeext; then
28430   eval wx_cv_func_$wx_func=yes
28431 else
28432   echo "$as_me: failed program was:" >&5
28433 sed 's/^/| /' conftest.$ac_ext >&5
28434
28435         eval wx_cv_func_$wx_func=no
28436 fi
28437
28438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28439       conftest$ac_exeext conftest.$ac_ext
28440
28441 fi
28442 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28443                { echo "$as_me:$LINENO: result: $ac_res" >&5
28444 echo "${ECHO_T}$ac_res" >&6; }
28445
28446     if eval test \$wx_cv_func_$wx_func = yes
28447     then
28448       cat >>confdefs.h <<_ACEOF
28449 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
28450 _ACEOF
28451
28452
28453     else
28454       :
28455
28456     fi
28457   done
28458
28459 else
28460
28461   for wx_func in strtoull
28462   do
28463     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28464 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28465 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28466   echo $ECHO_N "(cached) $ECHO_C" >&6
28467 else
28468
28469         cat >conftest.$ac_ext <<_ACEOF
28470
28471             /* confdefs.h.  */
28472 _ACEOF
28473 cat confdefs.h >>conftest.$ac_ext
28474 cat >>conftest.$ac_ext <<_ACEOF
28475 /* end confdefs.h.  */
28476
28477
28478                 $ac_includes_default
28479
28480 int
28481 main ()
28482 {
28483
28484                 #ifndef $wx_func
28485                   &$wx_func;
28486                 #endif
28487
28488
28489   ;
28490   return 0;
28491 }
28492
28493 _ACEOF
28494 rm -f conftest.$ac_objext conftest$ac_exeext
28495 if { (ac_try="$ac_link"
28496 case "(($ac_try" in
28497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28498   *) ac_try_echo=$ac_try;;
28499 esac
28500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28501   (eval "$ac_link") 2>conftest.er1
28502   ac_status=$?
28503   grep -v '^ *+' conftest.er1 >conftest.err
28504   rm -f conftest.er1
28505   cat conftest.err >&5
28506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507   (exit $ac_status); } && {
28508          test -z "$ac_cxx_werror_flag" ||
28509          test ! -s conftest.err
28510        } && test -s conftest$ac_exeext &&
28511        $as_test_x conftest$ac_exeext; then
28512   eval wx_cv_func_$wx_func=yes
28513 else
28514   echo "$as_me: failed program was:" >&5
28515 sed 's/^/| /' conftest.$ac_ext >&5
28516
28517         eval wx_cv_func_$wx_func=no
28518 fi
28519
28520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28521       conftest$ac_exeext conftest.$ac_ext
28522
28523 fi
28524 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28525                { echo "$as_me:$LINENO: result: $ac_res" >&5
28526 echo "${ECHO_T}$ac_res" >&6; }
28527
28528     if eval test \$wx_cv_func_$wx_func = yes
28529     then
28530       cat >>confdefs.h <<_ACEOF
28531 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
28532 _ACEOF
28533
28534
28535     else
28536       :
28537
28538     fi
28539   done
28540
28541 fi
28542 ac_ext=c
28543 ac_cpp='$CPP $CPPFLAGS'
28544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28547
28548
28549
28550
28551 if test "$wxUSE_REGEX" != "no"; then
28552     cat >>confdefs.h <<\_ACEOF
28553 #define wxUSE_REGEX 1
28554 _ACEOF
28555
28556
28557     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
28558         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
28559 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
28560         wxUSE_REGEX=builtin
28561     fi
28562
28563     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
28564                         { echo "$as_me:$LINENO: checking for regex.h" >&5
28565 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28566 if test "${ac_cv_header_regex_h+set}" = set; then
28567   echo $ECHO_N "(cached) $ECHO_C" >&6
28568 else
28569   cat >conftest.$ac_ext <<_ACEOF
28570 /* confdefs.h.  */
28571 _ACEOF
28572 cat confdefs.h >>conftest.$ac_ext
28573 cat >>conftest.$ac_ext <<_ACEOF
28574 /* end confdefs.h.  */
28575
28576
28577 #include <regex.h>
28578 _ACEOF
28579 rm -f conftest.$ac_objext
28580 if { (ac_try="$ac_compile"
28581 case "(($ac_try" in
28582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28583   *) ac_try_echo=$ac_try;;
28584 esac
28585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28586   (eval "$ac_compile") 2>conftest.er1
28587   ac_status=$?
28588   grep -v '^ *+' conftest.er1 >conftest.err
28589   rm -f conftest.er1
28590   cat conftest.err >&5
28591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592   (exit $ac_status); } && {
28593          test -z "$ac_c_werror_flag" ||
28594          test ! -s conftest.err
28595        } && test -s conftest.$ac_objext; then
28596   ac_cv_header_regex_h=yes
28597 else
28598   echo "$as_me: failed program was:" >&5
28599 sed 's/^/| /' conftest.$ac_ext >&5
28600
28601         ac_cv_header_regex_h=no
28602 fi
28603
28604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28605 fi
28606 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28607 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28608 if test $ac_cv_header_regex_h = yes; then
28609
28610
28611 for ac_func in regcomp re_search
28612 do
28613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28617   echo $ECHO_N "(cached) $ECHO_C" >&6
28618 else
28619   cat >conftest.$ac_ext <<_ACEOF
28620 /* confdefs.h.  */
28621 _ACEOF
28622 cat confdefs.h >>conftest.$ac_ext
28623 cat >>conftest.$ac_ext <<_ACEOF
28624 /* end confdefs.h.  */
28625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28627 #define $ac_func innocuous_$ac_func
28628
28629 /* System header to define __stub macros and hopefully few prototypes,
28630     which can conflict with char $ac_func (); below.
28631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28632     <limits.h> exists even on freestanding compilers.  */
28633
28634 #ifdef __STDC__
28635 # include <limits.h>
28636 #else
28637 # include <assert.h>
28638 #endif
28639
28640 #undef $ac_func
28641
28642 /* Override any GCC internal prototype to avoid an error.
28643    Use char because int might match the return type of a GCC
28644    builtin and then its argument prototype would still apply.  */
28645 #ifdef __cplusplus
28646 extern "C"
28647 #endif
28648 char $ac_func ();
28649 /* The GNU C library defines this for functions which it implements
28650     to always fail with ENOSYS.  Some functions are actually named
28651     something starting with __ and the normal name is an alias.  */
28652 #if defined __stub_$ac_func || defined __stub___$ac_func
28653 choke me
28654 #endif
28655
28656 int
28657 main ()
28658 {
28659 return $ac_func ();
28660   ;
28661   return 0;
28662 }
28663 _ACEOF
28664 rm -f conftest.$ac_objext conftest$ac_exeext
28665 if { (ac_try="$ac_link"
28666 case "(($ac_try" in
28667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28668   *) ac_try_echo=$ac_try;;
28669 esac
28670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28671   (eval "$ac_link") 2>conftest.er1
28672   ac_status=$?
28673   grep -v '^ *+' conftest.er1 >conftest.err
28674   rm -f conftest.er1
28675   cat conftest.err >&5
28676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677   (exit $ac_status); } && {
28678          test -z "$ac_c_werror_flag" ||
28679          test ! -s conftest.err
28680        } && test -s conftest$ac_exeext &&
28681        $as_test_x conftest$ac_exeext; then
28682   eval "$as_ac_var=yes"
28683 else
28684   echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28686
28687         eval "$as_ac_var=no"
28688 fi
28689
28690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28691       conftest$ac_exeext conftest.$ac_ext
28692 fi
28693 ac_res=`eval echo '${'$as_ac_var'}'`
28694                { echo "$as_me:$LINENO: result: $ac_res" >&5
28695 echo "${ECHO_T}$ac_res" >&6; }
28696 if test `eval echo '${'$as_ac_var'}'` = yes; then
28697   cat >>confdefs.h <<_ACEOF
28698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28699 _ACEOF
28700
28701 fi
28702 done
28703
28704 fi
28705
28706
28707
28708         if test "x$ac_cv_func_regcomp" != "xyes"; then
28709             if test "$wxUSE_REGEX" = "sys" ; then
28710                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28711 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28712    { (exit 1); exit 1; }; }
28713             else
28714                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28715 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28716                 wxUSE_REGEX=builtin
28717             fi
28718         else
28719                         wxUSE_REGEX=sys
28720                         cat >>confdefs.h <<\_ACEOF
28721 #define WX_NO_REGEX_ADVANCED 1
28722 _ACEOF
28723
28724         fi
28725     fi
28726 fi
28727
28728
28729 ZLIB_LINK=
28730 if test "$wxUSE_ZLIB" != "no" ; then
28731     cat >>confdefs.h <<\_ACEOF
28732 #define wxUSE_ZLIB 1
28733 _ACEOF
28734
28735
28736     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28737                                                 if test "$USE_DARWIN" = 1; then
28738             system_zlib_h_ok="yes"
28739         else
28740                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28741 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28742 if test "${ac_cv_header_zlib_h+set}" = set; then
28743   echo $ECHO_N "(cached) $ECHO_C" >&6
28744 else
28745   if test "$cross_compiling" = yes; then
28746                       unset ac_cv_header_zlib_h
28747
28748 else
28749   cat >conftest.$ac_ext <<_ACEOF
28750 /* confdefs.h.  */
28751 _ACEOF
28752 cat confdefs.h >>conftest.$ac_ext
28753 cat >>conftest.$ac_ext <<_ACEOF
28754 /* end confdefs.h.  */
28755
28756                         #include <zlib.h>
28757                         #include <stdio.h>
28758
28759                         int main()
28760                         {
28761                             FILE *f=fopen("conftestval", "w");
28762                             if (!f) exit(1);
28763                             fprintf(f, "%s",
28764                                     ZLIB_VERSION[0] == '1' &&
28765                                     (ZLIB_VERSION[2] > '1' ||
28766                                     (ZLIB_VERSION[2] == '1' &&
28767                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28768                             exit(0);
28769                         }
28770
28771 _ACEOF
28772 rm -f conftest$ac_exeext
28773 if { (ac_try="$ac_link"
28774 case "(($ac_try" in
28775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28776   *) ac_try_echo=$ac_try;;
28777 esac
28778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28779   (eval "$ac_link") 2>&5
28780   ac_status=$?
28781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28783   { (case "(($ac_try" in
28784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28785   *) ac_try_echo=$ac_try;;
28786 esac
28787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28788   (eval "$ac_try") 2>&5
28789   ac_status=$?
28790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791   (exit $ac_status); }; }; then
28792   ac_cv_header_zlib_h=`cat conftestval`
28793 else
28794   echo "$as_me: program exited with status $ac_status" >&5
28795 echo "$as_me: failed program was:" >&5
28796 sed 's/^/| /' conftest.$ac_ext >&5
28797
28798 ( exit $ac_status )
28799 ac_cv_header_zlib_h=no
28800 fi
28801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28802 fi
28803
28804
28805
28806 fi
28807 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28808 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28809                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28810 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28811 if test "${ac_cv_header_zlib_h+set}" = set; then
28812   echo $ECHO_N "(cached) $ECHO_C" >&6
28813 else
28814   cat >conftest.$ac_ext <<_ACEOF
28815 /* confdefs.h.  */
28816 _ACEOF
28817 cat confdefs.h >>conftest.$ac_ext
28818 cat >>conftest.$ac_ext <<_ACEOF
28819 /* end confdefs.h.  */
28820
28821
28822 #include <zlib.h>
28823 _ACEOF
28824 rm -f conftest.$ac_objext
28825 if { (ac_try="$ac_compile"
28826 case "(($ac_try" in
28827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28828   *) ac_try_echo=$ac_try;;
28829 esac
28830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28831   (eval "$ac_compile") 2>conftest.er1
28832   ac_status=$?
28833   grep -v '^ *+' conftest.er1 >conftest.err
28834   rm -f conftest.er1
28835   cat conftest.err >&5
28836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837   (exit $ac_status); } && {
28838          test -z "$ac_c_werror_flag" ||
28839          test ! -s conftest.err
28840        } && test -s conftest.$ac_objext; then
28841   ac_cv_header_zlib_h=yes
28842 else
28843   echo "$as_me: failed program was:" >&5
28844 sed 's/^/| /' conftest.$ac_ext >&5
28845
28846         ac_cv_header_zlib_h=no
28847 fi
28848
28849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28850 fi
28851 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28852 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28853
28854
28855
28856             system_zlib_h_ok=$ac_cv_header_zlib_h
28857         fi
28858
28859         if test "$system_zlib_h_ok" = "yes"; then
28860             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28861 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28862 if test "${ac_cv_lib_z_deflate+set}" = set; then
28863   echo $ECHO_N "(cached) $ECHO_C" >&6
28864 else
28865   ac_check_lib_save_LIBS=$LIBS
28866 LIBS="-lz  $LIBS"
28867 cat >conftest.$ac_ext <<_ACEOF
28868 /* confdefs.h.  */
28869 _ACEOF
28870 cat confdefs.h >>conftest.$ac_ext
28871 cat >>conftest.$ac_ext <<_ACEOF
28872 /* end confdefs.h.  */
28873
28874 /* Override any GCC internal prototype to avoid an error.
28875    Use char because int might match the return type of a GCC
28876    builtin and then its argument prototype would still apply.  */
28877 #ifdef __cplusplus
28878 extern "C"
28879 #endif
28880 char deflate ();
28881 int
28882 main ()
28883 {
28884 return deflate ();
28885   ;
28886   return 0;
28887 }
28888 _ACEOF
28889 rm -f conftest.$ac_objext conftest$ac_exeext
28890 if { (ac_try="$ac_link"
28891 case "(($ac_try" in
28892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893   *) ac_try_echo=$ac_try;;
28894 esac
28895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28896   (eval "$ac_link") 2>conftest.er1
28897   ac_status=$?
28898   grep -v '^ *+' conftest.er1 >conftest.err
28899   rm -f conftest.er1
28900   cat conftest.err >&5
28901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); } && {
28903          test -z "$ac_c_werror_flag" ||
28904          test ! -s conftest.err
28905        } && test -s conftest$ac_exeext &&
28906        $as_test_x conftest$ac_exeext; then
28907   ac_cv_lib_z_deflate=yes
28908 else
28909   echo "$as_me: failed program was:" >&5
28910 sed 's/^/| /' conftest.$ac_ext >&5
28911
28912         ac_cv_lib_z_deflate=no
28913 fi
28914
28915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28916       conftest$ac_exeext conftest.$ac_ext
28917 LIBS=$ac_check_lib_save_LIBS
28918 fi
28919 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28920 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28921 if test $ac_cv_lib_z_deflate = yes; then
28922   ZLIB_LINK=" -lz"
28923 fi
28924
28925         fi
28926
28927         if test "x$ZLIB_LINK" = "x" ; then
28928             if test "$wxUSE_ZLIB" = "sys" ; then
28929                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28930 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28931    { (exit 1); exit 1; }; }
28932             else
28933                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28934 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28935                 wxUSE_ZLIB=builtin
28936             fi
28937         else
28938                         wxUSE_ZLIB=sys
28939         fi
28940     fi
28941 fi
28942
28943
28944 PNG_LINK=
28945 if test "$wxUSE_LIBPNG" != "no" ; then
28946     cat >>confdefs.h <<\_ACEOF
28947 #define wxUSE_LIBPNG 1
28948 _ACEOF
28949
28950
28951     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28952         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28953 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28954         wxUSE_LIBPNG=sys
28955     fi
28956
28957                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28958         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28959 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28960         wxUSE_LIBPNG=builtin
28961     fi
28962
28963     if test "$wxUSE_MGL" != 1 ; then
28964                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28965                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28966 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28967 if test "${ac_cv_header_png_h+set}" = set; then
28968   echo $ECHO_N "(cached) $ECHO_C" >&6
28969 else
28970   if test "$cross_compiling" = yes; then
28971                       unset ac_cv_header_png_h
28972
28973 else
28974   cat >conftest.$ac_ext <<_ACEOF
28975 /* confdefs.h.  */
28976 _ACEOF
28977 cat confdefs.h >>conftest.$ac_ext
28978 cat >>conftest.$ac_ext <<_ACEOF
28979 /* end confdefs.h.  */
28980
28981                         #include <png.h>
28982                         #include <stdio.h>
28983
28984                         int main()
28985                         {
28986                             FILE *f=fopen("conftestval", "w");
28987                             if (!f) exit(1);
28988                             fprintf(f, "%s",
28989                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28990                             exit(0);
28991                         }
28992
28993 _ACEOF
28994 rm -f conftest$ac_exeext
28995 if { (ac_try="$ac_link"
28996 case "(($ac_try" in
28997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998   *) ac_try_echo=$ac_try;;
28999 esac
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001   (eval "$ac_link") 2>&5
29002   ac_status=$?
29003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29005   { (case "(($ac_try" in
29006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29007   *) ac_try_echo=$ac_try;;
29008 esac
29009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29010   (eval "$ac_try") 2>&5
29011   ac_status=$?
29012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013   (exit $ac_status); }; }; then
29014   ac_cv_header_png_h=`cat conftestval`
29015 else
29016   echo "$as_me: program exited with status $ac_status" >&5
29017 echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29019
29020 ( exit $ac_status )
29021 ac_cv_header_png_h=no
29022 fi
29023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29024 fi
29025
29026
29027
29028 fi
29029 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29030 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29031             { echo "$as_me:$LINENO: checking for png.h" >&5
29032 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
29033 if test "${ac_cv_header_png_h+set}" = set; then
29034   echo $ECHO_N "(cached) $ECHO_C" >&6
29035 else
29036   cat >conftest.$ac_ext <<_ACEOF
29037 /* confdefs.h.  */
29038 _ACEOF
29039 cat confdefs.h >>conftest.$ac_ext
29040 cat >>conftest.$ac_ext <<_ACEOF
29041 /* end confdefs.h.  */
29042
29043
29044 #include <png.h>
29045 _ACEOF
29046 rm -f conftest.$ac_objext
29047 if { (ac_try="$ac_compile"
29048 case "(($ac_try" in
29049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050   *) ac_try_echo=$ac_try;;
29051 esac
29052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29053   (eval "$ac_compile") 2>conftest.er1
29054   ac_status=$?
29055   grep -v '^ *+' conftest.er1 >conftest.err
29056   rm -f conftest.er1
29057   cat conftest.err >&5
29058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29059   (exit $ac_status); } && {
29060          test -z "$ac_c_werror_flag" ||
29061          test ! -s conftest.err
29062        } && test -s conftest.$ac_objext; then
29063   ac_cv_header_png_h=yes
29064 else
29065   echo "$as_me: failed program was:" >&5
29066 sed 's/^/| /' conftest.$ac_ext >&5
29067
29068         ac_cv_header_png_h=no
29069 fi
29070
29071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29072 fi
29073 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29074 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29075
29076
29077
29078             if test "$ac_cv_header_png_h" = "yes"; then
29079                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
29080 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
29081 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
29082   echo $ECHO_N "(cached) $ECHO_C" >&6
29083 else
29084   ac_check_lib_save_LIBS=$LIBS
29085 LIBS="-lpng -lz -lm $LIBS"
29086 cat >conftest.$ac_ext <<_ACEOF
29087 /* confdefs.h.  */
29088 _ACEOF
29089 cat confdefs.h >>conftest.$ac_ext
29090 cat >>conftest.$ac_ext <<_ACEOF
29091 /* end confdefs.h.  */
29092
29093 /* Override any GCC internal prototype to avoid an error.
29094    Use char because int might match the return type of a GCC
29095    builtin and then its argument prototype would still apply.  */
29096 #ifdef __cplusplus
29097 extern "C"
29098 #endif
29099 char png_check_sig ();
29100 int
29101 main ()
29102 {
29103 return png_check_sig ();
29104   ;
29105   return 0;
29106 }
29107 _ACEOF
29108 rm -f conftest.$ac_objext conftest$ac_exeext
29109 if { (ac_try="$ac_link"
29110 case "(($ac_try" in
29111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112   *) ac_try_echo=$ac_try;;
29113 esac
29114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115   (eval "$ac_link") 2>conftest.er1
29116   ac_status=$?
29117   grep -v '^ *+' conftest.er1 >conftest.err
29118   rm -f conftest.er1
29119   cat conftest.err >&5
29120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121   (exit $ac_status); } && {
29122          test -z "$ac_c_werror_flag" ||
29123          test ! -s conftest.err
29124        } && test -s conftest$ac_exeext &&
29125        $as_test_x conftest$ac_exeext; then
29126   ac_cv_lib_png_png_check_sig=yes
29127 else
29128   echo "$as_me: failed program was:" >&5
29129 sed 's/^/| /' conftest.$ac_ext >&5
29130
29131         ac_cv_lib_png_png_check_sig=no
29132 fi
29133
29134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29135       conftest$ac_exeext conftest.$ac_ext
29136 LIBS=$ac_check_lib_save_LIBS
29137 fi
29138 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
29139 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
29140 if test $ac_cv_lib_png_png_check_sig = yes; then
29141   PNG_LINK=" -lpng -lz"
29142 fi
29143
29144             fi
29145
29146             if test "x$PNG_LINK" = "x" ; then
29147                 if test "$wxUSE_LIBPNG" = "sys" ; then
29148                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
29149 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
29150    { (exit 1); exit 1; }; }
29151                 else
29152                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
29153 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
29154                     wxUSE_LIBPNG=builtin
29155                 fi
29156             else
29157                                 wxUSE_LIBPNG=sys
29158             fi
29159         fi
29160     fi
29161 fi
29162
29163
29164 TIFF_LINK=
29165 TIFF_PREREQ_LINKS=-lm
29166 if test "$wxUSE_LIBTIFF" != "no" ; then
29167     cat >>confdefs.h <<\_ACEOF
29168 #define wxUSE_LIBTIFF 1
29169 _ACEOF
29170
29171
29172     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29173                         if test "$wxUSE_LIBJPEG" = "sys"; then
29174             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29175         fi
29176         if test "$wxUSE_ZLIB" = "sys"; then
29177             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29178         fi
29179         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29180 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29181 if test "${ac_cv_header_tiffio_h+set}" = set; then
29182   echo $ECHO_N "(cached) $ECHO_C" >&6
29183 else
29184   cat >conftest.$ac_ext <<_ACEOF
29185 /* confdefs.h.  */
29186 _ACEOF
29187 cat confdefs.h >>conftest.$ac_ext
29188 cat >>conftest.$ac_ext <<_ACEOF
29189 /* end confdefs.h.  */
29190
29191
29192
29193 #include <tiffio.h>
29194 _ACEOF
29195 rm -f conftest.$ac_objext
29196 if { (ac_try="$ac_compile"
29197 case "(($ac_try" in
29198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199   *) ac_try_echo=$ac_try;;
29200 esac
29201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29202   (eval "$ac_compile") 2>conftest.er1
29203   ac_status=$?
29204   grep -v '^ *+' conftest.er1 >conftest.err
29205   rm -f conftest.er1
29206   cat conftest.err >&5
29207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208   (exit $ac_status); } && {
29209          test -z "$ac_c_werror_flag" ||
29210          test ! -s conftest.err
29211        } && test -s conftest.$ac_objext; then
29212   ac_cv_header_tiffio_h=yes
29213 else
29214   echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29216
29217         ac_cv_header_tiffio_h=no
29218 fi
29219
29220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29221 fi
29222 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29223 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29224 if test $ac_cv_header_tiffio_h = yes; then
29225
29226                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29227 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29228 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29229   echo $ECHO_N "(cached) $ECHO_C" >&6
29230 else
29231   ac_check_lib_save_LIBS=$LIBS
29232 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29233 cat >conftest.$ac_ext <<_ACEOF
29234 /* confdefs.h.  */
29235 _ACEOF
29236 cat confdefs.h >>conftest.$ac_ext
29237 cat >>conftest.$ac_ext <<_ACEOF
29238 /* end confdefs.h.  */
29239
29240 /* Override any GCC internal prototype to avoid an error.
29241    Use char because int might match the return type of a GCC
29242    builtin and then its argument prototype would still apply.  */
29243 #ifdef __cplusplus
29244 extern "C"
29245 #endif
29246 char TIFFError ();
29247 int
29248 main ()
29249 {
29250 return TIFFError ();
29251   ;
29252   return 0;
29253 }
29254 _ACEOF
29255 rm -f conftest.$ac_objext conftest$ac_exeext
29256 if { (ac_try="$ac_link"
29257 case "(($ac_try" in
29258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29259   *) ac_try_echo=$ac_try;;
29260 esac
29261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29262   (eval "$ac_link") 2>conftest.er1
29263   ac_status=$?
29264   grep -v '^ *+' conftest.er1 >conftest.err
29265   rm -f conftest.er1
29266   cat conftest.err >&5
29267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268   (exit $ac_status); } && {
29269          test -z "$ac_c_werror_flag" ||
29270          test ! -s conftest.err
29271        } && test -s conftest$ac_exeext &&
29272        $as_test_x conftest$ac_exeext; then
29273   ac_cv_lib_tiff_TIFFError=yes
29274 else
29275   echo "$as_me: failed program was:" >&5
29276 sed 's/^/| /' conftest.$ac_ext >&5
29277
29278         ac_cv_lib_tiff_TIFFError=no
29279 fi
29280
29281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29282       conftest$ac_exeext conftest.$ac_ext
29283 LIBS=$ac_check_lib_save_LIBS
29284 fi
29285 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29286 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29287 if test $ac_cv_lib_tiff_TIFFError = yes; then
29288   TIFF_LINK=" -ltiff"
29289 fi
29290
29291
29292 fi
29293
29294
29295
29296         if test "x$TIFF_LINK" = "x" ; then
29297             if test "$wxUSE_LIBTIFF" = "sys" ; then
29298                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29299 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29300    { (exit 1); exit 1; }; }
29301             else
29302                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29303 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29304                 wxUSE_LIBTIFF=builtin
29305             fi
29306         else
29307                         wxUSE_LIBTIFF=sys
29308         fi
29309     fi
29310     if test "$wxUSE_LIBTIFF" = "builtin" ; then
29311         subdirs="$subdirs src/tiff"
29312
29313     fi
29314 fi
29315
29316
29317 JPEG_LINK=
29318 if test "$wxUSE_LIBJPEG" != "no" ; then
29319     cat >>confdefs.h <<\_ACEOF
29320 #define wxUSE_LIBJPEG 1
29321 _ACEOF
29322
29323
29324     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
29325         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
29326 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
29327         wxUSE_LIBJPEG=sys
29328     fi
29329
29330     if test "$wxUSE_MGL" != 1 ; then
29331                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
29332                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
29333 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
29334             if test "${ac_cv_header_jpeglib_h+set}" = set; then
29335   echo $ECHO_N "(cached) $ECHO_C" >&6
29336 else
29337   cat >conftest.$ac_ext <<_ACEOF
29338 /* confdefs.h.  */
29339 _ACEOF
29340 cat confdefs.h >>conftest.$ac_ext
29341 cat >>conftest.$ac_ext <<_ACEOF
29342 /* end confdefs.h.  */
29343
29344                         #undef HAVE_STDLIB_H
29345                         #include <stdio.h>
29346                         #include <jpeglib.h>
29347
29348 int
29349 main ()
29350 {
29351
29352
29353   ;
29354   return 0;
29355 }
29356 _ACEOF
29357 rm -f conftest.$ac_objext
29358 if { (ac_try="$ac_compile"
29359 case "(($ac_try" in
29360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29361   *) ac_try_echo=$ac_try;;
29362 esac
29363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29364   (eval "$ac_compile") 2>conftest.er1
29365   ac_status=$?
29366   grep -v '^ *+' conftest.er1 >conftest.err
29367   rm -f conftest.er1
29368   cat conftest.err >&5
29369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370   (exit $ac_status); } && {
29371          test -z "$ac_c_werror_flag" ||
29372          test ! -s conftest.err
29373        } && test -s conftest.$ac_objext; then
29374   ac_cv_header_jpeglib_h=yes
29375 else
29376   echo "$as_me: failed program was:" >&5
29377 sed 's/^/| /' conftest.$ac_ext >&5
29378
29379         ac_cv_header_jpeglib_h=no
29380
29381 fi
29382
29383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29384
29385 fi
29386
29387             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
29388 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
29389
29390             if test "$ac_cv_header_jpeglib_h" = "yes"; then
29391                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
29392 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
29393 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
29394   echo $ECHO_N "(cached) $ECHO_C" >&6
29395 else
29396   ac_check_lib_save_LIBS=$LIBS
29397 LIBS="-ljpeg  $LIBS"
29398 cat >conftest.$ac_ext <<_ACEOF
29399 /* confdefs.h.  */
29400 _ACEOF
29401 cat confdefs.h >>conftest.$ac_ext
29402 cat >>conftest.$ac_ext <<_ACEOF
29403 /* end confdefs.h.  */
29404
29405 /* Override any GCC internal prototype to avoid an error.
29406    Use char because int might match the return type of a GCC
29407    builtin and then its argument prototype would still apply.  */
29408 #ifdef __cplusplus
29409 extern "C"
29410 #endif
29411 char jpeg_read_header ();
29412 int
29413 main ()
29414 {
29415 return jpeg_read_header ();
29416   ;
29417   return 0;
29418 }
29419 _ACEOF
29420 rm -f conftest.$ac_objext conftest$ac_exeext
29421 if { (ac_try="$ac_link"
29422 case "(($ac_try" in
29423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29424   *) ac_try_echo=$ac_try;;
29425 esac
29426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29427   (eval "$ac_link") 2>conftest.er1
29428   ac_status=$?
29429   grep -v '^ *+' conftest.er1 >conftest.err
29430   rm -f conftest.er1
29431   cat conftest.err >&5
29432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433   (exit $ac_status); } && {
29434          test -z "$ac_c_werror_flag" ||
29435          test ! -s conftest.err
29436        } && test -s conftest$ac_exeext &&
29437        $as_test_x conftest$ac_exeext; then
29438   ac_cv_lib_jpeg_jpeg_read_header=yes
29439 else
29440   echo "$as_me: failed program was:" >&5
29441 sed 's/^/| /' conftest.$ac_ext >&5
29442
29443         ac_cv_lib_jpeg_jpeg_read_header=no
29444 fi
29445
29446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29447       conftest$ac_exeext conftest.$ac_ext
29448 LIBS=$ac_check_lib_save_LIBS
29449 fi
29450 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29451 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29452 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
29453   JPEG_LINK=" -ljpeg"
29454 fi
29455
29456             fi
29457
29458             if test "x$JPEG_LINK" = "x" ; then
29459                 if test "$wxUSE_LIBJPEG" = "sys" ; then
29460                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
29461 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
29462    { (exit 1); exit 1; }; }
29463                 else
29464                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
29465 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
29466                     wxUSE_LIBJPEG=builtin
29467                 fi
29468             else
29469                                 wxUSE_LIBJPEG=sys
29470
29471                 if test "$wxUSE_MSW" = 1; then
29472                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
29473 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29474 if test "${ac_cv_type_boolean+set}" = set; then
29475   echo $ECHO_N "(cached) $ECHO_C" >&6
29476 else
29477   cat >conftest.$ac_ext <<_ACEOF
29478 /* confdefs.h.  */
29479 _ACEOF
29480 cat confdefs.h >>conftest.$ac_ext
29481 cat >>conftest.$ac_ext <<_ACEOF
29482 /* end confdefs.h.  */
29483 #include <windows.h>
29484
29485 typedef boolean ac__type_new_;
29486 int
29487 main ()
29488 {
29489 if ((ac__type_new_ *) 0)
29490   return 0;
29491 if (sizeof (ac__type_new_))
29492   return 0;
29493   ;
29494   return 0;
29495 }
29496 _ACEOF
29497 rm -f conftest.$ac_objext
29498 if { (ac_try="$ac_compile"
29499 case "(($ac_try" in
29500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29501   *) ac_try_echo=$ac_try;;
29502 esac
29503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29504   (eval "$ac_compile") 2>conftest.er1
29505   ac_status=$?
29506   grep -v '^ *+' conftest.er1 >conftest.err
29507   rm -f conftest.er1
29508   cat conftest.err >&5
29509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); } && {
29511          test -z "$ac_c_werror_flag" ||
29512          test ! -s conftest.err
29513        } && test -s conftest.$ac_objext; then
29514   ac_cv_type_boolean=yes
29515 else
29516   echo "$as_me: failed program was:" >&5
29517 sed 's/^/| /' conftest.$ac_ext >&5
29518
29519         ac_cv_type_boolean=no
29520 fi
29521
29522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29523 fi
29524 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29525 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29526 if test $ac_cv_type_boolean = yes; then
29527
29528 cat >>confdefs.h <<_ACEOF
29529 #define HAVE_BOOLEAN 1
29530 _ACEOF
29531
29532
29533                             { echo "$as_me:$LINENO: checking for boolean" >&5
29534 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29535 if test "${ac_cv_type_boolean+set}" = set; then
29536   echo $ECHO_N "(cached) $ECHO_C" >&6
29537 else
29538   cat >conftest.$ac_ext <<_ACEOF
29539 /* confdefs.h.  */
29540 _ACEOF
29541 cat confdefs.h >>conftest.$ac_ext
29542 cat >>conftest.$ac_ext <<_ACEOF
29543 /* end confdefs.h.  */
29544
29545                                     #undef HAVE_BOOLEAN
29546                                     #include <stdio.h>
29547                                     #include <jpeglib.h>
29548
29549
29550 typedef boolean ac__type_new_;
29551 int
29552 main ()
29553 {
29554 if ((ac__type_new_ *) 0)
29555   return 0;
29556 if (sizeof (ac__type_new_))
29557   return 0;
29558   ;
29559   return 0;
29560 }
29561 _ACEOF
29562 rm -f conftest.$ac_objext
29563 if { (ac_try="$ac_compile"
29564 case "(($ac_try" in
29565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29566   *) ac_try_echo=$ac_try;;
29567 esac
29568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29569   (eval "$ac_compile") 2>conftest.er1
29570   ac_status=$?
29571   grep -v '^ *+' conftest.er1 >conftest.err
29572   rm -f conftest.er1
29573   cat conftest.err >&5
29574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575   (exit $ac_status); } && {
29576          test -z "$ac_c_werror_flag" ||
29577          test ! -s conftest.err
29578        } && test -s conftest.$ac_objext; then
29579   ac_cv_type_boolean=yes
29580 else
29581   echo "$as_me: failed program was:" >&5
29582 sed 's/^/| /' conftest.$ac_ext >&5
29583
29584         ac_cv_type_boolean=no
29585 fi
29586
29587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29588 fi
29589 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29590 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29591
29592 # The cast to long int works around a bug in the HP C Compiler
29593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29595 # This bug is HP SR number 8606223364.
29596 { echo "$as_me:$LINENO: checking size of boolean" >&5
29597 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
29598 if test "${ac_cv_sizeof_boolean+set}" = set; then
29599   echo $ECHO_N "(cached) $ECHO_C" >&6
29600 else
29601   if test "$cross_compiling" = yes; then
29602   # Depending upon the size, compute the lo and hi bounds.
29603 cat >conftest.$ac_ext <<_ACEOF
29604 /* confdefs.h.  */
29605 _ACEOF
29606 cat confdefs.h >>conftest.$ac_ext
29607 cat >>conftest.$ac_ext <<_ACEOF
29608 /* end confdefs.h.  */
29609
29610                                     #undef HAVE_BOOLEAN
29611                                     #include <stdio.h>
29612                                     #include <jpeglib.h>
29613
29614
29615    typedef boolean ac__type_sizeof_;
29616 int
29617 main ()
29618 {
29619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29620 test_array [0] = 0
29621
29622   ;
29623   return 0;
29624 }
29625 _ACEOF
29626 rm -f conftest.$ac_objext
29627 if { (ac_try="$ac_compile"
29628 case "(($ac_try" in
29629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29630   *) ac_try_echo=$ac_try;;
29631 esac
29632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29633   (eval "$ac_compile") 2>conftest.er1
29634   ac_status=$?
29635   grep -v '^ *+' conftest.er1 >conftest.err
29636   rm -f conftest.er1
29637   cat conftest.err >&5
29638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639   (exit $ac_status); } && {
29640          test -z "$ac_c_werror_flag" ||
29641          test ! -s conftest.err
29642        } && test -s conftest.$ac_objext; then
29643   ac_lo=0 ac_mid=0
29644   while :; do
29645     cat >conftest.$ac_ext <<_ACEOF
29646 /* confdefs.h.  */
29647 _ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h.  */
29651
29652                                     #undef HAVE_BOOLEAN
29653                                     #include <stdio.h>
29654                                     #include <jpeglib.h>
29655
29656
29657    typedef boolean ac__type_sizeof_;
29658 int
29659 main ()
29660 {
29661 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29662 test_array [0] = 0
29663
29664   ;
29665   return 0;
29666 }
29667 _ACEOF
29668 rm -f conftest.$ac_objext
29669 if { (ac_try="$ac_compile"
29670 case "(($ac_try" in
29671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672   *) ac_try_echo=$ac_try;;
29673 esac
29674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675   (eval "$ac_compile") 2>conftest.er1
29676   ac_status=$?
29677   grep -v '^ *+' conftest.er1 >conftest.err
29678   rm -f conftest.er1
29679   cat conftest.err >&5
29680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681   (exit $ac_status); } && {
29682          test -z "$ac_c_werror_flag" ||
29683          test ! -s conftest.err
29684        } && test -s conftest.$ac_objext; then
29685   ac_hi=$ac_mid; break
29686 else
29687   echo "$as_me: failed program was:" >&5
29688 sed 's/^/| /' conftest.$ac_ext >&5
29689
29690         ac_lo=`expr $ac_mid + 1`
29691                         if test $ac_lo -le $ac_mid; then
29692                           ac_lo= ac_hi=
29693                           break
29694                         fi
29695                         ac_mid=`expr 2 '*' $ac_mid + 1`
29696 fi
29697
29698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29699   done
29700 else
29701   echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29703
29704         cat >conftest.$ac_ext <<_ACEOF
29705 /* confdefs.h.  */
29706 _ACEOF
29707 cat confdefs.h >>conftest.$ac_ext
29708 cat >>conftest.$ac_ext <<_ACEOF
29709 /* end confdefs.h.  */
29710
29711                                     #undef HAVE_BOOLEAN
29712                                     #include <stdio.h>
29713                                     #include <jpeglib.h>
29714
29715
29716    typedef boolean ac__type_sizeof_;
29717 int
29718 main ()
29719 {
29720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29721 test_array [0] = 0
29722
29723   ;
29724   return 0;
29725 }
29726 _ACEOF
29727 rm -f conftest.$ac_objext
29728 if { (ac_try="$ac_compile"
29729 case "(($ac_try" in
29730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29731   *) ac_try_echo=$ac_try;;
29732 esac
29733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29734   (eval "$ac_compile") 2>conftest.er1
29735   ac_status=$?
29736   grep -v '^ *+' conftest.er1 >conftest.err
29737   rm -f conftest.er1
29738   cat conftest.err >&5
29739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740   (exit $ac_status); } && {
29741          test -z "$ac_c_werror_flag" ||
29742          test ! -s conftest.err
29743        } && test -s conftest.$ac_objext; then
29744   ac_hi=-1 ac_mid=-1
29745   while :; do
29746     cat >conftest.$ac_ext <<_ACEOF
29747 /* confdefs.h.  */
29748 _ACEOF
29749 cat confdefs.h >>conftest.$ac_ext
29750 cat >>conftest.$ac_ext <<_ACEOF
29751 /* end confdefs.h.  */
29752
29753                                     #undef HAVE_BOOLEAN
29754                                     #include <stdio.h>
29755                                     #include <jpeglib.h>
29756
29757
29758    typedef boolean ac__type_sizeof_;
29759 int
29760 main ()
29761 {
29762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29763 test_array [0] = 0
29764
29765   ;
29766   return 0;
29767 }
29768 _ACEOF
29769 rm -f conftest.$ac_objext
29770 if { (ac_try="$ac_compile"
29771 case "(($ac_try" in
29772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29773   *) ac_try_echo=$ac_try;;
29774 esac
29775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29776   (eval "$ac_compile") 2>conftest.er1
29777   ac_status=$?
29778   grep -v '^ *+' conftest.er1 >conftest.err
29779   rm -f conftest.er1
29780   cat conftest.err >&5
29781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782   (exit $ac_status); } && {
29783          test -z "$ac_c_werror_flag" ||
29784          test ! -s conftest.err
29785        } && test -s conftest.$ac_objext; then
29786   ac_lo=$ac_mid; break
29787 else
29788   echo "$as_me: failed program was:" >&5
29789 sed 's/^/| /' conftest.$ac_ext >&5
29790
29791         ac_hi=`expr '(' $ac_mid ')' - 1`
29792                         if test $ac_mid -le $ac_hi; then
29793                           ac_lo= ac_hi=
29794                           break
29795                         fi
29796                         ac_mid=`expr 2 '*' $ac_mid`
29797 fi
29798
29799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29800   done
29801 else
29802   echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29804
29805         ac_lo= ac_hi=
29806 fi
29807
29808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29809 fi
29810
29811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29812 # Binary search between lo and hi bounds.
29813 while test "x$ac_lo" != "x$ac_hi"; do
29814   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29815   cat >conftest.$ac_ext <<_ACEOF
29816 /* confdefs.h.  */
29817 _ACEOF
29818 cat confdefs.h >>conftest.$ac_ext
29819 cat >>conftest.$ac_ext <<_ACEOF
29820 /* end confdefs.h.  */
29821
29822                                     #undef HAVE_BOOLEAN
29823                                     #include <stdio.h>
29824                                     #include <jpeglib.h>
29825
29826
29827    typedef boolean ac__type_sizeof_;
29828 int
29829 main ()
29830 {
29831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29832 test_array [0] = 0
29833
29834   ;
29835   return 0;
29836 }
29837 _ACEOF
29838 rm -f conftest.$ac_objext
29839 if { (ac_try="$ac_compile"
29840 case "(($ac_try" in
29841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29842   *) ac_try_echo=$ac_try;;
29843 esac
29844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29845   (eval "$ac_compile") 2>conftest.er1
29846   ac_status=$?
29847   grep -v '^ *+' conftest.er1 >conftest.err
29848   rm -f conftest.er1
29849   cat conftest.err >&5
29850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851   (exit $ac_status); } && {
29852          test -z "$ac_c_werror_flag" ||
29853          test ! -s conftest.err
29854        } && test -s conftest.$ac_objext; then
29855   ac_hi=$ac_mid
29856 else
29857   echo "$as_me: failed program was:" >&5
29858 sed 's/^/| /' conftest.$ac_ext >&5
29859
29860         ac_lo=`expr '(' $ac_mid ')' + 1`
29861 fi
29862
29863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29864 done
29865 case $ac_lo in
29866 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29867 '') if test "$ac_cv_type_boolean" = yes; then
29868      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29869 See \`config.log' for more details." >&5
29870 echo "$as_me: error: cannot compute sizeof (boolean)
29871 See \`config.log' for more details." >&2;}
29872    { (exit 77); exit 77; }; }
29873    else
29874      ac_cv_sizeof_boolean=0
29875    fi ;;
29876 esac
29877 else
29878   cat >conftest.$ac_ext <<_ACEOF
29879 /* confdefs.h.  */
29880 _ACEOF
29881 cat confdefs.h >>conftest.$ac_ext
29882 cat >>conftest.$ac_ext <<_ACEOF
29883 /* end confdefs.h.  */
29884
29885                                     #undef HAVE_BOOLEAN
29886                                     #include <stdio.h>
29887                                     #include <jpeglib.h>
29888
29889
29890    typedef boolean ac__type_sizeof_;
29891 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29892 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29893 #include <stdio.h>
29894 #include <stdlib.h>
29895 int
29896 main ()
29897 {
29898
29899   FILE *f = fopen ("conftest.val", "w");
29900   if (! f)
29901     return 1;
29902   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29903     {
29904       long int i = longval ();
29905       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29906         return 1;
29907       fprintf (f, "%ld\n", i);
29908     }
29909   else
29910     {
29911       unsigned long int i = ulongval ();
29912       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29913         return 1;
29914       fprintf (f, "%lu\n", i);
29915     }
29916   return ferror (f) || fclose (f) != 0;
29917
29918   ;
29919   return 0;
29920 }
29921 _ACEOF
29922 rm -f conftest$ac_exeext
29923 if { (ac_try="$ac_link"
29924 case "(($ac_try" in
29925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29926   *) ac_try_echo=$ac_try;;
29927 esac
29928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29929   (eval "$ac_link") 2>&5
29930   ac_status=$?
29931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29933   { (case "(($ac_try" in
29934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29935   *) ac_try_echo=$ac_try;;
29936 esac
29937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29938   (eval "$ac_try") 2>&5
29939   ac_status=$?
29940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941   (exit $ac_status); }; }; then
29942   ac_cv_sizeof_boolean=`cat conftest.val`
29943 else
29944   echo "$as_me: program exited with status $ac_status" >&5
29945 echo "$as_me: failed program was:" >&5
29946 sed 's/^/| /' conftest.$ac_ext >&5
29947
29948 ( exit $ac_status )
29949 if test "$ac_cv_type_boolean" = yes; then
29950      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29951 See \`config.log' for more details." >&5
29952 echo "$as_me: error: cannot compute sizeof (boolean)
29953 See \`config.log' for more details." >&2;}
29954    { (exit 77); exit 77; }; }
29955    else
29956      ac_cv_sizeof_boolean=0
29957    fi
29958 fi
29959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29960 fi
29961 rm -f conftest.val
29962 fi
29963 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29964 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29965
29966
29967
29968 cat >>confdefs.h <<_ACEOF
29969 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29970 _ACEOF
29971
29972
29973                             cat >>confdefs.h <<_ACEOF
29974 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29975 _ACEOF
29976
29977
29978 fi
29979
29980                 fi
29981             fi
29982         fi
29983     fi
29984 else
29985         if test "$wxUSE_LIBTIFF" = "builtin"; then
29986                                                         ac_configure_args="$ac_configure_args --disable-jpeg"
29987     fi
29988 fi
29989
29990
29991 if test "$wxUSE_WCHAR_T" != "yes"; then
29992     if test "$wxUSE_EXPAT" != "no"; then
29993         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
29994 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
29995         wxUSE_EXPAT=no
29996     fi
29997     if test "$wxUSE_XML" != "no"; then
29998         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
29999 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
30000         wxUSE_XML=no
30001     fi
30002 fi
30003
30004 if test "$wxUSE_EXPAT" != "no"; then
30005     wxUSE_XML=yes
30006     cat >>confdefs.h <<\_ACEOF
30007 #define wxUSE_EXPAT 1
30008 _ACEOF
30009
30010     cat >>confdefs.h <<\_ACEOF
30011 #define wxUSE_XML 1
30012 _ACEOF
30013
30014
30015     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
30016         { echo "$as_me:$LINENO: checking for expat.h" >&5
30017 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
30018 if test "${ac_cv_header_expat_h+set}" = set; then
30019   echo $ECHO_N "(cached) $ECHO_C" >&6
30020 else
30021   cat >conftest.$ac_ext <<_ACEOF
30022 /* confdefs.h.  */
30023 _ACEOF
30024 cat confdefs.h >>conftest.$ac_ext
30025 cat >>conftest.$ac_ext <<_ACEOF
30026 /* end confdefs.h.  */
30027
30028
30029 #include <expat.h>
30030 _ACEOF
30031 rm -f conftest.$ac_objext
30032 if { (ac_try="$ac_compile"
30033 case "(($ac_try" in
30034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035   *) ac_try_echo=$ac_try;;
30036 esac
30037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038   (eval "$ac_compile") 2>conftest.er1
30039   ac_status=$?
30040   grep -v '^ *+' conftest.er1 >conftest.err
30041   rm -f conftest.er1
30042   cat conftest.err >&5
30043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044   (exit $ac_status); } && {
30045          test -z "$ac_c_werror_flag" ||
30046          test ! -s conftest.err
30047        } && test -s conftest.$ac_objext; then
30048   ac_cv_header_expat_h=yes
30049 else
30050   echo "$as_me: failed program was:" >&5
30051 sed 's/^/| /' conftest.$ac_ext >&5
30052
30053         ac_cv_header_expat_h=no
30054 fi
30055
30056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30057 fi
30058 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
30059 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
30060 if test $ac_cv_header_expat_h = yes; then
30061   found_expat_h=1
30062 fi
30063
30064
30065         if test "x$found_expat_h" = "x1"; then
30066                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
30067 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
30068 if test "${wx_cv_expat_is_not_broken+set}" = set; then
30069   echo $ECHO_N "(cached) $ECHO_C" >&6
30070 else
30071
30072                 ac_ext=cpp
30073 ac_cpp='$CXXCPP $CPPFLAGS'
30074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30077
30078                 cat >conftest.$ac_ext <<_ACEOF
30079 /* confdefs.h.  */
30080 _ACEOF
30081 cat confdefs.h >>conftest.$ac_ext
30082 cat >>conftest.$ac_ext <<_ACEOF
30083 /* end confdefs.h.  */
30084 #include <expat.h>
30085 int
30086 main ()
30087 {
30088
30089   ;
30090   return 0;
30091 }
30092 _ACEOF
30093 rm -f conftest.$ac_objext
30094 if { (ac_try="$ac_compile"
30095 case "(($ac_try" in
30096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097   *) ac_try_echo=$ac_try;;
30098 esac
30099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100   (eval "$ac_compile") 2>conftest.er1
30101   ac_status=$?
30102   grep -v '^ *+' conftest.er1 >conftest.err
30103   rm -f conftest.er1
30104   cat conftest.err >&5
30105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106   (exit $ac_status); } && {
30107          test -z "$ac_cxx_werror_flag" ||
30108          test ! -s conftest.err
30109        } && test -s conftest.$ac_objext; then
30110   wx_cv_expat_is_not_broken=yes
30111 else
30112   echo "$as_me: failed program was:" >&5
30113 sed 's/^/| /' conftest.$ac_ext >&5
30114
30115         wx_cv_expat_is_not_broken=no
30116
30117 fi
30118
30119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30120                 ac_ext=c
30121 ac_cpp='$CPP $CPPFLAGS'
30122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30125
30126
30127
30128 fi
30129 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
30130 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
30131             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
30132                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
30133 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
30134 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
30135   echo $ECHO_N "(cached) $ECHO_C" >&6
30136 else
30137   ac_check_lib_save_LIBS=$LIBS
30138 LIBS="-lexpat  $LIBS"
30139 cat >conftest.$ac_ext <<_ACEOF
30140 /* confdefs.h.  */
30141 _ACEOF
30142 cat confdefs.h >>conftest.$ac_ext
30143 cat >>conftest.$ac_ext <<_ACEOF
30144 /* end confdefs.h.  */
30145
30146 /* Override any GCC internal prototype to avoid an error.
30147    Use char because int might match the return type of a GCC
30148    builtin and then its argument prototype would still apply.  */
30149 #ifdef __cplusplus
30150 extern "C"
30151 #endif
30152 char XML_ParserCreate ();
30153 int
30154 main ()
30155 {
30156 return XML_ParserCreate ();
30157   ;
30158   return 0;
30159 }
30160 _ACEOF
30161 rm -f conftest.$ac_objext conftest$ac_exeext
30162 if { (ac_try="$ac_link"
30163 case "(($ac_try" in
30164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30165   *) ac_try_echo=$ac_try;;
30166 esac
30167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30168   (eval "$ac_link") 2>conftest.er1
30169   ac_status=$?
30170   grep -v '^ *+' conftest.er1 >conftest.err
30171   rm -f conftest.er1
30172   cat conftest.err >&5
30173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174   (exit $ac_status); } && {
30175          test -z "$ac_c_werror_flag" ||
30176          test ! -s conftest.err
30177        } && test -s conftest$ac_exeext &&
30178        $as_test_x conftest$ac_exeext; then
30179   ac_cv_lib_expat_XML_ParserCreate=yes
30180 else
30181   echo "$as_me: failed program was:" >&5
30182 sed 's/^/| /' conftest.$ac_ext >&5
30183
30184         ac_cv_lib_expat_XML_ParserCreate=no
30185 fi
30186
30187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30188       conftest$ac_exeext conftest.$ac_ext
30189 LIBS=$ac_check_lib_save_LIBS
30190 fi
30191 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
30192 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
30193 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
30194   EXPAT_LINK=" -lexpat"
30195 fi
30196
30197             fi
30198         fi
30199         if test "x$EXPAT_LINK" = "x" ; then
30200             if test "$wxUSE_EXPAT" = "sys" ; then
30201                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
30202 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
30203    { (exit 1); exit 1; }; }
30204             else
30205                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
30206 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
30207                 wxUSE_EXPAT=builtin
30208             fi
30209         else
30210                         wxUSE_EXPAT=sys
30211         fi
30212     fi
30213     if test "$wxUSE_EXPAT" = "builtin" ; then
30214                 subdirs="$subdirs src/expat"
30215
30216     fi
30217 fi
30218
30219
30220
30221 if test "$wxUSE_LIBMSPACK" != "no"; then
30222     { echo "$as_me:$LINENO: checking for mspack.h" >&5
30223 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
30224 if test "${ac_cv_header_mspack_h+set}" = set; then
30225   echo $ECHO_N "(cached) $ECHO_C" >&6
30226 else
30227   cat >conftest.$ac_ext <<_ACEOF
30228 /* confdefs.h.  */
30229 _ACEOF
30230 cat confdefs.h >>conftest.$ac_ext
30231 cat >>conftest.$ac_ext <<_ACEOF
30232 /* end confdefs.h.  */
30233
30234
30235 #include <mspack.h>
30236 _ACEOF
30237 rm -f conftest.$ac_objext
30238 if { (ac_try="$ac_compile"
30239 case "(($ac_try" in
30240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30241   *) ac_try_echo=$ac_try;;
30242 esac
30243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30244   (eval "$ac_compile") 2>conftest.er1
30245   ac_status=$?
30246   grep -v '^ *+' conftest.er1 >conftest.err
30247   rm -f conftest.er1
30248   cat conftest.err >&5
30249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250   (exit $ac_status); } && {
30251          test -z "$ac_c_werror_flag" ||
30252          test ! -s conftest.err
30253        } && test -s conftest.$ac_objext; then
30254   ac_cv_header_mspack_h=yes
30255 else
30256   echo "$as_me: failed program was:" >&5
30257 sed 's/^/| /' conftest.$ac_ext >&5
30258
30259         ac_cv_header_mspack_h=no
30260 fi
30261
30262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30263 fi
30264 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
30265 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
30266 if test $ac_cv_header_mspack_h = yes; then
30267   found_mspack_h=1
30268 fi
30269
30270
30271     if test "x$found_mspack_h" = "x1"; then
30272         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
30273 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
30274 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
30275   echo $ECHO_N "(cached) $ECHO_C" >&6
30276 else
30277   ac_check_lib_save_LIBS=$LIBS
30278 LIBS="-lmspack  $LIBS"
30279 cat >conftest.$ac_ext <<_ACEOF
30280 /* confdefs.h.  */
30281 _ACEOF
30282 cat confdefs.h >>conftest.$ac_ext
30283 cat >>conftest.$ac_ext <<_ACEOF
30284 /* end confdefs.h.  */
30285
30286 /* Override any GCC internal prototype to avoid an error.
30287    Use char because int might match the return type of a GCC
30288    builtin and then its argument prototype would still apply.  */
30289 #ifdef __cplusplus
30290 extern "C"
30291 #endif
30292 char mspack_create_chm_decompressor ();
30293 int
30294 main ()
30295 {
30296 return mspack_create_chm_decompressor ();
30297   ;
30298   return 0;
30299 }
30300 _ACEOF
30301 rm -f conftest.$ac_objext conftest$ac_exeext
30302 if { (ac_try="$ac_link"
30303 case "(($ac_try" in
30304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30305   *) ac_try_echo=$ac_try;;
30306 esac
30307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30308   (eval "$ac_link") 2>conftest.er1
30309   ac_status=$?
30310   grep -v '^ *+' conftest.er1 >conftest.err
30311   rm -f conftest.er1
30312   cat conftest.err >&5
30313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314   (exit $ac_status); } && {
30315          test -z "$ac_c_werror_flag" ||
30316          test ! -s conftest.err
30317        } && test -s conftest$ac_exeext &&
30318        $as_test_x conftest$ac_exeext; then
30319   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
30320 else
30321   echo "$as_me: failed program was:" >&5
30322 sed 's/^/| /' conftest.$ac_ext >&5
30323
30324         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
30325 fi
30326
30327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30328       conftest$ac_exeext conftest.$ac_ext
30329 LIBS=$ac_check_lib_save_LIBS
30330 fi
30331 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
30332 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
30333 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
30334   MSPACK_LINK=" -lmspack"
30335 fi
30336
30337     fi
30338     if test "x$MSPACK_LINK" = "x" ; then
30339         wxUSE_LIBMSPACK=no
30340     fi
30341 fi
30342
30343 if test "$wxUSE_LIBMSPACK" != "no"; then
30344     cat >>confdefs.h <<\_ACEOF
30345 #define wxUSE_LIBMSPACK 1
30346 _ACEOF
30347
30348 fi
30349
30350
30351
30352 AFMINSTALL=
30353 WIN32INSTALL=
30354
30355 TOOLKIT=
30356 TOOLKIT_INCLUDE=
30357 WIDGET_SET=
30358
30359 if test "$USE_WIN32" = 1 ; then
30360
30361 for ac_header in w32api.h
30362 do
30363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30367   echo $ECHO_N "(cached) $ECHO_C" >&6
30368 else
30369   cat >conftest.$ac_ext <<_ACEOF
30370 /* confdefs.h.  */
30371 _ACEOF
30372 cat confdefs.h >>conftest.$ac_ext
30373 cat >>conftest.$ac_ext <<_ACEOF
30374 /* end confdefs.h.  */
30375
30376
30377 #include <$ac_header>
30378 _ACEOF
30379 rm -f conftest.$ac_objext
30380 if { (ac_try="$ac_compile"
30381 case "(($ac_try" in
30382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30383   *) ac_try_echo=$ac_try;;
30384 esac
30385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30386   (eval "$ac_compile") 2>conftest.er1
30387   ac_status=$?
30388   grep -v '^ *+' conftest.er1 >conftest.err
30389   rm -f conftest.er1
30390   cat conftest.err >&5
30391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392   (exit $ac_status); } && {
30393          test -z "$ac_c_werror_flag" ||
30394          test ! -s conftest.err
30395        } && test -s conftest.$ac_objext; then
30396   eval "$as_ac_Header=yes"
30397 else
30398   echo "$as_me: failed program was:" >&5
30399 sed 's/^/| /' conftest.$ac_ext >&5
30400
30401         eval "$as_ac_Header=no"
30402 fi
30403
30404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30405 fi
30406 ac_res=`eval echo '${'$as_ac_Header'}'`
30407                { echo "$as_me:$LINENO: result: $ac_res" >&5
30408 echo "${ECHO_T}$ac_res" >&6; }
30409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30410   cat >>confdefs.h <<_ACEOF
30411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30412 _ACEOF
30413
30414 fi
30415
30416 done
30417
30418     { echo "$as_me:$LINENO: checking for windows.h" >&5
30419 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30420 if test "${ac_cv_header_windows_h+set}" = set; then
30421   echo $ECHO_N "(cached) $ECHO_C" >&6
30422 else
30423   cat >conftest.$ac_ext <<_ACEOF
30424 /* confdefs.h.  */
30425 _ACEOF
30426 cat confdefs.h >>conftest.$ac_ext
30427 cat >>conftest.$ac_ext <<_ACEOF
30428 /* end confdefs.h.  */
30429
30430
30431 #include <windows.h>
30432 _ACEOF
30433 rm -f conftest.$ac_objext
30434 if { (ac_try="$ac_compile"
30435 case "(($ac_try" in
30436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30437   *) ac_try_echo=$ac_try;;
30438 esac
30439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30440   (eval "$ac_compile") 2>conftest.er1
30441   ac_status=$?
30442   grep -v '^ *+' conftest.er1 >conftest.err
30443   rm -f conftest.er1
30444   cat conftest.err >&5
30445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30446   (exit $ac_status); } && {
30447          test -z "$ac_c_werror_flag" ||
30448          test ! -s conftest.err
30449        } && test -s conftest.$ac_objext; then
30450   ac_cv_header_windows_h=yes
30451 else
30452   echo "$as_me: failed program was:" >&5
30453 sed 's/^/| /' conftest.$ac_ext >&5
30454
30455         ac_cv_header_windows_h=no
30456 fi
30457
30458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30459 fi
30460 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30461 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30462 if test $ac_cv_header_windows_h = yes; then
30463   :
30464 else
30465
30466         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
30467 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
30468    { (exit 1); exit 1; }; }
30469
30470 fi
30471
30472
30473
30474             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
30475
30476     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
30477         LIBS="$LIBS -loleacc"
30478     fi
30479
30480     case "${host}" in
30481         *-*-cygwin* )
30482                         LIBS="$LIBS -lkernel32 -luser32"
30483     esac
30484
30485         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30486     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
30487
30488                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30489
30490         WIN32INSTALL=win32install
30491
30492         { echo "$as_me:$LINENO: checking for pbt.h" >&5
30493 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
30494 if test "${ac_cv_header_pbt_h+set}" = set; then
30495   echo $ECHO_N "(cached) $ECHO_C" >&6
30496 else
30497   cat >conftest.$ac_ext <<_ACEOF
30498 /* confdefs.h.  */
30499 _ACEOF
30500 cat confdefs.h >>conftest.$ac_ext
30501 cat >>conftest.$ac_ext <<_ACEOF
30502 /* end confdefs.h.  */
30503
30504
30505 #include <pbt.h>
30506 _ACEOF
30507 rm -f conftest.$ac_objext
30508 if { (ac_try="$ac_compile"
30509 case "(($ac_try" in
30510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511   *) ac_try_echo=$ac_try;;
30512 esac
30513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514   (eval "$ac_compile") 2>conftest.er1
30515   ac_status=$?
30516   grep -v '^ *+' conftest.er1 >conftest.err
30517   rm -f conftest.er1
30518   cat conftest.err >&5
30519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520   (exit $ac_status); } && {
30521          test -z "$ac_c_werror_flag" ||
30522          test ! -s conftest.err
30523        } && test -s conftest.$ac_objext; then
30524   ac_cv_header_pbt_h=yes
30525 else
30526   echo "$as_me: failed program was:" >&5
30527 sed 's/^/| /' conftest.$ac_ext >&5
30528
30529         ac_cv_header_pbt_h=no
30530 fi
30531
30532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30533 fi
30534 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
30535 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
30536 if test $ac_cv_header_pbt_h = yes; then
30537   :
30538 else
30539   cat >>confdefs.h <<\_ACEOF
30540 #define NEED_PBT_H 1
30541 _ACEOF
30542
30543 fi
30544
30545
30546 fi
30547
30548 if test "$wxUSE_GUI" = "yes"; then
30549     USE_GUI=1
30550
30551     GUI_TK_LIBRARY=
30552
30553     WXGTK12=
30554     WXGTK127=
30555     WXGTK20=
30556     WXGPE=
30557
30558     if test "$wxUSE_COCOA" = 1 ; then
30559         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
30560             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
30561 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
30562             wxUSE_PRINTING_ARCHITECTURE=no
30563         fi
30564         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
30565             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
30566 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
30567             wxUSE_DRAG_AND_DROP=no
30568         fi
30569         if test "$wxUSE_DRAGIMAGE" = "yes"; then
30570             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
30571 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
30572             wxUSE_DRAGIMAGE=no
30573         fi
30574     fi
30575
30576     if test "$wxUSE_MSW" = 1 ; then
30577         TOOLKIT=MSW
30578         GUIDIST=MSW_DIST
30579
30580                 case "${host}" in
30581             *-*-mingw32* )
30582                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
30583         esac
30584     fi
30585
30586     if test "$wxUSE_GTK" = 1; then
30587                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
30588 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
30589
30590         gtk_version_cached=1
30591         if test "${wx_cv_lib_gtk+set}" = set; then
30592   echo $ECHO_N "(cached) $ECHO_C" >&6
30593 else
30594
30595                                                 gtk_version_cached=0
30596                 { echo "$as_me:$LINENO: result: " >&5
30597 echo "${ECHO_T}" >&6; }
30598
30599                                                 GTK_MODULES=
30600                 if test "$wxUSE_THREADS" = "yes"; then
30601                     GTK_MODULES=gthread
30602                 fi
30603
30604                                 wx_cv_lib_gtk=
30605                 if test "x$wxGTK_VERSION" != "x1"
30606                 then
30607                                                                                 case "${host}" in
30608                         *-*-solaris2* )
30609                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
30610                                 enable_gtktest=no
30611                             fi
30612                     esac
30613
30614                     # Check whether --enable-gtktest was given.
30615 if test "${enable_gtktest+set}" = set; then
30616   enableval=$enable_gtktest;
30617 else
30618   enable_gtktest=yes
30619 fi
30620
30621
30622   pkg_config_args=gtk+-2.0
30623   for module in . $GTK_MODULES
30624   do
30625       case "$module" in
30626          gthread)
30627              pkg_config_args="$pkg_config_args gthread-2.0"
30628          ;;
30629       esac
30630   done
30631
30632   no_gtk=""
30633
30634   # Extract the first word of "pkg-config", so it can be a program name with args.
30635 set dummy pkg-config; ac_word=$2
30636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30638 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30639   echo $ECHO_N "(cached) $ECHO_C" >&6
30640 else
30641   case $PKG_CONFIG in
30642   [\\/]* | ?:[\\/]*)
30643   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30644   ;;
30645   *)
30646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30647 for as_dir in $PATH
30648 do
30649   IFS=$as_save_IFS
30650   test -z "$as_dir" && as_dir=.
30651   for ac_exec_ext in '' $ac_executable_extensions; do
30652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30653     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30655     break 2
30656   fi
30657 done
30658 done
30659 IFS=$as_save_IFS
30660
30661   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30662   ;;
30663 esac
30664 fi
30665 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30666 if test -n "$PKG_CONFIG"; then
30667   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30668 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30669 else
30670   { echo "$as_me:$LINENO: result: no" >&5
30671 echo "${ECHO_T}no" >&6; }
30672 fi
30673
30674
30675
30676   if test x$PKG_CONFIG != xno ; then
30677     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30678       :
30679     else
30680       echo "*** pkg-config too old; version 0.7 or better required."
30681       no_gtk=yes
30682       PKG_CONFIG=no
30683     fi
30684   else
30685     no_gtk=yes
30686   fi
30687
30688   min_gtk_version=2.0.0
30689   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30690 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30691
30692   if test x$PKG_CONFIG != xno ; then
30693     ## don't try to run the test against uninstalled libtool libs
30694     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30695           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30696           enable_gtktest=no
30697     fi
30698
30699     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30700           :
30701     else
30702           no_gtk=yes
30703     fi
30704   fi
30705
30706   if test x"$no_gtk" = x ; then
30707     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30708     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30709     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30710            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30711     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30712            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30713     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30714            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30715     if test "x$enable_gtktest" = "xyes" ; then
30716       ac_save_CFLAGS="$CFLAGS"
30717       ac_save_LIBS="$LIBS"
30718       CFLAGS="$CFLAGS $GTK_CFLAGS"
30719       LIBS="$GTK_LIBS $LIBS"
30720       rm -f conf.gtktest
30721       if test "$cross_compiling" = yes; then
30722   echo $ac_n "cross compiling; assumed OK... $ac_c"
30723 else
30724   cat >conftest.$ac_ext <<_ACEOF
30725 /* confdefs.h.  */
30726 _ACEOF
30727 cat confdefs.h >>conftest.$ac_ext
30728 cat >>conftest.$ac_ext <<_ACEOF
30729 /* end confdefs.h.  */
30730
30731 #include <gtk/gtk.h>
30732 #include <stdio.h>
30733 #include <stdlib.h>
30734
30735 int
30736 main ()
30737 {
30738   int major, minor, micro;
30739   char *tmp_version;
30740
30741   system ("touch conf.gtktest");
30742
30743   /* HP/UX 9 (%@#!) writes to sscanf strings */
30744   tmp_version = g_strdup("$min_gtk_version");
30745   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30746      printf("%s, bad version string\n", "$min_gtk_version");
30747      exit(1);
30748    }
30749
30750   if ((gtk_major_version != $gtk_config_major_version) ||
30751       (gtk_minor_version != $gtk_config_minor_version) ||
30752       (gtk_micro_version != $gtk_config_micro_version))
30753     {
30754       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30755              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30756              gtk_major_version, gtk_minor_version, gtk_micro_version);
30757       printf ("*** was found! If pkg-config was correct, then it is best\n");
30758       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30759       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30760       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30761       printf("*** required on your system.\n");
30762       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30763       printf("*** to point to the correct configuration files\n");
30764     }
30765   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30766            (gtk_minor_version != GTK_MINOR_VERSION) ||
30767            (gtk_micro_version != GTK_MICRO_VERSION))
30768     {
30769       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30770              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30771       printf("*** library (version %d.%d.%d)\n",
30772              gtk_major_version, gtk_minor_version, gtk_micro_version);
30773     }
30774   else
30775     {
30776       if ((gtk_major_version > major) ||
30777         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30778         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30779       {
30780         return 0;
30781        }
30782      else
30783       {
30784         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30785                gtk_major_version, gtk_minor_version, gtk_micro_version);
30786         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30787                major, minor, micro);
30788         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30789         printf("***\n");
30790         printf("*** If you have already installed a sufficiently new version, this error\n");
30791         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30792         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30793         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30794         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30795         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30796         printf("*** so that the correct libraries are found at run-time))\n");
30797       }
30798     }
30799   return 1;
30800 }
30801
30802 _ACEOF
30803 rm -f conftest$ac_exeext
30804 if { (ac_try="$ac_link"
30805 case "(($ac_try" in
30806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807   *) ac_try_echo=$ac_try;;
30808 esac
30809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30810   (eval "$ac_link") 2>&5
30811   ac_status=$?
30812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30814   { (case "(($ac_try" in
30815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816   *) ac_try_echo=$ac_try;;
30817 esac
30818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819   (eval "$ac_try") 2>&5
30820   ac_status=$?
30821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822   (exit $ac_status); }; }; then
30823   :
30824 else
30825   echo "$as_me: program exited with status $ac_status" >&5
30826 echo "$as_me: failed program was:" >&5
30827 sed 's/^/| /' conftest.$ac_ext >&5
30828
30829 ( exit $ac_status )
30830 no_gtk=yes
30831 fi
30832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30833 fi
30834
30835
30836        CFLAGS="$ac_save_CFLAGS"
30837        LIBS="$ac_save_LIBS"
30838      fi
30839   fi
30840   if test "x$no_gtk" = x ; then
30841      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30842 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30843      wx_cv_lib_gtk=2.0
30844   else
30845      { echo "$as_me:$LINENO: result: no" >&5
30846 echo "${ECHO_T}no" >&6; }
30847      if test "$PKG_CONFIG" = "no" ; then
30848        echo "*** A new enough version of pkg-config was not found."
30849        echo "*** See http://pkgconfig.sourceforge.net"
30850      else
30851        if test -f conf.gtktest ; then
30852         :
30853        else
30854           echo "*** Could not run GTK+ test program, checking why..."
30855           ac_save_CFLAGS="$CFLAGS"
30856           ac_save_LIBS="$LIBS"
30857           CFLAGS="$CFLAGS $GTK_CFLAGS"
30858           LIBS="$LIBS $GTK_LIBS"
30859           cat >conftest.$ac_ext <<_ACEOF
30860 /* confdefs.h.  */
30861 _ACEOF
30862 cat confdefs.h >>conftest.$ac_ext
30863 cat >>conftest.$ac_ext <<_ACEOF
30864 /* end confdefs.h.  */
30865
30866 #include <gtk/gtk.h>
30867 #include <stdio.h>
30868
30869 int
30870 main ()
30871 {
30872  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30873   ;
30874   return 0;
30875 }
30876 _ACEOF
30877 rm -f conftest.$ac_objext conftest$ac_exeext
30878 if { (ac_try="$ac_link"
30879 case "(($ac_try" in
30880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30881   *) ac_try_echo=$ac_try;;
30882 esac
30883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30884   (eval "$ac_link") 2>conftest.er1
30885   ac_status=$?
30886   grep -v '^ *+' conftest.er1 >conftest.err
30887   rm -f conftest.er1
30888   cat conftest.err >&5
30889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890   (exit $ac_status); } && {
30891          test -z "$ac_c_werror_flag" ||
30892          test ! -s conftest.err
30893        } && test -s conftest$ac_exeext &&
30894        $as_test_x conftest$ac_exeext; then
30895    echo "*** The test program compiled, but did not run. This usually means"
30896           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30897           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30898           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30899           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30900           echo "*** is required on your system"
30901           echo "***"
30902           echo "*** If you have an old version installed, it is best to remove it, although"
30903           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30904 else
30905   echo "$as_me: failed program was:" >&5
30906 sed 's/^/| /' conftest.$ac_ext >&5
30907
30908          echo "*** The test program failed to compile or link. See the file config.log for the"
30909           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30910 fi
30911
30912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30913       conftest$ac_exeext conftest.$ac_ext
30914           CFLAGS="$ac_save_CFLAGS"
30915           LIBS="$ac_save_LIBS"
30916        fi
30917      fi
30918      GTK_CFLAGS=""
30919      GTK_LIBS=""
30920      :
30921   fi
30922
30923
30924   rm -f conf.gtktest
30925
30926
30927                                         case "${host}" in
30928                         *-*-solaris2* )
30929                             if test "$wxUSE_SHARED" != "yes"; then
30930                                 GTK_LIBS="$GTK_LIBS -lX11"
30931                             fi
30932                     esac
30933                 fi
30934
30935                                 if test -z "$wx_cv_lib_gtk"; then
30936                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30937
30938 # Check whether --with-gtk-prefix was given.
30939 if test "${with_gtk_prefix+set}" = set; then
30940   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30941 else
30942   gtk_config_prefix=""
30943 fi
30944
30945
30946 # Check whether --with-gtk-exec-prefix was given.
30947 if test "${with_gtk_exec_prefix+set}" = set; then
30948   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30949 else
30950   gtk_config_exec_prefix=""
30951 fi
30952
30953 # Check whether --enable-gtktest was given.
30954 if test "${enable_gtktest+set}" = set; then
30955   enableval=$enable_gtktest;
30956 else
30957   enable_gtktest=yes
30958 fi
30959
30960
30961   for module in . $GTK_MODULES
30962   do
30963       case "$module" in
30964          gthread)
30965              gtk_config_args="$gtk_config_args gthread"
30966          ;;
30967       esac
30968   done
30969
30970   if test x$gtk_config_exec_prefix != x ; then
30971      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30972      if test x${GTK_CONFIG+set} != xset ; then
30973         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30974      fi
30975   fi
30976   if test x$gtk_config_prefix != x ; then
30977      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30978      if test x${GTK_CONFIG+set} != xset ; then
30979         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30980      fi
30981   fi
30982
30983   # Extract the first word of "gtk-config", so it can be a program name with args.
30984 set dummy gtk-config; ac_word=$2
30985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30987 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30988   echo $ECHO_N "(cached) $ECHO_C" >&6
30989 else
30990   case $GTK_CONFIG in
30991   [\\/]* | ?:[\\/]*)
30992   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30993   ;;
30994   *)
30995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30996 for as_dir in $PATH
30997 do
30998   IFS=$as_save_IFS
30999   test -z "$as_dir" && as_dir=.
31000   for ac_exec_ext in '' $ac_executable_extensions; do
31001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31002     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31004     break 2
31005   fi
31006 done
31007 done
31008 IFS=$as_save_IFS
31009
31010   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31011   ;;
31012 esac
31013 fi
31014 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
31015 if test -n "$GTK_CONFIG"; then
31016   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31017 echo "${ECHO_T}$GTK_CONFIG" >&6; }
31018 else
31019   { echo "$as_me:$LINENO: result: no" >&5
31020 echo "${ECHO_T}no" >&6; }
31021 fi
31022
31023
31024   min_gtk_version=1.2.7
31025   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31026 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
31027   no_gtk=""
31028   if test "$GTK_CONFIG" = "no" ; then
31029     no_gtk=yes
31030   else
31031     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31032     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31033     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31034            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31035     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31036            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31037     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31038            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31039     if test "x$enable_gtktest" = "xyes" ; then
31040       ac_save_CFLAGS="$CFLAGS"
31041       ac_save_LIBS="$LIBS"
31042       CFLAGS="$CFLAGS $GTK_CFLAGS"
31043       LIBS="$GTK_LIBS $LIBS"
31044       rm -f conf.gtktest
31045       if test "$cross_compiling" = yes; then
31046   echo $ac_n "cross compiling; assumed OK... $ac_c"
31047 else
31048   cat >conftest.$ac_ext <<_ACEOF
31049 /* confdefs.h.  */
31050 _ACEOF
31051 cat confdefs.h >>conftest.$ac_ext
31052 cat >>conftest.$ac_ext <<_ACEOF
31053 /* end confdefs.h.  */
31054
31055 #include <gtk/gtk.h>
31056 #include <stdio.h>
31057 #include <stdlib.h>
31058
31059 int
31060 main ()
31061 {
31062   int major, minor, micro;
31063   char *tmp_version;
31064
31065   system ("touch conf.gtktest");
31066
31067   /* HP/UX 9 (%@#!) writes to sscanf strings */
31068   tmp_version = g_strdup("$min_gtk_version");
31069   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31070      printf("%s, bad version string\n", "$min_gtk_version");
31071      exit(1);
31072    }
31073
31074   if ((gtk_major_version != $gtk_config_major_version) ||
31075       (gtk_minor_version != $gtk_config_minor_version) ||
31076       (gtk_micro_version != $gtk_config_micro_version))
31077     {
31078       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31079              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31080              gtk_major_version, gtk_minor_version, gtk_micro_version);
31081       printf ("*** was found! If gtk-config was correct, then it is best\n");
31082       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31083       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31084       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31085       printf("*** required on your system.\n");
31086       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31087       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31088       printf("*** before re-running configure\n");
31089     }
31090 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31091   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31092            (gtk_minor_version != GTK_MINOR_VERSION) ||
31093            (gtk_micro_version != GTK_MICRO_VERSION))
31094     {
31095       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31096              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31097       printf("*** library (version %d.%d.%d)\n",
31098              gtk_major_version, gtk_minor_version, gtk_micro_version);
31099     }
31100 #endif /* defined (GTK_MAJOR_VERSION) ... */
31101   else
31102     {
31103       if ((gtk_major_version > major) ||
31104         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31105         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31106       {
31107         return 0;
31108        }
31109      else
31110       {
31111         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31112                gtk_major_version, gtk_minor_version, gtk_micro_version);
31113         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31114                major, minor, micro);
31115         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31116         printf("***\n");
31117         printf("*** If you have already installed a sufficiently new version, this error\n");
31118         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31119         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31120         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31121         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31122         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31123         printf("*** so that the correct libraries are found at run-time))\n");
31124       }
31125     }
31126   return 1;
31127 }
31128
31129 _ACEOF
31130 rm -f conftest$ac_exeext
31131 if { (ac_try="$ac_link"
31132 case "(($ac_try" in
31133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134   *) ac_try_echo=$ac_try;;
31135 esac
31136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137   (eval "$ac_link") 2>&5
31138   ac_status=$?
31139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31141   { (case "(($ac_try" in
31142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31143   *) ac_try_echo=$ac_try;;
31144 esac
31145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31146   (eval "$ac_try") 2>&5
31147   ac_status=$?
31148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149   (exit $ac_status); }; }; then
31150   :
31151 else
31152   echo "$as_me: program exited with status $ac_status" >&5
31153 echo "$as_me: failed program was:" >&5
31154 sed 's/^/| /' conftest.$ac_ext >&5
31155
31156 ( exit $ac_status )
31157 no_gtk=yes
31158 fi
31159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31160 fi
31161
31162
31163        CFLAGS="$ac_save_CFLAGS"
31164        LIBS="$ac_save_LIBS"
31165      fi
31166   fi
31167   if test "x$no_gtk" = x ; then
31168      { echo "$as_me:$LINENO: result: yes" >&5
31169 echo "${ECHO_T}yes" >&6; }
31170      wx_cv_lib_gtk=1.2.7
31171   else
31172      { echo "$as_me:$LINENO: result: no" >&5
31173 echo "${ECHO_T}no" >&6; }
31174      if test "$GTK_CONFIG" = "no" ; then
31175        echo "*** The gtk-config script installed by GTK could not be found"
31176        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31177        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31178        echo "*** full path to gtk-config."
31179      else
31180        if test -f conf.gtktest ; then
31181         :
31182        else
31183           echo "*** Could not run GTK test program, checking why..."
31184           CFLAGS="$CFLAGS $GTK_CFLAGS"
31185           LIBS="$LIBS $GTK_LIBS"
31186           cat >conftest.$ac_ext <<_ACEOF
31187 /* confdefs.h.  */
31188 _ACEOF
31189 cat confdefs.h >>conftest.$ac_ext
31190 cat >>conftest.$ac_ext <<_ACEOF
31191 /* end confdefs.h.  */
31192
31193 #include <gtk/gtk.h>
31194 #include <stdio.h>
31195
31196 int
31197 main ()
31198 {
31199  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31200   ;
31201   return 0;
31202 }
31203 _ACEOF
31204 rm -f conftest.$ac_objext conftest$ac_exeext
31205 if { (ac_try="$ac_link"
31206 case "(($ac_try" in
31207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31208   *) ac_try_echo=$ac_try;;
31209 esac
31210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31211   (eval "$ac_link") 2>conftest.er1
31212   ac_status=$?
31213   grep -v '^ *+' conftest.er1 >conftest.err
31214   rm -f conftest.er1
31215   cat conftest.err >&5
31216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217   (exit $ac_status); } && {
31218          test -z "$ac_c_werror_flag" ||
31219          test ! -s conftest.err
31220        } && test -s conftest$ac_exeext &&
31221        $as_test_x conftest$ac_exeext; then
31222    echo "*** The test program compiled, but did not run. This usually means"
31223           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31224           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31225           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31226           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31227           echo "*** is required on your system"
31228           echo "***"
31229           echo "*** If you have an old version installed, it is best to remove it, although"
31230           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31231           echo "***"
31232           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31233           echo "*** came with the system with the command"
31234           echo "***"
31235           echo "***    rpm --erase --nodeps gtk gtk-devel"
31236 else
31237   echo "$as_me: failed program was:" >&5
31238 sed 's/^/| /' conftest.$ac_ext >&5
31239
31240          echo "*** The test program failed to compile or link. See the file config.log for the"
31241           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31242           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31243           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31244 fi
31245
31246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31247       conftest$ac_exeext conftest.$ac_ext
31248           CFLAGS="$ac_save_CFLAGS"
31249           LIBS="$ac_save_LIBS"
31250        fi
31251      fi
31252      GTK_CFLAGS=""
31253      GTK_LIBS=""
31254      :
31255   fi
31256
31257
31258   rm -f conf.gtktest
31259
31260
31261                         if test -z "$wx_cv_lib_gtk"; then
31262
31263 # Check whether --with-gtk-prefix was given.
31264 if test "${with_gtk_prefix+set}" = set; then
31265   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
31266 else
31267   gtk_config_prefix=""
31268 fi
31269
31270
31271 # Check whether --with-gtk-exec-prefix was given.
31272 if test "${with_gtk_exec_prefix+set}" = set; then
31273   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
31274 else
31275   gtk_config_exec_prefix=""
31276 fi
31277
31278 # Check whether --enable-gtktest was given.
31279 if test "${enable_gtktest+set}" = set; then
31280   enableval=$enable_gtktest;
31281 else
31282   enable_gtktest=yes
31283 fi
31284
31285
31286   for module in . $GTK_MODULES
31287   do
31288       case "$module" in
31289          gthread)
31290              gtk_config_args="$gtk_config_args gthread"
31291          ;;
31292       esac
31293   done
31294
31295   if test x$gtk_config_exec_prefix != x ; then
31296      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
31297      if test x${GTK_CONFIG+set} != xset ; then
31298         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
31299      fi
31300   fi
31301   if test x$gtk_config_prefix != x ; then
31302      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
31303      if test x${GTK_CONFIG+set} != xset ; then
31304         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
31305      fi
31306   fi
31307
31308   # Extract the first word of "gtk-config", so it can be a program name with args.
31309 set dummy gtk-config; ac_word=$2
31310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31312 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
31313   echo $ECHO_N "(cached) $ECHO_C" >&6
31314 else
31315   case $GTK_CONFIG in
31316   [\\/]* | ?:[\\/]*)
31317   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
31318   ;;
31319   *)
31320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31321 for as_dir in $PATH
31322 do
31323   IFS=$as_save_IFS
31324   test -z "$as_dir" && as_dir=.
31325   for ac_exec_ext in '' $ac_executable_extensions; do
31326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31327     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31329     break 2
31330   fi
31331 done
31332 done
31333 IFS=$as_save_IFS
31334
31335   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31336   ;;
31337 esac
31338 fi
31339 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
31340 if test -n "$GTK_CONFIG"; then
31341   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31342 echo "${ECHO_T}$GTK_CONFIG" >&6; }
31343 else
31344   { echo "$as_me:$LINENO: result: no" >&5
31345 echo "${ECHO_T}no" >&6; }
31346 fi
31347
31348
31349   min_gtk_version=1.2.3
31350   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31351 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
31352   no_gtk=""
31353   if test "$GTK_CONFIG" = "no" ; then
31354     no_gtk=yes
31355   else
31356     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31357     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31358     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31359            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31360     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31361            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31362     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31363            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31364     if test "x$enable_gtktest" = "xyes" ; then
31365       ac_save_CFLAGS="$CFLAGS"
31366       ac_save_LIBS="$LIBS"
31367       CFLAGS="$CFLAGS $GTK_CFLAGS"
31368       LIBS="$GTK_LIBS $LIBS"
31369       rm -f conf.gtktest
31370       if test "$cross_compiling" = yes; then
31371   echo $ac_n "cross compiling; assumed OK... $ac_c"
31372 else
31373   cat >conftest.$ac_ext <<_ACEOF
31374 /* confdefs.h.  */
31375 _ACEOF
31376 cat confdefs.h >>conftest.$ac_ext
31377 cat >>conftest.$ac_ext <<_ACEOF
31378 /* end confdefs.h.  */
31379
31380 #include <gtk/gtk.h>
31381 #include <stdio.h>
31382 #include <stdlib.h>
31383
31384 int
31385 main ()
31386 {
31387   int major, minor, micro;
31388   char *tmp_version;
31389
31390   system ("touch conf.gtktest");
31391
31392   /* HP/UX 9 (%@#!) writes to sscanf strings */
31393   tmp_version = g_strdup("$min_gtk_version");
31394   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31395      printf("%s, bad version string\n", "$min_gtk_version");
31396      exit(1);
31397    }
31398
31399   if ((gtk_major_version != $gtk_config_major_version) ||
31400       (gtk_minor_version != $gtk_config_minor_version) ||
31401       (gtk_micro_version != $gtk_config_micro_version))
31402     {
31403       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31404              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31405              gtk_major_version, gtk_minor_version, gtk_micro_version);
31406       printf ("*** was found! If gtk-config was correct, then it is best\n");
31407       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31408       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31409       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31410       printf("*** required on your system.\n");
31411       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31412       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31413       printf("*** before re-running configure\n");
31414     }
31415 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31416   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31417            (gtk_minor_version != GTK_MINOR_VERSION) ||
31418            (gtk_micro_version != GTK_MICRO_VERSION))
31419     {
31420       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31421              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31422       printf("*** library (version %d.%d.%d)\n",
31423              gtk_major_version, gtk_minor_version, gtk_micro_version);
31424     }
31425 #endif /* defined (GTK_MAJOR_VERSION) ... */
31426   else
31427     {
31428       if ((gtk_major_version > major) ||
31429         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31430         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31431       {
31432         return 0;
31433        }
31434      else
31435       {
31436         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31437                gtk_major_version, gtk_minor_version, gtk_micro_version);
31438         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31439                major, minor, micro);
31440         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31441         printf("***\n");
31442         printf("*** If you have already installed a sufficiently new version, this error\n");
31443         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31444         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31445         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31446         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31447         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31448         printf("*** so that the correct libraries are found at run-time))\n");
31449       }
31450     }
31451   return 1;
31452 }
31453
31454 _ACEOF
31455 rm -f conftest$ac_exeext
31456 if { (ac_try="$ac_link"
31457 case "(($ac_try" in
31458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31459   *) ac_try_echo=$ac_try;;
31460 esac
31461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31462   (eval "$ac_link") 2>&5
31463   ac_status=$?
31464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31466   { (case "(($ac_try" in
31467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31468   *) ac_try_echo=$ac_try;;
31469 esac
31470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31471   (eval "$ac_try") 2>&5
31472   ac_status=$?
31473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474   (exit $ac_status); }; }; then
31475   :
31476 else
31477   echo "$as_me: program exited with status $ac_status" >&5
31478 echo "$as_me: failed program was:" >&5
31479 sed 's/^/| /' conftest.$ac_ext >&5
31480
31481 ( exit $ac_status )
31482 no_gtk=yes
31483 fi
31484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31485 fi
31486
31487
31488        CFLAGS="$ac_save_CFLAGS"
31489        LIBS="$ac_save_LIBS"
31490      fi
31491   fi
31492   if test "x$no_gtk" = x ; then
31493      { echo "$as_me:$LINENO: result: yes" >&5
31494 echo "${ECHO_T}yes" >&6; }
31495      wx_cv_lib_gtk=1.2.3
31496   else
31497      { echo "$as_me:$LINENO: result: no" >&5
31498 echo "${ECHO_T}no" >&6; }
31499      if test "$GTK_CONFIG" = "no" ; then
31500        echo "*** The gtk-config script installed by GTK could not be found"
31501        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31502        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31503        echo "*** full path to gtk-config."
31504      else
31505        if test -f conf.gtktest ; then
31506         :
31507        else
31508           echo "*** Could not run GTK test program, checking why..."
31509           CFLAGS="$CFLAGS $GTK_CFLAGS"
31510           LIBS="$LIBS $GTK_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 #include <gtk/gtk.h>
31519 #include <stdio.h>
31520
31521 int
31522 main ()
31523 {
31524  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31525   ;
31526   return 0;
31527 }
31528 _ACEOF
31529 rm -f conftest.$ac_objext conftest$ac_exeext
31530 if { (ac_try="$ac_link"
31531 case "(($ac_try" in
31532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533   *) ac_try_echo=$ac_try;;
31534 esac
31535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536   (eval "$ac_link") 2>conftest.er1
31537   ac_status=$?
31538   grep -v '^ *+' conftest.er1 >conftest.err
31539   rm -f conftest.er1
31540   cat conftest.err >&5
31541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542   (exit $ac_status); } && {
31543          test -z "$ac_c_werror_flag" ||
31544          test ! -s conftest.err
31545        } && test -s conftest$ac_exeext &&
31546        $as_test_x conftest$ac_exeext; then
31547    echo "*** The test program compiled, but did not run. This usually means"
31548           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31549           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31550           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31551           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31552           echo "*** is required on your system"
31553           echo "***"
31554           echo "*** If you have an old version installed, it is best to remove it, although"
31555           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31556           echo "***"
31557           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31558           echo "*** came with the system with the command"
31559           echo "***"
31560           echo "***    rpm --erase --nodeps gtk gtk-devel"
31561 else
31562   echo "$as_me: failed program was:" >&5
31563 sed 's/^/| /' conftest.$ac_ext >&5
31564
31565          echo "*** The test program failed to compile or link. See the file config.log for the"
31566           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31567           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31568           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31569 fi
31570
31571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31572       conftest$ac_exeext conftest.$ac_ext
31573           CFLAGS="$ac_save_CFLAGS"
31574           LIBS="$ac_save_LIBS"
31575        fi
31576      fi
31577      GTK_CFLAGS=""
31578      GTK_LIBS=""
31579      :
31580   fi
31581
31582
31583   rm -f conf.gtktest
31584
31585                         fi
31586                     fi
31587                 fi
31588
31589                 if test -z "$wx_cv_lib_gtk"; then
31590                                         wx_cv_lib_gtk=none
31591                 else
31592                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
31593                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
31594                 fi
31595
31596
31597 fi
31598
31599
31600                         if test "$gtk_version_cached" = 1; then
31601             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
31602 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
31603         fi
31604
31605         case "$wx_cv_lib_gtk" in
31606             2.0)    WXGTK20=1
31607                     TOOLKIT_VERSION=2
31608                     ;;
31609             1.2.7)  WXGTK127=1
31610                     WXGTK12=1
31611                     ;;
31612             1.2.3)  WXGTK12=1
31613                     ;;
31614             *)      { { echo "$as_me:$LINENO: error:
31615 The development files for GTK+ were not found. For GTK+ 2, please
31616 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31617 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31618 and that the version is 1.2.3 or above. Also check that the
31619 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31620 --libs' are in the LD_LIBRARY_PATH or equivalent.
31621                             " >&5
31622 echo "$as_me: error:
31623 The development files for GTK+ were not found. For GTK+ 2, please
31624 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31625 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31626 and that the version is 1.2.3 or above. Also check that the
31627 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31628 --libs' are in the LD_LIBRARY_PATH or equivalent.
31629                             " >&2;}
31630    { (exit 1); exit 1; }; }
31631                     ;;
31632         esac
31633
31634         if test "$WXGTK20" = 1; then
31635             save_CFLAGS="$CFLAGS"
31636             save_LIBS="$LIBS"
31637             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
31638             LIBS="$LIBS $wx_cv_libs_gtk"
31639
31640                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
31641 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
31642 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
31643   echo $ECHO_N "(cached) $ECHO_C" >&6
31644 else
31645   cat >conftest.$ac_ext <<_ACEOF
31646 /* confdefs.h.  */
31647 _ACEOF
31648 cat confdefs.h >>conftest.$ac_ext
31649 cat >>conftest.$ac_ext <<_ACEOF
31650 /* end confdefs.h.  */
31651 #include <gtk/gtk.h>
31652
31653 int
31654 main ()
31655 {
31656 #ifndef gtk_icon_size_lookup
31657   (void) gtk_icon_size_lookup;
31658 #endif
31659
31660   ;
31661   return 0;
31662 }
31663 _ACEOF
31664 rm -f conftest.$ac_objext
31665 if { (ac_try="$ac_compile"
31666 case "(($ac_try" in
31667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31668   *) ac_try_echo=$ac_try;;
31669 esac
31670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31671   (eval "$ac_compile") 2>conftest.er1
31672   ac_status=$?
31673   grep -v '^ *+' conftest.er1 >conftest.err
31674   rm -f conftest.er1
31675   cat conftest.err >&5
31676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677   (exit $ac_status); } && {
31678          test -z "$ac_c_werror_flag" ||
31679          test ! -s conftest.err
31680        } && test -s conftest.$ac_objext; then
31681   ac_cv_have_decl_gtk_icon_size_lookup=yes
31682 else
31683   echo "$as_me: failed program was:" >&5
31684 sed 's/^/| /' conftest.$ac_ext >&5
31685
31686         ac_cv_have_decl_gtk_icon_size_lookup=no
31687 fi
31688
31689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31690 fi
31691 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
31692 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
31693 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
31694
31695 cat >>confdefs.h <<_ACEOF
31696 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
31697 _ACEOF
31698
31699
31700 else
31701   cat >>confdefs.h <<_ACEOF
31702 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
31703 _ACEOF
31704
31705 cat >>confdefs.h <<\_ACEOF
31706 #define NEED_GTK_ICON_SIZE_LOOKUP 1
31707 _ACEOF
31708
31709 fi
31710
31711
31712
31713
31714                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31715 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31716             cat >conftest.$ac_ext <<_ACEOF
31717 /* confdefs.h.  */
31718 _ACEOF
31719 cat confdefs.h >>conftest.$ac_ext
31720 cat >>conftest.$ac_ext <<_ACEOF
31721 /* end confdefs.h.  */
31722
31723                             #include <gtk/gtk.h>
31724
31725 int
31726 main ()
31727 {
31728
31729                             #if !GTK_CHECK_VERSION(2,10,0)
31730                             Not GTK+ 2.10
31731                             #endif
31732
31733   ;
31734   return 0;
31735 }
31736 _ACEOF
31737 rm -f conftest.$ac_objext
31738 if { (ac_try="$ac_compile"
31739 case "(($ac_try" in
31740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741   *) ac_try_echo=$ac_try;;
31742 esac
31743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744   (eval "$ac_compile") 2>conftest.er1
31745   ac_status=$?
31746   grep -v '^ *+' conftest.er1 >conftest.err
31747   rm -f conftest.er1
31748   cat conftest.err >&5
31749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750   (exit $ac_status); } && {
31751          test -z "$ac_c_werror_flag" ||
31752          test ! -s conftest.err
31753        } && test -s conftest.$ac_objext; then
31754
31755                             cat >>confdefs.h <<\_ACEOF
31756 #define __WXGTK210__ 1
31757 _ACEOF
31758
31759                             cat >>confdefs.h <<\_ACEOF
31760 #define __WXGTK26__ 1
31761 _ACEOF
31762
31763                             cat >>confdefs.h <<\_ACEOF
31764 #define __WXGTK24__ 1
31765 _ACEOF
31766
31767                             { echo "$as_me:$LINENO: result: yes" >&5
31768 echo "${ECHO_T}yes" >&6; }
31769                             ac_wxgtk210=1
31770
31771 else
31772   echo "$as_me: failed program was:" >&5
31773 sed 's/^/| /' conftest.$ac_ext >&5
31774
31775
31776                             { echo "$as_me:$LINENO: result: no" >&5
31777 echo "${ECHO_T}no" >&6; }
31778                             ac_wxgtk210=0
31779
31780 fi
31781
31782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31783
31784             if test "$ac_wxgtk210" = 0; then
31785                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31786 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31787                 cat >conftest.$ac_ext <<_ACEOF
31788 /* confdefs.h.  */
31789 _ACEOF
31790 cat confdefs.h >>conftest.$ac_ext
31791 cat >>conftest.$ac_ext <<_ACEOF
31792 /* end confdefs.h.  */
31793
31794                                 #include <gtk/gtk.h>
31795
31796 int
31797 main ()
31798 {
31799
31800                                 #if !GTK_CHECK_VERSION(2,6,0)
31801                                 Not GTK+ 2.6
31802                                 #endif
31803
31804   ;
31805   return 0;
31806 }
31807 _ACEOF
31808 rm -f conftest.$ac_objext
31809 if { (ac_try="$ac_compile"
31810 case "(($ac_try" in
31811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31812   *) ac_try_echo=$ac_try;;
31813 esac
31814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31815   (eval "$ac_compile") 2>conftest.er1
31816   ac_status=$?
31817   grep -v '^ *+' conftest.er1 >conftest.err
31818   rm -f conftest.er1
31819   cat conftest.err >&5
31820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821   (exit $ac_status); } && {
31822          test -z "$ac_c_werror_flag" ||
31823          test ! -s conftest.err
31824        } && test -s conftest.$ac_objext; then
31825
31826                                 cat >>confdefs.h <<\_ACEOF
31827 #define __WXGTK26__ 1
31828 _ACEOF
31829
31830                                 cat >>confdefs.h <<\_ACEOF
31831 #define __WXGTK24__ 1
31832 _ACEOF
31833
31834                                 { echo "$as_me:$LINENO: result: yes" >&5
31835 echo "${ECHO_T}yes" >&6; }
31836                                 ac_wxgtk26=1
31837
31838 else
31839   echo "$as_me: failed program was:" >&5
31840 sed 's/^/| /' conftest.$ac_ext >&5
31841
31842
31843                                 { echo "$as_me:$LINENO: result: no" >&5
31844 echo "${ECHO_T}no" >&6; }
31845                                 ac_wxgtk26=0
31846
31847 fi
31848
31849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31850             fi
31851
31852             if test "$ac_wxgtk26" = 0; then
31853                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
31854 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6; }
31855                 cat >conftest.$ac_ext <<_ACEOF
31856 /* confdefs.h.  */
31857 _ACEOF
31858 cat confdefs.h >>conftest.$ac_ext
31859 cat >>conftest.$ac_ext <<_ACEOF
31860 /* end confdefs.h.  */
31861
31862                                 #include <gtk/gtk.h>
31863
31864 int
31865 main ()
31866 {
31867
31868                                 #if !GTK_CHECK_VERSION(2,4,0)
31869                                 Not GTK+ 2.4
31870                                 #endif
31871
31872   ;
31873   return 0;
31874 }
31875 _ACEOF
31876 rm -f conftest.$ac_objext
31877 if { (ac_try="$ac_compile"
31878 case "(($ac_try" in
31879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31880   *) ac_try_echo=$ac_try;;
31881 esac
31882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31883   (eval "$ac_compile") 2>conftest.er1
31884   ac_status=$?
31885   grep -v '^ *+' conftest.er1 >conftest.err
31886   rm -f conftest.er1
31887   cat conftest.err >&5
31888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889   (exit $ac_status); } && {
31890          test -z "$ac_c_werror_flag" ||
31891          test ! -s conftest.err
31892        } && test -s conftest.$ac_objext; then
31893
31894                                 cat >>confdefs.h <<\_ACEOF
31895 #define __WXGTK24__ 1
31896 _ACEOF
31897
31898                                 { echo "$as_me:$LINENO: result: yes" >&5
31899 echo "${ECHO_T}yes" >&6; }
31900
31901 else
31902   echo "$as_me: failed program was:" >&5
31903 sed 's/^/| /' conftest.$ac_ext >&5
31904
31905
31906                                 { echo "$as_me:$LINENO: result: no" >&5
31907 echo "${ECHO_T}no" >&6; }
31908
31909 fi
31910
31911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31912             fi
31913
31914             CFLAGS="$save_CFLAGS"
31915             LIBS="$save_LIBS"
31916         else
31917             if test "$wxUSE_UNICODE" = "yes"; then
31918                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31919 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31920                 wxUSE_UNICODE=no
31921             fi
31922
31923                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31924 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31925 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31926   echo $ECHO_N "(cached) $ECHO_C" >&6
31927 else
31928   ac_check_lib_save_LIBS=$LIBS
31929 LIBS="-lgdk  $LIBS"
31930 cat >conftest.$ac_ext <<_ACEOF
31931 /* confdefs.h.  */
31932 _ACEOF
31933 cat confdefs.h >>conftest.$ac_ext
31934 cat >>conftest.$ac_ext <<_ACEOF
31935 /* end confdefs.h.  */
31936
31937 /* Override any GCC internal prototype to avoid an error.
31938    Use char because int might match the return type of a GCC
31939    builtin and then its argument prototype would still apply.  */
31940 #ifdef __cplusplus
31941 extern "C"
31942 #endif
31943 char gdk_im_open ();
31944 int
31945 main ()
31946 {
31947 return gdk_im_open ();
31948   ;
31949   return 0;
31950 }
31951 _ACEOF
31952 rm -f conftest.$ac_objext conftest$ac_exeext
31953 if { (ac_try="$ac_link"
31954 case "(($ac_try" in
31955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31956   *) ac_try_echo=$ac_try;;
31957 esac
31958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31959   (eval "$ac_link") 2>conftest.er1
31960   ac_status=$?
31961   grep -v '^ *+' conftest.er1 >conftest.err
31962   rm -f conftest.er1
31963   cat conftest.err >&5
31964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965   (exit $ac_status); } && {
31966          test -z "$ac_c_werror_flag" ||
31967          test ! -s conftest.err
31968        } && test -s conftest$ac_exeext &&
31969        $as_test_x conftest$ac_exeext; then
31970   ac_cv_lib_gdk_gdk_im_open=yes
31971 else
31972   echo "$as_me: failed program was:" >&5
31973 sed 's/^/| /' conftest.$ac_ext >&5
31974
31975         ac_cv_lib_gdk_gdk_im_open=no
31976 fi
31977
31978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31979       conftest$ac_exeext conftest.$ac_ext
31980 LIBS=$ac_check_lib_save_LIBS
31981 fi
31982 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31983 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31984 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31985   cat >>confdefs.h <<\_ACEOF
31986 #define HAVE_XIM 1
31987 _ACEOF
31988
31989 fi
31990
31991
31992                                     if test "$USE_DARWIN" != 1; then
31993
31994 for ac_func in poll
31995 do
31996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32000   echo $ECHO_N "(cached) $ECHO_C" >&6
32001 else
32002   cat >conftest.$ac_ext <<_ACEOF
32003 /* confdefs.h.  */
32004 _ACEOF
32005 cat confdefs.h >>conftest.$ac_ext
32006 cat >>conftest.$ac_ext <<_ACEOF
32007 /* end confdefs.h.  */
32008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32010 #define $ac_func innocuous_$ac_func
32011
32012 /* System header to define __stub macros and hopefully few prototypes,
32013     which can conflict with char $ac_func (); below.
32014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32015     <limits.h> exists even on freestanding compilers.  */
32016
32017 #ifdef __STDC__
32018 # include <limits.h>
32019 #else
32020 # include <assert.h>
32021 #endif
32022
32023 #undef $ac_func
32024
32025 /* Override any GCC internal prototype to avoid an error.
32026    Use char because int might match the return type of a GCC
32027    builtin and then its argument prototype would still apply.  */
32028 #ifdef __cplusplus
32029 extern "C"
32030 #endif
32031 char $ac_func ();
32032 /* The GNU C library defines this for functions which it implements
32033     to always fail with ENOSYS.  Some functions are actually named
32034     something starting with __ and the normal name is an alias.  */
32035 #if defined __stub_$ac_func || defined __stub___$ac_func
32036 choke me
32037 #endif
32038
32039 int
32040 main ()
32041 {
32042 return $ac_func ();
32043   ;
32044   return 0;
32045 }
32046 _ACEOF
32047 rm -f conftest.$ac_objext conftest$ac_exeext
32048 if { (ac_try="$ac_link"
32049 case "(($ac_try" in
32050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32051   *) ac_try_echo=$ac_try;;
32052 esac
32053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32054   (eval "$ac_link") 2>conftest.er1
32055   ac_status=$?
32056   grep -v '^ *+' conftest.er1 >conftest.err
32057   rm -f conftest.er1
32058   cat conftest.err >&5
32059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060   (exit $ac_status); } && {
32061          test -z "$ac_c_werror_flag" ||
32062          test ! -s conftest.err
32063        } && test -s conftest$ac_exeext &&
32064        $as_test_x conftest$ac_exeext; then
32065   eval "$as_ac_var=yes"
32066 else
32067   echo "$as_me: failed program was:" >&5
32068 sed 's/^/| /' conftest.$ac_ext >&5
32069
32070         eval "$as_ac_var=no"
32071 fi
32072
32073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32074       conftest$ac_exeext conftest.$ac_ext
32075 fi
32076 ac_res=`eval echo '${'$as_ac_var'}'`
32077                { echo "$as_me:$LINENO: result: $ac_res" >&5
32078 echo "${ECHO_T}$ac_res" >&6; }
32079 if test `eval echo '${'$as_ac_var'}'` = yes; then
32080   cat >>confdefs.h <<_ACEOF
32081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32082 _ACEOF
32083
32084 fi
32085 done
32086
32087             fi
32088         fi
32089
32090         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
32091         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
32092
32093         AFMINSTALL=afminstall
32094         TOOLKIT=GTK
32095         GUIDIST=GTK_DIST
32096
32097                 if test "$wxUSE_GPE" = "yes"; then
32098             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
32099 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
32100
32101   ac_find_libraries=
32102   for ac_dir in $SEARCH_LIB;
32103   do
32104     for ac_extension in a so sl dylib dll.a; do
32105       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
32106         ac_find_libraries=$ac_dir
32107         break 2
32108       fi
32109     done
32110   done
32111
32112             if test "$ac_find_libraries" != "" ; then
32113
32114     if test "$ac_find_libraries" = "default location"; then
32115     ac_path_to_link=""
32116   else
32117     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32118     result=$?
32119     if test $result = 0; then
32120       ac_path_to_link=""
32121     else
32122       ac_path_to_link=" -L$ac_find_libraries"
32123     fi
32124   fi
32125
32126                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
32127                 WXGPE=1
32128                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32129 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32130             else
32131                 { echo "$as_me:$LINENO: result: not found" >&5
32132 echo "${ECHO_T}not found" >&6; }
32133             fi
32134
32135                                                                                                                     fi
32136     fi
32137
32138     if test "$wxUSE_MGL" = 1; then
32139        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
32140 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
32141         if test "x$MGL_ROOT" = x ; then
32142             { echo "$as_me:$LINENO: result: not found" >&5
32143 echo "${ECHO_T}not found" >&6; }
32144             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
32145 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
32146    { (exit 1); exit 1; }; }
32147         else
32148             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
32149 echo "${ECHO_T}$MGL_ROOT" >&6; }
32150         fi
32151
32152         { echo "$as_me:$LINENO: checking for libmgl location" >&5
32153 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
32154                                 case "${host}" in
32155             *-*-linux* )
32156                                           if test "x$wxUSE_SHARED" = xyes ; then
32157                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
32158               else
32159                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
32160               fi
32161               ;;
32162             *-pc-msdosdjgpp )
32163               mgl_os_candidates="dos32/dj2"
32164               ;;
32165             *)
32166               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
32167 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
32168    { (exit 1); exit 1; }; }
32169         esac
32170
32171         mgl_lib_type=""
32172         mgl_os=""
32173
32174         for mgl_os_i in $mgl_os_candidates ; do
32175             if test "x$mgl_os" = x ; then
32176                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
32177                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
32178                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
32179                         mgl_lib_type=debug
32180                         mgl_os=$mgl_os_i
32181                     fi
32182                 fi
32183                 if test "x$mgl_lib_type" = x ; then
32184                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
32185                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
32186                         mgl_lib_type=release
32187                         mgl_os=$mgl_os_i
32188                     fi
32189                 fi
32190             fi
32191         done
32192
32193         if test "x$mgl_os" = x ; then
32194             { echo "$as_me:$LINENO: result: not found" >&5
32195 echo "${ECHO_T}not found" >&6; }
32196             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
32197 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
32198    { (exit 1); exit 1; }; }
32199         fi
32200         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
32201 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
32202
32203         wxUSE_UNIVERSAL="yes"
32204
32205         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
32206         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
32207
32208         AFMINSTALL=afminstall
32209         TOOLKIT=MGL
32210         GUIDIST=MGL_DIST
32211     fi
32212
32213     if test "$wxUSE_DFB" = 1; then
32214
32215
32216 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32217         if test -n "$ac_tool_prefix"; then
32218   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32219 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32222 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32223   echo $ECHO_N "(cached) $ECHO_C" >&6
32224 else
32225   case $PKG_CONFIG in
32226   [\\/]* | ?:[\\/]*)
32227   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32228   ;;
32229   *)
32230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32231 for as_dir in $PATH
32232 do
32233   IFS=$as_save_IFS
32234   test -z "$as_dir" && as_dir=.
32235   for ac_exec_ext in '' $ac_executable_extensions; do
32236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32237     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32239     break 2
32240   fi
32241 done
32242 done
32243 IFS=$as_save_IFS
32244
32245   ;;
32246 esac
32247 fi
32248 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32249 if test -n "$PKG_CONFIG"; then
32250   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32251 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32252 else
32253   { echo "$as_me:$LINENO: result: no" >&5
32254 echo "${ECHO_T}no" >&6; }
32255 fi
32256
32257
32258 fi
32259 if test -z "$ac_cv_path_PKG_CONFIG"; then
32260   ac_pt_PKG_CONFIG=$PKG_CONFIG
32261   # Extract the first word of "pkg-config", so it can be a program name with args.
32262 set dummy pkg-config; ac_word=$2
32263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32265 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32266   echo $ECHO_N "(cached) $ECHO_C" >&6
32267 else
32268   case $ac_pt_PKG_CONFIG in
32269   [\\/]* | ?:[\\/]*)
32270   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32271   ;;
32272   *)
32273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32274 for as_dir in $PATH
32275 do
32276   IFS=$as_save_IFS
32277   test -z "$as_dir" && as_dir=.
32278   for ac_exec_ext in '' $ac_executable_extensions; do
32279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32280     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32282     break 2
32283   fi
32284 done
32285 done
32286 IFS=$as_save_IFS
32287
32288   ;;
32289 esac
32290 fi
32291 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32292 if test -n "$ac_pt_PKG_CONFIG"; then
32293   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32294 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32295 else
32296   { echo "$as_me:$LINENO: result: no" >&5
32297 echo "${ECHO_T}no" >&6; }
32298 fi
32299
32300   if test "x$ac_pt_PKG_CONFIG" = x; then
32301     PKG_CONFIG=""
32302   else
32303     case $cross_compiling:$ac_tool_warned in
32304 yes:)
32305 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32306 whose name does not start with the host triplet.  If you think this
32307 configuration is useful to you, please write to autoconf@gnu.org." >&5
32308 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32309 whose name does not start with the host triplet.  If you think this
32310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32311 ac_tool_warned=yes ;;
32312 esac
32313     PKG_CONFIG=$ac_pt_PKG_CONFIG
32314   fi
32315 else
32316   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32317 fi
32318
32319 fi
32320 if test -n "$PKG_CONFIG"; then
32321         _pkg_min_version=0.9.0
32322         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32323 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
32324         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32325                 { echo "$as_me:$LINENO: result: yes" >&5
32326 echo "${ECHO_T}yes" >&6; }
32327         else
32328                 { echo "$as_me:$LINENO: result: no" >&5
32329 echo "${ECHO_T}no" >&6; }
32330                 PKG_CONFIG=""
32331         fi
32332
32333 fi
32334
32335
32336 pkg_failed=no
32337 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
32338 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
32339
32340 if test -n "$PKG_CONFIG"; then
32341     if test -n "$DIRECTFB_CFLAGS"; then
32342         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
32343     else
32344         if test -n "$PKG_CONFIG" && \
32345     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32346   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32347   ac_status=$?
32348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349   (exit $ac_status); }; then
32350   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
32351 else
32352   pkg_failed=yes
32353 fi
32354     fi
32355 else
32356         pkg_failed=untried
32357 fi
32358 if test -n "$PKG_CONFIG"; then
32359     if test -n "$DIRECTFB_LIBS"; then
32360         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
32361     else
32362         if test -n "$PKG_CONFIG" && \
32363     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32364   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32365   ac_status=$?
32366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367   (exit $ac_status); }; then
32368   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
32369 else
32370   pkg_failed=yes
32371 fi
32372     fi
32373 else
32374         pkg_failed=untried
32375 fi
32376
32377
32378
32379 if test $pkg_failed = yes; then
32380
32381 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32382         _pkg_short_errors_supported=yes
32383 else
32384         _pkg_short_errors_supported=no
32385 fi
32386         if test $_pkg_short_errors_supported = yes; then
32387                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32388         else
32389                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32390         fi
32391         # Put the nasty error message in config.log where it belongs
32392         echo "$DIRECTFB_PKG_ERRORS" >&5
32393
32394
32395                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32396 echo "$as_me: error: DirectFB not found." >&2;}
32397    { (exit 1); exit 1; }; }
32398
32399
32400 elif test $pkg_failed = untried; then
32401
32402                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32403 echo "$as_me: error: DirectFB not found." >&2;}
32404    { (exit 1); exit 1; }; }
32405
32406
32407 else
32408         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
32409         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
32410         { echo "$as_me:$LINENO: result: yes" >&5
32411 echo "${ECHO_T}yes" >&6; }
32412
32413                            wxUSE_UNIVERSAL="yes"
32414                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
32415                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
32416                            TOOLKIT=DFB
32417                            GUIDIST=DFB_DIST
32418
32419 fi
32420     fi
32421
32422     if test "$wxUSE_MICROWIN" = 1; then
32423         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
32424 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
32425         if test "x$MICROWINDOWS" = x ; then
32426             { echo "$as_me:$LINENO: result: not found" >&5
32427 echo "${ECHO_T}not found" >&6; }
32428             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
32429 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
32430    { (exit 1); exit 1; }; }
32431         else
32432             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
32433 echo "${ECHO_T}$MICROWINDOWS" >&6; }
32434         fi
32435
32436         if test -f $MICROWINDOWS/lib/libmwin.a; then
32437             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
32438 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
32439         else
32440             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
32441 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
32442    { (exit 1); exit 1; }; }
32443         fi
32444
32445         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
32446         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
32447
32448         wxUSE_UNIVERSAL="yes"
32449
32450         AFMINSTALL=afminstall
32451         TOOLKIT=MICROWIN
32452         GUIDIST=MICROWIN_DIST
32453
32454         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
32455     fi
32456
32457         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32458                                 { echo "$as_me:$LINENO: checking for X" >&5
32459 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
32460
32461
32462 # Check whether --with-x was given.
32463 if test "${with_x+set}" = set; then
32464   withval=$with_x;
32465 fi
32466
32467 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32468 if test "x$with_x" = xno; then
32469   # The user explicitly disabled X.
32470   have_x=disabled
32471 else
32472   case $x_includes,$x_libraries in #(
32473     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
32474 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
32475    { (exit 1); exit 1; }; };; #(
32476     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
32477   echo $ECHO_N "(cached) $ECHO_C" >&6
32478 else
32479   # One or both of the vars are not set, and there is no cached value.
32480 ac_x_includes=no ac_x_libraries=no
32481 rm -f -r conftest.dir
32482 if mkdir conftest.dir; then
32483   cd conftest.dir
32484   cat >Imakefile <<'_ACEOF'
32485 incroot:
32486         @echo incroot='${INCROOT}'
32487 usrlibdir:
32488         @echo usrlibdir='${USRLIBDIR}'
32489 libdir:
32490         @echo libdir='${LIBDIR}'
32491 _ACEOF
32492   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
32493     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
32494     for ac_var in incroot usrlibdir libdir; do
32495       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32496     done
32497     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32498     for ac_extension in a so sl; do
32499       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32500          test -f "$ac_im_libdir/libX11.$ac_extension"; then
32501         ac_im_usrlibdir=$ac_im_libdir; break
32502       fi
32503     done
32504     # Screen out bogus values from the imake configuration.  They are
32505     # bogus both because they are the default anyway, and because
32506     # using them would break gcc on systems where it needs fixed includes.
32507     case $ac_im_incroot in
32508         /usr/include) ac_x_includes= ;;
32509         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
32510     esac
32511     case $ac_im_usrlibdir in
32512         /usr/lib | /lib) ;;
32513         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
32514     esac
32515   fi
32516   cd ..
32517   rm -f -r conftest.dir
32518 fi
32519
32520 # Standard set of common directories for X headers.
32521 # Check X11 before X11Rn because it is often a symlink to the current release.
32522 ac_x_header_dirs='
32523 /usr/X11/include
32524 /usr/X11R6/include
32525 /usr/X11R5/include
32526 /usr/X11R4/include
32527
32528 /usr/include/X11
32529 /usr/include/X11R6
32530 /usr/include/X11R5
32531 /usr/include/X11R4
32532
32533 /usr/local/X11/include
32534 /usr/local/X11R6/include
32535 /usr/local/X11R5/include
32536 /usr/local/X11R4/include
32537
32538 /usr/local/include/X11
32539 /usr/local/include/X11R6
32540 /usr/local/include/X11R5
32541 /usr/local/include/X11R4
32542
32543 /usr/X386/include
32544 /usr/x386/include
32545 /usr/XFree86/include/X11
32546
32547 /usr/include
32548 /usr/local/include
32549 /usr/unsupported/include
32550 /usr/athena/include
32551 /usr/local/x11r5/include
32552 /usr/lpp/Xamples/include
32553
32554 /usr/openwin/include
32555 /usr/openwin/share/include'
32556
32557 if test "$ac_x_includes" = no; then
32558   # Guess where to find include files, by looking for Xlib.h.
32559   # First, try using that file with no special directory specified.
32560   cat >conftest.$ac_ext <<_ACEOF
32561 /* confdefs.h.  */
32562 _ACEOF
32563 cat confdefs.h >>conftest.$ac_ext
32564 cat >>conftest.$ac_ext <<_ACEOF
32565 /* end confdefs.h.  */
32566 #include <X11/Xlib.h>
32567 _ACEOF
32568 if { (ac_try="$ac_cpp conftest.$ac_ext"
32569 case "(($ac_try" in
32570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32571   *) ac_try_echo=$ac_try;;
32572 esac
32573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32575   ac_status=$?
32576   grep -v '^ *+' conftest.er1 >conftest.err
32577   rm -f conftest.er1
32578   cat conftest.err >&5
32579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580   (exit $ac_status); } >/dev/null && {
32581          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32582          test ! -s conftest.err
32583        }; then
32584   # We can compile using X headers with no special include directory.
32585 ac_x_includes=
32586 else
32587   echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.$ac_ext >&5
32589
32590   for ac_dir in $ac_x_header_dirs; do
32591   if test -r "$ac_dir/X11/Xlib.h"; then
32592     ac_x_includes=$ac_dir
32593     break
32594   fi
32595 done
32596 fi
32597
32598 rm -f conftest.err conftest.$ac_ext
32599 fi # $ac_x_includes = no
32600
32601 if test "$ac_x_libraries" = no; then
32602   # Check for the libraries.
32603   # See if we find them without any special options.
32604   # Don't add to $LIBS permanently.
32605   ac_save_LIBS=$LIBS
32606   LIBS="-lX11 $LIBS"
32607   cat >conftest.$ac_ext <<_ACEOF
32608 /* confdefs.h.  */
32609 _ACEOF
32610 cat confdefs.h >>conftest.$ac_ext
32611 cat >>conftest.$ac_ext <<_ACEOF
32612 /* end confdefs.h.  */
32613 #include <X11/Xlib.h>
32614 int
32615 main ()
32616 {
32617 XrmInitialize ()
32618   ;
32619   return 0;
32620 }
32621 _ACEOF
32622 rm -f conftest.$ac_objext conftest$ac_exeext
32623 if { (ac_try="$ac_link"
32624 case "(($ac_try" in
32625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32626   *) ac_try_echo=$ac_try;;
32627 esac
32628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32629   (eval "$ac_link") 2>conftest.er1
32630   ac_status=$?
32631   grep -v '^ *+' conftest.er1 >conftest.err
32632   rm -f conftest.er1
32633   cat conftest.err >&5
32634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635   (exit $ac_status); } && {
32636          test -z "$ac_c_werror_flag" ||
32637          test ! -s conftest.err
32638        } && test -s conftest$ac_exeext &&
32639        $as_test_x conftest$ac_exeext; then
32640   LIBS=$ac_save_LIBS
32641 # We can link X programs with no special library path.
32642 ac_x_libraries=
32643 else
32644   echo "$as_me: failed program was:" >&5
32645 sed 's/^/| /' conftest.$ac_ext >&5
32646
32647         LIBS=$ac_save_LIBS
32648 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32649 do
32650   # Don't even attempt the hair of trying to link an X program!
32651   for ac_extension in a so sl; do
32652     if test -r "$ac_dir/libX11.$ac_extension"; then
32653       ac_x_libraries=$ac_dir
32654       break 2
32655     fi
32656   done
32657 done
32658 fi
32659
32660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32661       conftest$ac_exeext conftest.$ac_ext
32662 fi # $ac_x_libraries = no
32663
32664 case $ac_x_includes,$ac_x_libraries in #(
32665   no,* | *,no | *\'*)
32666     # Didn't find X, or a directory has "'" in its name.
32667     ac_cv_have_x="have_x=no";; #(
32668   *)
32669     # Record where we found X for the cache.
32670     ac_cv_have_x="have_x=yes\
32671         ac_x_includes='$ac_x_includes'\
32672         ac_x_libraries='$ac_x_libraries'"
32673 esac
32674 fi
32675 ;; #(
32676     *) have_x=yes;;
32677   esac
32678   eval "$ac_cv_have_x"
32679 fi # $with_x != no
32680
32681 if test "$have_x" != yes; then
32682   { echo "$as_me:$LINENO: result: $have_x" >&5
32683 echo "${ECHO_T}$have_x" >&6; }
32684   no_x=yes
32685 else
32686   # If each of the values was on the command line, it overrides each guess.
32687   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32688   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32689   # Update the cache value to reflect the command line values.
32690   ac_cv_have_x="have_x=yes\
32691         ac_x_includes='$x_includes'\
32692         ac_x_libraries='$x_libraries'"
32693   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
32694 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
32695 fi
32696
32697 if test "$no_x" = yes; then
32698   # Not all programs may use this symbol, but it does not hurt to define it.
32699
32700 cat >>confdefs.h <<\_ACEOF
32701 #define X_DISPLAY_MISSING 1
32702 _ACEOF
32703
32704   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
32705 else
32706   if test -n "$x_includes"; then
32707     X_CFLAGS="$X_CFLAGS -I$x_includes"
32708   fi
32709
32710   # It would also be nice to do this for all -L options, not just this one.
32711   if test -n "$x_libraries"; then
32712     X_LIBS="$X_LIBS -L$x_libraries"
32713     # For Solaris; some versions of Sun CC require a space after -R and
32714     # others require no space.  Words are not sufficient . . . .
32715     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32716 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32717     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32718     ac_xsave_c_werror_flag=$ac_c_werror_flag
32719     ac_c_werror_flag=yes
32720     cat >conftest.$ac_ext <<_ACEOF
32721 /* confdefs.h.  */
32722 _ACEOF
32723 cat confdefs.h >>conftest.$ac_ext
32724 cat >>conftest.$ac_ext <<_ACEOF
32725 /* end confdefs.h.  */
32726
32727 int
32728 main ()
32729 {
32730
32731   ;
32732   return 0;
32733 }
32734 _ACEOF
32735 rm -f conftest.$ac_objext conftest$ac_exeext
32736 if { (ac_try="$ac_link"
32737 case "(($ac_try" in
32738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32739   *) ac_try_echo=$ac_try;;
32740 esac
32741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32742   (eval "$ac_link") 2>conftest.er1
32743   ac_status=$?
32744   grep -v '^ *+' conftest.er1 >conftest.err
32745   rm -f conftest.er1
32746   cat conftest.err >&5
32747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748   (exit $ac_status); } && {
32749          test -z "$ac_c_werror_flag" ||
32750          test ! -s conftest.err
32751        } && test -s conftest$ac_exeext &&
32752        $as_test_x conftest$ac_exeext; then
32753   { echo "$as_me:$LINENO: result: no" >&5
32754 echo "${ECHO_T}no" >&6; }
32755        X_LIBS="$X_LIBS -R$x_libraries"
32756 else
32757   echo "$as_me: failed program was:" >&5
32758 sed 's/^/| /' conftest.$ac_ext >&5
32759
32760         LIBS="$ac_xsave_LIBS -R $x_libraries"
32761        cat >conftest.$ac_ext <<_ACEOF
32762 /* confdefs.h.  */
32763 _ACEOF
32764 cat confdefs.h >>conftest.$ac_ext
32765 cat >>conftest.$ac_ext <<_ACEOF
32766 /* end confdefs.h.  */
32767
32768 int
32769 main ()
32770 {
32771
32772   ;
32773   return 0;
32774 }
32775 _ACEOF
32776 rm -f conftest.$ac_objext conftest$ac_exeext
32777 if { (ac_try="$ac_link"
32778 case "(($ac_try" in
32779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32780   *) ac_try_echo=$ac_try;;
32781 esac
32782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32783   (eval "$ac_link") 2>conftest.er1
32784   ac_status=$?
32785   grep -v '^ *+' conftest.er1 >conftest.err
32786   rm -f conftest.er1
32787   cat conftest.err >&5
32788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789   (exit $ac_status); } && {
32790          test -z "$ac_c_werror_flag" ||
32791          test ! -s conftest.err
32792        } && test -s conftest$ac_exeext &&
32793        $as_test_x conftest$ac_exeext; then
32794   { echo "$as_me:$LINENO: result: yes" >&5
32795 echo "${ECHO_T}yes" >&6; }
32796           X_LIBS="$X_LIBS -R $x_libraries"
32797 else
32798   echo "$as_me: failed program was:" >&5
32799 sed 's/^/| /' conftest.$ac_ext >&5
32800
32801         { echo "$as_me:$LINENO: result: neither works" >&5
32802 echo "${ECHO_T}neither works" >&6; }
32803 fi
32804
32805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32806       conftest$ac_exeext conftest.$ac_ext
32807 fi
32808
32809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32810       conftest$ac_exeext conftest.$ac_ext
32811     ac_c_werror_flag=$ac_xsave_c_werror_flag
32812     LIBS=$ac_xsave_LIBS
32813   fi
32814
32815   # Check for system-dependent libraries X programs must link with.
32816   # Do this before checking for the system-independent R6 libraries
32817   # (-lICE), since we may need -lsocket or whatever for X linking.
32818
32819   if test "$ISC" = yes; then
32820     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32821   else
32822     # Martyn Johnson says this is needed for Ultrix, if the X
32823     # libraries were built with DECnet support.  And Karl Berry says
32824     # the Alpha needs dnet_stub (dnet does not exist).
32825     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32826     cat >conftest.$ac_ext <<_ACEOF
32827 /* confdefs.h.  */
32828 _ACEOF
32829 cat confdefs.h >>conftest.$ac_ext
32830 cat >>conftest.$ac_ext <<_ACEOF
32831 /* end confdefs.h.  */
32832
32833 /* Override any GCC internal prototype to avoid an error.
32834    Use char because int might match the return type of a GCC
32835    builtin and then its argument prototype would still apply.  */
32836 #ifdef __cplusplus
32837 extern "C"
32838 #endif
32839 char XOpenDisplay ();
32840 int
32841 main ()
32842 {
32843 return XOpenDisplay ();
32844   ;
32845   return 0;
32846 }
32847 _ACEOF
32848 rm -f conftest.$ac_objext conftest$ac_exeext
32849 if { (ac_try="$ac_link"
32850 case "(($ac_try" in
32851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32852   *) ac_try_echo=$ac_try;;
32853 esac
32854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32855   (eval "$ac_link") 2>conftest.er1
32856   ac_status=$?
32857   grep -v '^ *+' conftest.er1 >conftest.err
32858   rm -f conftest.er1
32859   cat conftest.err >&5
32860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861   (exit $ac_status); } && {
32862          test -z "$ac_c_werror_flag" ||
32863          test ! -s conftest.err
32864        } && test -s conftest$ac_exeext &&
32865        $as_test_x conftest$ac_exeext; then
32866   :
32867 else
32868   echo "$as_me: failed program was:" >&5
32869 sed 's/^/| /' conftest.$ac_ext >&5
32870
32871         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32872 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32873 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32874   echo $ECHO_N "(cached) $ECHO_C" >&6
32875 else
32876   ac_check_lib_save_LIBS=$LIBS
32877 LIBS="-ldnet  $LIBS"
32878 cat >conftest.$ac_ext <<_ACEOF
32879 /* confdefs.h.  */
32880 _ACEOF
32881 cat confdefs.h >>conftest.$ac_ext
32882 cat >>conftest.$ac_ext <<_ACEOF
32883 /* end confdefs.h.  */
32884
32885 /* Override any GCC internal prototype to avoid an error.
32886    Use char because int might match the return type of a GCC
32887    builtin and then its argument prototype would still apply.  */
32888 #ifdef __cplusplus
32889 extern "C"
32890 #endif
32891 char dnet_ntoa ();
32892 int
32893 main ()
32894 {
32895 return dnet_ntoa ();
32896   ;
32897   return 0;
32898 }
32899 _ACEOF
32900 rm -f conftest.$ac_objext conftest$ac_exeext
32901 if { (ac_try="$ac_link"
32902 case "(($ac_try" in
32903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32904   *) ac_try_echo=$ac_try;;
32905 esac
32906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32907   (eval "$ac_link") 2>conftest.er1
32908   ac_status=$?
32909   grep -v '^ *+' conftest.er1 >conftest.err
32910   rm -f conftest.er1
32911   cat conftest.err >&5
32912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913   (exit $ac_status); } && {
32914          test -z "$ac_c_werror_flag" ||
32915          test ! -s conftest.err
32916        } && test -s conftest$ac_exeext &&
32917        $as_test_x conftest$ac_exeext; then
32918   ac_cv_lib_dnet_dnet_ntoa=yes
32919 else
32920   echo "$as_me: failed program was:" >&5
32921 sed 's/^/| /' conftest.$ac_ext >&5
32922
32923         ac_cv_lib_dnet_dnet_ntoa=no
32924 fi
32925
32926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32927       conftest$ac_exeext conftest.$ac_ext
32928 LIBS=$ac_check_lib_save_LIBS
32929 fi
32930 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32931 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32932 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32933   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32934 fi
32935
32936     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32937       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32938 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32939 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32940   echo $ECHO_N "(cached) $ECHO_C" >&6
32941 else
32942   ac_check_lib_save_LIBS=$LIBS
32943 LIBS="-ldnet_stub  $LIBS"
32944 cat >conftest.$ac_ext <<_ACEOF
32945 /* confdefs.h.  */
32946 _ACEOF
32947 cat confdefs.h >>conftest.$ac_ext
32948 cat >>conftest.$ac_ext <<_ACEOF
32949 /* end confdefs.h.  */
32950
32951 /* Override any GCC internal prototype to avoid an error.
32952    Use char because int might match the return type of a GCC
32953    builtin and then its argument prototype would still apply.  */
32954 #ifdef __cplusplus
32955 extern "C"
32956 #endif
32957 char dnet_ntoa ();
32958 int
32959 main ()
32960 {
32961 return dnet_ntoa ();
32962   ;
32963   return 0;
32964 }
32965 _ACEOF
32966 rm -f conftest.$ac_objext conftest$ac_exeext
32967 if { (ac_try="$ac_link"
32968 case "(($ac_try" in
32969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32970   *) ac_try_echo=$ac_try;;
32971 esac
32972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32973   (eval "$ac_link") 2>conftest.er1
32974   ac_status=$?
32975   grep -v '^ *+' conftest.er1 >conftest.err
32976   rm -f conftest.er1
32977   cat conftest.err >&5
32978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979   (exit $ac_status); } && {
32980          test -z "$ac_c_werror_flag" ||
32981          test ! -s conftest.err
32982        } && test -s conftest$ac_exeext &&
32983        $as_test_x conftest$ac_exeext; then
32984   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32985 else
32986   echo "$as_me: failed program was:" >&5
32987 sed 's/^/| /' conftest.$ac_ext >&5
32988
32989         ac_cv_lib_dnet_stub_dnet_ntoa=no
32990 fi
32991
32992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32993       conftest$ac_exeext conftest.$ac_ext
32994 LIBS=$ac_check_lib_save_LIBS
32995 fi
32996 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32997 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32998 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32999   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
33000 fi
33001
33002     fi
33003 fi
33004
33005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33006       conftest$ac_exeext conftest.$ac_ext
33007     LIBS="$ac_xsave_LIBS"
33008
33009     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
33010     # to get the SysV transport functions.
33011     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
33012     # needs -lnsl.
33013     # The nsl library prevents programs from opening the X display
33014     # on Irix 5.2, according to T.E. Dickey.
33015     # The functions gethostbyname, getservbyname, and inet_addr are
33016     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
33017     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
33018 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
33019 if test "${ac_cv_func_gethostbyname+set}" = set; then
33020   echo $ECHO_N "(cached) $ECHO_C" >&6
33021 else
33022   cat >conftest.$ac_ext <<_ACEOF
33023 /* confdefs.h.  */
33024 _ACEOF
33025 cat confdefs.h >>conftest.$ac_ext
33026 cat >>conftest.$ac_ext <<_ACEOF
33027 /* end confdefs.h.  */
33028 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
33029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33030 #define gethostbyname innocuous_gethostbyname
33031
33032 /* System header to define __stub macros and hopefully few prototypes,
33033     which can conflict with char gethostbyname (); below.
33034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33035     <limits.h> exists even on freestanding compilers.  */
33036
33037 #ifdef __STDC__
33038 # include <limits.h>
33039 #else
33040 # include <assert.h>
33041 #endif
33042
33043 #undef gethostbyname
33044
33045 /* Override any GCC internal prototype to avoid an error.
33046    Use char because int might match the return type of a GCC
33047    builtin and then its argument prototype would still apply.  */
33048 #ifdef __cplusplus
33049 extern "C"
33050 #endif
33051 char gethostbyname ();
33052 /* The GNU C library defines this for functions which it implements
33053     to always fail with ENOSYS.  Some functions are actually named
33054     something starting with __ and the normal name is an alias.  */
33055 #if defined __stub_gethostbyname || defined __stub___gethostbyname
33056 choke me
33057 #endif
33058
33059 int
33060 main ()
33061 {
33062 return gethostbyname ();
33063   ;
33064   return 0;
33065 }
33066 _ACEOF
33067 rm -f conftest.$ac_objext conftest$ac_exeext
33068 if { (ac_try="$ac_link"
33069 case "(($ac_try" in
33070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33071   *) ac_try_echo=$ac_try;;
33072 esac
33073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33074   (eval "$ac_link") 2>conftest.er1
33075   ac_status=$?
33076   grep -v '^ *+' conftest.er1 >conftest.err
33077   rm -f conftest.er1
33078   cat conftest.err >&5
33079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33080   (exit $ac_status); } && {
33081          test -z "$ac_c_werror_flag" ||
33082          test ! -s conftest.err
33083        } && test -s conftest$ac_exeext &&
33084        $as_test_x conftest$ac_exeext; then
33085   ac_cv_func_gethostbyname=yes
33086 else
33087   echo "$as_me: failed program was:" >&5
33088 sed 's/^/| /' conftest.$ac_ext >&5
33089
33090         ac_cv_func_gethostbyname=no
33091 fi
33092
33093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33094       conftest$ac_exeext conftest.$ac_ext
33095 fi
33096 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
33097 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
33098
33099     if test $ac_cv_func_gethostbyname = no; then
33100       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
33101 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
33102 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
33103   echo $ECHO_N "(cached) $ECHO_C" >&6
33104 else
33105   ac_check_lib_save_LIBS=$LIBS
33106 LIBS="-lnsl  $LIBS"
33107 cat >conftest.$ac_ext <<_ACEOF
33108 /* confdefs.h.  */
33109 _ACEOF
33110 cat confdefs.h >>conftest.$ac_ext
33111 cat >>conftest.$ac_ext <<_ACEOF
33112 /* end confdefs.h.  */
33113
33114 /* Override any GCC internal prototype to avoid an error.
33115    Use char because int might match the return type of a GCC
33116    builtin and then its argument prototype would still apply.  */
33117 #ifdef __cplusplus
33118 extern "C"
33119 #endif
33120 char gethostbyname ();
33121 int
33122 main ()
33123 {
33124 return gethostbyname ();
33125   ;
33126   return 0;
33127 }
33128 _ACEOF
33129 rm -f conftest.$ac_objext conftest$ac_exeext
33130 if { (ac_try="$ac_link"
33131 case "(($ac_try" in
33132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33133   *) ac_try_echo=$ac_try;;
33134 esac
33135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33136   (eval "$ac_link") 2>conftest.er1
33137   ac_status=$?
33138   grep -v '^ *+' conftest.er1 >conftest.err
33139   rm -f conftest.er1
33140   cat conftest.err >&5
33141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142   (exit $ac_status); } && {
33143          test -z "$ac_c_werror_flag" ||
33144          test ! -s conftest.err
33145        } && test -s conftest$ac_exeext &&
33146        $as_test_x conftest$ac_exeext; then
33147   ac_cv_lib_nsl_gethostbyname=yes
33148 else
33149   echo "$as_me: failed program was:" >&5
33150 sed 's/^/| /' conftest.$ac_ext >&5
33151
33152         ac_cv_lib_nsl_gethostbyname=no
33153 fi
33154
33155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33156       conftest$ac_exeext conftest.$ac_ext
33157 LIBS=$ac_check_lib_save_LIBS
33158 fi
33159 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
33160 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
33161 if test $ac_cv_lib_nsl_gethostbyname = yes; then
33162   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
33163 fi
33164
33165       if test $ac_cv_lib_nsl_gethostbyname = no; then
33166         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
33167 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
33168 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
33169   echo $ECHO_N "(cached) $ECHO_C" >&6
33170 else
33171   ac_check_lib_save_LIBS=$LIBS
33172 LIBS="-lbsd  $LIBS"
33173 cat >conftest.$ac_ext <<_ACEOF
33174 /* confdefs.h.  */
33175 _ACEOF
33176 cat confdefs.h >>conftest.$ac_ext
33177 cat >>conftest.$ac_ext <<_ACEOF
33178 /* end confdefs.h.  */
33179
33180 /* Override any GCC internal prototype to avoid an error.
33181    Use char because int might match the return type of a GCC
33182    builtin and then its argument prototype would still apply.  */
33183 #ifdef __cplusplus
33184 extern "C"
33185 #endif
33186 char gethostbyname ();
33187 int
33188 main ()
33189 {
33190 return gethostbyname ();
33191   ;
33192   return 0;
33193 }
33194 _ACEOF
33195 rm -f conftest.$ac_objext conftest$ac_exeext
33196 if { (ac_try="$ac_link"
33197 case "(($ac_try" in
33198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199   *) ac_try_echo=$ac_try;;
33200 esac
33201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202   (eval "$ac_link") 2>conftest.er1
33203   ac_status=$?
33204   grep -v '^ *+' conftest.er1 >conftest.err
33205   rm -f conftest.er1
33206   cat conftest.err >&5
33207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208   (exit $ac_status); } && {
33209          test -z "$ac_c_werror_flag" ||
33210          test ! -s conftest.err
33211        } && test -s conftest$ac_exeext &&
33212        $as_test_x conftest$ac_exeext; then
33213   ac_cv_lib_bsd_gethostbyname=yes
33214 else
33215   echo "$as_me: failed program was:" >&5
33216 sed 's/^/| /' conftest.$ac_ext >&5
33217
33218         ac_cv_lib_bsd_gethostbyname=no
33219 fi
33220
33221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33222       conftest$ac_exeext conftest.$ac_ext
33223 LIBS=$ac_check_lib_save_LIBS
33224 fi
33225 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
33226 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
33227 if test $ac_cv_lib_bsd_gethostbyname = yes; then
33228   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
33229 fi
33230
33231       fi
33232     fi
33233
33234     # lieder@skyler.mavd.honeywell.com says without -lsocket,
33235     # socket/setsockopt and other routines are undefined under SCO ODT
33236     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
33237     # on later versions), says Simon Leinen: it contains gethostby*
33238     # variants that don't use the name server (or something).  -lsocket
33239     # must be given before -lnsl if both are needed.  We assume that
33240     # if connect needs -lnsl, so does gethostbyname.
33241     { echo "$as_me:$LINENO: checking for connect" >&5
33242 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
33243 if test "${ac_cv_func_connect+set}" = set; then
33244   echo $ECHO_N "(cached) $ECHO_C" >&6
33245 else
33246   cat >conftest.$ac_ext <<_ACEOF
33247 /* confdefs.h.  */
33248 _ACEOF
33249 cat confdefs.h >>conftest.$ac_ext
33250 cat >>conftest.$ac_ext <<_ACEOF
33251 /* end confdefs.h.  */
33252 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
33253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33254 #define connect innocuous_connect
33255
33256 /* System header to define __stub macros and hopefully few prototypes,
33257     which can conflict with char connect (); below.
33258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33259     <limits.h> exists even on freestanding compilers.  */
33260
33261 #ifdef __STDC__
33262 # include <limits.h>
33263 #else
33264 # include <assert.h>
33265 #endif
33266
33267 #undef connect
33268
33269 /* Override any GCC internal prototype to avoid an error.
33270    Use char because int might match the return type of a GCC
33271    builtin and then its argument prototype would still apply.  */
33272 #ifdef __cplusplus
33273 extern "C"
33274 #endif
33275 char connect ();
33276 /* The GNU C library defines this for functions which it implements
33277     to always fail with ENOSYS.  Some functions are actually named
33278     something starting with __ and the normal name is an alias.  */
33279 #if defined __stub_connect || defined __stub___connect
33280 choke me
33281 #endif
33282
33283 int
33284 main ()
33285 {
33286 return connect ();
33287   ;
33288   return 0;
33289 }
33290 _ACEOF
33291 rm -f conftest.$ac_objext conftest$ac_exeext
33292 if { (ac_try="$ac_link"
33293 case "(($ac_try" in
33294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33295   *) ac_try_echo=$ac_try;;
33296 esac
33297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33298   (eval "$ac_link") 2>conftest.er1
33299   ac_status=$?
33300   grep -v '^ *+' conftest.er1 >conftest.err
33301   rm -f conftest.er1
33302   cat conftest.err >&5
33303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304   (exit $ac_status); } && {
33305          test -z "$ac_c_werror_flag" ||
33306          test ! -s conftest.err
33307        } && test -s conftest$ac_exeext &&
33308        $as_test_x conftest$ac_exeext; then
33309   ac_cv_func_connect=yes
33310 else
33311   echo "$as_me: failed program was:" >&5
33312 sed 's/^/| /' conftest.$ac_ext >&5
33313
33314         ac_cv_func_connect=no
33315 fi
33316
33317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33318       conftest$ac_exeext conftest.$ac_ext
33319 fi
33320 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
33321 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
33322
33323     if test $ac_cv_func_connect = no; then
33324       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
33325 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
33326 if test "${ac_cv_lib_socket_connect+set}" = set; then
33327   echo $ECHO_N "(cached) $ECHO_C" >&6
33328 else
33329   ac_check_lib_save_LIBS=$LIBS
33330 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
33331 cat >conftest.$ac_ext <<_ACEOF
33332 /* confdefs.h.  */
33333 _ACEOF
33334 cat confdefs.h >>conftest.$ac_ext
33335 cat >>conftest.$ac_ext <<_ACEOF
33336 /* end confdefs.h.  */
33337
33338 /* Override any GCC internal prototype to avoid an error.
33339    Use char because int might match the return type of a GCC
33340    builtin and then its argument prototype would still apply.  */
33341 #ifdef __cplusplus
33342 extern "C"
33343 #endif
33344 char connect ();
33345 int
33346 main ()
33347 {
33348 return connect ();
33349   ;
33350   return 0;
33351 }
33352 _ACEOF
33353 rm -f conftest.$ac_objext conftest$ac_exeext
33354 if { (ac_try="$ac_link"
33355 case "(($ac_try" in
33356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33357   *) ac_try_echo=$ac_try;;
33358 esac
33359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33360   (eval "$ac_link") 2>conftest.er1
33361   ac_status=$?
33362   grep -v '^ *+' conftest.er1 >conftest.err
33363   rm -f conftest.er1
33364   cat conftest.err >&5
33365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366   (exit $ac_status); } && {
33367          test -z "$ac_c_werror_flag" ||
33368          test ! -s conftest.err
33369        } && test -s conftest$ac_exeext &&
33370        $as_test_x conftest$ac_exeext; then
33371   ac_cv_lib_socket_connect=yes
33372 else
33373   echo "$as_me: failed program was:" >&5
33374 sed 's/^/| /' conftest.$ac_ext >&5
33375
33376         ac_cv_lib_socket_connect=no
33377 fi
33378
33379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33380       conftest$ac_exeext conftest.$ac_ext
33381 LIBS=$ac_check_lib_save_LIBS
33382 fi
33383 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
33384 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
33385 if test $ac_cv_lib_socket_connect = yes; then
33386   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
33387 fi
33388
33389     fi
33390
33391     # Guillermo Gomez says -lposix is necessary on A/UX.
33392     { echo "$as_me:$LINENO: checking for remove" >&5
33393 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
33394 if test "${ac_cv_func_remove+set}" = set; then
33395   echo $ECHO_N "(cached) $ECHO_C" >&6
33396 else
33397   cat >conftest.$ac_ext <<_ACEOF
33398 /* confdefs.h.  */
33399 _ACEOF
33400 cat confdefs.h >>conftest.$ac_ext
33401 cat >>conftest.$ac_ext <<_ACEOF
33402 /* end confdefs.h.  */
33403 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
33404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33405 #define remove innocuous_remove
33406
33407 /* System header to define __stub macros and hopefully few prototypes,
33408     which can conflict with char remove (); below.
33409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33410     <limits.h> exists even on freestanding compilers.  */
33411
33412 #ifdef __STDC__
33413 # include <limits.h>
33414 #else
33415 # include <assert.h>
33416 #endif
33417
33418 #undef remove
33419
33420 /* Override any GCC internal prototype to avoid an error.
33421    Use char because int might match the return type of a GCC
33422    builtin and then its argument prototype would still apply.  */
33423 #ifdef __cplusplus
33424 extern "C"
33425 #endif
33426 char remove ();
33427 /* The GNU C library defines this for functions which it implements
33428     to always fail with ENOSYS.  Some functions are actually named
33429     something starting with __ and the normal name is an alias.  */
33430 #if defined __stub_remove || defined __stub___remove
33431 choke me
33432 #endif
33433
33434 int
33435 main ()
33436 {
33437 return remove ();
33438   ;
33439   return 0;
33440 }
33441 _ACEOF
33442 rm -f conftest.$ac_objext conftest$ac_exeext
33443 if { (ac_try="$ac_link"
33444 case "(($ac_try" in
33445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33446   *) ac_try_echo=$ac_try;;
33447 esac
33448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33449   (eval "$ac_link") 2>conftest.er1
33450   ac_status=$?
33451   grep -v '^ *+' conftest.er1 >conftest.err
33452   rm -f conftest.er1
33453   cat conftest.err >&5
33454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455   (exit $ac_status); } && {
33456          test -z "$ac_c_werror_flag" ||
33457          test ! -s conftest.err
33458        } && test -s conftest$ac_exeext &&
33459        $as_test_x conftest$ac_exeext; then
33460   ac_cv_func_remove=yes
33461 else
33462   echo "$as_me: failed program was:" >&5
33463 sed 's/^/| /' conftest.$ac_ext >&5
33464
33465         ac_cv_func_remove=no
33466 fi
33467
33468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33469       conftest$ac_exeext conftest.$ac_ext
33470 fi
33471 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
33472 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
33473
33474     if test $ac_cv_func_remove = no; then
33475       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
33476 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
33477 if test "${ac_cv_lib_posix_remove+set}" = set; then
33478   echo $ECHO_N "(cached) $ECHO_C" >&6
33479 else
33480   ac_check_lib_save_LIBS=$LIBS
33481 LIBS="-lposix  $LIBS"
33482 cat >conftest.$ac_ext <<_ACEOF
33483 /* confdefs.h.  */
33484 _ACEOF
33485 cat confdefs.h >>conftest.$ac_ext
33486 cat >>conftest.$ac_ext <<_ACEOF
33487 /* end confdefs.h.  */
33488
33489 /* Override any GCC internal prototype to avoid an error.
33490    Use char because int might match the return type of a GCC
33491    builtin and then its argument prototype would still apply.  */
33492 #ifdef __cplusplus
33493 extern "C"
33494 #endif
33495 char remove ();
33496 int
33497 main ()
33498 {
33499 return remove ();
33500   ;
33501   return 0;
33502 }
33503 _ACEOF
33504 rm -f conftest.$ac_objext conftest$ac_exeext
33505 if { (ac_try="$ac_link"
33506 case "(($ac_try" in
33507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33508   *) ac_try_echo=$ac_try;;
33509 esac
33510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33511   (eval "$ac_link") 2>conftest.er1
33512   ac_status=$?
33513   grep -v '^ *+' conftest.er1 >conftest.err
33514   rm -f conftest.er1
33515   cat conftest.err >&5
33516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517   (exit $ac_status); } && {
33518          test -z "$ac_c_werror_flag" ||
33519          test ! -s conftest.err
33520        } && test -s conftest$ac_exeext &&
33521        $as_test_x conftest$ac_exeext; then
33522   ac_cv_lib_posix_remove=yes
33523 else
33524   echo "$as_me: failed program was:" >&5
33525 sed 's/^/| /' conftest.$ac_ext >&5
33526
33527         ac_cv_lib_posix_remove=no
33528 fi
33529
33530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33531       conftest$ac_exeext conftest.$ac_ext
33532 LIBS=$ac_check_lib_save_LIBS
33533 fi
33534 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
33535 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
33536 if test $ac_cv_lib_posix_remove = yes; then
33537   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
33538 fi
33539
33540     fi
33541
33542     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
33543     { echo "$as_me:$LINENO: checking for shmat" >&5
33544 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
33545 if test "${ac_cv_func_shmat+set}" = set; then
33546   echo $ECHO_N "(cached) $ECHO_C" >&6
33547 else
33548   cat >conftest.$ac_ext <<_ACEOF
33549 /* confdefs.h.  */
33550 _ACEOF
33551 cat confdefs.h >>conftest.$ac_ext
33552 cat >>conftest.$ac_ext <<_ACEOF
33553 /* end confdefs.h.  */
33554 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
33555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33556 #define shmat innocuous_shmat
33557
33558 /* System header to define __stub macros and hopefully few prototypes,
33559     which can conflict with char shmat (); below.
33560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33561     <limits.h> exists even on freestanding compilers.  */
33562
33563 #ifdef __STDC__
33564 # include <limits.h>
33565 #else
33566 # include <assert.h>
33567 #endif
33568
33569 #undef shmat
33570
33571 /* Override any GCC internal prototype to avoid an error.
33572    Use char because int might match the return type of a GCC
33573    builtin and then its argument prototype would still apply.  */
33574 #ifdef __cplusplus
33575 extern "C"
33576 #endif
33577 char shmat ();
33578 /* The GNU C library defines this for functions which it implements
33579     to always fail with ENOSYS.  Some functions are actually named
33580     something starting with __ and the normal name is an alias.  */
33581 #if defined __stub_shmat || defined __stub___shmat
33582 choke me
33583 #endif
33584
33585 int
33586 main ()
33587 {
33588 return shmat ();
33589   ;
33590   return 0;
33591 }
33592 _ACEOF
33593 rm -f conftest.$ac_objext conftest$ac_exeext
33594 if { (ac_try="$ac_link"
33595 case "(($ac_try" in
33596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33597   *) ac_try_echo=$ac_try;;
33598 esac
33599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33600   (eval "$ac_link") 2>conftest.er1
33601   ac_status=$?
33602   grep -v '^ *+' conftest.er1 >conftest.err
33603   rm -f conftest.er1
33604   cat conftest.err >&5
33605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606   (exit $ac_status); } && {
33607          test -z "$ac_c_werror_flag" ||
33608          test ! -s conftest.err
33609        } && test -s conftest$ac_exeext &&
33610        $as_test_x conftest$ac_exeext; then
33611   ac_cv_func_shmat=yes
33612 else
33613   echo "$as_me: failed program was:" >&5
33614 sed 's/^/| /' conftest.$ac_ext >&5
33615
33616         ac_cv_func_shmat=no
33617 fi
33618
33619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33620       conftest$ac_exeext conftest.$ac_ext
33621 fi
33622 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
33623 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
33624
33625     if test $ac_cv_func_shmat = no; then
33626       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
33627 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
33628 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
33629   echo $ECHO_N "(cached) $ECHO_C" >&6
33630 else
33631   ac_check_lib_save_LIBS=$LIBS
33632 LIBS="-lipc  $LIBS"
33633 cat >conftest.$ac_ext <<_ACEOF
33634 /* confdefs.h.  */
33635 _ACEOF
33636 cat confdefs.h >>conftest.$ac_ext
33637 cat >>conftest.$ac_ext <<_ACEOF
33638 /* end confdefs.h.  */
33639
33640 /* Override any GCC internal prototype to avoid an error.
33641    Use char because int might match the return type of a GCC
33642    builtin and then its argument prototype would still apply.  */
33643 #ifdef __cplusplus
33644 extern "C"
33645 #endif
33646 char shmat ();
33647 int
33648 main ()
33649 {
33650 return shmat ();
33651   ;
33652   return 0;
33653 }
33654 _ACEOF
33655 rm -f conftest.$ac_objext conftest$ac_exeext
33656 if { (ac_try="$ac_link"
33657 case "(($ac_try" in
33658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33659   *) ac_try_echo=$ac_try;;
33660 esac
33661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33662   (eval "$ac_link") 2>conftest.er1
33663   ac_status=$?
33664   grep -v '^ *+' conftest.er1 >conftest.err
33665   rm -f conftest.er1
33666   cat conftest.err >&5
33667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668   (exit $ac_status); } && {
33669          test -z "$ac_c_werror_flag" ||
33670          test ! -s conftest.err
33671        } && test -s conftest$ac_exeext &&
33672        $as_test_x conftest$ac_exeext; then
33673   ac_cv_lib_ipc_shmat=yes
33674 else
33675   echo "$as_me: failed program was:" >&5
33676 sed 's/^/| /' conftest.$ac_ext >&5
33677
33678         ac_cv_lib_ipc_shmat=no
33679 fi
33680
33681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33682       conftest$ac_exeext conftest.$ac_ext
33683 LIBS=$ac_check_lib_save_LIBS
33684 fi
33685 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
33686 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
33687 if test $ac_cv_lib_ipc_shmat = yes; then
33688   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
33689 fi
33690
33691     fi
33692   fi
33693
33694   # Check for libraries that X11R6 Xt/Xaw programs need.
33695   ac_save_LDFLAGS=$LDFLAGS
33696   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
33697   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
33698   # check for ICE first), but we must link in the order -lSM -lICE or
33699   # we get undefined symbols.  So assume we have SM if we have ICE.
33700   # These have to be linked with before -lX11, unlike the other
33701   # libraries we check for below, so use a different variable.
33702   # John Interrante, Karl Berry
33703   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
33704 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
33705 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
33706   echo $ECHO_N "(cached) $ECHO_C" >&6
33707 else
33708   ac_check_lib_save_LIBS=$LIBS
33709 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
33710 cat >conftest.$ac_ext <<_ACEOF
33711 /* confdefs.h.  */
33712 _ACEOF
33713 cat confdefs.h >>conftest.$ac_ext
33714 cat >>conftest.$ac_ext <<_ACEOF
33715 /* end confdefs.h.  */
33716
33717 /* Override any GCC internal prototype to avoid an error.
33718    Use char because int might match the return type of a GCC
33719    builtin and then its argument prototype would still apply.  */
33720 #ifdef __cplusplus
33721 extern "C"
33722 #endif
33723 char IceConnectionNumber ();
33724 int
33725 main ()
33726 {
33727 return IceConnectionNumber ();
33728   ;
33729   return 0;
33730 }
33731 _ACEOF
33732 rm -f conftest.$ac_objext conftest$ac_exeext
33733 if { (ac_try="$ac_link"
33734 case "(($ac_try" in
33735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33736   *) ac_try_echo=$ac_try;;
33737 esac
33738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33739   (eval "$ac_link") 2>conftest.er1
33740   ac_status=$?
33741   grep -v '^ *+' conftest.er1 >conftest.err
33742   rm -f conftest.er1
33743   cat conftest.err >&5
33744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745   (exit $ac_status); } && {
33746          test -z "$ac_c_werror_flag" ||
33747          test ! -s conftest.err
33748        } && test -s conftest$ac_exeext &&
33749        $as_test_x conftest$ac_exeext; then
33750   ac_cv_lib_ICE_IceConnectionNumber=yes
33751 else
33752   echo "$as_me: failed program was:" >&5
33753 sed 's/^/| /' conftest.$ac_ext >&5
33754
33755         ac_cv_lib_ICE_IceConnectionNumber=no
33756 fi
33757
33758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33759       conftest$ac_exeext conftest.$ac_ext
33760 LIBS=$ac_check_lib_save_LIBS
33761 fi
33762 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33763 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33764 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33765   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33766 fi
33767
33768   LDFLAGS=$ac_save_LDFLAGS
33769
33770 fi
33771
33772
33773         if test "$no_x" = "yes"; then
33774           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33775 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33776    { (exit 1); exit 1; }; }
33777         fi
33778
33779                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33780         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33781         AFMINSTALL=afminstall
33782         COMPILED_X_PROGRAM=0
33783
33784     fi
33785
33786     if test "$wxUSE_X11" = 1; then
33787         if test "$wxUSE_NANOX" = "yes"; then
33788             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33789 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33790             if test "x$MICROWIN" = x ; then
33791                 { echo "$as_me:$LINENO: result: not found" >&5
33792 echo "${ECHO_T}not found" >&6; }
33793                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33794 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33795    { (exit 1); exit 1; }; }
33796             else
33797                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33798 echo "${ECHO_T}$MICROWIN" >&6; }
33799                 cat >>confdefs.h <<\_ACEOF
33800 #define wxUSE_NANOX 1
33801 _ACEOF
33802
33803             fi
33804         fi
33805
33806         if test "$wxUSE_UNICODE" = "yes"; then
33807
33808
33809 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33810         if test -n "$ac_tool_prefix"; then
33811   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33812 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33815 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33816   echo $ECHO_N "(cached) $ECHO_C" >&6
33817 else
33818   case $PKG_CONFIG in
33819   [\\/]* | ?:[\\/]*)
33820   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33821   ;;
33822   *)
33823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33824 for as_dir in $PATH
33825 do
33826   IFS=$as_save_IFS
33827   test -z "$as_dir" && as_dir=.
33828   for ac_exec_ext in '' $ac_executable_extensions; do
33829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33830     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33832     break 2
33833   fi
33834 done
33835 done
33836 IFS=$as_save_IFS
33837
33838   ;;
33839 esac
33840 fi
33841 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33842 if test -n "$PKG_CONFIG"; then
33843   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33844 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33845 else
33846   { echo "$as_me:$LINENO: result: no" >&5
33847 echo "${ECHO_T}no" >&6; }
33848 fi
33849
33850
33851 fi
33852 if test -z "$ac_cv_path_PKG_CONFIG"; then
33853   ac_pt_PKG_CONFIG=$PKG_CONFIG
33854   # Extract the first word of "pkg-config", so it can be a program name with args.
33855 set dummy pkg-config; ac_word=$2
33856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33858 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33859   echo $ECHO_N "(cached) $ECHO_C" >&6
33860 else
33861   case $ac_pt_PKG_CONFIG in
33862   [\\/]* | ?:[\\/]*)
33863   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33864   ;;
33865   *)
33866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33867 for as_dir in $PATH
33868 do
33869   IFS=$as_save_IFS
33870   test -z "$as_dir" && as_dir=.
33871   for ac_exec_ext in '' $ac_executable_extensions; do
33872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33873     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33875     break 2
33876   fi
33877 done
33878 done
33879 IFS=$as_save_IFS
33880
33881   ;;
33882 esac
33883 fi
33884 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33885 if test -n "$ac_pt_PKG_CONFIG"; then
33886   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33887 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33888 else
33889   { echo "$as_me:$LINENO: result: no" >&5
33890 echo "${ECHO_T}no" >&6; }
33891 fi
33892
33893   if test "x$ac_pt_PKG_CONFIG" = x; then
33894     PKG_CONFIG=""
33895   else
33896     case $cross_compiling:$ac_tool_warned in
33897 yes:)
33898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33899 whose name does not start with the host triplet.  If you think this
33900 configuration is useful to you, please write to autoconf@gnu.org." >&5
33901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33902 whose name does not start with the host triplet.  If you think this
33903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33904 ac_tool_warned=yes ;;
33905 esac
33906     PKG_CONFIG=$ac_pt_PKG_CONFIG
33907   fi
33908 else
33909   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33910 fi
33911
33912 fi
33913 if test -n "$PKG_CONFIG"; then
33914         _pkg_min_version=0.9.0
33915         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33916 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33917         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33918                 { echo "$as_me:$LINENO: result: yes" >&5
33919 echo "${ECHO_T}yes" >&6; }
33920         else
33921                 { echo "$as_me:$LINENO: result: no" >&5
33922 echo "${ECHO_T}no" >&6; }
33923                 PKG_CONFIG=""
33924         fi
33925
33926 fi
33927
33928
33929 pkg_failed=no
33930 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33931 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33932
33933 if test -n "$PKG_CONFIG"; then
33934     if test -n "$PANGOX_CFLAGS"; then
33935         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33936     else
33937         if test -n "$PKG_CONFIG" && \
33938     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33939   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33940   ac_status=$?
33941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942   (exit $ac_status); }; then
33943   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33944 else
33945   pkg_failed=yes
33946 fi
33947     fi
33948 else
33949         pkg_failed=untried
33950 fi
33951 if test -n "$PKG_CONFIG"; then
33952     if test -n "$PANGOX_LIBS"; then
33953         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33954     else
33955         if test -n "$PKG_CONFIG" && \
33956     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33957   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33958   ac_status=$?
33959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33960   (exit $ac_status); }; then
33961   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33962 else
33963   pkg_failed=yes
33964 fi
33965     fi
33966 else
33967         pkg_failed=untried
33968 fi
33969
33970
33971
33972 if test $pkg_failed = yes; then
33973
33974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33975         _pkg_short_errors_supported=yes
33976 else
33977         _pkg_short_errors_supported=no
33978 fi
33979         if test $_pkg_short_errors_supported = yes; then
33980                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33981         else
33982                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33983         fi
33984         # Put the nasty error message in config.log where it belongs
33985         echo "$PANGOX_PKG_ERRORS" >&5
33986
33987
33988                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33989 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33990    { (exit 1); exit 1; }; }
33991
33992
33993 elif test $pkg_failed = untried; then
33994
33995                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33996 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33997    { (exit 1); exit 1; }; }
33998
33999
34000 else
34001         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
34002         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
34003         { echo "$as_me:$LINENO: result: yes" >&5
34004 echo "${ECHO_T}yes" >&6; }
34005
34006                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
34007                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
34008                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
34009
34010 fi
34011
34012 pkg_failed=no
34013 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
34014 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
34015
34016 if test -n "$PKG_CONFIG"; then
34017     if test -n "$PANGOFT2_CFLAGS"; then
34018         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
34019     else
34020         if test -n "$PKG_CONFIG" && \
34021     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
34022   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
34023   ac_status=$?
34024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025   (exit $ac_status); }; then
34026   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
34027 else
34028   pkg_failed=yes
34029 fi
34030     fi
34031 else
34032         pkg_failed=untried
34033 fi
34034 if test -n "$PKG_CONFIG"; then
34035     if test -n "$PANGOFT2_LIBS"; then
34036         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
34037     else
34038         if test -n "$PKG_CONFIG" && \
34039     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
34040   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
34041   ac_status=$?
34042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043   (exit $ac_status); }; then
34044   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
34045 else
34046   pkg_failed=yes
34047 fi
34048     fi
34049 else
34050         pkg_failed=untried
34051 fi
34052
34053
34054
34055 if test $pkg_failed = yes; then
34056
34057 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34058         _pkg_short_errors_supported=yes
34059 else
34060         _pkg_short_errors_supported=no
34061 fi
34062         if test $_pkg_short_errors_supported = yes; then
34063                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
34064         else
34065                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
34066         fi
34067         # Put the nasty error message in config.log where it belongs
34068         echo "$PANGOFT2_PKG_ERRORS" >&5
34069
34070
34071                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
34072 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
34073                     wxUSE_PRINTING_ARCHITECTURE="no"
34074
34075
34076 elif test $pkg_failed = untried; then
34077
34078                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
34079 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
34080                     wxUSE_PRINTING_ARCHITECTURE="no"
34081
34082
34083 else
34084         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
34085         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
34086         { echo "$as_me:$LINENO: result: yes" >&5
34087 echo "${ECHO_T}yes" >&6; }
34088
34089                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
34090                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
34091                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
34092
34093 fi
34094
34095 pkg_failed=no
34096 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
34097 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
34098
34099 if test -n "$PKG_CONFIG"; then
34100     if test -n "$PANGOXFT_CFLAGS"; then
34101         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
34102     else
34103         if test -n "$PKG_CONFIG" && \
34104     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34105   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34106   ac_status=$?
34107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108   (exit $ac_status); }; then
34109   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
34110 else
34111   pkg_failed=yes
34112 fi
34113     fi
34114 else
34115         pkg_failed=untried
34116 fi
34117 if test -n "$PKG_CONFIG"; then
34118     if test -n "$PANGOXFT_LIBS"; then
34119         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
34120     else
34121         if test -n "$PKG_CONFIG" && \
34122     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34123   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34124   ac_status=$?
34125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126   (exit $ac_status); }; then
34127   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
34128 else
34129   pkg_failed=yes
34130 fi
34131     fi
34132 else
34133         pkg_failed=untried
34134 fi
34135
34136
34137
34138 if test $pkg_failed = yes; then
34139
34140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34141         _pkg_short_errors_supported=yes
34142 else
34143         _pkg_short_errors_supported=no
34144 fi
34145         if test $_pkg_short_errors_supported = yes; then
34146                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
34147         else
34148                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
34149         fi
34150         # Put the nasty error message in config.log where it belongs
34151         echo "$PANGOXFT_PKG_ERRORS" >&5
34152
34153
34154                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
34155 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34156
34157
34158 elif test $pkg_failed = untried; then
34159
34160                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
34161 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34162
34163
34164 else
34165         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
34166         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
34167         { echo "$as_me:$LINENO: result: yes" >&5
34168 echo "${ECHO_T}yes" >&6; }
34169
34170                     cat >>confdefs.h <<\_ACEOF
34171 #define HAVE_PANGO_XFT 1
34172 _ACEOF
34173
34174                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
34175                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
34176                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
34177
34178 fi
34179             save_LIBS="$LIBS"
34180             LIBS="$LIBS $PANGOX_LIBS"
34181
34182 for ac_func in pango_font_family_is_monospace
34183 do
34184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34188   echo $ECHO_N "(cached) $ECHO_C" >&6
34189 else
34190   cat >conftest.$ac_ext <<_ACEOF
34191 /* confdefs.h.  */
34192 _ACEOF
34193 cat confdefs.h >>conftest.$ac_ext
34194 cat >>conftest.$ac_ext <<_ACEOF
34195 /* end confdefs.h.  */
34196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34198 #define $ac_func innocuous_$ac_func
34199
34200 /* System header to define __stub macros and hopefully few prototypes,
34201     which can conflict with char $ac_func (); below.
34202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34203     <limits.h> exists even on freestanding compilers.  */
34204
34205 #ifdef __STDC__
34206 # include <limits.h>
34207 #else
34208 # include <assert.h>
34209 #endif
34210
34211 #undef $ac_func
34212
34213 /* Override any GCC internal prototype to avoid an error.
34214    Use char because int might match the return type of a GCC
34215    builtin and then its argument prototype would still apply.  */
34216 #ifdef __cplusplus
34217 extern "C"
34218 #endif
34219 char $ac_func ();
34220 /* The GNU C library defines this for functions which it implements
34221     to always fail with ENOSYS.  Some functions are actually named
34222     something starting with __ and the normal name is an alias.  */
34223 #if defined __stub_$ac_func || defined __stub___$ac_func
34224 choke me
34225 #endif
34226
34227 int
34228 main ()
34229 {
34230 return $ac_func ();
34231   ;
34232   return 0;
34233 }
34234 _ACEOF
34235 rm -f conftest.$ac_objext conftest$ac_exeext
34236 if { (ac_try="$ac_link"
34237 case "(($ac_try" in
34238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34239   *) ac_try_echo=$ac_try;;
34240 esac
34241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34242   (eval "$ac_link") 2>conftest.er1
34243   ac_status=$?
34244   grep -v '^ *+' conftest.er1 >conftest.err
34245   rm -f conftest.er1
34246   cat conftest.err >&5
34247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248   (exit $ac_status); } && {
34249          test -z "$ac_c_werror_flag" ||
34250          test ! -s conftest.err
34251        } && test -s conftest$ac_exeext &&
34252        $as_test_x conftest$ac_exeext; then
34253   eval "$as_ac_var=yes"
34254 else
34255   echo "$as_me: failed program was:" >&5
34256 sed 's/^/| /' conftest.$ac_ext >&5
34257
34258         eval "$as_ac_var=no"
34259 fi
34260
34261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34262       conftest$ac_exeext conftest.$ac_ext
34263 fi
34264 ac_res=`eval echo '${'$as_ac_var'}'`
34265                { echo "$as_me:$LINENO: result: $ac_res" >&5
34266 echo "${ECHO_T}$ac_res" >&6; }
34267 if test `eval echo '${'$as_ac_var'}'` = yes; then
34268   cat >>confdefs.h <<_ACEOF
34269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34270 _ACEOF
34271
34272 fi
34273 done
34274
34275             LIBS="$save_LIBS"
34276         fi
34277
34278         wxUSE_UNIVERSAL="yes"
34279
34280         if test "$wxUSE_NANOX" = "yes"; then
34281             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
34282             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"
34283             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
34284         else
34285             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
34286         fi
34287
34288         TOOLKIT=X11
34289         GUIDIST=X11_DIST
34290     fi
34291
34292     if test "$wxUSE_MOTIF" = 1; then
34293         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
34294 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
34295
34296 ac_find_includes=
34297 for ac_dir in $SEARCH_INCLUDE /usr/include;
34298   do
34299     if test -f "$ac_dir/Xm/Xm.h"; then
34300       ac_find_includes=$ac_dir
34301       break
34302     fi
34303   done
34304
34305         if test "$ac_find_includes" != "" ; then
34306             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34307 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34308
34309     if test "x$ac_find_includes" = "x/usr/include"; then
34310     ac_path_to_include=""
34311   else
34312     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
34313     result=$?
34314     if test $result = 0; then
34315       ac_path_to_include=""
34316     else
34317       ac_path_to_include=" -I$ac_find_includes"
34318     fi
34319   fi
34320
34321             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
34322         else
34323             save_CFLAGS=$CFLAGS
34324             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34325
34326             cat >conftest.$ac_ext <<_ACEOF
34327 /* confdefs.h.  */
34328 _ACEOF
34329 cat confdefs.h >>conftest.$ac_ext
34330 cat >>conftest.$ac_ext <<_ACEOF
34331 /* end confdefs.h.  */
34332
34333                     #include <Xm/Xm.h>
34334
34335 int
34336 main ()
34337 {
34338
34339                     int version;
34340                     version = xmUseVersion;
34341
34342   ;
34343   return 0;
34344 }
34345 _ACEOF
34346 rm -f conftest.$ac_objext
34347 if { (ac_try="$ac_compile"
34348 case "(($ac_try" in
34349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34350   *) ac_try_echo=$ac_try;;
34351 esac
34352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34353   (eval "$ac_compile") 2>conftest.er1
34354   ac_status=$?
34355   grep -v '^ *+' conftest.er1 >conftest.err
34356   rm -f conftest.er1
34357   cat conftest.err >&5
34358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359   (exit $ac_status); } && {
34360          test -z "$ac_c_werror_flag" ||
34361          test ! -s conftest.err
34362        } && test -s conftest.$ac_objext; then
34363
34364                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34365 echo "${ECHO_T}found in default search path" >&6; }
34366                     COMPILED_X_PROGRAM=1
34367
34368 else
34369   echo "$as_me: failed program was:" >&5
34370 sed 's/^/| /' conftest.$ac_ext >&5
34371
34372
34373                     { echo "$as_me:$LINENO: result: no" >&5
34374 echo "${ECHO_T}no" >&6; }
34375                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
34376 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
34377    { (exit 1); exit 1; }; }
34378
34379
34380 fi
34381
34382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34383
34384             CFLAGS=$save_CFLAGS
34385         fi
34386
34387
34388         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
34389 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
34390
34391   ac_find_libraries=
34392   for ac_dir in $SEARCH_LIB;
34393   do
34394     for ac_extension in a so sl dylib dll.a; do
34395       if test -f "$ac_dir/libXm.$ac_extension"; then
34396         ac_find_libraries=$ac_dir
34397         break 2
34398       fi
34399     done
34400   done
34401
34402
34403         if test "x$ac_find_libraries" != "x" ; then
34404             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34405 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34406
34407
34408     if test "$ac_find_libraries" = "default location"; then
34409     ac_path_to_link=""
34410   else
34411     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34412     result=$?
34413     if test $result = 0; then
34414       ac_path_to_link=""
34415     else
34416       ac_path_to_link=" -L$ac_find_libraries"
34417     fi
34418   fi
34419
34420             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34421         else
34422                                                 save_CFLAGS=$CFLAGS
34423             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34424             save_LIBS="$LIBS"
34425             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
34426
34427             cat >conftest.$ac_ext <<_ACEOF
34428 /* confdefs.h.  */
34429 _ACEOF
34430 cat confdefs.h >>conftest.$ac_ext
34431 cat >>conftest.$ac_ext <<_ACEOF
34432 /* end confdefs.h.  */
34433
34434                     #include <Xm/Xm.h>
34435
34436 int
34437 main ()
34438 {
34439
34440                     int version;
34441                     version = xmUseVersion;
34442
34443   ;
34444   return 0;
34445 }
34446 _ACEOF
34447 rm -f conftest.$ac_objext conftest$ac_exeext
34448 if { (ac_try="$ac_link"
34449 case "(($ac_try" in
34450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34451   *) ac_try_echo=$ac_try;;
34452 esac
34453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34454   (eval "$ac_link") 2>conftest.er1
34455   ac_status=$?
34456   grep -v '^ *+' conftest.er1 >conftest.err
34457   rm -f conftest.er1
34458   cat conftest.err >&5
34459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460   (exit $ac_status); } && {
34461          test -z "$ac_c_werror_flag" ||
34462          test ! -s conftest.err
34463        } && test -s conftest$ac_exeext &&
34464        $as_test_x conftest$ac_exeext; then
34465
34466                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34467 echo "${ECHO_T}found in default search path" >&6; }
34468                     COMPILED_X_PROGRAM=1
34469
34470 else
34471   echo "$as_me: failed program was:" >&5
34472 sed 's/^/| /' conftest.$ac_ext >&5
34473
34474
34475                     { echo "$as_me:$LINENO: result: no" >&5
34476 echo "${ECHO_T}no" >&6; }
34477                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
34478 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
34479    { (exit 1); exit 1; }; }
34480
34481
34482 fi
34483
34484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34485       conftest$ac_exeext conftest.$ac_ext
34486
34487             CFLAGS=$save_CFLAGS
34488             LIBS="$save_LIBS"
34489         fi
34490
34491         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
34492 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
34493         libp_link=""
34494         libsm_ice_link=""
34495         libs_found=0
34496         for libp in "" " -lXp"; do
34497             if test "$libs_found" = "0"; then
34498                 for libsm_ice in "" " -lSM -lICE"; do
34499                     if test "$libs_found" = "0"; then
34500                         save_LIBS="$LIBS"
34501                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
34502                         save_CFLAGS=$CFLAGS
34503                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34504
34505                         cat >conftest.$ac_ext <<_ACEOF
34506 /* confdefs.h.  */
34507 _ACEOF
34508 cat confdefs.h >>conftest.$ac_ext
34509 cat >>conftest.$ac_ext <<_ACEOF
34510 /* end confdefs.h.  */
34511
34512                                 #include <Xm/Xm.h>
34513                                 #include <Xm/List.h>
34514
34515 int
34516 main ()
34517 {
34518
34519                                 XmString string = NULL;
34520                                 Widget w = NULL;
34521                                 int position = 0;
34522                                 XmListAddItem(w, string, position);
34523
34524   ;
34525   return 0;
34526 }
34527 _ACEOF
34528 rm -f conftest.$ac_objext conftest$ac_exeext
34529 if { (ac_try="$ac_link"
34530 case "(($ac_try" in
34531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34532   *) ac_try_echo=$ac_try;;
34533 esac
34534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34535   (eval "$ac_link") 2>conftest.er1
34536   ac_status=$?
34537   grep -v '^ *+' conftest.er1 >conftest.err
34538   rm -f conftest.er1
34539   cat conftest.err >&5
34540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34541   (exit $ac_status); } && {
34542          test -z "$ac_c_werror_flag" ||
34543          test ! -s conftest.err
34544        } && test -s conftest$ac_exeext &&
34545        $as_test_x conftest$ac_exeext; then
34546
34547                                 libp_link="$libp"
34548                                 libsm_ice_link="$libsm_ice"
34549                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
34550 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
34551                                 libs_found=1
34552
34553 else
34554   echo "$as_me: failed program was:" >&5
34555 sed 's/^/| /' conftest.$ac_ext >&5
34556
34557
34558
34559 fi
34560
34561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34562       conftest$ac_exeext conftest.$ac_ext
34563
34564                         LIBS="$save_LIBS"
34565                         CFLAGS=$save_CFLAGS
34566                     fi
34567                 done
34568             fi
34569         done
34570
34571         if test "$libs_found" = "0"; then
34572             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
34573 echo "${ECHO_T}can't find the right libraries" >&6; }
34574             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
34575 echo "$as_me: error: can't link a simple motif program" >&2;}
34576    { (exit 1); exit 1; }; }
34577         fi
34578
34579                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
34580 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
34581 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
34582   echo $ECHO_N "(cached) $ECHO_C" >&6
34583 else
34584   ac_check_lib_save_LIBS=$LIBS
34585 LIBS="-lSgm  $LIBS"
34586 cat >conftest.$ac_ext <<_ACEOF
34587 /* confdefs.h.  */
34588 _ACEOF
34589 cat confdefs.h >>conftest.$ac_ext
34590 cat >>conftest.$ac_ext <<_ACEOF
34591 /* end confdefs.h.  */
34592
34593 /* Override any GCC internal prototype to avoid an error.
34594    Use char because int might match the return type of a GCC
34595    builtin and then its argument prototype would still apply.  */
34596 #ifdef __cplusplus
34597 extern "C"
34598 #endif
34599 char SgCreateList ();
34600 int
34601 main ()
34602 {
34603 return SgCreateList ();
34604   ;
34605   return 0;
34606 }
34607 _ACEOF
34608 rm -f conftest.$ac_objext conftest$ac_exeext
34609 if { (ac_try="$ac_link"
34610 case "(($ac_try" in
34611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34612   *) ac_try_echo=$ac_try;;
34613 esac
34614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34615   (eval "$ac_link") 2>conftest.er1
34616   ac_status=$?
34617   grep -v '^ *+' conftest.er1 >conftest.err
34618   rm -f conftest.er1
34619   cat conftest.err >&5
34620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621   (exit $ac_status); } && {
34622          test -z "$ac_c_werror_flag" ||
34623          test ! -s conftest.err
34624        } && test -s conftest$ac_exeext &&
34625        $as_test_x conftest$ac_exeext; then
34626   ac_cv_lib_Sgm_SgCreateList=yes
34627 else
34628   echo "$as_me: failed program was:" >&5
34629 sed 's/^/| /' conftest.$ac_ext >&5
34630
34631         ac_cv_lib_Sgm_SgCreateList=no
34632 fi
34633
34634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34635       conftest$ac_exeext conftest.$ac_ext
34636 LIBS=$ac_check_lib_save_LIBS
34637 fi
34638 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
34639 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
34640 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
34641   libsgm_link=" -lSgm"
34642 fi
34643
34644
34645         save_CFLAGS=$CFLAGS
34646         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34647
34648         { echo "$as_me:$LINENO: checking for Motif 2" >&5
34649 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
34650 if test "${wx_cv_lib_motif2+set}" = set; then
34651   echo $ECHO_N "(cached) $ECHO_C" >&6
34652 else
34653   cat >conftest.$ac_ext <<_ACEOF
34654 /* confdefs.h.  */
34655 _ACEOF
34656 cat confdefs.h >>conftest.$ac_ext
34657 cat >>conftest.$ac_ext <<_ACEOF
34658 /* end confdefs.h.  */
34659
34660                             #include <Xm/Xm.h>
34661
34662 int
34663 main ()
34664 {
34665
34666                             #if XmVersion < 2000
34667                             Not Motif 2
34668                             #endif
34669
34670   ;
34671   return 0;
34672 }
34673 _ACEOF
34674 rm -f conftest.$ac_objext
34675 if { (ac_try="$ac_compile"
34676 case "(($ac_try" in
34677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34678   *) ac_try_echo=$ac_try;;
34679 esac
34680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34681   (eval "$ac_compile") 2>conftest.er1
34682   ac_status=$?
34683   grep -v '^ *+' conftest.er1 >conftest.err
34684   rm -f conftest.er1
34685   cat conftest.err >&5
34686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687   (exit $ac_status); } && {
34688          test -z "$ac_c_werror_flag" ||
34689          test ! -s conftest.err
34690        } && test -s conftest.$ac_objext; then
34691   wx_cv_lib_motif2="yes"
34692 else
34693   echo "$as_me: failed program was:" >&5
34694 sed 's/^/| /' conftest.$ac_ext >&5
34695
34696         wx_cv_lib_motif2="no"
34697 fi
34698
34699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34700 fi
34701 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
34702 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
34703         if test "$wx_cv_lib_motif2" = "yes"; then
34704             cat >>confdefs.h <<\_ACEOF
34705 #define __WXMOTIF20__ 1
34706 _ACEOF
34707
34708         else
34709             cat >>confdefs.h <<\_ACEOF
34710 #define __WXMOTIF20__ 0
34711 _ACEOF
34712
34713         fi
34714
34715         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34716 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
34717 if test "${wx_cv_lib_lesstif+set}" = set; then
34718   echo $ECHO_N "(cached) $ECHO_C" >&6
34719 else
34720   cat >conftest.$ac_ext <<_ACEOF
34721 /* confdefs.h.  */
34722 _ACEOF
34723 cat confdefs.h >>conftest.$ac_ext
34724 cat >>conftest.$ac_ext <<_ACEOF
34725 /* end confdefs.h.  */
34726
34727                             #include <Xm/Xm.h>
34728
34729 int
34730 main ()
34731 {
34732
34733                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34734                             Not Lesstif
34735                             #endif
34736
34737   ;
34738   return 0;
34739 }
34740 _ACEOF
34741 rm -f conftest.$ac_objext
34742 if { (ac_try="$ac_compile"
34743 case "(($ac_try" in
34744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34745   *) ac_try_echo=$ac_try;;
34746 esac
34747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34748   (eval "$ac_compile") 2>conftest.er1
34749   ac_status=$?
34750   grep -v '^ *+' conftest.er1 >conftest.err
34751   rm -f conftest.er1
34752   cat conftest.err >&5
34753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34754   (exit $ac_status); } && {
34755          test -z "$ac_c_werror_flag" ||
34756          test ! -s conftest.err
34757        } && test -s conftest.$ac_objext; then
34758   wx_cv_lib_lesstif="yes"
34759 else
34760   echo "$as_me: failed program was:" >&5
34761 sed 's/^/| /' conftest.$ac_ext >&5
34762
34763         wx_cv_lib_lesstif="no"
34764 fi
34765
34766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34767
34768 fi
34769 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34770 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34771         if test "$wx_cv_lib_lesstif" = "yes"; then
34772             cat >>confdefs.h <<\_ACEOF
34773 #define __WXLESSTIF__ 1
34774 _ACEOF
34775
34776         else
34777             cat >>confdefs.h <<\_ACEOF
34778 #define __WXLESSTIF__ 0
34779 _ACEOF
34780
34781         fi
34782
34783         CFLAGS=$save_CFLAGS
34784
34785         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34786         TOOLKIT=MOTIF
34787         GUIDIST=MOTIF_DIST
34788     fi
34789
34790         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34791                 if test "$wxUSE_LIBXPM" = "sys"; then
34792             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34793 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34794
34795   ac_find_libraries=
34796   for ac_dir in $SEARCH_LIB;
34797   do
34798     for ac_extension in a so sl dylib dll.a; do
34799       if test -f "$ac_dir/libXpm.$ac_extension"; then
34800         ac_find_libraries=$ac_dir
34801         break 2
34802       fi
34803     done
34804   done
34805
34806             if test "$ac_find_libraries" != "" ; then
34807
34808     if test "$ac_find_libraries" = "default location"; then
34809     ac_path_to_link=""
34810   else
34811     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34812     result=$?
34813     if test $result = 0; then
34814       ac_path_to_link=""
34815     else
34816       ac_path_to_link=" -L$ac_find_libraries"
34817     fi
34818   fi
34819
34820                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34821                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34822 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34823
34824                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34825 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34826 if test "${wx_cv_x11_xpm_h+set}" = set; then
34827   echo $ECHO_N "(cached) $ECHO_C" >&6
34828 else
34829
34830                         save_CFLAGS=$CFLAGS
34831                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34832
34833                         cat >conftest.$ac_ext <<_ACEOF
34834 /* confdefs.h.  */
34835 _ACEOF
34836 cat confdefs.h >>conftest.$ac_ext
34837 cat >>conftest.$ac_ext <<_ACEOF
34838 /* end confdefs.h.  */
34839
34840                                 #include <X11/xpm.h>
34841
34842 int
34843 main ()
34844 {
34845
34846                                 int version;
34847                                 version = XpmLibraryVersion();
34848
34849   ;
34850   return 0;
34851 }
34852 _ACEOF
34853 rm -f conftest.$ac_objext
34854 if { (ac_try="$ac_compile"
34855 case "(($ac_try" in
34856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34857   *) ac_try_echo=$ac_try;;
34858 esac
34859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34860   (eval "$ac_compile") 2>conftest.er1
34861   ac_status=$?
34862   grep -v '^ *+' conftest.er1 >conftest.err
34863   rm -f conftest.er1
34864   cat conftest.err >&5
34865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34866   (exit $ac_status); } && {
34867          test -z "$ac_c_werror_flag" ||
34868          test ! -s conftest.err
34869        } && test -s conftest.$ac_objext; then
34870   wx_cv_x11_xpm_h=yes
34871 else
34872   echo "$as_me: failed program was:" >&5
34873 sed 's/^/| /' conftest.$ac_ext >&5
34874
34875         wx_cv_x11_xpm_h=no
34876
34877 fi
34878
34879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34880
34881                         CFLAGS=$save_CFLAGS
34882
34883
34884 fi
34885 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34886 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34887
34888                 if test $wx_cv_x11_xpm_h = "yes"; then
34889                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34890                     cat >>confdefs.h <<\_ACEOF
34891 #define wxHAVE_LIB_XPM 1
34892 _ACEOF
34893
34894                 else
34895                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34896 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34897                 fi
34898             fi
34899
34900         fi
34901
34902                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34903 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34904 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34905   echo $ECHO_N "(cached) $ECHO_C" >&6
34906 else
34907   ac_check_lib_save_LIBS=$LIBS
34908 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34909 cat >conftest.$ac_ext <<_ACEOF
34910 /* confdefs.h.  */
34911 _ACEOF
34912 cat confdefs.h >>conftest.$ac_ext
34913 cat >>conftest.$ac_ext <<_ACEOF
34914 /* end confdefs.h.  */
34915
34916 /* Override any GCC internal prototype to avoid an error.
34917    Use char because int might match the return type of a GCC
34918    builtin and then its argument prototype would still apply.  */
34919 #ifdef __cplusplus
34920 extern "C"
34921 #endif
34922 char XShapeQueryExtension ();
34923 int
34924 main ()
34925 {
34926 return XShapeQueryExtension ();
34927   ;
34928   return 0;
34929 }
34930 _ACEOF
34931 rm -f conftest.$ac_objext conftest$ac_exeext
34932 if { (ac_try="$ac_link"
34933 case "(($ac_try" in
34934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34935   *) ac_try_echo=$ac_try;;
34936 esac
34937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34938   (eval "$ac_link") 2>conftest.er1
34939   ac_status=$?
34940   grep -v '^ *+' conftest.er1 >conftest.err
34941   rm -f conftest.er1
34942   cat conftest.err >&5
34943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34944   (exit $ac_status); } && {
34945          test -z "$ac_c_werror_flag" ||
34946          test ! -s conftest.err
34947        } && test -s conftest$ac_exeext &&
34948        $as_test_x conftest$ac_exeext; then
34949   ac_cv_lib_Xext_XShapeQueryExtension=yes
34950 else
34951   echo "$as_me: failed program was:" >&5
34952 sed 's/^/| /' conftest.$ac_ext >&5
34953
34954         ac_cv_lib_Xext_XShapeQueryExtension=no
34955 fi
34956
34957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34958       conftest$ac_exeext conftest.$ac_ext
34959 LIBS=$ac_check_lib_save_LIBS
34960 fi
34961 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34962 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34963 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34964
34965                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34966                       wxHAVE_XEXT_LIB=1
34967
34968 fi
34969
34970
34971         if test "$wxHAVE_XEXT_LIB" = 1; then
34972             save_CFLAGS="$CFLAGS"
34973             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34974
34975             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34976 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34977             cat >conftest.$ac_ext <<_ACEOF
34978 /* confdefs.h.  */
34979 _ACEOF
34980 cat confdefs.h >>conftest.$ac_ext
34981 cat >>conftest.$ac_ext <<_ACEOF
34982 /* end confdefs.h.  */
34983
34984                             #include <X11/Xlib.h>
34985                             #include <X11/extensions/shape.h>
34986
34987 int
34988 main ()
34989 {
34990
34991                             int dummy1, dummy2;
34992                             XShapeQueryExtension((Display*)NULL,
34993                                                  (int*)NULL, (int*)NULL);
34994
34995   ;
34996   return 0;
34997 }
34998 _ACEOF
34999 rm -f conftest.$ac_objext
35000 if { (ac_try="$ac_compile"
35001 case "(($ac_try" in
35002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35003   *) ac_try_echo=$ac_try;;
35004 esac
35005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35006   (eval "$ac_compile") 2>conftest.er1
35007   ac_status=$?
35008   grep -v '^ *+' conftest.er1 >conftest.err
35009   rm -f conftest.er1
35010   cat conftest.err >&5
35011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35012   (exit $ac_status); } && {
35013          test -z "$ac_c_werror_flag" ||
35014          test ! -s conftest.err
35015        } && test -s conftest.$ac_objext; then
35016
35017                             cat >>confdefs.h <<\_ACEOF
35018 #define HAVE_XSHAPE 1
35019 _ACEOF
35020
35021                             { echo "$as_me:$LINENO: result: found" >&5
35022 echo "${ECHO_T}found" >&6; }
35023
35024 else
35025   echo "$as_me: failed program was:" >&5
35026 sed 's/^/| /' conftest.$ac_ext >&5
35027
35028
35029                             { echo "$as_me:$LINENO: result: not found" >&5
35030 echo "${ECHO_T}not found" >&6; }
35031
35032 fi
35033
35034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35035             CFLAGS="$save_CFLAGS"
35036
35037         fi
35038     fi
35039
35040     if test "$wxUSE_MAC" = 1; then
35041         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
35042 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
35043         if test "$GCC" = yes; then
35044             { echo "$as_me:$LINENO: result: gcc" >&5
35045 echo "${ECHO_T}gcc" >&6; }
35046             CPPFLAGS_PASCAL="-fpascal-strings"
35047         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
35048             { echo "$as_me:$LINENO: result: xlc" >&5
35049 echo "${ECHO_T}xlc" >&6; }
35050             CPPFLAGS_PASCAL="-qmacpstr"
35051         else
35052             { echo "$as_me:$LINENO: result: none" >&5
35053 echo "${ECHO_T}none" >&6; }
35054         fi
35055
35056         if test "x$wxUSE_UNIX" = "xyes"; then
35057             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
35058         else
35059                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
35060         fi
35061
35062         TOOLKIT=MAC
35063                 GUIDIST=MACX_DIST
35064                         WXBASEPORT="_carbon"
35065     fi
35066
35067     if test "$wxUSE_COCOA" = 1; then
35068         TOOLKIT=COCOA
35069         GUIDIST=COCOA_DIST
35070     fi
35071
35072     if test "$wxUSE_PM" = 1; then
35073         TOOLKIT=PM
35074         GUIDIST=PM_DIST
35075         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
35076 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
35077 if test "${wx_cv_spbcdata+set}" = set; then
35078   echo $ECHO_N "(cached) $ECHO_C" >&6
35079 else
35080
35081                 cat >conftest.$ac_ext <<_ACEOF
35082 /* confdefs.h.  */
35083 _ACEOF
35084 cat confdefs.h >>conftest.$ac_ext
35085 cat >>conftest.$ac_ext <<_ACEOF
35086 /* end confdefs.h.  */
35087
35088                         #define INCL_PM
35089                         #include <os2.h>
35090
35091 int
35092 main ()
35093 {
35094
35095                         SPBCDATA test;
35096
35097   ;
35098   return 0;
35099 }
35100 _ACEOF
35101 rm -f conftest.$ac_objext
35102 if { (ac_try="$ac_compile"
35103 case "(($ac_try" in
35104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35105   *) ac_try_echo=$ac_try;;
35106 esac
35107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35108   (eval "$ac_compile") 2>conftest.er1
35109   ac_status=$?
35110   grep -v '^ *+' conftest.er1 >conftest.err
35111   rm -f conftest.er1
35112   cat conftest.err >&5
35113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114   (exit $ac_status); } && {
35115          test -z "$ac_c_werror_flag" ||
35116          test ! -s conftest.err
35117        } && test -s conftest.$ac_objext; then
35118   wx_cv_spbcdata=yes
35119 else
35120   echo "$as_me: failed program was:" >&5
35121 sed 's/^/| /' conftest.$ac_ext >&5
35122
35123         wx_cv_spbcdata=no
35124
35125 fi
35126
35127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35128
35129
35130 fi
35131 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
35132 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
35133
35134         if test $wx_cv_spbcdata = "yes"; then
35135             cat >>confdefs.h <<\_ACEOF
35136 #define HAVE_SPBCDATA 1
35137 _ACEOF
35138
35139         fi
35140     fi
35141
35142         if test "$TOOLKIT" = "PM" ; then
35143         TOOLKIT_DIR="os2"
35144     else
35145         TOOLKIT_DIR=`echo ${TOOLKIT} | tr A-Z a-z`
35146     fi
35147
35148     if test "$wxUSE_UNIVERSAL" = "yes"; then
35149         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
35150         WIDGET_SET=univ
35151     fi
35152
35153         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
35154     DISTDIR="wx\$(TOOLKIT)"
35155 else
35156     USE_GUI=0
35157
35158             TOOLKIT_DIR="base"
35159
35160         if test "$USE_WIN32" = 1 ; then
35161                         TOOLKIT="MSW"
35162     fi
35163
35164         GUIDIST="BASE_DIST"
35165     DISTDIR="wxBase"
35166 fi
35167
35168
35169
35170 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
35171     if test "$USE_UNIX" = "1" -a "$wxUSE_DARWIN" != "1" ; then
35172         wxUSE_UNICODE_UTF8=yes
35173     elif test "$USE_OS2" = "1" ; then
35174                                 wxUSE_UNICODE_UTF8=yes
35175     else
35176         wxUSE_UNICODE_UTF8=no
35177     fi
35178 fi
35179
35180
35181 if test "$wxUSE_GUI" = "yes"; then
35182     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
35183
35184 for ac_header in X11/Xlib.h
35185 do
35186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35190   echo $ECHO_N "(cached) $ECHO_C" >&6
35191 else
35192   cat >conftest.$ac_ext <<_ACEOF
35193 /* confdefs.h.  */
35194 _ACEOF
35195 cat confdefs.h >>conftest.$ac_ext
35196 cat >>conftest.$ac_ext <<_ACEOF
35197 /* end confdefs.h.  */
35198
35199
35200 #include <$ac_header>
35201 _ACEOF
35202 rm -f conftest.$ac_objext
35203 if { (ac_try="$ac_compile"
35204 case "(($ac_try" in
35205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35206   *) ac_try_echo=$ac_try;;
35207 esac
35208 eval "echo \"\$as_me:$LINENO: $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   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35215   (exit $ac_status); } && {
35216          test -z "$ac_c_werror_flag" ||
35217          test ! -s conftest.err
35218        } && test -s conftest.$ac_objext; then
35219   eval "$as_ac_Header=yes"
35220 else
35221   echo "$as_me: failed program was:" >&5
35222 sed 's/^/| /' conftest.$ac_ext >&5
35223
35224         eval "$as_ac_Header=no"
35225 fi
35226
35227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35228 fi
35229 ac_res=`eval echo '${'$as_ac_Header'}'`
35230                { echo "$as_me:$LINENO: result: $ac_res" >&5
35231 echo "${ECHO_T}$ac_res" >&6; }
35232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35233   cat >>confdefs.h <<_ACEOF
35234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35235 _ACEOF
35236
35237 fi
35238
35239 done
35240
35241
35242 for ac_header in X11/XKBlib.h
35243 do
35244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35248   echo $ECHO_N "(cached) $ECHO_C" >&6
35249 else
35250   cat >conftest.$ac_ext <<_ACEOF
35251 /* confdefs.h.  */
35252 _ACEOF
35253 cat confdefs.h >>conftest.$ac_ext
35254 cat >>conftest.$ac_ext <<_ACEOF
35255 /* end confdefs.h.  */
35256
35257                           #if HAVE_X11_XLIB_H
35258                             #include <X11/Xlib.h>
35259                           #endif
35260
35261
35262 #include <$ac_header>
35263 _ACEOF
35264 rm -f conftest.$ac_objext
35265 if { (ac_try="$ac_compile"
35266 case "(($ac_try" in
35267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35268   *) ac_try_echo=$ac_try;;
35269 esac
35270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35271   (eval "$ac_compile") 2>conftest.er1
35272   ac_status=$?
35273   grep -v '^ *+' conftest.er1 >conftest.err
35274   rm -f conftest.er1
35275   cat conftest.err >&5
35276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277   (exit $ac_status); } && {
35278          test -z "$ac_c_werror_flag" ||
35279          test ! -s conftest.err
35280        } && test -s conftest.$ac_objext; then
35281   eval "$as_ac_Header=yes"
35282 else
35283   echo "$as_me: failed program was:" >&5
35284 sed 's/^/| /' conftest.$ac_ext >&5
35285
35286         eval "$as_ac_Header=no"
35287 fi
35288
35289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35290 fi
35291 ac_res=`eval echo '${'$as_ac_Header'}'`
35292                { echo "$as_me:$LINENO: result: $ac_res" >&5
35293 echo "${ECHO_T}$ac_res" >&6; }
35294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35295   cat >>confdefs.h <<_ACEOF
35296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35297 _ACEOF
35298
35299 fi
35300
35301 done
35302
35303     fi
35304 fi
35305
35306
35307
35308 if test "$wxUSE_DISPLAY" = "yes"; then
35309     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35310         { echo "$as_me:$LINENO: checking for Xinerama" >&5
35311 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
35312
35313   ac_find_libraries=
35314   for ac_dir in $SEARCH_LIB;
35315   do
35316     for ac_extension in a so sl dylib dll.a; do
35317       if test -f "$ac_dir/libXinerama.$ac_extension"; then
35318         ac_find_libraries=$ac_dir
35319         break 2
35320       fi
35321     done
35322   done
35323
35324         if test "$ac_find_libraries" != "" ; then
35325
35326     if test "$ac_find_libraries" = "default location"; then
35327     ac_path_to_link=""
35328   else
35329     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35330     result=$?
35331     if test $result = 0; then
35332       ac_path_to_link=""
35333     else
35334       ac_path_to_link=" -L$ac_find_libraries"
35335     fi
35336   fi
35337
35338             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35339                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35340             fi
35341             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
35342             { echo "$as_me:$LINENO: result: yes" >&5
35343 echo "${ECHO_T}yes" >&6; }
35344
35345             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
35346 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
35347
35348   ac_find_libraries=
35349   for ac_dir in $SEARCH_LIB;
35350   do
35351     for ac_extension in a so sl dylib dll.a; do
35352       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35353         ac_find_libraries=$ac_dir
35354         break 2
35355       fi
35356     done
35357   done
35358
35359             if test "$ac_find_libraries" != "" ; then
35360                 { echo "$as_me:$LINENO: result: yes" >&5
35361 echo "${ECHO_T}yes" >&6; }
35362
35363 for ac_header in X11/extensions/xf86vmode.h
35364 do
35365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35369   echo $ECHO_N "(cached) $ECHO_C" >&6
35370 else
35371   cat >conftest.$ac_ext <<_ACEOF
35372 /* confdefs.h.  */
35373 _ACEOF
35374 cat confdefs.h >>conftest.$ac_ext
35375 cat >>conftest.$ac_ext <<_ACEOF
35376 /* end confdefs.h.  */
35377
35378                                       #if HAVE_X11_XLIB_H
35379                                         #include <X11/Xlib.h>
35380                                       #endif
35381
35382
35383 #include <$ac_header>
35384 _ACEOF
35385 rm -f conftest.$ac_objext
35386 if { (ac_try="$ac_compile"
35387 case "(($ac_try" in
35388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35389   *) ac_try_echo=$ac_try;;
35390 esac
35391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35392   (eval "$ac_compile") 2>conftest.er1
35393   ac_status=$?
35394   grep -v '^ *+' conftest.er1 >conftest.err
35395   rm -f conftest.er1
35396   cat conftest.err >&5
35397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398   (exit $ac_status); } && {
35399          test -z "$ac_c_werror_flag" ||
35400          test ! -s conftest.err
35401        } && test -s conftest.$ac_objext; then
35402   eval "$as_ac_Header=yes"
35403 else
35404   echo "$as_me: failed program was:" >&5
35405 sed 's/^/| /' conftest.$ac_ext >&5
35406
35407         eval "$as_ac_Header=no"
35408 fi
35409
35410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35411 fi
35412 ac_res=`eval echo '${'$as_ac_Header'}'`
35413                { echo "$as_me:$LINENO: result: $ac_res" >&5
35414 echo "${ECHO_T}$ac_res" >&6; }
35415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35416   cat >>confdefs.h <<_ACEOF
35417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35418 _ACEOF
35419
35420                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35421
35422 fi
35423
35424 done
35425
35426             else
35427                 { echo "$as_me:$LINENO: result: no" >&5
35428 echo "${ECHO_T}no" >&6; }
35429             fi
35430
35431         else
35432             { echo "$as_me:$LINENO: result: no" >&5
35433 echo "${ECHO_T}no" >&6; }
35434             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
35435 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
35436             wxUSE_DISPLAY="no"
35437         fi
35438     elif test "$wxUSE_MSW" = 1; then
35439         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
35440 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
35441 if test "${ac_cv_header_ddraw_h+set}" = set; then
35442   echo $ECHO_N "(cached) $ECHO_C" >&6
35443 else
35444   cat >conftest.$ac_ext <<_ACEOF
35445 /* confdefs.h.  */
35446 _ACEOF
35447 cat confdefs.h >>conftest.$ac_ext
35448 cat >>conftest.$ac_ext <<_ACEOF
35449 /* end confdefs.h.  */
35450 #include <windows.h>
35451
35452 #include <ddraw.h>
35453 _ACEOF
35454 rm -f conftest.$ac_objext
35455 if { (ac_try="$ac_compile"
35456 case "(($ac_try" in
35457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35458   *) ac_try_echo=$ac_try;;
35459 esac
35460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35461   (eval "$ac_compile") 2>conftest.er1
35462   ac_status=$?
35463   grep -v '^ *+' conftest.er1 >conftest.err
35464   rm -f conftest.er1
35465   cat conftest.err >&5
35466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35467   (exit $ac_status); } && {
35468          test -z "$ac_c_werror_flag" ||
35469          test ! -s conftest.err
35470        } && test -s conftest.$ac_objext; then
35471   ac_cv_header_ddraw_h=yes
35472 else
35473   echo "$as_me: failed program was:" >&5
35474 sed 's/^/| /' conftest.$ac_ext >&5
35475
35476         ac_cv_header_ddraw_h=no
35477 fi
35478
35479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35480 fi
35481 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
35482 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
35483
35484
35485     fi
35486 fi
35487
35488 if test "$wxUSE_DETECT_SM" = "yes"; then
35489     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35490         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
35491 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
35492
35493   ac_find_libraries=
35494   for ac_dir in $SEARCH_LIB;
35495   do
35496     for ac_extension in a so sl dylib dll.a; do
35497       if test -f "$ac_dir/libSM.$ac_extension"; then
35498         ac_find_libraries=$ac_dir
35499         break 2
35500       fi
35501     done
35502   done
35503
35504         if test "$ac_find_libraries" != "" ; then
35505
35506     if test "$ac_find_libraries" = "default location"; then
35507     ac_path_to_link=""
35508   else
35509     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35510     result=$?
35511     if test $result = 0; then
35512       ac_path_to_link=""
35513     else
35514       ac_path_to_link=" -L$ac_find_libraries"
35515     fi
35516   fi
35517
35518             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35519                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35520             fi
35521             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
35522             { echo "$as_me:$LINENO: result: yes" >&5
35523 echo "${ECHO_T}yes" >&6; }
35524         else
35525             { echo "$as_me:$LINENO: result: no" >&5
35526 echo "${ECHO_T}no" >&6; }
35527             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
35528 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
35529             wxUSE_DETECT_SM="no"
35530         fi
35531     else
35532         wxUSE_DETECT_SM="no"
35533     fi
35534 fi
35535
35536
35537
35538 USE_OPENGL=0
35539 if test "$wxUSE_OPENGL" = "yes"; then
35540     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
35541         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35542 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35543         wxUSE_OPENGL="no"
35544     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
35545         OPENGL_LIBS="-framework OpenGL -framework AGL"
35546     elif test "$wxUSE_MSW" = 1; then
35547         OPENGL_LIBS="-lopengl32 -lglu32"
35548     else
35549                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
35550 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
35551
35552 ac_find_includes=
35553 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
35554   do
35555     if test -f "$ac_dir/GL/gl.h"; then
35556       ac_find_includes=$ac_dir
35557       break
35558     fi
35559   done
35560
35561         if test "$ac_find_includes" != "" ; then
35562             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35563 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35564
35565     if test "x$ac_find_includes" = "x/usr/include"; then
35566     ac_path_to_include=""
35567   else
35568     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
35569     result=$?
35570     if test $result = 0; then
35571       ac_path_to_include=""
35572     else
35573       ac_path_to_include=" -I$ac_find_includes"
35574     fi
35575   fi
35576
35577             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
35578         else
35579             { echo "$as_me:$LINENO: result: not found" >&5
35580 echo "${ECHO_T}not found" >&6; }
35581         fi
35582
35583         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
35584 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
35585 if test "${ac_cv_header_GL_gl_h+set}" = set; then
35586   echo $ECHO_N "(cached) $ECHO_C" >&6
35587 else
35588   cat >conftest.$ac_ext <<_ACEOF
35589 /* confdefs.h.  */
35590 _ACEOF
35591 cat confdefs.h >>conftest.$ac_ext
35592 cat >>conftest.$ac_ext <<_ACEOF
35593 /* end confdefs.h.  */
35594
35595
35596 #include <GL/gl.h>
35597 _ACEOF
35598 rm -f conftest.$ac_objext
35599 if { (ac_try="$ac_compile"
35600 case "(($ac_try" in
35601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35602   *) ac_try_echo=$ac_try;;
35603 esac
35604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35605   (eval "$ac_compile") 2>conftest.er1
35606   ac_status=$?
35607   grep -v '^ *+' conftest.er1 >conftest.err
35608   rm -f conftest.er1
35609   cat conftest.err >&5
35610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611   (exit $ac_status); } && {
35612          test -z "$ac_c_werror_flag" ||
35613          test ! -s conftest.err
35614        } && test -s conftest.$ac_objext; then
35615   ac_cv_header_GL_gl_h=yes
35616 else
35617   echo "$as_me: failed program was:" >&5
35618 sed 's/^/| /' conftest.$ac_ext >&5
35619
35620         ac_cv_header_GL_gl_h=no
35621 fi
35622
35623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35624 fi
35625 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
35626 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
35627 if test $ac_cv_header_GL_gl_h = yes; then
35628
35629             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
35630 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
35631 if test "${ac_cv_header_GL_glu_h+set}" = set; then
35632   echo $ECHO_N "(cached) $ECHO_C" >&6
35633 else
35634   cat >conftest.$ac_ext <<_ACEOF
35635 /* confdefs.h.  */
35636 _ACEOF
35637 cat confdefs.h >>conftest.$ac_ext
35638 cat >>conftest.$ac_ext <<_ACEOF
35639 /* end confdefs.h.  */
35640
35641
35642 #include <GL/glu.h>
35643 _ACEOF
35644 rm -f conftest.$ac_objext
35645 if { (ac_try="$ac_compile"
35646 case "(($ac_try" in
35647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35648   *) ac_try_echo=$ac_try;;
35649 esac
35650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35651   (eval "$ac_compile") 2>conftest.er1
35652   ac_status=$?
35653   grep -v '^ *+' conftest.er1 >conftest.err
35654   rm -f conftest.er1
35655   cat conftest.err >&5
35656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657   (exit $ac_status); } && {
35658          test -z "$ac_c_werror_flag" ||
35659          test ! -s conftest.err
35660        } && test -s conftest.$ac_objext; then
35661   ac_cv_header_GL_glu_h=yes
35662 else
35663   echo "$as_me: failed program was:" >&5
35664 sed 's/^/| /' conftest.$ac_ext >&5
35665
35666         ac_cv_header_GL_glu_h=no
35667 fi
35668
35669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35670 fi
35671 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
35672 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
35673 if test $ac_cv_header_GL_glu_h = yes; then
35674
35675                 found_gl=0
35676
35677                 { echo "$as_me:$LINENO: checking for -lGL" >&5
35678 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
35679
35680   ac_find_libraries=
35681   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
35682   do
35683     for ac_extension in a so sl dylib dll.a; do
35684       if test -f "$ac_dir/libGL.$ac_extension"; then
35685         ac_find_libraries=$ac_dir
35686         break 2
35687       fi
35688     done
35689   done
35690
35691                 if test "$ac_find_libraries" != "" ; then
35692                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
35693 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
35694
35695
35696     if test "$ac_find_libraries" = "default location"; then
35697     ac_path_to_link=""
35698   else
35699     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35700     result=$?
35701     if test $result = 0; then
35702       ac_path_to_link=""
35703     else
35704       ac_path_to_link=" -L$ac_find_libraries"
35705     fi
35706   fi
35707
35708                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
35709                         LDFLAGS_GL="$ac_path_to_link"
35710                     fi
35711
35712                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
35713 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
35714
35715   ac_find_libraries=
35716   for ac_dir in $SEARCH_LIB;
35717   do
35718     for ac_extension in a so sl dylib dll.a; do
35719       if test -f "$ac_dir/libGLU.$ac_extension"; then
35720         ac_find_libraries=$ac_dir
35721         break 2
35722       fi
35723     done
35724   done
35725
35726                     if test "$ac_find_libraries" != "" ; then
35727
35728     if test "$ac_find_libraries" = "default location"; then
35729     ac_path_to_link=""
35730   else
35731     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35732     result=$?
35733     if test $result = 0; then
35734       ac_path_to_link=""
35735     else
35736       ac_path_to_link=" -L$ac_find_libraries"
35737     fi
35738   fi
35739
35740                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
35741                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
35742                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
35743                         fi
35744
35745                         found_gl=1
35746                         OPENGL_LIBS="-lGL -lGLU"
35747                         { echo "$as_me:$LINENO: result: yes" >&5
35748 echo "${ECHO_T}yes" >&6; }
35749                     else
35750                         { echo "$as_me:$LINENO: result: no" >&5
35751 echo "${ECHO_T}no" >&6; }
35752                     fi
35753                 else
35754                     { echo "$as_me:$LINENO: result: no" >&5
35755 echo "${ECHO_T}no" >&6; }
35756                 fi
35757
35758                 if test "$found_gl" != 1; then
35759                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
35760 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
35761
35762   ac_find_libraries=
35763   for ac_dir in $SEARCH_LIB;
35764   do
35765     for ac_extension in a so sl dylib dll.a; do
35766       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
35767         ac_find_libraries=$ac_dir
35768         break 2
35769       fi
35770     done
35771   done
35772
35773                     if test "$ac_find_libraries" != "" ; then
35774
35775     if test "$ac_find_libraries" = "default location"; then
35776     ac_path_to_link=""
35777   else
35778     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35779     result=$?
35780     if test $result = 0; then
35781       ac_path_to_link=""
35782     else
35783       ac_path_to_link=" -L$ac_find_libraries"
35784     fi
35785   fi
35786
35787                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
35788                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
35789                         { echo "$as_me:$LINENO: result: yes" >&5
35790 echo "${ECHO_T}yes" >&6; }
35791                     else
35792                         { echo "$as_me:$LINENO: result: no" >&5
35793 echo "${ECHO_T}no" >&6; }
35794                     fi
35795                 fi
35796
35797 fi
35798
35799
35800
35801 fi
35802
35803
35804
35805         if test "x$OPENGL_LIBS" = "x"; then
35806                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
35807 echo "$as_me: error: OpenGL libraries not available" >&2;}
35808    { (exit 1); exit 1; }; }
35809         fi
35810     fi
35811
35812     if test "$wxUSE_OPENGL" = "yes"; then
35813         USE_OPENGL=1
35814         cat >>confdefs.h <<\_ACEOF
35815 #define wxUSE_OPENGL 1
35816 _ACEOF
35817
35818         cat >>confdefs.h <<\_ACEOF
35819 #define wxUSE_GLCANVAS 1
35820 _ACEOF
35821
35822         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
35823     fi
35824 fi
35825
35826
35827 if test -n "$TOOLKIT" ; then
35828     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
35829 fi
35830
35831
35832
35833 if test "$wxUSE_SHARED" = "yes"; then
35834     case "${host}" in
35835       *-pc-msdosdjgpp )
35836                 wxUSE_SHARED=no
35837         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
35838 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
35839       ;;
35840     esac
35841 fi
35842
35843 if test "$wxUSE_SHARED" = "yes"; then
35844
35845
35846     case "${host}" in
35847         *-*-cygwin* | *-*-mingw* )
35848                                                                                                 wx_cv_version_script=no
35849             ;;
35850
35851         *)
35852             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
35853 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
35854 if test "${wx_cv_version_script+set}" = set; then
35855   echo $ECHO_N "(cached) $ECHO_C" >&6
35856 else
35857
35858                 echo "VER_1 { *; };" >conftest.sym
35859                 echo "int main() { return 0; }" >conftest.cpp
35860
35861                 if { ac_try='
35862                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35863                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
35864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35865   (eval $ac_try) 2>&5
35866   ac_status=$?
35867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35868   (exit $ac_status); }; } ; then
35869                   if test -s conftest.stderr ; then
35870                       wx_cv_version_script=no
35871                   else
35872                       wx_cv_version_script=yes
35873                   fi
35874                 else
35875                   wx_cv_version_script=no
35876                 fi
35877
35878                                                                                                                                                                                                 if test $wx_cv_version_script = yes
35879                 then
35880                   echo "struct B { virtual ~B() { } }; \
35881                         struct D : public B { }; \
35882                         void F() { D d; }" > conftest.cpp
35883
35884                   if { ac_try='
35885                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35886                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
35887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35888   (eval $ac_try) 2>&5
35889   ac_status=$?
35890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891   (exit $ac_status); }; } &&
35892                      { ac_try='
35893                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35894                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
35895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35896   (eval $ac_try) 2>&5
35897   ac_status=$?
35898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35899   (exit $ac_status); }; }
35900                   then
35901                     if { ac_try='
35902                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35903                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
35904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35905   (eval $ac_try) 2>&5
35906   ac_status=$?
35907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908   (exit $ac_status); }; }
35909                     then
35910                       wx_cv_version_script=yes
35911                     else
35912                       wx_cv_version_script=no
35913                     fi
35914                   fi
35915                 fi
35916
35917                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
35918                 rm -f conftest1.output conftest2.output conftest3.output
35919
35920 fi
35921 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
35922 echo "${ECHO_T}$wx_cv_version_script" >&6; }
35923
35924             if test $wx_cv_version_script = yes ; then
35925                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
35926             fi
35927             ;;
35928     esac
35929
35930
35931             if test "$wxUSE_VISIBILITY" != "no"; then
35932
35933
35934   if test -n "$GCC"; then
35935     CFLAGS_VISIBILITY="-fvisibility=hidden"
35936     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
35937     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
35938 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
35939     if test "${wx_cv_cc_visibility+set}" = set; then
35940   echo $ECHO_N "(cached) $ECHO_C" >&6
35941 else
35942
35943       wx_save_CXXFLAGS="$CXXFLAGS"
35944       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35945       ac_ext=cpp
35946 ac_cpp='$CXXCPP $CPPFLAGS'
35947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35950
35951       cat >conftest.$ac_ext <<_ACEOF
35952 /* confdefs.h.  */
35953 _ACEOF
35954 cat confdefs.h >>conftest.$ac_ext
35955 cat >>conftest.$ac_ext <<_ACEOF
35956 /* end confdefs.h.  */
35957
35958          /* we need gcc >= 4.0, older versions with visibility support
35959             didn't have class visibility: */
35960          #if defined(__GNUC__) && __GNUC__ < 4
35961          error this gcc is too old;
35962          #endif
35963
35964          /* visibility only makes sense for ELF shared libs: */
35965          #if !defined(__ELF__) && !defined(__APPLE__)
35966          error this platform has no visibility;
35967          #endif
35968
35969          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
35970          extern __attribute__((__visibility__("default"))) int exportedvar;
35971          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
35972          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
35973          class __attribute__((__visibility__("default"))) Foo {
35974            Foo() {}
35975          };
35976
35977 int
35978 main ()
35979 {
35980
35981   ;
35982   return 0;
35983 }
35984 _ACEOF
35985 rm -f conftest.$ac_objext
35986 if { (ac_try="$ac_compile"
35987 case "(($ac_try" in
35988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35989   *) ac_try_echo=$ac_try;;
35990 esac
35991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35992   (eval "$ac_compile") 2>conftest.er1
35993   ac_status=$?
35994   grep -v '^ *+' conftest.er1 >conftest.err
35995   rm -f conftest.er1
35996   cat conftest.err >&5
35997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35998   (exit $ac_status); } && {
35999          test -z "$ac_cxx_werror_flag" ||
36000          test ! -s conftest.err
36001        } && test -s conftest.$ac_objext; then
36002   wx_cv_cc_visibility=yes
36003 else
36004   echo "$as_me: failed program was:" >&5
36005 sed 's/^/| /' conftest.$ac_ext >&5
36006
36007         wx_cv_cc_visibility=no
36008 fi
36009
36010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36011       ac_ext=c
36012 ac_cpp='$CPP $CPPFLAGS'
36013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36016
36017       CXXFLAGS="$wx_save_CXXFLAGS"
36018 fi
36019
36020     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
36021 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
36022     if test $wx_cv_cc_visibility = yes; then
36023                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
36024 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
36025       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
36026   echo $ECHO_N "(cached) $ECHO_C" >&6
36027 else
36028
36029         wx_save_CXXFLAGS="$CXXFLAGS"
36030         wx_save_LDFLAGS="$LDFLAGS"
36031         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
36032         LDFLAGS="$LDFLAGS -shared -fPIC"
36033         ac_ext=cpp
36034 ac_cpp='$CXXCPP $CPPFLAGS'
36035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36038
36039         cat >conftest.$ac_ext <<_ACEOF
36040 /* confdefs.h.  */
36041 _ACEOF
36042 cat confdefs.h >>conftest.$ac_ext
36043 cat >>conftest.$ac_ext <<_ACEOF
36044 /* end confdefs.h.  */
36045
36046             #include <string>
36047
36048 int
36049 main ()
36050 {
36051
36052             std::string s("hello");
36053             return s.length();
36054
36055   ;
36056   return 0;
36057 }
36058 _ACEOF
36059 rm -f conftest.$ac_objext conftest$ac_exeext
36060 if { (ac_try="$ac_link"
36061 case "(($ac_try" in
36062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36063   *) ac_try_echo=$ac_try;;
36064 esac
36065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36066   (eval "$ac_link") 2>conftest.er1
36067   ac_status=$?
36068   grep -v '^ *+' conftest.er1 >conftest.err
36069   rm -f conftest.er1
36070   cat conftest.err >&5
36071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072   (exit $ac_status); } && {
36073          test -z "$ac_cxx_werror_flag" ||
36074          test ! -s conftest.err
36075        } && test -s conftest$ac_exeext &&
36076        $as_test_x conftest$ac_exeext; then
36077   wx_cv_cc_broken_libstdcxx_visibility=no
36078 else
36079   echo "$as_me: failed program was:" >&5
36080 sed 's/^/| /' conftest.$ac_ext >&5
36081
36082         wx_cv_cc_broken_libstdcxx_visibility=yes
36083 fi
36084
36085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36086       conftest$ac_exeext conftest.$ac_ext
36087         ac_ext=c
36088 ac_cpp='$CPP $CPPFLAGS'
36089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36092
36093         CXXFLAGS="$wx_save_CXXFLAGS"
36094         LDFLAGS="$wx_save_LDFLAGS"
36095 fi
36096
36097       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
36098 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
36099
36100       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
36101         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
36102 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
36103         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
36104   echo $ECHO_N "(cached) $ECHO_C" >&6
36105 else
36106
36107           ac_ext=cpp
36108 ac_cpp='$CXXCPP $CPPFLAGS'
36109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36112
36113           cat >conftest.$ac_ext <<_ACEOF
36114 /* confdefs.h.  */
36115 _ACEOF
36116 cat confdefs.h >>conftest.$ac_ext
36117 cat >>conftest.$ac_ext <<_ACEOF
36118 /* end confdefs.h.  */
36119
36120               #pragma GCC visibility push(default)
36121               #include <string>
36122               #pragma GCC visibility pop
36123
36124 int
36125 main ()
36126 {
36127
36128               std::string s("hello");
36129               return s.length();
36130
36131   ;
36132   return 0;
36133 }
36134 _ACEOF
36135 rm -f conftest.$ac_objext conftest$ac_exeext
36136 if { (ac_try="$ac_link"
36137 case "(($ac_try" in
36138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36139   *) ac_try_echo=$ac_try;;
36140 esac
36141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36142   (eval "$ac_link") 2>conftest.er1
36143   ac_status=$?
36144   grep -v '^ *+' conftest.er1 >conftest.err
36145   rm -f conftest.er1
36146   cat conftest.err >&5
36147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36148   (exit $ac_status); } && {
36149          test -z "$ac_cxx_werror_flag" ||
36150          test ! -s conftest.err
36151        } && test -s conftest$ac_exeext &&
36152        $as_test_x conftest$ac_exeext; then
36153   wx_cv_cc_visibility_workaround=no
36154 else
36155   echo "$as_me: failed program was:" >&5
36156 sed 's/^/| /' conftest.$ac_ext >&5
36157
36158         wx_cv_cc_visibility_workaround=yes
36159 fi
36160
36161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36162       conftest$ac_exeext conftest.$ac_ext
36163           ac_ext=c
36164 ac_cpp='$CPP $CPPFLAGS'
36165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36168
36169
36170 fi
36171
36172         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
36173 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
36174
36175         if test $wx_cv_cc_visibility_workaround = no; then
36176                     wx_cv_cc_visibility=no
36177         fi
36178       fi
36179     fi
36180
36181     if test $wx_cv_cc_visibility = yes; then
36182       cat >>confdefs.h <<\_ACEOF
36183 #define HAVE_VISIBILITY 1
36184 _ACEOF
36185
36186       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
36187         cat >>confdefs.h <<\_ACEOF
36188 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
36189 _ACEOF
36190
36191       fi
36192     else
36193       CFLAGS_VISIBILITY=""
36194       CXXFLAGS_VISIBILITY=""
36195     fi
36196
36197
36198   fi
36199
36200     fi
36201
36202         if test "x$SUNCXX" = xyes; then
36203         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
36204         WXCONFIG_RPATH="-R\$libdir"
36205     else
36206     case "${host}" in
36207       *-*-linux* | *-*-gnu* )
36208         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36209         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36210         ;;
36211
36212       *-*-solaris2* )
36213
36214                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
36215
36216                         saveLdflags="$LDFLAGS"
36217         LDFLAGS="$saveLdflags -Wl,-rpath,/"
36218         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
36219 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
36220         cat >conftest.$ac_ext <<_ACEOF
36221 /* confdefs.h.  */
36222 _ACEOF
36223 cat confdefs.h >>conftest.$ac_ext
36224 cat >>conftest.$ac_ext <<_ACEOF
36225 /* end confdefs.h.  */
36226
36227 int
36228 main ()
36229 {
36230
36231   ;
36232   return 0;
36233 }
36234 _ACEOF
36235 rm -f conftest.$ac_objext conftest$ac_exeext
36236 if { (ac_try="$ac_link"
36237 case "(($ac_try" in
36238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36239   *) ac_try_echo=$ac_try;;
36240 esac
36241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36242   (eval "$ac_link") 2>conftest.er1
36243   ac_status=$?
36244   grep -v '^ *+' conftest.er1 >conftest.err
36245   rm -f conftest.er1
36246   cat conftest.err >&5
36247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36248   (exit $ac_status); } && {
36249          test -z "$ac_c_werror_flag" ||
36250          test ! -s conftest.err
36251        } && test -s conftest$ac_exeext &&
36252        $as_test_x conftest$ac_exeext; then
36253
36254                 { echo "$as_me:$LINENO: result: yes" >&5
36255 echo "${ECHO_T}yes" >&6; }
36256                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36257                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36258
36259 else
36260   echo "$as_me: failed program was:" >&5
36261 sed 's/^/| /' conftest.$ac_ext >&5
36262
36263
36264                 { echo "$as_me:$LINENO: result: no" >&5
36265 echo "${ECHO_T}no" >&6; }
36266                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
36267 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
36268                 LDFLAGS="$saveLdflags -Wl,-R,/"
36269                 cat >conftest.$ac_ext <<_ACEOF
36270 /* confdefs.h.  */
36271 _ACEOF
36272 cat confdefs.h >>conftest.$ac_ext
36273 cat >>conftest.$ac_ext <<_ACEOF
36274 /* end confdefs.h.  */
36275
36276 int
36277 main ()
36278 {
36279
36280   ;
36281   return 0;
36282 }
36283 _ACEOF
36284 rm -f conftest.$ac_objext conftest$ac_exeext
36285 if { (ac_try="$ac_link"
36286 case "(($ac_try" in
36287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36288   *) ac_try_echo=$ac_try;;
36289 esac
36290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36291   (eval "$ac_link") 2>conftest.er1
36292   ac_status=$?
36293   grep -v '^ *+' conftest.er1 >conftest.err
36294   rm -f conftest.er1
36295   cat conftest.err >&5
36296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36297   (exit $ac_status); } && {
36298          test -z "$ac_c_werror_flag" ||
36299          test ! -s conftest.err
36300        } && test -s conftest$ac_exeext &&
36301        $as_test_x conftest$ac_exeext; then
36302
36303                         { echo "$as_me:$LINENO: result: yes" >&5
36304 echo "${ECHO_T}yes" >&6; }
36305                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
36306                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
36307
36308 else
36309   echo "$as_me: failed program was:" >&5
36310 sed 's/^/| /' conftest.$ac_ext >&5
36311
36312
36313                         { echo "$as_me:$LINENO: result: no" >&5
36314 echo "${ECHO_T}no" >&6; }
36315
36316 fi
36317
36318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36319       conftest$ac_exeext conftest.$ac_ext
36320
36321 fi
36322
36323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36324       conftest$ac_exeext conftest.$ac_ext
36325         LDFLAGS="$saveLdflags"
36326       ;;
36327
36328       *-*-darwin* )
36329         install_name_tool=`which install_name_tool`
36330         if test "$install_name_tool" -a -x "$install_name_tool"; then
36331             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
36332             cat <<EOF >change-install-names
36333 #!/bin/sh
36334 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
36335 inst_cmd="install_name_tool "
36336 for i in \${libnames} ; do
36337     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
36338 done
36339 \${inst_cmd} \${3}
36340 EOF
36341             chmod +x change-install-names
36342         fi
36343       ;;
36344
36345       *-*-cygwin* | *-*-mingw32* )
36346         ;;
36347
36348       *-*-hpux* )
36349         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
36350         WXCONFIG_RPATH="-Wl,+b,\$libdir"
36351         ;;
36352
36353     esac
36354     fi
36355
36356             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
36357
36358     if test $wxUSE_RPATH = "no"; then
36359         SAMPLES_RPATH_FLAG=''
36360         SAMPLES_RPATH_POSTLINK=''
36361         WXCONFIG_RPATH=''
36362     fi
36363
36364     SHARED=1
36365
36366 else
36367
36368     config_linkage_component="-static"
36369     SHARED=0
36370
36371 fi
36372
36373
36374 UNICODE=0
36375 lib_unicode_suffix=
36376 WX_CHARTYPE="ansi"
36377 if test "$wxUSE_UNICODE" = "yes"; then
36378     lib_unicode_suffix=u
36379     WX_CHARTYPE="unicode"
36380     UNICODE=1
36381 fi
36382
36383 lib_debug_suffix=
36384 WX_DEBUGTYPE="release"
36385 DEBUG_FLAG=0
36386 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
36387     lib_debug_suffix=d
36388     WX_DEBUGTYPE="debug"
36389     DEBUG_FLAG=1
36390 fi
36391
36392 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
36393 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
36394
36395 DEBUG_INFO=0
36396 if test "$wxUSE_DEBUG_INFO" = "yes"; then
36397     DEBUG_INFO=1
36398 fi
36399
36400 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr a-z A-Z`
36401
36402 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
36403
36404 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
36405
36406 if test "$cross_compiling" = "yes"; then
36407     HOST_SUFFIX="-$host_alias"
36408     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
36409     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
36410 fi
36411
36412 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36413 if test "${TOOLKIT_DIR}" = "os2"; then
36414     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36415 else
36416     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36417 fi
36418
36419
36420
36421 if test "$wxUSE_COCOA" = 1; then
36422
36423     ac_ext=c
36424 ac_cpp='$CPP $CPPFLAGS'
36425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36428
36429 ac_ext=m
36430
36431     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
36432 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
36433     cat >conftest.$ac_ext <<_ACEOF
36434 /* confdefs.h.  */
36435 _ACEOF
36436 cat confdefs.h >>conftest.$ac_ext
36437 cat >>conftest.$ac_ext <<_ACEOF
36438 /* end confdefs.h.  */
36439 #include <AppKit/NSEvent.h>
36440 #include <CoreFoundation/CoreFoundation.h>
36441
36442 int
36443 main ()
36444 {
36445
36446   ;
36447   return 0;
36448 }
36449 _ACEOF
36450 rm -f conftest.$ac_objext
36451 if { (ac_try="$ac_compile"
36452 case "(($ac_try" in
36453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36454   *) ac_try_echo=$ac_try;;
36455 esac
36456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36457   (eval "$ac_compile") 2>conftest.er1
36458   ac_status=$?
36459   grep -v '^ *+' conftest.er1 >conftest.err
36460   rm -f conftest.er1
36461   cat conftest.err >&5
36462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36463   (exit $ac_status); } && {
36464          test -z "$ac_c_werror_flag" ||
36465          test ! -s conftest.err
36466        } && test -s conftest.$ac_objext; then
36467   { echo "$as_me:$LINENO: result: no" >&5
36468 echo "${ECHO_T}no" >&6; }
36469 else
36470   echo "$as_me: failed program was:" >&5
36471 sed 's/^/| /' conftest.$ac_ext >&5
36472
36473         { echo "$as_me:$LINENO: result: yes" >&5
36474 echo "${ECHO_T}yes" >&6; }
36475         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
36476 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
36477         cat >conftest.$ac_ext <<_ACEOF
36478 /* confdefs.h.  */
36479 _ACEOF
36480 cat confdefs.h >>conftest.$ac_ext
36481 cat >>conftest.$ac_ext <<_ACEOF
36482 /* end confdefs.h.  */
36483 #define __Point__ 1
36484 #include <AppKit/NSEvent.h>
36485 #include <CoreFoundation/CoreFoundation.h>
36486
36487 int
36488 main ()
36489 {
36490
36491   ;
36492   return 0;
36493 }
36494 _ACEOF
36495 rm -f conftest.$ac_objext
36496 if { (ac_try="$ac_compile"
36497 case "(($ac_try" in
36498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36499   *) ac_try_echo=$ac_try;;
36500 esac
36501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36502   (eval "$ac_compile") 2>conftest.er1
36503   ac_status=$?
36504   grep -v '^ *+' conftest.er1 >conftest.err
36505   rm -f conftest.er1
36506   cat conftest.err >&5
36507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36508   (exit $ac_status); } && {
36509          test -z "$ac_c_werror_flag" ||
36510          test ! -s conftest.err
36511        } && test -s conftest.$ac_objext; then
36512   { echo "$as_me:$LINENO: result: yes" >&5
36513 echo "${ECHO_T}yes" >&6; }
36514             cat >>confdefs.h <<\_ACEOF
36515 #define __Point__ 1
36516 _ACEOF
36517
36518
36519 else
36520   echo "$as_me: failed program was:" >&5
36521 sed 's/^/| /' conftest.$ac_ext >&5
36522
36523         { { echo "$as_me:$LINENO: error: no
36524 See \`config.log' for more details." >&5
36525 echo "$as_me: error: no
36526 See \`config.log' for more details." >&2;}
36527    { (exit 1); exit 1; }; }
36528
36529 fi
36530
36531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36532
36533 fi
36534
36535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36536     ac_ext=c
36537 ac_cpp='$CPP $CPPFLAGS'
36538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36541
36542 fi
36543
36544
36545 { echo "$as_me:$LINENO: checking for mode_t" >&5
36546 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
36547 if test "${ac_cv_type_mode_t+set}" = set; then
36548   echo $ECHO_N "(cached) $ECHO_C" >&6
36549 else
36550   cat >conftest.$ac_ext <<_ACEOF
36551 /* confdefs.h.  */
36552 _ACEOF
36553 cat confdefs.h >>conftest.$ac_ext
36554 cat >>conftest.$ac_ext <<_ACEOF
36555 /* end confdefs.h.  */
36556 $ac_includes_default
36557 typedef mode_t ac__type_new_;
36558 int
36559 main ()
36560 {
36561 if ((ac__type_new_ *) 0)
36562   return 0;
36563 if (sizeof (ac__type_new_))
36564   return 0;
36565   ;
36566   return 0;
36567 }
36568 _ACEOF
36569 rm -f conftest.$ac_objext
36570 if { (ac_try="$ac_compile"
36571 case "(($ac_try" in
36572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36573   *) ac_try_echo=$ac_try;;
36574 esac
36575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36576   (eval "$ac_compile") 2>conftest.er1
36577   ac_status=$?
36578   grep -v '^ *+' conftest.er1 >conftest.err
36579   rm -f conftest.er1
36580   cat conftest.err >&5
36581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582   (exit $ac_status); } && {
36583          test -z "$ac_c_werror_flag" ||
36584          test ! -s conftest.err
36585        } && test -s conftest.$ac_objext; then
36586   ac_cv_type_mode_t=yes
36587 else
36588   echo "$as_me: failed program was:" >&5
36589 sed 's/^/| /' conftest.$ac_ext >&5
36590
36591         ac_cv_type_mode_t=no
36592 fi
36593
36594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36595 fi
36596 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36597 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
36598 if test $ac_cv_type_mode_t = yes; then
36599   :
36600 else
36601
36602 cat >>confdefs.h <<_ACEOF
36603 #define mode_t int
36604 _ACEOF
36605
36606 fi
36607
36608 { echo "$as_me:$LINENO: checking for off_t" >&5
36609 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
36610 if test "${ac_cv_type_off_t+set}" = set; then
36611   echo $ECHO_N "(cached) $ECHO_C" >&6
36612 else
36613   cat >conftest.$ac_ext <<_ACEOF
36614 /* confdefs.h.  */
36615 _ACEOF
36616 cat confdefs.h >>conftest.$ac_ext
36617 cat >>conftest.$ac_ext <<_ACEOF
36618 /* end confdefs.h.  */
36619 $ac_includes_default
36620 typedef off_t ac__type_new_;
36621 int
36622 main ()
36623 {
36624 if ((ac__type_new_ *) 0)
36625   return 0;
36626 if (sizeof (ac__type_new_))
36627   return 0;
36628   ;
36629   return 0;
36630 }
36631 _ACEOF
36632 rm -f conftest.$ac_objext
36633 if { (ac_try="$ac_compile"
36634 case "(($ac_try" in
36635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36636   *) ac_try_echo=$ac_try;;
36637 esac
36638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36639   (eval "$ac_compile") 2>conftest.er1
36640   ac_status=$?
36641   grep -v '^ *+' conftest.er1 >conftest.err
36642   rm -f conftest.er1
36643   cat conftest.err >&5
36644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36645   (exit $ac_status); } && {
36646          test -z "$ac_c_werror_flag" ||
36647          test ! -s conftest.err
36648        } && test -s conftest.$ac_objext; then
36649   ac_cv_type_off_t=yes
36650 else
36651   echo "$as_me: failed program was:" >&5
36652 sed 's/^/| /' conftest.$ac_ext >&5
36653
36654         ac_cv_type_off_t=no
36655 fi
36656
36657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36658 fi
36659 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36660 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
36661 if test $ac_cv_type_off_t = yes; then
36662   :
36663 else
36664
36665 cat >>confdefs.h <<_ACEOF
36666 #define off_t long int
36667 _ACEOF
36668
36669 fi
36670
36671 { echo "$as_me:$LINENO: checking for pid_t" >&5
36672 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
36673 if test "${ac_cv_type_pid_t+set}" = set; then
36674   echo $ECHO_N "(cached) $ECHO_C" >&6
36675 else
36676   cat >conftest.$ac_ext <<_ACEOF
36677 /* confdefs.h.  */
36678 _ACEOF
36679 cat confdefs.h >>conftest.$ac_ext
36680 cat >>conftest.$ac_ext <<_ACEOF
36681 /* end confdefs.h.  */
36682 $ac_includes_default
36683 typedef pid_t ac__type_new_;
36684 int
36685 main ()
36686 {
36687 if ((ac__type_new_ *) 0)
36688   return 0;
36689 if (sizeof (ac__type_new_))
36690   return 0;
36691   ;
36692   return 0;
36693 }
36694 _ACEOF
36695 rm -f conftest.$ac_objext
36696 if { (ac_try="$ac_compile"
36697 case "(($ac_try" in
36698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36699   *) ac_try_echo=$ac_try;;
36700 esac
36701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36702   (eval "$ac_compile") 2>conftest.er1
36703   ac_status=$?
36704   grep -v '^ *+' conftest.er1 >conftest.err
36705   rm -f conftest.er1
36706   cat conftest.err >&5
36707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36708   (exit $ac_status); } && {
36709          test -z "$ac_c_werror_flag" ||
36710          test ! -s conftest.err
36711        } && test -s conftest.$ac_objext; then
36712   ac_cv_type_pid_t=yes
36713 else
36714   echo "$as_me: failed program was:" >&5
36715 sed 's/^/| /' conftest.$ac_ext >&5
36716
36717         ac_cv_type_pid_t=no
36718 fi
36719
36720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36721 fi
36722 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
36723 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
36724 if test $ac_cv_type_pid_t = yes; then
36725   :
36726 else
36727
36728 cat >>confdefs.h <<_ACEOF
36729 #define pid_t int
36730 _ACEOF
36731
36732 fi
36733
36734 { echo "$as_me:$LINENO: checking for size_t" >&5
36735 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
36736 if test "${ac_cv_type_size_t+set}" = set; then
36737   echo $ECHO_N "(cached) $ECHO_C" >&6
36738 else
36739   cat >conftest.$ac_ext <<_ACEOF
36740 /* confdefs.h.  */
36741 _ACEOF
36742 cat confdefs.h >>conftest.$ac_ext
36743 cat >>conftest.$ac_ext <<_ACEOF
36744 /* end confdefs.h.  */
36745 $ac_includes_default
36746 typedef size_t ac__type_new_;
36747 int
36748 main ()
36749 {
36750 if ((ac__type_new_ *) 0)
36751   return 0;
36752 if (sizeof (ac__type_new_))
36753   return 0;
36754   ;
36755   return 0;
36756 }
36757 _ACEOF
36758 rm -f conftest.$ac_objext
36759 if { (ac_try="$ac_compile"
36760 case "(($ac_try" in
36761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36762   *) ac_try_echo=$ac_try;;
36763 esac
36764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36765   (eval "$ac_compile") 2>conftest.er1
36766   ac_status=$?
36767   grep -v '^ *+' conftest.er1 >conftest.err
36768   rm -f conftest.er1
36769   cat conftest.err >&5
36770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771   (exit $ac_status); } && {
36772          test -z "$ac_c_werror_flag" ||
36773          test ! -s conftest.err
36774        } && test -s conftest.$ac_objext; then
36775   ac_cv_type_size_t=yes
36776 else
36777   echo "$as_me: failed program was:" >&5
36778 sed 's/^/| /' conftest.$ac_ext >&5
36779
36780         ac_cv_type_size_t=no
36781 fi
36782
36783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36784 fi
36785 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
36786 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
36787 if test $ac_cv_type_size_t = yes; then
36788   :
36789 else
36790
36791 cat >>confdefs.h <<_ACEOF
36792 #define size_t unsigned int
36793 _ACEOF
36794
36795 fi
36796
36797 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
36798 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
36799 if test "${ac_cv_type_uid_t+set}" = set; then
36800   echo $ECHO_N "(cached) $ECHO_C" >&6
36801 else
36802   cat >conftest.$ac_ext <<_ACEOF
36803 /* confdefs.h.  */
36804 _ACEOF
36805 cat confdefs.h >>conftest.$ac_ext
36806 cat >>conftest.$ac_ext <<_ACEOF
36807 /* end confdefs.h.  */
36808 #include <sys/types.h>
36809
36810 _ACEOF
36811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36812   $EGREP "uid_t" >/dev/null 2>&1; then
36813   ac_cv_type_uid_t=yes
36814 else
36815   ac_cv_type_uid_t=no
36816 fi
36817 rm -f conftest*
36818
36819 fi
36820 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
36821 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
36822 if test $ac_cv_type_uid_t = no; then
36823
36824 cat >>confdefs.h <<\_ACEOF
36825 #define uid_t int
36826 _ACEOF
36827
36828
36829 cat >>confdefs.h <<\_ACEOF
36830 #define gid_t int
36831 _ACEOF
36832
36833 fi
36834
36835
36836 { echo "$as_me:$LINENO: checking for ssize_t" >&5
36837 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
36838 if test "${ac_cv_type_ssize_t+set}" = set; then
36839   echo $ECHO_N "(cached) $ECHO_C" >&6
36840 else
36841   cat >conftest.$ac_ext <<_ACEOF
36842 /* confdefs.h.  */
36843 _ACEOF
36844 cat confdefs.h >>conftest.$ac_ext
36845 cat >>conftest.$ac_ext <<_ACEOF
36846 /* end confdefs.h.  */
36847 $ac_includes_default
36848 typedef ssize_t ac__type_new_;
36849 int
36850 main ()
36851 {
36852 if ((ac__type_new_ *) 0)
36853   return 0;
36854 if (sizeof (ac__type_new_))
36855   return 0;
36856   ;
36857   return 0;
36858 }
36859 _ACEOF
36860 rm -f conftest.$ac_objext
36861 if { (ac_try="$ac_compile"
36862 case "(($ac_try" in
36863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36864   *) ac_try_echo=$ac_try;;
36865 esac
36866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36867   (eval "$ac_compile") 2>conftest.er1
36868   ac_status=$?
36869   grep -v '^ *+' conftest.er1 >conftest.err
36870   rm -f conftest.er1
36871   cat conftest.err >&5
36872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36873   (exit $ac_status); } && {
36874          test -z "$ac_c_werror_flag" ||
36875          test ! -s conftest.err
36876        } && test -s conftest.$ac_objext; then
36877   ac_cv_type_ssize_t=yes
36878 else
36879   echo "$as_me: failed program was:" >&5
36880 sed 's/^/| /' conftest.$ac_ext >&5
36881
36882         ac_cv_type_ssize_t=no
36883 fi
36884
36885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36886 fi
36887 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36888 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
36889 if test $ac_cv_type_ssize_t = yes; then
36890
36891 cat >>confdefs.h <<_ACEOF
36892 #define HAVE_SSIZE_T 1
36893 _ACEOF
36894
36895
36896 fi
36897
36898
36899 ac_ext=cpp
36900 ac_cpp='$CXXCPP $CPPFLAGS'
36901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36904  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
36905 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
36906 if test "${wx_cv_size_t_is_uint+set}" = set; then
36907   echo $ECHO_N "(cached) $ECHO_C" >&6
36908 else
36909
36910                             cat >conftest.$ac_ext <<_ACEOF
36911 /* confdefs.h.  */
36912 _ACEOF
36913 cat confdefs.h >>conftest.$ac_ext
36914 cat >>conftest.$ac_ext <<_ACEOF
36915 /* end confdefs.h.  */
36916 #include <stddef.h>
36917 int
36918 main ()
36919 {
36920
36921             return 0; }
36922
36923             struct Foo { void foo(size_t); void foo(unsigned int); };
36924
36925             int bar() {
36926
36927   ;
36928   return 0;
36929 }
36930 _ACEOF
36931 rm -f conftest.$ac_objext
36932 if { (ac_try="$ac_compile"
36933 case "(($ac_try" in
36934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36935   *) ac_try_echo=$ac_try;;
36936 esac
36937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36938   (eval "$ac_compile") 2>conftest.er1
36939   ac_status=$?
36940   grep -v '^ *+' conftest.er1 >conftest.err
36941   rm -f conftest.er1
36942   cat conftest.err >&5
36943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944   (exit $ac_status); } && {
36945          test -z "$ac_cxx_werror_flag" ||
36946          test ! -s conftest.err
36947        } && test -s conftest.$ac_objext; then
36948   wx_cv_size_t_is_uint=no
36949 else
36950   echo "$as_me: failed program was:" >&5
36951 sed 's/^/| /' conftest.$ac_ext >&5
36952
36953         wx_cv_size_t_is_uint=yes
36954
36955 fi
36956
36957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36958
36959
36960 fi
36961 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
36962 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
36963
36964 if test "$wx_cv_size_t_is_uint" = "yes"; then
36965     cat >>confdefs.h <<\_ACEOF
36966 #define wxSIZE_T_IS_UINT 1
36967 _ACEOF
36968
36969 else
36970     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
36971 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
36972 if test "${wx_cv_size_t_is_ulong+set}" = set; then
36973   echo $ECHO_N "(cached) $ECHO_C" >&6
36974 else
36975   cat >conftest.$ac_ext <<_ACEOF
36976 /* confdefs.h.  */
36977 _ACEOF
36978 cat confdefs.h >>conftest.$ac_ext
36979 cat >>conftest.$ac_ext <<_ACEOF
36980 /* end confdefs.h.  */
36981 #include <stddef.h>
36982 int
36983 main ()
36984 {
36985
36986                 return 0; }
36987
36988                 struct Foo { void foo(size_t); void foo(unsigned long); };
36989
36990                 int bar() {
36991
36992   ;
36993   return 0;
36994 }
36995 _ACEOF
36996 rm -f conftest.$ac_objext
36997 if { (ac_try="$ac_compile"
36998 case "(($ac_try" in
36999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37000   *) ac_try_echo=$ac_try;;
37001 esac
37002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37003   (eval "$ac_compile") 2>conftest.er1
37004   ac_status=$?
37005   grep -v '^ *+' conftest.er1 >conftest.err
37006   rm -f conftest.er1
37007   cat conftest.err >&5
37008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37009   (exit $ac_status); } && {
37010          test -z "$ac_cxx_werror_flag" ||
37011          test ! -s conftest.err
37012        } && test -s conftest.$ac_objext; then
37013   wx_cv_size_t_is_ulong=no
37014 else
37015   echo "$as_me: failed program was:" >&5
37016 sed 's/^/| /' conftest.$ac_ext >&5
37017
37018         wx_cv_size_t_is_ulong=yes
37019
37020 fi
37021
37022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37023
37024 fi
37025 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
37026 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
37027
37028     if test "$wx_cv_size_t_is_ulong" = "yes"; then
37029         cat >>confdefs.h <<\_ACEOF
37030 #define wxSIZE_T_IS_ULONG 1
37031 _ACEOF
37032
37033     fi
37034 fi
37035
37036 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
37037 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
37038 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
37039   echo $ECHO_N "(cached) $ECHO_C" >&6
37040 else
37041   cat >conftest.$ac_ext <<_ACEOF
37042 /* confdefs.h.  */
37043 _ACEOF
37044 cat confdefs.h >>conftest.$ac_ext
37045 cat >>conftest.$ac_ext <<_ACEOF
37046 /* end confdefs.h.  */
37047 #include <wchar.h>
37048 int
37049 main ()
37050 {
37051
37052             return 0; }
37053
37054             struct Foo { void foo(wchar_t);
37055                          void foo(unsigned short);
37056                          void foo(unsigned int);
37057                          void foo(unsigned long); };
37058
37059             int bar() {
37060
37061   ;
37062   return 0;
37063 }
37064 _ACEOF
37065 rm -f conftest.$ac_objext
37066 if { (ac_try="$ac_compile"
37067 case "(($ac_try" in
37068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37069   *) ac_try_echo=$ac_try;;
37070 esac
37071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37072   (eval "$ac_compile") 2>conftest.er1
37073   ac_status=$?
37074   grep -v '^ *+' conftest.er1 >conftest.err
37075   rm -f conftest.er1
37076   cat conftest.err >&5
37077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37078   (exit $ac_status); } && {
37079          test -z "$ac_cxx_werror_flag" ||
37080          test ! -s conftest.err
37081        } && test -s conftest.$ac_objext; then
37082   wx_cv_wchar_t_is_separate_type=yes
37083 else
37084   echo "$as_me: failed program was:" >&5
37085 sed 's/^/| /' conftest.$ac_ext >&5
37086
37087         wx_cv_wchar_t_is_separate_type=no
37088
37089 fi
37090
37091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37092
37093 fi
37094 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
37095 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
37096
37097 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
37098     cat >>confdefs.h <<\_ACEOF
37099 #define wxWCHAR_T_IS_REAL_TYPE 1
37100 _ACEOF
37101
37102 else
37103     cat >>confdefs.h <<\_ACEOF
37104 #define wxWCHAR_T_IS_REAL_TYPE 0
37105 _ACEOF
37106
37107 fi
37108
37109 ac_ext=c
37110 ac_cpp='$CPP $CPPFLAGS'
37111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37114
37115
37116 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
37117 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
37118 if test "${wx_cv_struct_pw_gecos+set}" = set; then
37119   echo $ECHO_N "(cached) $ECHO_C" >&6
37120 else
37121
37122         cat >conftest.$ac_ext <<_ACEOF
37123 /* confdefs.h.  */
37124 _ACEOF
37125 cat confdefs.h >>conftest.$ac_ext
37126 cat >>conftest.$ac_ext <<_ACEOF
37127 /* end confdefs.h.  */
37128 #include <pwd.h>
37129 int
37130 main ()
37131 {
37132
37133                 char *p;
37134                 struct passwd *pw;
37135                 p = pw->pw_gecos;
37136
37137   ;
37138   return 0;
37139 }
37140 _ACEOF
37141 rm -f conftest.$ac_objext
37142 if { (ac_try="$ac_compile"
37143 case "(($ac_try" in
37144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37145   *) ac_try_echo=$ac_try;;
37146 esac
37147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37148   (eval "$ac_compile") 2>conftest.er1
37149   ac_status=$?
37150   grep -v '^ *+' conftest.er1 >conftest.err
37151   rm -f conftest.er1
37152   cat conftest.err >&5
37153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37154   (exit $ac_status); } && {
37155          test -z "$ac_c_werror_flag" ||
37156          test ! -s conftest.err
37157        } && test -s conftest.$ac_objext; then
37158
37159                 wx_cv_struct_pw_gecos=yes
37160
37161 else
37162   echo "$as_me: failed program was:" >&5
37163 sed 's/^/| /' conftest.$ac_ext >&5
37164
37165
37166                 wx_cv_struct_pw_gecos=no
37167
37168
37169 fi
37170
37171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37172
37173
37174 fi
37175 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
37176 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
37177
37178 if test "$wx_cv_struct_pw_gecos" = "yes"; then
37179     cat >>confdefs.h <<\_ACEOF
37180 #define HAVE_PW_GECOS 1
37181 _ACEOF
37182
37183 fi
37184
37185
37186 if test "$wxUSE_WCHAR_T" = "yes"; then
37187     cat >>confdefs.h <<\_ACEOF
37188 #define wxUSE_WCHAR_T 1
37189 _ACEOF
37190
37191
37192         WCSLEN_FOUND=0
37193     WCHAR_LINK=
37194
37195 for ac_func in wcslen
37196 do
37197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37201   echo $ECHO_N "(cached) $ECHO_C" >&6
37202 else
37203   cat >conftest.$ac_ext <<_ACEOF
37204 /* confdefs.h.  */
37205 _ACEOF
37206 cat confdefs.h >>conftest.$ac_ext
37207 cat >>conftest.$ac_ext <<_ACEOF
37208 /* end confdefs.h.  */
37209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37211 #define $ac_func innocuous_$ac_func
37212
37213 /* System header to define __stub macros and hopefully few prototypes,
37214     which can conflict with char $ac_func (); below.
37215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37216     <limits.h> exists even on freestanding compilers.  */
37217
37218 #ifdef __STDC__
37219 # include <limits.h>
37220 #else
37221 # include <assert.h>
37222 #endif
37223
37224 #undef $ac_func
37225
37226 /* Override any GCC internal prototype to avoid an error.
37227    Use char because int might match the return type of a GCC
37228    builtin and then its argument prototype would still apply.  */
37229 #ifdef __cplusplus
37230 extern "C"
37231 #endif
37232 char $ac_func ();
37233 /* The GNU C library defines this for functions which it implements
37234     to always fail with ENOSYS.  Some functions are actually named
37235     something starting with __ and the normal name is an alias.  */
37236 #if defined __stub_$ac_func || defined __stub___$ac_func
37237 choke me
37238 #endif
37239
37240 int
37241 main ()
37242 {
37243 return $ac_func ();
37244   ;
37245   return 0;
37246 }
37247 _ACEOF
37248 rm -f conftest.$ac_objext conftest$ac_exeext
37249 if { (ac_try="$ac_link"
37250 case "(($ac_try" in
37251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37252   *) ac_try_echo=$ac_try;;
37253 esac
37254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37255   (eval "$ac_link") 2>conftest.er1
37256   ac_status=$?
37257   grep -v '^ *+' conftest.er1 >conftest.err
37258   rm -f conftest.er1
37259   cat conftest.err >&5
37260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261   (exit $ac_status); } && {
37262          test -z "$ac_c_werror_flag" ||
37263          test ! -s conftest.err
37264        } && test -s conftest$ac_exeext &&
37265        $as_test_x conftest$ac_exeext; then
37266   eval "$as_ac_var=yes"
37267 else
37268   echo "$as_me: failed program was:" >&5
37269 sed 's/^/| /' conftest.$ac_ext >&5
37270
37271         eval "$as_ac_var=no"
37272 fi
37273
37274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37275       conftest$ac_exeext conftest.$ac_ext
37276 fi
37277 ac_res=`eval echo '${'$as_ac_var'}'`
37278                { echo "$as_me:$LINENO: result: $ac_res" >&5
37279 echo "${ECHO_T}$ac_res" >&6; }
37280 if test `eval echo '${'$as_ac_var'}'` = yes; then
37281   cat >>confdefs.h <<_ACEOF
37282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37283 _ACEOF
37284  WCSLEN_FOUND=1
37285 fi
37286 done
37287
37288
37289     if test "$WCSLEN_FOUND" = 0; then
37290         if test "$TOOLKIT" = "MSW"; then
37291             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
37292 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
37293 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
37294   echo $ECHO_N "(cached) $ECHO_C" >&6
37295 else
37296   ac_check_lib_save_LIBS=$LIBS
37297 LIBS="-lmsvcrt  $LIBS"
37298 cat >conftest.$ac_ext <<_ACEOF
37299 /* confdefs.h.  */
37300 _ACEOF
37301 cat confdefs.h >>conftest.$ac_ext
37302 cat >>conftest.$ac_ext <<_ACEOF
37303 /* end confdefs.h.  */
37304
37305 /* Override any GCC internal prototype to avoid an error.
37306    Use char because int might match the return type of a GCC
37307    builtin and then its argument prototype would still apply.  */
37308 #ifdef __cplusplus
37309 extern "C"
37310 #endif
37311 char wcslen ();
37312 int
37313 main ()
37314 {
37315 return wcslen ();
37316   ;
37317   return 0;
37318 }
37319 _ACEOF
37320 rm -f conftest.$ac_objext conftest$ac_exeext
37321 if { (ac_try="$ac_link"
37322 case "(($ac_try" in
37323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37324   *) ac_try_echo=$ac_try;;
37325 esac
37326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37327   (eval "$ac_link") 2>conftest.er1
37328   ac_status=$?
37329   grep -v '^ *+' conftest.er1 >conftest.err
37330   rm -f conftest.er1
37331   cat conftest.err >&5
37332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333   (exit $ac_status); } && {
37334          test -z "$ac_c_werror_flag" ||
37335          test ! -s conftest.err
37336        } && test -s conftest$ac_exeext &&
37337        $as_test_x conftest$ac_exeext; then
37338   ac_cv_lib_msvcrt_wcslen=yes
37339 else
37340   echo "$as_me: failed program was:" >&5
37341 sed 's/^/| /' conftest.$ac_ext >&5
37342
37343         ac_cv_lib_msvcrt_wcslen=no
37344 fi
37345
37346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37347       conftest$ac_exeext conftest.$ac_ext
37348 LIBS=$ac_check_lib_save_LIBS
37349 fi
37350 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
37351 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
37352 if test $ac_cv_lib_msvcrt_wcslen = yes; then
37353   WCHAR_OK=1
37354 fi
37355
37356         else
37357             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
37358 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
37359 if test "${ac_cv_lib_w_wcslen+set}" = set; then
37360   echo $ECHO_N "(cached) $ECHO_C" >&6
37361 else
37362   ac_check_lib_save_LIBS=$LIBS
37363 LIBS="-lw  $LIBS"
37364 cat >conftest.$ac_ext <<_ACEOF
37365 /* confdefs.h.  */
37366 _ACEOF
37367 cat confdefs.h >>conftest.$ac_ext
37368 cat >>conftest.$ac_ext <<_ACEOF
37369 /* end confdefs.h.  */
37370
37371 /* Override any GCC internal prototype to avoid an error.
37372    Use char because int might match the return type of a GCC
37373    builtin and then its argument prototype would still apply.  */
37374 #ifdef __cplusplus
37375 extern "C"
37376 #endif
37377 char wcslen ();
37378 int
37379 main ()
37380 {
37381 return wcslen ();
37382   ;
37383   return 0;
37384 }
37385 _ACEOF
37386 rm -f conftest.$ac_objext conftest$ac_exeext
37387 if { (ac_try="$ac_link"
37388 case "(($ac_try" in
37389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37390   *) ac_try_echo=$ac_try;;
37391 esac
37392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37393   (eval "$ac_link") 2>conftest.er1
37394   ac_status=$?
37395   grep -v '^ *+' conftest.er1 >conftest.err
37396   rm -f conftest.er1
37397   cat conftest.err >&5
37398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37399   (exit $ac_status); } && {
37400          test -z "$ac_c_werror_flag" ||
37401          test ! -s conftest.err
37402        } && test -s conftest$ac_exeext &&
37403        $as_test_x conftest$ac_exeext; then
37404   ac_cv_lib_w_wcslen=yes
37405 else
37406   echo "$as_me: failed program was:" >&5
37407 sed 's/^/| /' conftest.$ac_ext >&5
37408
37409         ac_cv_lib_w_wcslen=no
37410 fi
37411
37412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37413       conftest$ac_exeext conftest.$ac_ext
37414 LIBS=$ac_check_lib_save_LIBS
37415 fi
37416 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
37417 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
37418 if test $ac_cv_lib_w_wcslen = yes; then
37419
37420                             WCHAR_LINK=" -lw"
37421                             WCSLEN_FOUND=1
37422
37423 fi
37424
37425         fi
37426     fi
37427
37428     if test "$WCSLEN_FOUND" = 1; then
37429         cat >>confdefs.h <<\_ACEOF
37430 #define HAVE_WCSLEN 1
37431 _ACEOF
37432
37433     fi
37434
37435
37436 for ac_func in wcsdup
37437 do
37438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37439 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37442   echo $ECHO_N "(cached) $ECHO_C" >&6
37443 else
37444   cat >conftest.$ac_ext <<_ACEOF
37445 /* confdefs.h.  */
37446 _ACEOF
37447 cat confdefs.h >>conftest.$ac_ext
37448 cat >>conftest.$ac_ext <<_ACEOF
37449 /* end confdefs.h.  */
37450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37452 #define $ac_func innocuous_$ac_func
37453
37454 /* System header to define __stub macros and hopefully few prototypes,
37455     which can conflict with char $ac_func (); below.
37456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37457     <limits.h> exists even on freestanding compilers.  */
37458
37459 #ifdef __STDC__
37460 # include <limits.h>
37461 #else
37462 # include <assert.h>
37463 #endif
37464
37465 #undef $ac_func
37466
37467 /* Override any GCC internal prototype to avoid an error.
37468    Use char because int might match the return type of a GCC
37469    builtin and then its argument prototype would still apply.  */
37470 #ifdef __cplusplus
37471 extern "C"
37472 #endif
37473 char $ac_func ();
37474 /* The GNU C library defines this for functions which it implements
37475     to always fail with ENOSYS.  Some functions are actually named
37476     something starting with __ and the normal name is an alias.  */
37477 #if defined __stub_$ac_func || defined __stub___$ac_func
37478 choke me
37479 #endif
37480
37481 int
37482 main ()
37483 {
37484 return $ac_func ();
37485   ;
37486   return 0;
37487 }
37488 _ACEOF
37489 rm -f conftest.$ac_objext conftest$ac_exeext
37490 if { (ac_try="$ac_link"
37491 case "(($ac_try" in
37492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37493   *) ac_try_echo=$ac_try;;
37494 esac
37495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37496   (eval "$ac_link") 2>conftest.er1
37497   ac_status=$?
37498   grep -v '^ *+' conftest.er1 >conftest.err
37499   rm -f conftest.er1
37500   cat conftest.err >&5
37501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37502   (exit $ac_status); } && {
37503          test -z "$ac_c_werror_flag" ||
37504          test ! -s conftest.err
37505        } && test -s conftest$ac_exeext &&
37506        $as_test_x conftest$ac_exeext; then
37507   eval "$as_ac_var=yes"
37508 else
37509   echo "$as_me: failed program was:" >&5
37510 sed 's/^/| /' conftest.$ac_ext >&5
37511
37512         eval "$as_ac_var=no"
37513 fi
37514
37515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37516       conftest$ac_exeext conftest.$ac_ext
37517 fi
37518 ac_res=`eval echo '${'$as_ac_var'}'`
37519                { echo "$as_me:$LINENO: result: $ac_res" >&5
37520 echo "${ECHO_T}$ac_res" >&6; }
37521 if test `eval echo '${'$as_ac_var'}'` = yes; then
37522   cat >>confdefs.h <<_ACEOF
37523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37524 _ACEOF
37525
37526 fi
37527 done
37528
37529
37530                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
37531         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
37532     fi
37533
37534                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
37535 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
37536 if test "${ac_cv_type_mbstate_t+set}" = set; then
37537   echo $ECHO_N "(cached) $ECHO_C" >&6
37538 else
37539   cat >conftest.$ac_ext <<_ACEOF
37540 /* confdefs.h.  */
37541 _ACEOF
37542 cat confdefs.h >>conftest.$ac_ext
37543 cat >>conftest.$ac_ext <<_ACEOF
37544 /* end confdefs.h.  */
37545 #include <wchar.h>
37546
37547 typedef mbstate_t ac__type_new_;
37548 int
37549 main ()
37550 {
37551 if ((ac__type_new_ *) 0)
37552   return 0;
37553 if (sizeof (ac__type_new_))
37554   return 0;
37555   ;
37556   return 0;
37557 }
37558 _ACEOF
37559 rm -f conftest.$ac_objext
37560 if { (ac_try="$ac_compile"
37561 case "(($ac_try" in
37562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37563   *) ac_try_echo=$ac_try;;
37564 esac
37565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37566   (eval "$ac_compile") 2>conftest.er1
37567   ac_status=$?
37568   grep -v '^ *+' conftest.er1 >conftest.err
37569   rm -f conftest.er1
37570   cat conftest.err >&5
37571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37572   (exit $ac_status); } && {
37573          test -z "$ac_c_werror_flag" ||
37574          test ! -s conftest.err
37575        } && test -s conftest.$ac_objext; then
37576   ac_cv_type_mbstate_t=yes
37577 else
37578   echo "$as_me: failed program was:" >&5
37579 sed 's/^/| /' conftest.$ac_ext >&5
37580
37581         ac_cv_type_mbstate_t=no
37582 fi
37583
37584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37585 fi
37586 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
37587 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
37588 if test $ac_cv_type_mbstate_t = yes; then
37589
37590 cat >>confdefs.h <<_ACEOF
37591 #define HAVE_MBSTATE_T 1
37592 _ACEOF
37593
37594
37595 for ac_func in wcsrtombs
37596 do
37597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37601   echo $ECHO_N "(cached) $ECHO_C" >&6
37602 else
37603   cat >conftest.$ac_ext <<_ACEOF
37604 /* confdefs.h.  */
37605 _ACEOF
37606 cat confdefs.h >>conftest.$ac_ext
37607 cat >>conftest.$ac_ext <<_ACEOF
37608 /* end confdefs.h.  */
37609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37611 #define $ac_func innocuous_$ac_func
37612
37613 /* System header to define __stub macros and hopefully few prototypes,
37614     which can conflict with char $ac_func (); below.
37615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37616     <limits.h> exists even on freestanding compilers.  */
37617
37618 #ifdef __STDC__
37619 # include <limits.h>
37620 #else
37621 # include <assert.h>
37622 #endif
37623
37624 #undef $ac_func
37625
37626 /* Override any GCC internal prototype to avoid an error.
37627    Use char because int might match the return type of a GCC
37628    builtin and then its argument prototype would still apply.  */
37629 #ifdef __cplusplus
37630 extern "C"
37631 #endif
37632 char $ac_func ();
37633 /* The GNU C library defines this for functions which it implements
37634     to always fail with ENOSYS.  Some functions are actually named
37635     something starting with __ and the normal name is an alias.  */
37636 #if defined __stub_$ac_func || defined __stub___$ac_func
37637 choke me
37638 #endif
37639
37640 int
37641 main ()
37642 {
37643 return $ac_func ();
37644   ;
37645   return 0;
37646 }
37647 _ACEOF
37648 rm -f conftest.$ac_objext conftest$ac_exeext
37649 if { (ac_try="$ac_link"
37650 case "(($ac_try" in
37651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37652   *) ac_try_echo=$ac_try;;
37653 esac
37654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37655   (eval "$ac_link") 2>conftest.er1
37656   ac_status=$?
37657   grep -v '^ *+' conftest.er1 >conftest.err
37658   rm -f conftest.er1
37659   cat conftest.err >&5
37660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37661   (exit $ac_status); } && {
37662          test -z "$ac_c_werror_flag" ||
37663          test ! -s conftest.err
37664        } && test -s conftest$ac_exeext &&
37665        $as_test_x conftest$ac_exeext; then
37666   eval "$as_ac_var=yes"
37667 else
37668   echo "$as_me: failed program was:" >&5
37669 sed 's/^/| /' conftest.$ac_ext >&5
37670
37671         eval "$as_ac_var=no"
37672 fi
37673
37674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37675       conftest$ac_exeext conftest.$ac_ext
37676 fi
37677 ac_res=`eval echo '${'$as_ac_var'}'`
37678                { echo "$as_me:$LINENO: result: $ac_res" >&5
37679 echo "${ECHO_T}$ac_res" >&6; }
37680 if test `eval echo '${'$as_ac_var'}'` = yes; then
37681   cat >>confdefs.h <<_ACEOF
37682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37683 _ACEOF
37684
37685 fi
37686 done
37687
37688 fi
37689
37690 else
37691     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
37692 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
37693 fi
37694
37695
37696
37697 for ac_func in snprintf vsnprintf
37698 do
37699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37703   echo $ECHO_N "(cached) $ECHO_C" >&6
37704 else
37705   cat >conftest.$ac_ext <<_ACEOF
37706 /* confdefs.h.  */
37707 _ACEOF
37708 cat confdefs.h >>conftest.$ac_ext
37709 cat >>conftest.$ac_ext <<_ACEOF
37710 /* end confdefs.h.  */
37711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37713 #define $ac_func innocuous_$ac_func
37714
37715 /* System header to define __stub macros and hopefully few prototypes,
37716     which can conflict with char $ac_func (); below.
37717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37718     <limits.h> exists even on freestanding compilers.  */
37719
37720 #ifdef __STDC__
37721 # include <limits.h>
37722 #else
37723 # include <assert.h>
37724 #endif
37725
37726 #undef $ac_func
37727
37728 /* Override any GCC internal prototype to avoid an error.
37729    Use char because int might match the return type of a GCC
37730    builtin and then its argument prototype would still apply.  */
37731 #ifdef __cplusplus
37732 extern "C"
37733 #endif
37734 char $ac_func ();
37735 /* The GNU C library defines this for functions which it implements
37736     to always fail with ENOSYS.  Some functions are actually named
37737     something starting with __ and the normal name is an alias.  */
37738 #if defined __stub_$ac_func || defined __stub___$ac_func
37739 choke me
37740 #endif
37741
37742 int
37743 main ()
37744 {
37745 return $ac_func ();
37746   ;
37747   return 0;
37748 }
37749 _ACEOF
37750 rm -f conftest.$ac_objext conftest$ac_exeext
37751 if { (ac_try="$ac_link"
37752 case "(($ac_try" in
37753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37754   *) ac_try_echo=$ac_try;;
37755 esac
37756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37757   (eval "$ac_link") 2>conftest.er1
37758   ac_status=$?
37759   grep -v '^ *+' conftest.er1 >conftest.err
37760   rm -f conftest.er1
37761   cat conftest.err >&5
37762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37763   (exit $ac_status); } && {
37764          test -z "$ac_c_werror_flag" ||
37765          test ! -s conftest.err
37766        } && test -s conftest$ac_exeext &&
37767        $as_test_x conftest$ac_exeext; then
37768   eval "$as_ac_var=yes"
37769 else
37770   echo "$as_me: failed program was:" >&5
37771 sed 's/^/| /' conftest.$ac_ext >&5
37772
37773         eval "$as_ac_var=no"
37774 fi
37775
37776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37777       conftest$ac_exeext conftest.$ac_ext
37778 fi
37779 ac_res=`eval echo '${'$as_ac_var'}'`
37780                { echo "$as_me:$LINENO: result: $ac_res" >&5
37781 echo "${ECHO_T}$ac_res" >&6; }
37782 if test `eval echo '${'$as_ac_var'}'` = yes; then
37783   cat >>confdefs.h <<_ACEOF
37784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37785 _ACEOF
37786
37787 fi
37788 done
37789
37790
37791 if test "$ac_cv_func_vsnprintf" = "yes"; then
37792         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
37793 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
37794 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
37795   echo $ECHO_N "(cached) $ECHO_C" >&6
37796 else
37797
37798                                                             cat >conftest.$ac_ext <<_ACEOF
37799 /* confdefs.h.  */
37800 _ACEOF
37801 cat confdefs.h >>conftest.$ac_ext
37802 cat >>conftest.$ac_ext <<_ACEOF
37803 /* end confdefs.h.  */
37804
37805                     #include <stdio.h>
37806                     #include <stdarg.h>
37807                     #ifdef __MSL__
37808                     #if __MSL__ >= 0x6000
37809                     namespace std {}
37810                     using namespace std;
37811                     #endif
37812                     #endif
37813
37814 int
37815 main ()
37816 {
37817
37818                     char *buf;
37819                     va_list ap;
37820                     vsnprintf(buf, 10u, "%s", ap);
37821
37822   ;
37823   return 0;
37824 }
37825 _ACEOF
37826 rm -f conftest.$ac_objext
37827 if { (ac_try="$ac_compile"
37828 case "(($ac_try" in
37829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37830   *) ac_try_echo=$ac_try;;
37831 esac
37832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37833   (eval "$ac_compile") 2>conftest.er1
37834   ac_status=$?
37835   grep -v '^ *+' conftest.er1 >conftest.err
37836   rm -f conftest.er1
37837   cat conftest.err >&5
37838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37839   (exit $ac_status); } && {
37840          test -z "$ac_c_werror_flag" ||
37841          test ! -s conftest.err
37842        } && test -s conftest.$ac_objext; then
37843   wx_cv_func_vsnprintf_decl=yes
37844 else
37845   echo "$as_me: failed program was:" >&5
37846 sed 's/^/| /' conftest.$ac_ext >&5
37847
37848         wx_cv_func_vsnprintf_decl=no
37849
37850 fi
37851
37852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37853
37854
37855 fi
37856 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
37857 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
37858
37859     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
37860         cat >>confdefs.h <<\_ACEOF
37861 #define HAVE_VSNPRINTF_DECL 1
37862 _ACEOF
37863
37864
37865                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
37866 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
37867 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
37868   echo $ECHO_N "(cached) $ECHO_C" >&6
37869 else
37870
37871                 cat >conftest.$ac_ext <<_ACEOF
37872 /* confdefs.h.  */
37873 _ACEOF
37874 cat confdefs.h >>conftest.$ac_ext
37875 cat >>conftest.$ac_ext <<_ACEOF
37876 /* end confdefs.h.  */
37877
37878                         #include <stdio.h>
37879                         #include <stdarg.h>
37880                         #ifdef __MSL__
37881                         #if __MSL__ >= 0x6000
37882                         namespace std {}
37883                         using namespace std;
37884                         #endif
37885                         #endif
37886
37887 int
37888 main ()
37889 {
37890
37891                         char *buf;
37892                         va_list ap;
37893                         const char *fmt = "%s";
37894                         vsnprintf(buf, 10u, fmt, ap);
37895
37896   ;
37897   return 0;
37898 }
37899 _ACEOF
37900 rm -f conftest.$ac_objext
37901 if { (ac_try="$ac_compile"
37902 case "(($ac_try" in
37903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37904   *) ac_try_echo=$ac_try;;
37905 esac
37906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37907   (eval "$ac_compile") 2>conftest.er1
37908   ac_status=$?
37909   grep -v '^ *+' conftest.er1 >conftest.err
37910   rm -f conftest.er1
37911   cat conftest.err >&5
37912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37913   (exit $ac_status); } && {
37914          test -z "$ac_c_werror_flag" ||
37915          test ! -s conftest.err
37916        } && test -s conftest.$ac_objext; then
37917   wx_cv_func_broken_vsnprintf_decl=no
37918 else
37919   echo "$as_me: failed program was:" >&5
37920 sed 's/^/| /' conftest.$ac_ext >&5
37921
37922         wx_cv_func_broken_vsnprintf_decl=yes
37923
37924 fi
37925
37926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37927
37928
37929 fi
37930 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
37931 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
37932
37933         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
37934             cat >>confdefs.h <<\_ACEOF
37935 #define HAVE_BROKEN_VSNPRINTF_DECL 1
37936 _ACEOF
37937
37938         fi
37939     fi
37940 fi
37941
37942 if test "$ac_cv_func_snprintf" = "yes"; then
37943     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
37944 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
37945 if test "${wx_cv_func_snprintf_decl+set}" = set; then
37946   echo $ECHO_N "(cached) $ECHO_C" >&6
37947 else
37948
37949             cat >conftest.$ac_ext <<_ACEOF
37950 /* confdefs.h.  */
37951 _ACEOF
37952 cat confdefs.h >>conftest.$ac_ext
37953 cat >>conftest.$ac_ext <<_ACEOF
37954 /* end confdefs.h.  */
37955
37956                     #include <stdio.h>
37957                     #include <stdarg.h>
37958                     #ifdef __MSL__
37959                     #if __MSL__ >= 0x6000
37960                     namespace std {}
37961                     using namespace std;
37962                     #endif
37963                     #endif
37964
37965 int
37966 main ()
37967 {
37968
37969                     char *buf;
37970                     snprintf(buf, 10u, "%s", "wx");
37971
37972   ;
37973   return 0;
37974 }
37975 _ACEOF
37976 rm -f conftest.$ac_objext
37977 if { (ac_try="$ac_compile"
37978 case "(($ac_try" in
37979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37980   *) ac_try_echo=$ac_try;;
37981 esac
37982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37983   (eval "$ac_compile") 2>conftest.er1
37984   ac_status=$?
37985   grep -v '^ *+' conftest.er1 >conftest.err
37986   rm -f conftest.er1
37987   cat conftest.err >&5
37988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37989   (exit $ac_status); } && {
37990          test -z "$ac_c_werror_flag" ||
37991          test ! -s conftest.err
37992        } && test -s conftest.$ac_objext; then
37993   wx_cv_func_snprintf_decl=yes
37994 else
37995   echo "$as_me: failed program was:" >&5
37996 sed 's/^/| /' conftest.$ac_ext >&5
37997
37998         wx_cv_func_snprintf_decl=no
37999
38000 fi
38001
38002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38003
38004
38005 fi
38006 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
38007 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
38008
38009     if test "$wx_cv_func_snprintf_decl" = "yes"; then
38010         cat >>confdefs.h <<\_ACEOF
38011 #define HAVE_SNPRINTF_DECL 1
38012 _ACEOF
38013
38014     fi
38015
38016     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
38017
38018                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
38019 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
38020 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
38021   echo $ECHO_N "(cached) $ECHO_C" >&6
38022 else
38023
38024                 if test "$cross_compiling" = yes; then
38025
38026                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
38027 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
38028 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
38029 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
38030                         wx_cv_func_snprintf_pos_params=no
38031
38032
38033 else
38034   cat >conftest.$ac_ext <<_ACEOF
38035 /* confdefs.h.  */
38036 _ACEOF
38037 cat confdefs.h >>conftest.$ac_ext
38038 cat >>conftest.$ac_ext <<_ACEOF
38039 /* end confdefs.h.  */
38040
38041                         #include <stdio.h>
38042
38043                         int main (void)
38044                         {
38045                             char buffer[128];
38046                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
38047                             if (strcmp ("2 3 1", buffer) == 0)
38048                                 exit (0);
38049                             exit (1);
38050                         }
38051
38052 _ACEOF
38053 rm -f conftest$ac_exeext
38054 if { (ac_try="$ac_link"
38055 case "(($ac_try" in
38056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38057   *) ac_try_echo=$ac_try;;
38058 esac
38059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38060   (eval "$ac_link") 2>&5
38061   ac_status=$?
38062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38064   { (case "(($ac_try" in
38065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38066   *) ac_try_echo=$ac_try;;
38067 esac
38068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38069   (eval "$ac_try") 2>&5
38070   ac_status=$?
38071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38072   (exit $ac_status); }; }; then
38073   wx_cv_func_snprintf_pos_params=no
38074 else
38075   echo "$as_me: program exited with status $ac_status" >&5
38076 echo "$as_me: failed program was:" >&5
38077 sed 's/^/| /' conftest.$ac_ext >&5
38078
38079 ( exit $ac_status )
38080 wx_cv_func_snprintf_pos_params=yes
38081 fi
38082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38083 fi
38084
38085
38086
38087
38088 fi
38089 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
38090 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
38091
38092         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
38093             cat >>confdefs.h <<\_ACEOF
38094 #define HAVE_UNIX98_PRINTF 1
38095 _ACEOF
38096
38097         fi
38098     fi
38099 fi
38100
38101 if test "$wxUSE_UNICODE" = yes; then
38102
38103             wchar_headers="#include <stdio.h>
38104 #include <wchar.h>"
38105     case "${host}" in
38106         *-*-solaris2* )
38107
38108 for ac_header in widec.h
38109 do
38110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38114   echo $ECHO_N "(cached) $ECHO_C" >&6
38115 else
38116   cat >conftest.$ac_ext <<_ACEOF
38117 /* confdefs.h.  */
38118 _ACEOF
38119 cat confdefs.h >>conftest.$ac_ext
38120 cat >>conftest.$ac_ext <<_ACEOF
38121 /* end confdefs.h.  */
38122 $ac_includes_default
38123
38124 #include <$ac_header>
38125 _ACEOF
38126 rm -f conftest.$ac_objext
38127 if { (ac_try="$ac_compile"
38128 case "(($ac_try" in
38129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38130   *) ac_try_echo=$ac_try;;
38131 esac
38132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38133   (eval "$ac_compile") 2>conftest.er1
38134   ac_status=$?
38135   grep -v '^ *+' conftest.er1 >conftest.err
38136   rm -f conftest.er1
38137   cat conftest.err >&5
38138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38139   (exit $ac_status); } && {
38140          test -z "$ac_c_werror_flag" ||
38141          test ! -s conftest.err
38142        } && test -s conftest.$ac_objext; then
38143   eval "$as_ac_Header=yes"
38144 else
38145   echo "$as_me: failed program was:" >&5
38146 sed 's/^/| /' conftest.$ac_ext >&5
38147
38148         eval "$as_ac_Header=no"
38149 fi
38150
38151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38152 fi
38153 ac_res=`eval echo '${'$as_ac_Header'}'`
38154                { echo "$as_me:$LINENO: result: $ac_res" >&5
38155 echo "${ECHO_T}$ac_res" >&6; }
38156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38157   cat >>confdefs.h <<_ACEOF
38158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38159 _ACEOF
38160
38161 fi
38162
38163 done
38164
38165             if test "$ac_cv_header_widec_h" = "yes"; then
38166                 wchar_headers="$wchar_headers
38167 #include <widec.h>"
38168             fi
38169     esac
38170
38171
38172   for wx_func in putws fputws wprintf vswprintf
38173   do
38174     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38175 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38176 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38177   echo $ECHO_N "(cached) $ECHO_C" >&6
38178 else
38179
38180         cat >conftest.$ac_ext <<_ACEOF
38181
38182             /* confdefs.h.  */
38183 _ACEOF
38184 cat confdefs.h >>conftest.$ac_ext
38185 cat >>conftest.$ac_ext <<_ACEOF
38186 /* end confdefs.h.  */
38187
38188                 $wchar_headers
38189                 $ac_includes_default
38190
38191 int
38192 main ()
38193 {
38194
38195                 #ifndef $wx_func
38196                   &$wx_func;
38197                 #endif
38198
38199
38200   ;
38201   return 0;
38202 }
38203
38204 _ACEOF
38205 rm -f conftest.$ac_objext conftest$ac_exeext
38206 if { (ac_try="$ac_link"
38207 case "(($ac_try" in
38208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38209   *) ac_try_echo=$ac_try;;
38210 esac
38211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38212   (eval "$ac_link") 2>conftest.er1
38213   ac_status=$?
38214   grep -v '^ *+' conftest.er1 >conftest.err
38215   rm -f conftest.er1
38216   cat conftest.err >&5
38217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38218   (exit $ac_status); } && {
38219          test -z "$ac_c_werror_flag" ||
38220          test ! -s conftest.err
38221        } && test -s conftest$ac_exeext &&
38222        $as_test_x conftest$ac_exeext; then
38223   eval wx_cv_func_$wx_func=yes
38224 else
38225   echo "$as_me: failed program was:" >&5
38226 sed 's/^/| /' conftest.$ac_ext >&5
38227
38228         eval wx_cv_func_$wx_func=no
38229 fi
38230
38231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38232       conftest$ac_exeext conftest.$ac_ext
38233
38234 fi
38235 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38236                { echo "$as_me:$LINENO: result: $ac_res" >&5
38237 echo "${ECHO_T}$ac_res" >&6; }
38238
38239     if eval test \$wx_cv_func_$wx_func = yes
38240     then
38241       cat >>confdefs.h <<_ACEOF
38242 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38243 _ACEOF
38244
38245
38246     else
38247       :
38248
38249     fi
38250   done
38251
38252
38253                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
38254 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
38255     cat >conftest.$ac_ext <<_ACEOF
38256 /* confdefs.h.  */
38257 _ACEOF
38258 cat confdefs.h >>conftest.$ac_ext
38259 cat >>conftest.$ac_ext <<_ACEOF
38260 /* end confdefs.h.  */
38261 #include <wchar.h>
38262 int
38263 main ()
38264 {
38265 &_vsnwprintf;
38266   ;
38267   return 0;
38268 }
38269 _ACEOF
38270 rm -f conftest.$ac_objext
38271 if { (ac_try="$ac_compile"
38272 case "(($ac_try" in
38273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38274   *) ac_try_echo=$ac_try;;
38275 esac
38276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38277   (eval "$ac_compile") 2>conftest.er1
38278   ac_status=$?
38279   grep -v '^ *+' conftest.er1 >conftest.err
38280   rm -f conftest.er1
38281   cat conftest.err >&5
38282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38283   (exit $ac_status); } && {
38284          test -z "$ac_c_werror_flag" ||
38285          test ! -s conftest.err
38286        } && test -s conftest.$ac_objext; then
38287   { echo "$as_me:$LINENO: result: yes" >&5
38288 echo "${ECHO_T}yes" >&6; }
38289                     cat >>confdefs.h <<\_ACEOF
38290 #define HAVE__VSNWPRINTF 1
38291 _ACEOF
38292
38293 else
38294   echo "$as_me: failed program was:" >&5
38295 sed 's/^/| /' conftest.$ac_ext >&5
38296
38297         { echo "$as_me:$LINENO: result: no" >&5
38298 echo "${ECHO_T}no" >&6; }
38299 fi
38300
38301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
38302 fi
38303
38304 if test "$wxUSE_FILE" = "yes"; then
38305
38306   for wx_func in fsync
38307   do
38308     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38309 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38310 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38311   echo $ECHO_N "(cached) $ECHO_C" >&6
38312 else
38313
38314         cat >conftest.$ac_ext <<_ACEOF
38315
38316             /* confdefs.h.  */
38317 _ACEOF
38318 cat confdefs.h >>conftest.$ac_ext
38319 cat >>conftest.$ac_ext <<_ACEOF
38320 /* end confdefs.h.  */
38321
38322
38323                 $ac_includes_default
38324
38325 int
38326 main ()
38327 {
38328
38329                 #ifndef $wx_func
38330                   &$wx_func;
38331                 #endif
38332
38333
38334   ;
38335   return 0;
38336 }
38337
38338 _ACEOF
38339 rm -f conftest.$ac_objext conftest$ac_exeext
38340 if { (ac_try="$ac_link"
38341 case "(($ac_try" in
38342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38343   *) ac_try_echo=$ac_try;;
38344 esac
38345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38346   (eval "$ac_link") 2>conftest.er1
38347   ac_status=$?
38348   grep -v '^ *+' conftest.er1 >conftest.err
38349   rm -f conftest.er1
38350   cat conftest.err >&5
38351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38352   (exit $ac_status); } && {
38353          test -z "$ac_c_werror_flag" ||
38354          test ! -s conftest.err
38355        } && test -s conftest$ac_exeext &&
38356        $as_test_x conftest$ac_exeext; then
38357   eval wx_cv_func_$wx_func=yes
38358 else
38359   echo "$as_me: failed program was:" >&5
38360 sed 's/^/| /' conftest.$ac_ext >&5
38361
38362         eval wx_cv_func_$wx_func=no
38363 fi
38364
38365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38366       conftest$ac_exeext conftest.$ac_ext
38367
38368 fi
38369 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38370                { echo "$as_me:$LINENO: result: $ac_res" >&5
38371 echo "${ECHO_T}$ac_res" >&6; }
38372
38373     if eval test \$wx_cv_func_$wx_func = yes
38374     then
38375       cat >>confdefs.h <<_ACEOF
38376 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38377 _ACEOF
38378
38379
38380     else
38381       :
38382
38383     fi
38384   done
38385
38386 fi
38387
38388 ac_ext=cpp
38389 ac_cpp='$CXXCPP $CPPFLAGS'
38390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38393
38394
38395   for wx_func in round
38396   do
38397     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38398 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38399 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38400   echo $ECHO_N "(cached) $ECHO_C" >&6
38401 else
38402
38403         cat >conftest.$ac_ext <<_ACEOF
38404
38405             /* confdefs.h.  */
38406 _ACEOF
38407 cat confdefs.h >>conftest.$ac_ext
38408 cat >>conftest.$ac_ext <<_ACEOF
38409 /* end confdefs.h.  */
38410
38411                 #include <math.h>
38412                 $ac_includes_default
38413
38414 int
38415 main ()
38416 {
38417
38418                 #ifndef $wx_func
38419                   &$wx_func;
38420                 #endif
38421
38422
38423   ;
38424   return 0;
38425 }
38426
38427 _ACEOF
38428 rm -f conftest.$ac_objext conftest$ac_exeext
38429 if { (ac_try="$ac_link"
38430 case "(($ac_try" in
38431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38432   *) ac_try_echo=$ac_try;;
38433 esac
38434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38435   (eval "$ac_link") 2>conftest.er1
38436   ac_status=$?
38437   grep -v '^ *+' conftest.er1 >conftest.err
38438   rm -f conftest.er1
38439   cat conftest.err >&5
38440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38441   (exit $ac_status); } && {
38442          test -z "$ac_cxx_werror_flag" ||
38443          test ! -s conftest.err
38444        } && test -s conftest$ac_exeext &&
38445        $as_test_x conftest$ac_exeext; then
38446   eval wx_cv_func_$wx_func=yes
38447 else
38448   echo "$as_me: failed program was:" >&5
38449 sed 's/^/| /' conftest.$ac_ext >&5
38450
38451         eval wx_cv_func_$wx_func=no
38452 fi
38453
38454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38455       conftest$ac_exeext conftest.$ac_ext
38456
38457 fi
38458 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38459                { echo "$as_me:$LINENO: result: $ac_res" >&5
38460 echo "${ECHO_T}$ac_res" >&6; }
38461
38462     if eval test \$wx_cv_func_$wx_func = yes
38463     then
38464       cat >>confdefs.h <<_ACEOF
38465 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38466 _ACEOF
38467
38468
38469     else
38470       :
38471
38472     fi
38473   done
38474
38475 ac_ext=c
38476 ac_cpp='$CPP $CPPFLAGS'
38477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38480
38481
38482 if test "$TOOLKIT" != "MSW"; then
38483
38484
38485
38486
38487
38488 # Check whether --with-libiconv-prefix was given.
38489 if test "${with_libiconv_prefix+set}" = set; then
38490   withval=$with_libiconv_prefix;
38491     for dir in `echo "$withval" | tr : ' '`; do
38492       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
38493       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
38494     done
38495
38496 fi
38497
38498
38499   { echo "$as_me:$LINENO: checking for iconv" >&5
38500 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
38501 if test "${am_cv_func_iconv+set}" = set; then
38502   echo $ECHO_N "(cached) $ECHO_C" >&6
38503 else
38504
38505     am_cv_func_iconv="no, consider installing GNU libiconv"
38506     am_cv_lib_iconv=no
38507     cat >conftest.$ac_ext <<_ACEOF
38508 /* confdefs.h.  */
38509 _ACEOF
38510 cat confdefs.h >>conftest.$ac_ext
38511 cat >>conftest.$ac_ext <<_ACEOF
38512 /* end confdefs.h.  */
38513 #include <stdlib.h>
38514 #include <iconv.h>
38515 int
38516 main ()
38517 {
38518 iconv_t cd = iconv_open("","");
38519        iconv(cd,NULL,NULL,NULL,NULL);
38520        iconv_close(cd);
38521   ;
38522   return 0;
38523 }
38524 _ACEOF
38525 rm -f conftest.$ac_objext conftest$ac_exeext
38526 if { (ac_try="$ac_link"
38527 case "(($ac_try" in
38528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38529   *) ac_try_echo=$ac_try;;
38530 esac
38531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38532   (eval "$ac_link") 2>conftest.er1
38533   ac_status=$?
38534   grep -v '^ *+' conftest.er1 >conftest.err
38535   rm -f conftest.er1
38536   cat conftest.err >&5
38537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38538   (exit $ac_status); } && {
38539          test -z "$ac_c_werror_flag" ||
38540          test ! -s conftest.err
38541        } && test -s conftest$ac_exeext &&
38542        $as_test_x conftest$ac_exeext; then
38543   am_cv_func_iconv=yes
38544 else
38545   echo "$as_me: failed program was:" >&5
38546 sed 's/^/| /' conftest.$ac_ext >&5
38547
38548
38549 fi
38550
38551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38552       conftest$ac_exeext conftest.$ac_ext
38553     if test "$am_cv_func_iconv" != yes; then
38554       am_save_LIBS="$LIBS"
38555       LIBS="$LIBS -liconv"
38556       cat >conftest.$ac_ext <<_ACEOF
38557 /* confdefs.h.  */
38558 _ACEOF
38559 cat confdefs.h >>conftest.$ac_ext
38560 cat >>conftest.$ac_ext <<_ACEOF
38561 /* end confdefs.h.  */
38562 #include <stdlib.h>
38563 #include <iconv.h>
38564 int
38565 main ()
38566 {
38567 iconv_t cd = iconv_open("","");
38568          iconv(cd,NULL,NULL,NULL,NULL);
38569          iconv_close(cd);
38570   ;
38571   return 0;
38572 }
38573 _ACEOF
38574 rm -f conftest.$ac_objext conftest$ac_exeext
38575 if { (ac_try="$ac_link"
38576 case "(($ac_try" in
38577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38578   *) ac_try_echo=$ac_try;;
38579 esac
38580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38581   (eval "$ac_link") 2>conftest.er1
38582   ac_status=$?
38583   grep -v '^ *+' conftest.er1 >conftest.err
38584   rm -f conftest.er1
38585   cat conftest.err >&5
38586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38587   (exit $ac_status); } && {
38588          test -z "$ac_c_werror_flag" ||
38589          test ! -s conftest.err
38590        } && test -s conftest$ac_exeext &&
38591        $as_test_x conftest$ac_exeext; then
38592   am_cv_lib_iconv=yes
38593         am_cv_func_iconv=yes
38594 else
38595   echo "$as_me: failed program was:" >&5
38596 sed 's/^/| /' conftest.$ac_ext >&5
38597
38598
38599 fi
38600
38601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38602       conftest$ac_exeext conftest.$ac_ext
38603       LIBS="$am_save_LIBS"
38604     fi
38605
38606 fi
38607 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
38608 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
38609   if test "$am_cv_func_iconv" = yes; then
38610
38611 cat >>confdefs.h <<\_ACEOF
38612 #define HAVE_ICONV 1
38613 _ACEOF
38614
38615     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
38616 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
38617 if test "${wx_cv_func_iconv_const+set}" = set; then
38618   echo $ECHO_N "(cached) $ECHO_C" >&6
38619 else
38620   cat >conftest.$ac_ext <<_ACEOF
38621 /* confdefs.h.  */
38622 _ACEOF
38623 cat confdefs.h >>conftest.$ac_ext
38624 cat >>conftest.$ac_ext <<_ACEOF
38625 /* end confdefs.h.  */
38626
38627 #include <stdlib.h>
38628 #include <iconv.h>
38629 extern
38630 #ifdef __cplusplus
38631 "C"
38632 #endif
38633 #if defined(__STDC__) || defined(__cplusplus)
38634 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
38635 #else
38636 size_t iconv();
38637 #endif
38638
38639 int
38640 main ()
38641 {
38642
38643   ;
38644   return 0;
38645 }
38646 _ACEOF
38647 rm -f conftest.$ac_objext
38648 if { (ac_try="$ac_compile"
38649 case "(($ac_try" in
38650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38651   *) ac_try_echo=$ac_try;;
38652 esac
38653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38654   (eval "$ac_compile") 2>conftest.er1
38655   ac_status=$?
38656   grep -v '^ *+' conftest.er1 >conftest.err
38657   rm -f conftest.er1
38658   cat conftest.err >&5
38659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38660   (exit $ac_status); } && {
38661          test -z "$ac_c_werror_flag" ||
38662          test ! -s conftest.err
38663        } && test -s conftest.$ac_objext; then
38664   wx_cv_func_iconv_const="no"
38665 else
38666   echo "$as_me: failed program was:" >&5
38667 sed 's/^/| /' conftest.$ac_ext >&5
38668
38669         wx_cv_func_iconv_const="yes"
38670
38671 fi
38672
38673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38674
38675 fi
38676 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
38677 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
38678
38679     iconv_const=
38680     if test "x$wx_cv_func_iconv_const" = "xyes"; then
38681         iconv_const="const"
38682     fi
38683
38684
38685 cat >>confdefs.h <<_ACEOF
38686 #define ICONV_CONST $iconv_const
38687 _ACEOF
38688
38689   fi
38690   LIBICONV=
38691   if test "$am_cv_lib_iconv" = yes; then
38692     LIBICONV="-liconv"
38693   fi
38694
38695
38696 LIBS="$LIBICONV $LIBS"
38697
38698 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38699
38700 for ac_func in sigaction
38701 do
38702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38706   echo $ECHO_N "(cached) $ECHO_C" >&6
38707 else
38708   cat >conftest.$ac_ext <<_ACEOF
38709 /* confdefs.h.  */
38710 _ACEOF
38711 cat confdefs.h >>conftest.$ac_ext
38712 cat >>conftest.$ac_ext <<_ACEOF
38713 /* end confdefs.h.  */
38714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38716 #define $ac_func innocuous_$ac_func
38717
38718 /* System header to define __stub macros and hopefully few prototypes,
38719     which can conflict with char $ac_func (); below.
38720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38721     <limits.h> exists even on freestanding compilers.  */
38722
38723 #ifdef __STDC__
38724 # include <limits.h>
38725 #else
38726 # include <assert.h>
38727 #endif
38728
38729 #undef $ac_func
38730
38731 /* Override any GCC internal prototype to avoid an error.
38732    Use char because int might match the return type of a GCC
38733    builtin and then its argument prototype would still apply.  */
38734 #ifdef __cplusplus
38735 extern "C"
38736 #endif
38737 char $ac_func ();
38738 /* The GNU C library defines this for functions which it implements
38739     to always fail with ENOSYS.  Some functions are actually named
38740     something starting with __ and the normal name is an alias.  */
38741 #if defined __stub_$ac_func || defined __stub___$ac_func
38742 choke me
38743 #endif
38744
38745 int
38746 main ()
38747 {
38748 return $ac_func ();
38749   ;
38750   return 0;
38751 }
38752 _ACEOF
38753 rm -f conftest.$ac_objext conftest$ac_exeext
38754 if { (ac_try="$ac_link"
38755 case "(($ac_try" in
38756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38757   *) ac_try_echo=$ac_try;;
38758 esac
38759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38760   (eval "$ac_link") 2>conftest.er1
38761   ac_status=$?
38762   grep -v '^ *+' conftest.er1 >conftest.err
38763   rm -f conftest.er1
38764   cat conftest.err >&5
38765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38766   (exit $ac_status); } && {
38767          test -z "$ac_c_werror_flag" ||
38768          test ! -s conftest.err
38769        } && test -s conftest$ac_exeext &&
38770        $as_test_x conftest$ac_exeext; then
38771   eval "$as_ac_var=yes"
38772 else
38773   echo "$as_me: failed program was:" >&5
38774 sed 's/^/| /' conftest.$ac_ext >&5
38775
38776         eval "$as_ac_var=no"
38777 fi
38778
38779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38780       conftest$ac_exeext conftest.$ac_ext
38781 fi
38782 ac_res=`eval echo '${'$as_ac_var'}'`
38783                { echo "$as_me:$LINENO: result: $ac_res" >&5
38784 echo "${ECHO_T}$ac_res" >&6; }
38785 if test `eval echo '${'$as_ac_var'}'` = yes; then
38786   cat >>confdefs.h <<_ACEOF
38787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38788 _ACEOF
38789
38790 fi
38791 done
38792
38793
38794     if test "$ac_cv_func_sigaction" = "no"; then
38795         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
38796 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
38797         wxUSE_ON_FATAL_EXCEPTION=no
38798     fi
38799
38800     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38801       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
38802 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
38803 if test "${wx_cv_type_sa_handler+set}" = set; then
38804   echo $ECHO_N "(cached) $ECHO_C" >&6
38805 else
38806
38807                 ac_ext=cpp
38808 ac_cpp='$CXXCPP $CPPFLAGS'
38809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38812
38813         cat >conftest.$ac_ext <<_ACEOF
38814 /* confdefs.h.  */
38815 _ACEOF
38816 cat confdefs.h >>conftest.$ac_ext
38817 cat >>conftest.$ac_ext <<_ACEOF
38818 /* end confdefs.h.  */
38819 #include <signal.h>
38820 int
38821 main ()
38822 {
38823
38824                         extern void testSigHandler(int);
38825
38826                         struct sigaction sa;
38827                         sa.sa_handler = testSigHandler;
38828
38829   ;
38830   return 0;
38831 }
38832 _ACEOF
38833 rm -f conftest.$ac_objext
38834 if { (ac_try="$ac_compile"
38835 case "(($ac_try" in
38836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38837   *) ac_try_echo=$ac_try;;
38838 esac
38839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38840   (eval "$ac_compile") 2>conftest.er1
38841   ac_status=$?
38842   grep -v '^ *+' conftest.er1 >conftest.err
38843   rm -f conftest.er1
38844   cat conftest.err >&5
38845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38846   (exit $ac_status); } && {
38847          test -z "$ac_cxx_werror_flag" ||
38848          test ! -s conftest.err
38849        } && test -s conftest.$ac_objext; then
38850
38851                         wx_cv_type_sa_handler=int
38852
38853 else
38854   echo "$as_me: failed program was:" >&5
38855 sed 's/^/| /' conftest.$ac_ext >&5
38856
38857
38858                         wx_cv_type_sa_handler=void
38859
38860 fi
38861
38862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38863         ac_ext=c
38864 ac_cpp='$CPP $CPPFLAGS'
38865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38868
38869
38870 fi
38871 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
38872 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
38873
38874       cat >>confdefs.h <<_ACEOF
38875 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
38876 _ACEOF
38877
38878     fi
38879 fi
38880
38881 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38882     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
38883 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
38884 if test "${wx_cv_func_backtrace+set}" = set; then
38885   echo $ECHO_N "(cached) $ECHO_C" >&6
38886 else
38887
38888             ac_ext=cpp
38889 ac_cpp='$CXXCPP $CPPFLAGS'
38890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38893
38894             cat >conftest.$ac_ext <<_ACEOF
38895 /* confdefs.h.  */
38896 _ACEOF
38897 cat confdefs.h >>conftest.$ac_ext
38898 cat >>conftest.$ac_ext <<_ACEOF
38899 /* end confdefs.h.  */
38900 #include <execinfo.h>
38901 int
38902 main ()
38903 {
38904
38905                     void *trace[1];
38906                     char **messages;
38907
38908                     backtrace(trace, 1);
38909                     messages = backtrace_symbols(trace, 1);
38910
38911   ;
38912   return 0;
38913 }
38914 _ACEOF
38915 rm -f conftest.$ac_objext
38916 if { (ac_try="$ac_compile"
38917 case "(($ac_try" in
38918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38919   *) ac_try_echo=$ac_try;;
38920 esac
38921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38922   (eval "$ac_compile") 2>conftest.er1
38923   ac_status=$?
38924   grep -v '^ *+' conftest.er1 >conftest.err
38925   rm -f conftest.er1
38926   cat conftest.err >&5
38927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38928   (exit $ac_status); } && {
38929          test -z "$ac_cxx_werror_flag" ||
38930          test ! -s conftest.err
38931        } && test -s conftest.$ac_objext; then
38932   wx_cv_func_backtrace=yes
38933 else
38934   echo "$as_me: failed program was:" >&5
38935 sed 's/^/| /' conftest.$ac_ext >&5
38936
38937         wx_cv_func_backtrace=no
38938
38939 fi
38940
38941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38942             ac_ext=c
38943 ac_cpp='$CPP $CPPFLAGS'
38944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38947
38948
38949
38950 fi
38951 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
38952 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
38953
38954
38955     if test "$wx_cv_func_backtrace" = "no"; then
38956         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
38957 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
38958         wxUSE_STACKWALKER=no
38959     else
38960         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
38961 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
38962 if test "${wx_cv_func_cxa_demangle+set}" = set; then
38963   echo $ECHO_N "(cached) $ECHO_C" >&6
38964 else
38965
38966                 ac_ext=cpp
38967 ac_cpp='$CXXCPP $CPPFLAGS'
38968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38971
38972                 cat >conftest.$ac_ext <<_ACEOF
38973 /* confdefs.h.  */
38974 _ACEOF
38975 cat confdefs.h >>conftest.$ac_ext
38976 cat >>conftest.$ac_ext <<_ACEOF
38977 /* end confdefs.h.  */
38978 #include <cxxabi.h>
38979 int
38980 main ()
38981 {
38982
38983                         int rc;
38984                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
38985
38986   ;
38987   return 0;
38988 }
38989 _ACEOF
38990 rm -f conftest.$ac_objext conftest$ac_exeext
38991 if { (ac_try="$ac_link"
38992 case "(($ac_try" in
38993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38994   *) ac_try_echo=$ac_try;;
38995 esac
38996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38997   (eval "$ac_link") 2>conftest.er1
38998   ac_status=$?
38999   grep -v '^ *+' conftest.er1 >conftest.err
39000   rm -f conftest.er1
39001   cat conftest.err >&5
39002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39003   (exit $ac_status); } && {
39004          test -z "$ac_cxx_werror_flag" ||
39005          test ! -s conftest.err
39006        } && test -s conftest$ac_exeext &&
39007        $as_test_x conftest$ac_exeext; then
39008   wx_cv_func_cxa_demangle=yes
39009 else
39010   echo "$as_me: failed program was:" >&5
39011 sed 's/^/| /' conftest.$ac_ext >&5
39012
39013         wx_cv_func_cxa_demangle=no
39014
39015 fi
39016
39017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39018       conftest$ac_exeext conftest.$ac_ext
39019                 ac_ext=c
39020 ac_cpp='$CPP $CPPFLAGS'
39021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39024
39025
39026
39027 fi
39028 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
39029 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
39030
39031         if test "$wx_cv_func_cxa_demangle" = "yes"; then
39032             cat >>confdefs.h <<\_ACEOF
39033 #define HAVE_CXA_DEMANGLE 1
39034 _ACEOF
39035
39036         fi
39037     fi
39038 fi
39039
39040 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
39041     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
39042 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
39043     wxUSE_STACKWALKER=no
39044 fi
39045
39046
39047
39048
39049 for ac_func in mkstemp mktemp
39050 do
39051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39055   echo $ECHO_N "(cached) $ECHO_C" >&6
39056 else
39057   cat >conftest.$ac_ext <<_ACEOF
39058 /* confdefs.h.  */
39059 _ACEOF
39060 cat confdefs.h >>conftest.$ac_ext
39061 cat >>conftest.$ac_ext <<_ACEOF
39062 /* end confdefs.h.  */
39063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39065 #define $ac_func innocuous_$ac_func
39066
39067 /* System header to define __stub macros and hopefully few prototypes,
39068     which can conflict with char $ac_func (); below.
39069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39070     <limits.h> exists even on freestanding compilers.  */
39071
39072 #ifdef __STDC__
39073 # include <limits.h>
39074 #else
39075 # include <assert.h>
39076 #endif
39077
39078 #undef $ac_func
39079
39080 /* Override any GCC internal prototype to avoid an error.
39081    Use char because int might match the return type of a GCC
39082    builtin and then its argument prototype would still apply.  */
39083 #ifdef __cplusplus
39084 extern "C"
39085 #endif
39086 char $ac_func ();
39087 /* The GNU C library defines this for functions which it implements
39088     to always fail with ENOSYS.  Some functions are actually named
39089     something starting with __ and the normal name is an alias.  */
39090 #if defined __stub_$ac_func || defined __stub___$ac_func
39091 choke me
39092 #endif
39093
39094 int
39095 main ()
39096 {
39097 return $ac_func ();
39098   ;
39099   return 0;
39100 }
39101 _ACEOF
39102 rm -f conftest.$ac_objext conftest$ac_exeext
39103 if { (ac_try="$ac_link"
39104 case "(($ac_try" in
39105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39106   *) ac_try_echo=$ac_try;;
39107 esac
39108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39109   (eval "$ac_link") 2>conftest.er1
39110   ac_status=$?
39111   grep -v '^ *+' conftest.er1 >conftest.err
39112   rm -f conftest.er1
39113   cat conftest.err >&5
39114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39115   (exit $ac_status); } && {
39116          test -z "$ac_c_werror_flag" ||
39117          test ! -s conftest.err
39118        } && test -s conftest$ac_exeext &&
39119        $as_test_x conftest$ac_exeext; then
39120   eval "$as_ac_var=yes"
39121 else
39122   echo "$as_me: failed program was:" >&5
39123 sed 's/^/| /' conftest.$ac_ext >&5
39124
39125         eval "$as_ac_var=no"
39126 fi
39127
39128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39129       conftest$ac_exeext conftest.$ac_ext
39130 fi
39131 ac_res=`eval echo '${'$as_ac_var'}'`
39132                { echo "$as_me:$LINENO: result: $ac_res" >&5
39133 echo "${ECHO_T}$ac_res" >&6; }
39134 if test `eval echo '${'$as_ac_var'}'` = yes; then
39135   cat >>confdefs.h <<_ACEOF
39136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39137 _ACEOF
39138  break
39139 fi
39140 done
39141
39142
39143 { echo "$as_me:$LINENO: checking for statfs" >&5
39144 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
39145 if test "${wx_cv_func_statfs+set}" = set; then
39146   echo $ECHO_N "(cached) $ECHO_C" >&6
39147 else
39148   cat >conftest.$ac_ext <<_ACEOF
39149 /* confdefs.h.  */
39150 _ACEOF
39151 cat confdefs.h >>conftest.$ac_ext
39152 cat >>conftest.$ac_ext <<_ACEOF
39153 /* end confdefs.h.  */
39154
39155              #if defined(__BSD__)
39156              #include <sys/param.h>
39157              #include <sys/mount.h>
39158              #else
39159              #include <sys/vfs.h>
39160              #endif
39161
39162 int
39163 main ()
39164 {
39165
39166              long l;
39167              struct statfs fs;
39168              statfs("/", &fs);
39169              l = fs.f_bsize;
39170              l += fs.f_blocks;
39171              l += fs.f_bavail;
39172
39173   ;
39174   return 0;
39175 }
39176 _ACEOF
39177 rm -f conftest.$ac_objext
39178 if { (ac_try="$ac_compile"
39179 case "(($ac_try" in
39180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39181   *) ac_try_echo=$ac_try;;
39182 esac
39183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39184   (eval "$ac_compile") 2>conftest.er1
39185   ac_status=$?
39186   grep -v '^ *+' conftest.er1 >conftest.err
39187   rm -f conftest.er1
39188   cat conftest.err >&5
39189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39190   (exit $ac_status); } && {
39191          test -z "$ac_c_werror_flag" ||
39192          test ! -s conftest.err
39193        } && test -s conftest.$ac_objext; then
39194   wx_cv_func_statfs=yes
39195 else
39196   echo "$as_me: failed program was:" >&5
39197 sed 's/^/| /' conftest.$ac_ext >&5
39198
39199         wx_cv_func_statfs=no
39200
39201 fi
39202
39203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39204
39205 fi
39206 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
39207 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
39208
39209 if test "$wx_cv_func_statfs" = "yes"; then
39210         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
39211 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
39212 if test "${wx_cv_func_statfs_decl+set}" = set; then
39213   echo $ECHO_N "(cached) $ECHO_C" >&6
39214 else
39215   ac_ext=cpp
39216 ac_cpp='$CXXCPP $CPPFLAGS'
39217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39220
39221         cat >conftest.$ac_ext <<_ACEOF
39222 /* confdefs.h.  */
39223 _ACEOF
39224 cat confdefs.h >>conftest.$ac_ext
39225 cat >>conftest.$ac_ext <<_ACEOF
39226 /* end confdefs.h.  */
39227
39228                  #if defined(__BSD__)
39229                  #include <sys/param.h>
39230                  #include <sys/mount.h>
39231                  #else
39232                  #include <sys/vfs.h>
39233                  #endif
39234
39235 int
39236 main ()
39237 {
39238
39239                 struct statfs fs;
39240                 statfs("", &fs);
39241
39242   ;
39243   return 0;
39244 }
39245 _ACEOF
39246 rm -f conftest.$ac_objext
39247 if { (ac_try="$ac_compile"
39248 case "(($ac_try" in
39249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39250   *) ac_try_echo=$ac_try;;
39251 esac
39252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39253   (eval "$ac_compile") 2>conftest.er1
39254   ac_status=$?
39255   grep -v '^ *+' conftest.er1 >conftest.err
39256   rm -f conftest.er1
39257   cat conftest.err >&5
39258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39259   (exit $ac_status); } && {
39260          test -z "$ac_cxx_werror_flag" ||
39261          test ! -s conftest.err
39262        } && test -s conftest.$ac_objext; then
39263   wx_cv_func_statfs_decl=yes
39264 else
39265   echo "$as_me: failed program was:" >&5
39266 sed 's/^/| /' conftest.$ac_ext >&5
39267
39268         wx_cv_func_statfs_decl=no
39269
39270 fi
39271
39272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39273         ac_ext=c
39274 ac_cpp='$CPP $CPPFLAGS'
39275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39278
39279
39280 fi
39281 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
39282 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
39283
39284     if test "$wx_cv_func_statfs_decl" = "yes"; then
39285         cat >>confdefs.h <<\_ACEOF
39286 #define HAVE_STATFS_DECL 1
39287 _ACEOF
39288
39289     fi
39290
39291     wx_cv_type_statvfs_t="struct statfs"
39292     cat >>confdefs.h <<\_ACEOF
39293 #define HAVE_STATFS 1
39294 _ACEOF
39295
39296 else
39297     { echo "$as_me:$LINENO: checking for statvfs" >&5
39298 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
39299 if test "${wx_cv_func_statvfs+set}" = set; then
39300   echo $ECHO_N "(cached) $ECHO_C" >&6
39301 else
39302   cat >conftest.$ac_ext <<_ACEOF
39303 /* confdefs.h.  */
39304 _ACEOF
39305 cat confdefs.h >>conftest.$ac_ext
39306 cat >>conftest.$ac_ext <<_ACEOF
39307 /* end confdefs.h.  */
39308
39309                 #include <stddef.h>
39310                 #include <sys/statvfs.h>
39311
39312 int
39313 main ()
39314 {
39315
39316                 statvfs("/", NULL);
39317
39318   ;
39319   return 0;
39320 }
39321 _ACEOF
39322 rm -f conftest.$ac_objext
39323 if { (ac_try="$ac_compile"
39324 case "(($ac_try" in
39325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39326   *) ac_try_echo=$ac_try;;
39327 esac
39328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39329   (eval "$ac_compile") 2>conftest.er1
39330   ac_status=$?
39331   grep -v '^ *+' conftest.er1 >conftest.err
39332   rm -f conftest.er1
39333   cat conftest.err >&5
39334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39335   (exit $ac_status); } && {
39336          test -z "$ac_c_werror_flag" ||
39337          test ! -s conftest.err
39338        } && test -s conftest.$ac_objext; then
39339   wx_cv_func_statvfs=yes
39340 else
39341   echo "$as_me: failed program was:" >&5
39342 sed 's/^/| /' conftest.$ac_ext >&5
39343
39344         wx_cv_func_statvfs=no
39345
39346 fi
39347
39348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39349
39350 fi
39351 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
39352 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
39353
39354     if test "$wx_cv_func_statvfs" = "yes"; then
39355                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
39356 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
39357 if test "${wx_cv_type_statvfs_t+set}" = set; then
39358   echo $ECHO_N "(cached) $ECHO_C" >&6
39359 else
39360   ac_ext=cpp
39361 ac_cpp='$CXXCPP $CPPFLAGS'
39362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39365
39366             cat >conftest.$ac_ext <<_ACEOF
39367 /* confdefs.h.  */
39368 _ACEOF
39369 cat confdefs.h >>conftest.$ac_ext
39370 cat >>conftest.$ac_ext <<_ACEOF
39371 /* end confdefs.h.  */
39372
39373                     #include <sys/statvfs.h>
39374
39375 int
39376 main ()
39377 {
39378
39379                     long l;
39380                     statvfs_t fs;
39381                     statvfs("/", &fs);
39382                     l = fs.f_bsize;
39383                     l += fs.f_blocks;
39384                     l += fs.f_bavail;
39385
39386   ;
39387   return 0;
39388 }
39389 _ACEOF
39390 rm -f conftest.$ac_objext
39391 if { (ac_try="$ac_compile"
39392 case "(($ac_try" in
39393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39394   *) ac_try_echo=$ac_try;;
39395 esac
39396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39397   (eval "$ac_compile") 2>conftest.er1
39398   ac_status=$?
39399   grep -v '^ *+' conftest.er1 >conftest.err
39400   rm -f conftest.er1
39401   cat conftest.err >&5
39402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39403   (exit $ac_status); } && {
39404          test -z "$ac_cxx_werror_flag" ||
39405          test ! -s conftest.err
39406        } && test -s conftest.$ac_objext; then
39407   wx_cv_type_statvfs_t=statvfs_t
39408 else
39409   echo "$as_me: failed program was:" >&5
39410 sed 's/^/| /' conftest.$ac_ext >&5
39411
39412
39413                     cat >conftest.$ac_ext <<_ACEOF
39414 /* confdefs.h.  */
39415 _ACEOF
39416 cat confdefs.h >>conftest.$ac_ext
39417 cat >>conftest.$ac_ext <<_ACEOF
39418 /* end confdefs.h.  */
39419
39420                             #include <sys/statvfs.h>
39421
39422 int
39423 main ()
39424 {
39425
39426                             long l;
39427                             struct statvfs fs;
39428                             statvfs("/", &fs);
39429                             l = fs.f_bsize;
39430                             l += fs.f_blocks;
39431                             l += fs.f_bavail;
39432
39433   ;
39434   return 0;
39435 }
39436 _ACEOF
39437 rm -f conftest.$ac_objext
39438 if { (ac_try="$ac_compile"
39439 case "(($ac_try" in
39440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39441   *) ac_try_echo=$ac_try;;
39442 esac
39443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39444   (eval "$ac_compile") 2>conftest.er1
39445   ac_status=$?
39446   grep -v '^ *+' conftest.er1 >conftest.err
39447   rm -f conftest.er1
39448   cat conftest.err >&5
39449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39450   (exit $ac_status); } && {
39451          test -z "$ac_cxx_werror_flag" ||
39452          test ! -s conftest.err
39453        } && test -s conftest.$ac_objext; then
39454   wx_cv_type_statvfs_t="struct statvfs"
39455 else
39456   echo "$as_me: failed program was:" >&5
39457 sed 's/^/| /' conftest.$ac_ext >&5
39458
39459         wx_cv_type_statvfs_t="unknown"
39460
39461 fi
39462
39463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39464
39465
39466 fi
39467
39468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39469             ac_ext=c
39470 ac_cpp='$CPP $CPPFLAGS'
39471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39474
39475
39476 fi
39477 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
39478 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
39479
39480         if test "$wx_cv_type_statvfs_t" != "unknown"; then
39481             cat >>confdefs.h <<\_ACEOF
39482 #define HAVE_STATVFS 1
39483 _ACEOF
39484
39485         fi
39486     else
39487                 wx_cv_type_statvfs_t="unknown"
39488     fi
39489 fi
39490
39491 if test "$wx_cv_type_statvfs_t" != "unknown"; then
39492     cat >>confdefs.h <<_ACEOF
39493 #define WX_STATFS_T $wx_cv_type_statvfs_t
39494 _ACEOF
39495
39496 else
39497     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
39498 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
39499 fi
39500
39501 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39502
39503
39504 for ac_func in fcntl flock
39505 do
39506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39507 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39509 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39510   echo $ECHO_N "(cached) $ECHO_C" >&6
39511 else
39512   cat >conftest.$ac_ext <<_ACEOF
39513 /* confdefs.h.  */
39514 _ACEOF
39515 cat confdefs.h >>conftest.$ac_ext
39516 cat >>conftest.$ac_ext <<_ACEOF
39517 /* end confdefs.h.  */
39518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39520 #define $ac_func innocuous_$ac_func
39521
39522 /* System header to define __stub macros and hopefully few prototypes,
39523     which can conflict with char $ac_func (); below.
39524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39525     <limits.h> exists even on freestanding compilers.  */
39526
39527 #ifdef __STDC__
39528 # include <limits.h>
39529 #else
39530 # include <assert.h>
39531 #endif
39532
39533 #undef $ac_func
39534
39535 /* Override any GCC internal prototype to avoid an error.
39536    Use char because int might match the return type of a GCC
39537    builtin and then its argument prototype would still apply.  */
39538 #ifdef __cplusplus
39539 extern "C"
39540 #endif
39541 char $ac_func ();
39542 /* The GNU C library defines this for functions which it implements
39543     to always fail with ENOSYS.  Some functions are actually named
39544     something starting with __ and the normal name is an alias.  */
39545 #if defined __stub_$ac_func || defined __stub___$ac_func
39546 choke me
39547 #endif
39548
39549 int
39550 main ()
39551 {
39552 return $ac_func ();
39553   ;
39554   return 0;
39555 }
39556 _ACEOF
39557 rm -f conftest.$ac_objext conftest$ac_exeext
39558 if { (ac_try="$ac_link"
39559 case "(($ac_try" in
39560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39561   *) ac_try_echo=$ac_try;;
39562 esac
39563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39564   (eval "$ac_link") 2>conftest.er1
39565   ac_status=$?
39566   grep -v '^ *+' conftest.er1 >conftest.err
39567   rm -f conftest.er1
39568   cat conftest.err >&5
39569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39570   (exit $ac_status); } && {
39571          test -z "$ac_c_werror_flag" ||
39572          test ! -s conftest.err
39573        } && test -s conftest$ac_exeext &&
39574        $as_test_x conftest$ac_exeext; then
39575   eval "$as_ac_var=yes"
39576 else
39577   echo "$as_me: failed program was:" >&5
39578 sed 's/^/| /' conftest.$ac_ext >&5
39579
39580         eval "$as_ac_var=no"
39581 fi
39582
39583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39584       conftest$ac_exeext conftest.$ac_ext
39585 fi
39586 ac_res=`eval echo '${'$as_ac_var'}'`
39587                { echo "$as_me:$LINENO: result: $ac_res" >&5
39588 echo "${ECHO_T}$ac_res" >&6; }
39589 if test `eval echo '${'$as_ac_var'}'` = yes; then
39590   cat >>confdefs.h <<_ACEOF
39591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39592 _ACEOF
39593  break
39594 fi
39595 done
39596
39597
39598     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
39599         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
39600 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
39601         wxUSE_SNGLINST_CHECKER=no
39602     fi
39603 fi
39604
39605
39606
39607 for ac_func in setenv putenv
39608 do
39609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39613   echo $ECHO_N "(cached) $ECHO_C" >&6
39614 else
39615   cat >conftest.$ac_ext <<_ACEOF
39616 /* confdefs.h.  */
39617 _ACEOF
39618 cat confdefs.h >>conftest.$ac_ext
39619 cat >>conftest.$ac_ext <<_ACEOF
39620 /* end confdefs.h.  */
39621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39623 #define $ac_func innocuous_$ac_func
39624
39625 /* System header to define __stub macros and hopefully few prototypes,
39626     which can conflict with char $ac_func (); below.
39627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39628     <limits.h> exists even on freestanding compilers.  */
39629
39630 #ifdef __STDC__
39631 # include <limits.h>
39632 #else
39633 # include <assert.h>
39634 #endif
39635
39636 #undef $ac_func
39637
39638 /* Override any GCC internal prototype to avoid an error.
39639    Use char because int might match the return type of a GCC
39640    builtin and then its argument prototype would still apply.  */
39641 #ifdef __cplusplus
39642 extern "C"
39643 #endif
39644 char $ac_func ();
39645 /* The GNU C library defines this for functions which it implements
39646     to always fail with ENOSYS.  Some functions are actually named
39647     something starting with __ and the normal name is an alias.  */
39648 #if defined __stub_$ac_func || defined __stub___$ac_func
39649 choke me
39650 #endif
39651
39652 int
39653 main ()
39654 {
39655 return $ac_func ();
39656   ;
39657   return 0;
39658 }
39659 _ACEOF
39660 rm -f conftest.$ac_objext conftest$ac_exeext
39661 if { (ac_try="$ac_link"
39662 case "(($ac_try" in
39663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39664   *) ac_try_echo=$ac_try;;
39665 esac
39666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39667   (eval "$ac_link") 2>conftest.er1
39668   ac_status=$?
39669   grep -v '^ *+' conftest.er1 >conftest.err
39670   rm -f conftest.er1
39671   cat conftest.err >&5
39672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39673   (exit $ac_status); } && {
39674          test -z "$ac_c_werror_flag" ||
39675          test ! -s conftest.err
39676        } && test -s conftest$ac_exeext &&
39677        $as_test_x conftest$ac_exeext; then
39678   eval "$as_ac_var=yes"
39679 else
39680   echo "$as_me: failed program was:" >&5
39681 sed 's/^/| /' conftest.$ac_ext >&5
39682
39683         eval "$as_ac_var=no"
39684 fi
39685
39686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39687       conftest$ac_exeext conftest.$ac_ext
39688 fi
39689 ac_res=`eval echo '${'$as_ac_var'}'`
39690                { echo "$as_me:$LINENO: result: $ac_res" >&5
39691 echo "${ECHO_T}$ac_res" >&6; }
39692 if test `eval echo '${'$as_ac_var'}'` = yes; then
39693   cat >>confdefs.h <<_ACEOF
39694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39695 _ACEOF
39696  break
39697 fi
39698 done
39699
39700 if test "$ac_cv_func_setenv" = "yes"; then
39701
39702 for ac_func in unsetenv
39703 do
39704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39708   echo $ECHO_N "(cached) $ECHO_C" >&6
39709 else
39710   cat >conftest.$ac_ext <<_ACEOF
39711 /* confdefs.h.  */
39712 _ACEOF
39713 cat confdefs.h >>conftest.$ac_ext
39714 cat >>conftest.$ac_ext <<_ACEOF
39715 /* end confdefs.h.  */
39716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39718 #define $ac_func innocuous_$ac_func
39719
39720 /* System header to define __stub macros and hopefully few prototypes,
39721     which can conflict with char $ac_func (); below.
39722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39723     <limits.h> exists even on freestanding compilers.  */
39724
39725 #ifdef __STDC__
39726 # include <limits.h>
39727 #else
39728 # include <assert.h>
39729 #endif
39730
39731 #undef $ac_func
39732
39733 /* Override any GCC internal prototype to avoid an error.
39734    Use char because int might match the return type of a GCC
39735    builtin and then its argument prototype would still apply.  */
39736 #ifdef __cplusplus
39737 extern "C"
39738 #endif
39739 char $ac_func ();
39740 /* The GNU C library defines this for functions which it implements
39741     to always fail with ENOSYS.  Some functions are actually named
39742     something starting with __ and the normal name is an alias.  */
39743 #if defined __stub_$ac_func || defined __stub___$ac_func
39744 choke me
39745 #endif
39746
39747 int
39748 main ()
39749 {
39750 return $ac_func ();
39751   ;
39752   return 0;
39753 }
39754 _ACEOF
39755 rm -f conftest.$ac_objext conftest$ac_exeext
39756 if { (ac_try="$ac_link"
39757 case "(($ac_try" in
39758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39759   *) ac_try_echo=$ac_try;;
39760 esac
39761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39762   (eval "$ac_link") 2>conftest.er1
39763   ac_status=$?
39764   grep -v '^ *+' conftest.er1 >conftest.err
39765   rm -f conftest.er1
39766   cat conftest.err >&5
39767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39768   (exit $ac_status); } && {
39769          test -z "$ac_c_werror_flag" ||
39770          test ! -s conftest.err
39771        } && test -s conftest$ac_exeext &&
39772        $as_test_x conftest$ac_exeext; then
39773   eval "$as_ac_var=yes"
39774 else
39775   echo "$as_me: failed program was:" >&5
39776 sed 's/^/| /' conftest.$ac_ext >&5
39777
39778         eval "$as_ac_var=no"
39779 fi
39780
39781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39782       conftest$ac_exeext conftest.$ac_ext
39783 fi
39784 ac_res=`eval echo '${'$as_ac_var'}'`
39785                { echo "$as_me:$LINENO: result: $ac_res" >&5
39786 echo "${ECHO_T}$ac_res" >&6; }
39787 if test `eval echo '${'$as_ac_var'}'` = yes; then
39788   cat >>confdefs.h <<_ACEOF
39789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39790 _ACEOF
39791
39792 fi
39793 done
39794
39795 fi
39796
39797 HAVE_SOME_SLEEP_FUNC=0
39798 if test "$USE_BEOS" = 1; then
39799             cat >>confdefs.h <<\_ACEOF
39800 #define HAVE_SLEEP 1
39801 _ACEOF
39802
39803     HAVE_SOME_SLEEP_FUNC=1
39804 fi
39805
39806 if test "$USE_DARWIN" = 1; then
39807             cat >>confdefs.h <<\_ACEOF
39808 #define HAVE_USLEEP 1
39809 _ACEOF
39810
39811     HAVE_SOME_SLEEP_FUNC=1
39812 fi
39813
39814 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
39815         POSIX4_LINK=
39816
39817 for ac_func in nanosleep
39818 do
39819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39820 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39823   echo $ECHO_N "(cached) $ECHO_C" >&6
39824 else
39825   cat >conftest.$ac_ext <<_ACEOF
39826 /* confdefs.h.  */
39827 _ACEOF
39828 cat confdefs.h >>conftest.$ac_ext
39829 cat >>conftest.$ac_ext <<_ACEOF
39830 /* end confdefs.h.  */
39831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39833 #define $ac_func innocuous_$ac_func
39834
39835 /* System header to define __stub macros and hopefully few prototypes,
39836     which can conflict with char $ac_func (); below.
39837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39838     <limits.h> exists even on freestanding compilers.  */
39839
39840 #ifdef __STDC__
39841 # include <limits.h>
39842 #else
39843 # include <assert.h>
39844 #endif
39845
39846 #undef $ac_func
39847
39848 /* Override any GCC internal prototype to avoid an error.
39849    Use char because int might match the return type of a GCC
39850    builtin and then its argument prototype would still apply.  */
39851 #ifdef __cplusplus
39852 extern "C"
39853 #endif
39854 char $ac_func ();
39855 /* The GNU C library defines this for functions which it implements
39856     to always fail with ENOSYS.  Some functions are actually named
39857     something starting with __ and the normal name is an alias.  */
39858 #if defined __stub_$ac_func || defined __stub___$ac_func
39859 choke me
39860 #endif
39861
39862 int
39863 main ()
39864 {
39865 return $ac_func ();
39866   ;
39867   return 0;
39868 }
39869 _ACEOF
39870 rm -f conftest.$ac_objext conftest$ac_exeext
39871 if { (ac_try="$ac_link"
39872 case "(($ac_try" in
39873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39874   *) ac_try_echo=$ac_try;;
39875 esac
39876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39877   (eval "$ac_link") 2>conftest.er1
39878   ac_status=$?
39879   grep -v '^ *+' conftest.er1 >conftest.err
39880   rm -f conftest.er1
39881   cat conftest.err >&5
39882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39883   (exit $ac_status); } && {
39884          test -z "$ac_c_werror_flag" ||
39885          test ! -s conftest.err
39886        } && test -s conftest$ac_exeext &&
39887        $as_test_x conftest$ac_exeext; then
39888   eval "$as_ac_var=yes"
39889 else
39890   echo "$as_me: failed program was:" >&5
39891 sed 's/^/| /' conftest.$ac_ext >&5
39892
39893         eval "$as_ac_var=no"
39894 fi
39895
39896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39897       conftest$ac_exeext conftest.$ac_ext
39898 fi
39899 ac_res=`eval echo '${'$as_ac_var'}'`
39900                { echo "$as_me:$LINENO: result: $ac_res" >&5
39901 echo "${ECHO_T}$ac_res" >&6; }
39902 if test `eval echo '${'$as_ac_var'}'` = yes; then
39903   cat >>confdefs.h <<_ACEOF
39904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39905 _ACEOF
39906  cat >>confdefs.h <<\_ACEOF
39907 #define HAVE_NANOSLEEP 1
39908 _ACEOF
39909
39910 else
39911
39912             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
39913 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
39914 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
39915   echo $ECHO_N "(cached) $ECHO_C" >&6
39916 else
39917   ac_check_lib_save_LIBS=$LIBS
39918 LIBS="-lposix4  $LIBS"
39919 cat >conftest.$ac_ext <<_ACEOF
39920 /* confdefs.h.  */
39921 _ACEOF
39922 cat confdefs.h >>conftest.$ac_ext
39923 cat >>conftest.$ac_ext <<_ACEOF
39924 /* end confdefs.h.  */
39925
39926 /* Override any GCC internal prototype to avoid an error.
39927    Use char because int might match the return type of a GCC
39928    builtin and then its argument prototype would still apply.  */
39929 #ifdef __cplusplus
39930 extern "C"
39931 #endif
39932 char nanosleep ();
39933 int
39934 main ()
39935 {
39936 return nanosleep ();
39937   ;
39938   return 0;
39939 }
39940 _ACEOF
39941 rm -f conftest.$ac_objext conftest$ac_exeext
39942 if { (ac_try="$ac_link"
39943 case "(($ac_try" in
39944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39945   *) ac_try_echo=$ac_try;;
39946 esac
39947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39948   (eval "$ac_link") 2>conftest.er1
39949   ac_status=$?
39950   grep -v '^ *+' conftest.er1 >conftest.err
39951   rm -f conftest.er1
39952   cat conftest.err >&5
39953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954   (exit $ac_status); } && {
39955          test -z "$ac_c_werror_flag" ||
39956          test ! -s conftest.err
39957        } && test -s conftest$ac_exeext &&
39958        $as_test_x conftest$ac_exeext; then
39959   ac_cv_lib_posix4_nanosleep=yes
39960 else
39961   echo "$as_me: failed program was:" >&5
39962 sed 's/^/| /' conftest.$ac_ext >&5
39963
39964         ac_cv_lib_posix4_nanosleep=no
39965 fi
39966
39967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39968       conftest$ac_exeext conftest.$ac_ext
39969 LIBS=$ac_check_lib_save_LIBS
39970 fi
39971 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
39972 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
39973 if test $ac_cv_lib_posix4_nanosleep = yes; then
39974
39975                     cat >>confdefs.h <<\_ACEOF
39976 #define HAVE_NANOSLEEP 1
39977 _ACEOF
39978
39979                     POSIX4_LINK=" -lposix4"
39980
39981 else
39982
39983
39984   for wx_func in usleep
39985   do
39986     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39987 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39988 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39989   echo $ECHO_N "(cached) $ECHO_C" >&6
39990 else
39991
39992         cat >conftest.$ac_ext <<_ACEOF
39993
39994             /* confdefs.h.  */
39995 _ACEOF
39996 cat confdefs.h >>conftest.$ac_ext
39997 cat >>conftest.$ac_ext <<_ACEOF
39998 /* end confdefs.h.  */
39999
40000
40001                 $ac_includes_default
40002
40003 int
40004 main ()
40005 {
40006
40007                 #ifndef $wx_func
40008                   &$wx_func;
40009                 #endif
40010
40011
40012   ;
40013   return 0;
40014 }
40015
40016 _ACEOF
40017 rm -f conftest.$ac_objext conftest$ac_exeext
40018 if { (ac_try="$ac_link"
40019 case "(($ac_try" in
40020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40021   *) ac_try_echo=$ac_try;;
40022 esac
40023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40024   (eval "$ac_link") 2>conftest.er1
40025   ac_status=$?
40026   grep -v '^ *+' conftest.er1 >conftest.err
40027   rm -f conftest.er1
40028   cat conftest.err >&5
40029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40030   (exit $ac_status); } && {
40031          test -z "$ac_c_werror_flag" ||
40032          test ! -s conftest.err
40033        } && test -s conftest$ac_exeext &&
40034        $as_test_x conftest$ac_exeext; then
40035   eval wx_cv_func_$wx_func=yes
40036 else
40037   echo "$as_me: failed program was:" >&5
40038 sed 's/^/| /' conftest.$ac_ext >&5
40039
40040         eval wx_cv_func_$wx_func=no
40041 fi
40042
40043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40044       conftest$ac_exeext conftest.$ac_ext
40045
40046 fi
40047 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40048                { echo "$as_me:$LINENO: result: $ac_res" >&5
40049 echo "${ECHO_T}$ac_res" >&6; }
40050
40051     if eval test \$wx_cv_func_$wx_func = yes
40052     then
40053       cat >>confdefs.h <<_ACEOF
40054 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40055 _ACEOF
40056
40057
40058     else
40059       :
40060       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
40061 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
40062
40063     fi
40064   done
40065
40066
40067
40068 fi
40069
40070
40071
40072 fi
40073 done
40074
40075 fi
40076
40077
40078   for wx_func in uname
40079   do
40080     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40081 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40082 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40083   echo $ECHO_N "(cached) $ECHO_C" >&6
40084 else
40085
40086         cat >conftest.$ac_ext <<_ACEOF
40087
40088             /* confdefs.h.  */
40089 _ACEOF
40090 cat confdefs.h >>conftest.$ac_ext
40091 cat >>conftest.$ac_ext <<_ACEOF
40092 /* end confdefs.h.  */
40093
40094                 #include <sys/utsname.h>
40095                 $ac_includes_default
40096
40097 int
40098 main ()
40099 {
40100
40101                 #ifndef $wx_func
40102                   &$wx_func;
40103                 #endif
40104
40105
40106   ;
40107   return 0;
40108 }
40109
40110 _ACEOF
40111 rm -f conftest.$ac_objext conftest$ac_exeext
40112 if { (ac_try="$ac_link"
40113 case "(($ac_try" in
40114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40115   *) ac_try_echo=$ac_try;;
40116 esac
40117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40118   (eval "$ac_link") 2>conftest.er1
40119   ac_status=$?
40120   grep -v '^ *+' conftest.er1 >conftest.err
40121   rm -f conftest.er1
40122   cat conftest.err >&5
40123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40124   (exit $ac_status); } && {
40125          test -z "$ac_c_werror_flag" ||
40126          test ! -s conftest.err
40127        } && test -s conftest$ac_exeext &&
40128        $as_test_x conftest$ac_exeext; then
40129   eval wx_cv_func_$wx_func=yes
40130 else
40131   echo "$as_me: failed program was:" >&5
40132 sed 's/^/| /' conftest.$ac_ext >&5
40133
40134         eval wx_cv_func_$wx_func=no
40135 fi
40136
40137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40138       conftest$ac_exeext conftest.$ac_ext
40139
40140 fi
40141 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40142                { echo "$as_me:$LINENO: result: $ac_res" >&5
40143 echo "${ECHO_T}$ac_res" >&6; }
40144
40145     if eval test \$wx_cv_func_$wx_func = yes
40146     then
40147       cat >>confdefs.h <<_ACEOF
40148 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40149 _ACEOF
40150
40151
40152     else
40153       :
40154
40155     fi
40156   done
40157
40158 if test "$wx_cv_func_uname" != yes; then
40159
40160   for wx_func in gethostname
40161   do
40162     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40163 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40164 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40165   echo $ECHO_N "(cached) $ECHO_C" >&6
40166 else
40167
40168         cat >conftest.$ac_ext <<_ACEOF
40169
40170             /* confdefs.h.  */
40171 _ACEOF
40172 cat confdefs.h >>conftest.$ac_ext
40173 cat >>conftest.$ac_ext <<_ACEOF
40174 /* end confdefs.h.  */
40175
40176
40177                 $ac_includes_default
40178
40179 int
40180 main ()
40181 {
40182
40183                 #ifndef $wx_func
40184                   &$wx_func;
40185                 #endif
40186
40187
40188   ;
40189   return 0;
40190 }
40191
40192 _ACEOF
40193 rm -f conftest.$ac_objext conftest$ac_exeext
40194 if { (ac_try="$ac_link"
40195 case "(($ac_try" in
40196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40197   *) ac_try_echo=$ac_try;;
40198 esac
40199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40200   (eval "$ac_link") 2>conftest.er1
40201   ac_status=$?
40202   grep -v '^ *+' conftest.er1 >conftest.err
40203   rm -f conftest.er1
40204   cat conftest.err >&5
40205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40206   (exit $ac_status); } && {
40207          test -z "$ac_c_werror_flag" ||
40208          test ! -s conftest.err
40209        } && test -s conftest$ac_exeext &&
40210        $as_test_x conftest$ac_exeext; then
40211   eval wx_cv_func_$wx_func=yes
40212 else
40213   echo "$as_me: failed program was:" >&5
40214 sed 's/^/| /' conftest.$ac_ext >&5
40215
40216         eval wx_cv_func_$wx_func=no
40217 fi
40218
40219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40220       conftest$ac_exeext conftest.$ac_ext
40221
40222 fi
40223 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40224                { echo "$as_me:$LINENO: result: $ac_res" >&5
40225 echo "${ECHO_T}$ac_res" >&6; }
40226
40227     if eval test \$wx_cv_func_$wx_func = yes
40228     then
40229       cat >>confdefs.h <<_ACEOF
40230 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40231 _ACEOF
40232
40233
40234     else
40235       :
40236
40237     fi
40238   done
40239
40240 fi
40241
40242
40243   for wx_func in strtok_r
40244   do
40245     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40246 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40247 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40248   echo $ECHO_N "(cached) $ECHO_C" >&6
40249 else
40250
40251         cat >conftest.$ac_ext <<_ACEOF
40252
40253             /* confdefs.h.  */
40254 _ACEOF
40255 cat confdefs.h >>conftest.$ac_ext
40256 cat >>conftest.$ac_ext <<_ACEOF
40257 /* end confdefs.h.  */
40258
40259                 #define _REENTRANT
40260                 $ac_includes_default
40261
40262 int
40263 main ()
40264 {
40265
40266                 #ifndef $wx_func
40267                   &$wx_func;
40268                 #endif
40269
40270
40271   ;
40272   return 0;
40273 }
40274
40275 _ACEOF
40276 rm -f conftest.$ac_objext conftest$ac_exeext
40277 if { (ac_try="$ac_link"
40278 case "(($ac_try" in
40279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40280   *) ac_try_echo=$ac_try;;
40281 esac
40282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40283   (eval "$ac_link") 2>conftest.er1
40284   ac_status=$?
40285   grep -v '^ *+' conftest.er1 >conftest.err
40286   rm -f conftest.er1
40287   cat conftest.err >&5
40288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289   (exit $ac_status); } && {
40290          test -z "$ac_c_werror_flag" ||
40291          test ! -s conftest.err
40292        } && test -s conftest$ac_exeext &&
40293        $as_test_x conftest$ac_exeext; then
40294   eval wx_cv_func_$wx_func=yes
40295 else
40296   echo "$as_me: failed program was:" >&5
40297 sed 's/^/| /' conftest.$ac_ext >&5
40298
40299         eval wx_cv_func_$wx_func=no
40300 fi
40301
40302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40303       conftest$ac_exeext conftest.$ac_ext
40304
40305 fi
40306 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40307                { echo "$as_me:$LINENO: result: $ac_res" >&5
40308 echo "${ECHO_T}$ac_res" >&6; }
40309
40310     if eval test \$wx_cv_func_$wx_func = yes
40311     then
40312       cat >>confdefs.h <<_ACEOF
40313 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40314 _ACEOF
40315
40316
40317     else
40318       :
40319
40320     fi
40321   done
40322
40323
40324 INET_LINK=
40325
40326 for ac_func in inet_addr
40327 do
40328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40329 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40331 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40332   echo $ECHO_N "(cached) $ECHO_C" >&6
40333 else
40334   cat >conftest.$ac_ext <<_ACEOF
40335 /* confdefs.h.  */
40336 _ACEOF
40337 cat confdefs.h >>conftest.$ac_ext
40338 cat >>conftest.$ac_ext <<_ACEOF
40339 /* end confdefs.h.  */
40340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40342 #define $ac_func innocuous_$ac_func
40343
40344 /* System header to define __stub macros and hopefully few prototypes,
40345     which can conflict with char $ac_func (); below.
40346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40347     <limits.h> exists even on freestanding compilers.  */
40348
40349 #ifdef __STDC__
40350 # include <limits.h>
40351 #else
40352 # include <assert.h>
40353 #endif
40354
40355 #undef $ac_func
40356
40357 /* Override any GCC internal prototype to avoid an error.
40358    Use char because int might match the return type of a GCC
40359    builtin and then its argument prototype would still apply.  */
40360 #ifdef __cplusplus
40361 extern "C"
40362 #endif
40363 char $ac_func ();
40364 /* The GNU C library defines this for functions which it implements
40365     to always fail with ENOSYS.  Some functions are actually named
40366     something starting with __ and the normal name is an alias.  */
40367 #if defined __stub_$ac_func || defined __stub___$ac_func
40368 choke me
40369 #endif
40370
40371 int
40372 main ()
40373 {
40374 return $ac_func ();
40375   ;
40376   return 0;
40377 }
40378 _ACEOF
40379 rm -f conftest.$ac_objext conftest$ac_exeext
40380 if { (ac_try="$ac_link"
40381 case "(($ac_try" in
40382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40383   *) ac_try_echo=$ac_try;;
40384 esac
40385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40386   (eval "$ac_link") 2>conftest.er1
40387   ac_status=$?
40388   grep -v '^ *+' conftest.er1 >conftest.err
40389   rm -f conftest.er1
40390   cat conftest.err >&5
40391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40392   (exit $ac_status); } && {
40393          test -z "$ac_c_werror_flag" ||
40394          test ! -s conftest.err
40395        } && test -s conftest$ac_exeext &&
40396        $as_test_x conftest$ac_exeext; then
40397   eval "$as_ac_var=yes"
40398 else
40399   echo "$as_me: failed program was:" >&5
40400 sed 's/^/| /' conftest.$ac_ext >&5
40401
40402         eval "$as_ac_var=no"
40403 fi
40404
40405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40406       conftest$ac_exeext conftest.$ac_ext
40407 fi
40408 ac_res=`eval echo '${'$as_ac_var'}'`
40409                { echo "$as_me:$LINENO: result: $ac_res" >&5
40410 echo "${ECHO_T}$ac_res" >&6; }
40411 if test `eval echo '${'$as_ac_var'}'` = yes; then
40412   cat >>confdefs.h <<_ACEOF
40413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40414 _ACEOF
40415  cat >>confdefs.h <<\_ACEOF
40416 #define HAVE_INET_ADDR 1
40417 _ACEOF
40418
40419 else
40420
40421         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
40422 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
40423 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
40424   echo $ECHO_N "(cached) $ECHO_C" >&6
40425 else
40426   ac_check_lib_save_LIBS=$LIBS
40427 LIBS="-lnsl  $LIBS"
40428 cat >conftest.$ac_ext <<_ACEOF
40429 /* confdefs.h.  */
40430 _ACEOF
40431 cat confdefs.h >>conftest.$ac_ext
40432 cat >>conftest.$ac_ext <<_ACEOF
40433 /* end confdefs.h.  */
40434
40435 /* Override any GCC internal prototype to avoid an error.
40436    Use char because int might match the return type of a GCC
40437    builtin and then its argument prototype would still apply.  */
40438 #ifdef __cplusplus
40439 extern "C"
40440 #endif
40441 char inet_addr ();
40442 int
40443 main ()
40444 {
40445 return inet_addr ();
40446   ;
40447   return 0;
40448 }
40449 _ACEOF
40450 rm -f conftest.$ac_objext conftest$ac_exeext
40451 if { (ac_try="$ac_link"
40452 case "(($ac_try" in
40453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40454   *) ac_try_echo=$ac_try;;
40455 esac
40456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40457   (eval "$ac_link") 2>conftest.er1
40458   ac_status=$?
40459   grep -v '^ *+' conftest.er1 >conftest.err
40460   rm -f conftest.er1
40461   cat conftest.err >&5
40462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40463   (exit $ac_status); } && {
40464          test -z "$ac_c_werror_flag" ||
40465          test ! -s conftest.err
40466        } && test -s conftest$ac_exeext &&
40467        $as_test_x conftest$ac_exeext; then
40468   ac_cv_lib_nsl_inet_addr=yes
40469 else
40470   echo "$as_me: failed program was:" >&5
40471 sed 's/^/| /' conftest.$ac_ext >&5
40472
40473         ac_cv_lib_nsl_inet_addr=no
40474 fi
40475
40476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40477       conftest$ac_exeext conftest.$ac_ext
40478 LIBS=$ac_check_lib_save_LIBS
40479 fi
40480 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
40481 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
40482 if test $ac_cv_lib_nsl_inet_addr = yes; then
40483   INET_LINK="nsl"
40484 else
40485
40486                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
40487 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
40488 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
40489   echo $ECHO_N "(cached) $ECHO_C" >&6
40490 else
40491   ac_check_lib_save_LIBS=$LIBS
40492 LIBS="-lresolv  $LIBS"
40493 cat >conftest.$ac_ext <<_ACEOF
40494 /* confdefs.h.  */
40495 _ACEOF
40496 cat confdefs.h >>conftest.$ac_ext
40497 cat >>conftest.$ac_ext <<_ACEOF
40498 /* end confdefs.h.  */
40499
40500 /* Override any GCC internal prototype to avoid an error.
40501    Use char because int might match the return type of a GCC
40502    builtin and then its argument prototype would still apply.  */
40503 #ifdef __cplusplus
40504 extern "C"
40505 #endif
40506 char inet_addr ();
40507 int
40508 main ()
40509 {
40510 return inet_addr ();
40511   ;
40512   return 0;
40513 }
40514 _ACEOF
40515 rm -f conftest.$ac_objext conftest$ac_exeext
40516 if { (ac_try="$ac_link"
40517 case "(($ac_try" in
40518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40519   *) ac_try_echo=$ac_try;;
40520 esac
40521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40522   (eval "$ac_link") 2>conftest.er1
40523   ac_status=$?
40524   grep -v '^ *+' conftest.er1 >conftest.err
40525   rm -f conftest.er1
40526   cat conftest.err >&5
40527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528   (exit $ac_status); } && {
40529          test -z "$ac_c_werror_flag" ||
40530          test ! -s conftest.err
40531        } && test -s conftest$ac_exeext &&
40532        $as_test_x conftest$ac_exeext; then
40533   ac_cv_lib_resolv_inet_addr=yes
40534 else
40535   echo "$as_me: failed program was:" >&5
40536 sed 's/^/| /' conftest.$ac_ext >&5
40537
40538         ac_cv_lib_resolv_inet_addr=no
40539 fi
40540
40541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40542       conftest$ac_exeext conftest.$ac_ext
40543 LIBS=$ac_check_lib_save_LIBS
40544 fi
40545 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
40546 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
40547 if test $ac_cv_lib_resolv_inet_addr = yes; then
40548   INET_LINK="resolv"
40549 else
40550
40551                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
40552 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
40553 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
40554   echo $ECHO_N "(cached) $ECHO_C" >&6
40555 else
40556   ac_check_lib_save_LIBS=$LIBS
40557 LIBS="-lsocket  $LIBS"
40558 cat >conftest.$ac_ext <<_ACEOF
40559 /* confdefs.h.  */
40560 _ACEOF
40561 cat confdefs.h >>conftest.$ac_ext
40562 cat >>conftest.$ac_ext <<_ACEOF
40563 /* end confdefs.h.  */
40564
40565 /* Override any GCC internal prototype to avoid an error.
40566    Use char because int might match the return type of a GCC
40567    builtin and then its argument prototype would still apply.  */
40568 #ifdef __cplusplus
40569 extern "C"
40570 #endif
40571 char inet_addr ();
40572 int
40573 main ()
40574 {
40575 return inet_addr ();
40576   ;
40577   return 0;
40578 }
40579 _ACEOF
40580 rm -f conftest.$ac_objext conftest$ac_exeext
40581 if { (ac_try="$ac_link"
40582 case "(($ac_try" in
40583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40584   *) ac_try_echo=$ac_try;;
40585 esac
40586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40587   (eval "$ac_link") 2>conftest.er1
40588   ac_status=$?
40589   grep -v '^ *+' conftest.er1 >conftest.err
40590   rm -f conftest.er1
40591   cat conftest.err >&5
40592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40593   (exit $ac_status); } && {
40594          test -z "$ac_c_werror_flag" ||
40595          test ! -s conftest.err
40596        } && test -s conftest$ac_exeext &&
40597        $as_test_x conftest$ac_exeext; then
40598   ac_cv_lib_socket_inet_addr=yes
40599 else
40600   echo "$as_me: failed program was:" >&5
40601 sed 's/^/| /' conftest.$ac_ext >&5
40602
40603         ac_cv_lib_socket_inet_addr=no
40604 fi
40605
40606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40607       conftest$ac_exeext conftest.$ac_ext
40608 LIBS=$ac_check_lib_save_LIBS
40609 fi
40610 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
40611 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
40612 if test $ac_cv_lib_socket_inet_addr = yes; then
40613   INET_LINK="socket"
40614
40615 fi
40616
40617
40618
40619 fi
40620
40621
40622
40623 fi
40624
40625
40626
40627 fi
40628 done
40629
40630
40631
40632 for ac_func in inet_aton
40633 do
40634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40638   echo $ECHO_N "(cached) $ECHO_C" >&6
40639 else
40640   cat >conftest.$ac_ext <<_ACEOF
40641 /* confdefs.h.  */
40642 _ACEOF
40643 cat confdefs.h >>conftest.$ac_ext
40644 cat >>conftest.$ac_ext <<_ACEOF
40645 /* end confdefs.h.  */
40646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40648 #define $ac_func innocuous_$ac_func
40649
40650 /* System header to define __stub macros and hopefully few prototypes,
40651     which can conflict with char $ac_func (); below.
40652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40653     <limits.h> exists even on freestanding compilers.  */
40654
40655 #ifdef __STDC__
40656 # include <limits.h>
40657 #else
40658 # include <assert.h>
40659 #endif
40660
40661 #undef $ac_func
40662
40663 /* Override any GCC internal prototype to avoid an error.
40664    Use char because int might match the return type of a GCC
40665    builtin and then its argument prototype would still apply.  */
40666 #ifdef __cplusplus
40667 extern "C"
40668 #endif
40669 char $ac_func ();
40670 /* The GNU C library defines this for functions which it implements
40671     to always fail with ENOSYS.  Some functions are actually named
40672     something starting with __ and the normal name is an alias.  */
40673 #if defined __stub_$ac_func || defined __stub___$ac_func
40674 choke me
40675 #endif
40676
40677 int
40678 main ()
40679 {
40680 return $ac_func ();
40681   ;
40682   return 0;
40683 }
40684 _ACEOF
40685 rm -f conftest.$ac_objext conftest$ac_exeext
40686 if { (ac_try="$ac_link"
40687 case "(($ac_try" in
40688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40689   *) ac_try_echo=$ac_try;;
40690 esac
40691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40692   (eval "$ac_link") 2>conftest.er1
40693   ac_status=$?
40694   grep -v '^ *+' conftest.er1 >conftest.err
40695   rm -f conftest.er1
40696   cat conftest.err >&5
40697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40698   (exit $ac_status); } && {
40699          test -z "$ac_c_werror_flag" ||
40700          test ! -s conftest.err
40701        } && test -s conftest$ac_exeext &&
40702        $as_test_x conftest$ac_exeext; then
40703   eval "$as_ac_var=yes"
40704 else
40705   echo "$as_me: failed program was:" >&5
40706 sed 's/^/| /' conftest.$ac_ext >&5
40707
40708         eval "$as_ac_var=no"
40709 fi
40710
40711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40712       conftest$ac_exeext conftest.$ac_ext
40713 fi
40714 ac_res=`eval echo '${'$as_ac_var'}'`
40715                { echo "$as_me:$LINENO: result: $ac_res" >&5
40716 echo "${ECHO_T}$ac_res" >&6; }
40717 if test `eval echo '${'$as_ac_var'}'` = yes; then
40718   cat >>confdefs.h <<_ACEOF
40719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40720 _ACEOF
40721  cat >>confdefs.h <<\_ACEOF
40722 #define HAVE_INET_ATON 1
40723 _ACEOF
40724
40725 else
40726
40727                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
40728 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
40729 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
40730 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
40731   echo $ECHO_N "(cached) $ECHO_C" >&6
40732 else
40733   ac_check_lib_save_LIBS=$LIBS
40734 LIBS="-l$INET_LINK  $LIBS"
40735 cat >conftest.$ac_ext <<_ACEOF
40736 /* confdefs.h.  */
40737 _ACEOF
40738 cat confdefs.h >>conftest.$ac_ext
40739 cat >>conftest.$ac_ext <<_ACEOF
40740 /* end confdefs.h.  */
40741
40742 /* Override any GCC internal prototype to avoid an error.
40743    Use char because int might match the return type of a GCC
40744    builtin and then its argument prototype would still apply.  */
40745 #ifdef __cplusplus
40746 extern "C"
40747 #endif
40748 char inet_aton ();
40749 int
40750 main ()
40751 {
40752 return inet_aton ();
40753   ;
40754   return 0;
40755 }
40756 _ACEOF
40757 rm -f conftest.$ac_objext conftest$ac_exeext
40758 if { (ac_try="$ac_link"
40759 case "(($ac_try" in
40760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40761   *) ac_try_echo=$ac_try;;
40762 esac
40763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40764   (eval "$ac_link") 2>conftest.er1
40765   ac_status=$?
40766   grep -v '^ *+' conftest.er1 >conftest.err
40767   rm -f conftest.er1
40768   cat conftest.err >&5
40769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40770   (exit $ac_status); } && {
40771          test -z "$ac_c_werror_flag" ||
40772          test ! -s conftest.err
40773        } && test -s conftest$ac_exeext &&
40774        $as_test_x conftest$ac_exeext; then
40775   eval "$as_ac_Lib=yes"
40776 else
40777   echo "$as_me: failed program was:" >&5
40778 sed 's/^/| /' conftest.$ac_ext >&5
40779
40780         eval "$as_ac_Lib=no"
40781 fi
40782
40783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40784       conftest$ac_exeext conftest.$ac_ext
40785 LIBS=$ac_check_lib_save_LIBS
40786 fi
40787 ac_res=`eval echo '${'$as_ac_Lib'}'`
40788                { echo "$as_me:$LINENO: result: $ac_res" >&5
40789 echo "${ECHO_T}$ac_res" >&6; }
40790 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
40791   cat >>confdefs.h <<\_ACEOF
40792 #define HAVE_INET_ATON 1
40793 _ACEOF
40794
40795 fi
40796
40797
40798 fi
40799 done
40800
40801
40802 if test "x$INET_LINK" != "x"; then
40803     cat >>confdefs.h <<\_ACEOF
40804 #define HAVE_INET_ADDR 1
40805 _ACEOF
40806
40807     INET_LINK=" -l$INET_LINK"
40808 fi
40809
40810
40811   for wx_func in fdopen
40812   do
40813     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40814 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40815 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40816   echo $ECHO_N "(cached) $ECHO_C" >&6
40817 else
40818
40819         cat >conftest.$ac_ext <<_ACEOF
40820
40821             /* confdefs.h.  */
40822 _ACEOF
40823 cat confdefs.h >>conftest.$ac_ext
40824 cat >>conftest.$ac_ext <<_ACEOF
40825 /* end confdefs.h.  */
40826
40827
40828                 $ac_includes_default
40829
40830 int
40831 main ()
40832 {
40833
40834                 #ifndef $wx_func
40835                   &$wx_func;
40836                 #endif
40837
40838
40839   ;
40840   return 0;
40841 }
40842
40843 _ACEOF
40844 rm -f conftest.$ac_objext conftest$ac_exeext
40845 if { (ac_try="$ac_link"
40846 case "(($ac_try" in
40847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40848   *) ac_try_echo=$ac_try;;
40849 esac
40850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40851   (eval "$ac_link") 2>conftest.er1
40852   ac_status=$?
40853   grep -v '^ *+' conftest.er1 >conftest.err
40854   rm -f conftest.er1
40855   cat conftest.err >&5
40856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40857   (exit $ac_status); } && {
40858          test -z "$ac_c_werror_flag" ||
40859          test ! -s conftest.err
40860        } && test -s conftest$ac_exeext &&
40861        $as_test_x conftest$ac_exeext; then
40862   eval wx_cv_func_$wx_func=yes
40863 else
40864   echo "$as_me: failed program was:" >&5
40865 sed 's/^/| /' conftest.$ac_ext >&5
40866
40867         eval wx_cv_func_$wx_func=no
40868 fi
40869
40870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40871       conftest$ac_exeext conftest.$ac_ext
40872
40873 fi
40874 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40875                { echo "$as_me:$LINENO: result: $ac_res" >&5
40876 echo "${ECHO_T}$ac_res" >&6; }
40877
40878     if eval test \$wx_cv_func_$wx_func = yes
40879     then
40880       cat >>confdefs.h <<_ACEOF
40881 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40882 _ACEOF
40883
40884
40885     else
40886       :
40887
40888     fi
40889   done
40890
40891
40892 if test "$wxUSE_TARSTREAM" = "yes"; then
40893
40894   for wx_func in sysconf
40895   do
40896     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40897 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40898 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40899   echo $ECHO_N "(cached) $ECHO_C" >&6
40900 else
40901
40902         cat >conftest.$ac_ext <<_ACEOF
40903
40904             /* confdefs.h.  */
40905 _ACEOF
40906 cat confdefs.h >>conftest.$ac_ext
40907 cat >>conftest.$ac_ext <<_ACEOF
40908 /* end confdefs.h.  */
40909
40910
40911                 $ac_includes_default
40912
40913 int
40914 main ()
40915 {
40916
40917                 #ifndef $wx_func
40918                   &$wx_func;
40919                 #endif
40920
40921
40922   ;
40923   return 0;
40924 }
40925
40926 _ACEOF
40927 rm -f conftest.$ac_objext conftest$ac_exeext
40928 if { (ac_try="$ac_link"
40929 case "(($ac_try" in
40930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40931   *) ac_try_echo=$ac_try;;
40932 esac
40933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40934   (eval "$ac_link") 2>conftest.er1
40935   ac_status=$?
40936   grep -v '^ *+' conftest.er1 >conftest.err
40937   rm -f conftest.er1
40938   cat conftest.err >&5
40939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40940   (exit $ac_status); } && {
40941          test -z "$ac_c_werror_flag" ||
40942          test ! -s conftest.err
40943        } && test -s conftest$ac_exeext &&
40944        $as_test_x conftest$ac_exeext; then
40945   eval wx_cv_func_$wx_func=yes
40946 else
40947   echo "$as_me: failed program was:" >&5
40948 sed 's/^/| /' conftest.$ac_ext >&5
40949
40950         eval wx_cv_func_$wx_func=no
40951 fi
40952
40953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40954       conftest$ac_exeext conftest.$ac_ext
40955
40956 fi
40957 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40958                { echo "$as_me:$LINENO: result: $ac_res" >&5
40959 echo "${ECHO_T}$ac_res" >&6; }
40960
40961     if eval test \$wx_cv_func_$wx_func = yes
40962     then
40963       cat >>confdefs.h <<_ACEOF
40964 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40965 _ACEOF
40966
40967
40968     else
40969       :
40970
40971     fi
40972   done
40973
40974
40975
40976   for wx_func in getpwuid_r
40977   do
40978     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40979 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40980 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40981   echo $ECHO_N "(cached) $ECHO_C" >&6
40982 else
40983
40984         cat >conftest.$ac_ext <<_ACEOF
40985
40986             /* confdefs.h.  */
40987 _ACEOF
40988 cat confdefs.h >>conftest.$ac_ext
40989 cat >>conftest.$ac_ext <<_ACEOF
40990 /* end confdefs.h.  */
40991
40992
40993                     #define _REENTRANT
40994                     #include <pwd.h>
40995
40996                 $ac_includes_default
40997
40998 int
40999 main ()
41000 {
41001
41002                 #ifndef $wx_func
41003                   &$wx_func;
41004                 #endif
41005
41006                     struct passwd pw, *ppw;
41007                     char buf[1024];
41008                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
41009
41010
41011   ;
41012   return 0;
41013 }
41014
41015 _ACEOF
41016 rm -f conftest.$ac_objext conftest$ac_exeext
41017 if { (ac_try="$ac_link"
41018 case "(($ac_try" in
41019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41020   *) ac_try_echo=$ac_try;;
41021 esac
41022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41023   (eval "$ac_link") 2>conftest.er1
41024   ac_status=$?
41025   grep -v '^ *+' conftest.er1 >conftest.err
41026   rm -f conftest.er1
41027   cat conftest.err >&5
41028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41029   (exit $ac_status); } && {
41030          test -z "$ac_c_werror_flag" ||
41031          test ! -s conftest.err
41032        } && test -s conftest$ac_exeext &&
41033        $as_test_x conftest$ac_exeext; then
41034   eval wx_cv_func_$wx_func=yes
41035 else
41036   echo "$as_me: failed program was:" >&5
41037 sed 's/^/| /' conftest.$ac_ext >&5
41038
41039         eval wx_cv_func_$wx_func=no
41040 fi
41041
41042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41043       conftest$ac_exeext conftest.$ac_ext
41044
41045 fi
41046 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41047                { echo "$as_me:$LINENO: result: $ac_res" >&5
41048 echo "${ECHO_T}$ac_res" >&6; }
41049
41050     if eval test \$wx_cv_func_$wx_func = yes
41051     then
41052       cat >>confdefs.h <<_ACEOF
41053 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41054 _ACEOF
41055
41056
41057     else
41058       :
41059
41060     fi
41061   done
41062
41063
41064
41065   for wx_func in getgrgid_r
41066   do
41067     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41068 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41069 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41070   echo $ECHO_N "(cached) $ECHO_C" >&6
41071 else
41072
41073         cat >conftest.$ac_ext <<_ACEOF
41074
41075             /* confdefs.h.  */
41076 _ACEOF
41077 cat confdefs.h >>conftest.$ac_ext
41078 cat >>conftest.$ac_ext <<_ACEOF
41079 /* end confdefs.h.  */
41080
41081
41082                     #define _REENTRANT
41083                     #include <grp.h>
41084
41085                 $ac_includes_default
41086
41087 int
41088 main ()
41089 {
41090
41091                 #ifndef $wx_func
41092                   &$wx_func;
41093                 #endif
41094
41095                     struct group grp, *pgrp;
41096                     char buf[1024];
41097                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
41098
41099
41100   ;
41101   return 0;
41102 }
41103
41104 _ACEOF
41105 rm -f conftest.$ac_objext conftest$ac_exeext
41106 if { (ac_try="$ac_link"
41107 case "(($ac_try" in
41108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41109   *) ac_try_echo=$ac_try;;
41110 esac
41111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41112   (eval "$ac_link") 2>conftest.er1
41113   ac_status=$?
41114   grep -v '^ *+' conftest.er1 >conftest.err
41115   rm -f conftest.er1
41116   cat conftest.err >&5
41117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41118   (exit $ac_status); } && {
41119          test -z "$ac_c_werror_flag" ||
41120          test ! -s conftest.err
41121        } && test -s conftest$ac_exeext &&
41122        $as_test_x conftest$ac_exeext; then
41123   eval wx_cv_func_$wx_func=yes
41124 else
41125   echo "$as_me: failed program was:" >&5
41126 sed 's/^/| /' conftest.$ac_ext >&5
41127
41128         eval wx_cv_func_$wx_func=no
41129 fi
41130
41131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41132       conftest$ac_exeext conftest.$ac_ext
41133
41134 fi
41135 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41136                { echo "$as_me:$LINENO: result: $ac_res" >&5
41137 echo "${ECHO_T}$ac_res" >&6; }
41138
41139     if eval test \$wx_cv_func_$wx_func = yes
41140     then
41141       cat >>confdefs.h <<_ACEOF
41142 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41143 _ACEOF
41144
41145
41146     else
41147       :
41148
41149     fi
41150   done
41151
41152 fi
41153
41154 fi
41155
41156
41157
41158 cat >confcache <<\_ACEOF
41159 # This file is a shell script that caches the results of configure
41160 # tests run on this system so they can be shared between configure
41161 # scripts and configure runs, see configure's option --config-cache.
41162 # It is not useful on other systems.  If it contains results you don't
41163 # want to keep, you may remove or edit it.
41164 #
41165 # config.status only pays attention to the cache file if you give it
41166 # the --recheck option to rerun configure.
41167 #
41168 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41169 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41170 # following values.
41171
41172 _ACEOF
41173
41174 # The following way of writing the cache mishandles newlines in values,
41175 # but we know of no workaround that is simple, portable, and efficient.
41176 # So, we kill variables containing newlines.
41177 # Ultrix sh set writes to stderr and can't be redirected directly,
41178 # and sets the high bit in the cache file unless we assign to the vars.
41179 (
41180   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41181     eval ac_val=\$$ac_var
41182     case $ac_val in #(
41183     *${as_nl}*)
41184       case $ac_var in #(
41185       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41186 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41187       esac
41188       case $ac_var in #(
41189       _ | IFS | as_nl) ;; #(
41190       *) $as_unset $ac_var ;;
41191       esac ;;
41192     esac
41193   done
41194
41195   (set) 2>&1 |
41196     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41197     *${as_nl}ac_space=\ *)
41198       # `set' does not quote correctly, so add quotes (double-quote
41199       # substitution turns \\\\ into \\, and sed turns \\ into \).
41200       sed -n \
41201         "s/'/'\\\\''/g;
41202           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41203       ;; #(
41204     *)
41205       # `set' quotes correctly as required by POSIX, so do not add quotes.
41206       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41207       ;;
41208     esac |
41209     sort
41210 ) |
41211   sed '
41212      /^ac_cv_env_/b end
41213      t clear
41214      :clear
41215      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41216      t end
41217      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41218      :end' >>confcache
41219 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41220   if test -w "$cache_file"; then
41221     test "x$cache_file" != "x/dev/null" &&
41222       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41223 echo "$as_me: updating cache $cache_file" >&6;}
41224     cat confcache >$cache_file
41225   else
41226     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41227 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41228   fi
41229 fi
41230 rm -f confcache
41231
41232
41233 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41234
41235
41236     THREADS_LINK=
41237     THREADS_CFLAGS=
41238
41239     if test "$wxUSE_THREADS" = "yes" ; then
41240         if test "$USE_BEOS" = 1; then
41241             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
41242 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
41243             wxUSE_THREADS="no"
41244         fi
41245     fi
41246
41247     if test "$wxUSE_THREADS" = "yes" ; then
41248
41249
41250                                 THREAD_OPTS="-pthread"
41251         if test "x$SUNCXX" = xyes; then
41252             THREAD_OPTS="-mt lthread $THREAD_OPTS"
41253         fi
41254
41255         case "${host}" in
41256           *-*-solaris2* | *-*-sunos4* )
41257                 if test "x$GCC" = "xyes"; then
41258                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
41259                 fi
41260                 ;;
41261           *-*-freebsd*)
41262                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
41263                 ;;
41264           *-*-darwin* | *-*-cygwin* )
41265                                                 THREAD_OPTS=""
41266                 ;;
41267           *-*-aix*)
41268                                 THREAD_OPTS="pthreads"
41269                 ;;
41270           *-hp-hpux* )
41271                 if test "x$GCC" = "xyes"; then
41272                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
41273                         THREAD_OPTS=""
41274                 else
41275                                                             THREAD_OPTS="-mt"
41276                 fi
41277                 ;;
41278
41279           *-*-irix* )
41280                                                                 if test "x$GCC" = "xyes"; then
41281                     THREAD_OPTS=""
41282                 fi
41283                 ;;
41284
41285           *-*-*UnixWare*)
41286                                 if test "x$GCC" != "xyes"; then
41287                     THREAD_OPTS="-Ethread"
41288                 fi
41289                 ;;
41290         esac
41291
41292                                 THREAD_OPTS="$THREAD_OPTS pthread none"
41293
41294                 THREADS_OK=no
41295         for flag in $THREAD_OPTS; do
41296             case $flag in
41297                 none)
41298                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
41299 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
41300                     ;;
41301
41302                 -*)
41303                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
41304 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
41305                     THREADS_CFLAGS="$flag"
41306                     ;;
41307
41308                 *)
41309                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
41310 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
41311                     THREADS_LINK="-l$flag"
41312                     ;;
41313               esac
41314
41315               save_LIBS="$LIBS"
41316               save_CFLAGS="$CFLAGS"
41317               LIBS="$THREADS_LINK $LIBS"
41318               CFLAGS="$THREADS_CFLAGS $CFLAGS"
41319
41320               cat >conftest.$ac_ext <<_ACEOF
41321 /* confdefs.h.  */
41322 _ACEOF
41323 cat confdefs.h >>conftest.$ac_ext
41324 cat >>conftest.$ac_ext <<_ACEOF
41325 /* end confdefs.h.  */
41326 #include <pthread.h>
41327 int
41328 main ()
41329 {
41330 pthread_create(0,0,0,0);
41331   ;
41332   return 0;
41333 }
41334 _ACEOF
41335 rm -f conftest.$ac_objext conftest$ac_exeext
41336 if { (ac_try="$ac_link"
41337 case "(($ac_try" in
41338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41339   *) ac_try_echo=$ac_try;;
41340 esac
41341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41342   (eval "$ac_link") 2>conftest.er1
41343   ac_status=$?
41344   grep -v '^ *+' conftest.er1 >conftest.err
41345   rm -f conftest.er1
41346   cat conftest.err >&5
41347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41348   (exit $ac_status); } && {
41349          test -z "$ac_c_werror_flag" ||
41350          test ! -s conftest.err
41351        } && test -s conftest$ac_exeext &&
41352        $as_test_x conftest$ac_exeext; then
41353   THREADS_OK=yes
41354 else
41355   echo "$as_me: failed program was:" >&5
41356 sed 's/^/| /' conftest.$ac_ext >&5
41357
41358
41359 fi
41360
41361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41362       conftest$ac_exeext conftest.$ac_ext
41363
41364               LIBS="$save_LIBS"
41365               CFLAGS="$save_CFLAGS"
41366
41367               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
41368 echo "${ECHO_T}$THREADS_OK" >&6; }
41369               if test "x$THREADS_OK" = "xyes"; then
41370                       break;
41371               fi
41372
41373               THREADS_LINK=""
41374               THREADS_CFLAGS=""
41375       done
41376
41377       if test "x$THREADS_OK" != "xyes"; then
41378           wxUSE_THREADS=no
41379           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
41380 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
41381       else
41382                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
41383           LIBS="$THREADS_LINK $LIBS"
41384
41385           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
41386 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
41387           flag=no
41388           case "${host}" in
41389             *-aix*)
41390                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
41391                 flag="-D_THREAD_SAFE"
41392                 ;;
41393             *-freebsd*)
41394                 flag="-D_THREAD_SAFE"
41395                 ;;
41396             *-hp-hpux* )
41397                 flag="-D_REENTRANT"
41398                 if test "x$GCC" != "xyes"; then
41399                                         flag="$flag -D_RWSTD_MULTI_THREAD"
41400                 fi
41401                 ;;
41402             *solaris* | alpha*-osf*)
41403                 flag="-D_REENTRANT"
41404                 ;;
41405           esac
41406           { echo "$as_me:$LINENO: result: ${flag}" >&5
41407 echo "${ECHO_T}${flag}" >&6; }
41408           if test "x$flag" != xno; then
41409               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
41410           fi
41411
41412                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
41413       fi
41414     fi
41415
41416         if test "$wxUSE_THREADS" = "yes" ; then
41417
41418 for ac_func in thr_setconcurrency
41419 do
41420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41424   echo $ECHO_N "(cached) $ECHO_C" >&6
41425 else
41426   cat >conftest.$ac_ext <<_ACEOF
41427 /* confdefs.h.  */
41428 _ACEOF
41429 cat confdefs.h >>conftest.$ac_ext
41430 cat >>conftest.$ac_ext <<_ACEOF
41431 /* end confdefs.h.  */
41432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41434 #define $ac_func innocuous_$ac_func
41435
41436 /* System header to define __stub macros and hopefully few prototypes,
41437     which can conflict with char $ac_func (); below.
41438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41439     <limits.h> exists even on freestanding compilers.  */
41440
41441 #ifdef __STDC__
41442 # include <limits.h>
41443 #else
41444 # include <assert.h>
41445 #endif
41446
41447 #undef $ac_func
41448
41449 /* Override any GCC internal prototype to avoid an error.
41450    Use char because int might match the return type of a GCC
41451    builtin and then its argument prototype would still apply.  */
41452 #ifdef __cplusplus
41453 extern "C"
41454 #endif
41455 char $ac_func ();
41456 /* The GNU C library defines this for functions which it implements
41457     to always fail with ENOSYS.  Some functions are actually named
41458     something starting with __ and the normal name is an alias.  */
41459 #if defined __stub_$ac_func || defined __stub___$ac_func
41460 choke me
41461 #endif
41462
41463 int
41464 main ()
41465 {
41466 return $ac_func ();
41467   ;
41468   return 0;
41469 }
41470 _ACEOF
41471 rm -f conftest.$ac_objext conftest$ac_exeext
41472 if { (ac_try="$ac_link"
41473 case "(($ac_try" in
41474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41475   *) ac_try_echo=$ac_try;;
41476 esac
41477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41478   (eval "$ac_link") 2>conftest.er1
41479   ac_status=$?
41480   grep -v '^ *+' conftest.er1 >conftest.err
41481   rm -f conftest.er1
41482   cat conftest.err >&5
41483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41484   (exit $ac_status); } && {
41485          test -z "$ac_c_werror_flag" ||
41486          test ! -s conftest.err
41487        } && test -s conftest$ac_exeext &&
41488        $as_test_x conftest$ac_exeext; then
41489   eval "$as_ac_var=yes"
41490 else
41491   echo "$as_me: failed program was:" >&5
41492 sed 's/^/| /' conftest.$ac_ext >&5
41493
41494         eval "$as_ac_var=no"
41495 fi
41496
41497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41498       conftest$ac_exeext conftest.$ac_ext
41499 fi
41500 ac_res=`eval echo '${'$as_ac_var'}'`
41501                { echo "$as_me:$LINENO: result: $ac_res" >&5
41502 echo "${ECHO_T}$ac_res" >&6; }
41503 if test `eval echo '${'$as_ac_var'}'` = yes; then
41504   cat >>confdefs.h <<_ACEOF
41505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41506 _ACEOF
41507
41508 fi
41509 done
41510
41511
41512                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
41513 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
41514 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
41515   echo $ECHO_N "(cached) $ECHO_C" >&6
41516 else
41517
41518                                 ac_ext=cpp
41519 ac_cpp='$CXXCPP $CPPFLAGS'
41520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41523
41524         cat >conftest.$ac_ext <<_ACEOF
41525 /* confdefs.h.  */
41526 _ACEOF
41527 cat confdefs.h >>conftest.$ac_ext
41528 cat >>conftest.$ac_ext <<_ACEOF
41529 /* end confdefs.h.  */
41530 #include <pthread.h>
41531                void ThreadCleanupFunc(void *p);
41532
41533 int
41534 main ()
41535 {
41536
41537                 void *p;
41538                 pthread_cleanup_push(ThreadCleanupFunc, p);
41539                 pthread_cleanup_pop(0);
41540
41541   ;
41542   return 0;
41543 }
41544 _ACEOF
41545 rm -f conftest.$ac_objext
41546 if { (ac_try="$ac_compile"
41547 case "(($ac_try" in
41548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41549   *) ac_try_echo=$ac_try;;
41550 esac
41551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41552   (eval "$ac_compile") 2>conftest.er1
41553   ac_status=$?
41554   grep -v '^ *+' conftest.er1 >conftest.err
41555   rm -f conftest.er1
41556   cat conftest.err >&5
41557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41558   (exit $ac_status); } && {
41559          test -z "$ac_cxx_werror_flag" ||
41560          test ! -s conftest.err
41561        } && test -s conftest.$ac_objext; then
41562
41563                wx_cv_func_pthread_cleanup=yes
41564
41565 else
41566   echo "$as_me: failed program was:" >&5
41567 sed 's/^/| /' conftest.$ac_ext >&5
41568
41569
41570                wx_cv_func_pthread_cleanup=no
41571
41572
41573 fi
41574
41575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41576         ac_ext=c
41577 ac_cpp='$CPP $CPPFLAGS'
41578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41581
41582
41583 fi
41584 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
41585 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
41586       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
41587         cat >>confdefs.h <<\_ACEOF
41588 #define wxHAVE_PTHREAD_CLEANUP 1
41589 _ACEOF
41590
41591       fi
41592
41593
41594 for ac_header in sched.h
41595 do
41596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41600   echo $ECHO_N "(cached) $ECHO_C" >&6
41601 else
41602   cat >conftest.$ac_ext <<_ACEOF
41603 /* confdefs.h.  */
41604 _ACEOF
41605 cat confdefs.h >>conftest.$ac_ext
41606 cat >>conftest.$ac_ext <<_ACEOF
41607 /* end confdefs.h.  */
41608 $ac_includes_default
41609
41610 #include <$ac_header>
41611 _ACEOF
41612 rm -f conftest.$ac_objext
41613 if { (ac_try="$ac_compile"
41614 case "(($ac_try" in
41615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41616   *) ac_try_echo=$ac_try;;
41617 esac
41618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41619   (eval "$ac_compile") 2>conftest.er1
41620   ac_status=$?
41621   grep -v '^ *+' conftest.er1 >conftest.err
41622   rm -f conftest.er1
41623   cat conftest.err >&5
41624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625   (exit $ac_status); } && {
41626          test -z "$ac_c_werror_flag" ||
41627          test ! -s conftest.err
41628        } && test -s conftest.$ac_objext; then
41629   eval "$as_ac_Header=yes"
41630 else
41631   echo "$as_me: failed program was:" >&5
41632 sed 's/^/| /' conftest.$ac_ext >&5
41633
41634         eval "$as_ac_Header=no"
41635 fi
41636
41637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41638 fi
41639 ac_res=`eval echo '${'$as_ac_Header'}'`
41640                { echo "$as_me:$LINENO: result: $ac_res" >&5
41641 echo "${ECHO_T}$ac_res" >&6; }
41642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41643   cat >>confdefs.h <<_ACEOF
41644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41645 _ACEOF
41646
41647 fi
41648
41649 done
41650
41651       if test "$ac_cv_header_sched_h" = "yes"; then
41652           { echo "$as_me:$LINENO: checking for sched_yield" >&5
41653 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
41654 if test "${ac_cv_func_sched_yield+set}" = set; then
41655   echo $ECHO_N "(cached) $ECHO_C" >&6
41656 else
41657   cat >conftest.$ac_ext <<_ACEOF
41658 /* confdefs.h.  */
41659 _ACEOF
41660 cat confdefs.h >>conftest.$ac_ext
41661 cat >>conftest.$ac_ext <<_ACEOF
41662 /* end confdefs.h.  */
41663 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
41664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41665 #define sched_yield innocuous_sched_yield
41666
41667 /* System header to define __stub macros and hopefully few prototypes,
41668     which can conflict with char sched_yield (); below.
41669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41670     <limits.h> exists even on freestanding compilers.  */
41671
41672 #ifdef __STDC__
41673 # include <limits.h>
41674 #else
41675 # include <assert.h>
41676 #endif
41677
41678 #undef sched_yield
41679
41680 /* Override any GCC internal prototype to avoid an error.
41681    Use char because int might match the return type of a GCC
41682    builtin and then its argument prototype would still apply.  */
41683 #ifdef __cplusplus
41684 extern "C"
41685 #endif
41686 char sched_yield ();
41687 /* The GNU C library defines this for functions which it implements
41688     to always fail with ENOSYS.  Some functions are actually named
41689     something starting with __ and the normal name is an alias.  */
41690 #if defined __stub_sched_yield || defined __stub___sched_yield
41691 choke me
41692 #endif
41693
41694 int
41695 main ()
41696 {
41697 return sched_yield ();
41698   ;
41699   return 0;
41700 }
41701 _ACEOF
41702 rm -f conftest.$ac_objext conftest$ac_exeext
41703 if { (ac_try="$ac_link"
41704 case "(($ac_try" in
41705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41706   *) ac_try_echo=$ac_try;;
41707 esac
41708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41709   (eval "$ac_link") 2>conftest.er1
41710   ac_status=$?
41711   grep -v '^ *+' conftest.er1 >conftest.err
41712   rm -f conftest.er1
41713   cat conftest.err >&5
41714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715   (exit $ac_status); } && {
41716          test -z "$ac_c_werror_flag" ||
41717          test ! -s conftest.err
41718        } && test -s conftest$ac_exeext &&
41719        $as_test_x conftest$ac_exeext; then
41720   ac_cv_func_sched_yield=yes
41721 else
41722   echo "$as_me: failed program was:" >&5
41723 sed 's/^/| /' conftest.$ac_ext >&5
41724
41725         ac_cv_func_sched_yield=no
41726 fi
41727
41728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41729       conftest$ac_exeext conftest.$ac_ext
41730 fi
41731 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
41732 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
41733 if test $ac_cv_func_sched_yield = yes; then
41734   cat >>confdefs.h <<\_ACEOF
41735 #define HAVE_SCHED_YIELD 1
41736 _ACEOF
41737
41738 else
41739
41740                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
41741 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
41742 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
41743   echo $ECHO_N "(cached) $ECHO_C" >&6
41744 else
41745   ac_check_lib_save_LIBS=$LIBS
41746 LIBS="-lposix4  $LIBS"
41747 cat >conftest.$ac_ext <<_ACEOF
41748 /* confdefs.h.  */
41749 _ACEOF
41750 cat confdefs.h >>conftest.$ac_ext
41751 cat >>conftest.$ac_ext <<_ACEOF
41752 /* end confdefs.h.  */
41753
41754 /* Override any GCC internal prototype to avoid an error.
41755    Use char because int might match the return type of a GCC
41756    builtin and then its argument prototype would still apply.  */
41757 #ifdef __cplusplus
41758 extern "C"
41759 #endif
41760 char sched_yield ();
41761 int
41762 main ()
41763 {
41764 return sched_yield ();
41765   ;
41766   return 0;
41767 }
41768 _ACEOF
41769 rm -f conftest.$ac_objext conftest$ac_exeext
41770 if { (ac_try="$ac_link"
41771 case "(($ac_try" in
41772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41773   *) ac_try_echo=$ac_try;;
41774 esac
41775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41776   (eval "$ac_link") 2>conftest.er1
41777   ac_status=$?
41778   grep -v '^ *+' conftest.er1 >conftest.err
41779   rm -f conftest.er1
41780   cat conftest.err >&5
41781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41782   (exit $ac_status); } && {
41783          test -z "$ac_c_werror_flag" ||
41784          test ! -s conftest.err
41785        } && test -s conftest$ac_exeext &&
41786        $as_test_x conftest$ac_exeext; then
41787   ac_cv_lib_posix4_sched_yield=yes
41788 else
41789   echo "$as_me: failed program was:" >&5
41790 sed 's/^/| /' conftest.$ac_ext >&5
41791
41792         ac_cv_lib_posix4_sched_yield=no
41793 fi
41794
41795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41796       conftest$ac_exeext conftest.$ac_ext
41797 LIBS=$ac_check_lib_save_LIBS
41798 fi
41799 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
41800 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
41801 if test $ac_cv_lib_posix4_sched_yield = yes; then
41802   cat >>confdefs.h <<\_ACEOF
41803 #define HAVE_SCHED_YIELD 1
41804 _ACEOF
41805  POSIX4_LINK=" -lposix4"
41806 else
41807   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
41808 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
41809
41810 fi
41811
41812
41813
41814 fi
41815
41816       fi
41817
41818                                           HAVE_PRIOR_FUNCS=0
41819       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
41820 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
41821 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
41822   echo $ECHO_N "(cached) $ECHO_C" >&6
41823 else
41824   cat >conftest.$ac_ext <<_ACEOF
41825 /* confdefs.h.  */
41826 _ACEOF
41827 cat confdefs.h >>conftest.$ac_ext
41828 cat >>conftest.$ac_ext <<_ACEOF
41829 /* end confdefs.h.  */
41830 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
41831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41832 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
41833
41834 /* System header to define __stub macros and hopefully few prototypes,
41835     which can conflict with char pthread_attr_getschedpolicy (); below.
41836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41837     <limits.h> exists even on freestanding compilers.  */
41838
41839 #ifdef __STDC__
41840 # include <limits.h>
41841 #else
41842 # include <assert.h>
41843 #endif
41844
41845 #undef pthread_attr_getschedpolicy
41846
41847 /* Override any GCC internal prototype to avoid an error.
41848    Use char because int might match the return type of a GCC
41849    builtin and then its argument prototype would still apply.  */
41850 #ifdef __cplusplus
41851 extern "C"
41852 #endif
41853 char pthread_attr_getschedpolicy ();
41854 /* The GNU C library defines this for functions which it implements
41855     to always fail with ENOSYS.  Some functions are actually named
41856     something starting with __ and the normal name is an alias.  */
41857 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
41858 choke me
41859 #endif
41860
41861 int
41862 main ()
41863 {
41864 return pthread_attr_getschedpolicy ();
41865   ;
41866   return 0;
41867 }
41868 _ACEOF
41869 rm -f conftest.$ac_objext conftest$ac_exeext
41870 if { (ac_try="$ac_link"
41871 case "(($ac_try" in
41872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41873   *) ac_try_echo=$ac_try;;
41874 esac
41875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41876   (eval "$ac_link") 2>conftest.er1
41877   ac_status=$?
41878   grep -v '^ *+' conftest.er1 >conftest.err
41879   rm -f conftest.er1
41880   cat conftest.err >&5
41881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41882   (exit $ac_status); } && {
41883          test -z "$ac_c_werror_flag" ||
41884          test ! -s conftest.err
41885        } && test -s conftest$ac_exeext &&
41886        $as_test_x conftest$ac_exeext; then
41887   ac_cv_func_pthread_attr_getschedpolicy=yes
41888 else
41889   echo "$as_me: failed program was:" >&5
41890 sed 's/^/| /' conftest.$ac_ext >&5
41891
41892         ac_cv_func_pthread_attr_getschedpolicy=no
41893 fi
41894
41895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41896       conftest$ac_exeext conftest.$ac_ext
41897 fi
41898 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
41899 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
41900 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
41901   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
41902 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
41903 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
41904   echo $ECHO_N "(cached) $ECHO_C" >&6
41905 else
41906   cat >conftest.$ac_ext <<_ACEOF
41907 /* confdefs.h.  */
41908 _ACEOF
41909 cat confdefs.h >>conftest.$ac_ext
41910 cat >>conftest.$ac_ext <<_ACEOF
41911 /* end confdefs.h.  */
41912 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
41913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41914 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
41915
41916 /* System header to define __stub macros and hopefully few prototypes,
41917     which can conflict with char pthread_attr_setschedparam (); below.
41918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41919     <limits.h> exists even on freestanding compilers.  */
41920
41921 #ifdef __STDC__
41922 # include <limits.h>
41923 #else
41924 # include <assert.h>
41925 #endif
41926
41927 #undef pthread_attr_setschedparam
41928
41929 /* Override any GCC internal prototype to avoid an error.
41930    Use char because int might match the return type of a GCC
41931    builtin and then its argument prototype would still apply.  */
41932 #ifdef __cplusplus
41933 extern "C"
41934 #endif
41935 char pthread_attr_setschedparam ();
41936 /* The GNU C library defines this for functions which it implements
41937     to always fail with ENOSYS.  Some functions are actually named
41938     something starting with __ and the normal name is an alias.  */
41939 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
41940 choke me
41941 #endif
41942
41943 int
41944 main ()
41945 {
41946 return pthread_attr_setschedparam ();
41947   ;
41948   return 0;
41949 }
41950 _ACEOF
41951 rm -f conftest.$ac_objext conftest$ac_exeext
41952 if { (ac_try="$ac_link"
41953 case "(($ac_try" in
41954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41955   *) ac_try_echo=$ac_try;;
41956 esac
41957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41958   (eval "$ac_link") 2>conftest.er1
41959   ac_status=$?
41960   grep -v '^ *+' conftest.er1 >conftest.err
41961   rm -f conftest.er1
41962   cat conftest.err >&5
41963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41964   (exit $ac_status); } && {
41965          test -z "$ac_c_werror_flag" ||
41966          test ! -s conftest.err
41967        } && test -s conftest$ac_exeext &&
41968        $as_test_x conftest$ac_exeext; then
41969   ac_cv_func_pthread_attr_setschedparam=yes
41970 else
41971   echo "$as_me: failed program was:" >&5
41972 sed 's/^/| /' conftest.$ac_ext >&5
41973
41974         ac_cv_func_pthread_attr_setschedparam=no
41975 fi
41976
41977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41978       conftest$ac_exeext conftest.$ac_ext
41979 fi
41980 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
41981 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
41982 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
41983   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
41984 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
41985 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
41986   echo $ECHO_N "(cached) $ECHO_C" >&6
41987 else
41988   cat >conftest.$ac_ext <<_ACEOF
41989 /* confdefs.h.  */
41990 _ACEOF
41991 cat confdefs.h >>conftest.$ac_ext
41992 cat >>conftest.$ac_ext <<_ACEOF
41993 /* end confdefs.h.  */
41994 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
41995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41996 #define sched_get_priority_max innocuous_sched_get_priority_max
41997
41998 /* System header to define __stub macros and hopefully few prototypes,
41999     which can conflict with char sched_get_priority_max (); below.
42000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42001     <limits.h> exists even on freestanding compilers.  */
42002
42003 #ifdef __STDC__
42004 # include <limits.h>
42005 #else
42006 # include <assert.h>
42007 #endif
42008
42009 #undef sched_get_priority_max
42010
42011 /* Override any GCC internal prototype to avoid an error.
42012    Use char because int might match the return type of a GCC
42013    builtin and then its argument prototype would still apply.  */
42014 #ifdef __cplusplus
42015 extern "C"
42016 #endif
42017 char sched_get_priority_max ();
42018 /* The GNU C library defines this for functions which it implements
42019     to always fail with ENOSYS.  Some functions are actually named
42020     something starting with __ and the normal name is an alias.  */
42021 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
42022 choke me
42023 #endif
42024
42025 int
42026 main ()
42027 {
42028 return sched_get_priority_max ();
42029   ;
42030   return 0;
42031 }
42032 _ACEOF
42033 rm -f conftest.$ac_objext conftest$ac_exeext
42034 if { (ac_try="$ac_link"
42035 case "(($ac_try" in
42036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42037   *) ac_try_echo=$ac_try;;
42038 esac
42039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42040   (eval "$ac_link") 2>conftest.er1
42041   ac_status=$?
42042   grep -v '^ *+' conftest.er1 >conftest.err
42043   rm -f conftest.er1
42044   cat conftest.err >&5
42045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42046   (exit $ac_status); } && {
42047          test -z "$ac_c_werror_flag" ||
42048          test ! -s conftest.err
42049        } && test -s conftest$ac_exeext &&
42050        $as_test_x conftest$ac_exeext; then
42051   ac_cv_func_sched_get_priority_max=yes
42052 else
42053   echo "$as_me: failed program was:" >&5
42054 sed 's/^/| /' conftest.$ac_ext >&5
42055
42056         ac_cv_func_sched_get_priority_max=no
42057 fi
42058
42059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42060       conftest$ac_exeext conftest.$ac_ext
42061 fi
42062 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
42063 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
42064 if test $ac_cv_func_sched_get_priority_max = yes; then
42065   HAVE_PRIOR_FUNCS=1
42066 else
42067   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
42068 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
42069 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
42070   echo $ECHO_N "(cached) $ECHO_C" >&6
42071 else
42072   ac_check_lib_save_LIBS=$LIBS
42073 LIBS="-lposix4  $LIBS"
42074 cat >conftest.$ac_ext <<_ACEOF
42075 /* confdefs.h.  */
42076 _ACEOF
42077 cat confdefs.h >>conftest.$ac_ext
42078 cat >>conftest.$ac_ext <<_ACEOF
42079 /* end confdefs.h.  */
42080
42081 /* Override any GCC internal prototype to avoid an error.
42082    Use char because int might match the return type of a GCC
42083    builtin and then its argument prototype would still apply.  */
42084 #ifdef __cplusplus
42085 extern "C"
42086 #endif
42087 char sched_get_priority_max ();
42088 int
42089 main ()
42090 {
42091 return sched_get_priority_max ();
42092   ;
42093   return 0;
42094 }
42095 _ACEOF
42096 rm -f conftest.$ac_objext conftest$ac_exeext
42097 if { (ac_try="$ac_link"
42098 case "(($ac_try" in
42099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42100   *) ac_try_echo=$ac_try;;
42101 esac
42102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42103   (eval "$ac_link") 2>conftest.er1
42104   ac_status=$?
42105   grep -v '^ *+' conftest.er1 >conftest.err
42106   rm -f conftest.er1
42107   cat conftest.err >&5
42108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42109   (exit $ac_status); } && {
42110          test -z "$ac_c_werror_flag" ||
42111          test ! -s conftest.err
42112        } && test -s conftest$ac_exeext &&
42113        $as_test_x conftest$ac_exeext; then
42114   ac_cv_lib_posix4_sched_get_priority_max=yes
42115 else
42116   echo "$as_me: failed program was:" >&5
42117 sed 's/^/| /' conftest.$ac_ext >&5
42118
42119         ac_cv_lib_posix4_sched_get_priority_max=no
42120 fi
42121
42122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42123       conftest$ac_exeext conftest.$ac_ext
42124 LIBS=$ac_check_lib_save_LIBS
42125 fi
42126 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
42127 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
42128 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
42129
42130                                 HAVE_PRIOR_FUNCS=1
42131                                 POSIX4_LINK=" -lposix4"
42132
42133 fi
42134
42135
42136 fi
42137
42138
42139 fi
42140
42141
42142 fi
42143
42144
42145       if test "$HAVE_PRIOR_FUNCS" = 1; then
42146         cat >>confdefs.h <<\_ACEOF
42147 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
42148 _ACEOF
42149
42150       else
42151         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
42152 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
42153       fi
42154
42155       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
42156 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
42157 if test "${ac_cv_func_pthread_cancel+set}" = set; then
42158   echo $ECHO_N "(cached) $ECHO_C" >&6
42159 else
42160   cat >conftest.$ac_ext <<_ACEOF
42161 /* confdefs.h.  */
42162 _ACEOF
42163 cat confdefs.h >>conftest.$ac_ext
42164 cat >>conftest.$ac_ext <<_ACEOF
42165 /* end confdefs.h.  */
42166 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
42167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42168 #define pthread_cancel innocuous_pthread_cancel
42169
42170 /* System header to define __stub macros and hopefully few prototypes,
42171     which can conflict with char pthread_cancel (); below.
42172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42173     <limits.h> exists even on freestanding compilers.  */
42174
42175 #ifdef __STDC__
42176 # include <limits.h>
42177 #else
42178 # include <assert.h>
42179 #endif
42180
42181 #undef pthread_cancel
42182
42183 /* Override any GCC internal prototype to avoid an error.
42184    Use char because int might match the return type of a GCC
42185    builtin and then its argument prototype would still apply.  */
42186 #ifdef __cplusplus
42187 extern "C"
42188 #endif
42189 char pthread_cancel ();
42190 /* The GNU C library defines this for functions which it implements
42191     to always fail with ENOSYS.  Some functions are actually named
42192     something starting with __ and the normal name is an alias.  */
42193 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
42194 choke me
42195 #endif
42196
42197 int
42198 main ()
42199 {
42200 return pthread_cancel ();
42201   ;
42202   return 0;
42203 }
42204 _ACEOF
42205 rm -f conftest.$ac_objext conftest$ac_exeext
42206 if { (ac_try="$ac_link"
42207 case "(($ac_try" in
42208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42209   *) ac_try_echo=$ac_try;;
42210 esac
42211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42212   (eval "$ac_link") 2>conftest.er1
42213   ac_status=$?
42214   grep -v '^ *+' conftest.er1 >conftest.err
42215   rm -f conftest.er1
42216   cat conftest.err >&5
42217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42218   (exit $ac_status); } && {
42219          test -z "$ac_c_werror_flag" ||
42220          test ! -s conftest.err
42221        } && test -s conftest$ac_exeext &&
42222        $as_test_x conftest$ac_exeext; then
42223   ac_cv_func_pthread_cancel=yes
42224 else
42225   echo "$as_me: failed program was:" >&5
42226 sed 's/^/| /' conftest.$ac_ext >&5
42227
42228         ac_cv_func_pthread_cancel=no
42229 fi
42230
42231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42232       conftest$ac_exeext conftest.$ac_ext
42233 fi
42234 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
42235 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
42236 if test $ac_cv_func_pthread_cancel = yes; then
42237   cat >>confdefs.h <<\_ACEOF
42238 #define HAVE_PTHREAD_CANCEL 1
42239 _ACEOF
42240
42241 else
42242   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
42243 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
42244 fi
42245
42246
42247       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
42248 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
42249 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
42250   echo $ECHO_N "(cached) $ECHO_C" >&6
42251 else
42252   cat >conftest.$ac_ext <<_ACEOF
42253 /* confdefs.h.  */
42254 _ACEOF
42255 cat confdefs.h >>conftest.$ac_ext
42256 cat >>conftest.$ac_ext <<_ACEOF
42257 /* end confdefs.h.  */
42258 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
42259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42260 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
42261
42262 /* System header to define __stub macros and hopefully few prototypes,
42263     which can conflict with char pthread_mutex_timedlock (); below.
42264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42265     <limits.h> exists even on freestanding compilers.  */
42266
42267 #ifdef __STDC__
42268 # include <limits.h>
42269 #else
42270 # include <assert.h>
42271 #endif
42272
42273 #undef pthread_mutex_timedlock
42274
42275 /* Override any GCC internal prototype to avoid an error.
42276    Use char because int might match the return type of a GCC
42277    builtin and then its argument prototype would still apply.  */
42278 #ifdef __cplusplus
42279 extern "C"
42280 #endif
42281 char pthread_mutex_timedlock ();
42282 /* The GNU C library defines this for functions which it implements
42283     to always fail with ENOSYS.  Some functions are actually named
42284     something starting with __ and the normal name is an alias.  */
42285 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
42286 choke me
42287 #endif
42288
42289 int
42290 main ()
42291 {
42292 return pthread_mutex_timedlock ();
42293   ;
42294   return 0;
42295 }
42296 _ACEOF
42297 rm -f conftest.$ac_objext conftest$ac_exeext
42298 if { (ac_try="$ac_link"
42299 case "(($ac_try" in
42300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42301   *) ac_try_echo=$ac_try;;
42302 esac
42303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42304   (eval "$ac_link") 2>conftest.er1
42305   ac_status=$?
42306   grep -v '^ *+' conftest.er1 >conftest.err
42307   rm -f conftest.er1
42308   cat conftest.err >&5
42309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42310   (exit $ac_status); } && {
42311          test -z "$ac_c_werror_flag" ||
42312          test ! -s conftest.err
42313        } && test -s conftest$ac_exeext &&
42314        $as_test_x conftest$ac_exeext; then
42315   ac_cv_func_pthread_mutex_timedlock=yes
42316 else
42317   echo "$as_me: failed program was:" >&5
42318 sed 's/^/| /' conftest.$ac_ext >&5
42319
42320         ac_cv_func_pthread_mutex_timedlock=no
42321 fi
42322
42323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42324       conftest$ac_exeext conftest.$ac_ext
42325 fi
42326 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
42327 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
42328 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
42329   cat >>confdefs.h <<\_ACEOF
42330 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
42331 _ACEOF
42332
42333 else
42334   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
42335 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
42336 fi
42337
42338
42339       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
42340 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
42341 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
42342   echo $ECHO_N "(cached) $ECHO_C" >&6
42343 else
42344   cat >conftest.$ac_ext <<_ACEOF
42345 /* confdefs.h.  */
42346 _ACEOF
42347 cat confdefs.h >>conftest.$ac_ext
42348 cat >>conftest.$ac_ext <<_ACEOF
42349 /* end confdefs.h.  */
42350 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
42351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42352 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
42353
42354 /* System header to define __stub macros and hopefully few prototypes,
42355     which can conflict with char pthread_attr_setstacksize (); below.
42356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42357     <limits.h> exists even on freestanding compilers.  */
42358
42359 #ifdef __STDC__
42360 # include <limits.h>
42361 #else
42362 # include <assert.h>
42363 #endif
42364
42365 #undef pthread_attr_setstacksize
42366
42367 /* Override any GCC internal prototype to avoid an error.
42368    Use char because int might match the return type of a GCC
42369    builtin and then its argument prototype would still apply.  */
42370 #ifdef __cplusplus
42371 extern "C"
42372 #endif
42373 char pthread_attr_setstacksize ();
42374 /* The GNU C library defines this for functions which it implements
42375     to always fail with ENOSYS.  Some functions are actually named
42376     something starting with __ and the normal name is an alias.  */
42377 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
42378 choke me
42379 #endif
42380
42381 int
42382 main ()
42383 {
42384 return pthread_attr_setstacksize ();
42385   ;
42386   return 0;
42387 }
42388 _ACEOF
42389 rm -f conftest.$ac_objext conftest$ac_exeext
42390 if { (ac_try="$ac_link"
42391 case "(($ac_try" in
42392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42393   *) ac_try_echo=$ac_try;;
42394 esac
42395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42396   (eval "$ac_link") 2>conftest.er1
42397   ac_status=$?
42398   grep -v '^ *+' conftest.er1 >conftest.err
42399   rm -f conftest.er1
42400   cat conftest.err >&5
42401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42402   (exit $ac_status); } && {
42403          test -z "$ac_c_werror_flag" ||
42404          test ! -s conftest.err
42405        } && test -s conftest$ac_exeext &&
42406        $as_test_x conftest$ac_exeext; then
42407   ac_cv_func_pthread_attr_setstacksize=yes
42408 else
42409   echo "$as_me: failed program was:" >&5
42410 sed 's/^/| /' conftest.$ac_ext >&5
42411
42412         ac_cv_func_pthread_attr_setstacksize=no
42413 fi
42414
42415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42416       conftest$ac_exeext conftest.$ac_ext
42417 fi
42418 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
42419 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
42420 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
42421   cat >>confdefs.h <<\_ACEOF
42422 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
42423 _ACEOF
42424
42425 fi
42426
42427
42428
42429       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
42430 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
42431 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
42432   echo $ECHO_N "(cached) $ECHO_C" >&6
42433 else
42434
42435         cat >conftest.$ac_ext <<_ACEOF
42436 /* confdefs.h.  */
42437 _ACEOF
42438 cat confdefs.h >>conftest.$ac_ext
42439 cat >>conftest.$ac_ext <<_ACEOF
42440 /* end confdefs.h.  */
42441 #include <pthread.h>
42442 int
42443 main ()
42444 {
42445
42446                pthread_mutexattr_t attr;
42447                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42448
42449   ;
42450   return 0;
42451 }
42452 _ACEOF
42453 rm -f conftest.$ac_objext
42454 if { (ac_try="$ac_compile"
42455 case "(($ac_try" in
42456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42457   *) ac_try_echo=$ac_try;;
42458 esac
42459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42460   (eval "$ac_compile") 2>conftest.er1
42461   ac_status=$?
42462   grep -v '^ *+' conftest.er1 >conftest.err
42463   rm -f conftest.er1
42464   cat conftest.err >&5
42465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42466   (exit $ac_status); } && {
42467          test -z "$ac_c_werror_flag" ||
42468          test ! -s conftest.err
42469        } && test -s conftest.$ac_objext; then
42470   wx_cv_type_pthread_mutexattr_t=yes
42471 else
42472   echo "$as_me: failed program was:" >&5
42473 sed 's/^/| /' conftest.$ac_ext >&5
42474
42475         wx_cv_type_pthread_mutexattr_t=no
42476
42477 fi
42478
42479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42480
42481 fi
42482 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
42483 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
42484
42485       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
42486         cat >>confdefs.h <<\_ACEOF
42487 #define HAVE_PTHREAD_MUTEXATTR_T 1
42488 _ACEOF
42489
42490
42491                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
42492 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
42493 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
42494   echo $ECHO_N "(cached) $ECHO_C" >&6
42495 else
42496
42497                        cat >conftest.$ac_ext <<_ACEOF
42498 /* confdefs.h.  */
42499 _ACEOF
42500 cat confdefs.h >>conftest.$ac_ext
42501 cat >>conftest.$ac_ext <<_ACEOF
42502 /* end confdefs.h.  */
42503 #include <pthread.h>
42504 int
42505 main ()
42506 {
42507
42508                                pthread_mutexattr_t attr;
42509                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42510
42511   ;
42512   return 0;
42513 }
42514 _ACEOF
42515 rm -f conftest.$ac_objext
42516 if { (ac_try="$ac_compile"
42517 case "(($ac_try" in
42518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42519   *) ac_try_echo=$ac_try;;
42520 esac
42521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42522   (eval "$ac_compile") 2>conftest.er1
42523   ac_status=$?
42524   grep -v '^ *+' conftest.er1 >conftest.err
42525   rm -f conftest.er1
42526   cat conftest.err >&5
42527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42528   (exit $ac_status); } && {
42529          test -z "$ac_c_werror_flag" ||
42530          test ! -s conftest.err
42531        } && test -s conftest.$ac_objext; then
42532   wx_cv_func_pthread_mutexattr_settype_decl=yes
42533 else
42534   echo "$as_me: failed program was:" >&5
42535 sed 's/^/| /' conftest.$ac_ext >&5
42536
42537         wx_cv_func_pthread_mutexattr_settype_decl=no
42538
42539 fi
42540
42541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42542
42543 fi
42544 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
42545 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
42546         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
42547             cat >>confdefs.h <<\_ACEOF
42548 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
42549 _ACEOF
42550
42551         fi
42552       else
42553                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
42554 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
42555 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
42556   echo $ECHO_N "(cached) $ECHO_C" >&6
42557 else
42558
42559             cat >conftest.$ac_ext <<_ACEOF
42560 /* confdefs.h.  */
42561 _ACEOF
42562 cat confdefs.h >>conftest.$ac_ext
42563 cat >>conftest.$ac_ext <<_ACEOF
42564 /* end confdefs.h.  */
42565 #include <pthread.h>
42566 int
42567 main ()
42568 {
42569
42570                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
42571
42572   ;
42573   return 0;
42574 }
42575 _ACEOF
42576 rm -f conftest.$ac_objext
42577 if { (ac_try="$ac_compile"
42578 case "(($ac_try" in
42579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42580   *) ac_try_echo=$ac_try;;
42581 esac
42582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42583   (eval "$ac_compile") 2>conftest.er1
42584   ac_status=$?
42585   grep -v '^ *+' conftest.er1 >conftest.err
42586   rm -f conftest.er1
42587   cat conftest.err >&5
42588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42589   (exit $ac_status); } && {
42590          test -z "$ac_c_werror_flag" ||
42591          test ! -s conftest.err
42592        } && test -s conftest.$ac_objext; then
42593
42594                     wx_cv_type_pthread_rec_mutex_init=yes
42595
42596 else
42597   echo "$as_me: failed program was:" >&5
42598 sed 's/^/| /' conftest.$ac_ext >&5
42599
42600
42601                     wx_cv_type_pthread_rec_mutex_init=no
42602
42603
42604 fi
42605
42606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42607
42608 fi
42609 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
42610 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
42611         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
42612           cat >>confdefs.h <<\_ACEOF
42613 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
42614 _ACEOF
42615
42616         else
42617                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
42618 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
42619         fi
42620       fi
42621     fi
42622
42623 else
42624     if test "$wxUSE_THREADS" = "yes" ; then
42625       case "${host}" in
42626         *-*-mingw32* )
42627                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
42628 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
42629 if test "${wx_cv_cflags_mthread+set}" = set; then
42630   echo $ECHO_N "(cached) $ECHO_C" >&6
42631 else
42632
42633                     CFLAGS_OLD="$CFLAGS"
42634                     CFLAGS="-mthreads $CFLAGS"
42635                     cat >conftest.$ac_ext <<_ACEOF
42636 /* confdefs.h.  */
42637 _ACEOF
42638 cat confdefs.h >>conftest.$ac_ext
42639 cat >>conftest.$ac_ext <<_ACEOF
42640 /* end confdefs.h.  */
42641
42642 int
42643 main ()
42644 {
42645
42646   ;
42647   return 0;
42648 }
42649 _ACEOF
42650 rm -f conftest.$ac_objext
42651 if { (ac_try="$ac_compile"
42652 case "(($ac_try" in
42653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42654   *) ac_try_echo=$ac_try;;
42655 esac
42656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42657   (eval "$ac_compile") 2>conftest.er1
42658   ac_status=$?
42659   grep -v '^ *+' conftest.er1 >conftest.err
42660   rm -f conftest.er1
42661   cat conftest.err >&5
42662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42663   (exit $ac_status); } && {
42664          test -z "$ac_c_werror_flag" ||
42665          test ! -s conftest.err
42666        } && test -s conftest.$ac_objext; then
42667   wx_cv_cflags_mthread=yes
42668 else
42669   echo "$as_me: failed program was:" >&5
42670 sed 's/^/| /' conftest.$ac_ext >&5
42671
42672         wx_cv_cflags_mthread=no
42673
42674 fi
42675
42676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42677
42678
42679 fi
42680 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
42681 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
42682
42683             if test "$wx_cv_cflags_mthread" = "yes"; then
42684                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
42685                 LDFLAGS="$LDFLAGS -mthreads"
42686             else
42687                                 CFLAGS="$CFLAGS_OLD"
42688             fi
42689         ;;
42690         *-pc-os2*emx )
42691             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
42692             LDFLAGS="$LDFLAGS -Zmt"
42693         ;;
42694       esac
42695     fi
42696 fi
42697
42698 { echo "$as_me:$LINENO: checking for localtime_r" >&5
42699 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
42700 if test "${ac_cv_func_localtime_r+set}" = set; then
42701   echo $ECHO_N "(cached) $ECHO_C" >&6
42702 else
42703   cat >conftest.$ac_ext <<_ACEOF
42704 /* confdefs.h.  */
42705 _ACEOF
42706 cat confdefs.h >>conftest.$ac_ext
42707 cat >>conftest.$ac_ext <<_ACEOF
42708 /* end confdefs.h.  */
42709 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
42710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42711 #define localtime_r innocuous_localtime_r
42712
42713 /* System header to define __stub macros and hopefully few prototypes,
42714     which can conflict with char localtime_r (); below.
42715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42716     <limits.h> exists even on freestanding compilers.  */
42717
42718 #ifdef __STDC__
42719 # include <limits.h>
42720 #else
42721 # include <assert.h>
42722 #endif
42723
42724 #undef localtime_r
42725
42726 /* Override any GCC internal prototype to avoid an error.
42727    Use char because int might match the return type of a GCC
42728    builtin and then its argument prototype would still apply.  */
42729 #ifdef __cplusplus
42730 extern "C"
42731 #endif
42732 char localtime_r ();
42733 /* The GNU C library defines this for functions which it implements
42734     to always fail with ENOSYS.  Some functions are actually named
42735     something starting with __ and the normal name is an alias.  */
42736 #if defined __stub_localtime_r || defined __stub___localtime_r
42737 choke me
42738 #endif
42739
42740 int
42741 main ()
42742 {
42743 return localtime_r ();
42744   ;
42745   return 0;
42746 }
42747 _ACEOF
42748 rm -f conftest.$ac_objext conftest$ac_exeext
42749 if { (ac_try="$ac_link"
42750 case "(($ac_try" in
42751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42752   *) ac_try_echo=$ac_try;;
42753 esac
42754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42755   (eval "$ac_link") 2>conftest.er1
42756   ac_status=$?
42757   grep -v '^ *+' conftest.er1 >conftest.err
42758   rm -f conftest.er1
42759   cat conftest.err >&5
42760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42761   (exit $ac_status); } && {
42762          test -z "$ac_c_werror_flag" ||
42763          test ! -s conftest.err
42764        } && test -s conftest$ac_exeext &&
42765        $as_test_x conftest$ac_exeext; then
42766   ac_cv_func_localtime_r=yes
42767 else
42768   echo "$as_me: failed program was:" >&5
42769 sed 's/^/| /' conftest.$ac_ext >&5
42770
42771         ac_cv_func_localtime_r=no
42772 fi
42773
42774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42775       conftest$ac_exeext conftest.$ac_ext
42776 fi
42777 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42778 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
42779 if test $ac_cv_func_localtime_r = yes; then
42780    cat >>confdefs.h <<\_ACEOF
42781 #define HAVE_LOCALTIME_R 1
42782 _ACEOF
42783
42784 fi
42785
42786 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
42787 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
42788 if test "${ac_cv_func_gmtime_r+set}" = set; then
42789   echo $ECHO_N "(cached) $ECHO_C" >&6
42790 else
42791   cat >conftest.$ac_ext <<_ACEOF
42792 /* confdefs.h.  */
42793 _ACEOF
42794 cat confdefs.h >>conftest.$ac_ext
42795 cat >>conftest.$ac_ext <<_ACEOF
42796 /* end confdefs.h.  */
42797 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42799 #define gmtime_r innocuous_gmtime_r
42800
42801 /* System header to define __stub macros and hopefully few prototypes,
42802     which can conflict with char gmtime_r (); below.
42803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42804     <limits.h> exists even on freestanding compilers.  */
42805
42806 #ifdef __STDC__
42807 # include <limits.h>
42808 #else
42809 # include <assert.h>
42810 #endif
42811
42812 #undef gmtime_r
42813
42814 /* Override any GCC internal prototype to avoid an error.
42815    Use char because int might match the return type of a GCC
42816    builtin and then its argument prototype would still apply.  */
42817 #ifdef __cplusplus
42818 extern "C"
42819 #endif
42820 char gmtime_r ();
42821 /* The GNU C library defines this for functions which it implements
42822     to always fail with ENOSYS.  Some functions are actually named
42823     something starting with __ and the normal name is an alias.  */
42824 #if defined __stub_gmtime_r || defined __stub___gmtime_r
42825 choke me
42826 #endif
42827
42828 int
42829 main ()
42830 {
42831 return gmtime_r ();
42832   ;
42833   return 0;
42834 }
42835 _ACEOF
42836 rm -f conftest.$ac_objext conftest$ac_exeext
42837 if { (ac_try="$ac_link"
42838 case "(($ac_try" in
42839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42840   *) ac_try_echo=$ac_try;;
42841 esac
42842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42843   (eval "$ac_link") 2>conftest.er1
42844   ac_status=$?
42845   grep -v '^ *+' conftest.er1 >conftest.err
42846   rm -f conftest.er1
42847   cat conftest.err >&5
42848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42849   (exit $ac_status); } && {
42850          test -z "$ac_c_werror_flag" ||
42851          test ! -s conftest.err
42852        } && test -s conftest$ac_exeext &&
42853        $as_test_x conftest$ac_exeext; then
42854   ac_cv_func_gmtime_r=yes
42855 else
42856   echo "$as_me: failed program was:" >&5
42857 sed 's/^/| /' conftest.$ac_ext >&5
42858
42859         ac_cv_func_gmtime_r=no
42860 fi
42861
42862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42863       conftest$ac_exeext conftest.$ac_ext
42864 fi
42865 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42866 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42867 if test $ac_cv_func_gmtime_r = yes; then
42868    cat >>confdefs.h <<\_ACEOF
42869 #define HAVE_GMTIME_R 1
42870 _ACEOF
42871
42872 fi
42873
42874
42875
42876
42877     ac_ext=c
42878 ac_cpp='$CPP $CPPFLAGS'
42879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42882
42883     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42884 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
42885
42886     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42887   echo $ECHO_N "(cached) $ECHO_C" >&6
42888 else
42889
42890
42891 ################################################################
42892
42893 ac_cv_func_which_gethostbyname_r=unknown
42894
42895 #
42896 # ONE ARGUMENT (sanity check)
42897 #
42898
42899 # This should fail, as there is no variant of gethostbyname_r() that takes
42900 # a single argument. If it actually compiles, then we can assume that
42901 # netdb.h is not declaring the function, and the compiler is thereby
42902 # assuming an implicit prototype. In which case, we're out of luck.
42903 #
42904 cat >conftest.$ac_ext <<_ACEOF
42905 /* confdefs.h.  */
42906 _ACEOF
42907 cat confdefs.h >>conftest.$ac_ext
42908 cat >>conftest.$ac_ext <<_ACEOF
42909 /* end confdefs.h.  */
42910 #include <netdb.h>
42911 int
42912 main ()
42913 {
42914
42915             char *name = "www.gnu.org";
42916             (void)gethostbyname_r(name) /* ; */
42917
42918   ;
42919   return 0;
42920 }
42921 _ACEOF
42922 rm -f conftest.$ac_objext
42923 if { (ac_try="$ac_compile"
42924 case "(($ac_try" in
42925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42926   *) ac_try_echo=$ac_try;;
42927 esac
42928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42929   (eval "$ac_compile") 2>conftest.er1
42930   ac_status=$?
42931   grep -v '^ *+' conftest.er1 >conftest.err
42932   rm -f conftest.er1
42933   cat conftest.err >&5
42934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42935   (exit $ac_status); } && {
42936          test -z "$ac_c_werror_flag" ||
42937          test ! -s conftest.err
42938        } && test -s conftest.$ac_objext; then
42939   ac_cv_func_which_gethostbyname_r=no
42940 else
42941   echo "$as_me: failed program was:" >&5
42942 sed 's/^/| /' conftest.$ac_ext >&5
42943
42944
42945 fi
42946
42947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42948
42949 #
42950 # SIX ARGUMENTS
42951 # (e.g. Linux)
42952 #
42953
42954 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42955
42956 cat >conftest.$ac_ext <<_ACEOF
42957 /* confdefs.h.  */
42958 _ACEOF
42959 cat confdefs.h >>conftest.$ac_ext
42960 cat >>conftest.$ac_ext <<_ACEOF
42961 /* end confdefs.h.  */
42962 #include <netdb.h>
42963 int
42964 main ()
42965 {
42966
42967             char *name = "www.gnu.org";
42968             struct hostent ret, *retp;
42969             char buf[1024];
42970             int buflen = 1024;
42971             int my_h_errno;
42972             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
42973
42974   ;
42975   return 0;
42976 }
42977 _ACEOF
42978 rm -f conftest.$ac_objext
42979 if { (ac_try="$ac_compile"
42980 case "(($ac_try" in
42981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42982   *) ac_try_echo=$ac_try;;
42983 esac
42984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42985   (eval "$ac_compile") 2>conftest.er1
42986   ac_status=$?
42987   grep -v '^ *+' conftest.er1 >conftest.err
42988   rm -f conftest.er1
42989   cat conftest.err >&5
42990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42991   (exit $ac_status); } && {
42992          test -z "$ac_c_werror_flag" ||
42993          test ! -s conftest.err
42994        } && test -s conftest.$ac_objext; then
42995   ac_cv_func_which_gethostbyname_r=six
42996 else
42997   echo "$as_me: failed program was:" >&5
42998 sed 's/^/| /' conftest.$ac_ext >&5
42999
43000
43001 fi
43002
43003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43004
43005 fi
43006
43007 #
43008 # FIVE ARGUMENTS
43009 # (e.g. Solaris)
43010 #
43011
43012 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43013
43014 cat >conftest.$ac_ext <<_ACEOF
43015 /* confdefs.h.  */
43016 _ACEOF
43017 cat confdefs.h >>conftest.$ac_ext
43018 cat >>conftest.$ac_ext <<_ACEOF
43019 /* end confdefs.h.  */
43020 #include <netdb.h>
43021 int
43022 main ()
43023 {
43024
43025             char *name = "www.gnu.org";
43026             struct hostent ret;
43027             char buf[1024];
43028             int buflen = 1024;
43029             int my_h_errno;
43030             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
43031
43032   ;
43033   return 0;
43034 }
43035 _ACEOF
43036 rm -f conftest.$ac_objext
43037 if { (ac_try="$ac_compile"
43038 case "(($ac_try" in
43039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43040   *) ac_try_echo=$ac_try;;
43041 esac
43042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43043   (eval "$ac_compile") 2>conftest.er1
43044   ac_status=$?
43045   grep -v '^ *+' conftest.er1 >conftest.err
43046   rm -f conftest.er1
43047   cat conftest.err >&5
43048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43049   (exit $ac_status); } && {
43050          test -z "$ac_c_werror_flag" ||
43051          test ! -s conftest.err
43052        } && test -s conftest.$ac_objext; then
43053   ac_cv_func_which_gethostbyname_r=five
43054 else
43055   echo "$as_me: failed program was:" >&5
43056 sed 's/^/| /' conftest.$ac_ext >&5
43057
43058
43059 fi
43060
43061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43062
43063 fi
43064
43065 #
43066 # THREE ARGUMENTS
43067 # (e.g. AIX, HP-UX, Tru64)
43068 #
43069
43070 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43071
43072 cat >conftest.$ac_ext <<_ACEOF
43073 /* confdefs.h.  */
43074 _ACEOF
43075 cat confdefs.h >>conftest.$ac_ext
43076 cat >>conftest.$ac_ext <<_ACEOF
43077 /* end confdefs.h.  */
43078 #include <netdb.h>
43079 int
43080 main ()
43081 {
43082
43083             char *name = "www.gnu.org";
43084             struct hostent ret;
43085             struct hostent_data data;
43086             (void)gethostbyname_r(name, &ret, &data) /* ; */
43087
43088   ;
43089   return 0;
43090 }
43091 _ACEOF
43092 rm -f conftest.$ac_objext
43093 if { (ac_try="$ac_compile"
43094 case "(($ac_try" in
43095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43096   *) ac_try_echo=$ac_try;;
43097 esac
43098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43099   (eval "$ac_compile") 2>conftest.er1
43100   ac_status=$?
43101   grep -v '^ *+' conftest.er1 >conftest.err
43102   rm -f conftest.er1
43103   cat conftest.err >&5
43104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43105   (exit $ac_status); } && {
43106          test -z "$ac_c_werror_flag" ||
43107          test ! -s conftest.err
43108        } && test -s conftest.$ac_objext; then
43109   ac_cv_func_which_gethostbyname_r=three
43110 else
43111   echo "$as_me: failed program was:" >&5
43112 sed 's/^/| /' conftest.$ac_ext >&5
43113
43114
43115 fi
43116
43117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43118
43119 fi
43120
43121 ################################################################
43122
43123
43124 fi
43125
43126 case "$ac_cv_func_which_gethostbyname_r" in
43127     three)
43128     { echo "$as_me:$LINENO: result: three" >&5
43129 echo "${ECHO_T}three" >&6; }
43130     cat >>confdefs.h <<\_ACEOF
43131 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
43132 _ACEOF
43133
43134     ;;
43135
43136     five)
43137     { echo "$as_me:$LINENO: result: five" >&5
43138 echo "${ECHO_T}five" >&6; }
43139     cat >>confdefs.h <<\_ACEOF
43140 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
43141 _ACEOF
43142
43143     ;;
43144
43145     six)
43146     { echo "$as_me:$LINENO: result: six" >&5
43147 echo "${ECHO_T}six" >&6; }
43148     cat >>confdefs.h <<\_ACEOF
43149 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
43150 _ACEOF
43151
43152     ;;
43153
43154     no)
43155     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
43156 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
43157     ;;
43158
43159     unknown)
43160     { echo "$as_me:$LINENO: result: can't tell" >&5
43161 echo "${ECHO_T}can't tell" >&6; }
43162     ;;
43163
43164     *)
43165     { { echo "$as_me:$LINENO: error: internal error" >&5
43166 echo "$as_me: error: internal error" >&2;}
43167    { (exit 1); exit 1; }; }
43168     ;;
43169 esac
43170
43171 ac_ext=c
43172 ac_cpp='$CPP $CPPFLAGS'
43173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43176
43177
43178
43179       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
43180               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
43181           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
43182 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
43183 if test "${ac_cv_func_gethostbyname+set}" = set; then
43184   echo $ECHO_N "(cached) $ECHO_C" >&6
43185 else
43186   cat >conftest.$ac_ext <<_ACEOF
43187 /* confdefs.h.  */
43188 _ACEOF
43189 cat confdefs.h >>conftest.$ac_ext
43190 cat >>conftest.$ac_ext <<_ACEOF
43191 /* end confdefs.h.  */
43192 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
43193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43194 #define gethostbyname innocuous_gethostbyname
43195
43196 /* System header to define __stub macros and hopefully few prototypes,
43197     which can conflict with char gethostbyname (); below.
43198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43199     <limits.h> exists even on freestanding compilers.  */
43200
43201 #ifdef __STDC__
43202 # include <limits.h>
43203 #else
43204 # include <assert.h>
43205 #endif
43206
43207 #undef gethostbyname
43208
43209 /* Override any GCC internal prototype to avoid an error.
43210    Use char because int might match the return type of a GCC
43211    builtin and then its argument prototype would still apply.  */
43212 #ifdef __cplusplus
43213 extern "C"
43214 #endif
43215 char gethostbyname ();
43216 /* The GNU C library defines this for functions which it implements
43217     to always fail with ENOSYS.  Some functions are actually named
43218     something starting with __ and the normal name is an alias.  */
43219 #if defined __stub_gethostbyname || defined __stub___gethostbyname
43220 choke me
43221 #endif
43222
43223 int
43224 main ()
43225 {
43226 return gethostbyname ();
43227   ;
43228   return 0;
43229 }
43230 _ACEOF
43231 rm -f conftest.$ac_objext conftest$ac_exeext
43232 if { (ac_try="$ac_link"
43233 case "(($ac_try" in
43234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43235   *) ac_try_echo=$ac_try;;
43236 esac
43237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43238   (eval "$ac_link") 2>conftest.er1
43239   ac_status=$?
43240   grep -v '^ *+' conftest.er1 >conftest.err
43241   rm -f conftest.er1
43242   cat conftest.err >&5
43243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43244   (exit $ac_status); } && {
43245          test -z "$ac_c_werror_flag" ||
43246          test ! -s conftest.err
43247        } && test -s conftest$ac_exeext &&
43248        $as_test_x conftest$ac_exeext; then
43249   ac_cv_func_gethostbyname=yes
43250 else
43251   echo "$as_me: failed program was:" >&5
43252 sed 's/^/| /' conftest.$ac_ext >&5
43253
43254         ac_cv_func_gethostbyname=no
43255 fi
43256
43257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43258       conftest$ac_exeext conftest.$ac_ext
43259 fi
43260 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
43261 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
43262 if test $ac_cv_func_gethostbyname = yes; then
43263    cat >>confdefs.h <<\_ACEOF
43264 #define HAVE_GETHOSTBYNAME 1
43265 _ACEOF
43266
43267 fi
43268
43269       fi
43270
43271 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
43272 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
43273 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
43274   echo $ECHO_N "(cached) $ECHO_C" >&6
43275 else
43276
43277                 ac_ext=cpp
43278 ac_cpp='$CXXCPP $CPPFLAGS'
43279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43282
43283
43284         cat >conftest.$ac_ext <<_ACEOF
43285 /* confdefs.h.  */
43286 _ACEOF
43287 cat confdefs.h >>conftest.$ac_ext
43288 cat >>conftest.$ac_ext <<_ACEOF
43289 /* end confdefs.h.  */
43290 #include <netdb.h>
43291 int
43292 main ()
43293 {
43294
43295                 char *name;
43296                 char *proto;
43297                 struct servent *se, *res;
43298                 char buffer[2048];
43299                 int buflen = 2048;
43300                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
43301
43302   ;
43303   return 0;
43304 }
43305 _ACEOF
43306 rm -f conftest.$ac_objext
43307 if { (ac_try="$ac_compile"
43308 case "(($ac_try" in
43309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43310   *) ac_try_echo=$ac_try;;
43311 esac
43312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43313   (eval "$ac_compile") 2>conftest.er1
43314   ac_status=$?
43315   grep -v '^ *+' conftest.er1 >conftest.err
43316   rm -f conftest.er1
43317   cat conftest.err >&5
43318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43319   (exit $ac_status); } && {
43320          test -z "$ac_cxx_werror_flag" ||
43321          test ! -s conftest.err
43322        } && test -s conftest.$ac_objext; then
43323   ac_cv_func_which_getservbyname_r=six
43324 else
43325   echo "$as_me: failed program was:" >&5
43326 sed 's/^/| /' conftest.$ac_ext >&5
43327
43328
43329                 cat >conftest.$ac_ext <<_ACEOF
43330 /* confdefs.h.  */
43331 _ACEOF
43332 cat confdefs.h >>conftest.$ac_ext
43333 cat >>conftest.$ac_ext <<_ACEOF
43334 /* end confdefs.h.  */
43335 #include <netdb.h>
43336 int
43337 main ()
43338 {
43339
43340                         char *name;
43341                         char *proto;
43342                         struct servent *se;
43343                         char buffer[2048];
43344                         int buflen = 2048;
43345                         (void) getservbyname_r(name, proto, se, buffer, buflen)
43346
43347   ;
43348   return 0;
43349 }
43350 _ACEOF
43351 rm -f conftest.$ac_objext
43352 if { (ac_try="$ac_compile"
43353 case "(($ac_try" in
43354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43355   *) ac_try_echo=$ac_try;;
43356 esac
43357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43358   (eval "$ac_compile") 2>conftest.er1
43359   ac_status=$?
43360   grep -v '^ *+' conftest.er1 >conftest.err
43361   rm -f conftest.er1
43362   cat conftest.err >&5
43363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43364   (exit $ac_status); } && {
43365          test -z "$ac_cxx_werror_flag" ||
43366          test ! -s conftest.err
43367        } && test -s conftest.$ac_objext; then
43368   ac_cv_func_which_getservbyname_r=five
43369 else
43370   echo "$as_me: failed program was:" >&5
43371 sed 's/^/| /' conftest.$ac_ext >&5
43372
43373
43374                         cat >conftest.$ac_ext <<_ACEOF
43375 /* confdefs.h.  */
43376 _ACEOF
43377 cat confdefs.h >>conftest.$ac_ext
43378 cat >>conftest.$ac_ext <<_ACEOF
43379 /* end confdefs.h.  */
43380 #include <netdb.h>
43381 int
43382 main ()
43383 {
43384
43385                                 char *name;
43386                                 char *proto;
43387                                 struct servent *se;
43388                                 struct servent_data data;
43389                                 (void) getservbyname_r(name, proto, se, &data);
43390
43391   ;
43392   return 0;
43393 }
43394 _ACEOF
43395 rm -f conftest.$ac_objext
43396 if { (ac_try="$ac_compile"
43397 case "(($ac_try" in
43398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43399   *) ac_try_echo=$ac_try;;
43400 esac
43401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43402   (eval "$ac_compile") 2>conftest.er1
43403   ac_status=$?
43404   grep -v '^ *+' conftest.er1 >conftest.err
43405   rm -f conftest.er1
43406   cat conftest.err >&5
43407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43408   (exit $ac_status); } && {
43409          test -z "$ac_cxx_werror_flag" ||
43410          test ! -s conftest.err
43411        } && test -s conftest.$ac_objext; then
43412   ac_cv_func_which_getservbyname_r=four
43413 else
43414   echo "$as_me: failed program was:" >&5
43415 sed 's/^/| /' conftest.$ac_ext >&5
43416
43417         ac_cv_func_which_getservbyname_r=no
43418
43419 fi
43420
43421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43422
43423
43424 fi
43425
43426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43427
43428
43429 fi
43430
43431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43432         ac_ext=c
43433 ac_cpp='$CPP $CPPFLAGS'
43434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43437
43438
43439
43440 fi
43441 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
43442 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
43443
43444 if test $ac_cv_func_which_getservbyname_r = six; then
43445   cat >>confdefs.h <<\_ACEOF
43446 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
43447 _ACEOF
43448
43449 elif test $ac_cv_func_which_getservbyname_r = five; then
43450   cat >>confdefs.h <<\_ACEOF
43451 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
43452 _ACEOF
43453
43454 elif test $ac_cv_func_which_getservbyname_r = four; then
43455   cat >>confdefs.h <<\_ACEOF
43456 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
43457 _ACEOF
43458
43459 fi
43460
43461
43462       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
43463               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
43464
43465 for ac_func in getservbyname
43466 do
43467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43471   echo $ECHO_N "(cached) $ECHO_C" >&6
43472 else
43473   cat >conftest.$ac_ext <<_ACEOF
43474 /* confdefs.h.  */
43475 _ACEOF
43476 cat confdefs.h >>conftest.$ac_ext
43477 cat >>conftest.$ac_ext <<_ACEOF
43478 /* end confdefs.h.  */
43479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43481 #define $ac_func innocuous_$ac_func
43482
43483 /* System header to define __stub macros and hopefully few prototypes,
43484     which can conflict with char $ac_func (); below.
43485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43486     <limits.h> exists even on freestanding compilers.  */
43487
43488 #ifdef __STDC__
43489 # include <limits.h>
43490 #else
43491 # include <assert.h>
43492 #endif
43493
43494 #undef $ac_func
43495
43496 /* Override any GCC internal prototype to avoid an error.
43497    Use char because int might match the return type of a GCC
43498    builtin and then its argument prototype would still apply.  */
43499 #ifdef __cplusplus
43500 extern "C"
43501 #endif
43502 char $ac_func ();
43503 /* The GNU C library defines this for functions which it implements
43504     to always fail with ENOSYS.  Some functions are actually named
43505     something starting with __ and the normal name is an alias.  */
43506 #if defined __stub_$ac_func || defined __stub___$ac_func
43507 choke me
43508 #endif
43509
43510 int
43511 main ()
43512 {
43513 return $ac_func ();
43514   ;
43515   return 0;
43516 }
43517 _ACEOF
43518 rm -f conftest.$ac_objext conftest$ac_exeext
43519 if { (ac_try="$ac_link"
43520 case "(($ac_try" in
43521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43522   *) ac_try_echo=$ac_try;;
43523 esac
43524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43525   (eval "$ac_link") 2>conftest.er1
43526   ac_status=$?
43527   grep -v '^ *+' conftest.er1 >conftest.err
43528   rm -f conftest.er1
43529   cat conftest.err >&5
43530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43531   (exit $ac_status); } && {
43532          test -z "$ac_c_werror_flag" ||
43533          test ! -s conftest.err
43534        } && test -s conftest$ac_exeext &&
43535        $as_test_x conftest$ac_exeext; then
43536   eval "$as_ac_var=yes"
43537 else
43538   echo "$as_me: failed program was:" >&5
43539 sed 's/^/| /' conftest.$ac_ext >&5
43540
43541         eval "$as_ac_var=no"
43542 fi
43543
43544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43545       conftest$ac_exeext conftest.$ac_ext
43546 fi
43547 ac_res=`eval echo '${'$as_ac_var'}'`
43548                { echo "$as_me:$LINENO: result: $ac_res" >&5
43549 echo "${ECHO_T}$ac_res" >&6; }
43550 if test `eval echo '${'$as_ac_var'}'` = yes; then
43551   cat >>confdefs.h <<_ACEOF
43552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43553 _ACEOF
43554   cat >>confdefs.h <<\_ACEOF
43555 #define HAVE_GETSERVBYNAME 1
43556 _ACEOF
43557
43558 fi
43559 done
43560
43561       fi
43562
43563 if test "$wxUSE_THREADS" = "yes"; then
43564   cat >>confdefs.h <<\_ACEOF
43565 #define wxUSE_THREADS 1
43566 _ACEOF
43567
43568
43569   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
43570 else
43571       if test "$wx_cv_func_strtok_r" = "yes"; then
43572     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
43573 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
43574     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
43575         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
43576         { echo "$as_me:$LINENO: result: yes" >&5
43577 echo "${ECHO_T}yes" >&6; }
43578     else
43579         { echo "$as_me:$LINENO: result: no" >&5
43580 echo "${ECHO_T}no" >&6; }
43581     fi
43582   fi
43583 fi
43584
43585 if test "$WXGTK20" = 1 ; then
43586   cat >>confdefs.h <<_ACEOF
43587 #define __WXGTK20__ $WXGTK20
43588 _ACEOF
43589
43590   WXGTK12=1
43591 fi
43592
43593 if test "$WXGTK12" = 1 ; then
43594   cat >>confdefs.h <<_ACEOF
43595 #define __WXGTK12__ $WXGTK12
43596 _ACEOF
43597
43598 fi
43599
43600 if test "$WXGTK127" = 1 ; then
43601   cat >>confdefs.h <<_ACEOF
43602 #define __WXGTK127__ $WXGTK127
43603 _ACEOF
43604
43605 fi
43606
43607 if test "$WXGPE" = 1 ; then
43608   cat >>confdefs.h <<_ACEOF
43609 #define __WXGPE__ $WXGPE
43610 _ACEOF
43611
43612 fi
43613
43614 DEBUG_CFLAGS=
43615 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
43616     DEBUG_CFLAGS="-g"
43617     wxUSE_OPTIMISE=no
43618 fi
43619
43620 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
43621     wxUSE_DEBUG_INFO=yes
43622     if test "$GCC" = yes; then
43623         DEBUG_CFLAGS="-ggdb"
43624     fi
43625 fi
43626
43627 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
43628     cat >>confdefs.h <<\_ACEOF
43629 #define WXDEBUG 1
43630 _ACEOF
43631
43632     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
43633 else
43634     if test "$wxUSE_GTK" = 1 ; then
43635         if test "x$wxGTK_VERSION" = "x1" ; then
43636             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
43637         fi
43638     fi
43639 fi
43640
43641 if test "$wxUSE_MEM_TRACING" = "yes" ; then
43642     cat >>confdefs.h <<\_ACEOF
43643 #define wxUSE_MEMORY_TRACING 1
43644 _ACEOF
43645
43646     cat >>confdefs.h <<\_ACEOF
43647 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
43648 _ACEOF
43649
43650     cat >>confdefs.h <<\_ACEOF
43651 #define wxUSE_DEBUG_NEW_ALWAYS 1
43652 _ACEOF
43653
43654     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
43655 fi
43656
43657 if test "$wxUSE_DMALLOC" = "yes" ; then
43658     DMALLOC_LIBS="-ldmallocthcxx"
43659 fi
43660
43661 PROFILE_FLAGS=
43662 if test "$wxUSE_PROFILE" = "yes" ; then
43663     PROFILE_FLAGS=" -pg"
43664 fi
43665
43666 if test "$GCC" = "yes" ; then
43667     if test "$wxUSE_NO_RTTI" = "yes" ; then
43668         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
43669     fi
43670     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43671         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
43672     fi
43673     if test "$wxUSE_PERMISSIVE" = "yes" ; then
43674         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
43675     fi
43676
43677                                                 case "${host}" in
43678       powerpc*-*-aix* )
43679         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
43680         ;;
43681       *-hppa* )
43682         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
43683         ;;
43684     esac
43685 fi
43686
43687 OPTIMISE_CFLAGS=
43688 if test "$wxUSE_OPTIMISE" = "no" ; then
43689     if test "$GCC" = yes ; then
43690                         OPTIMISE_CFLAGS="-O0"
43691     fi
43692 else
43693     if test "$GCC" = yes ; then
43694         case "${host}" in
43695             *-pc-os2_emx | *-pc-os2-emx )
43696                                                 OPTIMISE_CFLAGS="-O2"
43697             ;;
43698             *)
43699                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
43700             ;;
43701         esac
43702     else
43703         OPTIMISE_CFLAGS="-O"
43704     fi
43705 fi
43706
43707
43708 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
43709     cat >>confdefs.h <<\_ACEOF
43710 #define WXWIN_COMPATIBILITY_2_6 1
43711 _ACEOF
43712
43713
43714     WXWIN_COMPATIBILITY_2_8="yes"
43715 fi
43716
43717 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
43718     cat >>confdefs.h <<\_ACEOF
43719 #define WXWIN_COMPATIBILITY_2_8 1
43720 _ACEOF
43721
43722 fi
43723
43724
43725 if test "$wxUSE_GUI" = "yes"; then
43726     cat >>confdefs.h <<\_ACEOF
43727 #define wxUSE_GUI 1
43728 _ACEOF
43729
43730
43731                                             fi
43732
43733
43734 if test "$wxUSE_UNIX" = "yes"; then
43735   cat >>confdefs.h <<\_ACEOF
43736 #define wxUSE_UNIX 1
43737 _ACEOF
43738
43739 fi
43740
43741
43742 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43743
43744     HAVE_DL_FUNCS=0
43745     HAVE_SHL_FUNCS=0
43746     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43747         if test "$USE_DARWIN" = 1; then
43748                         HAVE_DL_FUNCS=1
43749         elif test "$USE_DOS" = 1; then
43750             HAVE_DL_FUNCS=0
43751         else
43752
43753 for ac_func in dlopen
43754 do
43755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43759   echo $ECHO_N "(cached) $ECHO_C" >&6
43760 else
43761   cat >conftest.$ac_ext <<_ACEOF
43762 /* confdefs.h.  */
43763 _ACEOF
43764 cat confdefs.h >>conftest.$ac_ext
43765 cat >>conftest.$ac_ext <<_ACEOF
43766 /* end confdefs.h.  */
43767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43769 #define $ac_func innocuous_$ac_func
43770
43771 /* System header to define __stub macros and hopefully few prototypes,
43772     which can conflict with char $ac_func (); below.
43773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43774     <limits.h> exists even on freestanding compilers.  */
43775
43776 #ifdef __STDC__
43777 # include <limits.h>
43778 #else
43779 # include <assert.h>
43780 #endif
43781
43782 #undef $ac_func
43783
43784 /* Override any GCC internal prototype to avoid an error.
43785    Use char because int might match the return type of a GCC
43786    builtin and then its argument prototype would still apply.  */
43787 #ifdef __cplusplus
43788 extern "C"
43789 #endif
43790 char $ac_func ();
43791 /* The GNU C library defines this for functions which it implements
43792     to always fail with ENOSYS.  Some functions are actually named
43793     something starting with __ and the normal name is an alias.  */
43794 #if defined __stub_$ac_func || defined __stub___$ac_func
43795 choke me
43796 #endif
43797
43798 int
43799 main ()
43800 {
43801 return $ac_func ();
43802   ;
43803   return 0;
43804 }
43805 _ACEOF
43806 rm -f conftest.$ac_objext conftest$ac_exeext
43807 if { (ac_try="$ac_link"
43808 case "(($ac_try" in
43809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43810   *) ac_try_echo=$ac_try;;
43811 esac
43812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43813   (eval "$ac_link") 2>conftest.er1
43814   ac_status=$?
43815   grep -v '^ *+' conftest.er1 >conftest.err
43816   rm -f conftest.er1
43817   cat conftest.err >&5
43818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43819   (exit $ac_status); } && {
43820          test -z "$ac_c_werror_flag" ||
43821          test ! -s conftest.err
43822        } && test -s conftest$ac_exeext &&
43823        $as_test_x conftest$ac_exeext; then
43824   eval "$as_ac_var=yes"
43825 else
43826   echo "$as_me: failed program was:" >&5
43827 sed 's/^/| /' conftest.$ac_ext >&5
43828
43829         eval "$as_ac_var=no"
43830 fi
43831
43832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43833       conftest$ac_exeext conftest.$ac_ext
43834 fi
43835 ac_res=`eval echo '${'$as_ac_var'}'`
43836                { echo "$as_me:$LINENO: result: $ac_res" >&5
43837 echo "${ECHO_T}$ac_res" >&6; }
43838 if test `eval echo '${'$as_ac_var'}'` = yes; then
43839   cat >>confdefs.h <<_ACEOF
43840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43841 _ACEOF
43842
43843                 cat >>confdefs.h <<\_ACEOF
43844 #define HAVE_DLOPEN 1
43845 _ACEOF
43846
43847                 HAVE_DL_FUNCS=1
43848
43849 else
43850
43851                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43852 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
43853 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43854   echo $ECHO_N "(cached) $ECHO_C" >&6
43855 else
43856   ac_check_lib_save_LIBS=$LIBS
43857 LIBS="-ldl  $LIBS"
43858 cat >conftest.$ac_ext <<_ACEOF
43859 /* confdefs.h.  */
43860 _ACEOF
43861 cat confdefs.h >>conftest.$ac_ext
43862 cat >>conftest.$ac_ext <<_ACEOF
43863 /* end confdefs.h.  */
43864
43865 /* Override any GCC internal prototype to avoid an error.
43866    Use char because int might match the return type of a GCC
43867    builtin and then its argument prototype would still apply.  */
43868 #ifdef __cplusplus
43869 extern "C"
43870 #endif
43871 char dlopen ();
43872 int
43873 main ()
43874 {
43875 return dlopen ();
43876   ;
43877   return 0;
43878 }
43879 _ACEOF
43880 rm -f conftest.$ac_objext conftest$ac_exeext
43881 if { (ac_try="$ac_link"
43882 case "(($ac_try" in
43883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43884   *) ac_try_echo=$ac_try;;
43885 esac
43886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43887   (eval "$ac_link") 2>conftest.er1
43888   ac_status=$?
43889   grep -v '^ *+' conftest.er1 >conftest.err
43890   rm -f conftest.er1
43891   cat conftest.err >&5
43892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43893   (exit $ac_status); } && {
43894          test -z "$ac_c_werror_flag" ||
43895          test ! -s conftest.err
43896        } && test -s conftest$ac_exeext &&
43897        $as_test_x conftest$ac_exeext; then
43898   ac_cv_lib_dl_dlopen=yes
43899 else
43900   echo "$as_me: failed program was:" >&5
43901 sed 's/^/| /' conftest.$ac_ext >&5
43902
43903         ac_cv_lib_dl_dlopen=no
43904 fi
43905
43906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43907       conftest$ac_exeext conftest.$ac_ext
43908 LIBS=$ac_check_lib_save_LIBS
43909 fi
43910 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43911 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
43912 if test $ac_cv_lib_dl_dlopen = yes; then
43913
43914                                 cat >>confdefs.h <<\_ACEOF
43915 #define HAVE_DLOPEN 1
43916 _ACEOF
43917
43918                                 HAVE_DL_FUNCS=1
43919                                 DL_LINK=" -ldl$DL_LINK"
43920
43921 else
43922
43923
43924 for ac_func in shl_load
43925 do
43926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43930   echo $ECHO_N "(cached) $ECHO_C" >&6
43931 else
43932   cat >conftest.$ac_ext <<_ACEOF
43933 /* confdefs.h.  */
43934 _ACEOF
43935 cat confdefs.h >>conftest.$ac_ext
43936 cat >>conftest.$ac_ext <<_ACEOF
43937 /* end confdefs.h.  */
43938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43940 #define $ac_func innocuous_$ac_func
43941
43942 /* System header to define __stub macros and hopefully few prototypes,
43943     which can conflict with char $ac_func (); below.
43944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43945     <limits.h> exists even on freestanding compilers.  */
43946
43947 #ifdef __STDC__
43948 # include <limits.h>
43949 #else
43950 # include <assert.h>
43951 #endif
43952
43953 #undef $ac_func
43954
43955 /* Override any GCC internal prototype to avoid an error.
43956    Use char because int might match the return type of a GCC
43957    builtin and then its argument prototype would still apply.  */
43958 #ifdef __cplusplus
43959 extern "C"
43960 #endif
43961 char $ac_func ();
43962 /* The GNU C library defines this for functions which it implements
43963     to always fail with ENOSYS.  Some functions are actually named
43964     something starting with __ and the normal name is an alias.  */
43965 #if defined __stub_$ac_func || defined __stub___$ac_func
43966 choke me
43967 #endif
43968
43969 int
43970 main ()
43971 {
43972 return $ac_func ();
43973   ;
43974   return 0;
43975 }
43976 _ACEOF
43977 rm -f conftest.$ac_objext conftest$ac_exeext
43978 if { (ac_try="$ac_link"
43979 case "(($ac_try" in
43980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43981   *) ac_try_echo=$ac_try;;
43982 esac
43983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43984   (eval "$ac_link") 2>conftest.er1
43985   ac_status=$?
43986   grep -v '^ *+' conftest.er1 >conftest.err
43987   rm -f conftest.er1
43988   cat conftest.err >&5
43989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43990   (exit $ac_status); } && {
43991          test -z "$ac_c_werror_flag" ||
43992          test ! -s conftest.err
43993        } && test -s conftest$ac_exeext &&
43994        $as_test_x conftest$ac_exeext; then
43995   eval "$as_ac_var=yes"
43996 else
43997   echo "$as_me: failed program was:" >&5
43998 sed 's/^/| /' conftest.$ac_ext >&5
43999
44000         eval "$as_ac_var=no"
44001 fi
44002
44003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44004       conftest$ac_exeext conftest.$ac_ext
44005 fi
44006 ac_res=`eval echo '${'$as_ac_var'}'`
44007                { echo "$as_me:$LINENO: result: $ac_res" >&5
44008 echo "${ECHO_T}$ac_res" >&6; }
44009 if test `eval echo '${'$as_ac_var'}'` = yes; then
44010   cat >>confdefs.h <<_ACEOF
44011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44012 _ACEOF
44013
44014                                                 cat >>confdefs.h <<\_ACEOF
44015 #define HAVE_SHL_LOAD 1
44016 _ACEOF
44017
44018                                                 HAVE_SHL_FUNCS=1
44019
44020 else
44021
44022                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
44023 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
44024 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
44025   echo $ECHO_N "(cached) $ECHO_C" >&6
44026 else
44027   ac_check_lib_save_LIBS=$LIBS
44028 LIBS="-lshl_load  $LIBS"
44029 cat >conftest.$ac_ext <<_ACEOF
44030 /* confdefs.h.  */
44031 _ACEOF
44032 cat confdefs.h >>conftest.$ac_ext
44033 cat >>conftest.$ac_ext <<_ACEOF
44034 /* end confdefs.h.  */
44035
44036 /* Override any GCC internal prototype to avoid an error.
44037    Use char because int might match the return type of a GCC
44038    builtin and then its argument prototype would still apply.  */
44039 #ifdef __cplusplus
44040 extern "C"
44041 #endif
44042 char dld ();
44043 int
44044 main ()
44045 {
44046 return dld ();
44047   ;
44048   return 0;
44049 }
44050 _ACEOF
44051 rm -f conftest.$ac_objext conftest$ac_exeext
44052 if { (ac_try="$ac_link"
44053 case "(($ac_try" in
44054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44055   *) ac_try_echo=$ac_try;;
44056 esac
44057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44058   (eval "$ac_link") 2>conftest.er1
44059   ac_status=$?
44060   grep -v '^ *+' conftest.er1 >conftest.err
44061   rm -f conftest.er1
44062   cat conftest.err >&5
44063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44064   (exit $ac_status); } && {
44065          test -z "$ac_c_werror_flag" ||
44066          test ! -s conftest.err
44067        } && test -s conftest$ac_exeext &&
44068        $as_test_x conftest$ac_exeext; then
44069   ac_cv_lib_shl_load_dld=yes
44070 else
44071   echo "$as_me: failed program was:" >&5
44072 sed 's/^/| /' conftest.$ac_ext >&5
44073
44074         ac_cv_lib_shl_load_dld=no
44075 fi
44076
44077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44078       conftest$ac_exeext conftest.$ac_ext
44079 LIBS=$ac_check_lib_save_LIBS
44080 fi
44081 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
44082 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
44083 if test $ac_cv_lib_shl_load_dld = yes; then
44084
44085                                                                 HAVE_SHL_FUNCS=1
44086                                                                 DL_LINK=" -ldld$DL_LINK"
44087
44088 fi
44089
44090
44091 fi
44092 done
44093
44094
44095 fi
44096
44097
44098 fi
44099 done
44100
44101
44102                 if test "$HAVE_DL_FUNCS" = 1; then
44103
44104 for ac_func in dlerror
44105 do
44106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44110   echo $ECHO_N "(cached) $ECHO_C" >&6
44111 else
44112   cat >conftest.$ac_ext <<_ACEOF
44113 /* confdefs.h.  */
44114 _ACEOF
44115 cat confdefs.h >>conftest.$ac_ext
44116 cat >>conftest.$ac_ext <<_ACEOF
44117 /* end confdefs.h.  */
44118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44120 #define $ac_func innocuous_$ac_func
44121
44122 /* System header to define __stub macros and hopefully few prototypes,
44123     which can conflict with char $ac_func (); below.
44124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44125     <limits.h> exists even on freestanding compilers.  */
44126
44127 #ifdef __STDC__
44128 # include <limits.h>
44129 #else
44130 # include <assert.h>
44131 #endif
44132
44133 #undef $ac_func
44134
44135 /* Override any GCC internal prototype to avoid an error.
44136    Use char because int might match the return type of a GCC
44137    builtin and then its argument prototype would still apply.  */
44138 #ifdef __cplusplus
44139 extern "C"
44140 #endif
44141 char $ac_func ();
44142 /* The GNU C library defines this for functions which it implements
44143     to always fail with ENOSYS.  Some functions are actually named
44144     something starting with __ and the normal name is an alias.  */
44145 #if defined __stub_$ac_func || defined __stub___$ac_func
44146 choke me
44147 #endif
44148
44149 int
44150 main ()
44151 {
44152 return $ac_func ();
44153   ;
44154   return 0;
44155 }
44156 _ACEOF
44157 rm -f conftest.$ac_objext conftest$ac_exeext
44158 if { (ac_try="$ac_link"
44159 case "(($ac_try" in
44160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44161   *) ac_try_echo=$ac_try;;
44162 esac
44163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44164   (eval "$ac_link") 2>conftest.er1
44165   ac_status=$?
44166   grep -v '^ *+' conftest.er1 >conftest.err
44167   rm -f conftest.er1
44168   cat conftest.err >&5
44169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44170   (exit $ac_status); } && {
44171          test -z "$ac_c_werror_flag" ||
44172          test ! -s conftest.err
44173        } && test -s conftest$ac_exeext &&
44174        $as_test_x conftest$ac_exeext; then
44175   eval "$as_ac_var=yes"
44176 else
44177   echo "$as_me: failed program was:" >&5
44178 sed 's/^/| /' conftest.$ac_ext >&5
44179
44180         eval "$as_ac_var=no"
44181 fi
44182
44183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44184       conftest$ac_exeext conftest.$ac_ext
44185 fi
44186 ac_res=`eval echo '${'$as_ac_var'}'`
44187                { echo "$as_me:$LINENO: result: $ac_res" >&5
44188 echo "${ECHO_T}$ac_res" >&6; }
44189 if test `eval echo '${'$as_ac_var'}'` = yes; then
44190   cat >>confdefs.h <<_ACEOF
44191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44192 _ACEOF
44193  cat >>confdefs.h <<\_ACEOF
44194 #define HAVE_DLERROR 1
44195 _ACEOF
44196
44197 else
44198
44199                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
44200 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
44201 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
44202   echo $ECHO_N "(cached) $ECHO_C" >&6
44203 else
44204   ac_check_lib_save_LIBS=$LIBS
44205 LIBS="-ldl  $LIBS"
44206 cat >conftest.$ac_ext <<_ACEOF
44207 /* confdefs.h.  */
44208 _ACEOF
44209 cat confdefs.h >>conftest.$ac_ext
44210 cat >>conftest.$ac_ext <<_ACEOF
44211 /* end confdefs.h.  */
44212
44213 /* Override any GCC internal prototype to avoid an error.
44214    Use char because int might match the return type of a GCC
44215    builtin and then its argument prototype would still apply.  */
44216 #ifdef __cplusplus
44217 extern "C"
44218 #endif
44219 char dlerror ();
44220 int
44221 main ()
44222 {
44223 return dlerror ();
44224   ;
44225   return 0;
44226 }
44227 _ACEOF
44228 rm -f conftest.$ac_objext conftest$ac_exeext
44229 if { (ac_try="$ac_link"
44230 case "(($ac_try" in
44231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44232   *) ac_try_echo=$ac_try;;
44233 esac
44234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44235   (eval "$ac_link") 2>conftest.er1
44236   ac_status=$?
44237   grep -v '^ *+' conftest.er1 >conftest.err
44238   rm -f conftest.er1
44239   cat conftest.err >&5
44240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44241   (exit $ac_status); } && {
44242          test -z "$ac_c_werror_flag" ||
44243          test ! -s conftest.err
44244        } && test -s conftest$ac_exeext &&
44245        $as_test_x conftest$ac_exeext; then
44246   ac_cv_lib_dl_dlerror=yes
44247 else
44248   echo "$as_me: failed program was:" >&5
44249 sed 's/^/| /' conftest.$ac_ext >&5
44250
44251         ac_cv_lib_dl_dlerror=no
44252 fi
44253
44254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44255       conftest$ac_exeext conftest.$ac_ext
44256 LIBS=$ac_check_lib_save_LIBS
44257 fi
44258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
44259 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
44260 if test $ac_cv_lib_dl_dlerror = yes; then
44261   cat >>confdefs.h <<\_ACEOF
44262 #define HAVE_DLERROR 1
44263 _ACEOF
44264
44265 fi
44266
44267
44268
44269 fi
44270 done
44271
44272         fi
44273         fi
44274
44275         if test "$HAVE_DL_FUNCS" = 0; then
44276             if test "$HAVE_SHL_FUNCS" = 0; then
44277               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
44278                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
44279 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
44280                   wxUSE_DYNAMIC_LOADER=no
44281                   wxUSE_DYNLIB_CLASS=no
44282               else
44283                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
44284 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
44285               fi
44286             fi
44287         fi
44288     fi
44289 fi
44290
44291 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
44292     cat >>confdefs.h <<\_ACEOF
44293 #define wxUSE_DYNAMIC_LOADER 1
44294 _ACEOF
44295
44296 fi
44297 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44298     cat >>confdefs.h <<\_ACEOF
44299 #define wxUSE_DYNLIB_CLASS 1
44300 _ACEOF
44301
44302 fi
44303
44304
44305
44306 if test "$wxUSE_PLUGINS" = "yes" ; then
44307     if test "$wxUSE_SHARED" = "no" ; then
44308         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
44309 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
44310         wxUSE_PLUGINS=no
44311     fi
44312     if test "$wxUSE_MONOLITHIC" = "yes" ; then
44313         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
44314 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
44315         wxUSE_PLUGINS=no
44316     fi
44317     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
44318         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
44319 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
44320         wxUSE_PLUGINS=no
44321     fi
44322     if test "$wxUSE_PLUGINS" = "yes" ; then
44323         cat >>confdefs.h <<\_ACEOF
44324 #define wxUSE_PLUGINS 1
44325 _ACEOF
44326
44327     fi
44328 fi
44329
44330
44331 if test "$wxUSE_STL" = "yes"; then
44332   cat >>confdefs.h <<\_ACEOF
44333 #define wxUSE_STL 1
44334 _ACEOF
44335
44336 fi
44337
44338 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
44339   cat >>confdefs.h <<\_ACEOF
44340 #define wxUSE_EXTENDED_RTTI 1
44341 _ACEOF
44342
44343 fi
44344
44345 if test "$wxUSE_APPLE_IEEE" = "yes"; then
44346   cat >>confdefs.h <<\_ACEOF
44347 #define wxUSE_APPLE_IEEE 1
44348 _ACEOF
44349
44350 fi
44351
44352 if test "$wxUSE_TIMER" = "yes"; then
44353   cat >>confdefs.h <<\_ACEOF
44354 #define wxUSE_TIMER 1
44355 _ACEOF
44356
44357 fi
44358
44359 if test "$USE_UNIX" = "1" ; then
44360         if test "$wxUSE_MGL" != 1; then
44361                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
44362 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
44363 if test "${ac_cv_header_sys_soundcard+set}" = set; then
44364   echo $ECHO_N "(cached) $ECHO_C" >&6
44365 else
44366
44367             cat >conftest.$ac_ext <<_ACEOF
44368 /* confdefs.h.  */
44369 _ACEOF
44370 cat confdefs.h >>conftest.$ac_ext
44371 cat >>conftest.$ac_ext <<_ACEOF
44372 /* end confdefs.h.  */
44373
44374                     #include <sys/ioctl.h>
44375                     #include <sys/soundcard.h>
44376
44377 int
44378 main ()
44379 {
44380
44381                     ioctl(0, SNDCTL_DSP_SPEED, 0);
44382
44383   ;
44384   return 0;
44385 }
44386 _ACEOF
44387 rm -f conftest.$ac_objext conftest$ac_exeext
44388 if { (ac_try="$ac_link"
44389 case "(($ac_try" in
44390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44391   *) ac_try_echo=$ac_try;;
44392 esac
44393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44394   (eval "$ac_link") 2>conftest.er1
44395   ac_status=$?
44396   grep -v '^ *+' conftest.er1 >conftest.err
44397   rm -f conftest.er1
44398   cat conftest.err >&5
44399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44400   (exit $ac_status); } && {
44401          test -z "$ac_c_werror_flag" ||
44402          test ! -s conftest.err
44403        } && test -s conftest$ac_exeext &&
44404        $as_test_x conftest$ac_exeext; then
44405   ac_cv_header_sys_soundcard=yes
44406 else
44407   echo "$as_me: failed program was:" >&5
44408 sed 's/^/| /' conftest.$ac_ext >&5
44409
44410
44411                     saveLibs="$LIBS"
44412                     LIBS="$saveLibs -lossaudio"
44413                     cat >conftest.$ac_ext <<_ACEOF
44414 /* confdefs.h.  */
44415 _ACEOF
44416 cat confdefs.h >>conftest.$ac_ext
44417 cat >>conftest.$ac_ext <<_ACEOF
44418 /* end confdefs.h.  */
44419
44420                             #include <sys/ioctl.h>
44421                             #include <sys/soundcard.h>
44422
44423 int
44424 main ()
44425 {
44426
44427                             ioctl(0, SNDCTL_DSP_SPEED, 0);
44428
44429   ;
44430   return 0;
44431 }
44432 _ACEOF
44433 rm -f conftest.$ac_objext conftest$ac_exeext
44434 if { (ac_try="$ac_link"
44435 case "(($ac_try" in
44436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44437   *) ac_try_echo=$ac_try;;
44438 esac
44439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44440   (eval "$ac_link") 2>conftest.er1
44441   ac_status=$?
44442   grep -v '^ *+' conftest.er1 >conftest.err
44443   rm -f conftest.er1
44444   cat conftest.err >&5
44445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44446   (exit $ac_status); } && {
44447          test -z "$ac_c_werror_flag" ||
44448          test ! -s conftest.err
44449        } && test -s conftest$ac_exeext &&
44450        $as_test_x conftest$ac_exeext; then
44451   ac_cv_header_sys_soundcard=yes
44452 else
44453   echo "$as_me: failed program was:" >&5
44454 sed 's/^/| /' conftest.$ac_ext >&5
44455
44456
44457                             LIBS="$saveLibs"
44458                             ac_cv_header_sys_soundcard=no
44459
44460
44461 fi
44462
44463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44464       conftest$ac_exeext conftest.$ac_ext
44465
44466
44467 fi
44468
44469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44470       conftest$ac_exeext conftest.$ac_ext
44471
44472 fi
44473 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
44474 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
44475     fi
44476
44477     if test "$ac_cv_header_sys_soundcard" = "yes"; then
44478         cat >>confdefs.h <<\_ACEOF
44479 #define HAVE_SYS_SOUNDCARD_H 1
44480 _ACEOF
44481
44482     fi
44483 fi
44484
44485 WITH_PLUGIN_SDL=0
44486 if test "$wxUSE_SOUND" = "yes"; then
44487   if test "$USE_UNIX" = "1" ; then
44488     if test "$wxUSE_LIBSDL" != "no"; then
44489
44490 # Check whether --with-sdl-prefix was given.
44491 if test "${with_sdl_prefix+set}" = set; then
44492   withval=$with_sdl_prefix; sdl_prefix="$withval"
44493 else
44494   sdl_prefix=""
44495 fi
44496
44497
44498 # Check whether --with-sdl-exec-prefix was given.
44499 if test "${with_sdl_exec_prefix+set}" = set; then
44500   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
44501 else
44502   sdl_exec_prefix=""
44503 fi
44504
44505 # Check whether --enable-sdltest was given.
44506 if test "${enable_sdltest+set}" = set; then
44507   enableval=$enable_sdltest;
44508 else
44509   enable_sdltest=yes
44510 fi
44511
44512
44513   if test x$sdl_exec_prefix != x ; then
44514     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
44515     if test x${SDL_CONFIG+set} != xset ; then
44516       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
44517     fi
44518   fi
44519   if test x$sdl_prefix != x ; then
44520     sdl_args="$sdl_args --prefix=$sdl_prefix"
44521     if test x${SDL_CONFIG+set} != xset ; then
44522       SDL_CONFIG=$sdl_prefix/bin/sdl-config
44523     fi
44524   fi
44525
44526   if test "x$prefix" != xNONE; then
44527     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
44528   fi
44529   # Extract the first word of "sdl-config", so it can be a program name with args.
44530 set dummy sdl-config; ac_word=$2
44531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44533 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
44534   echo $ECHO_N "(cached) $ECHO_C" >&6
44535 else
44536   case $SDL_CONFIG in
44537   [\\/]* | ?:[\\/]*)
44538   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
44539   ;;
44540   *)
44541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44542 for as_dir in $PATH
44543 do
44544   IFS=$as_save_IFS
44545   test -z "$as_dir" && as_dir=.
44546   for ac_exec_ext in '' $ac_executable_extensions; do
44547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44548     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44550     break 2
44551   fi
44552 done
44553 done
44554 IFS=$as_save_IFS
44555
44556   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44557   ;;
44558 esac
44559 fi
44560 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44561 if test -n "$SDL_CONFIG"; then
44562   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44563 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44564 else
44565   { echo "$as_me:$LINENO: result: no" >&5
44566 echo "${ECHO_T}no" >&6; }
44567 fi
44568
44569
44570   min_sdl_version=1.2.0
44571   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44572 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44573   no_sdl=""
44574   if test "$SDL_CONFIG" = "no" ; then
44575     no_sdl=yes
44576   else
44577     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44578     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44579
44580     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44581            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44582     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44583            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44584     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44585            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44586     if test "x$enable_sdltest" = "xyes" ; then
44587       ac_save_CFLAGS="$CFLAGS"
44588       ac_save_CXXFLAGS="$CXXFLAGS"
44589       ac_save_LIBS="$LIBS"
44590       CFLAGS="$CFLAGS $SDL_CFLAGS"
44591       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44592       LIBS="$LIBS $SDL_LIBS"
44593       rm -f conf.sdltest
44594       if test "$cross_compiling" = yes; then
44595   echo $ac_n "cross compiling; assumed OK... $ac_c"
44596 else
44597   cat >conftest.$ac_ext <<_ACEOF
44598 /* confdefs.h.  */
44599 _ACEOF
44600 cat confdefs.h >>conftest.$ac_ext
44601 cat >>conftest.$ac_ext <<_ACEOF
44602 /* end confdefs.h.  */
44603
44604 #include <stdio.h>
44605 #include <stdlib.h>
44606 #include <string.h>
44607 #include "SDL.h"
44608
44609 char*
44610 my_strdup (char *str)
44611 {
44612   char *new_str;
44613
44614   if (str)
44615     {
44616       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44617       strcpy (new_str, str);
44618     }
44619   else
44620     new_str = NULL;
44621
44622   return new_str;
44623 }
44624
44625 int main (int argc, char *argv[])
44626 {
44627   int major, minor, micro;
44628   char *tmp_version;
44629
44630   /* This hangs on some systems (?)
44631   system ("touch conf.sdltest");
44632   */
44633   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44634
44635   /* HP/UX 9 (%@#!) writes to sscanf strings */
44636   tmp_version = my_strdup("$min_sdl_version");
44637   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44638      printf("%s, bad version string\n", "$min_sdl_version");
44639      exit(1);
44640    }
44641
44642    if (($sdl_major_version > major) ||
44643       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44644       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44645     {
44646       return 0;
44647     }
44648   else
44649     {
44650       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44651       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44652       printf("*** best to upgrade to the required version.\n");
44653       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44654       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44655       printf("*** config.cache before re-running configure\n");
44656       return 1;
44657     }
44658 }
44659
44660
44661 _ACEOF
44662 rm -f conftest$ac_exeext
44663 if { (ac_try="$ac_link"
44664 case "(($ac_try" in
44665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44666   *) ac_try_echo=$ac_try;;
44667 esac
44668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44669   (eval "$ac_link") 2>&5
44670   ac_status=$?
44671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44673   { (case "(($ac_try" in
44674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44675   *) ac_try_echo=$ac_try;;
44676 esac
44677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44678   (eval "$ac_try") 2>&5
44679   ac_status=$?
44680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44681   (exit $ac_status); }; }; then
44682   :
44683 else
44684   echo "$as_me: program exited with status $ac_status" >&5
44685 echo "$as_me: failed program was:" >&5
44686 sed 's/^/| /' conftest.$ac_ext >&5
44687
44688 ( exit $ac_status )
44689 no_sdl=yes
44690 fi
44691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44692 fi
44693
44694
44695        CFLAGS="$ac_save_CFLAGS"
44696        CXXFLAGS="$ac_save_CXXFLAGS"
44697        LIBS="$ac_save_LIBS"
44698      fi
44699   fi
44700   if test "x$no_sdl" = x ; then
44701      { echo "$as_me:$LINENO: result: yes" >&5
44702 echo "${ECHO_T}yes" >&6; }
44703
44704                     EXTRALIBS_SDL="$SDL_LIBS"
44705                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44706                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44707                     cat >>confdefs.h <<\_ACEOF
44708 #define wxUSE_LIBSDL 1
44709 _ACEOF
44710
44711
44712   else
44713      { echo "$as_me:$LINENO: result: no" >&5
44714 echo "${ECHO_T}no" >&6; }
44715      if test "$SDL_CONFIG" = "no" ; then
44716        echo "*** The sdl-config script installed by SDL could not be found"
44717        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44718        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44719        echo "*** full path to sdl-config."
44720      else
44721        if test -f conf.sdltest ; then
44722         :
44723        else
44724           echo "*** Could not run SDL test program, checking why..."
44725           CFLAGS="$CFLAGS $SDL_CFLAGS"
44726           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44727           LIBS="$LIBS $SDL_LIBS"
44728           cat >conftest.$ac_ext <<_ACEOF
44729 /* confdefs.h.  */
44730 _ACEOF
44731 cat confdefs.h >>conftest.$ac_ext
44732 cat >>conftest.$ac_ext <<_ACEOF
44733 /* end confdefs.h.  */
44734
44735 #include <stdio.h>
44736 #include "SDL.h"
44737
44738 int main(int argc, char *argv[])
44739 { return 0; }
44740 #undef  main
44741 #define main K_and_R_C_main
44742
44743 int
44744 main ()
44745 {
44746  return 0;
44747   ;
44748   return 0;
44749 }
44750 _ACEOF
44751 rm -f conftest.$ac_objext conftest$ac_exeext
44752 if { (ac_try="$ac_link"
44753 case "(($ac_try" in
44754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44755   *) ac_try_echo=$ac_try;;
44756 esac
44757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44758   (eval "$ac_link") 2>conftest.er1
44759   ac_status=$?
44760   grep -v '^ *+' conftest.er1 >conftest.err
44761   rm -f conftest.er1
44762   cat conftest.err >&5
44763   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_exeext &&
44768        $as_test_x conftest$ac_exeext; then
44769    echo "*** The test program compiled, but did not run. This usually means"
44770           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44771           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44772           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44773           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44774           echo "*** is required on your system"
44775           echo "***"
44776           echo "*** If you have an old version installed, it is best to remove it, although"
44777           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44778 else
44779   echo "$as_me: failed program was:" >&5
44780 sed 's/^/| /' conftest.$ac_ext >&5
44781
44782          echo "*** The test program failed to compile or link. See the file config.log for the"
44783           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44784           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44785           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44786 fi
44787
44788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44789       conftest$ac_exeext conftest.$ac_ext
44790           CFLAGS="$ac_save_CFLAGS"
44791           CXXFLAGS="$ac_save_CXXFLAGS"
44792           LIBS="$ac_save_LIBS"
44793        fi
44794      fi
44795      SDL_CFLAGS=""
44796      SDL_LIBS=""
44797      wxUSE_LIBSDL="no"
44798   fi
44799
44800
44801   rm -f conf.sdltest
44802
44803       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44804         WITH_PLUGIN_SDL=1
44805       fi
44806     fi
44807   else
44808         if test "$wxUSE_MGL" = 1; then
44809         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44810 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44811         wxUSE_SOUND="no"
44812     fi
44813   fi
44814 fi
44815
44816 if test "$wxUSE_SOUND" = "yes"; then
44817   cat >>confdefs.h <<\_ACEOF
44818 #define wxUSE_SOUND 1
44819 _ACEOF
44820
44821   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44822 fi
44823
44824 if test "$WXGTK20" = 1; then
44825
44826
44827 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44828         if test -n "$ac_tool_prefix"; then
44829   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44830 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44833 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44834   echo $ECHO_N "(cached) $ECHO_C" >&6
44835 else
44836   case $PKG_CONFIG in
44837   [\\/]* | ?:[\\/]*)
44838   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44839   ;;
44840   *)
44841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44842 for as_dir in $PATH
44843 do
44844   IFS=$as_save_IFS
44845   test -z "$as_dir" && as_dir=.
44846   for ac_exec_ext in '' $ac_executable_extensions; do
44847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44848     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44850     break 2
44851   fi
44852 done
44853 done
44854 IFS=$as_save_IFS
44855
44856   ;;
44857 esac
44858 fi
44859 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44860 if test -n "$PKG_CONFIG"; then
44861   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44862 echo "${ECHO_T}$PKG_CONFIG" >&6; }
44863 else
44864   { echo "$as_me:$LINENO: result: no" >&5
44865 echo "${ECHO_T}no" >&6; }
44866 fi
44867
44868
44869 fi
44870 if test -z "$ac_cv_path_PKG_CONFIG"; then
44871   ac_pt_PKG_CONFIG=$PKG_CONFIG
44872   # Extract the first word of "pkg-config", so it can be a program name with args.
44873 set dummy pkg-config; ac_word=$2
44874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44876 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44877   echo $ECHO_N "(cached) $ECHO_C" >&6
44878 else
44879   case $ac_pt_PKG_CONFIG in
44880   [\\/]* | ?:[\\/]*)
44881   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44882   ;;
44883   *)
44884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44885 for as_dir in $PATH
44886 do
44887   IFS=$as_save_IFS
44888   test -z "$as_dir" && as_dir=.
44889   for ac_exec_ext in '' $ac_executable_extensions; do
44890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44891     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44893     break 2
44894   fi
44895 done
44896 done
44897 IFS=$as_save_IFS
44898
44899   ;;
44900 esac
44901 fi
44902 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44903 if test -n "$ac_pt_PKG_CONFIG"; then
44904   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44905 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
44906 else
44907   { echo "$as_me:$LINENO: result: no" >&5
44908 echo "${ECHO_T}no" >&6; }
44909 fi
44910
44911   if test "x$ac_pt_PKG_CONFIG" = x; then
44912     PKG_CONFIG=""
44913   else
44914     case $cross_compiling:$ac_tool_warned in
44915 yes:)
44916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44917 whose name does not start with the host triplet.  If you think this
44918 configuration is useful to you, please write to autoconf@gnu.org." >&5
44919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44920 whose name does not start with the host triplet.  If you think this
44921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44922 ac_tool_warned=yes ;;
44923 esac
44924     PKG_CONFIG=$ac_pt_PKG_CONFIG
44925   fi
44926 else
44927   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44928 fi
44929
44930 fi
44931 if test -n "$PKG_CONFIG"; then
44932         _pkg_min_version=0.9.0
44933         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44934 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
44935         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44936                 { echo "$as_me:$LINENO: result: yes" >&5
44937 echo "${ECHO_T}yes" >&6; }
44938         else
44939                 { echo "$as_me:$LINENO: result: no" >&5
44940 echo "${ECHO_T}no" >&6; }
44941                 PKG_CONFIG=""
44942         fi
44943
44944 fi
44945
44946     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44947
44948         if test "$wxUSE_GTKPRINT" = "yes" ; then
44949
44950
44951 pkg_failed=no
44952 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
44953 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
44954
44955 if test -n "$PKG_CONFIG"; then
44956     if test -n "$GTKPRINT_CFLAGS"; then
44957         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
44958     else
44959         if test -n "$PKG_CONFIG" && \
44960     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44961   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44962   ac_status=$?
44963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44964   (exit $ac_status); }; then
44965   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44966 else
44967   pkg_failed=yes
44968 fi
44969     fi
44970 else
44971         pkg_failed=untried
44972 fi
44973 if test -n "$PKG_CONFIG"; then
44974     if test -n "$GTKPRINT_LIBS"; then
44975         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
44976     else
44977         if test -n "$PKG_CONFIG" && \
44978     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44979   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44980   ac_status=$?
44981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44982   (exit $ac_status); }; then
44983   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44984 else
44985   pkg_failed=yes
44986 fi
44987     fi
44988 else
44989         pkg_failed=untried
44990 fi
44991
44992
44993
44994 if test $pkg_failed = yes; then
44995
44996 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44997         _pkg_short_errors_supported=yes
44998 else
44999         _pkg_short_errors_supported=no
45000 fi
45001         if test $_pkg_short_errors_supported = yes; then
45002                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
45003         else
45004                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
45005         fi
45006         # Put the nasty error message in config.log where it belongs
45007         echo "$GTKPRINT_PKG_ERRORS" >&5
45008
45009
45010                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
45011 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
45012                         wxUSE_GTKPRINT="no"
45013
45014
45015 elif test $pkg_failed = untried; then
45016
45017                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
45018 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
45019                         wxUSE_GTKPRINT="no"
45020
45021
45022 else
45023         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
45024         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
45025         { echo "$as_me:$LINENO: result: yes" >&5
45026 echo "${ECHO_T}yes" >&6; }
45027
45028                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
45029                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
45030                         cat >>confdefs.h <<\_ACEOF
45031 #define wxUSE_GTKPRINT 1
45032 _ACEOF
45033
45034
45035 fi
45036         fi
45037
45038         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
45039
45040
45041 pkg_failed=no
45042 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
45043 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
45044
45045 if test -n "$PKG_CONFIG"; then
45046     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
45047         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
45048     else
45049         if test -n "$PKG_CONFIG" && \
45050     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45051   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45052   ac_status=$?
45053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45054   (exit $ac_status); }; then
45055   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45056 else
45057   pkg_failed=yes
45058 fi
45059     fi
45060 else
45061         pkg_failed=untried
45062 fi
45063 if test -n "$PKG_CONFIG"; then
45064     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
45065         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
45066     else
45067         if test -n "$PKG_CONFIG" && \
45068     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45069   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45070   ac_status=$?
45071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45072   (exit $ac_status); }; then
45073   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45074 else
45075   pkg_failed=yes
45076 fi
45077     fi
45078 else
45079         pkg_failed=untried
45080 fi
45081
45082
45083
45084 if test $pkg_failed = yes; then
45085
45086 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45087         _pkg_short_errors_supported=yes
45088 else
45089         _pkg_short_errors_supported=no
45090 fi
45091         if test $_pkg_short_errors_supported = yes; then
45092                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45093         else
45094                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45095         fi
45096         # Put the nasty error message in config.log where it belongs
45097         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
45098
45099
45100                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45101 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45102                         wxUSE_LIBGNOMEPRINT="no"
45103
45104
45105 elif test $pkg_failed = untried; then
45106
45107                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45108 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45109                         wxUSE_LIBGNOMEPRINT="no"
45110
45111
45112 else
45113         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
45114         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
45115         { echo "$as_me:$LINENO: result: yes" >&5
45116 echo "${ECHO_T}yes" >&6; }
45117
45118                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
45119                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
45120                         cat >>confdefs.h <<\_ACEOF
45121 #define wxUSE_LIBGNOMEPRINT 1
45122 _ACEOF
45123
45124
45125 fi
45126         fi
45127     fi
45128
45129     if test "$wxUSE_MIMETYPE" = "yes" ; then
45130         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45131
45132
45133 pkg_failed=no
45134 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
45135 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
45136
45137 if test -n "$PKG_CONFIG"; then
45138     if test -n "$GNOMEVFS_CFLAGS"; then
45139         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
45140     else
45141         if test -n "$PKG_CONFIG" && \
45142     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45143   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45144   ac_status=$?
45145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45146   (exit $ac_status); }; then
45147   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45148 else
45149   pkg_failed=yes
45150 fi
45151     fi
45152 else
45153         pkg_failed=untried
45154 fi
45155 if test -n "$PKG_CONFIG"; then
45156     if test -n "$GNOMEVFS_LIBS"; then
45157         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
45158     else
45159         if test -n "$PKG_CONFIG" && \
45160     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45161   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45162   ac_status=$?
45163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45164   (exit $ac_status); }; then
45165   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45166 else
45167   pkg_failed=yes
45168 fi
45169     fi
45170 else
45171         pkg_failed=untried
45172 fi
45173
45174
45175
45176 if test $pkg_failed = yes; then
45177
45178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45179         _pkg_short_errors_supported=yes
45180 else
45181         _pkg_short_errors_supported=no
45182 fi
45183         if test $_pkg_short_errors_supported = yes; then
45184                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45185         else
45186                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45187         fi
45188         # Put the nasty error message in config.log where it belongs
45189         echo "$GNOMEVFS_PKG_ERRORS" >&5
45190
45191
45192                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45193 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45194                         wxUSE_LIBGNOMEVFS="no"
45195
45196
45197 elif test $pkg_failed = untried; then
45198
45199                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45200 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45201                         wxUSE_LIBGNOMEVFS="no"
45202
45203
45204 else
45205         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
45206         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
45207         { echo "$as_me:$LINENO: result: yes" >&5
45208 echo "${ECHO_T}yes" >&6; }
45209
45210                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
45211                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
45212                         cat >>confdefs.h <<\_ACEOF
45213 #define wxUSE_LIBGNOMEVFS 1
45214 _ACEOF
45215
45216
45217 fi
45218         fi
45219     fi
45220
45221     if test "$wxUSE_LIBHILDON" = "yes" ; then
45222
45223 pkg_failed=no
45224 { echo "$as_me:$LINENO: checking for HILDON" >&5
45225 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
45226
45227 if test -n "$PKG_CONFIG"; then
45228     if test -n "$HILDON_CFLAGS"; then
45229         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
45230     else
45231         if test -n "$PKG_CONFIG" && \
45232     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45233   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45234   ac_status=$?
45235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45236   (exit $ac_status); }; then
45237   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
45238 else
45239   pkg_failed=yes
45240 fi
45241     fi
45242 else
45243         pkg_failed=untried
45244 fi
45245 if test -n "$PKG_CONFIG"; then
45246     if test -n "$HILDON_LIBS"; then
45247         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
45248     else
45249         if test -n "$PKG_CONFIG" && \
45250     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45251   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45252   ac_status=$?
45253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45254   (exit $ac_status); }; then
45255   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
45256 else
45257   pkg_failed=yes
45258 fi
45259     fi
45260 else
45261         pkg_failed=untried
45262 fi
45263
45264
45265
45266 if test $pkg_failed = yes; then
45267
45268 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45269         _pkg_short_errors_supported=yes
45270 else
45271         _pkg_short_errors_supported=no
45272 fi
45273         if test $_pkg_short_errors_supported = yes; then
45274                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45275         else
45276                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45277         fi
45278         # Put the nasty error message in config.log where it belongs
45279         echo "$HILDON_PKG_ERRORS" >&5
45280
45281
45282                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45283 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45284                         wxUSE_LIBHILDON="no"
45285
45286
45287 elif test $pkg_failed = untried; then
45288
45289                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45290 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45291                         wxUSE_LIBHILDON="no"
45292
45293
45294 else
45295         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
45296         HILDON_LIBS=$pkg_cv_HILDON_LIBS
45297         { echo "$as_me:$LINENO: result: yes" >&5
45298 echo "${ECHO_T}yes" >&6; }
45299
45300                 EXTRALIBS_HILDON="$HILDON_LIBS"
45301                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
45302                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
45303                 cat >>confdefs.h <<\_ACEOF
45304 #define wxUSE_LIBHILDON 1
45305 _ACEOF
45306
45307
45308 fi
45309     fi
45310 fi
45311
45312 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45313   cat >>confdefs.h <<\_ACEOF
45314 #define wxUSE_CMDLINE_PARSER 1
45315 _ACEOF
45316
45317 fi
45318
45319 if test "$wxUSE_STOPWATCH" = "yes"; then
45320   cat >>confdefs.h <<\_ACEOF
45321 #define wxUSE_STOPWATCH 1
45322 _ACEOF
45323
45324 fi
45325
45326 if test "$wxUSE_DATETIME" = "yes"; then
45327   cat >>confdefs.h <<\_ACEOF
45328 #define wxUSE_DATETIME 1
45329 _ACEOF
45330
45331 fi
45332
45333 if test "$wxUSE_FILE" = "yes"; then
45334   cat >>confdefs.h <<\_ACEOF
45335 #define wxUSE_FILE 1
45336 _ACEOF
45337
45338 fi
45339
45340 if test "$wxUSE_FFILE" = "yes"; then
45341   cat >>confdefs.h <<\_ACEOF
45342 #define wxUSE_FFILE 1
45343 _ACEOF
45344
45345 fi
45346
45347 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45348   if test "$wxUSE_STREAMS" != yes; then
45349     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45350 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45351     wxUSE_ARCHIVE_STREAMS=no
45352   else
45353     cat >>confdefs.h <<\_ACEOF
45354 #define wxUSE_ARCHIVE_STREAMS 1
45355 _ACEOF
45356
45357   fi
45358 fi
45359
45360 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45361   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45362     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45363 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45364   elif test "$wxUSE_ZLIB" = "no"; then
45365     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45366 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45367   else
45368     cat >>confdefs.h <<\_ACEOF
45369 #define wxUSE_ZIPSTREAM 1
45370 _ACEOF
45371
45372   fi
45373 fi
45374
45375 if test "$wxUSE_TARSTREAM" = "yes"; then
45376   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45377     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45378 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45379   else
45380     cat >>confdefs.h <<\_ACEOF
45381 #define wxUSE_TARSTREAM 1
45382 _ACEOF
45383
45384   fi
45385 fi
45386
45387 if test "$wxUSE_FILESYSTEM" = "yes"; then
45388   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45389     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45390 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45391     wxUSE_FILESYSTEM=no
45392   else
45393     cat >>confdefs.h <<\_ACEOF
45394 #define wxUSE_FILESYSTEM 1
45395 _ACEOF
45396
45397   fi
45398 fi
45399
45400 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45401   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45402     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45403 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45404   else
45405     cat >>confdefs.h <<\_ACEOF
45406 #define wxUSE_FS_ARCHIVE 1
45407 _ACEOF
45408
45409   fi
45410 fi
45411
45412 if test "$wxUSE_FS_ZIP" = "yes"; then
45413   if test "$wxUSE_FS_ARCHIVE" != yes; then
45414     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45415 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45416   else
45417     cat >>confdefs.h <<\_ACEOF
45418 #define wxUSE_FS_ZIP 1
45419 _ACEOF
45420
45421   fi
45422 fi
45423
45424 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45425   if test "$USE_UNIX" != 1; then
45426     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45427 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45428     wxUSE_ON_FATAL_EXCEPTION=no
45429   else
45430     cat >>confdefs.h <<\_ACEOF
45431 #define wxUSE_ON_FATAL_EXCEPTION 1
45432 _ACEOF
45433
45434   fi
45435 fi
45436
45437 if test "$wxUSE_STACKWALKER" = "yes"; then
45438     cat >>confdefs.h <<\_ACEOF
45439 #define wxUSE_STACKWALKER 1
45440 _ACEOF
45441
45442 fi
45443
45444 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45445     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
45446         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45447 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45448         wxUSE_DEBUGREPORT=no
45449     else
45450         cat >>confdefs.h <<\_ACEOF
45451 #define wxUSE_DEBUGREPORT 1
45452 _ACEOF
45453
45454         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45455             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45456         fi
45457     fi
45458 fi
45459
45460 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45461   cat >>confdefs.h <<\_ACEOF
45462 #define wxUSE_SNGLINST_CHECKER 1
45463 _ACEOF
45464
45465 fi
45466
45467 if test "$wxUSE_BUSYINFO" = "yes"; then
45468   cat >>confdefs.h <<\_ACEOF
45469 #define wxUSE_BUSYINFO 1
45470 _ACEOF
45471
45472 fi
45473
45474 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45475   cat >>confdefs.h <<\_ACEOF
45476 #define wxUSE_STD_IOSTREAM 1
45477 _ACEOF
45478
45479 fi
45480
45481 if test "$wxUSE_STD_STRING" = "yes"; then
45482   cat >>confdefs.h <<\_ACEOF
45483 #define wxUSE_STD_STRING 1
45484 _ACEOF
45485
45486 fi
45487
45488 if test "$wxUSE_STDPATHS" = "yes"; then
45489   cat >>confdefs.h <<\_ACEOF
45490 #define wxUSE_STDPATHS 1
45491 _ACEOF
45492
45493 fi
45494
45495 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45496     cat >>confdefs.h <<\_ACEOF
45497 #define wxUSE_TEXTBUFFER 1
45498 _ACEOF
45499
45500 fi
45501
45502 if test "$wxUSE_TEXTFILE" = "yes"; then
45503   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45504     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45505 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45506   else
45507     cat >>confdefs.h <<\_ACEOF
45508 #define wxUSE_TEXTFILE 1
45509 _ACEOF
45510
45511   fi
45512 fi
45513
45514 if test "$wxUSE_CONFIG" = "yes" ; then
45515   if test "$wxUSE_TEXTFILE" != "yes"; then
45516     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45517 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45518   else
45519     cat >>confdefs.h <<\_ACEOF
45520 #define wxUSE_CONFIG 1
45521 _ACEOF
45522
45523     cat >>confdefs.h <<\_ACEOF
45524 #define wxUSE_CONFIG_NATIVE 1
45525 _ACEOF
45526
45527     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45528   fi
45529 fi
45530
45531 if test "$wxUSE_INTL" = "yes" ; then
45532   if test "$wxUSE_FILE" != "yes"; then
45533     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45534 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45535   else
45536     cat >>confdefs.h <<\_ACEOF
45537 #define wxUSE_INTL 1
45538 _ACEOF
45539
45540     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45541     GUIDIST="$GUIDIST INTL_DIST"
45542   fi
45543 fi
45544
45545 if test "$wxUSE_LOG" = "yes"; then
45546   cat >>confdefs.h <<\_ACEOF
45547 #define wxUSE_LOG 1
45548 _ACEOF
45549
45550
45551     if test "$wxUSE_LOGGUI" = "yes"; then
45552       cat >>confdefs.h <<\_ACEOF
45553 #define wxUSE_LOGGUI 1
45554 _ACEOF
45555
45556     fi
45557
45558     if test "$wxUSE_LOGWINDOW" = "yes"; then
45559       cat >>confdefs.h <<\_ACEOF
45560 #define wxUSE_LOGWINDOW 1
45561 _ACEOF
45562
45563     fi
45564
45565     if test "$wxUSE_LOGDIALOG" = "yes"; then
45566       cat >>confdefs.h <<\_ACEOF
45567 #define wxUSE_LOG_DIALOG 1
45568 _ACEOF
45569
45570     fi
45571
45572         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45573 fi
45574
45575 if test "$wxUSE_LONGLONG" = "yes"; then
45576   cat >>confdefs.h <<\_ACEOF
45577 #define wxUSE_LONGLONG 1
45578 _ACEOF
45579
45580 fi
45581
45582 if test "$wxUSE_GEOMETRY" = "yes"; then
45583   cat >>confdefs.h <<\_ACEOF
45584 #define wxUSE_GEOMETRY 1
45585 _ACEOF
45586
45587 fi
45588
45589 if test "$wxUSE_BASE64" = "yes"; then
45590   cat >>confdefs.h <<\_ACEOF
45591 #define wxUSE_BASE64 1
45592 _ACEOF
45593
45594 fi
45595
45596 if test "$wxUSE_STREAMS" = "yes" ; then
45597   cat >>confdefs.h <<\_ACEOF
45598 #define wxUSE_STREAMS 1
45599 _ACEOF
45600
45601 fi
45602
45603 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45604   cat >>confdefs.h <<\_ACEOF
45605 #define wxUSE_PRINTF_POS_PARAMS 1
45606 _ACEOF
45607
45608 fi
45609
45610 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45611   cat >>confdefs.h <<\_ACEOF
45612 #define wxUSE_OBJC_UNIQUIFYING 1
45613 _ACEOF
45614
45615 fi
45616
45617
45618 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45619     cat >>confdefs.h <<\_ACEOF
45620 #define wxUSE_CONSOLE_EVENTLOOP 1
45621 _ACEOF
45622
45623
45624     if test "$wxUSE_UNIX" = "yes"; then
45625         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45626             cat >>confdefs.h <<\_ACEOF
45627 #define wxUSE_SELECT_DISPATCHER 1
45628 _ACEOF
45629
45630         fi
45631
45632         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45633
45634 for ac_header in sys/epoll.h
45635 do
45636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45640   echo $ECHO_N "(cached) $ECHO_C" >&6
45641 else
45642   cat >conftest.$ac_ext <<_ACEOF
45643 /* confdefs.h.  */
45644 _ACEOF
45645 cat confdefs.h >>conftest.$ac_ext
45646 cat >>conftest.$ac_ext <<_ACEOF
45647 /* end confdefs.h.  */
45648 $ac_includes_default
45649
45650 #include <$ac_header>
45651 _ACEOF
45652 rm -f conftest.$ac_objext
45653 if { (ac_try="$ac_compile"
45654 case "(($ac_try" in
45655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45656   *) ac_try_echo=$ac_try;;
45657 esac
45658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45659   (eval "$ac_compile") 2>conftest.er1
45660   ac_status=$?
45661   grep -v '^ *+' conftest.er1 >conftest.err
45662   rm -f conftest.er1
45663   cat conftest.err >&5
45664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45665   (exit $ac_status); } && {
45666          test -z "$ac_c_werror_flag" ||
45667          test ! -s conftest.err
45668        } && test -s conftest.$ac_objext; then
45669   eval "$as_ac_Header=yes"
45670 else
45671   echo "$as_me: failed program was:" >&5
45672 sed 's/^/| /' conftest.$ac_ext >&5
45673
45674         eval "$as_ac_Header=no"
45675 fi
45676
45677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45678 fi
45679 ac_res=`eval echo '${'$as_ac_Header'}'`
45680                { echo "$as_me:$LINENO: result: $ac_res" >&5
45681 echo "${ECHO_T}$ac_res" >&6; }
45682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45683   cat >>confdefs.h <<_ACEOF
45684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45685 _ACEOF
45686
45687 fi
45688
45689 done
45690
45691             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45692                 cat >>confdefs.h <<\_ACEOF
45693 #define wxUSE_EPOLL_DISPATCHER 1
45694 _ACEOF
45695
45696             else
45697                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45698 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45699             fi
45700         fi
45701     fi
45702 fi
45703
45704
45705
45706
45707 for ac_func in gettimeofday ftime
45708 do
45709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45713   echo $ECHO_N "(cached) $ECHO_C" >&6
45714 else
45715   cat >conftest.$ac_ext <<_ACEOF
45716 /* confdefs.h.  */
45717 _ACEOF
45718 cat confdefs.h >>conftest.$ac_ext
45719 cat >>conftest.$ac_ext <<_ACEOF
45720 /* end confdefs.h.  */
45721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45723 #define $ac_func innocuous_$ac_func
45724
45725 /* System header to define __stub macros and hopefully few prototypes,
45726     which can conflict with char $ac_func (); below.
45727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45728     <limits.h> exists even on freestanding compilers.  */
45729
45730 #ifdef __STDC__
45731 # include <limits.h>
45732 #else
45733 # include <assert.h>
45734 #endif
45735
45736 #undef $ac_func
45737
45738 /* Override any GCC internal prototype to avoid an error.
45739    Use char because int might match the return type of a GCC
45740    builtin and then its argument prototype would still apply.  */
45741 #ifdef __cplusplus
45742 extern "C"
45743 #endif
45744 char $ac_func ();
45745 /* The GNU C library defines this for functions which it implements
45746     to always fail with ENOSYS.  Some functions are actually named
45747     something starting with __ and the normal name is an alias.  */
45748 #if defined __stub_$ac_func || defined __stub___$ac_func
45749 choke me
45750 #endif
45751
45752 int
45753 main ()
45754 {
45755 return $ac_func ();
45756   ;
45757   return 0;
45758 }
45759 _ACEOF
45760 rm -f conftest.$ac_objext conftest$ac_exeext
45761 if { (ac_try="$ac_link"
45762 case "(($ac_try" in
45763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45764   *) ac_try_echo=$ac_try;;
45765 esac
45766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45767   (eval "$ac_link") 2>conftest.er1
45768   ac_status=$?
45769   grep -v '^ *+' conftest.er1 >conftest.err
45770   rm -f conftest.er1
45771   cat conftest.err >&5
45772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45773   (exit $ac_status); } && {
45774          test -z "$ac_c_werror_flag" ||
45775          test ! -s conftest.err
45776        } && test -s conftest$ac_exeext &&
45777        $as_test_x conftest$ac_exeext; then
45778   eval "$as_ac_var=yes"
45779 else
45780   echo "$as_me: failed program was:" >&5
45781 sed 's/^/| /' conftest.$ac_ext >&5
45782
45783         eval "$as_ac_var=no"
45784 fi
45785
45786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45787       conftest$ac_exeext conftest.$ac_ext
45788 fi
45789 ac_res=`eval echo '${'$as_ac_var'}'`
45790                { echo "$as_me:$LINENO: result: $ac_res" >&5
45791 echo "${ECHO_T}$ac_res" >&6; }
45792 if test `eval echo '${'$as_ac_var'}'` = yes; then
45793   cat >>confdefs.h <<_ACEOF
45794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45795 _ACEOF
45796  break
45797 fi
45798 done
45799
45800
45801 if test "$ac_cv_func_gettimeofday" = "yes"; then
45802     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45803 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45804 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45805   echo $ECHO_N "(cached) $ECHO_C" >&6
45806 else
45807
45808                 cat >conftest.$ac_ext <<_ACEOF
45809 /* confdefs.h.  */
45810 _ACEOF
45811 cat confdefs.h >>conftest.$ac_ext
45812 cat >>conftest.$ac_ext <<_ACEOF
45813 /* end confdefs.h.  */
45814
45815                 #include <sys/time.h>
45816                 #include <unistd.h>
45817
45818 int
45819 main ()
45820 {
45821
45822                 struct timeval tv;
45823                 gettimeofday(&tv, NULL);
45824
45825   ;
45826   return 0;
45827 }
45828 _ACEOF
45829 rm -f conftest.$ac_objext
45830 if { (ac_try="$ac_compile"
45831 case "(($ac_try" in
45832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45833   *) ac_try_echo=$ac_try;;
45834 esac
45835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45836   (eval "$ac_compile") 2>conftest.er1
45837   ac_status=$?
45838   grep -v '^ *+' conftest.er1 >conftest.err
45839   rm -f conftest.er1
45840   cat conftest.err >&5
45841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45842   (exit $ac_status); } && {
45843          test -z "$ac_c_werror_flag" ||
45844          test ! -s conftest.err
45845        } && test -s conftest.$ac_objext; then
45846   wx_cv_func_gettimeofday_has_2_args=yes
45847 else
45848   echo "$as_me: failed program was:" >&5
45849 sed 's/^/| /' conftest.$ac_ext >&5
45850
45851         cat >conftest.$ac_ext <<_ACEOF
45852 /* confdefs.h.  */
45853 _ACEOF
45854 cat confdefs.h >>conftest.$ac_ext
45855 cat >>conftest.$ac_ext <<_ACEOF
45856 /* end confdefs.h.  */
45857
45858                     #include <sys/time.h>
45859                     #include <unistd.h>
45860
45861 int
45862 main ()
45863 {
45864
45865                     struct timeval tv;
45866                     gettimeofday(&tv);
45867
45868   ;
45869   return 0;
45870 }
45871 _ACEOF
45872 rm -f conftest.$ac_objext
45873 if { (ac_try="$ac_compile"
45874 case "(($ac_try" in
45875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45876   *) ac_try_echo=$ac_try;;
45877 esac
45878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45879   (eval "$ac_compile") 2>conftest.er1
45880   ac_status=$?
45881   grep -v '^ *+' conftest.er1 >conftest.err
45882   rm -f conftest.er1
45883   cat conftest.err >&5
45884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45885   (exit $ac_status); } && {
45886          test -z "$ac_c_werror_flag" ||
45887          test ! -s conftest.err
45888        } && test -s conftest.$ac_objext; then
45889   wx_cv_func_gettimeofday_has_2_args=no
45890 else
45891   echo "$as_me: failed program was:" >&5
45892 sed 's/^/| /' conftest.$ac_ext >&5
45893
45894
45895                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45896 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45897                     wx_cv_func_gettimeofday_has_2_args=unknown
45898
45899
45900 fi
45901
45902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45903
45904 fi
45905
45906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45907
45908 fi
45909 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45910 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
45911
45912     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45913         cat >>confdefs.h <<\_ACEOF
45914 #define WX_GETTIMEOFDAY_NO_TZ 1
45915 _ACEOF
45916
45917     fi
45918 fi
45919
45920 if test "$wxUSE_DATETIME" = "yes"; then
45921         { echo "$as_me:$LINENO: checking for strptime" >&5
45922 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
45923 if test "${ac_cv_func_strptime+set}" = set; then
45924   echo $ECHO_N "(cached) $ECHO_C" >&6
45925 else
45926   cat >conftest.$ac_ext <<_ACEOF
45927 /* confdefs.h.  */
45928 _ACEOF
45929 cat confdefs.h >>conftest.$ac_ext
45930 cat >>conftest.$ac_ext <<_ACEOF
45931 /* end confdefs.h.  */
45932 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
45933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45934 #define strptime innocuous_strptime
45935
45936 /* System header to define __stub macros and hopefully few prototypes,
45937     which can conflict with char strptime (); below.
45938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45939     <limits.h> exists even on freestanding compilers.  */
45940
45941 #ifdef __STDC__
45942 # include <limits.h>
45943 #else
45944 # include <assert.h>
45945 #endif
45946
45947 #undef strptime
45948
45949 /* Override any GCC internal prototype to avoid an error.
45950    Use char because int might match the return type of a GCC
45951    builtin and then its argument prototype would still apply.  */
45952 #ifdef __cplusplus
45953 extern "C"
45954 #endif
45955 char strptime ();
45956 /* The GNU C library defines this for functions which it implements
45957     to always fail with ENOSYS.  Some functions are actually named
45958     something starting with __ and the normal name is an alias.  */
45959 #if defined __stub_strptime || defined __stub___strptime
45960 choke me
45961 #endif
45962
45963 int
45964 main ()
45965 {
45966 return strptime ();
45967   ;
45968   return 0;
45969 }
45970 _ACEOF
45971 rm -f conftest.$ac_objext conftest$ac_exeext
45972 if { (ac_try="$ac_link"
45973 case "(($ac_try" in
45974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45975   *) ac_try_echo=$ac_try;;
45976 esac
45977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45978   (eval "$ac_link") 2>conftest.er1
45979   ac_status=$?
45980   grep -v '^ *+' conftest.er1 >conftest.err
45981   rm -f conftest.er1
45982   cat conftest.err >&5
45983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45984   (exit $ac_status); } && {
45985          test -z "$ac_c_werror_flag" ||
45986          test ! -s conftest.err
45987        } && test -s conftest$ac_exeext &&
45988        $as_test_x conftest$ac_exeext; then
45989   ac_cv_func_strptime=yes
45990 else
45991   echo "$as_me: failed program was:" >&5
45992 sed 's/^/| /' conftest.$ac_ext >&5
45993
45994         ac_cv_func_strptime=no
45995 fi
45996
45997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45998       conftest$ac_exeext conftest.$ac_ext
45999 fi
46000 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
46001 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
46002
46003     if test "$ac_cv_func_strptime" = "yes"; then
46004         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
46005 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
46006 if test "${wx_cv_func_strptime_decl+set}" = set; then
46007   echo $ECHO_N "(cached) $ECHO_C" >&6
46008 else
46009
46010                 ac_ext=cpp
46011 ac_cpp='$CXXCPP $CPPFLAGS'
46012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46015
46016                 cat >conftest.$ac_ext <<_ACEOF
46017 /* confdefs.h.  */
46018 _ACEOF
46019 cat confdefs.h >>conftest.$ac_ext
46020 cat >>conftest.$ac_ext <<_ACEOF
46021 /* end confdefs.h.  */
46022
46023                         #include <time.h>
46024
46025 int
46026 main ()
46027 {
46028
46029                         struct tm t;
46030                         strptime("foo", "bar", &t);
46031
46032   ;
46033   return 0;
46034 }
46035 _ACEOF
46036 rm -f conftest.$ac_objext
46037 if { (ac_try="$ac_compile"
46038 case "(($ac_try" in
46039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46040   *) ac_try_echo=$ac_try;;
46041 esac
46042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46043   (eval "$ac_compile") 2>conftest.er1
46044   ac_status=$?
46045   grep -v '^ *+' conftest.er1 >conftest.err
46046   rm -f conftest.er1
46047   cat conftest.err >&5
46048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46049   (exit $ac_status); } && {
46050          test -z "$ac_cxx_werror_flag" ||
46051          test ! -s conftest.err
46052        } && test -s conftest.$ac_objext; then
46053   wx_cv_func_strptime_decl=yes
46054 else
46055   echo "$as_me: failed program was:" >&5
46056 sed 's/^/| /' conftest.$ac_ext >&5
46057
46058         wx_cv_func_strptime_decl=no
46059
46060 fi
46061
46062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46063                 ac_ext=c
46064 ac_cpp='$CPP $CPPFLAGS'
46065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46068
46069
46070
46071 fi
46072 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
46073 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
46074     fi
46075     if test "$wx_cv_func_strptime_decl" = "yes"; then
46076         cat >>confdefs.h <<\_ACEOF
46077 #define HAVE_STRPTIME_DECL 1
46078 _ACEOF
46079
46080     else
46081         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
46082     fi
46083     if test "$ac_cv_func_strptime" = "yes"; then
46084                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
46085 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
46086 if test "${wx_cv_func_strptime_ok+set}" = set; then
46087   echo $ECHO_N "(cached) $ECHO_C" >&6
46088 else
46089   if test "$cross_compiling" = yes; then
46090                   wx_cv_func_strptime_ok=no
46091
46092 else
46093   cat >conftest.$ac_ext <<_ACEOF
46094
46095                     #include <stdlib.h>
46096                     #include <time.h>
46097                     #include "confdefs.h"
46098
46099                     $wx_strptime_decl
46100
46101                     int main()
46102                     {
46103                         struct tm t;
46104                         return !!strptime("", "%x", &t);
46105                     }
46106
46107 _ACEOF
46108 rm -f conftest$ac_exeext
46109 if { (ac_try="$ac_link"
46110 case "(($ac_try" in
46111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46112   *) ac_try_echo=$ac_try;;
46113 esac
46114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46115   (eval "$ac_link") 2>&5
46116   ac_status=$?
46117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46119   { (case "(($ac_try" in
46120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46121   *) ac_try_echo=$ac_try;;
46122 esac
46123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46124   (eval "$ac_try") 2>&5
46125   ac_status=$?
46126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46127   (exit $ac_status); }; }; then
46128   wx_cv_func_strptime_ok=yes
46129 else
46130   echo "$as_me: program exited with status $ac_status" >&5
46131 echo "$as_me: failed program was:" >&5
46132 sed 's/^/| /' conftest.$ac_ext >&5
46133
46134 ( exit $ac_status )
46135 wx_cv_func_strptime_ok=no
46136 fi
46137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46138 fi
46139
46140
46141
46142 fi
46143 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
46144 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
46145
46146         if test "$wx_cv_func_strptime_ok" = "yes"; then
46147             cat >>confdefs.h <<\_ACEOF
46148 #define HAVE_STRPTIME 1
46149 _ACEOF
46150
46151         fi
46152     fi
46153
46154             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
46155 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
46156 if test "${wx_cv_var_timezone+set}" = set; then
46157   echo $ECHO_N "(cached) $ECHO_C" >&6
46158 else
46159
46160                         ac_ext=cpp
46161 ac_cpp='$CXXCPP $CPPFLAGS'
46162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46165
46166                         cat >conftest.$ac_ext <<_ACEOF
46167 /* confdefs.h.  */
46168 _ACEOF
46169 cat confdefs.h >>conftest.$ac_ext
46170 cat >>conftest.$ac_ext <<_ACEOF
46171 /* end confdefs.h.  */
46172
46173                                 #include <time.h>
46174
46175 int
46176 main ()
46177 {
46178
46179                                 int tz;
46180                                 tz = timezone;
46181
46182   ;
46183   return 0;
46184 }
46185 _ACEOF
46186 rm -f conftest.$ac_objext
46187 if { (ac_try="$ac_compile"
46188 case "(($ac_try" in
46189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46190   *) ac_try_echo=$ac_try;;
46191 esac
46192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46193   (eval "$ac_compile") 2>conftest.er1
46194   ac_status=$?
46195   grep -v '^ *+' conftest.er1 >conftest.err
46196   rm -f conftest.er1
46197   cat conftest.err >&5
46198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46199   (exit $ac_status); } && {
46200          test -z "$ac_cxx_werror_flag" ||
46201          test ! -s conftest.err
46202        } && test -s conftest.$ac_objext; then
46203
46204                                 wx_cv_var_timezone=timezone
46205
46206 else
46207   echo "$as_me: failed program was:" >&5
46208 sed 's/^/| /' conftest.$ac_ext >&5
46209
46210
46211                                 cat >conftest.$ac_ext <<_ACEOF
46212 /* confdefs.h.  */
46213 _ACEOF
46214 cat confdefs.h >>conftest.$ac_ext
46215 cat >>conftest.$ac_ext <<_ACEOF
46216 /* end confdefs.h.  */
46217
46218                                         #include <time.h>
46219
46220 int
46221 main ()
46222 {
46223
46224                                         int tz;
46225                                         tz = _timezone;
46226
46227   ;
46228   return 0;
46229 }
46230 _ACEOF
46231 rm -f conftest.$ac_objext
46232 if { (ac_try="$ac_compile"
46233 case "(($ac_try" in
46234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46235   *) ac_try_echo=$ac_try;;
46236 esac
46237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46238   (eval "$ac_compile") 2>conftest.er1
46239   ac_status=$?
46240   grep -v '^ *+' conftest.er1 >conftest.err
46241   rm -f conftest.er1
46242   cat conftest.err >&5
46243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46244   (exit $ac_status); } && {
46245          test -z "$ac_cxx_werror_flag" ||
46246          test ! -s conftest.err
46247        } && test -s conftest.$ac_objext; then
46248
46249                                         wx_cv_var_timezone=_timezone
46250
46251 else
46252   echo "$as_me: failed program was:" >&5
46253 sed 's/^/| /' conftest.$ac_ext >&5
46254
46255
46256                                         cat >conftest.$ac_ext <<_ACEOF
46257 /* confdefs.h.  */
46258 _ACEOF
46259 cat confdefs.h >>conftest.$ac_ext
46260 cat >>conftest.$ac_ext <<_ACEOF
46261 /* end confdefs.h.  */
46262
46263                                                 #include <time.h>
46264
46265 int
46266 main ()
46267 {
46268
46269                                                 int tz;
46270                                                 tz = __timezone;
46271
46272   ;
46273   return 0;
46274 }
46275 _ACEOF
46276 rm -f conftest.$ac_objext
46277 if { (ac_try="$ac_compile"
46278 case "(($ac_try" in
46279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46280   *) ac_try_echo=$ac_try;;
46281 esac
46282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46283   (eval "$ac_compile") 2>conftest.er1
46284   ac_status=$?
46285   grep -v '^ *+' conftest.er1 >conftest.err
46286   rm -f conftest.er1
46287   cat conftest.err >&5
46288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46289   (exit $ac_status); } && {
46290          test -z "$ac_cxx_werror_flag" ||
46291          test ! -s conftest.err
46292        } && test -s conftest.$ac_objext; then
46293
46294                                                 wx_cv_var_timezone=__timezone
46295
46296 else
46297   echo "$as_me: failed program was:" >&5
46298 sed 's/^/| /' conftest.$ac_ext >&5
46299
46300
46301                                                 if test "$USE_DOS" = 0 ; then
46302                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
46303 echo "$as_me: WARNING: no timezone variable" >&2;}
46304                                                 fi
46305
46306
46307 fi
46308
46309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46310
46311
46312 fi
46313
46314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46315
46316
46317 fi
46318
46319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46320                         ac_ext=c
46321 ac_cpp='$CPP $CPPFLAGS'
46322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46325
46326
46327
46328 fi
46329 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
46330 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
46331
46332         if test "x$wx_cv_var_timezone" != x ; then
46333         cat >>confdefs.h <<_ACEOF
46334 #define WX_TIMEZONE $wx_cv_var_timezone
46335 _ACEOF
46336
46337     fi
46338
46339
46340 for ac_func in localtime
46341 do
46342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46346   echo $ECHO_N "(cached) $ECHO_C" >&6
46347 else
46348   cat >conftest.$ac_ext <<_ACEOF
46349 /* confdefs.h.  */
46350 _ACEOF
46351 cat confdefs.h >>conftest.$ac_ext
46352 cat >>conftest.$ac_ext <<_ACEOF
46353 /* end confdefs.h.  */
46354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46356 #define $ac_func innocuous_$ac_func
46357
46358 /* System header to define __stub macros and hopefully few prototypes,
46359     which can conflict with char $ac_func (); below.
46360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46361     <limits.h> exists even on freestanding compilers.  */
46362
46363 #ifdef __STDC__
46364 # include <limits.h>
46365 #else
46366 # include <assert.h>
46367 #endif
46368
46369 #undef $ac_func
46370
46371 /* Override any GCC internal prototype to avoid an error.
46372    Use char because int might match the return type of a GCC
46373    builtin and then its argument prototype would still apply.  */
46374 #ifdef __cplusplus
46375 extern "C"
46376 #endif
46377 char $ac_func ();
46378 /* The GNU C library defines this for functions which it implements
46379     to always fail with ENOSYS.  Some functions are actually named
46380     something starting with __ and the normal name is an alias.  */
46381 #if defined __stub_$ac_func || defined __stub___$ac_func
46382 choke me
46383 #endif
46384
46385 int
46386 main ()
46387 {
46388 return $ac_func ();
46389   ;
46390   return 0;
46391 }
46392 _ACEOF
46393 rm -f conftest.$ac_objext conftest$ac_exeext
46394 if { (ac_try="$ac_link"
46395 case "(($ac_try" in
46396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46397   *) ac_try_echo=$ac_try;;
46398 esac
46399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46400   (eval "$ac_link") 2>conftest.er1
46401   ac_status=$?
46402   grep -v '^ *+' conftest.er1 >conftest.err
46403   rm -f conftest.er1
46404   cat conftest.err >&5
46405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46406   (exit $ac_status); } && {
46407          test -z "$ac_c_werror_flag" ||
46408          test ! -s conftest.err
46409        } && test -s conftest$ac_exeext &&
46410        $as_test_x conftest$ac_exeext; then
46411   eval "$as_ac_var=yes"
46412 else
46413   echo "$as_me: failed program was:" >&5
46414 sed 's/^/| /' conftest.$ac_ext >&5
46415
46416         eval "$as_ac_var=no"
46417 fi
46418
46419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46420       conftest$ac_exeext conftest.$ac_ext
46421 fi
46422 ac_res=`eval echo '${'$as_ac_var'}'`
46423                { echo "$as_me:$LINENO: result: $ac_res" >&5
46424 echo "${ECHO_T}$ac_res" >&6; }
46425 if test `eval echo '${'$as_ac_var'}'` = yes; then
46426   cat >>confdefs.h <<_ACEOF
46427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46428 _ACEOF
46429
46430 fi
46431 done
46432
46433
46434     if test "$ac_cv_func_localtime" = "yes"; then
46435         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
46436 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
46437 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
46438   echo $ECHO_N "(cached) $ECHO_C" >&6
46439 else
46440
46441             cat >conftest.$ac_ext <<_ACEOF
46442 /* confdefs.h.  */
46443 _ACEOF
46444 cat confdefs.h >>conftest.$ac_ext
46445 cat >>conftest.$ac_ext <<_ACEOF
46446 /* end confdefs.h.  */
46447
46448                     #include <time.h>
46449
46450 int
46451 main ()
46452 {
46453
46454                     struct tm tm;
46455                     tm.tm_gmtoff++;
46456
46457   ;
46458   return 0;
46459 }
46460 _ACEOF
46461 rm -f conftest.$ac_objext
46462 if { (ac_try="$ac_compile"
46463 case "(($ac_try" in
46464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46465   *) ac_try_echo=$ac_try;;
46466 esac
46467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46468   (eval "$ac_compile") 2>conftest.er1
46469   ac_status=$?
46470   grep -v '^ *+' conftest.er1 >conftest.err
46471   rm -f conftest.er1
46472   cat conftest.err >&5
46473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46474   (exit $ac_status); } && {
46475          test -z "$ac_c_werror_flag" ||
46476          test ! -s conftest.err
46477        } && test -s conftest.$ac_objext; then
46478
46479                     wx_cv_struct_tm_has_gmtoff=yes
46480
46481 else
46482   echo "$as_me: failed program was:" >&5
46483 sed 's/^/| /' conftest.$ac_ext >&5
46484
46485         wx_cv_struct_tm_has_gmtoff=no
46486
46487 fi
46488
46489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46490
46491 fi
46492 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
46493 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
46494     fi
46495
46496     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
46497         cat >>confdefs.h <<\_ACEOF
46498 #define WX_GMTOFF_IN_TM 1
46499 _ACEOF
46500
46501     fi
46502
46503     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
46504 fi
46505
46506
46507 if test "$wxUSE_SOCKETS" = "yes"; then
46508     if test "$wxUSE_MGL" = "1"; then
46509         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
46510 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
46511         wxUSE_SOCKETS="no"
46512     fi
46513 fi
46514
46515 if test "$wxUSE_SOCKETS" = "yes"; then
46516         if test "$TOOLKIT" != "MSW"; then
46517                 { echo "$as_me:$LINENO: checking for socket" >&5
46518 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
46519 if test "${ac_cv_func_socket+set}" = set; then
46520   echo $ECHO_N "(cached) $ECHO_C" >&6
46521 else
46522   cat >conftest.$ac_ext <<_ACEOF
46523 /* confdefs.h.  */
46524 _ACEOF
46525 cat confdefs.h >>conftest.$ac_ext
46526 cat >>conftest.$ac_ext <<_ACEOF
46527 /* end confdefs.h.  */
46528 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
46529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46530 #define socket innocuous_socket
46531
46532 /* System header to define __stub macros and hopefully few prototypes,
46533     which can conflict with char socket (); below.
46534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46535     <limits.h> exists even on freestanding compilers.  */
46536
46537 #ifdef __STDC__
46538 # include <limits.h>
46539 #else
46540 # include <assert.h>
46541 #endif
46542
46543 #undef socket
46544
46545 /* Override any GCC internal prototype to avoid an error.
46546    Use char because int might match the return type of a GCC
46547    builtin and then its argument prototype would still apply.  */
46548 #ifdef __cplusplus
46549 extern "C"
46550 #endif
46551 char socket ();
46552 /* The GNU C library defines this for functions which it implements
46553     to always fail with ENOSYS.  Some functions are actually named
46554     something starting with __ and the normal name is an alias.  */
46555 #if defined __stub_socket || defined __stub___socket
46556 choke me
46557 #endif
46558
46559 int
46560 main ()
46561 {
46562 return socket ();
46563   ;
46564   return 0;
46565 }
46566 _ACEOF
46567 rm -f conftest.$ac_objext conftest$ac_exeext
46568 if { (ac_try="$ac_link"
46569 case "(($ac_try" in
46570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46571   *) ac_try_echo=$ac_try;;
46572 esac
46573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46574   (eval "$ac_link") 2>conftest.er1
46575   ac_status=$?
46576   grep -v '^ *+' conftest.er1 >conftest.err
46577   rm -f conftest.er1
46578   cat conftest.err >&5
46579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46580   (exit $ac_status); } && {
46581          test -z "$ac_c_werror_flag" ||
46582          test ! -s conftest.err
46583        } && test -s conftest$ac_exeext &&
46584        $as_test_x conftest$ac_exeext; then
46585   ac_cv_func_socket=yes
46586 else
46587   echo "$as_me: failed program was:" >&5
46588 sed 's/^/| /' conftest.$ac_ext >&5
46589
46590         ac_cv_func_socket=no
46591 fi
46592
46593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46594       conftest$ac_exeext conftest.$ac_ext
46595 fi
46596 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46597 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
46598 if test $ac_cv_func_socket = yes; then
46599   :
46600 else
46601
46602                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46603 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
46604 if test "${ac_cv_lib_socket_socket+set}" = set; then
46605   echo $ECHO_N "(cached) $ECHO_C" >&6
46606 else
46607   ac_check_lib_save_LIBS=$LIBS
46608 LIBS="-lsocket  $LIBS"
46609 cat >conftest.$ac_ext <<_ACEOF
46610 /* confdefs.h.  */
46611 _ACEOF
46612 cat confdefs.h >>conftest.$ac_ext
46613 cat >>conftest.$ac_ext <<_ACEOF
46614 /* end confdefs.h.  */
46615
46616 /* Override any GCC internal prototype to avoid an error.
46617    Use char because int might match the return type of a GCC
46618    builtin and then its argument prototype would still apply.  */
46619 #ifdef __cplusplus
46620 extern "C"
46621 #endif
46622 char socket ();
46623 int
46624 main ()
46625 {
46626 return socket ();
46627   ;
46628   return 0;
46629 }
46630 _ACEOF
46631 rm -f conftest.$ac_objext conftest$ac_exeext
46632 if { (ac_try="$ac_link"
46633 case "(($ac_try" in
46634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46635   *) ac_try_echo=$ac_try;;
46636 esac
46637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46638   (eval "$ac_link") 2>conftest.er1
46639   ac_status=$?
46640   grep -v '^ *+' conftest.er1 >conftest.err
46641   rm -f conftest.er1
46642   cat conftest.err >&5
46643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46644   (exit $ac_status); } && {
46645          test -z "$ac_c_werror_flag" ||
46646          test ! -s conftest.err
46647        } && test -s conftest$ac_exeext &&
46648        $as_test_x conftest$ac_exeext; then
46649   ac_cv_lib_socket_socket=yes
46650 else
46651   echo "$as_me: failed program was:" >&5
46652 sed 's/^/| /' conftest.$ac_ext >&5
46653
46654         ac_cv_lib_socket_socket=no
46655 fi
46656
46657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46658       conftest$ac_exeext conftest.$ac_ext
46659 LIBS=$ac_check_lib_save_LIBS
46660 fi
46661 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46662 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
46663 if test $ac_cv_lib_socket_socket = yes; then
46664   if test "$INET_LINK" != " -lsocket"; then
46665                         INET_LINK="$INET_LINK -lsocket"
46666                     fi
46667 else
46668
46669                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46670 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46671                         wxUSE_SOCKETS=no
46672
46673
46674 fi
46675
46676
46677
46678 fi
46679
46680     fi
46681 fi
46682
46683 if test "$wxUSE_SOCKETS" = "yes" ; then
46684                 if test "$TOOLKIT" != "MSW"; then
46685                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46686 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
46687 if test "${wx_cv_type_getsockname3+set}" = set; then
46688   echo $ECHO_N "(cached) $ECHO_C" >&6
46689 else
46690
46691                 ac_ext=cpp
46692 ac_cpp='$CXXCPP $CPPFLAGS'
46693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46696
46697                 cat >conftest.$ac_ext <<_ACEOF
46698 /* confdefs.h.  */
46699 _ACEOF
46700 cat confdefs.h >>conftest.$ac_ext
46701 cat >>conftest.$ac_ext <<_ACEOF
46702 /* end confdefs.h.  */
46703
46704                         #include <sys/types.h>
46705                         #include <sys/socket.h>
46706
46707 int
46708 main ()
46709 {
46710
46711                         socklen_t len;
46712                         getsockname(0, 0, &len);
46713
46714   ;
46715   return 0;
46716 }
46717 _ACEOF
46718 rm -f conftest.$ac_objext
46719 if { (ac_try="$ac_compile"
46720 case "(($ac_try" in
46721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46722   *) ac_try_echo=$ac_try;;
46723 esac
46724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46725   (eval "$ac_compile") 2>conftest.er1
46726   ac_status=$?
46727   grep -v '^ *+' conftest.er1 >conftest.err
46728   rm -f conftest.er1
46729   cat conftest.err >&5
46730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46731   (exit $ac_status); } && {
46732          test -z "$ac_cxx_werror_flag" ||
46733          test ! -s conftest.err
46734        } && test -s conftest.$ac_objext; then
46735   wx_cv_type_getsockname3=socklen_t
46736 else
46737   echo "$as_me: failed program was:" >&5
46738 sed 's/^/| /' conftest.$ac_ext >&5
46739
46740
46741                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
46742                         if test "$GCC" = yes ; then
46743                             CFLAGS="-Werror $CFLAGS"
46744                         fi
46745
46746                         cat >conftest.$ac_ext <<_ACEOF
46747 /* confdefs.h.  */
46748 _ACEOF
46749 cat confdefs.h >>conftest.$ac_ext
46750 cat >>conftest.$ac_ext <<_ACEOF
46751 /* end confdefs.h.  */
46752
46753                                 #include <sys/types.h>
46754                                 #include <sys/socket.h>
46755
46756 int
46757 main ()
46758 {
46759
46760                                 size_t len;
46761                                 getsockname(0, 0, &len);
46762
46763   ;
46764   return 0;
46765 }
46766 _ACEOF
46767 rm -f conftest.$ac_objext
46768 if { (ac_try="$ac_compile"
46769 case "(($ac_try" in
46770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46771   *) ac_try_echo=$ac_try;;
46772 esac
46773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46774   (eval "$ac_compile") 2>conftest.er1
46775   ac_status=$?
46776   grep -v '^ *+' conftest.er1 >conftest.err
46777   rm -f conftest.er1
46778   cat conftest.err >&5
46779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46780   (exit $ac_status); } && {
46781          test -z "$ac_cxx_werror_flag" ||
46782          test ! -s conftest.err
46783        } && test -s conftest.$ac_objext; then
46784   wx_cv_type_getsockname3=size_t
46785 else
46786   echo "$as_me: failed program was:" >&5
46787 sed 's/^/| /' conftest.$ac_ext >&5
46788
46789         cat >conftest.$ac_ext <<_ACEOF
46790 /* confdefs.h.  */
46791 _ACEOF
46792 cat confdefs.h >>conftest.$ac_ext
46793 cat >>conftest.$ac_ext <<_ACEOF
46794 /* end confdefs.h.  */
46795
46796                                     #include <sys/types.h>
46797                                     #include <sys/socket.h>
46798
46799 int
46800 main ()
46801 {
46802
46803                                     int len;
46804                                     getsockname(0, 0, &len);
46805
46806   ;
46807   return 0;
46808 }
46809 _ACEOF
46810 rm -f conftest.$ac_objext
46811 if { (ac_try="$ac_compile"
46812 case "(($ac_try" in
46813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46814   *) ac_try_echo=$ac_try;;
46815 esac
46816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46817   (eval "$ac_compile") 2>conftest.er1
46818   ac_status=$?
46819   grep -v '^ *+' conftest.er1 >conftest.err
46820   rm -f conftest.er1
46821   cat conftest.err >&5
46822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46823   (exit $ac_status); } && {
46824          test -z "$ac_cxx_werror_flag" ||
46825          test ! -s conftest.err
46826        } && test -s conftest.$ac_objext; then
46827   wx_cv_type_getsockname3=int
46828 else
46829   echo "$as_me: failed program was:" >&5
46830 sed 's/^/| /' conftest.$ac_ext >&5
46831
46832         wx_cv_type_getsockname3=unknown
46833
46834 fi
46835
46836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46837
46838 fi
46839
46840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46841
46842                         CFLAGS="$CFLAGS_OLD"
46843
46844
46845 fi
46846
46847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46848                 ac_ext=c
46849 ac_cpp='$CPP $CPPFLAGS'
46850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46853
46854
46855 fi
46856 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46857 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
46858
46859         if test "$wx_cv_type_getsockname3" = "unknown"; then
46860             wxUSE_SOCKETS=no
46861             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46862 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46863         else
46864             cat >>confdefs.h <<_ACEOF
46865 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
46866 _ACEOF
46867
46868         fi
46869                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46870 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
46871 if test "${wx_cv_type_getsockopt5+set}" = set; then
46872   echo $ECHO_N "(cached) $ECHO_C" >&6
46873 else
46874
46875                                                                                                 ac_ext=cpp
46876 ac_cpp='$CXXCPP $CPPFLAGS'
46877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46880
46881                 cat >conftest.$ac_ext <<_ACEOF
46882 /* confdefs.h.  */
46883 _ACEOF
46884 cat confdefs.h >>conftest.$ac_ext
46885 cat >>conftest.$ac_ext <<_ACEOF
46886 /* end confdefs.h.  */
46887
46888                         #include <sys/types.h>
46889                         #include <sys/socket.h>
46890
46891 int
46892 main ()
46893 {
46894
46895                         socklen_t len;
46896                         getsockopt(0, 0, 0, 0, &len);
46897
46898   ;
46899   return 0;
46900 }
46901 _ACEOF
46902 rm -f conftest.$ac_objext
46903 if { (ac_try="$ac_compile"
46904 case "(($ac_try" in
46905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46906   *) ac_try_echo=$ac_try;;
46907 esac
46908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46909   (eval "$ac_compile") 2>conftest.er1
46910   ac_status=$?
46911   grep -v '^ *+' conftest.er1 >conftest.err
46912   rm -f conftest.er1
46913   cat conftest.err >&5
46914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46915   (exit $ac_status); } && {
46916          test -z "$ac_cxx_werror_flag" ||
46917          test ! -s conftest.err
46918        } && test -s conftest.$ac_objext; then
46919   wx_cv_type_getsockopt5=socklen_t
46920 else
46921   echo "$as_me: failed program was:" >&5
46922 sed 's/^/| /' conftest.$ac_ext >&5
46923
46924
46925                         cat >conftest.$ac_ext <<_ACEOF
46926 /* confdefs.h.  */
46927 _ACEOF
46928 cat confdefs.h >>conftest.$ac_ext
46929 cat >>conftest.$ac_ext <<_ACEOF
46930 /* end confdefs.h.  */
46931
46932                                 #include <sys/types.h>
46933                                 #include <sys/socket.h>
46934
46935 int
46936 main ()
46937 {
46938
46939                                 size_t len;
46940                                 getsockopt(0, 0, 0, 0, &len);
46941
46942   ;
46943   return 0;
46944 }
46945 _ACEOF
46946 rm -f conftest.$ac_objext
46947 if { (ac_try="$ac_compile"
46948 case "(($ac_try" in
46949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46950   *) ac_try_echo=$ac_try;;
46951 esac
46952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46953   (eval "$ac_compile") 2>conftest.er1
46954   ac_status=$?
46955   grep -v '^ *+' conftest.er1 >conftest.err
46956   rm -f conftest.er1
46957   cat conftest.err >&5
46958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46959   (exit $ac_status); } && {
46960          test -z "$ac_cxx_werror_flag" ||
46961          test ! -s conftest.err
46962        } && test -s conftest.$ac_objext; then
46963   wx_cv_type_getsockopt5=size_t
46964 else
46965   echo "$as_me: failed program was:" >&5
46966 sed 's/^/| /' conftest.$ac_ext >&5
46967
46968         cat >conftest.$ac_ext <<_ACEOF
46969 /* confdefs.h.  */
46970 _ACEOF
46971 cat confdefs.h >>conftest.$ac_ext
46972 cat >>conftest.$ac_ext <<_ACEOF
46973 /* end confdefs.h.  */
46974
46975                                     #include <sys/types.h>
46976                                     #include <sys/socket.h>
46977
46978 int
46979 main ()
46980 {
46981
46982                                     int len;
46983                                     getsockopt(0, 0, 0, 0, &len);
46984
46985   ;
46986   return 0;
46987 }
46988 _ACEOF
46989 rm -f conftest.$ac_objext
46990 if { (ac_try="$ac_compile"
46991 case "(($ac_try" in
46992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46993   *) ac_try_echo=$ac_try;;
46994 esac
46995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46996   (eval "$ac_compile") 2>conftest.er1
46997   ac_status=$?
46998   grep -v '^ *+' conftest.er1 >conftest.err
46999   rm -f conftest.er1
47000   cat conftest.err >&5
47001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47002   (exit $ac_status); } && {
47003          test -z "$ac_cxx_werror_flag" ||
47004          test ! -s conftest.err
47005        } && test -s conftest.$ac_objext; then
47006   wx_cv_type_getsockopt5=int
47007 else
47008   echo "$as_me: failed program was:" >&5
47009 sed 's/^/| /' conftest.$ac_ext >&5
47010
47011         wx_cv_type_getsockopt5=unknown
47012
47013 fi
47014
47015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47016
47017 fi
47018
47019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47020
47021
47022 fi
47023
47024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47025                 ac_ext=c
47026 ac_cpp='$CPP $CPPFLAGS'
47027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47030
47031
47032 fi
47033 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
47034 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
47035
47036         if test "$wx_cv_type_getsockopt5" = "unknown"; then
47037             wxUSE_SOCKETS=no
47038             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47039 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47040         else
47041             cat >>confdefs.h <<_ACEOF
47042 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
47043 _ACEOF
47044
47045         fi
47046     fi
47047 fi
47048
47049 if test "$wxUSE_SOCKETS" = "yes" ; then
47050     cat >>confdefs.h <<\_ACEOF
47051 #define wxUSE_SOCKETS 1
47052 _ACEOF
47053
47054     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47055 fi
47056
47057 if test "$wxUSE_PROTOCOL" = "yes"; then
47058     if test "$wxUSE_SOCKETS" != "yes"; then
47059         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
47060 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
47061         wxUSE_PROTOCOL=no
47062     fi
47063 fi
47064
47065 if test "$wxUSE_PROTOCOL" = "yes"; then
47066     cat >>confdefs.h <<\_ACEOF
47067 #define wxUSE_PROTOCOL 1
47068 _ACEOF
47069
47070
47071     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
47072         cat >>confdefs.h <<\_ACEOF
47073 #define wxUSE_PROTOCOL_HTTP 1
47074 _ACEOF
47075
47076     fi
47077     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
47078         cat >>confdefs.h <<\_ACEOF
47079 #define wxUSE_PROTOCOL_FTP 1
47080 _ACEOF
47081
47082     fi
47083     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
47084         cat >>confdefs.h <<\_ACEOF
47085 #define wxUSE_PROTOCOL_FILE 1
47086 _ACEOF
47087
47088     fi
47089 else
47090     if test "$wxUSE_FS_INET" = "yes"; then
47091         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
47092 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
47093         wxUSE_FS_INET="no"
47094     fi
47095 fi
47096
47097 if test "$wxUSE_URL" = "yes"; then
47098     if test "$wxUSE_PROTOCOL" != "yes"; then
47099         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
47100 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
47101         wxUSE_URL=no
47102     fi
47103     if test "$wxUSE_URL" = "yes"; then
47104         cat >>confdefs.h <<\_ACEOF
47105 #define wxUSE_URL 1
47106 _ACEOF
47107
47108     fi
47109 fi
47110
47111 if test "$wxUSE_VARIANT" = "yes"; then
47112     cat >>confdefs.h <<\_ACEOF
47113 #define wxUSE_VARIANT 1
47114 _ACEOF
47115
47116 fi
47117
47118 if test "$wxUSE_FS_INET" = "yes"; then
47119   cat >>confdefs.h <<\_ACEOF
47120 #define wxUSE_FS_INET 1
47121 _ACEOF
47122
47123 fi
47124
47125
47126 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
47127     wxUSE_JOYSTICK=no
47128
47129         if test "$TOOLKIT" = "MSW"; then
47130         wxUSE_JOYSTICK=yes
47131
47132         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
47133         if test "$USE_DARWIN" = 1; then
47134                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
47135 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
47136             ac_ext=cpp
47137 ac_cpp='$CXXCPP $CPPFLAGS'
47138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47141
47142             cat >conftest.$ac_ext <<_ACEOF
47143 /* confdefs.h.  */
47144 _ACEOF
47145 cat confdefs.h >>conftest.$ac_ext
47146 cat >>conftest.$ac_ext <<_ACEOF
47147 /* end confdefs.h.  */
47148  #include <IOKit/hid/IOHIDLib.h>
47149 int
47150 main ()
47151 {
47152  IOHIDQueueInterface *qi = NULL;
47153                               IOHIDCallbackFunction cb = NULL;
47154                               qi->setEventCallout(NULL, cb, NULL, NULL);
47155   ;
47156   return 0;
47157 }
47158 _ACEOF
47159 rm -f conftest.$ac_objext
47160 if { (ac_try="$ac_compile"
47161 case "(($ac_try" in
47162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47163   *) ac_try_echo=$ac_try;;
47164 esac
47165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47166   (eval "$ac_compile") 2>conftest.er1
47167   ac_status=$?
47168   grep -v '^ *+' conftest.er1 >conftest.err
47169   rm -f conftest.er1
47170   cat conftest.err >&5
47171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47172   (exit $ac_status); } && {
47173          test -z "$ac_cxx_werror_flag" ||
47174          test ! -s conftest.err
47175        } && test -s conftest.$ac_objext; then
47176    wxUSE_JOYSTICK=yes
47177
47178 else
47179   echo "$as_me: failed program was:" >&5
47180 sed 's/^/| /' conftest.$ac_ext >&5
47181
47182
47183 fi
47184
47185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47186             ac_ext=c
47187 ac_cpp='$CPP $CPPFLAGS'
47188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47191
47192             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
47193 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
47194         fi
47195
47196         else
47197                 if test "$wxUSE_MGL" != "1"; then
47198
47199 for ac_header in linux/joystick.h
47200 do
47201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47205   echo $ECHO_N "(cached) $ECHO_C" >&6
47206 else
47207   cat >conftest.$ac_ext <<_ACEOF
47208 /* confdefs.h.  */
47209 _ACEOF
47210 cat confdefs.h >>conftest.$ac_ext
47211 cat >>conftest.$ac_ext <<_ACEOF
47212 /* end confdefs.h.  */
47213 $ac_includes_default
47214
47215 #include <$ac_header>
47216 _ACEOF
47217 rm -f conftest.$ac_objext
47218 if { (ac_try="$ac_compile"
47219 case "(($ac_try" in
47220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47221   *) ac_try_echo=$ac_try;;
47222 esac
47223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47224   (eval "$ac_compile") 2>conftest.er1
47225   ac_status=$?
47226   grep -v '^ *+' conftest.er1 >conftest.err
47227   rm -f conftest.er1
47228   cat conftest.err >&5
47229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47230   (exit $ac_status); } && {
47231          test -z "$ac_c_werror_flag" ||
47232          test ! -s conftest.err
47233        } && test -s conftest.$ac_objext; then
47234   eval "$as_ac_Header=yes"
47235 else
47236   echo "$as_me: failed program was:" >&5
47237 sed 's/^/| /' conftest.$ac_ext >&5
47238
47239         eval "$as_ac_Header=no"
47240 fi
47241
47242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47243 fi
47244 ac_res=`eval echo '${'$as_ac_Header'}'`
47245                { echo "$as_me:$LINENO: result: $ac_res" >&5
47246 echo "${ECHO_T}$ac_res" >&6; }
47247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47248   cat >>confdefs.h <<_ACEOF
47249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47250 _ACEOF
47251  wxUSE_JOYSTICK=yes
47252 fi
47253
47254 done
47255
47256         fi
47257     fi
47258
47259     if test "$wxUSE_JOYSTICK" = "yes"; then
47260         cat >>confdefs.h <<\_ACEOF
47261 #define wxUSE_JOYSTICK 1
47262 _ACEOF
47263
47264         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
47265     else
47266         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
47267 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
47268     fi
47269 fi
47270
47271
47272
47273 if test "$wxUSE_FONTENUM" = "yes" ; then
47274   cat >>confdefs.h <<\_ACEOF
47275 #define wxUSE_FONTENUM 1
47276 _ACEOF
47277
47278 fi
47279
47280 if test "$wxUSE_FONTMAP" = "yes" ; then
47281   cat >>confdefs.h <<\_ACEOF
47282 #define wxUSE_FONTMAP 1
47283 _ACEOF
47284
47285 fi
47286
47287 if test "$wxUSE_UNICODE" = "yes" ; then
47288   cat >>confdefs.h <<\_ACEOF
47289 #define wxUSE_UNICODE 1
47290 _ACEOF
47291
47292
47293   if test "$USE_WIN32" != 1; then
47294       wxUSE_UNICODE_MSLU=no
47295   fi
47296
47297   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47298         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47299 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
47300 if test "${ac_cv_lib_unicows_main+set}" = set; then
47301   echo $ECHO_N "(cached) $ECHO_C" >&6
47302 else
47303   ac_check_lib_save_LIBS=$LIBS
47304 LIBS="-lunicows  $LIBS"
47305 cat >conftest.$ac_ext <<_ACEOF
47306 /* confdefs.h.  */
47307 _ACEOF
47308 cat confdefs.h >>conftest.$ac_ext
47309 cat >>conftest.$ac_ext <<_ACEOF
47310 /* end confdefs.h.  */
47311
47312
47313 int
47314 main ()
47315 {
47316 return main ();
47317   ;
47318   return 0;
47319 }
47320 _ACEOF
47321 rm -f conftest.$ac_objext conftest$ac_exeext
47322 if { (ac_try="$ac_link"
47323 case "(($ac_try" in
47324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47325   *) ac_try_echo=$ac_try;;
47326 esac
47327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47328   (eval "$ac_link") 2>conftest.er1
47329   ac_status=$?
47330   grep -v '^ *+' conftest.er1 >conftest.err
47331   rm -f conftest.er1
47332   cat conftest.err >&5
47333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47334   (exit $ac_status); } && {
47335          test -z "$ac_c_werror_flag" ||
47336          test ! -s conftest.err
47337        } && test -s conftest$ac_exeext &&
47338        $as_test_x conftest$ac_exeext; then
47339   ac_cv_lib_unicows_main=yes
47340 else
47341   echo "$as_me: failed program was:" >&5
47342 sed 's/^/| /' conftest.$ac_ext >&5
47343
47344         ac_cv_lib_unicows_main=no
47345 fi
47346
47347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47348       conftest$ac_exeext conftest.$ac_ext
47349 LIBS=$ac_check_lib_save_LIBS
47350 fi
47351 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
47352 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
47353 if test $ac_cv_lib_unicows_main = yes; then
47354
47355                 cat >>confdefs.h <<\_ACEOF
47356 #define wxUSE_UNICODE_MSLU 1
47357 _ACEOF
47358
47359
47360 else
47361
47362                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47363                              Applications will only run on Windows NT/2000/XP!" >&5
47364 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47365                              Applications will only run on Windows NT/2000/XP!" >&2;}
47366                 wxUSE_UNICODE_MSLU=no
47367
47368 fi
47369
47370     fi
47371 fi
47372
47373 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
47374     cat >>confdefs.h <<\_ACEOF
47375 #define wxUSE_UNICODE_UTF8 1
47376 _ACEOF
47377
47378
47379     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
47380         cat >>confdefs.h <<\_ACEOF
47381 #define wxUSE_UTF8_LOCALE_ONLY 1
47382 _ACEOF
47383
47384     fi
47385 fi
47386
47387
47388 if test "$wxUSE_CONSTRAINTS" = "yes"; then
47389     cat >>confdefs.h <<\_ACEOF
47390 #define wxUSE_CONSTRAINTS 1
47391 _ACEOF
47392
47393     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
47394 fi
47395
47396 if test "$wxUSE_MDI" = "yes"; then
47397     cat >>confdefs.h <<\_ACEOF
47398 #define wxUSE_MDI 1
47399 _ACEOF
47400
47401
47402     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47403         cat >>confdefs.h <<\_ACEOF
47404 #define wxUSE_MDI_ARCHITECTURE 1
47405 _ACEOF
47406
47407         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
47408     fi
47409 fi
47410
47411 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
47412     cat >>confdefs.h <<\_ACEOF
47413 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
47414 _ACEOF
47415
47416     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
47417     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47418         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
47419     fi
47420 fi
47421
47422 if test "$wxUSE_HELP" = "yes"; then
47423     cat >>confdefs.h <<\_ACEOF
47424 #define wxUSE_HELP 1
47425 _ACEOF
47426
47427     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47428
47429     if test "$wxUSE_MSW" = 1; then
47430       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47431         cat >>confdefs.h <<\_ACEOF
47432 #define wxUSE_MS_HTML_HELP 1
47433 _ACEOF
47434
47435       fi
47436     fi
47437
47438     if test "$wxUSE_WXHTML_HELP" = "yes"; then
47439       if test "$wxUSE_HTML" = "yes"; then
47440         cat >>confdefs.h <<\_ACEOF
47441 #define wxUSE_WXHTML_HELP 1
47442 _ACEOF
47443
47444       else
47445         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47446 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47447         wxUSE_WXHTML_HELP=no
47448       fi
47449     fi
47450 fi
47451
47452 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47453     if test "$wxUSE_CONSTRAINTS" != "yes"; then
47454         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
47455 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
47456     else
47457         cat >>confdefs.h <<\_ACEOF
47458 #define wxUSE_PRINTING_ARCHITECTURE 1
47459 _ACEOF
47460
47461     fi
47462     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47463 fi
47464
47465 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47466   cat >>confdefs.h <<\_ACEOF
47467 #define wxUSE_POSTSCRIPT 1
47468 _ACEOF
47469
47470 fi
47471
47472 cat >>confdefs.h <<\_ACEOF
47473 #define wxUSE_AFM_FOR_POSTSCRIPT 1
47474 _ACEOF
47475
47476
47477 if test "$wxUSE_SVG" = "yes"; then
47478     cat >>confdefs.h <<\_ACEOF
47479 #define wxUSE_SVG 1
47480 _ACEOF
47481
47482 fi
47483
47484
47485 if test "$wxUSE_METAFILE" = "yes"; then
47486     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47487         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47488 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47489         wxUSE_METAFILE=no
47490     fi
47491 fi
47492
47493
47494 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
47495                           -o "$wxUSE_CLIPBOARD"     = "yes" \
47496                           -o "$wxUSE_OLE"     = "yes" \
47497                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
47498     { echo "$as_me:$LINENO: checking for ole2.h" >&5
47499 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
47500 if test "${ac_cv_header_ole2_h+set}" = set; then
47501   echo $ECHO_N "(cached) $ECHO_C" >&6
47502 else
47503   cat >conftest.$ac_ext <<_ACEOF
47504 /* confdefs.h.  */
47505 _ACEOF
47506 cat confdefs.h >>conftest.$ac_ext
47507 cat >>conftest.$ac_ext <<_ACEOF
47508 /* end confdefs.h.  */
47509
47510
47511 #include <ole2.h>
47512 _ACEOF
47513 rm -f conftest.$ac_objext
47514 if { (ac_try="$ac_compile"
47515 case "(($ac_try" in
47516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47517   *) ac_try_echo=$ac_try;;
47518 esac
47519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47520   (eval "$ac_compile") 2>conftest.er1
47521   ac_status=$?
47522   grep -v '^ *+' conftest.er1 >conftest.err
47523   rm -f conftest.er1
47524   cat conftest.err >&5
47525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47526   (exit $ac_status); } && {
47527          test -z "$ac_c_werror_flag" ||
47528          test ! -s conftest.err
47529        } && test -s conftest.$ac_objext; then
47530   ac_cv_header_ole2_h=yes
47531 else
47532   echo "$as_me: failed program was:" >&5
47533 sed 's/^/| /' conftest.$ac_ext >&5
47534
47535         ac_cv_header_ole2_h=no
47536 fi
47537
47538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47539 fi
47540 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47541 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
47542
47543
47544
47545     if test "$ac_cv_header_ole2_h" = "yes" ; then
47546         if test "$GCC" = yes ; then
47547             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47548 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
47549             cat >conftest.$ac_ext <<_ACEOF
47550 /* confdefs.h.  */
47551 _ACEOF
47552 cat confdefs.h >>conftest.$ac_ext
47553 cat >>conftest.$ac_ext <<_ACEOF
47554 /* end confdefs.h.  */
47555 #include <windows.h>
47556                             #include <ole2.h>
47557 int
47558 main ()
47559 {
47560
47561   ;
47562   return 0;
47563 }
47564 _ACEOF
47565 rm -f conftest.$ac_objext
47566 if { (ac_try="$ac_compile"
47567 case "(($ac_try" in
47568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47569   *) ac_try_echo=$ac_try;;
47570 esac
47571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47572   (eval "$ac_compile") 2>conftest.er1
47573   ac_status=$?
47574   grep -v '^ *+' conftest.er1 >conftest.err
47575   rm -f conftest.er1
47576   cat conftest.err >&5
47577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47578   (exit $ac_status); } && {
47579          test -z "$ac_c_werror_flag" ||
47580          test ! -s conftest.err
47581        } && test -s conftest.$ac_objext; then
47582   { echo "$as_me:$LINENO: result: no" >&5
47583 echo "${ECHO_T}no" >&6; }
47584 else
47585   echo "$as_me: failed program was:" >&5
47586 sed 's/^/| /' conftest.$ac_ext >&5
47587
47588         { echo "$as_me:$LINENO: result: yes" >&5
47589 echo "${ECHO_T}yes" >&6; }
47590                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47591 fi
47592
47593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47594             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47595             if test "$wxUSE_OLE" = "yes" ; then
47596                 cat >>confdefs.h <<\_ACEOF
47597 #define wxUSE_OLE 1
47598 _ACEOF
47599
47600                 cat >>confdefs.h <<\_ACEOF
47601 #define wxUSE_OLE_AUTOMATION 1
47602 _ACEOF
47603
47604                 cat >>confdefs.h <<\_ACEOF
47605 #define wxUSE_ACTIVEX 1
47606 _ACEOF
47607
47608                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47609             fi
47610         fi
47611
47612                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47613             cat >>confdefs.h <<\_ACEOF
47614 #define wxUSE_DATAOBJ 1
47615 _ACEOF
47616
47617         fi
47618     else
47619         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47620 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47621
47622         wxUSE_CLIPBOARD=no
47623         wxUSE_DRAG_AND_DROP=no
47624         wxUSE_DATAOBJ=no
47625         wxUSE_OLE=no
47626     fi
47627
47628     if test "$wxUSE_METAFILE" = "yes"; then
47629         cat >>confdefs.h <<\_ACEOF
47630 #define wxUSE_METAFILE 1
47631 _ACEOF
47632
47633
47634                 cat >>confdefs.h <<\_ACEOF
47635 #define wxUSE_ENH_METAFILE 1
47636 _ACEOF
47637
47638     fi
47639 fi
47640
47641 if test "$wxUSE_IPC" = "yes"; then
47642     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
47643         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47644 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
47645         wxUSE_IPC=no
47646     fi
47647
47648     if test "$wxUSE_IPC" = "yes"; then
47649         cat >>confdefs.h <<\_ACEOF
47650 #define wxUSE_IPC 1
47651 _ACEOF
47652
47653         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47654     fi
47655 fi
47656
47657 if test "$wxUSE_DATAOBJ" = "yes"; then
47658     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47659         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47660 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
47661         wxUSE_DATAOBJ=no
47662     else
47663         cat >>confdefs.h <<\_ACEOF
47664 #define wxUSE_DATAOBJ 1
47665 _ACEOF
47666
47667     fi
47668 else
47669     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47670 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47671     wxUSE_CLIPBOARD=no
47672     wxUSE_DRAG_AND_DROP=no
47673 fi
47674
47675 if test "$wxUSE_CLIPBOARD" = "yes"; then
47676     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47677         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47678 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
47679         wxUSE_CLIPBOARD=no
47680     fi
47681
47682     if test "$wxUSE_CLIPBOARD" = "yes"; then
47683         cat >>confdefs.h <<\_ACEOF
47684 #define wxUSE_CLIPBOARD 1
47685 _ACEOF
47686
47687     fi
47688 fi
47689
47690 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47691     if test "$wxUSE_GTK" = 1; then
47692         if test "$WXGTK12" != 1; then
47693             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
47694 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
47695             wxUSE_DRAG_AND_DROP=no
47696         fi
47697     fi
47698
47699     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47700             "$wxUSE_DFB" = 1; then
47701         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47702 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47703         wxUSE_DRAG_AND_DROP=no
47704     fi
47705
47706     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47707         cat >>confdefs.h <<\_ACEOF
47708 #define wxUSE_DRAG_AND_DROP 1
47709 _ACEOF
47710
47711     fi
47712
47713 fi
47714
47715 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47716     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47717 fi
47718
47719 if test "$wxUSE_SPLINES" = "yes" ; then
47720   cat >>confdefs.h <<\_ACEOF
47721 #define wxUSE_SPLINES 1
47722 _ACEOF
47723
47724 fi
47725
47726 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47727   cat >>confdefs.h <<\_ACEOF
47728 #define wxUSE_MOUSEWHEEL 1
47729 _ACEOF
47730
47731 fi
47732
47733
47734 USES_CONTROLS=0
47735 if test "$wxUSE_CONTROLS" = "yes"; then
47736   USES_CONTROLS=1
47737 fi
47738
47739 if test "$wxUSE_ACCEL" = "yes"; then
47740   cat >>confdefs.h <<\_ACEOF
47741 #define wxUSE_ACCEL 1
47742 _ACEOF
47743
47744   USES_CONTROLS=1
47745 fi
47746
47747 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47748   cat >>confdefs.h <<\_ACEOF
47749 #define wxUSE_ANIMATIONCTRL 1
47750 _ACEOF
47751
47752   USES_CONTROLS=1
47753   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47754 fi
47755
47756 if test "$wxUSE_BUTTON" = "yes"; then
47757   cat >>confdefs.h <<\_ACEOF
47758 #define wxUSE_BUTTON 1
47759 _ACEOF
47760
47761   USES_CONTROLS=1
47762 fi
47763
47764 if test "$wxUSE_BMPBUTTON" = "yes"; then
47765   cat >>confdefs.h <<\_ACEOF
47766 #define wxUSE_BMPBUTTON 1
47767 _ACEOF
47768
47769   USES_CONTROLS=1
47770 fi
47771
47772 if test "$wxUSE_CALCTRL" = "yes"; then
47773   cat >>confdefs.h <<\_ACEOF
47774 #define wxUSE_CALENDARCTRL 1
47775 _ACEOF
47776
47777   USES_CONTROLS=1
47778   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47779 fi
47780
47781 if test "$wxUSE_CARET" = "yes"; then
47782   cat >>confdefs.h <<\_ACEOF
47783 #define wxUSE_CARET 1
47784 _ACEOF
47785
47786   USES_CONTROLS=1
47787   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47788 fi
47789
47790 if test "$wxUSE_COLLPANE" = "yes"; then
47791     cat >>confdefs.h <<\_ACEOF
47792 #define wxUSE_COLLPANE 1
47793 _ACEOF
47794
47795     USES_CONTROLS=1
47796     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47797 fi
47798
47799 if test "$wxUSE_COMBOBOX" = "yes"; then
47800   cat >>confdefs.h <<\_ACEOF
47801 #define wxUSE_COMBOBOX 1
47802 _ACEOF
47803
47804   USES_CONTROLS=1
47805 fi
47806
47807 if test "$wxUSE_COMBOCTRL" = "yes"; then
47808   cat >>confdefs.h <<\_ACEOF
47809 #define wxUSE_COMBOCTRL 1
47810 _ACEOF
47811
47812   USES_CONTROLS=1
47813 fi
47814
47815 if test "$wxUSE_CHOICE" = "yes"; then
47816   cat >>confdefs.h <<\_ACEOF
47817 #define wxUSE_CHOICE 1
47818 _ACEOF
47819
47820   USES_CONTROLS=1
47821 fi
47822
47823 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47824     cat >>confdefs.h <<\_ACEOF
47825 #define wxUSE_CHOICEBOOK 1
47826 _ACEOF
47827
47828     USES_CONTROLS=1
47829 fi
47830
47831 if test "$wxUSE_CHECKBOX" = "yes"; then
47832   cat >>confdefs.h <<\_ACEOF
47833 #define wxUSE_CHECKBOX 1
47834 _ACEOF
47835
47836   USES_CONTROLS=1
47837 fi
47838
47839 if test "$wxUSE_CHECKLST" = "yes"; then
47840   cat >>confdefs.h <<\_ACEOF
47841 #define wxUSE_CHECKLISTBOX 1
47842 _ACEOF
47843
47844   USES_CONTROLS=1
47845 fi
47846
47847 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47848   cat >>confdefs.h <<\_ACEOF
47849 #define wxUSE_COLOURPICKERCTRL 1
47850 _ACEOF
47851
47852   USES_CONTROLS=1
47853 fi
47854
47855 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47856   cat >>confdefs.h <<\_ACEOF
47857 #define wxUSE_DATEPICKCTRL 1
47858 _ACEOF
47859
47860   USES_CONTROLS=1
47861 fi
47862
47863 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47864   cat >>confdefs.h <<\_ACEOF
47865 #define wxUSE_DIRPICKERCTRL 1
47866 _ACEOF
47867
47868   USES_CONTROLS=1
47869 fi
47870
47871 if test "$wxUSE_FILECTRL" = "yes"; then
47872   cat >>confdefs.h <<\_ACEOF
47873 #define wxUSE_FILECTRL 1
47874 _ACEOF
47875
47876   USES_CONTROLS=1
47877 fi
47878
47879 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47880   cat >>confdefs.h <<\_ACEOF
47881 #define wxUSE_FILEPICKERCTRL 1
47882 _ACEOF
47883
47884   USES_CONTROLS=1
47885 fi
47886
47887 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47888   cat >>confdefs.h <<\_ACEOF
47889 #define wxUSE_FONTPICKERCTRL 1
47890 _ACEOF
47891
47892   USES_CONTROLS=1
47893 fi
47894
47895 if test "$wxUSE_DISPLAY" = "yes"; then
47896     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47897         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47898 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47899         wxUSE_DISPLAY=no
47900     else
47901         cat >>confdefs.h <<\_ACEOF
47902 #define wxUSE_DISPLAY 1
47903 _ACEOF
47904
47905         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
47906     fi
47907 fi
47908
47909 if test "$wxUSE_DETECT_SM" = "yes"; then
47910     cat >>confdefs.h <<\_ACEOF
47911 #define wxUSE_DETECT_SM 1
47912 _ACEOF
47913
47914 fi
47915
47916 if test "$wxUSE_GAUGE" = "yes"; then
47917   cat >>confdefs.h <<\_ACEOF
47918 #define wxUSE_GAUGE 1
47919 _ACEOF
47920
47921   USES_CONTROLS=1
47922 fi
47923
47924 if test "$wxUSE_GRID" = "yes"; then
47925   cat >>confdefs.h <<\_ACEOF
47926 #define wxUSE_GRID 1
47927 _ACEOF
47928
47929   USES_CONTROLS=1
47930   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47931 fi
47932
47933 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47934   cat >>confdefs.h <<\_ACEOF
47935 #define wxUSE_HYPERLINKCTRL 1
47936 _ACEOF
47937
47938   USES_CONTROLS=1
47939 fi
47940
47941 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47942   cat >>confdefs.h <<\_ACEOF
47943 #define wxUSE_BITMAPCOMBOBOX 1
47944 _ACEOF
47945
47946   USES_CONTROLS=1
47947 fi
47948
47949 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47950   cat >>confdefs.h <<\_ACEOF
47951 #define wxUSE_DATAVIEWCTRL 1
47952 _ACEOF
47953
47954   USES_CONTROLS=1
47955   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47956 fi
47957
47958 if test "$wxUSE_IMAGLIST" = "yes"; then
47959     cat >>confdefs.h <<\_ACEOF
47960 #define wxUSE_IMAGLIST 1
47961 _ACEOF
47962
47963 fi
47964
47965 if test "$wxUSE_LISTBOOK" = "yes"; then
47966     cat >>confdefs.h <<\_ACEOF
47967 #define wxUSE_LISTBOOK 1
47968 _ACEOF
47969
47970     USES_CONTROLS=1
47971 fi
47972
47973 if test "$wxUSE_LISTBOX" = "yes"; then
47974     cat >>confdefs.h <<\_ACEOF
47975 #define wxUSE_LISTBOX 1
47976 _ACEOF
47977
47978     USES_CONTROLS=1
47979 fi
47980
47981 if test "$wxUSE_LISTCTRL" = "yes"; then
47982     if test "$wxUSE_IMAGLIST" = "yes"; then
47983         cat >>confdefs.h <<\_ACEOF
47984 #define wxUSE_LISTCTRL 1
47985 _ACEOF
47986
47987         USES_CONTROLS=1
47988         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
47989     else
47990         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
47991 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
47992     fi
47993 fi
47994
47995 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
47996     cat >>confdefs.h <<\_ACEOF
47997 #define wxUSE_EDITABLELISTBOX 1
47998 _ACEOF
47999
48000     USES_CONTROLS=1
48001     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
48002 fi
48003
48004 if test "$wxUSE_NOTEBOOK" = "yes"; then
48005     cat >>confdefs.h <<\_ACEOF
48006 #define wxUSE_NOTEBOOK 1
48007 _ACEOF
48008
48009     USES_CONTROLS=1
48010     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
48011 fi
48012
48013 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
48014   cat >>confdefs.h <<\_ACEOF
48015 #define wxUSE_ODCOMBOBOX 1
48016 _ACEOF
48017
48018   USES_CONTROLS=1
48019   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
48020 fi
48021
48022 if test "$wxUSE_RADIOBOX" = "yes"; then
48023     cat >>confdefs.h <<\_ACEOF
48024 #define wxUSE_RADIOBOX 1
48025 _ACEOF
48026
48027     USES_CONTROLS=1
48028 fi
48029
48030 if test "$wxUSE_RADIOBTN" = "yes"; then
48031     cat >>confdefs.h <<\_ACEOF
48032 #define wxUSE_RADIOBTN 1
48033 _ACEOF
48034
48035     USES_CONTROLS=1
48036 fi
48037
48038 if test "$wxUSE_SASH" = "yes"; then
48039     cat >>confdefs.h <<\_ACEOF
48040 #define wxUSE_SASH 1
48041 _ACEOF
48042
48043     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
48044 fi
48045
48046 if test "$wxUSE_SCROLLBAR" = "yes"; then
48047     cat >>confdefs.h <<\_ACEOF
48048 #define wxUSE_SCROLLBAR 1
48049 _ACEOF
48050
48051     USES_CONTROLS=1
48052     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
48053 fi
48054
48055 if test "$wxUSE_SEARCHCTRL" = "yes"; then
48056     cat >>confdefs.h <<\_ACEOF
48057 #define wxUSE_SEARCHCTRL 1
48058 _ACEOF
48059
48060     USES_CONTROLS=1
48061 fi
48062
48063 if test "$wxUSE_SLIDER" = "yes"; then
48064     cat >>confdefs.h <<\_ACEOF
48065 #define wxUSE_SLIDER 1
48066 _ACEOF
48067
48068     USES_CONTROLS=1
48069 fi
48070
48071 if test "$wxUSE_SPINBTN" = "yes"; then
48072     cat >>confdefs.h <<\_ACEOF
48073 #define wxUSE_SPINBTN 1
48074 _ACEOF
48075
48076     USES_CONTROLS=1
48077 fi
48078
48079 if test "$wxUSE_SPINCTRL" = "yes"; then
48080     cat >>confdefs.h <<\_ACEOF
48081 #define wxUSE_SPINCTRL 1
48082 _ACEOF
48083
48084     USES_CONTROLS=1
48085 fi
48086
48087 if test "$wxUSE_SPLITTER" = "yes"; then
48088     cat >>confdefs.h <<\_ACEOF
48089 #define wxUSE_SPLITTER 1
48090 _ACEOF
48091
48092     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
48093 fi
48094
48095 if test "$wxUSE_STATBMP" = "yes"; then
48096     cat >>confdefs.h <<\_ACEOF
48097 #define wxUSE_STATBMP 1
48098 _ACEOF
48099
48100     USES_CONTROLS=1
48101 fi
48102
48103 if test "$wxUSE_STATBOX" = "yes"; then
48104     cat >>confdefs.h <<\_ACEOF
48105 #define wxUSE_STATBOX 1
48106 _ACEOF
48107
48108     USES_CONTROLS=1
48109 fi
48110
48111 if test "$wxUSE_STATTEXT" = "yes"; then
48112     cat >>confdefs.h <<\_ACEOF
48113 #define wxUSE_STATTEXT 1
48114 _ACEOF
48115
48116     USES_CONTROLS=1
48117 fi
48118
48119 if test "$wxUSE_STATLINE" = "yes"; then
48120     cat >>confdefs.h <<\_ACEOF
48121 #define wxUSE_STATLINE 1
48122 _ACEOF
48123
48124     USES_CONTROLS=1
48125 fi
48126
48127 if test "$wxUSE_STATUSBAR" = "yes"; then
48128         cat >>confdefs.h <<\_ACEOF
48129 #define wxUSE_NATIVE_STATUSBAR 1
48130 _ACEOF
48131
48132     cat >>confdefs.h <<\_ACEOF
48133 #define wxUSE_STATUSBAR 1
48134 _ACEOF
48135
48136     USES_CONTROLS=1
48137
48138     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
48139 fi
48140
48141 if test "$wxUSE_TAB_DIALOG" = "yes"; then
48142     cat >>confdefs.h <<\_ACEOF
48143 #define wxUSE_TAB_DIALOG 1
48144 _ACEOF
48145
48146 fi
48147
48148 if test "$wxUSE_TEXTCTRL" = "yes"; then
48149     cat >>confdefs.h <<\_ACEOF
48150 #define wxUSE_TEXTCTRL 1
48151 _ACEOF
48152
48153     USES_CONTROLS=1
48154     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
48155 fi
48156
48157 if test "$wxUSE_TOGGLEBTN" = "yes"; then
48158     if test "$wxUSE_COCOA" = 1 ; then
48159         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
48160 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
48161         wxUSE_TOGGLEBTN=no
48162     fi
48163
48164     if test "$wxUSE_TOGGLEBTN" = "yes"; then
48165         cat >>confdefs.h <<\_ACEOF
48166 #define wxUSE_TOGGLEBTN 1
48167 _ACEOF
48168
48169         USES_CONTROLS=1
48170     fi
48171 fi
48172
48173 if test "$wxUSE_TOOLBAR" = "yes"; then
48174     cat >>confdefs.h <<\_ACEOF
48175 #define wxUSE_TOOLBAR 1
48176 _ACEOF
48177
48178     USES_CONTROLS=1
48179
48180     if test "$wxUSE_UNIVERSAL" = "yes"; then
48181         wxUSE_TOOLBAR_NATIVE="no"
48182     else
48183         wxUSE_TOOLBAR_NATIVE="yes"
48184         cat >>confdefs.h <<\_ACEOF
48185 #define wxUSE_TOOLBAR_NATIVE 1
48186 _ACEOF
48187
48188     fi
48189
48190     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
48191 fi
48192
48193 if test "$wxUSE_TOOLTIPS" = "yes"; then
48194     if test "$wxUSE_MOTIF" = 1; then
48195         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
48196 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
48197     else
48198         if test "$wxUSE_UNIVERSAL" = "yes"; then
48199             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
48200 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
48201         else
48202             cat >>confdefs.h <<\_ACEOF
48203 #define wxUSE_TOOLTIPS 1
48204 _ACEOF
48205
48206         fi
48207     fi
48208 fi
48209
48210 if test "$wxUSE_TREEBOOK" = "yes"; then
48211     cat >>confdefs.h <<\_ACEOF
48212 #define wxUSE_TREEBOOK 1
48213 _ACEOF
48214
48215     USES_CONTROLS=1
48216 fi
48217
48218 if test "$wxUSE_TOOLBOOK" = "yes"; then
48219     cat >>confdefs.h <<\_ACEOF
48220 #define wxUSE_TOOLBOOK 1
48221 _ACEOF
48222
48223     USES_CONTROLS=1
48224 fi
48225
48226 if test "$wxUSE_TREECTRL" = "yes"; then
48227     if test "$wxUSE_IMAGLIST" = "yes"; then
48228         cat >>confdefs.h <<\_ACEOF
48229 #define wxUSE_TREECTRL 1
48230 _ACEOF
48231
48232         USES_CONTROLS=1
48233         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48234     else
48235         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48236 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48237     fi
48238 fi
48239
48240 if test "$wxUSE_POPUPWIN" = "yes"; then
48241     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
48242         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48243 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48244     else
48245         if test "$wxUSE_PM" = 1; then
48246             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48247 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48248         else
48249             cat >>confdefs.h <<\_ACEOF
48250 #define wxUSE_POPUPWIN 1
48251 _ACEOF
48252
48253             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
48254
48255             USES_CONTROLS=1
48256         fi
48257     fi
48258 fi
48259
48260 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
48261     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
48262         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
48263 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
48264     else
48265         cat >>confdefs.h <<\_ACEOF
48266 #define wxUSE_DIALUP_MANAGER 1
48267 _ACEOF
48268
48269         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48270     fi
48271 fi
48272
48273 if test "$wxUSE_TIPWINDOW" = "yes"; then
48274     if test "$wxUSE_PM" = 1; then
48275         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48276 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48277     else
48278         cat >>confdefs.h <<\_ACEOF
48279 #define wxUSE_TIPWINDOW 1
48280 _ACEOF
48281
48282     fi
48283 fi
48284
48285 if test "$USES_CONTROLS" = 1; then
48286     cat >>confdefs.h <<\_ACEOF
48287 #define wxUSE_CONTROLS 1
48288 _ACEOF
48289
48290 fi
48291
48292
48293 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48294     cat >>confdefs.h <<\_ACEOF
48295 #define wxUSE_ACCESSIBILITY 1
48296 _ACEOF
48297
48298     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48299 fi
48300
48301 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48302     cat >>confdefs.h <<\_ACEOF
48303 #define wxUSE_DRAGIMAGE 1
48304 _ACEOF
48305
48306     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48307 fi
48308
48309 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48310     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48311         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48312 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48313     else
48314         cat >>confdefs.h <<\_ACEOF
48315 #define wxUSE_EXCEPTIONS 1
48316 _ACEOF
48317
48318         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48319     fi
48320 fi
48321
48322 USE_HTML=0
48323 if test "$wxUSE_HTML" = "yes"; then
48324     cat >>confdefs.h <<\_ACEOF
48325 #define wxUSE_HTML 1
48326 _ACEOF
48327
48328     USE_HTML=1
48329     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48330     if test "$wxUSE_MAC" = 1; then
48331         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48332     fi
48333 fi
48334 if test "$wxUSE_WEBKIT" = "yes"; then
48335     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48336         old_CPPFLAGS="$CPPFLAGS"
48337         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48338         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48339 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48340 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48341   echo $ECHO_N "(cached) $ECHO_C" >&6
48342 else
48343   cat >conftest.$ac_ext <<_ACEOF
48344 /* confdefs.h.  */
48345 _ACEOF
48346 cat confdefs.h >>conftest.$ac_ext
48347 cat >>conftest.$ac_ext <<_ACEOF
48348 /* end confdefs.h.  */
48349
48350                            #include <Carbon/Carbon.h>
48351                            #include <WebKit/WebKit.h>
48352
48353
48354 #include <WebKit/HIWebView.h>
48355 _ACEOF
48356 rm -f conftest.$ac_objext
48357 if { (ac_try="$ac_compile"
48358 case "(($ac_try" in
48359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48360   *) ac_try_echo=$ac_try;;
48361 esac
48362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48363   (eval "$ac_compile") 2>conftest.er1
48364   ac_status=$?
48365   grep -v '^ *+' conftest.er1 >conftest.err
48366   rm -f conftest.er1
48367   cat conftest.err >&5
48368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48369   (exit $ac_status); } && {
48370          test -z "$ac_c_werror_flag" ||
48371          test ! -s conftest.err
48372        } && test -s conftest.$ac_objext; then
48373   ac_cv_header_WebKit_HIWebView_h=yes
48374 else
48375   echo "$as_me: failed program was:" >&5
48376 sed 's/^/| /' conftest.$ac_ext >&5
48377
48378         ac_cv_header_WebKit_HIWebView_h=no
48379 fi
48380
48381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48382 fi
48383 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48384 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48385 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48386
48387                            cat >>confdefs.h <<\_ACEOF
48388 #define wxUSE_WEBKIT 1
48389 _ACEOF
48390
48391                            WEBKIT_LINK="-framework WebKit"
48392
48393 else
48394
48395                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48396 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48397                            wxUSE_WEBKIT=no
48398
48399 fi
48400
48401
48402         CPPFLAGS="$old_CPPFLAGS"
48403     elif test "$wxUSE_COCOA" = 1; then
48404         cat >>confdefs.h <<\_ACEOF
48405 #define wxUSE_WEBKIT 1
48406 _ACEOF
48407
48408     else
48409         wxUSE_WEBKIT=no
48410     fi
48411 fi
48412
48413 USE_XRC=0
48414 if test "$wxUSE_XRC" = "yes"; then
48415     if test "$wxUSE_XML" != "yes"; then
48416         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48417 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48418         wxUSE_XRC=no
48419     else
48420         cat >>confdefs.h <<\_ACEOF
48421 #define wxUSE_XRC 1
48422 _ACEOF
48423
48424         USE_XRC=1
48425         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48426     fi
48427 fi
48428
48429 USE_AUI=0
48430 if test "$wxUSE_AUI" = "yes"; then
48431    cat >>confdefs.h <<\_ACEOF
48432 #define wxUSE_AUI 1
48433 _ACEOF
48434
48435    USE_AUI=1
48436    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48437 fi
48438
48439 USE_STC=0
48440 if test "$wxUSE_STC" = "yes"; then
48441    cat >>confdefs.h <<\_ACEOF
48442 #define wxUSE_STC 1
48443 _ACEOF
48444
48445    USE_STC=1
48446    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48447 fi
48448
48449 if test "$wxUSE_MENUS" = "yes"; then
48450     cat >>confdefs.h <<\_ACEOF
48451 #define wxUSE_MENUS 1
48452 _ACEOF
48453
48454     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48455 fi
48456
48457 if test "$wxUSE_METAFILE" = "yes"; then
48458     cat >>confdefs.h <<\_ACEOF
48459 #define wxUSE_METAFILE 1
48460 _ACEOF
48461
48462 fi
48463
48464 if test "$wxUSE_MIMETYPE" = "yes"; then
48465     cat >>confdefs.h <<\_ACEOF
48466 #define wxUSE_MIMETYPE 1
48467 _ACEOF
48468
48469 fi
48470
48471 if test "$wxUSE_MINIFRAME" = "yes"; then
48472     cat >>confdefs.h <<\_ACEOF
48473 #define wxUSE_MINIFRAME 1
48474 _ACEOF
48475
48476 fi
48477
48478 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48479     cat >>confdefs.h <<\_ACEOF
48480 #define wxUSE_SYSTEM_OPTIONS 1
48481 _ACEOF
48482
48483 fi
48484
48485 if test "$wxUSE_TASKBARICON" = "yes"; then
48486     cat >>confdefs.h <<\_ACEOF
48487 #define wxUSE_TASKBARICON 1
48488 _ACEOF
48489
48490     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48491 fi
48492
48493
48494 if test "$wxUSE_VALIDATORS" = "yes"; then
48495     cat >>confdefs.h <<\_ACEOF
48496 #define wxUSE_VALIDATORS 1
48497 _ACEOF
48498
48499     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48500 fi
48501
48502 if test "$wxUSE_PALETTE" = "yes" ; then
48503     if test "$wxUSE_DFB" = 1; then
48504         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48505 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48506         wxUSE_PALETTE=no
48507     else
48508         cat >>confdefs.h <<\_ACEOF
48509 #define wxUSE_PALETTE 1
48510 _ACEOF
48511
48512     fi
48513 fi
48514
48515 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48516     LIBS=" -lunicows $LIBS"
48517 fi
48518
48519 USE_RICHTEXT=0
48520 if test "$wxUSE_RICHTEXT" = "yes"; then
48521     cat >>confdefs.h <<\_ACEOF
48522 #define wxUSE_RICHTEXT 1
48523 _ACEOF
48524
48525     USE_RICHTEXT=1
48526     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48527 fi
48528
48529
48530 if test "$wxUSE_IMAGE" = "yes" ; then
48531     cat >>confdefs.h <<\_ACEOF
48532 #define wxUSE_IMAGE 1
48533 _ACEOF
48534
48535
48536     if test "$wxUSE_GIF" = "yes" ; then
48537       cat >>confdefs.h <<\_ACEOF
48538 #define wxUSE_GIF 1
48539 _ACEOF
48540
48541     fi
48542
48543     if test "$wxUSE_PCX" = "yes" ; then
48544       cat >>confdefs.h <<\_ACEOF
48545 #define wxUSE_PCX 1
48546 _ACEOF
48547
48548     fi
48549
48550     if test "$wxUSE_TGA" = "yes" ; then
48551       cat >>confdefs.h <<\_ACEOF
48552 #define wxUSE_TGA 1
48553 _ACEOF
48554
48555     fi
48556
48557     if test "$wxUSE_IFF" = "yes" ; then
48558       cat >>confdefs.h <<\_ACEOF
48559 #define wxUSE_IFF 1
48560 _ACEOF
48561
48562     fi
48563
48564     if test "$wxUSE_PNM" = "yes" ; then
48565       cat >>confdefs.h <<\_ACEOF
48566 #define wxUSE_PNM 1
48567 _ACEOF
48568
48569     fi
48570
48571     if test "$wxUSE_XPM" = "yes" ; then
48572       cat >>confdefs.h <<\_ACEOF
48573 #define wxUSE_XPM 1
48574 _ACEOF
48575
48576     fi
48577
48578     if test "$wxUSE_ICO_CUR" = "yes" ; then
48579       cat >>confdefs.h <<\_ACEOF
48580 #define wxUSE_ICO_CUR 1
48581 _ACEOF
48582
48583     fi
48584 fi
48585
48586
48587 if test "$wxUSE_ABOUTDLG" = "yes"; then
48588     cat >>confdefs.h <<\_ACEOF
48589 #define wxUSE_ABOUTDLG 1
48590 _ACEOF
48591
48592 fi
48593
48594 if test "$wxUSE_CHOICEDLG" = "yes"; then
48595     cat >>confdefs.h <<\_ACEOF
48596 #define wxUSE_CHOICEDLG 1
48597 _ACEOF
48598
48599 fi
48600
48601 if test "$wxUSE_COLOURDLG" = "yes"; then
48602     cat >>confdefs.h <<\_ACEOF
48603 #define wxUSE_COLOURDLG 1
48604 _ACEOF
48605
48606 fi
48607
48608 if test "$wxUSE_FILEDLG" = "yes"; then
48609     cat >>confdefs.h <<\_ACEOF
48610 #define wxUSE_FILEDLG 1
48611 _ACEOF
48612
48613 fi
48614
48615 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48616     cat >>confdefs.h <<\_ACEOF
48617 #define wxUSE_FINDREPLDLG 1
48618 _ACEOF
48619
48620 fi
48621
48622 if test "$wxUSE_FONTDLG" = "yes"; then
48623     cat >>confdefs.h <<\_ACEOF
48624 #define wxUSE_FONTDLG 1
48625 _ACEOF
48626
48627 fi
48628
48629 if test "$wxUSE_DIRDLG" = "yes"; then
48630     if test "$wxUSE_TREECTRL" != "yes"; then
48631         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48632 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48633     else
48634         cat >>confdefs.h <<\_ACEOF
48635 #define wxUSE_DIRDLG 1
48636 _ACEOF
48637
48638     fi
48639 fi
48640
48641 if test "$wxUSE_MSGDLG" = "yes"; then
48642     cat >>confdefs.h <<\_ACEOF
48643 #define wxUSE_MSGDLG 1
48644 _ACEOF
48645
48646 fi
48647
48648 if test "$wxUSE_NUMBERDLG" = "yes"; then
48649     cat >>confdefs.h <<\_ACEOF
48650 #define wxUSE_NUMBERDLG 1
48651 _ACEOF
48652
48653 fi
48654
48655 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48656     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48657        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
48658 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
48659     else
48660         cat >>confdefs.h <<\_ACEOF
48661 #define wxUSE_PROGRESSDLG 1
48662 _ACEOF
48663
48664     fi
48665 fi
48666
48667 if test "$wxUSE_SPLASH" = "yes"; then
48668     cat >>confdefs.h <<\_ACEOF
48669 #define wxUSE_SPLASH 1
48670 _ACEOF
48671
48672     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48673 fi
48674
48675 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48676     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48677        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
48678 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
48679     else
48680         cat >>confdefs.h <<\_ACEOF
48681 #define wxUSE_STARTUP_TIPS 1
48682 _ACEOF
48683
48684     fi
48685 fi
48686
48687 if test "$wxUSE_TEXTDLG" = "yes"; then
48688     cat >>confdefs.h <<\_ACEOF
48689 #define wxUSE_TEXTDLG 1
48690 _ACEOF
48691
48692 fi
48693
48694 if test "$wxUSE_WIZARDDLG" = "yes"; then
48695     cat >>confdefs.h <<\_ACEOF
48696 #define wxUSE_WIZARDDLG 1
48697 _ACEOF
48698
48699     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48700 fi
48701
48702
48703 if test "$wxUSE_MSW" = 1 ; then
48704
48705     if test "$wxUSE_DC_CACHEING" = "yes"; then
48706         cat >>confdefs.h <<\_ACEOF
48707 #define wxUSE_DC_CACHEING 1
48708 _ACEOF
48709
48710     fi
48711
48712     if test "$wxUSE_DIB" = "yes"; then
48713         cat >>confdefs.h <<\_ACEOF
48714 #define wxUSE_WXDIB 1
48715 _ACEOF
48716
48717     fi
48718
48719     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
48720         cat >>confdefs.h <<\_ACEOF
48721 #define wxUSE_OWNER_DRAWN 1
48722 _ACEOF
48723
48724     fi
48725
48726     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
48727         cat >>confdefs.h <<\_ACEOF
48728 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
48729 _ACEOF
48730
48731     fi
48732
48733     if test "$wxUSE_UXTHEME" = "yes"; then
48734         cat >>confdefs.h <<\_ACEOF
48735 #define wxUSE_UXTHEME 1
48736 _ACEOF
48737
48738     fi
48739
48740 fi
48741
48742
48743 if test "$USE_WIN32" = 1 ; then
48744     if test "$wxUSE_INICONF" = "yes"; then
48745         cat >>confdefs.h <<\_ACEOF
48746 #define wxUSE_INICONF 1
48747 _ACEOF
48748
48749     fi
48750
48751     if test "$wxUSE_REGKEY" = "yes"; then
48752         cat >>confdefs.h <<\_ACEOF
48753 #define wxUSE_REGKEY 1
48754 _ACEOF
48755
48756     fi
48757 fi
48758
48759
48760 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48761    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
48762       cat >>confdefs.h <<\_ACEOF
48763 #define wxUSE_GRAPHICS_CONTEXT 1
48764 _ACEOF
48765
48766    elif test "$wxUSE_GTK" != 1; then
48767             cat >>confdefs.h <<\_ACEOF
48768 #define wxUSE_GRAPHICS_CONTEXT 1
48769 _ACEOF
48770
48771    else
48772
48773 pkg_failed=no
48774 { echo "$as_me:$LINENO: checking for CAIRO" >&5
48775 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
48776
48777 if test -n "$PKG_CONFIG"; then
48778     if test -n "$CAIRO_CFLAGS"; then
48779         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
48780     else
48781         if test -n "$PKG_CONFIG" && \
48782     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48783   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48784   ac_status=$?
48785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48786   (exit $ac_status); }; then
48787   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
48788 else
48789   pkg_failed=yes
48790 fi
48791     fi
48792 else
48793         pkg_failed=untried
48794 fi
48795 if test -n "$PKG_CONFIG"; then
48796     if test -n "$CAIRO_LIBS"; then
48797         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
48798     else
48799         if test -n "$PKG_CONFIG" && \
48800     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48801   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48802   ac_status=$?
48803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48804   (exit $ac_status); }; then
48805   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
48806 else
48807   pkg_failed=yes
48808 fi
48809     fi
48810 else
48811         pkg_failed=untried
48812 fi
48813
48814
48815
48816 if test $pkg_failed = yes; then
48817
48818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48819         _pkg_short_errors_supported=yes
48820 else
48821         _pkg_short_errors_supported=no
48822 fi
48823         if test $_pkg_short_errors_supported = yes; then
48824                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
48825         else
48826                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
48827         fi
48828         # Put the nasty error message in config.log where it belongs
48829         echo "$CAIRO_PKG_ERRORS" >&5
48830
48831         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
48832 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
48833
48834 elif test $pkg_failed = untried; then
48835         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
48836 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
48837
48838 else
48839         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
48840         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
48841         { echo "$as_me:$LINENO: result: yes" >&5
48842 echo "${ECHO_T}yes" >&6; }
48843         cat >>confdefs.h <<\_ACEOF
48844 #define wxUSE_GRAPHICS_CONTEXT 1
48845 _ACEOF
48846
48847 fi
48848    fi
48849 fi
48850
48851
48852 USE_MEDIA=0
48853
48854 if test "$wxUSE_MEDIACTRL" = "yes"; then
48855     USE_MEDIA=1
48856
48857                 if test "$wxUSE_GTK" = 1; then
48858         wxUSE_GSTREAMER="no"
48859
48860                                                                 GST_VERSION_MAJOR=0
48861         GST_VERSION_MINOR=10
48862         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48863
48864         if test "$wxUSE_GSTREAMER8" = "no"; then
48865
48866 pkg_failed=no
48867 { echo "$as_me:$LINENO: checking for GST" >&5
48868 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48869
48870 if test -n "$PKG_CONFIG"; then
48871     if test -n "$GST_CFLAGS"; then
48872         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48873     else
48874         if test -n "$PKG_CONFIG" && \
48875     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48876   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48877   ac_status=$?
48878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48879   (exit $ac_status); }; then
48880   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48881 else
48882   pkg_failed=yes
48883 fi
48884     fi
48885 else
48886         pkg_failed=untried
48887 fi
48888 if test -n "$PKG_CONFIG"; then
48889     if test -n "$GST_LIBS"; then
48890         pkg_cv_GST_LIBS="$GST_LIBS"
48891     else
48892         if test -n "$PKG_CONFIG" && \
48893     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48894   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48895   ac_status=$?
48896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48897   (exit $ac_status); }; then
48898   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48899 else
48900   pkg_failed=yes
48901 fi
48902     fi
48903 else
48904         pkg_failed=untried
48905 fi
48906
48907
48908
48909 if test $pkg_failed = yes; then
48910
48911 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48912         _pkg_short_errors_supported=yes
48913 else
48914         _pkg_short_errors_supported=no
48915 fi
48916         if test $_pkg_short_errors_supported = yes; then
48917                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48918         else
48919                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48920         fi
48921         # Put the nasty error message in config.log where it belongs
48922         echo "$GST_PKG_ERRORS" >&5
48923
48924
48925                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48926 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48927                     GST_VERSION_MINOR=8
48928
48929
48930 elif test $pkg_failed = untried; then
48931
48932                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48933 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48934                     GST_VERSION_MINOR=8
48935
48936
48937 else
48938         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48939         GST_LIBS=$pkg_cv_GST_LIBS
48940         { echo "$as_me:$LINENO: result: yes" >&5
48941 echo "${ECHO_T}yes" >&6; }
48942
48943                     wxUSE_GSTREAMER="yes"
48944                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
48945
48946 fi
48947         else
48948                         GST_VERSION_MINOR=8
48949         fi
48950
48951         if test $GST_VERSION_MINOR = "8"; then
48952             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48953
48954 pkg_failed=no
48955 { echo "$as_me:$LINENO: checking for GST" >&5
48956 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48957
48958 if test -n "$PKG_CONFIG"; then
48959     if test -n "$GST_CFLAGS"; then
48960         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48961     else
48962         if test -n "$PKG_CONFIG" && \
48963     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48964   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48965   ac_status=$?
48966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48967   (exit $ac_status); }; then
48968   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48969 else
48970   pkg_failed=yes
48971 fi
48972     fi
48973 else
48974         pkg_failed=untried
48975 fi
48976 if test -n "$PKG_CONFIG"; then
48977     if test -n "$GST_LIBS"; then
48978         pkg_cv_GST_LIBS="$GST_LIBS"
48979     else
48980         if test -n "$PKG_CONFIG" && \
48981     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48982   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48983   ac_status=$?
48984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48985   (exit $ac_status); }; then
48986   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48987 else
48988   pkg_failed=yes
48989 fi
48990     fi
48991 else
48992         pkg_failed=untried
48993 fi
48994
48995
48996
48997 if test $pkg_failed = yes; then
48998
48999 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49000         _pkg_short_errors_supported=yes
49001 else
49002         _pkg_short_errors_supported=no
49003 fi
49004         if test $_pkg_short_errors_supported = yes; then
49005                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49006         else
49007                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49008         fi
49009         # Put the nasty error message in config.log where it belongs
49010         echo "$GST_PKG_ERRORS" >&5
49011
49012
49013                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49014 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49015
49016 elif test $pkg_failed = untried; then
49017
49018                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49019 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49020
49021 else
49022         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49023         GST_LIBS=$pkg_cv_GST_LIBS
49024         { echo "$as_me:$LINENO: result: yes" >&5
49025 echo "${ECHO_T}yes" >&6; }
49026         wxUSE_GSTREAMER="yes"
49027 fi
49028         fi
49029
49030
49031         if test "$wxUSE_GSTREAMER" = "yes"; then
49032             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
49033             LIBS="$GST_LIBS $LIBS"
49034
49035             cat >>confdefs.h <<\_ACEOF
49036 #define wxUSE_GSTREAMER 1
49037 _ACEOF
49038
49039         else
49040             USE_MEDIA=0
49041         fi
49042     fi
49043
49044     if test $USE_MEDIA = 1; then
49045         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
49046         cat >>confdefs.h <<\_ACEOF
49047 #define wxUSE_MEDIACTRL 1
49048 _ACEOF
49049
49050     fi
49051 fi
49052
49053
49054 if test "$cross_compiling" = "yes"; then
49055         OSINFO="\"$host\""
49056 else
49057         OSINFO=`uname -s -r -m`
49058     OSINFO="\"$OSINFO\""
49059 fi
49060
49061 cat >>confdefs.h <<_ACEOF
49062 #define WXWIN_OS_DESCRIPTION $OSINFO
49063 _ACEOF
49064
49065
49066
49067 if test "x$prefix" != "xNONE"; then
49068     wxPREFIX=$prefix
49069 else
49070     wxPREFIX=$ac_default_prefix
49071 fi
49072
49073 cat >>confdefs.h <<_ACEOF
49074 #define wxINSTALL_PREFIX "$wxPREFIX"
49075 _ACEOF
49076
49077
49078
49079
49080 STD_BASE_LIBS="base"
49081 STD_GUI_LIBS=""
49082 BUILT_WX_LIBS="base"
49083 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
49084
49085 if test "$wxUSE_SOCKETS" = "yes" ; then
49086     STD_BASE_LIBS="net $STD_BASE_LIBS"
49087     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49088 fi
49089 if test "$wxUSE_XML" = "yes" ; then
49090     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49091     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49092 fi
49093
49094 if test "$wxUSE_GUI" = "yes"; then
49095     STD_GUI_LIBS="adv core"
49096     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49097
49098     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49099         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49100         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49101     fi
49102     if test "$wxUSE_HTML" = "yes" ; then
49103         STD_GUI_LIBS="html $STD_GUI_LIBS"
49104         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49105     fi
49106     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49107         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49108     fi
49109     if test "$wxUSE_OPENGL" = "yes" ; then
49110         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49111     fi
49112     if test "$wxUSE_AUI" = "yes" ; then
49113         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49114     fi
49115     if test "$wxUSE_STC" = "yes" ; then
49116         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49117     fi
49118     if test "$wxUSE_XRC" = "yes" ; then
49119         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49120         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49121     fi
49122 fi
49123
49124
49125
49126
49127
49128
49129
49130
49131 if test "$wxUSE_MAC" = 1 ; then
49132     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
49133         if test "$USE_DARWIN" = 1; then
49134             LDFLAGS="$LDFLAGS -framework QuickTime"
49135         else
49136             LDFLAGS="$LDFLAGS -lQuickTimeLib"
49137         fi
49138     fi
49139     if test "$USE_DARWIN" = 1; then
49140         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
49141     else
49142         LDFLAGS="$LDFLAGS -lCarbonLib"
49143     fi
49144 fi
49145 if test "$wxUSE_COCOA" = 1 ; then
49146     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
49147     if test "$wxUSE_MEDIACTRL" = "yes"; then
49148         LDFLAGS="$LDFLAGS -framework QuickTime"
49149     fi
49150 fi
49151 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
49152     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49153 fi
49154
49155 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49156
49157 if test "$wxUSE_GUI" = "yes"; then
49158
49159
49160         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49161                      erase event exec font image minimal mobile \
49162                      mobile/wxedit mobile/styles render \
49163                      shaped svg taborder vscroll widgets"
49164
49165     if test "$wxUSE_MONOLITHIC" != "yes"; then
49166         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49167     fi
49168     if test "$TOOLKIT" = "MSW"; then
49169         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49170         if test "$wxUSE_UNIVERSAL" != "yes"; then
49171             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
49172         fi
49173     fi
49174     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49175         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49176     fi
49177 else
49178     SAMPLES_SUBDIRS="console"
49179 fi
49180
49181
49182 if test "x$INTELCC" = "xyes" ; then
49183                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
49184 elif test "$GCC" = yes ; then
49185     CWARNINGS="-Wall -Wundef"
49186 fi
49187
49188 if test "x$INTELCXX" = "xyes" ; then
49189                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
49190 elif test "$GXX" = yes ; then
49191         CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
49192 fi
49193
49194
49195 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49196 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49197
49198
49199 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49200  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49201  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49202  $CPPFLAGS `
49203
49204 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49205 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49206 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49207
49208 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49209
49210
49211 if test "x$MWCC" = "xyes"; then
49212
49213             CC="$CC -cwd source -I-"
49214     CXX="$CXX -cwd source -I-"
49215 fi
49216
49217
49218 LIBS=`echo $LIBS`
49219 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49220 EXTRALIBS_XML="$EXPAT_LINK"
49221 EXTRALIBS_HTML="$MSPACK_LINK"
49222 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49223 if test "$wxUSE_GUI" = "yes"; then
49224     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49225 fi
49226 if test "$wxUSE_OPENGL" = "yes"; then
49227     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49228 fi
49229
49230 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49231
49232 WXCONFIG_LIBS="$LIBS"
49233
49234 if test "$wxUSE_REGEX" = "builtin" ; then
49235     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49236 fi
49237 if test "$wxUSE_EXPAT" = "builtin" ; then
49238     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49239 fi
49240 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49241     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49242 fi
49243 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49244     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49245 fi
49246 if test "$wxUSE_LIBPNG" = "builtin" ; then
49247     wxconfig_3rdparty="png $wxconfig_3rdparty"
49248 fi
49249 if test "$wxUSE_ZLIB" = "builtin" ; then
49250     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49251 fi
49252
49253 for i in $wxconfig_3rdparty ; do
49254     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49255 done
49256
49257
49258 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49259     WXUNIV=1
49260
49261     case "$wxUNIV_THEMES" in
49262         ''|all)
49263             cat >>confdefs.h <<\_ACEOF
49264 #define wxUSE_ALL_THEMES 1
49265 _ACEOF
49266
49267             ;;
49268
49269         *)
49270             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
49271                 cat >>confdefs.h <<_ACEOF
49272 #define wxUSE_THEME_$t 1
49273 _ACEOF
49274
49275             done
49276     esac
49277 else
49278     WXUNIV=0
49279 fi
49280
49281
49282
49283
49284
49285
49286
49287
49288 if test $wxUSE_MONOLITHIC = "yes" ; then
49289     MONOLITHIC=1
49290 else
49291     MONOLITHIC=0
49292 fi
49293
49294 if test $wxUSE_PLUGINS = "yes" ; then
49295     USE_PLUGINS=1
49296 else
49297     USE_PLUGINS=0
49298 fi
49299
49300 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49301     USE_QA=1
49302 else
49303     USE_QA=0
49304 fi
49305
49306 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49307     OFFICIAL_BUILD=1
49308 else
49309     OFFICIAL_BUILD=0
49310 fi
49311
49312
49313
49314
49315
49316
49317
49318
49319
49320
49321
49322
49323
49324
49325
49326
49327
49328
49329
49330
49331
49332
49333
49334
49335
49336
49337 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr A-Z a-z`
49338
49339
49340
49341
49342
49343
49344
49345
49346 case "$TOOLKIT" in
49347     GTK)
49348         TOOLKIT_DESC="GTK+"
49349         if test "$WXGTK20" = 1; then
49350             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49351             if test "$wxUSE_GTKPRINT" = "yes" ; then
49352                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
49353             fi
49354             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49355                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49356             fi
49357             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49358                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49359             fi
49360             if test "$wxUSE_LIBHILDON" = "yes"; then
49361                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49362             fi
49363
49364             if test "$TOOLKIT_EXTRA" != ""; then
49365                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49366             fi
49367         fi
49368         ;;
49369
49370     ?*)
49371         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49372         ;;
49373
49374     *)
49375         TOOLKIT_DESC="base only"
49376         ;;
49377 esac
49378
49379 if test "$wxUSE_WINE" = "yes"; then
49380     BAKEFILE_FORCE_PLATFORM=win32
49381 fi
49382
49383 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49384 then
49385     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49386 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49387 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49388   echo $ECHO_N "(cached) $ECHO_C" >&6
49389 else
49390
49391             echo '#include <stdio.h>
49392                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49393
49394             echo '#include "conftest.h"
49395                   int main()
49396                   {
49397                      printf("%ls", test_var);
49398                      return 0;
49399                   }' > conftest.cpp
49400
49401             wx_cv_gcc_pch_bug="pch not supported"
49402
49403             if $CXX conftest.h >/dev/null 2>&1
49404             then
49405                 wx_cv_gcc_pch_bug=
49406
49407                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49408                 then
49409                     if tr -dc a-z < conftest$PROGRAM_EXT |
49410                         grep awidetest >/dev/null
49411                     then
49412                         wx_cv_gcc_pch_bug=no
49413                     else
49414                         wx_cv_gcc_pch_bug=yes
49415                     fi
49416                 fi
49417             fi
49418
49419             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49420
49421 fi
49422 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49423 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49424
49425     if test "$wx_cv_gcc_pch_bug" = yes; then
49426                         bk_use_pch=no
49427     fi
49428 fi
49429
49430
49431
49432
49433     if test "x$BAKEFILE_HOST" = "x"; then
49434                if test "x${host}" = "x" ; then
49435                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49436 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49437    { (exit 1); exit 1; }; }
49438                fi
49439
49440         BAKEFILE_HOST="${host}"
49441     fi
49442
49443     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49444
49445     if test -n "$ac_tool_prefix"; then
49446   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49447 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49450 if test "${ac_cv_prog_RANLIB+set}" = set; then
49451   echo $ECHO_N "(cached) $ECHO_C" >&6
49452 else
49453   if test -n "$RANLIB"; then
49454   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49455 else
49456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49457 for as_dir in $PATH
49458 do
49459   IFS=$as_save_IFS
49460   test -z "$as_dir" && as_dir=.
49461   for ac_exec_ext in '' $ac_executable_extensions; do
49462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49463     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49465     break 2
49466   fi
49467 done
49468 done
49469 IFS=$as_save_IFS
49470
49471 fi
49472 fi
49473 RANLIB=$ac_cv_prog_RANLIB
49474 if test -n "$RANLIB"; then
49475   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49476 echo "${ECHO_T}$RANLIB" >&6; }
49477 else
49478   { echo "$as_me:$LINENO: result: no" >&5
49479 echo "${ECHO_T}no" >&6; }
49480 fi
49481
49482
49483 fi
49484 if test -z "$ac_cv_prog_RANLIB"; then
49485   ac_ct_RANLIB=$RANLIB
49486   # Extract the first word of "ranlib", so it can be a program name with args.
49487 set dummy ranlib; ac_word=$2
49488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49490 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49491   echo $ECHO_N "(cached) $ECHO_C" >&6
49492 else
49493   if test -n "$ac_ct_RANLIB"; then
49494   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49495 else
49496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49497 for as_dir in $PATH
49498 do
49499   IFS=$as_save_IFS
49500   test -z "$as_dir" && as_dir=.
49501   for ac_exec_ext in '' $ac_executable_extensions; do
49502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49503     ac_cv_prog_ac_ct_RANLIB="ranlib"
49504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49505     break 2
49506   fi
49507 done
49508 done
49509 IFS=$as_save_IFS
49510
49511 fi
49512 fi
49513 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49514 if test -n "$ac_ct_RANLIB"; then
49515   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49516 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
49517 else
49518   { echo "$as_me:$LINENO: result: no" >&5
49519 echo "${ECHO_T}no" >&6; }
49520 fi
49521
49522   if test "x$ac_ct_RANLIB" = x; then
49523     RANLIB=":"
49524   else
49525     case $cross_compiling:$ac_tool_warned in
49526 yes:)
49527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49528 whose name does not start with the host triplet.  If you think this
49529 configuration is useful to you, please write to autoconf@gnu.org." >&5
49530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49531 whose name does not start with the host triplet.  If you think this
49532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49533 ac_tool_warned=yes ;;
49534 esac
49535     RANLIB=$ac_ct_RANLIB
49536   fi
49537 else
49538   RANLIB="$ac_cv_prog_RANLIB"
49539 fi
49540
49541     # Find a good install program.  We prefer a C program (faster),
49542 # so one script is as good as another.  But avoid the broken or
49543 # incompatible versions:
49544 # SysV /etc/install, /usr/sbin/install
49545 # SunOS /usr/etc/install
49546 # IRIX /sbin/install
49547 # AIX /bin/install
49548 # AmigaOS /C/install, which installs bootblocks on floppy discs
49549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
49551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
49552 # OS/2's system install, which has a completely different semantic
49553 # ./install, which can be erroneously created by make from ./install.sh.
49554 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
49555 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
49556 if test -z "$INSTALL"; then
49557 if test "${ac_cv_path_install+set}" = set; then
49558   echo $ECHO_N "(cached) $ECHO_C" >&6
49559 else
49560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49561 for as_dir in $PATH
49562 do
49563   IFS=$as_save_IFS
49564   test -z "$as_dir" && as_dir=.
49565   # Account for people who put trailing slashes in PATH elements.
49566 case $as_dir/ in
49567   ./ | .// | /cC/* | \
49568   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
49569   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
49570   /usr/ucb/* ) ;;
49571   *)
49572     # OSF1 and SCO ODT 3.0 have their own names for install.
49573     # Don't use installbsd from OSF since it installs stuff as root
49574     # by default.
49575     for ac_prog in ginstall scoinst install; do
49576       for ac_exec_ext in '' $ac_executable_extensions; do
49577         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
49578           if test $ac_prog = install &&
49579             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49580             # AIX install.  It has an incompatible calling convention.
49581             :
49582           elif test $ac_prog = install &&
49583             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49584             # program-specific install script used by HP pwplus--don't use.
49585             :
49586           else
49587             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
49588             break 3
49589           fi
49590         fi
49591       done
49592     done
49593     ;;
49594 esac
49595 done
49596 IFS=$as_save_IFS
49597
49598
49599 fi
49600   if test "${ac_cv_path_install+set}" = set; then
49601     INSTALL=$ac_cv_path_install
49602   else
49603     # As a last resort, use the slow shell script.  Don't cache a
49604     # value for INSTALL within a source directory, because that will
49605     # break other packages using the cache if that directory is
49606     # removed, or if the value is a relative name.
49607     INSTALL=$ac_install_sh
49608   fi
49609 fi
49610 { echo "$as_me:$LINENO: result: $INSTALL" >&5
49611 echo "${ECHO_T}$INSTALL" >&6; }
49612
49613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
49614 # It thinks the first close brace ends the variable substitution.
49615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
49616
49617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
49618
49619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
49620
49621     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
49622 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
49623 LN_S=$as_ln_s
49624 if test "$LN_S" = "ln -s"; then
49625   { echo "$as_me:$LINENO: result: yes" >&5
49626 echo "${ECHO_T}yes" >&6; }
49627 else
49628   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
49629 echo "${ECHO_T}no, using $LN_S" >&6; }
49630 fi
49631
49632
49633     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49634 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49635 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49636 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49637   echo $ECHO_N "(cached) $ECHO_C" >&6
49638 else
49639   cat >conftest.make <<\_ACEOF
49640 SHELL = /bin/sh
49641 all:
49642         @echo '@@@%%%=$(MAKE)=@@@%%%'
49643 _ACEOF
49644 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49645 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49646   *@@@%%%=?*=@@@%%%*)
49647     eval ac_cv_prog_make_${ac_make}_set=yes;;
49648   *)
49649     eval ac_cv_prog_make_${ac_make}_set=no;;
49650 esac
49651 rm -f conftest.make
49652 fi
49653 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49654   { echo "$as_me:$LINENO: result: yes" >&5
49655 echo "${ECHO_T}yes" >&6; }
49656   SET_MAKE=
49657 else
49658   { echo "$as_me:$LINENO: result: no" >&5
49659 echo "${ECHO_T}no" >&6; }
49660   SET_MAKE="MAKE=${MAKE-make}"
49661 fi
49662
49663
49664
49665     if test "x$SUNCXX" = "xyes"; then
49666                                 AR=$CXX
49667         AROPTIONS="-xar -o"
49668
49669     elif test "x$SGICC" = "xyes"; then
49670                 AR=$CXX
49671         AROPTIONS="-ar -o"
49672
49673     else
49674         if test -n "$ac_tool_prefix"; then
49675   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
49676 set dummy ${ac_tool_prefix}ar; ac_word=$2
49677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49679 if test "${ac_cv_prog_AR+set}" = set; then
49680   echo $ECHO_N "(cached) $ECHO_C" >&6
49681 else
49682   if test -n "$AR"; then
49683   ac_cv_prog_AR="$AR" # Let the user override the test.
49684 else
49685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49686 for as_dir in $PATH
49687 do
49688   IFS=$as_save_IFS
49689   test -z "$as_dir" && as_dir=.
49690   for ac_exec_ext in '' $ac_executable_extensions; do
49691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49692     ac_cv_prog_AR="${ac_tool_prefix}ar"
49693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49694     break 2
49695   fi
49696 done
49697 done
49698 IFS=$as_save_IFS
49699
49700 fi
49701 fi
49702 AR=$ac_cv_prog_AR
49703 if test -n "$AR"; then
49704   { echo "$as_me:$LINENO: result: $AR" >&5
49705 echo "${ECHO_T}$AR" >&6; }
49706 else
49707   { echo "$as_me:$LINENO: result: no" >&5
49708 echo "${ECHO_T}no" >&6; }
49709 fi
49710
49711
49712 fi
49713 if test -z "$ac_cv_prog_AR"; then
49714   ac_ct_AR=$AR
49715   # Extract the first word of "ar", so it can be a program name with args.
49716 set dummy ar; ac_word=$2
49717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49719 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
49720   echo $ECHO_N "(cached) $ECHO_C" >&6
49721 else
49722   if test -n "$ac_ct_AR"; then
49723   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
49724 else
49725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49726 for as_dir in $PATH
49727 do
49728   IFS=$as_save_IFS
49729   test -z "$as_dir" && as_dir=.
49730   for ac_exec_ext in '' $ac_executable_extensions; do
49731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49732     ac_cv_prog_ac_ct_AR="ar"
49733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49734     break 2
49735   fi
49736 done
49737 done
49738 IFS=$as_save_IFS
49739
49740 fi
49741 fi
49742 ac_ct_AR=$ac_cv_prog_ac_ct_AR
49743 if test -n "$ac_ct_AR"; then
49744   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
49745 echo "${ECHO_T}$ac_ct_AR" >&6; }
49746 else
49747   { echo "$as_me:$LINENO: result: no" >&5
49748 echo "${ECHO_T}no" >&6; }
49749 fi
49750
49751   if test "x$ac_ct_AR" = x; then
49752     AR="ar"
49753   else
49754     case $cross_compiling:$ac_tool_warned in
49755 yes:)
49756 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49757 whose name does not start with the host triplet.  If you think this
49758 configuration is useful to you, please write to autoconf@gnu.org." >&5
49759 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49760 whose name does not start with the host triplet.  If you think this
49761 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49762 ac_tool_warned=yes ;;
49763 esac
49764     AR=$ac_ct_AR
49765   fi
49766 else
49767   AR="$ac_cv_prog_AR"
49768 fi
49769
49770         AROPTIONS=rcu
49771     fi
49772
49773
49774     if test -n "$ac_tool_prefix"; then
49775   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
49776 set dummy ${ac_tool_prefix}strip; ac_word=$2
49777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49779 if test "${ac_cv_prog_STRIP+set}" = set; then
49780   echo $ECHO_N "(cached) $ECHO_C" >&6
49781 else
49782   if test -n "$STRIP"; then
49783   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
49784 else
49785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49786 for as_dir in $PATH
49787 do
49788   IFS=$as_save_IFS
49789   test -z "$as_dir" && as_dir=.
49790   for ac_exec_ext in '' $ac_executable_extensions; do
49791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49792     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
49793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49794     break 2
49795   fi
49796 done
49797 done
49798 IFS=$as_save_IFS
49799
49800 fi
49801 fi
49802 STRIP=$ac_cv_prog_STRIP
49803 if test -n "$STRIP"; then
49804   { echo "$as_me:$LINENO: result: $STRIP" >&5
49805 echo "${ECHO_T}$STRIP" >&6; }
49806 else
49807   { echo "$as_me:$LINENO: result: no" >&5
49808 echo "${ECHO_T}no" >&6; }
49809 fi
49810
49811
49812 fi
49813 if test -z "$ac_cv_prog_STRIP"; then
49814   ac_ct_STRIP=$STRIP
49815   # Extract the first word of "strip", so it can be a program name with args.
49816 set dummy strip; ac_word=$2
49817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49819 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
49820   echo $ECHO_N "(cached) $ECHO_C" >&6
49821 else
49822   if test -n "$ac_ct_STRIP"; then
49823   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
49824 else
49825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49826 for as_dir in $PATH
49827 do
49828   IFS=$as_save_IFS
49829   test -z "$as_dir" && as_dir=.
49830   for ac_exec_ext in '' $ac_executable_extensions; do
49831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49832     ac_cv_prog_ac_ct_STRIP="strip"
49833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49834     break 2
49835   fi
49836 done
49837 done
49838 IFS=$as_save_IFS
49839
49840 fi
49841 fi
49842 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
49843 if test -n "$ac_ct_STRIP"; then
49844   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
49845 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
49846 else
49847   { echo "$as_me:$LINENO: result: no" >&5
49848 echo "${ECHO_T}no" >&6; }
49849 fi
49850
49851   if test "x$ac_ct_STRIP" = x; then
49852     STRIP=":"
49853   else
49854     case $cross_compiling:$ac_tool_warned in
49855 yes:)
49856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49857 whose name does not start with the host triplet.  If you think this
49858 configuration is useful to you, please write to autoconf@gnu.org." >&5
49859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49860 whose name does not start with the host triplet.  If you think this
49861 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49862 ac_tool_warned=yes ;;
49863 esac
49864     STRIP=$ac_ct_STRIP
49865   fi
49866 else
49867   STRIP="$ac_cv_prog_STRIP"
49868 fi
49869
49870     if test -n "$ac_tool_prefix"; then
49871   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
49872 set dummy ${ac_tool_prefix}nm; ac_word=$2
49873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49875 if test "${ac_cv_prog_NM+set}" = set; then
49876   echo $ECHO_N "(cached) $ECHO_C" >&6
49877 else
49878   if test -n "$NM"; then
49879   ac_cv_prog_NM="$NM" # Let the user override the test.
49880 else
49881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49882 for as_dir in $PATH
49883 do
49884   IFS=$as_save_IFS
49885   test -z "$as_dir" && as_dir=.
49886   for ac_exec_ext in '' $ac_executable_extensions; do
49887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49888     ac_cv_prog_NM="${ac_tool_prefix}nm"
49889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49890     break 2
49891   fi
49892 done
49893 done
49894 IFS=$as_save_IFS
49895
49896 fi
49897 fi
49898 NM=$ac_cv_prog_NM
49899 if test -n "$NM"; then
49900   { echo "$as_me:$LINENO: result: $NM" >&5
49901 echo "${ECHO_T}$NM" >&6; }
49902 else
49903   { echo "$as_me:$LINENO: result: no" >&5
49904 echo "${ECHO_T}no" >&6; }
49905 fi
49906
49907
49908 fi
49909 if test -z "$ac_cv_prog_NM"; then
49910   ac_ct_NM=$NM
49911   # Extract the first word of "nm", so it can be a program name with args.
49912 set dummy nm; ac_word=$2
49913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49915 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
49916   echo $ECHO_N "(cached) $ECHO_C" >&6
49917 else
49918   if test -n "$ac_ct_NM"; then
49919   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
49920 else
49921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49922 for as_dir in $PATH
49923 do
49924   IFS=$as_save_IFS
49925   test -z "$as_dir" && as_dir=.
49926   for ac_exec_ext in '' $ac_executable_extensions; do
49927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49928     ac_cv_prog_ac_ct_NM="nm"
49929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49930     break 2
49931   fi
49932 done
49933 done
49934 IFS=$as_save_IFS
49935
49936 fi
49937 fi
49938 ac_ct_NM=$ac_cv_prog_ac_ct_NM
49939 if test -n "$ac_ct_NM"; then
49940   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
49941 echo "${ECHO_T}$ac_ct_NM" >&6; }
49942 else
49943   { echo "$as_me:$LINENO: result: no" >&5
49944 echo "${ECHO_T}no" >&6; }
49945 fi
49946
49947   if test "x$ac_ct_NM" = x; then
49948     NM=":"
49949   else
49950     case $cross_compiling:$ac_tool_warned in
49951 yes:)
49952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49953 whose name does not start with the host triplet.  If you think this
49954 configuration is useful to you, please write to autoconf@gnu.org." >&5
49955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49956 whose name does not start with the host triplet.  If you think this
49957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49958 ac_tool_warned=yes ;;
49959 esac
49960     NM=$ac_ct_NM
49961   fi
49962 else
49963   NM="$ac_cv_prog_NM"
49964 fi
49965
49966
49967     case ${BAKEFILE_HOST} in
49968         *-hp-hpux* )
49969                                     INSTALL_DIR="mkdir -p"
49970             ;;
49971         * )
49972                                     INSTALL_DIR='$(INSTALL) -d'
49973             ;;
49974     esac
49975
49976
49977     LDFLAGS_GUI=
49978     case ${BAKEFILE_HOST} in
49979         *-*-cygwin* | *-*-mingw32* )
49980         LDFLAGS_GUI="-mwindows"
49981     esac
49982
49983
49984     fi
49985
49986         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
49987 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
49988 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
49989   echo $ECHO_N "(cached) $ECHO_C" >&6
49990 else
49991
49992         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
49993                 egrep -s GNU > /dev/null); then
49994             bakefile_cv_prog_makeisgnu="yes"
49995         else
49996             bakefile_cv_prog_makeisgnu="no"
49997         fi
49998
49999 fi
50000 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50001 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
50002
50003     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50004         IF_GNU_MAKE=""
50005     else
50006         IF_GNU_MAKE="#"
50007     fi
50008
50009
50010
50011     PLATFORM_UNIX=0
50012     PLATFORM_WIN32=0
50013     PLATFORM_MSDOS=0
50014     PLATFORM_MAC=0
50015     PLATFORM_MACOS=0
50016     PLATFORM_MACOSX=0
50017     PLATFORM_OS2=0
50018     PLATFORM_BEOS=0
50019
50020     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50021         case "${BAKEFILE_HOST}" in
50022             *-*-mingw32* )
50023                 PLATFORM_WIN32=1
50024             ;;
50025             *-pc-msdosdjgpp )
50026                 PLATFORM_MSDOS=1
50027             ;;
50028             *-pc-os2_emx | *-pc-os2-emx )
50029                 PLATFORM_OS2=1
50030             ;;
50031             *-*-darwin* )
50032                 PLATFORM_MAC=1
50033                 PLATFORM_MACOSX=1
50034             ;;
50035             *-*-beos* )
50036                 PLATFORM_BEOS=1
50037             ;;
50038             powerpc-apple-macos* )
50039                 PLATFORM_MAC=1
50040                 PLATFORM_MACOS=1
50041             ;;
50042             * )
50043                 PLATFORM_UNIX=1
50044             ;;
50045         esac
50046     else
50047         case "$BAKEFILE_FORCE_PLATFORM" in
50048             win32 )
50049                 PLATFORM_WIN32=1
50050             ;;
50051             msdos )
50052                 PLATFORM_MSDOS=1
50053             ;;
50054             os2 )
50055                 PLATFORM_OS2=1
50056             ;;
50057             darwin )
50058                 PLATFORM_MAC=1
50059                 PLATFORM_MACOSX=1
50060             ;;
50061             unix )
50062                 PLATFORM_UNIX=1
50063             ;;
50064             beos )
50065                 PLATFORM_BEOS=1
50066             ;;
50067             * )
50068                                             ;;
50069         esac
50070     fi
50071
50072
50073
50074
50075
50076
50077
50078
50079
50080
50081
50082     # Check whether --enable-omf was given.
50083 if test "${enable_omf+set}" = set; then
50084   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50085 fi
50086
50087
50088     case "${BAKEFILE_HOST}" in
50089       *-*-darwin* )
50090                         if test "x$GCC" = "xyes"; then
50091             CFLAGS="$CFLAGS -fno-common"
50092             CXXFLAGS="$CXXFLAGS -fno-common"
50093         fi
50094         if test "x$XLCC" = "xyes"; then
50095             CFLAGS="$CFLAGS -qnocommon"
50096             CXXFLAGS="$CXXFLAGS -qnocommon"
50097         fi
50098         ;;
50099
50100       *-pc-os2_emx | *-pc-os2-emx )
50101         if test "x$bk_os2_use_omf" = "xyes" ; then
50102             AR=emxomfar
50103             RANLIB=:
50104             LDFLAGS="-Zomf $LDFLAGS"
50105             CFLAGS="-Zomf $CFLAGS"
50106             CXXFLAGS="-Zomf $CXXFLAGS"
50107             OS2_LIBEXT="lib"
50108         else
50109             OS2_LIBEXT="a"
50110         fi
50111         ;;
50112
50113       i*86-*-beos* )
50114         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50115         ;;
50116     esac
50117
50118
50119     SO_SUFFIX="so"
50120     SO_SUFFIX_MODULE="so"
50121     EXEEXT=""
50122     LIBPREFIX="lib"
50123     LIBEXT=".a"
50124     DLLPREFIX="lib"
50125     DLLPREFIX_MODULE=""
50126     DLLIMP_SUFFIX=""
50127     dlldir="$libdir"
50128
50129     case "${BAKEFILE_HOST}" in
50130         *-hp-hpux* )
50131             SO_SUFFIX="sl"
50132             SO_SUFFIX_MODULE="sl"
50133         ;;
50134         *-*-aix* )
50135                                                                         SO_SUFFIX="a"
50136             SO_SUFFIX_MODULE="a"
50137         ;;
50138         *-*-cygwin* )
50139             SO_SUFFIX="dll"
50140             SO_SUFFIX_MODULE="dll"
50141             DLLIMP_SUFFIX="dll.a"
50142             EXEEXT=".exe"
50143             DLLPREFIX="cyg"
50144             dlldir="$bindir"
50145         ;;
50146         *-*-mingw32* )
50147             SO_SUFFIX="dll"
50148             SO_SUFFIX_MODULE="dll"
50149             DLLIMP_SUFFIX="dll.a"
50150             EXEEXT=".exe"
50151             DLLPREFIX=""
50152             dlldir="$bindir"
50153         ;;
50154         *-pc-msdosdjgpp )
50155             EXEEXT=".exe"
50156             DLLPREFIX=""
50157             dlldir="$bindir"
50158         ;;
50159         *-pc-os2_emx | *-pc-os2-emx )
50160             SO_SUFFIX="dll"
50161             SO_SUFFIX_MODULE="dll"
50162             DLLIMP_SUFFIX=$OS2_LIBEXT
50163             EXEEXT=".exe"
50164             DLLPREFIX=""
50165             LIBPREFIX=""
50166             LIBEXT=".$OS2_LIBEXT"
50167             dlldir="$bindir"
50168         ;;
50169         *-*-darwin* )
50170             SO_SUFFIX="dylib"
50171             SO_SUFFIX_MODULE="bundle"
50172         ;;
50173     esac
50174
50175     if test "x$DLLIMP_SUFFIX" = "x" ; then
50176         DLLIMP_SUFFIX="$SO_SUFFIX"
50177     fi
50178
50179
50180
50181
50182
50183
50184
50185
50186
50187
50188
50189
50190         PIC_FLAG=""
50191     if test "x$GCC" = "xyes"; then
50192                 PIC_FLAG="-fPIC"
50193     fi
50194
50195         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50196     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50197     WINDOWS_IMPLIB=0
50198
50199     case "${BAKEFILE_HOST}" in
50200       *-hp-hpux* )
50201                 if test "x$GCC" != "xyes"; then
50202                         LDFLAGS="$LDFLAGS -L/usr/lib"
50203
50204             SHARED_LD_CC="${CC} -b -o"
50205             SHARED_LD_CXX="${CXX} -b -o"
50206             PIC_FLAG="+Z"
50207         fi
50208       ;;
50209
50210       *-*-linux* )
50211         if test "$INTELCC" = "yes"; then
50212             PIC_FLAG="-KPIC"
50213         elif test "x$SUNCXX" = "xyes"; then
50214             SHARED_LD_CC="${CC} -G -o"
50215             SHARED_LD_CXX="${CXX} -G -o"
50216             PIC_FLAG="-KPIC"
50217         fi
50218       ;;
50219
50220       *-*-solaris2* )
50221         if test "x$SUNCXX" = xyes ; then
50222             SHARED_LD_CC="${CC} -G -o"
50223             SHARED_LD_CXX="${CXX} -G -o"
50224             PIC_FLAG="-KPIC"
50225         fi
50226       ;;
50227
50228       *-*-darwin* )
50229
50230 D='$'
50231 cat <<EOF >shared-ld-sh
50232 #!/bin/sh
50233 #-----------------------------------------------------------------------------
50234 #-- Name:        distrib/mac/shared-ld-sh
50235 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50236 #-- Author:      Gilles Depeyrot
50237 #-- Copyright:   (c) 2002 Gilles Depeyrot
50238 #-- Licence:     any use permitted
50239 #-----------------------------------------------------------------------------
50240
50241 verbose=0
50242 args=""
50243 objects=""
50244 linking_flag="-dynamiclib"
50245 ldargs="-r -keep_private_externs -nostdlib"
50246
50247 while test ${D}# -gt 0; do
50248     case ${D}1 in
50249
50250        -v)
50251         verbose=1
50252         ;;
50253
50254        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50255         # collect these options and values
50256         args="${D}{args} ${D}1 ${D}2"
50257         shift
50258         ;;
50259
50260        -s|-Wl,*)
50261         # collect these load args
50262         ldargs="${D}{ldargs} ${D}1"
50263         ;;
50264
50265        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50266         # collect these options
50267         args="${D}{args} ${D}1"
50268         ;;
50269
50270        -dynamiclib|-bundle)
50271         linking_flag="${D}1"
50272         ;;
50273
50274        -*)
50275         echo "shared-ld: unhandled option '${D}1'"
50276         exit 1
50277         ;;
50278
50279         *.o | *.a | *.dylib)
50280         # collect object files
50281         objects="${D}{objects} ${D}1"
50282         ;;
50283
50284         *)
50285         echo "shared-ld: unhandled argument '${D}1'"
50286         exit 1
50287         ;;
50288
50289     esac
50290     shift
50291 done
50292
50293 status=0
50294
50295 #
50296 # Link one module containing all the others
50297 #
50298 if test ${D}{verbose} = 1; then
50299     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50300 fi
50301 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50302 status=${D}?
50303
50304 #
50305 # Link the shared library from the single module created, but only if the
50306 # previous command didn't fail:
50307 #
50308 if test ${D}{status} = 0; then
50309     if test ${D}{verbose} = 1; then
50310         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50311     fi
50312     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50313     status=${D}?
50314 fi
50315
50316 #
50317 # Remove intermediate module
50318 #
50319 rm -f master.${D}${D}.o
50320
50321 exit ${D}status
50322 EOF
50323
50324         chmod +x shared-ld-sh
50325
50326         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50327         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
50328
50329
50330                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50331 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50332 if test "${bakefile_cv_gcc31+set}" = set; then
50333   echo $ECHO_N "(cached) $ECHO_C" >&6
50334 else
50335
50336            cat >conftest.$ac_ext <<_ACEOF
50337 /* confdefs.h.  */
50338 _ACEOF
50339 cat confdefs.h >>conftest.$ac_ext
50340 cat >>conftest.$ac_ext <<_ACEOF
50341 /* end confdefs.h.  */
50342
50343 int
50344 main ()
50345 {
50346
50347                    #if (__GNUC__ < 3) || \
50348                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50349                        This is old gcc
50350                    #endif
50351
50352   ;
50353   return 0;
50354 }
50355 _ACEOF
50356 rm -f conftest.$ac_objext
50357 if { (ac_try="$ac_compile"
50358 case "(($ac_try" in
50359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50360   *) ac_try_echo=$ac_try;;
50361 esac
50362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50363   (eval "$ac_compile") 2>conftest.er1
50364   ac_status=$?
50365   grep -v '^ *+' conftest.er1 >conftest.err
50366   rm -f conftest.er1
50367   cat conftest.err >&5
50368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50369   (exit $ac_status); } && {
50370          test -z "$ac_c_werror_flag" ||
50371          test ! -s conftest.err
50372        } && test -s conftest.$ac_objext; then
50373
50374                    bakefile_cv_gcc31=yes
50375
50376 else
50377   echo "$as_me: failed program was:" >&5
50378 sed 's/^/| /' conftest.$ac_ext >&5
50379
50380
50381                    bakefile_cv_gcc31=no
50382
50383
50384 fi
50385
50386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50387
50388 fi
50389 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50390 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50391         if test "$bakefile_cv_gcc31" = "no"; then
50392                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50393             SHARED_LD_CXX="$SHARED_LD_CC"
50394         else
50395                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50396             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50397         fi
50398
50399         if test "x$GCC" == "xyes"; then
50400             PIC_FLAG="-dynamic -fPIC"
50401         fi
50402         if test "x$XLCC" = "xyes"; then
50403             PIC_FLAG="-dynamic -DPIC"
50404         fi
50405       ;;
50406
50407       *-*-aix* )
50408         if test "x$GCC" = "xyes"; then
50409                                                             PIC_FLAG=""
50410
50411                                                                                     case "${BAKEFILE_HOST}" in
50412                 *-*-aix5* )
50413                     LD_EXPFULL="-Wl,-bexpfull"
50414                     ;;
50415             esac
50416
50417             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50418             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50419         else
50420                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50421 set dummy makeC++SharedLib; ac_word=$2
50422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50424 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50425   echo $ECHO_N "(cached) $ECHO_C" >&6
50426 else
50427   if test -n "$AIX_CXX_LD"; then
50428   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50429 else
50430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50431 for as_dir in $PATH
50432 do
50433   IFS=$as_save_IFS
50434   test -z "$as_dir" && as_dir=.
50435   for ac_exec_ext in '' $ac_executable_extensions; do
50436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50437     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50439     break 2
50440   fi
50441 done
50442 done
50443 IFS=$as_save_IFS
50444
50445   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50446 fi
50447 fi
50448 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50449 if test -n "$AIX_CXX_LD"; then
50450   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50451 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50452 else
50453   { echo "$as_me:$LINENO: result: no" >&5
50454 echo "${ECHO_T}no" >&6; }
50455 fi
50456
50457
50458             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50459             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50460         fi
50461       ;;
50462
50463       *-*-beos* )
50464                         SHARED_LD_CC="${LD} -nostart -o"
50465         SHARED_LD_CXX="${LD} -nostart -o"
50466       ;;
50467
50468       *-*-irix* )
50469                 if test "x$GCC" != "xyes"; then
50470             PIC_FLAG="-KPIC"
50471         fi
50472       ;;
50473
50474       *-*-cygwin* | *-*-mingw32* )
50475         PIC_FLAG=""
50476         SHARED_LD_CC="\$(CC) -shared -o"
50477         SHARED_LD_CXX="\$(CXX) -shared -o"
50478         WINDOWS_IMPLIB=1
50479       ;;
50480
50481       *-pc-os2_emx | *-pc-os2-emx )
50482         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50483         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50484         PIC_FLAG=""
50485
50486 D='$'
50487 cat <<EOF >dllar.sh
50488 #!/bin/sh
50489 #
50490 # dllar - a tool to build both a .dll and an .a file
50491 # from a set of object (.o) files for EMX/OS2.
50492 #
50493 #  Written by Andrew Zabolotny, bit@freya.etu.ru
50494 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50495 #
50496 #  This script will accept a set of files on the command line.
50497 #  All the public symbols from the .o files will be exported into
50498 #  a .DEF file, then linker will be run (through gcc) against them to
50499 #  build a shared library consisting of all given .o files. All libraries
50500 #  (.a) will be first decompressed into component .o files then act as
50501 #  described above. You can optionally give a description (-d "description")
50502 #  which will be put into .DLL. To see the list of accepted options (as well
50503 #  as command-line format) simply run this program without options. The .DLL
50504 #  is built to be imported by name (there is no guarantee that new versions
50505 #  of the library you build will have same ordinals for same symbols).
50506 #
50507 #  dllar is free software; you can redistribute it and/or modify
50508 #  it under the terms of the GNU General Public License as published by
50509 #  the Free Software Foundation; either version 2, or (at your option)
50510 #  any later version.
50511 #
50512 #  dllar is distributed in the hope that it will be useful,
50513 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
50514 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
50515 #  GNU General Public License for more details.
50516 #
50517 #  You should have received a copy of the GNU General Public License
50518 #  along with dllar; see the file COPYING.  If not, write to the Free
50519 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
50520 #  02111-1307, USA.
50521
50522 # To successfuly run this program you will need:
50523 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
50524 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
50525 #  - gcc
50526 #    (used to build the .dll)
50527 #  - emxexp
50528 #    (used to create .def file from .o files)
50529 #  - emximp
50530 #    (used to create .a file from .def file)
50531 #  - GNU text utilites (cat, sort, uniq)
50532 #    used to process emxexp output
50533 #  - GNU file utilities (mv, rm)
50534 #  - GNU sed
50535 #  - lxlite (optional, see flag below)
50536 #    (used for general .dll cleanup)
50537 #
50538
50539 flag_USE_LXLITE=1;
50540
50541 #
50542 # helper functions
50543 # basnam, variant of basename, which does _not_ remove the path, _iff_
50544 #                              second argument (suffix to remove) is given
50545 basnam(){
50546     case ${D}# in
50547     1)
50548         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
50549         ;;
50550     2)
50551         echo ${D}1 | sed 's/'${D}2'${D}//'
50552         ;;
50553     *)
50554         echo "error in basnam ${D}*"
50555         exit 8
50556         ;;
50557     esac
50558 }
50559
50560 # Cleanup temporary files and output
50561 CleanUp() {
50562     cd ${D}curDir
50563     for i in ${D}inputFiles ; do
50564         case ${D}i in
50565         *!)
50566             rm -rf \`basnam ${D}i !\`
50567             ;;
50568         *)
50569             ;;
50570         esac
50571     done
50572
50573     # Kill result in case of failure as there is just to many stupid make/nmake
50574     # things out there which doesn't do this.
50575     if [ ${D}# -eq 0 ]; then
50576         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
50577     fi
50578 }
50579
50580 # Print usage and exit script with rc=1.
50581 PrintHelp() {
50582  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
50583  echo '       [-name-mangler-script script.sh]'
50584  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
50585  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
50586  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
50587  echo '       [*.o] [*.a]'
50588  echo '*> "output_file" should have no extension.'
50589  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
50590  echo '   The import library name is derived from this and is set to "name".a,'
50591  echo '   unless overridden by -import'
50592  echo '*> "importlib_name" should have no extension.'
50593  echo '   If it has the .o, or .a extension, it is automatically removed.'
50594  echo '   This name is used as the import library name and may be longer and'
50595  echo '   more descriptive than the DLL name which has to follow the old '
50596  echo '   8.3 convention of FAT.'
50597  echo '*> "script.sh may be given to override the output_file name by a'
50598  echo '   different name. It is mainly useful if the regular make process'
50599  echo '   of some package does not take into account OS/2 restriction of'
50600  echo '   DLL name lengths. It takes the importlib name as input and is'
50601  echo '   supposed to procude a shorter name as output. The script should'
50602  echo '   expect to get importlib_name without extension and should produce'
50603  echo '   a (max.) 8 letter name without extension.'
50604  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
50605  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
50606  echo '   These flags will be put at the start of GCC command line.'
50607  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
50608  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
50609  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
50610  echo '   If the last character of a symbol is "*", all symbols beginning'
50611  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
50612  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
50613  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
50614  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
50615  echo '   C runtime DLLs.'
50616  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
50617  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
50618  echo '   unchanged to GCC at the end of command line.'
50619  echo '*> If you create a DLL from a library and you do not specify -o,'
50620  echo '   the basename for DLL and import library will be set to library name,'
50621  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
50622  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
50623  echo '   library will be renamed into gcc_s.a.'
50624  echo '--------'
50625  echo 'Example:'
50626  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
50627  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
50628  CleanUp
50629  exit 1
50630 }
50631
50632 # Execute a command.
50633 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
50634 # @Uses    Whatever CleanUp() uses.
50635 doCommand() {
50636     echo "${D}*"
50637     eval ${D}*
50638     rcCmd=${D}?
50639
50640     if [ ${D}rcCmd -ne 0 ]; then
50641         echo "command failed, exit code="${D}rcCmd
50642         CleanUp
50643         exit ${D}rcCmd
50644     fi
50645 }
50646
50647 # main routine
50648 # setup globals
50649 cmdLine=${D}*
50650 outFile=""
50651 outimpFile=""
50652 inputFiles=""
50653 renameScript=""
50654 description=""
50655 CC=gcc.exe
50656 CFLAGS="-s -Zcrtdll"
50657 EXTRA_CFLAGS=""
50658 EXPORT_BY_ORDINALS=0
50659 exclude_symbols=""
50660 library_flags=""
50661 curDir=\`pwd\`
50662 curDirS=curDir
50663 case ${D}curDirS in
50664 */)
50665   ;;
50666 *)
50667   curDirS=${D}{curDirS}"/"
50668   ;;
50669 esac
50670 # Parse commandline
50671 libsToLink=0
50672 omfLinking=0
50673 while [ ${D}1 ]; do
50674     case ${D}1 in
50675     -ord*)
50676         EXPORT_BY_ORDINALS=1;
50677         ;;
50678     -o*)
50679         shift
50680         outFile=${D}1
50681         ;;
50682     -i*)
50683         shift
50684         outimpFile=${D}1
50685         ;;
50686     -name-mangler-script)
50687         shift
50688         renameScript=${D}1
50689         ;;
50690     -d*)
50691         shift
50692         description=${D}1
50693         ;;
50694     -f*)
50695         shift
50696         CFLAGS=${D}1
50697         ;;
50698     -c*)
50699         shift
50700         CC=${D}1
50701         ;;
50702     -h*)
50703         PrintHelp
50704         ;;
50705     -ex*)
50706         shift
50707         exclude_symbols=${D}{exclude_symbols}${D}1" "
50708         ;;
50709     -libf*)
50710         shift
50711         library_flags=${D}{library_flags}${D}1" "
50712         ;;
50713     -nocrt*)
50714         CFLAGS="-s"
50715         ;;
50716     -nolxl*)
50717         flag_USE_LXLITE=0
50718         ;;
50719     -* | /*)
50720         case ${D}1 in
50721         -L* | -l*)
50722             libsToLink=1
50723             ;;
50724         -Zomf)
50725             omfLinking=1
50726             ;;
50727         *)
50728             ;;
50729         esac
50730         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50731         ;;
50732     *.dll)
50733         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
50734         if [ ${D}omfLinking -eq 1 ]; then
50735             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
50736         else
50737             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
50738         fi
50739         ;;
50740     *)
50741         found=0;
50742         if [ ${D}libsToLink -ne 0 ]; then
50743             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50744         else
50745             for file in ${D}1 ; do
50746                 if [ -f ${D}file ]; then
50747                     inputFiles="${D}{inputFiles} ${D}file"
50748                     found=1
50749                 fi
50750             done
50751             if [ ${D}found -eq 0 ]; then
50752                 echo "ERROR: No file(s) found: "${D}1
50753                 exit 8
50754             fi
50755         fi
50756       ;;
50757     esac
50758     shift
50759 done # iterate cmdline words
50760
50761 #
50762 if [ -z "${D}inputFiles" ]; then
50763     echo "dllar: no input files"
50764     PrintHelp
50765 fi
50766
50767 # Now extract all .o files from .a files
50768 newInputFiles=""
50769 for file in ${D}inputFiles ; do
50770     case ${D}file in
50771     *.a | *.lib)
50772         case ${D}file in
50773         *.a)
50774             suffix=".a"
50775             AR="ar"
50776             ;;
50777         *.lib)
50778             suffix=".lib"
50779             AR="emxomfar"
50780             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
50781             ;;
50782         *)
50783             ;;
50784         esac
50785         dirname=\`basnam ${D}file ${D}suffix\`"_%"
50786         mkdir ${D}dirname
50787         if [ ${D}? -ne 0 ]; then
50788             echo "Failed to create subdirectory ./${D}dirname"
50789             CleanUp
50790             exit 8;
50791         fi
50792         # Append '!' to indicate archive
50793         newInputFiles="${D}newInputFiles ${D}{dirname}!"
50794         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
50795         cd ${D}curDir
50796         found=0;
50797         for subfile in ${D}dirname/*.o* ; do
50798             if [ -f ${D}subfile ]; then
50799                 found=1
50800                 if [ -s ${D}subfile ]; then
50801                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
50802                     newInputFiles="${D}newInputFiles ${D}subfile"
50803                 fi
50804             fi
50805         done
50806         if [ ${D}found -eq 0 ]; then
50807             echo "WARNING: there are no files in archive \\'${D}file\\'"
50808         fi
50809         ;;
50810     *)
50811         newInputFiles="${D}{newInputFiles} ${D}file"
50812         ;;
50813     esac
50814 done
50815 inputFiles="${D}newInputFiles"
50816
50817 # Output filename(s).
50818 do_backup=0;
50819 if [ -z ${D}outFile ]; then
50820     do_backup=1;
50821     set outFile ${D}inputFiles; outFile=${D}2
50822 fi
50823
50824 # If it is an archive, remove the '!' and the '_%' suffixes
50825 case ${D}outFile in
50826 *_%!)
50827     outFile=\`basnam ${D}outFile _%!\`
50828     ;;
50829 *)
50830     ;;
50831 esac
50832 case ${D}outFile in
50833 *.dll)
50834     outFile=\`basnam ${D}outFile .dll\`
50835     ;;
50836 *.DLL)
50837     outFile=\`basnam ${D}outFile .DLL\`
50838     ;;
50839 *.o)
50840     outFile=\`basnam ${D}outFile .o\`
50841     ;;
50842 *.obj)
50843     outFile=\`basnam ${D}outFile .obj\`
50844     ;;
50845 *.a)
50846     outFile=\`basnam ${D}outFile .a\`
50847     ;;
50848 *.lib)
50849     outFile=\`basnam ${D}outFile .lib\`
50850     ;;
50851 *)
50852     ;;
50853 esac
50854 case ${D}outimpFile in
50855 *.a)
50856     outimpFile=\`basnam ${D}outimpFile .a\`
50857     ;;
50858 *.lib)
50859     outimpFile=\`basnam ${D}outimpFile .lib\`
50860     ;;
50861 *)
50862     ;;
50863 esac
50864 if [ -z ${D}outimpFile ]; then
50865     outimpFile=${D}outFile
50866 fi
50867 defFile="${D}{outFile}.def"
50868 arcFile="${D}{outimpFile}.a"
50869 arcFile2="${D}{outimpFile}.lib"
50870
50871 #create ${D}dllFile as something matching 8.3 restrictions,
50872 if [ -z ${D}renameScript ] ; then
50873     dllFile="${D}outFile"
50874 else
50875     dllFile=\`${D}renameScript ${D}outimpFile\`
50876 fi
50877
50878 if [ ${D}do_backup -ne 0 ] ; then
50879     if [ -f ${D}arcFile ] ; then
50880         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
50881     fi
50882     if [ -f ${D}arcFile2 ] ; then
50883         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
50884     fi
50885 fi
50886
50887 # Extract public symbols from all the object files.
50888 tmpdefFile=${D}{defFile}_%
50889 rm -f ${D}tmpdefFile
50890 for file in ${D}inputFiles ; do
50891     case ${D}file in
50892     *!)
50893         ;;
50894     *)
50895         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
50896         ;;
50897     esac
50898 done
50899
50900 # Create the def file.
50901 rm -f ${D}defFile
50902 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
50903 dllFile="${D}{dllFile}.dll"
50904 if [ ! -z ${D}description ]; then
50905     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
50906 fi
50907 echo "EXPORTS" >> ${D}defFile
50908
50909 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
50910 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
50911
50912 # Checks if the export is ok or not.
50913 for word in ${D}exclude_symbols; do
50914     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
50915     mv ${D}{tmpdefFile}% ${D}tmpdefFile
50916 done
50917
50918
50919 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50920     sed "=" < ${D}tmpdefFile | \\
50921     sed '
50922       N
50923       : loop
50924       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
50925       t loop
50926     ' > ${D}{tmpdefFile}%
50927     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
50928 else
50929     rm -f ${D}{tmpdefFile}%
50930 fi
50931 cat ${D}tmpdefFile >> ${D}defFile
50932 rm -f ${D}tmpdefFile
50933
50934 # Do linking, create implib, and apply lxlite.
50935 gccCmdl="";
50936 for file in ${D}inputFiles ; do
50937     case ${D}file in
50938     *!)
50939         ;;
50940     *)
50941         gccCmdl="${D}gccCmdl ${D}file"
50942         ;;
50943     esac
50944 done
50945 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
50946 touch "${D}{outFile}.dll"
50947
50948 doCommand "emximp -o ${D}arcFile ${D}defFile"
50949 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
50950     add_flags="";
50951     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50952         add_flags="-ynd"
50953     fi
50954     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
50955 fi
50956 doCommand "emxomf -s -l ${D}arcFile"
50957
50958 # Successful exit.
50959 CleanUp 1
50960 exit 0
50961 EOF
50962
50963         chmod +x dllar.sh
50964       ;;
50965
50966       powerpc-apple-macos* | \
50967       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
50968       *-*-mirbsd* | \
50969       *-*-sunos4* | \
50970       *-*-osf* | \
50971       *-*-dgux5* | \
50972       *-*-sysv5* | \
50973       *-pc-msdosdjgpp )
50974               ;;
50975
50976       *)
50977         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
50978 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
50979    { (exit 1); exit 1; }; }
50980     esac
50981
50982     if test "x$PIC_FLAG" != "x" ; then
50983         PIC_FLAG="$PIC_FLAG -DPIC"
50984     fi
50985
50986     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
50987         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
50988     fi
50989     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
50990         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
50991     fi
50992
50993
50994
50995
50996
50997
50998
50999
51000
51001     USE_SOVERSION=0
51002     USE_SOVERLINUX=0
51003     USE_SOVERSOLARIS=0
51004     USE_SOVERCYGWIN=0
51005     USE_SOSYMLINKS=0
51006     USE_MACVERSION=0
51007     SONAME_FLAG=
51008
51009     case "${BAKEFILE_HOST}" in
51010       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
51011         if test "x$SUNCXX" = "xyes"; then
51012             SONAME_FLAG="-h "
51013         else
51014             SONAME_FLAG="-Wl,-soname,"
51015         fi
51016         USE_SOVERSION=1
51017         USE_SOVERLINUX=1
51018         USE_SOSYMLINKS=1
51019       ;;
51020
51021       *-*-solaris2* )
51022         SONAME_FLAG="-h "
51023         USE_SOVERSION=1
51024         USE_SOVERSOLARIS=1
51025         USE_SOSYMLINKS=1
51026       ;;
51027
51028       *-*-darwin* )
51029         USE_MACVERSION=1
51030         USE_SOVERSION=1
51031         USE_SOSYMLINKS=1
51032       ;;
51033
51034       *-*-cygwin* )
51035         USE_SOVERSION=1
51036         USE_SOVERCYGWIN=1
51037       ;;
51038     esac
51039
51040
51041
51042
51043
51044
51045
51046
51047
51048
51049     # Check whether --enable-dependency-tracking was given.
51050 if test "${enable_dependency_tracking+set}" = set; then
51051   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51052 fi
51053
51054
51055     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51056 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51057
51058     BK_DEPS=""
51059     if test "x$bk_use_trackdeps" = "xno" ; then
51060         DEPS_TRACKING=0
51061         { echo "$as_me:$LINENO: result: disabled" >&5
51062 echo "${ECHO_T}disabled" >&6; }
51063     else
51064         DEPS_TRACKING=1
51065
51066         if test "x$GCC" = "xyes"; then
51067             DEPSMODE=gcc
51068             case "${BAKEFILE_HOST}" in
51069                 *-*-darwin* )
51070                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51071                 ;;
51072                 * )
51073                     DEPSFLAG="-MMD"
51074                 ;;
51075             esac
51076             { echo "$as_me:$LINENO: result: gcc" >&5
51077 echo "${ECHO_T}gcc" >&6; }
51078         elif test "x$MWCC" = "xyes"; then
51079             DEPSMODE=mwcc
51080             DEPSFLAG="-MM"
51081             { echo "$as_me:$LINENO: result: mwcc" >&5
51082 echo "${ECHO_T}mwcc" >&6; }
51083         elif test "x$SUNCC" = "xyes"; then
51084             DEPSMODE=unixcc
51085             DEPSFLAG="-xM1"
51086             { echo "$as_me:$LINENO: result: Sun cc" >&5
51087 echo "${ECHO_T}Sun cc" >&6; }
51088         elif test "x$SGICC" = "xyes"; then
51089             DEPSMODE=unixcc
51090             DEPSFLAG="-M"
51091             { echo "$as_me:$LINENO: result: SGI cc" >&5
51092 echo "${ECHO_T}SGI cc" >&6; }
51093         elif test "x$HPCC" = "xyes"; then
51094             DEPSMODE=unixcc
51095             DEPSFLAG="+make"
51096             { echo "$as_me:$LINENO: result: HP cc" >&5
51097 echo "${ECHO_T}HP cc" >&6; }
51098         elif test "x$COMPAQCC" = "xyes"; then
51099             DEPSMODE=gcc
51100             DEPSFLAG="-MD"
51101             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51102 echo "${ECHO_T}Compaq cc" >&6; }
51103         else
51104             DEPS_TRACKING=0
51105             { echo "$as_me:$LINENO: result: none" >&5
51106 echo "${ECHO_T}none" >&6; }
51107         fi
51108
51109         if test $DEPS_TRACKING = 1 ; then
51110
51111 D='$'
51112 cat <<EOF >bk-deps
51113 #!/bin/sh
51114
51115 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51116 # script. It is used to track C/C++ files dependencies in portable way.
51117 #
51118 # Permission is given to use this file in any way.
51119
51120 DEPSMODE=${DEPSMODE}
51121 DEPSDIR=.deps
51122 DEPSFLAG="${DEPSFLAG}"
51123
51124 mkdir -p ${D}DEPSDIR
51125
51126 if test ${D}DEPSMODE = gcc ; then
51127     ${D}* ${D}{DEPSFLAG}
51128     status=${D}?
51129     if test ${D}{status} != 0 ; then
51130         exit ${D}{status}
51131     fi
51132     # move created file to the location we want it in:
51133     while test ${D}# -gt 0; do
51134         case "${D}1" in
51135             -o )
51136                 shift
51137                 objfile=${D}1
51138             ;;
51139             -* )
51140             ;;
51141             * )
51142                 srcfile=${D}1
51143             ;;
51144         esac
51145         shift
51146     done
51147     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51148     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51149     if test -f ${D}depfile ; then
51150         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51151         rm -f ${D}depfile
51152     else
51153         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51154         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
51155         if test ! -f ${D}depfile ; then
51156             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51157             depfile="${D}objfile.d"
51158         fi
51159         if test -f ${D}depfile ; then
51160             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51161             rm -f ${D}depfile
51162         fi
51163     fi
51164     exit 0
51165 elif test ${D}DEPSMODE = mwcc ; then
51166     ${D}* || exit ${D}?
51167     # Run mwcc again with -MM and redirect into the dep file we want
51168     # NOTE: We can't use shift here because we need ${D}* to be valid
51169     prevarg=
51170     for arg in ${D}* ; do
51171         if test "${D}prevarg" = "-o"; then
51172             objfile=${D}arg
51173         else
51174             case "${D}arg" in
51175                 -* )
51176                 ;;
51177                 * )
51178                     srcfile=${D}arg
51179                 ;;
51180             esac
51181         fi
51182         prevarg="${D}arg"
51183     done
51184     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
51185     exit 0
51186 elif test ${D}DEPSMODE = unixcc; then
51187     ${D}* || exit ${D}?
51188     # Run compiler again with deps flag and redirect into the dep file.
51189     # It doesn't work if the '-o FILE' option is used, but without it the
51190     # dependency file will contain the wrong name for the object. So it is
51191     # removed from the command line, and the dep file is fixed with sed.
51192     cmd=""
51193     while test ${D}# -gt 0; do
51194         case "${D}1" in
51195             -o )
51196                 shift
51197                 objfile=${D}1
51198             ;;
51199             * )
51200                 eval arg${D}#=\\${D}1
51201                 cmd="${D}cmd \\${D}arg${D}#"
51202             ;;
51203         esac
51204         shift
51205     done
51206     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
51207     exit 0
51208 else
51209     ${D}*
51210     exit ${D}?
51211 fi
51212 EOF
51213
51214             chmod +x bk-deps
51215                                     BK_DEPS="`pwd`/bk-deps"
51216         fi
51217     fi
51218
51219
51220
51221
51222
51223     case ${BAKEFILE_HOST} in
51224         *-*-cygwin* | *-*-mingw32* )
51225                         if test -n "$ac_tool_prefix"; then
51226   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51227 set dummy ${ac_tool_prefix}windres; ac_word=$2
51228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51230 if test "${ac_cv_prog_WINDRES+set}" = set; then
51231   echo $ECHO_N "(cached) $ECHO_C" >&6
51232 else
51233   if test -n "$WINDRES"; then
51234   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51235 else
51236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51237 for as_dir in $PATH
51238 do
51239   IFS=$as_save_IFS
51240   test -z "$as_dir" && as_dir=.
51241   for ac_exec_ext in '' $ac_executable_extensions; do
51242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51243     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51245     break 2
51246   fi
51247 done
51248 done
51249 IFS=$as_save_IFS
51250
51251 fi
51252 fi
51253 WINDRES=$ac_cv_prog_WINDRES
51254 if test -n "$WINDRES"; then
51255   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51256 echo "${ECHO_T}$WINDRES" >&6; }
51257 else
51258   { echo "$as_me:$LINENO: result: no" >&5
51259 echo "${ECHO_T}no" >&6; }
51260 fi
51261
51262
51263 fi
51264 if test -z "$ac_cv_prog_WINDRES"; then
51265   ac_ct_WINDRES=$WINDRES
51266   # Extract the first word of "windres", so it can be a program name with args.
51267 set dummy windres; ac_word=$2
51268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51270 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51271   echo $ECHO_N "(cached) $ECHO_C" >&6
51272 else
51273   if test -n "$ac_ct_WINDRES"; then
51274   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51275 else
51276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51277 for as_dir in $PATH
51278 do
51279   IFS=$as_save_IFS
51280   test -z "$as_dir" && as_dir=.
51281   for ac_exec_ext in '' $ac_executable_extensions; do
51282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51283     ac_cv_prog_ac_ct_WINDRES="windres"
51284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51285     break 2
51286   fi
51287 done
51288 done
51289 IFS=$as_save_IFS
51290
51291 fi
51292 fi
51293 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51294 if test -n "$ac_ct_WINDRES"; then
51295   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51296 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51297 else
51298   { echo "$as_me:$LINENO: result: no" >&5
51299 echo "${ECHO_T}no" >&6; }
51300 fi
51301
51302   if test "x$ac_ct_WINDRES" = x; then
51303     WINDRES=""
51304   else
51305     case $cross_compiling:$ac_tool_warned in
51306 yes:)
51307 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51308 whose name does not start with the host triplet.  If you think this
51309 configuration is useful to you, please write to autoconf@gnu.org." >&5
51310 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51311 whose name does not start with the host triplet.  If you think this
51312 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51313 ac_tool_warned=yes ;;
51314 esac
51315     WINDRES=$ac_ct_WINDRES
51316   fi
51317 else
51318   WINDRES="$ac_cv_prog_WINDRES"
51319 fi
51320
51321          ;;
51322
51323       *-*-darwin* | powerpc-apple-macos* )
51324             # Extract the first word of "Rez", so it can be a program name with args.
51325 set dummy Rez; ac_word=$2
51326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51328 if test "${ac_cv_prog_REZ+set}" = set; then
51329   echo $ECHO_N "(cached) $ECHO_C" >&6
51330 else
51331   if test -n "$REZ"; then
51332   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51333 else
51334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51335 for as_dir in $PATH
51336 do
51337   IFS=$as_save_IFS
51338   test -z "$as_dir" && as_dir=.
51339   for ac_exec_ext in '' $ac_executable_extensions; do
51340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51341     ac_cv_prog_REZ="Rez"
51342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51343     break 2
51344   fi
51345 done
51346 done
51347 IFS=$as_save_IFS
51348
51349   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51350 fi
51351 fi
51352 REZ=$ac_cv_prog_REZ
51353 if test -n "$REZ"; then
51354   { echo "$as_me:$LINENO: result: $REZ" >&5
51355 echo "${ECHO_T}$REZ" >&6; }
51356 else
51357   { echo "$as_me:$LINENO: result: no" >&5
51358 echo "${ECHO_T}no" >&6; }
51359 fi
51360
51361
51362             # Extract the first word of "SetFile", so it can be a program name with args.
51363 set dummy SetFile; ac_word=$2
51364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51366 if test "${ac_cv_prog_SETFILE+set}" = set; then
51367   echo $ECHO_N "(cached) $ECHO_C" >&6
51368 else
51369   if test -n "$SETFILE"; then
51370   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51371 else
51372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51373 for as_dir in $PATH
51374 do
51375   IFS=$as_save_IFS
51376   test -z "$as_dir" && as_dir=.
51377   for ac_exec_ext in '' $ac_executable_extensions; do
51378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51379     ac_cv_prog_SETFILE="SetFile"
51380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51381     break 2
51382   fi
51383 done
51384 done
51385 IFS=$as_save_IFS
51386
51387   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51388 fi
51389 fi
51390 SETFILE=$ac_cv_prog_SETFILE
51391 if test -n "$SETFILE"; then
51392   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51393 echo "${ECHO_T}$SETFILE" >&6; }
51394 else
51395   { echo "$as_me:$LINENO: result: no" >&5
51396 echo "${ECHO_T}no" >&6; }
51397 fi
51398
51399
51400         ;;
51401     esac
51402
51403
51404
51405
51406
51407
51408     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
51409
51410
51411 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
51412
51413
51414
51415     # Check whether --enable-precomp-headers was given.
51416 if test "${enable_precomp_headers+set}" = set; then
51417   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51418 fi
51419
51420
51421     GCC_PCH=0
51422     ICC_PCH=0
51423     USE_PCH=0
51424     BK_MAKE_PCH=""
51425
51426     case ${BAKEFILE_HOST} in
51427         *-*-cygwin* )
51428                                                 bk_use_pch="no"
51429             ;;
51430     esac
51431
51432     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51433         if test "x$GCC" = "xyes"; then
51434                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51435 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51436             cat >conftest.$ac_ext <<_ACEOF
51437 /* confdefs.h.  */
51438 _ACEOF
51439 cat confdefs.h >>conftest.$ac_ext
51440 cat >>conftest.$ac_ext <<_ACEOF
51441 /* end confdefs.h.  */
51442
51443 int
51444 main ()
51445 {
51446
51447                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51448                         There is no PCH support
51449                     #endif
51450                     #if (__GNUC__ < 3)
51451                         There is no PCH support
51452                     #endif
51453                     #if (__GNUC__ == 3) && \
51454                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51455                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51456                        ( defined(__INTEL_COMPILER) )
51457                         There is no PCH support
51458                     #endif
51459
51460   ;
51461   return 0;
51462 }
51463 _ACEOF
51464 rm -f conftest.$ac_objext
51465 if { (ac_try="$ac_compile"
51466 case "(($ac_try" in
51467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51468   *) ac_try_echo=$ac_try;;
51469 esac
51470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51471   (eval "$ac_compile") 2>conftest.er1
51472   ac_status=$?
51473   grep -v '^ *+' conftest.er1 >conftest.err
51474   rm -f conftest.er1
51475   cat conftest.err >&5
51476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51477   (exit $ac_status); } && {
51478          test -z "$ac_c_werror_flag" ||
51479          test ! -s conftest.err
51480        } && test -s conftest.$ac_objext; then
51481
51482                     { echo "$as_me:$LINENO: result: yes" >&5
51483 echo "${ECHO_T}yes" >&6; }
51484                     GCC_PCH=1
51485
51486 else
51487   echo "$as_me: failed program was:" >&5
51488 sed 's/^/| /' conftest.$ac_ext >&5
51489
51490
51491                     cat >conftest.$ac_ext <<_ACEOF
51492 /* confdefs.h.  */
51493 _ACEOF
51494 cat confdefs.h >>conftest.$ac_ext
51495 cat >>conftest.$ac_ext <<_ACEOF
51496 /* end confdefs.h.  */
51497
51498 int
51499 main ()
51500 {
51501
51502                             #if !defined(__INTEL_COMPILER) || \
51503                                 (__INTEL_COMPILER < 800)
51504                                 There is no PCH support
51505                             #endif
51506
51507   ;
51508   return 0;
51509 }
51510 _ACEOF
51511 rm -f conftest.$ac_objext
51512 if { (ac_try="$ac_compile"
51513 case "(($ac_try" in
51514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51515   *) ac_try_echo=$ac_try;;
51516 esac
51517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51518   (eval "$ac_compile") 2>conftest.er1
51519   ac_status=$?
51520   grep -v '^ *+' conftest.er1 >conftest.err
51521   rm -f conftest.er1
51522   cat conftest.err >&5
51523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51524   (exit $ac_status); } && {
51525          test -z "$ac_c_werror_flag" ||
51526          test ! -s conftest.err
51527        } && test -s conftest.$ac_objext; then
51528
51529                             { echo "$as_me:$LINENO: result: yes" >&5
51530 echo "${ECHO_T}yes" >&6; }
51531                             ICC_PCH=1
51532
51533 else
51534   echo "$as_me: failed program was:" >&5
51535 sed 's/^/| /' conftest.$ac_ext >&5
51536
51537
51538                             { echo "$as_me:$LINENO: result: no" >&5
51539 echo "${ECHO_T}no" >&6; }
51540
51541 fi
51542
51543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51544
51545 fi
51546
51547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51548             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
51549                 USE_PCH=1
51550
51551 D='$'
51552 cat <<EOF >bk-make-pch
51553 #!/bin/sh
51554
51555 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51556 # script. It is used to generated precompiled headers.
51557 #
51558 # Permission is given to use this file in any way.
51559
51560 outfile="${D}{1}"
51561 header="${D}{2}"
51562 shift
51563 shift
51564
51565 compiler=""
51566 headerfile=""
51567
51568 while test ${D}{#} -gt 0; do
51569     add_to_cmdline=1
51570     case "${D}{1}" in
51571         -I* )
51572             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
51573             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
51574                 headerfile="${D}{incdir}/${D}{header}"
51575             fi
51576         ;;
51577         -use-pch|-use_pch )
51578             shift
51579             add_to_cmdline=0
51580         ;;
51581     esac
51582     if test ${D}add_to_cmdline = 1 ; then
51583         compiler="${D}{compiler} ${D}{1}"
51584     fi
51585     shift
51586 done
51587
51588 if test "x${D}{headerfile}" = "x" ; then
51589     echo "error: can't find header ${D}{header} in include paths" >&2
51590 else
51591     if test -f ${D}{outfile} ; then
51592         rm -f ${D}{outfile}
51593     else
51594         mkdir -p \`dirname ${D}{outfile}\`
51595     fi
51596     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
51597     mkdir -p .deps
51598     if test "x${GCC_PCH}" = "x1" ; then
51599         # can do this because gcc is >= 3.4:
51600         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
51601     elif test "x${ICC_PCH}" = "x1" ; then
51602         filename=pch_gen-${D}${D}
51603         file=${D}{filename}.c
51604         dfile=${D}{filename}.d
51605         cat > ${D}file <<EOT
51606 #include "${D}header"
51607 EOT
51608         # using -MF icc complains about differing command lines in creation/use
51609         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
51610           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
51611           rm -f ${D}file ${D}dfile ${D}{filename}.o
51612     fi
51613     exit ${D}{?}
51614 fi
51615 EOF
51616
51617                 chmod +x bk-make-pch
51618                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
51619             fi
51620         fi
51621     fi
51622
51623
51624
51625
51626
51627     COND_BUILD_DEBUG="#"
51628     if test "x$BUILD" = "xdebug" ; then
51629         COND_BUILD_DEBUG=""
51630     fi
51631
51632     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
51633     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51634         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
51635     fi
51636
51637     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
51638     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51639         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
51640     fi
51641
51642     COND_BUILD_DEBUG_UNICODE_0="#"
51643     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51644         COND_BUILD_DEBUG_UNICODE_0=""
51645     fi
51646
51647     COND_BUILD_DEBUG_UNICODE_1="#"
51648     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51649         COND_BUILD_DEBUG_UNICODE_1=""
51650     fi
51651
51652     COND_BUILD_RELEASE="#"
51653     if test "x$BUILD" = "xrelease" ; then
51654         COND_BUILD_RELEASE=""
51655     fi
51656
51657     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
51658     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51659         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
51660     fi
51661
51662     COND_BUILD_RELEASE_UNICODE_0="#"
51663     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51664         COND_BUILD_RELEASE_UNICODE_0=""
51665     fi
51666
51667     COND_BUILD_RELEASE_UNICODE_1="#"
51668     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51669         COND_BUILD_RELEASE_UNICODE_1=""
51670     fi
51671
51672     COND_DEBUG_FLAG_1="#"
51673     if test "x$DEBUG_FLAG" = "x1" ; then
51674         COND_DEBUG_FLAG_1=""
51675     fi
51676
51677     COND_DEBUG_INFO_0="#"
51678     if test "x$DEBUG_INFO" = "x0" ; then
51679         COND_DEBUG_INFO_0=""
51680     fi
51681
51682     COND_DEBUG_INFO_1="#"
51683     if test "x$DEBUG_INFO" = "x1" ; then
51684         COND_DEBUG_INFO_1=""
51685     fi
51686
51687     COND_DEPS_TRACKING_0="#"
51688     if test "x$DEPS_TRACKING" = "x0" ; then
51689         COND_DEPS_TRACKING_0=""
51690     fi
51691
51692     COND_DEPS_TRACKING_1="#"
51693     if test "x$DEPS_TRACKING" = "x1" ; then
51694         COND_DEPS_TRACKING_1=""
51695     fi
51696
51697     COND_GCC_PCH_1="#"
51698     if test "x$GCC_PCH" = "x1" ; then
51699         COND_GCC_PCH_1=""
51700     fi
51701
51702     COND_ICC_PCH_1="#"
51703     if test "x$ICC_PCH" = "x1" ; then
51704         COND_ICC_PCH_1=""
51705     fi
51706
51707     COND_MONOLITHIC_0="#"
51708     if test "x$MONOLITHIC" = "x0" ; then
51709         COND_MONOLITHIC_0=""
51710     fi
51711
51712     COND_MONOLITHIC_0_SHARED_0="#"
51713     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
51714         COND_MONOLITHIC_0_SHARED_0=""
51715     fi
51716
51717     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
51718     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
51719         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
51720     fi
51721
51722     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
51723     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
51724         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
51725     fi
51726
51727     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
51728     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51729         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
51730     fi
51731
51732     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
51733     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51734         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
51735     fi
51736
51737     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
51738     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51739         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
51740     fi
51741
51742     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
51743     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51744         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
51745     fi
51746
51747     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
51748     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51749         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
51750     fi
51751
51752     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
51753     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
51754         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
51755     fi
51756
51757     COND_MONOLITHIC_0_SHARED_1="#"
51758     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
51759         COND_MONOLITHIC_0_SHARED_1=""
51760     fi
51761
51762     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
51763     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
51764         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
51765     fi
51766
51767     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
51768     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
51769         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
51770     fi
51771
51772     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
51773     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51774         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
51775     fi
51776
51777     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
51778     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51779         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
51780     fi
51781
51782     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
51783     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51784         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
51785     fi
51786
51787     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
51788     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
51789         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
51790     fi
51791
51792     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
51793     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
51794         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
51795     fi
51796
51797     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
51798     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
51799         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
51800     fi
51801
51802     COND_MONOLITHIC_0_USE_AUI_1="#"
51803     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
51804         COND_MONOLITHIC_0_USE_AUI_1=""
51805     fi
51806
51807     COND_MONOLITHIC_0_USE_GUI_1="#"
51808     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
51809         COND_MONOLITHIC_0_USE_GUI_1=""
51810     fi
51811
51812     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
51813     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51814         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
51815     fi
51816
51817     COND_MONOLITHIC_0_USE_HTML_1="#"
51818     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
51819         COND_MONOLITHIC_0_USE_HTML_1=""
51820     fi
51821
51822     COND_MONOLITHIC_0_USE_MEDIA_1="#"
51823     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
51824         COND_MONOLITHIC_0_USE_MEDIA_1=""
51825     fi
51826
51827     COND_MONOLITHIC_0_USE_QA_1="#"
51828     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
51829         COND_MONOLITHIC_0_USE_QA_1=""
51830     fi
51831
51832     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
51833     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51834         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
51835     fi
51836
51837     COND_MONOLITHIC_0_USE_STC_1="#"
51838     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
51839         COND_MONOLITHIC_0_USE_STC_1=""
51840     fi
51841
51842     COND_MONOLITHIC_0_USE_XRC_1="#"
51843     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
51844         COND_MONOLITHIC_0_USE_XRC_1=""
51845     fi
51846
51847     COND_MONOLITHIC_1="#"
51848     if test "x$MONOLITHIC" = "x1" ; then
51849         COND_MONOLITHIC_1=""
51850     fi
51851
51852     COND_MONOLITHIC_1_SHARED_0="#"
51853     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
51854         COND_MONOLITHIC_1_SHARED_0=""
51855     fi
51856
51857     COND_MONOLITHIC_1_SHARED_1="#"
51858     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
51859         COND_MONOLITHIC_1_SHARED_1=""
51860     fi
51861
51862     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
51863     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
51864         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
51865     fi
51866
51867     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
51868     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
51869         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
51870     fi
51871
51872     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
51873     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51874         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
51875     fi
51876
51877     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
51878     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51879         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
51880     fi
51881
51882     COND_PLATFORM_MACOSX_1="#"
51883     if test "x$PLATFORM_MACOSX" = "x1" ; then
51884         COND_PLATFORM_MACOSX_1=""
51885     fi
51886
51887     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
51888     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
51889         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
51890     fi
51891
51892     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
51893     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
51894         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
51895     fi
51896
51897     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
51898     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
51899         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
51900     fi
51901
51902     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
51903     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
51904         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
51905     fi
51906
51907     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
51908     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
51909         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
51910     fi
51911
51912     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
51913     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
51914         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
51915     fi
51916
51917     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
51918     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
51919         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
51920     fi
51921
51922     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
51923     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
51924         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
51925     fi
51926
51927     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
51928     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51929         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
51930     fi
51931
51932     COND_PLATFORM_MACOS_1="#"
51933     if test "x$PLATFORM_MACOS" = "x1" ; then
51934         COND_PLATFORM_MACOS_1=""
51935     fi
51936
51937     COND_PLATFORM_MSDOS_1="#"
51938     if test "x$PLATFORM_MSDOS" = "x1" ; then
51939         COND_PLATFORM_MSDOS_1=""
51940     fi
51941
51942     COND_PLATFORM_OS2_1="#"
51943     if test "x$PLATFORM_OS2" = "x1" ; then
51944         COND_PLATFORM_OS2_1=""
51945     fi
51946
51947     COND_PLATFORM_UNIX_0="#"
51948     if test "x$PLATFORM_UNIX" = "x0" ; then
51949         COND_PLATFORM_UNIX_0=""
51950     fi
51951
51952     COND_PLATFORM_UNIX_1="#"
51953     if test "x$PLATFORM_UNIX" = "x1" ; then
51954         COND_PLATFORM_UNIX_1=""
51955     fi
51956
51957     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
51958     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
51959         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
51960     fi
51961
51962     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
51963     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
51964         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
51965     fi
51966
51967     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
51968     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
51969         COND_PLATFORM_UNIX_1_USE_GUI_1=""
51970     fi
51971
51972     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
51973     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
51974         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
51975     fi
51976
51977     COND_PLATFORM_WIN32_0="#"
51978     if test "x$PLATFORM_WIN32" = "x0" ; then
51979         COND_PLATFORM_WIN32_0=""
51980     fi
51981
51982     COND_PLATFORM_WIN32_1="#"
51983     if test "x$PLATFORM_WIN32" = "x1" ; then
51984         COND_PLATFORM_WIN32_1=""
51985     fi
51986
51987     COND_SHARED_0="#"
51988     if test "x$SHARED" = "x0" ; then
51989         COND_SHARED_0=""
51990     fi
51991
51992     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
51993     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51994         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
51995     fi
51996
51997     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
51998     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51999         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52000     fi
52001
52002     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52003     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52004         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52005     fi
52006
52007     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52008     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52009         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52010     fi
52011
52012     COND_SHARED_0_USE_STC_1="#"
52013     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52014         COND_SHARED_0_USE_STC_1=""
52015     fi
52016
52017     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
52018     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52019         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
52020     fi
52021
52022     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
52023     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52024         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
52025     fi
52026
52027     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
52028     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52029         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
52030     fi
52031
52032     COND_SHARED_1="#"
52033     if test "x$SHARED" = "x1" ; then
52034         COND_SHARED_1=""
52035     fi
52036
52037     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52038     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52039         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52040     fi
52041
52042     COND_TOOLKIT_="#"
52043     if test "x$TOOLKIT" = "x" ; then
52044         COND_TOOLKIT_=""
52045     fi
52046
52047     COND_TOOLKIT_COCOA="#"
52048     if test "x$TOOLKIT" = "xCOCOA" ; then
52049         COND_TOOLKIT_COCOA=""
52050     fi
52051
52052     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52053     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52054         COND_TOOLKIT_COCOA_USE_GUI_1=""
52055     fi
52056
52057     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52058     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52059         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52060     fi
52061
52062     COND_TOOLKIT_DFB="#"
52063     if test "x$TOOLKIT" = "xDFB" ; then
52064         COND_TOOLKIT_DFB=""
52065     fi
52066
52067     COND_TOOLKIT_DFB_USE_GUI_1="#"
52068     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52069         COND_TOOLKIT_DFB_USE_GUI_1=""
52070     fi
52071
52072     COND_TOOLKIT_GTK="#"
52073     if test "x$TOOLKIT" = "xGTK" ; then
52074         COND_TOOLKIT_GTK=""
52075     fi
52076
52077     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52078     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52079         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52080     fi
52081
52082     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52083     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52084         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52085     fi
52086
52087     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52088     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52089         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52090     fi
52091
52092     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52093     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52094         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52095     fi
52096
52097     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52098     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52099         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52100     fi
52101
52102     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52103     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52104         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52105     fi
52106
52107     COND_TOOLKIT_GTK_USE_GUI_1="#"
52108     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52109         COND_TOOLKIT_GTK_USE_GUI_1=""
52110     fi
52111
52112     COND_TOOLKIT_MAC="#"
52113     if test "x$TOOLKIT" = "xMAC" ; then
52114         COND_TOOLKIT_MAC=""
52115     fi
52116
52117     COND_TOOLKIT_MAC_USE_GUI_1="#"
52118     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52119         COND_TOOLKIT_MAC_USE_GUI_1=""
52120     fi
52121
52122     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
52123     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52124         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
52125     fi
52126
52127     COND_TOOLKIT_MGL="#"
52128     if test "x$TOOLKIT" = "xMGL" ; then
52129         COND_TOOLKIT_MGL=""
52130     fi
52131
52132     COND_TOOLKIT_MGL_USE_GUI_1="#"
52133     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52134         COND_TOOLKIT_MGL_USE_GUI_1=""
52135     fi
52136
52137     COND_TOOLKIT_MOTIF="#"
52138     if test "x$TOOLKIT" = "xMOTIF" ; then
52139         COND_TOOLKIT_MOTIF=""
52140     fi
52141
52142     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52143     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52144         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52145     fi
52146
52147     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52148     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52149         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52150     fi
52151
52152     COND_TOOLKIT_MSW="#"
52153     if test "x$TOOLKIT" = "xMSW" ; then
52154         COND_TOOLKIT_MSW=""
52155     fi
52156
52157     COND_TOOLKIT_MSW_USE_GUI_1="#"
52158     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52159         COND_TOOLKIT_MSW_USE_GUI_1=""
52160     fi
52161
52162     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52163     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52164         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52165     fi
52166
52167     COND_TOOLKIT_MSW_WXUNIV_0="#"
52168     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52169         COND_TOOLKIT_MSW_WXUNIV_0=""
52170     fi
52171
52172     COND_TOOLKIT_PM="#"
52173     if test "x$TOOLKIT" = "xPM" ; then
52174         COND_TOOLKIT_PM=""
52175     fi
52176
52177     COND_TOOLKIT_PM_USE_GUI_1="#"
52178     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52179         COND_TOOLKIT_PM_USE_GUI_1=""
52180     fi
52181
52182     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52183     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52184         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52185     fi
52186
52187     COND_TOOLKIT_WINCE="#"
52188     if test "x$TOOLKIT" = "xWINCE" ; then
52189         COND_TOOLKIT_WINCE=""
52190     fi
52191
52192     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52193     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52194         COND_TOOLKIT_WINCE_USE_GUI_1=""
52195     fi
52196
52197     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52198     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52199         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52200     fi
52201
52202     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52203     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52204         COND_TOOLKIT_WINCE_WXUNIV_0=""
52205     fi
52206
52207     COND_TOOLKIT_X11="#"
52208     if test "x$TOOLKIT" = "xX11" ; then
52209         COND_TOOLKIT_X11=""
52210     fi
52211
52212     COND_TOOLKIT_X11_USE_GUI_1="#"
52213     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52214         COND_TOOLKIT_X11_USE_GUI_1=""
52215     fi
52216
52217     COND_UNICODE_1="#"
52218     if test "x$UNICODE" = "x1" ; then
52219         COND_UNICODE_1=""
52220     fi
52221
52222     COND_USE_EXCEPTIONS_0="#"
52223     if test "x$USE_EXCEPTIONS" = "x0" ; then
52224         COND_USE_EXCEPTIONS_0=""
52225     fi
52226
52227     COND_USE_EXCEPTIONS_1="#"
52228     if test "x$USE_EXCEPTIONS" = "x1" ; then
52229         COND_USE_EXCEPTIONS_1=""
52230     fi
52231
52232     COND_USE_GUI_0="#"
52233     if test "x$USE_GUI" = "x0" ; then
52234         COND_USE_GUI_0=""
52235     fi
52236
52237     COND_USE_GUI_1="#"
52238     if test "x$USE_GUI" = "x1" ; then
52239         COND_USE_GUI_1=""
52240     fi
52241
52242     COND_USE_GUI_1_USE_OPENGL_1="#"
52243     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52244         COND_USE_GUI_1_USE_OPENGL_1=""
52245     fi
52246
52247     COND_USE_GUI_1_WXUNIV_0="#"
52248     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52249         COND_USE_GUI_1_WXUNIV_0=""
52250     fi
52251
52252     COND_USE_GUI_1_WXUNIV_1="#"
52253     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52254         COND_USE_GUI_1_WXUNIV_1=""
52255     fi
52256
52257     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52258     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52259         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52260     fi
52261
52262     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52263     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52264         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52265     fi
52266
52267     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52268     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52269         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52270     fi
52271
52272     COND_USE_PCH_1="#"
52273     if test "x$USE_PCH" = "x1" ; then
52274         COND_USE_PCH_1=""
52275     fi
52276
52277     COND_USE_PLUGINS_0="#"
52278     if test "x$USE_PLUGINS" = "x0" ; then
52279         COND_USE_PLUGINS_0=""
52280     fi
52281
52282     COND_USE_RTTI_0="#"
52283     if test "x$USE_RTTI" = "x0" ; then
52284         COND_USE_RTTI_0=""
52285     fi
52286
52287     COND_USE_RTTI_1="#"
52288     if test "x$USE_RTTI" = "x1" ; then
52289         COND_USE_RTTI_1=""
52290     fi
52291
52292     COND_USE_SOSYMLINKS_1="#"
52293     if test "x$USE_SOSYMLINKS" = "x1" ; then
52294         COND_USE_SOSYMLINKS_1=""
52295     fi
52296
52297     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52298     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52299         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52300     fi
52301
52302     COND_USE_SOVERLINUX_1="#"
52303     if test "x$USE_SOVERLINUX" = "x1" ; then
52304         COND_USE_SOVERLINUX_1=""
52305     fi
52306
52307     COND_USE_SOVERSION_0="#"
52308     if test "x$USE_SOVERSION" = "x0" ; then
52309         COND_USE_SOVERSION_0=""
52310     fi
52311
52312     COND_USE_SOVERSOLARIS_1="#"
52313     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52314         COND_USE_SOVERSOLARIS_1=""
52315     fi
52316
52317     COND_USE_STC_1="#"
52318     if test "x$USE_STC" = "x1" ; then
52319         COND_USE_STC_1=""
52320     fi
52321
52322     COND_USE_THREADS_0="#"
52323     if test "x$USE_THREADS" = "x0" ; then
52324         COND_USE_THREADS_0=""
52325     fi
52326
52327     COND_USE_THREADS_1="#"
52328     if test "x$USE_THREADS" = "x1" ; then
52329         COND_USE_THREADS_1=""
52330     fi
52331
52332     COND_USE_XRC_1="#"
52333     if test "x$USE_XRC" = "x1" ; then
52334         COND_USE_XRC_1=""
52335     fi
52336
52337     COND_WINDOWS_IMPLIB_1="#"
52338     if test "x$WINDOWS_IMPLIB" = "x1" ; then
52339         COND_WINDOWS_IMPLIB_1=""
52340     fi
52341
52342     COND_WITH_PLUGIN_SDL_1="#"
52343     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52344         COND_WITH_PLUGIN_SDL_1=""
52345     fi
52346
52347     COND_WXUNIV_0="#"
52348     if test "x$WXUNIV" = "x0" ; then
52349         COND_WXUNIV_0=""
52350     fi
52351
52352     COND_WXUNIV_1="#"
52353     if test "x$WXUNIV" = "x1" ; then
52354         COND_WXUNIV_1=""
52355     fi
52356
52357     COND_WXUSE_EXPAT_BUILTIN="#"
52358     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52359         COND_WXUSE_EXPAT_BUILTIN=""
52360     fi
52361
52362     COND_WXUSE_LIBJPEG_BUILTIN="#"
52363     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52364         COND_WXUSE_LIBJPEG_BUILTIN=""
52365     fi
52366
52367     COND_WXUSE_LIBPNG_BUILTIN="#"
52368     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52369         COND_WXUSE_LIBPNG_BUILTIN=""
52370     fi
52371
52372     COND_WXUSE_LIBTIFF_BUILTIN="#"
52373     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52374         COND_WXUSE_LIBTIFF_BUILTIN=""
52375     fi
52376
52377     COND_WXUSE_REGEX_BUILTIN="#"
52378     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52379         COND_WXUSE_REGEX_BUILTIN=""
52380     fi
52381
52382     COND_WXUSE_ZLIB_BUILTIN="#"
52383     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52384         COND_WXUSE_ZLIB_BUILTIN=""
52385     fi
52386
52387
52388
52389     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
52390         { { 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
52391 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;}
52392    { (exit 1); exit 1; }; }
52393     fi
52394
52395     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
52396         { { 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
52397 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;}
52398    { (exit 1); exit 1; }; }
52399     fi
52400
52401
52402 case ${INSTALL} in
52403   /* ) # Absolute
52404      ;;
52405   ?:* ) # Drive letter, considered as absolute.
52406      ;;
52407   *)
52408      INSTALL=`pwd`/${INSTALL} ;;
52409 esac
52410
52411 if test "$wxUSE_GUI" = "yes"; then
52412
52413 if test "$wxUSE_MSW" = 1 ; then
52414     if test "x$WINDRES" = "x"; then
52415         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
52416 echo "$as_me: error: Required windres program not found" >&2;}
52417    { (exit 1); exit 1; }; }
52418     fi
52419
52420     RESCOMP="$WINDRES"
52421 fi
52422
52423 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
52424             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
52425     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
52426
52427         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
52428
52429     # Extract the first word of "DeRez", so it can be a program name with args.
52430 set dummy DeRez; ac_word=$2
52431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52433 if test "${ac_cv_prog_DEREZ+set}" = set; then
52434   echo $ECHO_N "(cached) $ECHO_C" >&6
52435 else
52436   if test -n "$DEREZ"; then
52437   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
52438 else
52439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52440 for as_dir in $PATH
52441 do
52442   IFS=$as_save_IFS
52443   test -z "$as_dir" && as_dir=.
52444   for ac_exec_ext in '' $ac_executable_extensions; do
52445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52446     ac_cv_prog_DEREZ="DeRez"
52447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52448     break 2
52449   fi
52450 done
52451 done
52452 IFS=$as_save_IFS
52453
52454   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
52455 fi
52456 fi
52457 DEREZ=$ac_cv_prog_DEREZ
52458 if test -n "$DEREZ"; then
52459   { echo "$as_me:$LINENO: result: $DEREZ" >&5
52460 echo "${ECHO_T}$DEREZ" >&6; }
52461 else
52462   { echo "$as_me:$LINENO: result: no" >&5
52463 echo "${ECHO_T}no" >&6; }
52464 fi
52465
52466
52467
52468     MACSETFILE="\$(SETFILE)"
52469
52470             if test "$wxUSE_MAC" = 1; then
52471         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
52472         RESCOMP="$REZ"
52473         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
52474     else
52475         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
52476         RESCOMP="cat /dev/null \| $REZ"
52477         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
52478     fi
52479
52480 else
52481         MACSETFILE="@true"
52482
52483     if test "$wxUSE_PM" = 1; then
52484         RESCOMP="emxbind"
52485         WXCONFIG_RESFLAGS="-ep"
52486
52487                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
52488     else
52489         POSTLINK_COMMAND="@true"
52490     fi
52491 fi
52492
52493 fi
52494
52495
52496 if test $GCC_PCH = 1
52497 then
52498     if test "$wx_cv_gcc_pch_bug" = yes; then
52499         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
52500 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
52501         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
52502 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
52503         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
52504 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
52505     fi
52506
52507     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
52508 fi
52509
52510
52511 if test "$wxUSE_MAC" = 1 ; then
52512     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
52513         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
52514         mv temp bk-deps
52515         chmod +x bk-deps
52516     fi
52517 fi
52518
52519 if test "$wxUSE_SHARED" = "yes"; then
52520                 case "${host}" in
52521       *-pc-os2_emx | *-pc-os2-emx )
52522         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52523         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52524         cp -p ${srcdir}/src/os2/dllnames.sh .
52525         cp -p ${srcdir}/src/os2/dllar.sh .
52526       ;;
52527     esac
52528 fi
52529 if test "$wxUSE_OMF" = "yes"; then
52530     case "${host}" in
52531       *-pc-os2_emx | *-pc-os2-emx )
52532         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
52533         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52534         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52535       ;;
52536     esac
52537 fi
52538
52539 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
52540
52541
52542 case "${host}" in
52543     *-*-solaris2* )
52544                         if test "$GCC" = yes; then
52545             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
52546             LIBS=`echo $LIBS | sed 's/-mt//'`
52547             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
52548         fi
52549         ;;
52550
52551     *-*-linux* )
52552                         if test "x$SUNCXX" = xyes; then
52553             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
52554             LIBS=`echo $LIBS | sed 's/-pthread//'`
52555             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
52556         fi
52557         ;;
52558 esac
52559
52560 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
52561 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
52562
52563 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
52564
52565
52566
52567
52568
52569
52570
52571
52572
52573
52574
52575
52576
52577
52578
52579
52580
52581
52582
52583
52584
52585
52586
52587
52588
52589
52590
52591
52592
52593
52594
52595
52596
52597
52598
52599
52600
52601
52602
52603
52604
52605
52606
52607
52608
52609
52610
52611
52612
52613
52614
52615
52616
52617
52618
52619
52620
52621
52622
52623
52624 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52625 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52626 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52627 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
52628   echo $ECHO_N "(cached) $ECHO_C" >&6
52629 else
52630   cat >conftest.make <<\_ACEOF
52631 SHELL = /bin/sh
52632 all:
52633         @echo '@@@%%%=$(MAKE)=@@@%%%'
52634 _ACEOF
52635 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
52636 case `${MAKE-make} -f conftest.make 2>/dev/null` in
52637   *@@@%%%=?*=@@@%%%*)
52638     eval ac_cv_prog_make_${ac_make}_set=yes;;
52639   *)
52640     eval ac_cv_prog_make_${ac_make}_set=no;;
52641 esac
52642 rm -f conftest.make
52643 fi
52644 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52645   { echo "$as_me:$LINENO: result: yes" >&5
52646 echo "${ECHO_T}yes" >&6; }
52647   SET_MAKE=
52648 else
52649   { echo "$as_me:$LINENO: result: no" >&5
52650 echo "${ECHO_T}no" >&6; }
52651   SET_MAKE="MAKE=${MAKE-make}"
52652 fi
52653
52654
52655
52656 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
52657
52658
52659 if test "$USE_WIN32" = 1; then
52660     ac_config_commands="$ac_config_commands
52661             rcdefs.h
52662         "
52663
52664 fi
52665
52666 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
52667
52668
52669 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
52670
52671
52672 if test "$wx_cv_version_script" = "yes"; then
52673     ac_config_files="$ac_config_files version-script"
52674
52675 fi
52676 ac_config_files="$ac_config_files Makefile"
52677
52678
52679 ac_config_commands="$ac_config_commands wx-config"
52680
52681
52682
52683 if test "$wxWITH_SUBDIRS" != "no"; then
52684 if test "$wxUSE_GUI" = "yes"; then
52685     SUBDIRS="samples demos utils"
52686 else
52687             SUBDIRS="samples utils"
52688 fi
52689
52690
52691
52692 # Check whether --with-cppunit-prefix was given.
52693 if test "${with_cppunit_prefix+set}" = set; then
52694   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
52695 else
52696   cppunit_config_prefix=""
52697 fi
52698
52699
52700 # Check whether --with-cppunit-exec-prefix was given.
52701 if test "${with_cppunit_exec_prefix+set}" = set; then
52702   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
52703 else
52704   cppunit_config_exec_prefix=""
52705 fi
52706
52707
52708   if test x$cppunit_config_exec_prefix != x ; then
52709      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
52710      if test x${CPPUNIT_CONFIG+set} != xset ; then
52711         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
52712      fi
52713   fi
52714   if test x$cppunit_config_prefix != x ; then
52715      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
52716      if test x${CPPUNIT_CONFIG+set} != xset ; then
52717         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
52718      fi
52719   fi
52720
52721   # Extract the first word of "cppunit-config", so it can be a program name with args.
52722 set dummy cppunit-config; ac_word=$2
52723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52725 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
52726   echo $ECHO_N "(cached) $ECHO_C" >&6
52727 else
52728   case $CPPUNIT_CONFIG in
52729   [\\/]* | ?:[\\/]*)
52730   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
52731   ;;
52732   *)
52733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52734 for as_dir in $PATH
52735 do
52736   IFS=$as_save_IFS
52737   test -z "$as_dir" && as_dir=.
52738   for ac_exec_ext in '' $ac_executable_extensions; do
52739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52740     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
52741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52742     break 2
52743   fi
52744 done
52745 done
52746 IFS=$as_save_IFS
52747
52748   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
52749   ;;
52750 esac
52751 fi
52752 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
52753 if test -n "$CPPUNIT_CONFIG"; then
52754   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
52755 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
52756 else
52757   { echo "$as_me:$LINENO: result: no" >&5
52758 echo "${ECHO_T}no" >&6; }
52759 fi
52760
52761
52762   cppunit_version_min=1.8.0
52763
52764   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
52765 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
52766   no_cppunit=""
52767   if test "$CPPUNIT_CONFIG" = "no" ; then
52768     { echo "$as_me:$LINENO: result: no" >&5
52769 echo "${ECHO_T}no" >&6; }
52770     no_cppunit=yes
52771   else
52772     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
52773     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
52774     cppunit_version=`$CPPUNIT_CONFIG --version`
52775
52776     cppunit_major_version=`echo $cppunit_version | \
52777            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52778     cppunit_minor_version=`echo $cppunit_version | \
52779            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52780     cppunit_micro_version=`echo $cppunit_version | \
52781            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52782
52783     cppunit_major_min=`echo $cppunit_version_min | \
52784            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52785     cppunit_minor_min=`echo $cppunit_version_min | \
52786            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52787     cppunit_micro_min=`echo $cppunit_version_min | \
52788            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52789
52790     cppunit_version_proper=`expr \
52791         $cppunit_major_version \> $cppunit_major_min \| \
52792         $cppunit_major_version \= $cppunit_major_min \& \
52793         $cppunit_minor_version \> $cppunit_minor_min \| \
52794         $cppunit_major_version \= $cppunit_major_min \& \
52795         $cppunit_minor_version \= $cppunit_minor_min \& \
52796         $cppunit_micro_version \>= $cppunit_micro_min `
52797
52798     if test "$cppunit_version_proper" = "1" ; then
52799       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
52800 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
52801     else
52802       { echo "$as_me:$LINENO: result: no" >&5
52803 echo "${ECHO_T}no" >&6; }
52804       no_cppunit=yes
52805     fi
52806   fi
52807
52808   if test "x$no_cppunit" = x ; then
52809      SUBDIRS="$SUBDIRS tests"
52810   else
52811      CPPUNIT_CFLAGS=""
52812      CPPUNIT_LIBS=""
52813      :
52814   fi
52815
52816
52817
52818
52819
52820 for subdir in $SUBDIRS; do
52821     if test -d ${srcdir}/${subdir} ; then
52822         if test "$wxUSE_GUI" = "yes"; then
52823             if test ${subdir} = "samples"; then
52824                                                 makefiles="samples/Makefile.in $makefiles"
52825                 for sample in $SAMPLES_SUBDIRS; do
52826                     if test -d $srcdir/samples/$sample; then
52827                         makefiles="samples/$sample/Makefile.in $makefiles"
52828                     fi
52829                 done
52830             else
52831                                                                 disabled_var=DISABLED_`echo $subdir | tr a-z A-Z`
52832                 eval "disabled=\$$disabled_var"
52833                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
52834                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
52835             fi
52836         else
52837                                                 if test ${subdir} = "samples"; then
52838                 makefiles="samples/Makefile.in samples/console/Makefile.in"
52839             elif test ${subdir} = "utils"; then
52840                 makefiles=""
52841                 for util in HelpGen tex2rtf ; do
52842                     if test -d $srcdir/utils/$util ; then
52843                         makefiles="utils/$util/Makefile.in \
52844                                    utils/$util/src/Makefile.in \
52845                                    $makefiles"
52846                     fi
52847                 done
52848             else
52849                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
52850             fi
52851         fi
52852
52853         for mkin in $makefiles ; do
52854             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
52855             ac_config_files="$ac_config_files $mk"
52856
52857         done
52858     fi
52859 done
52860 fi
52861 cat >confcache <<\_ACEOF
52862 # This file is a shell script that caches the results of configure
52863 # tests run on this system so they can be shared between configure
52864 # scripts and configure runs, see configure's option --config-cache.
52865 # It is not useful on other systems.  If it contains results you don't
52866 # want to keep, you may remove or edit it.
52867 #
52868 # config.status only pays attention to the cache file if you give it
52869 # the --recheck option to rerun configure.
52870 #
52871 # `ac_cv_env_foo' variables (set or unset) will be overridden when
52872 # loading this file, other *unset* `ac_cv_foo' will be assigned the
52873 # following values.
52874
52875 _ACEOF
52876
52877 # The following way of writing the cache mishandles newlines in values,
52878 # but we know of no workaround that is simple, portable, and efficient.
52879 # So, we kill variables containing newlines.
52880 # Ultrix sh set writes to stderr and can't be redirected directly,
52881 # and sets the high bit in the cache file unless we assign to the vars.
52882 (
52883   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
52884     eval ac_val=\$$ac_var
52885     case $ac_val in #(
52886     *${as_nl}*)
52887       case $ac_var in #(
52888       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
52889 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
52890       esac
52891       case $ac_var in #(
52892       _ | IFS | as_nl) ;; #(
52893       *) $as_unset $ac_var ;;
52894       esac ;;
52895     esac
52896   done
52897
52898   (set) 2>&1 |
52899     case $as_nl`(ac_space=' '; set) 2>&1` in #(
52900     *${as_nl}ac_space=\ *)
52901       # `set' does not quote correctly, so add quotes (double-quote
52902       # substitution turns \\\\ into \\, and sed turns \\ into \).
52903       sed -n \
52904         "s/'/'\\\\''/g;
52905           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
52906       ;; #(
52907     *)
52908       # `set' quotes correctly as required by POSIX, so do not add quotes.
52909       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
52910       ;;
52911     esac |
52912     sort
52913 ) |
52914   sed '
52915      /^ac_cv_env_/b end
52916      t clear
52917      :clear
52918      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52919      t end
52920      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
52921      :end' >>confcache
52922 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
52923   if test -w "$cache_file"; then
52924     test "x$cache_file" != "x/dev/null" &&
52925       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
52926 echo "$as_me: updating cache $cache_file" >&6;}
52927     cat confcache >$cache_file
52928   else
52929     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
52930 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
52931   fi
52932 fi
52933 rm -f confcache
52934
52935 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52936 # Let make expand exec_prefix.
52937 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52938
52939 DEFS=-DHAVE_CONFIG_H
52940
52941 ac_libobjs=
52942 ac_ltlibobjs=
52943 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52944   # 1. Remove the extension, and $U if already installed.
52945   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
52946   ac_i=`echo "$ac_i" | sed "$ac_script"`
52947   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
52948   #    will be set to the directory where LIBOBJS objects are built.
52949   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
52950   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
52951 done
52952 LIBOBJS=$ac_libobjs
52953
52954 LTLIBOBJS=$ac_ltlibobjs
52955
52956
52957
52958 : ${CONFIG_STATUS=./config.status}
52959 ac_clean_files_save=$ac_clean_files
52960 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52961 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52962 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52963 cat >$CONFIG_STATUS <<_ACEOF
52964 #! $SHELL
52965 # Generated by $as_me.
52966 # Run this file to recreate the current configuration.
52967 # Compiler output produced by configure, useful for debugging
52968 # configure, is in config.log if it exists.
52969
52970 debug=false
52971 ac_cs_recheck=false
52972 ac_cs_silent=false
52973 SHELL=\${CONFIG_SHELL-$SHELL}
52974 _ACEOF
52975
52976 cat >>$CONFIG_STATUS <<\_ACEOF
52977 ## --------------------- ##
52978 ## M4sh Initialization.  ##
52979 ## --------------------- ##
52980
52981 # Be more Bourne compatible
52982 DUALCASE=1; export DUALCASE # for MKS sh
52983 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52984   emulate sh
52985   NULLCMD=:
52986   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52987   # is contrary to our usage.  Disable this feature.
52988   alias -g '${1+"$@"}'='"$@"'
52989   setopt NO_GLOB_SUBST
52990 else
52991   case `(set -o) 2>/dev/null` in
52992   *posix*) set -o posix ;;
52993 esac
52994
52995 fi
52996
52997
52998
52999
53000 # PATH needs CR
53001 # Avoid depending upon Character Ranges.
53002 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53003 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53004 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53005 as_cr_digits='0123456789'
53006 as_cr_alnum=$as_cr_Letters$as_cr_digits
53007
53008 # The user is always right.
53009 if test "${PATH_SEPARATOR+set}" != set; then
53010   echo "#! /bin/sh" >conf$$.sh
53011   echo  "exit 0"   >>conf$$.sh
53012   chmod +x conf$$.sh
53013   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53014     PATH_SEPARATOR=';'
53015   else
53016     PATH_SEPARATOR=:
53017   fi
53018   rm -f conf$$.sh
53019 fi
53020
53021 # Support unset when possible.
53022 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53023   as_unset=unset
53024 else
53025   as_unset=false
53026 fi
53027
53028
53029 # IFS
53030 # We need space, tab and new line, in precisely that order.  Quoting is
53031 # there to prevent editors from complaining about space-tab.
53032 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53033 # splitting by setting IFS to empty value.)
53034 as_nl='
53035 '
53036 IFS=" ""        $as_nl"
53037
53038 # Find who we are.  Look in the path if we contain no directory separator.
53039 case $0 in
53040   *[\\/]* ) as_myself=$0 ;;
53041   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53042 for as_dir in $PATH
53043 do
53044   IFS=$as_save_IFS
53045   test -z "$as_dir" && as_dir=.
53046   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53047 done
53048 IFS=$as_save_IFS
53049
53050      ;;
53051 esac
53052 # We did not find ourselves, most probably we were run as `sh COMMAND'
53053 # in which case we are not to be found in the path.
53054 if test "x$as_myself" = x; then
53055   as_myself=$0
53056 fi
53057 if test ! -f "$as_myself"; then
53058   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53059   { (exit 1); exit 1; }
53060 fi
53061
53062 # Work around bugs in pre-3.0 UWIN ksh.
53063 for as_var in ENV MAIL MAILPATH
53064 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53065 done
53066 PS1='$ '
53067 PS2='> '
53068 PS4='+ '
53069
53070 # NLS nuisances.
53071 for as_var in \
53072   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53073   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53074   LC_TELEPHONE LC_TIME
53075 do
53076   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53077     eval $as_var=C; export $as_var
53078   else
53079     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53080   fi
53081 done
53082
53083 # Required to use basename.
53084 if expr a : '\(a\)' >/dev/null 2>&1 &&
53085    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53086   as_expr=expr
53087 else
53088   as_expr=false
53089 fi
53090
53091 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53092   as_basename=basename
53093 else
53094   as_basename=false
53095 fi
53096
53097
53098 # Name of the executable.
53099 as_me=`$as_basename -- "$0" ||
53100 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53101          X"$0" : 'X\(//\)$' \| \
53102          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53103 echo X/"$0" |
53104     sed '/^.*\/\([^/][^/]*\)\/*$/{
53105             s//\1/
53106             q
53107           }
53108           /^X\/\(\/\/\)$/{
53109             s//\1/
53110             q
53111           }
53112           /^X\/\(\/\).*/{
53113             s//\1/
53114             q
53115           }
53116           s/.*/./; q'`
53117
53118 # CDPATH.
53119 $as_unset CDPATH
53120
53121
53122
53123   as_lineno_1=$LINENO
53124   as_lineno_2=$LINENO
53125   test "x$as_lineno_1" != "x$as_lineno_2" &&
53126   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53127
53128   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53129   # uniformly replaced by the line number.  The first 'sed' inserts a
53130   # line-number line after each line using $LINENO; the second 'sed'
53131   # does the real work.  The second script uses 'N' to pair each
53132   # line-number line with the line containing $LINENO, and appends
53133   # trailing '-' during substitution so that $LINENO is not a special
53134   # case at line end.
53135   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53136   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53137   # E. McMahon (1931-1989) for sed's syntax.  :-)
53138   sed -n '
53139     p
53140     /[$]LINENO/=
53141   ' <$as_myself |
53142     sed '
53143       s/[$]LINENO.*/&-/
53144       t lineno
53145       b
53146       :lineno
53147       N
53148       :loop
53149       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53150       t loop
53151       s/-\n.*//
53152     ' >$as_me.lineno &&
53153   chmod +x "$as_me.lineno" ||
53154     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53155    { (exit 1); exit 1; }; }
53156
53157   # Don't try to exec as it changes $[0], causing all sort of problems
53158   # (the dirname of $[0] is not the place where we might find the
53159   # original and so on.  Autoconf is especially sensitive to this).
53160   . "./$as_me.lineno"
53161   # Exit status is that of the last command.
53162   exit
53163 }
53164
53165
53166 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53167   as_dirname=dirname
53168 else
53169   as_dirname=false
53170 fi
53171
53172 ECHO_C= ECHO_N= ECHO_T=
53173 case `echo -n x` in
53174 -n*)
53175   case `echo 'x\c'` in
53176   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53177   *)   ECHO_C='\c';;
53178   esac;;
53179 *)
53180   ECHO_N='-n';;
53181 esac
53182
53183 if expr a : '\(a\)' >/dev/null 2>&1 &&
53184    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53185   as_expr=expr
53186 else
53187   as_expr=false
53188 fi
53189
53190 rm -f conf$$ conf$$.exe conf$$.file
53191 if test -d conf$$.dir; then
53192   rm -f conf$$.dir/conf$$.file
53193 else
53194   rm -f conf$$.dir
53195   mkdir conf$$.dir
53196 fi
53197 echo >conf$$.file
53198 if ln -s conf$$.file conf$$ 2>/dev/null; then
53199   as_ln_s='ln -s'
53200   # ... but there are two gotchas:
53201   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53202   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53203   # In both cases, we have to default to `cp -p'.
53204   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53205     as_ln_s='cp -p'
53206 elif ln conf$$.file conf$$ 2>/dev/null; then
53207   as_ln_s=ln
53208 else
53209   as_ln_s='cp -p'
53210 fi
53211 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53212 rmdir conf$$.dir 2>/dev/null
53213
53214 if mkdir -p . 2>/dev/null; then
53215   as_mkdir_p=:
53216 else
53217   test -d ./-p && rmdir ./-p
53218   as_mkdir_p=false
53219 fi
53220
53221 if test -x / >/dev/null 2>&1; then
53222   as_test_x='test -x'
53223 else
53224   if ls -dL / >/dev/null 2>&1; then
53225     as_ls_L_option=L
53226   else
53227     as_ls_L_option=
53228   fi
53229   as_test_x='
53230     eval sh -c '\''
53231       if test -d "$1"; then
53232         test -d "$1/.";
53233       else
53234         case $1 in
53235         -*)set "./$1";;
53236         esac;
53237         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53238         ???[sx]*):;;*)false;;esac;fi
53239     '\'' sh
53240   '
53241 fi
53242 as_executable_p=$as_test_x
53243
53244 # Sed expression to map a string onto a valid CPP name.
53245 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53246
53247 # Sed expression to map a string onto a valid variable name.
53248 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53249
53250
53251 exec 6>&1
53252
53253 # Save the log message, to keep $[0] and so on meaningful, and to
53254 # report actual input values of CONFIG_FILES etc. instead of their
53255 # values after options handling.
53256 ac_log="
53257 This file was extended by wxWidgets $as_me 2.9.0, which was
53258 generated by GNU Autoconf 2.61.  Invocation command line was
53259
53260   CONFIG_FILES    = $CONFIG_FILES
53261   CONFIG_HEADERS  = $CONFIG_HEADERS
53262   CONFIG_LINKS    = $CONFIG_LINKS
53263   CONFIG_COMMANDS = $CONFIG_COMMANDS
53264   $ $0 $@
53265
53266 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53267 "
53268
53269 _ACEOF
53270
53271 cat >>$CONFIG_STATUS <<_ACEOF
53272 # Files that config.status was made for.
53273 config_files="$ac_config_files"
53274 config_headers="$ac_config_headers"
53275 config_commands="$ac_config_commands"
53276
53277 _ACEOF
53278
53279 cat >>$CONFIG_STATUS <<\_ACEOF
53280 ac_cs_usage="\
53281 \`$as_me' instantiates files from templates according to the
53282 current configuration.
53283
53284 Usage: $0 [OPTIONS] [FILE]...
53285
53286   -h, --help       print this help, then exit
53287   -V, --version    print version number and configuration settings, then exit
53288   -q, --quiet      do not print progress messages
53289   -d, --debug      don't remove temporary files
53290       --recheck    update $as_me by reconfiguring in the same conditions
53291   --file=FILE[:TEMPLATE]
53292                    instantiate the configuration file FILE
53293   --header=FILE[:TEMPLATE]
53294                    instantiate the configuration header FILE
53295
53296 Configuration files:
53297 $config_files
53298
53299 Configuration headers:
53300 $config_headers
53301
53302 Configuration commands:
53303 $config_commands
53304
53305 Report bugs to <bug-autoconf@gnu.org>."
53306
53307 _ACEOF
53308 cat >>$CONFIG_STATUS <<_ACEOF
53309 ac_cs_version="\\
53310 wxWidgets config.status 2.9.0
53311 configured by $0, generated by GNU Autoconf 2.61,
53312   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53313
53314 Copyright (C) 2006 Free Software Foundation, Inc.
53315 This config.status script is free software; the Free Software Foundation
53316 gives unlimited permission to copy, distribute and modify it."
53317
53318 ac_pwd='$ac_pwd'
53319 srcdir='$srcdir'
53320 INSTALL='$INSTALL'
53321 _ACEOF
53322
53323 cat >>$CONFIG_STATUS <<\_ACEOF
53324 # If no file are specified by the user, then we need to provide default
53325 # value.  By we need to know if files were specified by the user.
53326 ac_need_defaults=:
53327 while test $# != 0
53328 do
53329   case $1 in
53330   --*=*)
53331     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53332     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53333     ac_shift=:
53334     ;;
53335   *)
53336     ac_option=$1
53337     ac_optarg=$2
53338     ac_shift=shift
53339     ;;
53340   esac
53341
53342   case $ac_option in
53343   # Handling of the options.
53344   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53345     ac_cs_recheck=: ;;
53346   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53347     echo "$ac_cs_version"; exit ;;
53348   --debug | --debu | --deb | --de | --d | -d )
53349     debug=: ;;
53350   --file | --fil | --fi | --f )
53351     $ac_shift
53352     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53353     ac_need_defaults=false;;
53354   --header | --heade | --head | --hea )
53355     $ac_shift
53356     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53357     ac_need_defaults=false;;
53358   --he | --h)
53359     # Conflict between --help and --header
53360     { echo "$as_me: error: ambiguous option: $1
53361 Try \`$0 --help' for more information." >&2
53362    { (exit 1); exit 1; }; };;
53363   --help | --hel | -h )
53364     echo "$ac_cs_usage"; exit ;;
53365   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53366   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53367     ac_cs_silent=: ;;
53368
53369   # This is an error.
53370   -*) { echo "$as_me: error: unrecognized option: $1
53371 Try \`$0 --help' for more information." >&2
53372    { (exit 1); exit 1; }; } ;;
53373
53374   *) ac_config_targets="$ac_config_targets $1"
53375      ac_need_defaults=false ;;
53376
53377   esac
53378   shift
53379 done
53380
53381 ac_configure_extra_args=
53382
53383 if $ac_cs_silent; then
53384   exec 6>/dev/null
53385   ac_configure_extra_args="$ac_configure_extra_args --silent"
53386 fi
53387
53388 _ACEOF
53389 cat >>$CONFIG_STATUS <<_ACEOF
53390 if \$ac_cs_recheck; then
53391   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53392   CONFIG_SHELL=$SHELL
53393   export CONFIG_SHELL
53394   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53395 fi
53396
53397 _ACEOF
53398 cat >>$CONFIG_STATUS <<\_ACEOF
53399 exec 5>>config.log
53400 {
53401   echo
53402   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53403 ## Running $as_me. ##
53404 _ASBOX
53405   echo "$ac_log"
53406 } >&5
53407
53408 _ACEOF
53409 cat >>$CONFIG_STATUS <<_ACEOF
53410 #
53411 # INIT-COMMANDS
53412 #
53413
53414             CPP="$CPP"
53415             infile="$srcdir/include/wx/msw/genrcdefs.h"
53416             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
53417
53418
53419  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53420  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53421  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53422                      LN_S="${LN_S}"
53423
53424
53425 _ACEOF
53426
53427 cat >>$CONFIG_STATUS <<\_ACEOF
53428
53429 # Handling of arguments.
53430 for ac_config_target in $ac_config_targets
53431 do
53432   case $ac_config_target in
53433     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
53434     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
53435     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
53436     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
53437     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
53438     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53439     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
53440     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
53441
53442   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53443 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53444    { (exit 1); exit 1; }; };;
53445   esac
53446 done
53447
53448
53449 # If the user did not use the arguments to specify the items to instantiate,
53450 # then the envvar interface is used.  Set only those that are not.
53451 # We use the long form for the default assignment because of an extremely
53452 # bizarre bug on SunOS 4.1.3.
53453 if $ac_need_defaults; then
53454   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53455   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53456   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53457 fi
53458
53459 # Have a temporary directory for convenience.  Make it in the build tree
53460 # simply because there is no reason against having it here, and in addition,
53461 # creating and moving files from /tmp can sometimes cause problems.
53462 # Hook for its removal unless debugging.
53463 # Note that there is a small window in which the directory will not be cleaned:
53464 # after its creation but before its name has been assigned to `$tmp'.
53465 $debug ||
53466 {
53467   tmp=
53468   trap 'exit_status=$?
53469   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53470 ' 0
53471   trap '{ (exit 1); exit 1; }' 1 2 13 15
53472 }
53473 # Create a (secure) tmp directory for tmp files.
53474
53475 {
53476   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53477   test -n "$tmp" && test -d "$tmp"
53478 }  ||
53479 {
53480   tmp=./conf$$-$RANDOM
53481   (umask 077 && mkdir "$tmp")
53482 } ||
53483 {
53484    echo "$me: cannot create a temporary directory in ." >&2
53485    { (exit 1); exit 1; }
53486 }
53487
53488 #
53489 # Set up the sed scripts for CONFIG_FILES section.
53490 #
53491
53492 # No need to generate the scripts if there are no CONFIG_FILES.
53493 # This happens for instance when ./config.status config.h
53494 if test -n "$CONFIG_FILES"; then
53495
53496 _ACEOF
53497
53498
53499
53500 ac_delim='%!_!# '
53501 for ac_last_try in false false false false false :; do
53502   cat >conf$$subs.sed <<_ACEOF
53503 SHELL!$SHELL$ac_delim
53504 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
53505 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
53506 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
53507 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
53508 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
53509 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
53510 exec_prefix!$exec_prefix$ac_delim
53511 prefix!$prefix$ac_delim
53512 program_transform_name!$program_transform_name$ac_delim
53513 bindir!$bindir$ac_delim
53514 sbindir!$sbindir$ac_delim
53515 libexecdir!$libexecdir$ac_delim
53516 datarootdir!$datarootdir$ac_delim
53517 datadir!$datadir$ac_delim
53518 sysconfdir!$sysconfdir$ac_delim
53519 sharedstatedir!$sharedstatedir$ac_delim
53520 localstatedir!$localstatedir$ac_delim
53521 includedir!$includedir$ac_delim
53522 oldincludedir!$oldincludedir$ac_delim
53523 docdir!$docdir$ac_delim
53524 infodir!$infodir$ac_delim
53525 htmldir!$htmldir$ac_delim
53526 dvidir!$dvidir$ac_delim
53527 pdfdir!$pdfdir$ac_delim
53528 psdir!$psdir$ac_delim
53529 libdir!$libdir$ac_delim
53530 localedir!$localedir$ac_delim
53531 mandir!$mandir$ac_delim
53532 DEFS!$DEFS$ac_delim
53533 ECHO_C!$ECHO_C$ac_delim
53534 ECHO_N!$ECHO_N$ac_delim
53535 ECHO_T!$ECHO_T$ac_delim
53536 LIBS!$LIBS$ac_delim
53537 build_alias!$build_alias$ac_delim
53538 host_alias!$host_alias$ac_delim
53539 target_alias!$target_alias$ac_delim
53540 build!$build$ac_delim
53541 build_cpu!$build_cpu$ac_delim
53542 build_vendor!$build_vendor$ac_delim
53543 build_os!$build_os$ac_delim
53544 host!$host$ac_delim
53545 host_cpu!$host_cpu$ac_delim
53546 host_vendor!$host_vendor$ac_delim
53547 host_os!$host_os$ac_delim
53548 target!$target$ac_delim
53549 target_cpu!$target_cpu$ac_delim
53550 target_vendor!$target_vendor$ac_delim
53551 target_os!$target_os$ac_delim
53552 wx_top_builddir!$wx_top_builddir$ac_delim
53553 CC!$CC$ac_delim
53554 CFLAGS!$CFLAGS$ac_delim
53555 LDFLAGS!$LDFLAGS$ac_delim
53556 CPPFLAGS!$CPPFLAGS$ac_delim
53557 ac_ct_CC!$ac_ct_CC$ac_delim
53558 EXEEXT!$EXEEXT$ac_delim
53559 OBJEXT!$OBJEXT$ac_delim
53560 CPP!$CPP$ac_delim
53561 GREP!$GREP$ac_delim
53562 EGREP!$EGREP$ac_delim
53563 CXX!$CXX$ac_delim
53564 CXXFLAGS!$CXXFLAGS$ac_delim
53565 ac_ct_CXX!$ac_ct_CXX$ac_delim
53566 AR!$AR$ac_delim
53567 subdirs!$subdirs$ac_delim
53568 PKG_CONFIG!$PKG_CONFIG$ac_delim
53569 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
53570 GTK_LIBS!$GTK_LIBS$ac_delim
53571 GTK_CONFIG!$GTK_CONFIG$ac_delim
53572 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
53573 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
53574 XMKMF!$XMKMF$ac_delim
53575 X_CFLAGS!$X_CFLAGS$ac_delim
53576 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
53577 X_LIBS!$X_LIBS$ac_delim
53578 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
53579 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
53580 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
53581 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
53582 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
53583 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
53584 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
53585 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
53586 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
53587 LIBICONV!$LIBICONV$ac_delim
53588 SDL_CONFIG!$SDL_CONFIG$ac_delim
53589 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
53590 SDL_LIBS!$SDL_LIBS$ac_delim
53591 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
53592 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
53593 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
53594 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
53595 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
53596 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
53597 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
53598 HILDON_LIBS!$HILDON_LIBS$ac_delim
53599 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
53600 _ACEOF
53601
53602   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53603     break
53604   elif $ac_last_try; then
53605     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53606 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53607    { (exit 1); exit 1; }; }
53608   else
53609     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53610   fi
53611 done
53612
53613 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53614 if test -n "$ac_eof"; then
53615   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53616   ac_eof=`expr $ac_eof + 1`
53617 fi
53618
53619 cat >>$CONFIG_STATUS <<_ACEOF
53620 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
53621 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53622 _ACEOF
53623 sed '
53624 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53625 s/^/s,@/; s/!/@,|#_!!_#|/
53626 :n
53627 t n
53628 s/'"$ac_delim"'$/,g/; t
53629 s/$/\\/; p
53630 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53631 ' >>$CONFIG_STATUS <conf$$subs.sed
53632 rm -f conf$$subs.sed
53633 cat >>$CONFIG_STATUS <<_ACEOF
53634 CEOF$ac_eof
53635 _ACEOF
53636
53637
53638 ac_delim='%!_!# '
53639 for ac_last_try in false false false false false :; do
53640   cat >conf$$subs.sed <<_ACEOF
53641 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
53642 GST_CFLAGS!$GST_CFLAGS$ac_delim
53643 GST_LIBS!$GST_LIBS$ac_delim
53644 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
53645 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
53646 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
53647 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
53648 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
53649 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
53650 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
53651 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
53652 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
53653 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
53654 VENDOR!$VENDOR$ac_delim
53655 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
53656 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
53657 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
53658 WXUNIV!$WXUNIV$ac_delim
53659 MONOLITHIC!$MONOLITHIC$ac_delim
53660 USE_PLUGINS!$USE_PLUGINS$ac_delim
53661 CXXWARNINGS!$CXXWARNINGS$ac_delim
53662 EXTRALIBS!$EXTRALIBS$ac_delim
53663 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
53664 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
53665 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
53666 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
53667 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
53668 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
53669 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
53670 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
53671 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
53672 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
53673 UNICODE!$UNICODE$ac_delim
53674 BUILD!$BUILD$ac_delim
53675 DEBUG_INFO!$DEBUG_INFO$ac_delim
53676 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
53677 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
53678 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
53679 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
53680 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
53681 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
53682 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
53683 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
53684 RANLIB!$RANLIB$ac_delim
53685 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
53686 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
53687 INSTALL_DATA!$INSTALL_DATA$ac_delim
53688 LN_S!$LN_S$ac_delim
53689 SET_MAKE!$SET_MAKE$ac_delim
53690 MAKE_SET!$MAKE_SET$ac_delim
53691 AROPTIONS!$AROPTIONS$ac_delim
53692 STRIP!$STRIP$ac_delim
53693 NM!$NM$ac_delim
53694 INSTALL_DIR!$INSTALL_DIR$ac_delim
53695 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
53696 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
53697 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
53698 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
53699 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
53700 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
53701 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
53702 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
53703 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
53704 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
53705 SO_SUFFIX!$SO_SUFFIX$ac_delim
53706 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
53707 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
53708 LIBPREFIX!$LIBPREFIX$ac_delim
53709 LIBEXT!$LIBEXT$ac_delim
53710 DLLPREFIX!$DLLPREFIX$ac_delim
53711 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
53712 dlldir!$dlldir$ac_delim
53713 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
53714 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
53715 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
53716 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
53717 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
53718 PIC_FLAG!$PIC_FLAG$ac_delim
53719 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
53720 USE_SOVERSION!$USE_SOVERSION$ac_delim
53721 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
53722 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
53723 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
53724 USE_MACVERSION!$USE_MACVERSION$ac_delim
53725 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
53726 SONAME_FLAG!$SONAME_FLAG$ac_delim
53727 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
53728 BK_DEPS!$BK_DEPS$ac_delim
53729 WINDRES!$WINDRES$ac_delim
53730 REZ!$REZ$ac_delim
53731 SETFILE!$SETFILE$ac_delim
53732 GCC_PCH!$GCC_PCH$ac_delim
53733 ICC_PCH!$ICC_PCH$ac_delim
53734 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
53735 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
53736 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
53737 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
53738 _ACEOF
53739
53740   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53741     break
53742   elif $ac_last_try; then
53743     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53744 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53745    { (exit 1); exit 1; }; }
53746   else
53747     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53748   fi
53749 done
53750
53751 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53752 if test -n "$ac_eof"; then
53753   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53754   ac_eof=`expr $ac_eof + 1`
53755 fi
53756
53757 cat >>$CONFIG_STATUS <<_ACEOF
53758 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
53759 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53760 _ACEOF
53761 sed '
53762 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53763 s/^/s,@/; s/!/@,|#_!!_#|/
53764 :n
53765 t n
53766 s/'"$ac_delim"'$/,g/; t
53767 s/$/\\/; p
53768 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53769 ' >>$CONFIG_STATUS <conf$$subs.sed
53770 rm -f conf$$subs.sed
53771 cat >>$CONFIG_STATUS <<_ACEOF
53772 CEOF$ac_eof
53773 _ACEOF
53774
53775
53776 ac_delim='%!_!# '
53777 for ac_last_try in false false false false false :; do
53778   cat >conf$$subs.sed <<_ACEOF
53779 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
53780 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
53781 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
53782 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
53783 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
53784 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
53785 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
53786 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
53787 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
53788 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
53789 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
53790 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
53791 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
53792 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
53793 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
53794 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
53795 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
53796 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
53797 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53798 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
53799 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
53800 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
53801 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
53802 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
53803 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
53804 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
53805 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
53806 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
53807 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
53808 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
53809 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
53810 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
53811 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
53812 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
53813 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53814 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
53815 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
53816 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
53817 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
53818 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
53819 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
53820 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
53821 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
53822 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
53823 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
53824 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
53825 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
53826 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
53827 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
53828 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
53829 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
53830 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
53831 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
53832 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
53833 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
53834 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
53835 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
53836 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
53837 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
53838 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
53839 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
53840 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
53841 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
53842 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
53843 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
53844 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
53845 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
53846 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
53847 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
53848 COND_SHARED_0!$COND_SHARED_0$ac_delim
53849 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
53850 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
53851 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
53852 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
53853 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
53854 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
53855 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
53856 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
53857 COND_SHARED_1!$COND_SHARED_1$ac_delim
53858 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
53859 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
53860 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
53861 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
53862 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
53863 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
53864 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
53865 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
53866 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
53867 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
53868 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
53869 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
53870 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
53871 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
53872 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
53873 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
53874 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
53875 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
53876 _ACEOF
53877
53878   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53879     break
53880   elif $ac_last_try; then
53881     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53882 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53883    { (exit 1); exit 1; }; }
53884   else
53885     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53886   fi
53887 done
53888
53889 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53890 if test -n "$ac_eof"; then
53891   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53892   ac_eof=`expr $ac_eof + 1`
53893 fi
53894
53895 cat >>$CONFIG_STATUS <<_ACEOF
53896 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
53897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53898 _ACEOF
53899 sed '
53900 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53901 s/^/s,@/; s/!/@,|#_!!_#|/
53902 :n
53903 t n
53904 s/'"$ac_delim"'$/,g/; t
53905 s/$/\\/; p
53906 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53907 ' >>$CONFIG_STATUS <conf$$subs.sed
53908 rm -f conf$$subs.sed
53909 cat >>$CONFIG_STATUS <<_ACEOF
53910 CEOF$ac_eof
53911 _ACEOF
53912
53913
53914 ac_delim='%!_!# '
53915 for ac_last_try in false false false false false :; do
53916   cat >conf$$subs.sed <<_ACEOF
53917 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
53918 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
53919 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
53920 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
53921 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
53922 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
53923 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
53924 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
53925 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
53926 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
53927 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
53928 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
53929 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
53930 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
53931 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
53932 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
53933 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
53934 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
53935 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
53936 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
53937 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
53938 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
53939 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
53940 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
53941 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
53942 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
53943 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
53944 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
53945 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
53946 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
53947 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
53948 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
53949 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
53950 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
53951 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
53952 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
53953 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
53954 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
53955 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
53956 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
53957 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
53958 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
53959 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
53960 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
53961 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
53962 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
53963 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
53964 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
53965 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
53966 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
53967 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
53968 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
53969 DEREZ!$DEREZ$ac_delim
53970 SHARED!$SHARED$ac_delim
53971 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
53972 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
53973 USE_GUI!$USE_GUI$ac_delim
53974 AFMINSTALL!$AFMINSTALL$ac_delim
53975 WIN32INSTALL!$WIN32INSTALL$ac_delim
53976 TOOLKIT!$TOOLKIT$ac_delim
53977 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
53978 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
53979 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
53980 cross_compiling!$cross_compiling$ac_delim
53981 WIDGET_SET!$WIDGET_SET$ac_delim
53982 WX_RELEASE!$WX_RELEASE$ac_delim
53983 WX_VERSION!$WX_VERSION$ac_delim
53984 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
53985 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
53986 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
53987 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
53988 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
53989 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
53990 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
53991 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
53992 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
53993 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
53994 GUIDIST!$GUIDIST$ac_delim
53995 DISTDIR!$DISTDIR$ac_delim
53996 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
53997 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
53998 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
53999 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54000 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54001 RESCOMP!$RESCOMP$ac_delim
54002 RESFLAGS!$RESFLAGS$ac_delim
54003 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54004 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54005 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54006 LIBWXMACRES!$LIBWXMACRES$ac_delim
54007 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54008 MACSETFILE!$MACSETFILE$ac_delim
54009 GCC!$GCC$ac_delim
54010 DLLTOOL!$DLLTOOL$ac_delim
54011 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54012 LIBOBJS!$LIBOBJS$ac_delim
54013 LTLIBOBJS!$LTLIBOBJS$ac_delim
54014 _ACEOF
54015
54016   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54017     break
54018   elif $ac_last_try; then
54019     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54020 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54021    { (exit 1); exit 1; }; }
54022   else
54023     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54024   fi
54025 done
54026
54027 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54028 if test -n "$ac_eof"; then
54029   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54030   ac_eof=`expr $ac_eof + 1`
54031 fi
54032
54033 cat >>$CONFIG_STATUS <<_ACEOF
54034 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54036 _ACEOF
54037 sed '
54038 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54039 s/^/s,@/; s/!/@,|#_!!_#|/
54040 :n
54041 t n
54042 s/'"$ac_delim"'$/,g/; t
54043 s/$/\\/; p
54044 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54045 ' >>$CONFIG_STATUS <conf$$subs.sed
54046 rm -f conf$$subs.sed
54047 cat >>$CONFIG_STATUS <<_ACEOF
54048 CEOF$ac_eof
54049 _ACEOF
54050
54051
54052 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54053 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54054 # trailing colons and then remove the whole line if VPATH becomes empty
54055 # (actually we leave an empty line to preserve line numbers).
54056 if test "x$srcdir" = x.; then
54057   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54058 s/:*\$(srcdir):*/:/
54059 s/:*\${srcdir}:*/:/
54060 s/:*@srcdir@:*/:/
54061 s/^\([^=]*=[     ]*\):*/\1/
54062 s/:*$//
54063 s/^[^=]*=[       ]*$//
54064 }'
54065 fi
54066
54067 cat >>$CONFIG_STATUS <<\_ACEOF
54068 fi # test -n "$CONFIG_FILES"
54069
54070
54071 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54072 do
54073   case $ac_tag in
54074   :[FHLC]) ac_mode=$ac_tag; continue;;
54075   esac
54076   case $ac_mode$ac_tag in
54077   :[FHL]*:*);;
54078   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54079 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54080    { (exit 1); exit 1; }; };;
54081   :[FH]-) ac_tag=-:-;;
54082   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54083   esac
54084   ac_save_IFS=$IFS
54085   IFS=:
54086   set x $ac_tag
54087   IFS=$ac_save_IFS
54088   shift
54089   ac_file=$1
54090   shift
54091
54092   case $ac_mode in
54093   :L) ac_source=$1;;
54094   :[FH])
54095     ac_file_inputs=
54096     for ac_f
54097     do
54098       case $ac_f in
54099       -) ac_f="$tmp/stdin";;
54100       *) # Look for the file first in the build tree, then in the source tree
54101          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54102          # because $ac_f cannot contain `:'.
54103          test -f "$ac_f" ||
54104            case $ac_f in
54105            [\\/$]*) false;;
54106            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54107            esac ||
54108            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54109 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54110    { (exit 1); exit 1; }; };;
54111       esac
54112       ac_file_inputs="$ac_file_inputs $ac_f"
54113     done
54114
54115     # Let's still pretend it is `configure' which instantiates (i.e., don't
54116     # use $as_me), people would be surprised to read:
54117     #    /* config.h.  Generated by config.status.  */
54118     configure_input="Generated from "`IFS=:
54119           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54120     if test x"$ac_file" != x-; then
54121       configure_input="$ac_file.  $configure_input"
54122       { echo "$as_me:$LINENO: creating $ac_file" >&5
54123 echo "$as_me: creating $ac_file" >&6;}
54124     fi
54125
54126     case $ac_tag in
54127     *:-:* | *:-) cat >"$tmp/stdin";;
54128     esac
54129     ;;
54130   esac
54131
54132   ac_dir=`$as_dirname -- "$ac_file" ||
54133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54134          X"$ac_file" : 'X\(//\)[^/]' \| \
54135          X"$ac_file" : 'X\(//\)$' \| \
54136          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54137 echo X"$ac_file" |
54138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54139             s//\1/
54140             q
54141           }
54142           /^X\(\/\/\)[^/].*/{
54143             s//\1/
54144             q
54145           }
54146           /^X\(\/\/\)$/{
54147             s//\1/
54148             q
54149           }
54150           /^X\(\/\).*/{
54151             s//\1/
54152             q
54153           }
54154           s/.*/./; q'`
54155   { as_dir="$ac_dir"
54156   case $as_dir in #(
54157   -*) as_dir=./$as_dir;;
54158   esac
54159   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54160     as_dirs=
54161     while :; do
54162       case $as_dir in #(
54163       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54164       *) as_qdir=$as_dir;;
54165       esac
54166       as_dirs="'$as_qdir' $as_dirs"
54167       as_dir=`$as_dirname -- "$as_dir" ||
54168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54169          X"$as_dir" : 'X\(//\)[^/]' \| \
54170          X"$as_dir" : 'X\(//\)$' \| \
54171          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54172 echo X"$as_dir" |
54173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54174             s//\1/
54175             q
54176           }
54177           /^X\(\/\/\)[^/].*/{
54178             s//\1/
54179             q
54180           }
54181           /^X\(\/\/\)$/{
54182             s//\1/
54183             q
54184           }
54185           /^X\(\/\).*/{
54186             s//\1/
54187             q
54188           }
54189           s/.*/./; q'`
54190       test -d "$as_dir" && break
54191     done
54192     test -z "$as_dirs" || eval "mkdir $as_dirs"
54193   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54194 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54195    { (exit 1); exit 1; }; }; }
54196   ac_builddir=.
54197
54198 case "$ac_dir" in
54199 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54200 *)
54201   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54202   # A ".." for each directory in $ac_dir_suffix.
54203   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54204   case $ac_top_builddir_sub in
54205   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54206   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54207   esac ;;
54208 esac
54209 ac_abs_top_builddir=$ac_pwd
54210 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54211 # for backward compatibility:
54212 ac_top_builddir=$ac_top_build_prefix
54213
54214 case $srcdir in
54215   .)  # We are building in place.
54216     ac_srcdir=.
54217     ac_top_srcdir=$ac_top_builddir_sub
54218     ac_abs_top_srcdir=$ac_pwd ;;
54219   [\\/]* | ?:[\\/]* )  # Absolute name.
54220     ac_srcdir=$srcdir$ac_dir_suffix;
54221     ac_top_srcdir=$srcdir
54222     ac_abs_top_srcdir=$srcdir ;;
54223   *) # Relative name.
54224     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54225     ac_top_srcdir=$ac_top_build_prefix$srcdir
54226     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54227 esac
54228 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54229
54230
54231   case $ac_mode in
54232   :F)
54233   #
54234   # CONFIG_FILE
54235   #
54236
54237   case $INSTALL in
54238   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54239   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54240   esac
54241 _ACEOF
54242
54243 cat >>$CONFIG_STATUS <<\_ACEOF
54244 # If the template does not know about datarootdir, expand it.
54245 # FIXME: This hack should be removed a few years after 2.60.
54246 ac_datarootdir_hack=; ac_datarootdir_seen=
54247
54248 case `sed -n '/datarootdir/ {
54249   p
54250   q
54251 }
54252 /@datadir@/p
54253 /@docdir@/p
54254 /@infodir@/p
54255 /@localedir@/p
54256 /@mandir@/p
54257 ' $ac_file_inputs` in
54258 *datarootdir*) ac_datarootdir_seen=yes;;
54259 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54260   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54261 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54262 _ACEOF
54263 cat >>$CONFIG_STATUS <<_ACEOF
54264   ac_datarootdir_hack='
54265   s&@datadir@&$datadir&g
54266   s&@docdir@&$docdir&g
54267   s&@infodir@&$infodir&g
54268   s&@localedir@&$localedir&g
54269   s&@mandir@&$mandir&g
54270     s&\\\${datarootdir}&$datarootdir&g' ;;
54271 esac
54272 _ACEOF
54273
54274 # Neutralize VPATH when `$srcdir' = `.'.
54275 # Shell code in configure.ac might set extrasub.
54276 # FIXME: do we really want to maintain this feature?
54277 cat >>$CONFIG_STATUS <<_ACEOF
54278   sed "$ac_vpsub
54279 $extrasub
54280 _ACEOF
54281 cat >>$CONFIG_STATUS <<\_ACEOF
54282 :t
54283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54284 s&@configure_input@&$configure_input&;t t
54285 s&@top_builddir@&$ac_top_builddir_sub&;t t
54286 s&@srcdir@&$ac_srcdir&;t t
54287 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54288 s&@top_srcdir@&$ac_top_srcdir&;t t
54289 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54290 s&@builddir@&$ac_builddir&;t t
54291 s&@abs_builddir@&$ac_abs_builddir&;t t
54292 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54293 s&@INSTALL@&$ac_INSTALL&;t t
54294 $ac_datarootdir_hack
54295 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed 's/|#_!!_#|//g' >$tmp/out
54296
54297 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54298   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54299   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54300   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54301 which seems to be undefined.  Please make sure it is defined." >&5
54302 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54303 which seems to be undefined.  Please make sure it is defined." >&2;}
54304
54305   rm -f "$tmp/stdin"
54306   case $ac_file in
54307   -) cat "$tmp/out"; rm -f "$tmp/out";;
54308   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54309   esac
54310  ;;
54311   :H)
54312   #
54313   # CONFIG_HEADER
54314   #
54315 _ACEOF
54316
54317 # Transform confdefs.h into a sed script `conftest.defines', that
54318 # substitutes the proper values into config.h.in to produce config.h.
54319 rm -f conftest.defines conftest.tail
54320 # First, append a space to every undef/define line, to ease matching.
54321 echo 's/$/ /' >conftest.defines
54322 # Then, protect against being on the right side of a sed subst, or in
54323 # an unquoted here document, in config.status.  If some macros were
54324 # called several times there might be several #defines for the same
54325 # symbol, which is useless.  But do not sort them, since the last
54326 # AC_DEFINE must be honored.
54327 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54328 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54329 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54330 # PARAMS is the parameter list in the macro definition--in most cases, it's
54331 # just an empty string.
54332 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
54333 ac_dB='\\)[      (].*,\\1define\\2'
54334 ac_dC=' '
54335 ac_dD=' ,'
54336
54337 uniq confdefs.h |
54338   sed -n '
54339         t rset
54340         :rset
54341         s/^[     ]*#[    ]*define[       ][      ]*//
54342         t ok
54343         d
54344         :ok
54345         s/[\\&,]/\\&/g
54346         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54347         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54348   ' >>conftest.defines
54349
54350 # Remove the space that was appended to ease matching.
54351 # Then replace #undef with comments.  This is necessary, for
54352 # example, in the case of _POSIX_SOURCE, which is predefined and required
54353 # on some systems where configure will not decide to define it.
54354 # (The regexp can be short, since the line contains either #define or #undef.)
54355 echo 's/ $//
54356 s,^[     #]*u.*,/* & */,' >>conftest.defines
54357
54358 # Break up conftest.defines:
54359 ac_max_sed_lines=50
54360
54361 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54362 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54363 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54364 # et cetera.
54365 ac_in='$ac_file_inputs'
54366 ac_out='"$tmp/out1"'
54367 ac_nxt='"$tmp/out2"'
54368
54369 while :
54370 do
54371   # Write a here document:
54372     cat >>$CONFIG_STATUS <<_ACEOF
54373     # First, check the format of the line:
54374     cat >"\$tmp/defines.sed" <<\\CEOF
54375 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
54376 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
54377 b
54378 :def
54379 _ACEOF
54380   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54381   echo 'CEOF
54382     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54383   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54384   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54385   grep . conftest.tail >/dev/null || break
54386   rm -f conftest.defines
54387   mv conftest.tail conftest.defines
54388 done
54389 rm -f conftest.defines conftest.tail
54390
54391 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54392 cat >>$CONFIG_STATUS <<\_ACEOF
54393   if test x"$ac_file" != x-; then
54394     echo "/* $configure_input  */" >"$tmp/config.h"
54395     cat "$ac_result" >>"$tmp/config.h"
54396     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
54397       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54398 echo "$as_me: $ac_file is unchanged" >&6;}
54399     else
54400       rm -f $ac_file
54401       mv "$tmp/config.h" $ac_file
54402     fi
54403   else
54404     echo "/* $configure_input  */"
54405     cat "$ac_result"
54406   fi
54407   rm -f "$tmp/out12"
54408  ;;
54409
54410   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
54411 echo "$as_me: executing $ac_file commands" >&6;}
54412  ;;
54413   esac
54414
54415
54416   case $ac_file$ac_mode in
54417     "rcdefs.h":C)
54418             mkdir -p $outdir &&
54419             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
54420          ;;
54421     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
54422     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
54423     "wx-config":C)  rm -f wx-config
54424                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
54425                     ;;
54426
54427   esac
54428 done # for ac_tag
54429
54430
54431 { (exit 0); exit 0; }
54432 _ACEOF
54433 chmod +x $CONFIG_STATUS
54434 ac_clean_files=$ac_clean_files_save
54435
54436
54437 # configure is writing to config.log, and then calls config.status.
54438 # config.status does its own redirection, appending to config.log.
54439 # Unfortunately, on DOS this fails, as config.log is still kept open
54440 # by configure, so config.status won't be able to write to it; its
54441 # output is simply discarded.  So we exec the FD to /dev/null,
54442 # effectively closing config.log, so it can be properly (re)opened and
54443 # appended to by config.status.  When coming back to configure, we
54444 # need to make the FD available again.
54445 if test "$no_create" != yes; then
54446   ac_cs_success=:
54447   ac_config_status_args=
54448   test "$silent" = yes &&
54449     ac_config_status_args="$ac_config_status_args --quiet"
54450   exec 5>/dev/null
54451   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54452   exec 5>>config.log
54453   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54454   # would make configure fail if this is the last instruction.
54455   $ac_cs_success || { (exit 1); exit 1; }
54456 fi
54457
54458 #
54459 # CONFIG_SUBDIRS section.
54460 #
54461 if test "$no_recursion" != yes; then
54462
54463   # Remove --cache-file and --srcdir arguments so they do not pile up.
54464   ac_sub_configure_args=
54465   ac_prev=
54466   eval "set x $ac_configure_args"
54467   shift
54468   for ac_arg
54469   do
54470     if test -n "$ac_prev"; then
54471       ac_prev=
54472       continue
54473     fi
54474     case $ac_arg in
54475     -cache-file | --cache-file | --cache-fil | --cache-fi \
54476     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
54477       ac_prev=cache_file ;;
54478     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
54479     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
54480     | --c=*)
54481       ;;
54482     --config-cache | -C)
54483       ;;
54484     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
54485       ac_prev=srcdir ;;
54486     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
54487       ;;
54488     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
54489       ac_prev=prefix ;;
54490     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
54491       ;;
54492     *)
54493       case $ac_arg in
54494       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54495       esac
54496       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
54497     esac
54498   done
54499
54500   # Always prepend --prefix to ensure using the same prefix
54501   # in subdir configurations.
54502   ac_arg="--prefix=$prefix"
54503   case $ac_arg in
54504   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54505   esac
54506   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
54507
54508   # Pass --silent
54509   if test "$silent" = yes; then
54510     ac_sub_configure_args="--silent $ac_sub_configure_args"
54511   fi
54512
54513   ac_popdir=`pwd`
54514   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
54515
54516     # Do not complain, so a configure script can configure whichever
54517     # parts of a large source tree are present.
54518     test -d "$srcdir/$ac_dir" || continue
54519
54520     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
54521     echo "$as_me:$LINENO: $ac_msg" >&5
54522     echo "$ac_msg" >&6
54523     { as_dir="$ac_dir"
54524   case $as_dir in #(
54525   -*) as_dir=./$as_dir;;
54526   esac
54527   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54528     as_dirs=
54529     while :; do
54530       case $as_dir in #(
54531       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54532       *) as_qdir=$as_dir;;
54533       esac
54534       as_dirs="'$as_qdir' $as_dirs"
54535       as_dir=`$as_dirname -- "$as_dir" ||
54536 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54537          X"$as_dir" : 'X\(//\)[^/]' \| \
54538          X"$as_dir" : 'X\(//\)$' \| \
54539          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54540 echo X"$as_dir" |
54541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54542             s//\1/
54543             q
54544           }
54545           /^X\(\/\/\)[^/].*/{
54546             s//\1/
54547             q
54548           }
54549           /^X\(\/\/\)$/{
54550             s//\1/
54551             q
54552           }
54553           /^X\(\/\).*/{
54554             s//\1/
54555             q
54556           }
54557           s/.*/./; q'`
54558       test -d "$as_dir" && break
54559     done
54560     test -z "$as_dirs" || eval "mkdir $as_dirs"
54561   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54562 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54563    { (exit 1); exit 1; }; }; }
54564     ac_builddir=.
54565
54566 case "$ac_dir" in
54567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54568 *)
54569   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54570   # A ".." for each directory in $ac_dir_suffix.
54571   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54572   case $ac_top_builddir_sub in
54573   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54574   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54575   esac ;;
54576 esac
54577 ac_abs_top_builddir=$ac_pwd
54578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54579 # for backward compatibility:
54580 ac_top_builddir=$ac_top_build_prefix
54581
54582 case $srcdir in
54583   .)  # We are building in place.
54584     ac_srcdir=.
54585     ac_top_srcdir=$ac_top_builddir_sub
54586     ac_abs_top_srcdir=$ac_pwd ;;
54587   [\\/]* | ?:[\\/]* )  # Absolute name.
54588     ac_srcdir=$srcdir$ac_dir_suffix;
54589     ac_top_srcdir=$srcdir
54590     ac_abs_top_srcdir=$srcdir ;;
54591   *) # Relative name.
54592     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54593     ac_top_srcdir=$ac_top_build_prefix$srcdir
54594     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54595 esac
54596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54597
54598
54599     cd "$ac_dir"
54600
54601     # Check for guested configure; otherwise get Cygnus style configure.
54602     if test -f "$ac_srcdir/configure.gnu"; then
54603       ac_sub_configure=$ac_srcdir/configure.gnu
54604     elif test -f "$ac_srcdir/configure"; then
54605       ac_sub_configure=$ac_srcdir/configure
54606     elif test -f "$ac_srcdir/configure.in"; then
54607       # This should be Cygnus configure.
54608       ac_sub_configure=$ac_aux_dir/configure
54609     else
54610       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
54611 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
54612       ac_sub_configure=
54613     fi
54614
54615     # The recursion is here.
54616     if test -n "$ac_sub_configure"; then
54617       # Make the cache file name correct relative to the subdirectory.
54618       case $cache_file in
54619       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
54620       *) # Relative name.
54621         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
54622       esac
54623
54624       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
54625 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
54626       # The eval makes quoting arguments work.
54627       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
54628            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
54629         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
54630 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
54631    { (exit 1); exit 1; }; }
54632     fi
54633
54634     cd "$ac_popdir"
54635   done
54636 fi
54637
54638
54639 echo
54640 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
54641 echo ""
54642 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
54643 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
54644
54645 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
54646 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
54647 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
54648 if test "$wxUSE_UNICODE" = "yes"; then
54649     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
54650         echo " (using UTF-8)"
54651     else
54652         echo " (using wchar_t)"
54653     fi
54654 else
54655     echo
54656 fi
54657
54658 echo "  What level of wxWidgets compatibility should be enabled?"
54659 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
54660 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
54661
54662 echo "  Which libraries should wxWidgets use?"
54663 echo "                                       STL                ${wxUSE_STL}"
54664 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
54665 echo "                                       png                ${wxUSE_LIBPNG-none}"
54666 echo "                                       regex              ${wxUSE_REGEX}"
54667 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
54668 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
54669 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
54670 fi
54671 echo "                                       zlib               ${wxUSE_ZLIB}"
54672 echo "                                       expat              ${wxUSE_EXPAT}"
54673 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
54674 echo "                                       sdl                ${wxUSE_LIBSDL}"
54675
54676 echo ""
54677